/* === AssessWiki Entry/Detail Page Shared CSS === */
/* Base styles are loaded via tailwind.min.css (compiled from input.css).   */
/* This file contains only entry-detail-page-specific styles shared by all   */
/* 40 assessment pages under /entry/*.                                        */
a:hover {
    text-decoration: none !important;
}
/* === Article layout === */
.article-layout { display: grid; grid-template-columns: 200px 1fr 200px; gap: 32px; max-width: 1400px; margin: 0 auto; padding: 24px; transition: max-width 0.3s ease; }
.article-layout.wide { max-width: 1600px; }
.sticky-sidebar { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; }

/* === TOC === */
.toc-link { display: block; padding: 6px 10px; font-size: 14px; color: #6b7280; border-radius: 6px; transition: all 0.15s; border-left: 2px solid transparent; }
.toc-link:hover { color: #111827; background: #f9fafb; }
.toc-link.active { color: #d97706; font-weight: 500; border-left-color: #f59e0b; }
.toc-link.sub { padding-left: 24px; font-size: 13px; }
.toc-separator { height: 1px; background: #e5e7eb; margin: 8px 4px; }
[data-theme="dark"] .toc-separator { background: #374151; }
.mobile-toc { display: none; }

/* === Article content === */
.article-content h2 { font-family: Georgia, serif; font-size: 1.25rem; font-weight: bold; color: #111827; margin-top: 1rem; margin-bottom: 1rem; scroll-margin-top: 5rem; }
.article-content h3 { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 600; color: #374151; margin-top: 1rem; margin-bottom: 1rem; scroll-margin-top: 5rem; }
.article-content p { font-size: 15px; line-height: 1.75; color: #374151; }
.article-content a { color: #3366cc; text-decoration: none; }
.article-content a:hover { color: #447ff5; }
.article-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content ul li { margin-bottom: 0.25rem; }
.article-content blockquote { border-left: 4px solid #e5e7eb; padding-left: 1rem; font-style: italic; color: #6b7280; margin: 1rem 0; }
.article-content .mono { font-family: 'JetBrains Mono', monospace; font-size: 14px; background: #f9fafb; padding: 2px 6px; border-radius: 4px; }

/* === Article responsive === */
@media (max-width: 1280px) { .article-layout { grid-template-columns: 200px 1fr; } .article-right { display: none; } }
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } .article-left { display: none; } .mobile-toc { display: block; } }
@media (max-width: 768px) { .infobox { float: none !important; width: 100% !important; margin-left: 0 !important; margin-bottom: 1rem !important; } }

/* === Radar chart === */
.radar-wrap { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.radar-grid { fill: none; stroke: #e5e7eb; stroke-width: 1; }
.radar-axis { stroke: #e5e7eb; stroke-width: 1; }
.radar-scale { fill: #9ca3af; }
.radar-label { font-family: 'Inter', sans-serif; font-weight: 600; fill: #6b7280; }
.radar-poly { transition: opacity 0.3s ease; }
[data-theme="dark"] .radar-wrap { background: #242424; border-color: #374151; }
[data-theme="dark"] .radar-grid, [data-theme="dark"] .radar-axis { stroke: #374151; }
[data-theme="dark"] .radar-scale { fill: #6b7280; }
[data-theme="dark"] .radar-label { fill: #9ca3af; }

/* === Profile tags & card === */
.profile-tag { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; font-size: 13px; font-weight: 500; border-radius: 9999px; border: 1px solid #e5e7eb; background: #fff; color: #6b7280; cursor: pointer; transition: all 0.2s; }
.profile-tag:hover { border-color: #93c5fd; color: #2563eb; background: #eff6ff; }
.profile-tag.active { background: #2563eb; border-color: #2563eb; color: #fff; }
[data-theme="dark"] .profile-tag { background: #2d2d2d; border-color: #374151; color: #9ca3af; }
[data-theme="dark"] .profile-tag:hover { border-color: #3b82f6; color: #60a5fa; background: #1a2438; }
[data-theme="dark"] .profile-tag.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.profile-card { transition: background 0.3s ease, border-color 0.3s ease; }

/* === App preview === */
.app-preview-card { box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.app-cta-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; font-size: 14px; font-weight: 600; border-radius: 10px; background: #f59e0b; color: #fff; transition: background 0.2s; white-space: nowrap; }
.app-cta-btn:hover { background: #d97706; text-decoration: none; color: #fff; }
.mock-option { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb; font-size: 11px; color: #9ca3af; background: #fff; cursor: pointer; transition: all 0.15s; }
.mock-option:hover { border-color: #93c5fd; color: #2563eb; }
.mock-option.active { border-color: #2563eb; background: #eff6ff; color: #2563eb; font-weight: 600; }
[data-theme="dark"] .mock-option { background: #2d2d2d; border-color: #374151; color: #6b7280; }
[data-theme="dark"] .mock-option.active { border-color: #3b82f6; background: #1a2438; color: #60a5fa; }
[data-theme="dark"] .app-preview-card { background: #1a1a1a; box-shadow: none; }

/* === Hero grid === */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; margin-bottom: 32px; }
@media (min-width: 480px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-grid .radar-wrap { margin: 0; }

/* === Theory divider === */
.theory-divider { display: flex; align-items: center; gap: 16px; margin: 40px 0 32px; }
.theory-divider .divider-line { flex: 1; height: 1px; background: #d1d5db; }
.theory-divider .divider-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; white-space: nowrap; }
[data-theme="dark"] .theory-divider .divider-line { background: #374151; }
[data-theme="dark"] .theory-divider .divider-label { color: #6b7280; }

/* === Pull quote === */
.pull-quote { font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.6; color: #1f2937; border-left: 4px solid #f59e0b; padding: 12px 0 12px 20px; margin: 24px 0; font-style: italic; }
[data-theme="dark"] .pull-quote { color: #d1d5db; border-color: #f59e0b; }

/* === Explore panel === */
.explore-panel { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin: 28px 0; }
[data-theme="dark"] .explore-panel { background: #1a1a1a; border-color: #374151; }
.explore-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: #e5e7eb; outline: none; }
.explore-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #2563eb; cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.explore-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #2563eb; cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }

/* === Dimension spectrum bar === */
.dim-spectrum { display: flex; align-items: center; gap: 8px; margin: 8px 0 16px; }
.dim-spectrum .dim-track { flex: 1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #e5e7eb, #93c5fd, #2563eb); position: relative; }
.dim-spectrum .dim-marker { position: absolute; top: -3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid currentColor; transform: translateX(-50%); }
.dim-spectrum .dim-label { font-size: 10px; color: #9ca3af; white-space: nowrap; }

/* === FAQ === */
.faq-item { border-bottom: 1px solid #e5e7eb; padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
[data-theme="dark"] .faq-item { border-color: #374151; }
.faq-q { font-family: Georgia, serif; font-weight: 600; color: #111827; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
[data-theme="dark"] .faq-q { color: #e5e7eb; }
.faq-a { color: #4b5563; margin-top: 8px; font-size: 15px; line-height: 1.7; }
[data-theme="dark"] .faq-a { color: #9ca3af; }

/* === Reduced motion: aw-reveal override === */
@media (prefers-reduced-motion: reduce) { .aw-reveal { opacity: 1 !important; animation: none !important; transform: none !important; } }
