/* Tool detail page — /courses/tool/{slug} */
.tool-layout { max-width: 900px; margin: 0 auto; padding: 32px 24px 60px; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #111827; }

.tool-hero { display: flex; gap: 24px; padding: 28px; background: linear-gradient(135deg, #EFF6FF 0%, #fff 60%); border: 1px solid #DBEAFE; border-radius: 16px; margin-bottom: 32px; }
.tool-hero-icon { width: 72px; height: 72px; border-radius: 16px; background: var(--primary, #2563EB); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; }
.tool-hero-body { flex: 1; min-width: 0; }
.tool-cat-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #2563EB; background: #DBEAFE; padding: 4px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.tool-title { font-size: 28px; font-weight: 800; margin: 0; color: #111827; letter-spacing: -0.5px; line-height: 1.2; }
.tool-vendor { font-size: 13px; color: #6B7280; margin-top: 4px; }
.tool-tagline { font-size: 14px; color: #4B5563; margin: 10px 0 14px; line-height: 1.6; }
.tool-hero-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.tool-meta-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; font-size: 12px; color: #374151; font-weight: 500; }
.tool-meta-chip i { color: #D97706; font-size: 11px; }
.tool-meta-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--primary, #2563EB); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; }
.tool-meta-link:hover { background: #1D4ED8; }

.tool-body { font-size: 14px; line-height: 1.75; color: #374151; }
.tool-body h1, .tool-body h2, .tool-body h3, .tool-body h4 { color: #111827; line-height: 1.3; }
.tool-body h2 { font-size: 22px; font-weight: 800; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #2563EB; display: inline-block; }
.tool-body h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.tool-body h4 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; color: #2563EB; text-transform: uppercase; letter-spacing: 0.04em; }
.tool-body p { margin: 0 0 14px; }
.tool-body ul, .tool-body ol { margin: 0 0 14px; padding-left: 24px; }
.tool-body li { margin-bottom: 6px; }
.tool-body strong { color: #111827; font-weight: 700; }
.tool-body em { color: #4B5563; }
.tool-body a { color: #2563EB; text-decoration: underline; text-decoration-color: rgba(37, 99, 235, 0.3); text-underline-offset: 2px; }
.tool-body a:hover { text-decoration-color: #2563EB; }

.tool-body code { background: #F3F4F6; padding: 2px 7px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #DC2626; }
.tool-body pre { background: #1F2937; color: #F9FAFB; padding: 16px 20px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 16px 0; }
.tool-body pre code { background: transparent; color: inherit; padding: 0; font-size: 13px; }
.tool-body pre.mermaid { background: #fff; border: 1px solid #E5E7EB; color: inherit; padding: 20px; text-align: center; font-family: inherit; }
.tool-body pre.mermaid code { display: none; }

.tool-body blockquote { border-left: 4px solid #2563EB; padding: 12px 18px; color: #4B5563; margin: 16px 0; background: #EFF6FF; border-radius: 0 8px 8px 0; }
.tool-body blockquote p:last-child { margin-bottom: 0; }

.tool-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; }
.tool-body th, .tool-body td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #E5E7EB; }
.tool-body th { background: #F9FAFB; font-weight: 700; color: #374151; }
.tool-body tr:last-child td { border-bottom: none; }

.tool-body .callout { padding: 14px 18px; border-radius: 8px; margin: 14px 0; border-left: 4px solid; }
.tool-body .callout-tip { background: #ECFDF5; border-left-color: #10B981; color: #065F46; }
.tool-body .callout-warn { background: #FEF3C7; border-left-color: #D97706; color: #92400E; }
.tool-body .callout-info { background: #DBEAFE; border-left-color: #2563EB; color: #1E40AF; }

.tool-empty { background: #F9FAFB; border: 1px dashed #D1D5DB; padding: 32px; border-radius: 12px; text-align: center; color: #6B7280; }

/* Alternatives rail */
.tool-alts { margin-top: 40px; padding-top: 32px; border-top: 1px solid #E5E7EB; }
.tool-alts h2 { font-size: 18px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.tool-alts h2 i { color: var(--primary, #2563EB); }
.tool-alts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tool-alt-card { display: flex; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.tool-alt-card:hover { border-color: #2563EB; transform: translateY(-1px); }
.tool-alt-icon { width: 32px; height: 32px; border-radius: 8px; background: #DBEAFE; color: #2563EB; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.tool-alt-body { flex: 1; min-width: 0; }
.tool-alt-name { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.tool-alt-desc { font-size: 11px; color: #6B7280; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (max-width: 640px) {
    .tool-hero { flex-direction: column; padding: 20px; }
    .tool-hero-icon { width: 56px; height: 56px; font-size: 24px; }
    .tool-title { font-size: 22px; }
    .tool-body h2 { font-size: 19px; }
}
