/* Prevent FOUC for Alpine.js components */
[x-cloak] {
    display: none !important;
}

/* Self-hosted Google Fonts */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/static/fonts/outfit-400.dea5d799448f.woff2") format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/static/fonts/outfit-600.dea5d799448f.woff2") format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/static/fonts/outfit-700.dea5d799448f.woff2") format('woff2');
}
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/static/fonts/caveat-400.5e602ad4edcf.woff2") format('woff2');
}
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/static/fonts/caveat-600.5e602ad4edcf.woff2") format('woff2');
}

:root {
  --font-sans: 'Outfit', sans-serif;
  --font-handwriting: 'Caveat', cursive;
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --accent: #6366f1;
  --accent-light: #eef2ff;
}

.dark {
  --bg-primary: #0b1121;
  --bg-card: #111827;
  --bg-surface: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-light: #1e293b;
  --accent: #818cf8;
  --accent-light: #1e1b4b;
}

/* Dark mode Prism.js token colors */
.dark .token.comment,
.dark .token.prolog,
.dark .token.doctype,
.dark .token.cdata { color: #64748b; }
.dark .token.punctuation { color: #94a3b8; }
.dark .token.property,
.dark .token.tag,
.dark .token.boolean,
.dark .token.number,
.dark .token.constant,
.dark .token.symbol { color: #f472b6; }
.dark .token.selector,
.dark .token.attr-name,
.dark .token.string,
.dark .token.char,
.dark .token.builtin { color: #34d399; }
.dark .token.operator,
.dark .token.entity,
.dark .token.url { color: #fbbf24; }
.dark .token.atrule,
.dark .token.attr-value,
.dark .token.keyword { color: #818cf8; }
.dark .token.function,
.dark .token.class-name { color: #60a5fa; }
.dark .token.regex,
.dark .token.important,
.dark .token.variable { color: #fb923c; }
.dark .token.important,
.dark .token.bold { font-weight: bold; }
.dark .token.italic { font-style: italic; }

body {
  font-family: var(--font-sans);
}

/* Theme utility classes */
.bg-theme { background-color: var(--bg-primary); }
.bg-theme-card { background-color: var(--bg-card); }
.bg-theme-surface { background-color: var(--bg-surface); }
.text-theme-primary { color: var(--text-primary); }
.text-theme-secondary { color: var(--text-secondary); }
.text-theme-muted { color: var(--text-muted); }
.border-theme { border-color: var(--border); }

/* Premium Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(30, 41, 59, 0.4);
}

/* Elegant Text Gradients */
.gradient-title {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .gradient-title {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Premium Webkit Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Theme Smooth Transitions */
.theme-transition {
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glowing decorative mesh background */
.glowing-mesh {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 100%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.dark .glowing-mesh {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(59, 130, 246, 0.02) 60%, transparent 100%);
}

/* Code block styling (Prism.js overrides) */
pre[class*="language-"] {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
}
code[class*="language-"] {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875rem;
}
.dark pre[class*="language-"] {
  background: #0f172a;
  border-color: #1e293b;
}
.dark code[class*="language-"] {
  color: #e2e8f0;
}
.dark :not(pre) > code[class*="language-"] {
  background: #1e293b;
  padding: 0.2em 0.4em;
  border-radius: 0.25em;
}

/* Mermaid diagram styling */
.mermaid {
  background: #ffffff;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  text-align: center;
}
.dark .mermaid {
  background: #111827;
}

/* Focus & Selection styles */
::selection {
  background-color: #6366f1;
  color: #ffffff;
}
.dark ::selection {
  background-color: #818cf8;
  color: #0b1121;
}

*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 4px;
}
.dark *:focus-visible {
  outline-color: #818cf8;
}

/* Smooth card image zoom on hover */
.group img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover img {
  transform: scale(1.05);
}

/* Better checkbox/toggle transitions */
button:active {
  transform: scale(0.95);
}

/* Fade-in animation for HTMX swaps */
.htmx-added {
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Prose image styling */
.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Prose table styling */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9em;
}
.prose thead {
  border-bottom: 2px solid #e2e8f0;
}
.dark .prose thead {
  border-bottom-color: #334155;
}
.prose th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #1e293b;
  background: #f8fafc;
}
.dark .prose th {
  color: #f1f5f9;
  background: #1e293b;
}
.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: #475569;
}
.dark .prose td {
  border-bottom-color: #1e293b;
  color: #94a3b8;
}
.prose tbody tr:hover {
  background: #f8fafc;
}
.dark .prose tbody tr:hover {
  background: #1e293b;
}

/* Prose heading spacing */
.prose h1, .prose h2, .prose h3, .prose h4 {
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}
.prose h1 { font-size: 1.875em; }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.25em; }
.prose h4 { font-size: 1.1em; }

/* Prose paragraph spacing */
.prose p {
  margin-bottom: 1.25em;
  line-height: 1.8;
}

/* Prose list spacing */
.prose ul, .prose ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.prose li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* Smooth prose link underline */
.prose a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.2s ease-out;
}
.prose a:hover {
  background-size: 100% 2px;
}

/* =========================================================
   HERO ENHANCEMENTS
   ========================================================= */

/* Animated dot-grid overlay */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  animation: grid-drift 20s ease-in-out infinite alternate;
}
.dark .hero-dot-grid {
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
}
@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 14px 14px; }
}

/* Floating badge pill above H1 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-family: var(--font-handwriting);
  font-weight: 500;
  color: #818cf8;
  animation: float-badge 4s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Additional hero orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   SCROLL REVEAL SYSTEM
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   STATS STRIP
   ========================================================= */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem 1rem;
}
.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   HOW IT WORKS — STEP CONNECTOR
   ========================================================= */
.step-connector {
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(100% + 0.5rem);
  width: calc(100% - 1rem);
  height: 1px;
  border-top: 2px dashed rgba(99, 102, 241, 0.25);
  display: none;
}
@media (min-width: 768px) {
  .step-connector::after { display: block; }
}
.step-connector:last-child::after { display: none; }

/* =========================================================
   ARTICLE CARDS (Home)
   ========================================================= */
.article-category-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.dark .article-category-tag {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
}

/* Hide scrollbars for clean horizontal tab rows */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}





/* Editorial discovery and focused reading */
:root { --editorial-accent: #4f46e5; }
.dark { --editorial-accent: #a5b4fc; }
.site-header { position: sticky; top: 0; z-index: 40; }
.nav-search { display: inline-flex; gap: 7px; align-items: center; min-height: 40px; padding: 8px; font-size: 13px; color: var(--text-secondary); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.editorial-shell { max-width: 1248px; margin: 0 auto; padding: 0 32px 72px; }
.eyebrow { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--editorial-accent); }
.discovery-intro { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 60px; padding: 64px 0 42px; }
.discovery-intro h1 { font-size: clamp(40px, 4.6vw, 62px); font-weight: 600; line-height: 1.06; letter-spacing: -.045em; color: var(--text-primary); margin: 16px 0 20px; }
.discovery-intro h1 span { color: var(--editorial-accent); }
.intro-copy { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
.discovery-search { max-width: 400px; width: 100%; justify-self: end; }
.discovery-search label { display: block; font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.search-field, .library-search { display: flex; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
.search-field:focus-within, .library-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.search-field input, .library-search input { min-width: 0; flex: 1; background: transparent; border: 0; padding: 10px; color: var(--text-primary); font-size: 14px; }
.search-field input::placeholder, .library-search input::placeholder { color: var(--text-secondary); }
.search-field button { background: #4f46e5; color: white; border-radius: 8px; width: 44px; font-size: 22px; }
.discovery-search > p { font-size: 12px; margin-top: 12px; color: var(--text-secondary); }
.spotlight-grid { display: grid; grid-template-columns: 1.75fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.spotlight-card { min-width: 0; border: 1px solid var(--border); background: var(--bg-card); border-radius: 18px; overflow: hidden; transition: border-color .2s, transform .2s; }
.spotlight-card:hover, .reading-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.spotlight-lead { grid-row: span 2; display: grid; grid-template-columns: 1fr; background: #121c34; color: white; }
.spotlight-art { position: relative; height: 190px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 65% 20%, #6352bb 0, #26375a 45%, #15213b 85%); }
.spotlight-art img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-copy { padding: 24px; }
.spotlight-copy .card-meta { margin-bottom: 22px; }
.card-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 11px; color: var(--text-secondary); }
.card-meta > :last-child { flex-shrink: 0; }
.topic-label { font-size: 11px; font-weight: 600; color: var(--editorial-accent); }
.spotlight-copy h2 { font-size: 21px; line-height: 1.28; font-weight: 600; letter-spacing: -.025em; color: var(--text-primary); margin: 8px 0 16px; }
.spotlight-lead h2 { font-size: clamp(23px, 2.4vw, 32px); color: #fff; }
.spotlight-lead .card-meta, .spotlight-lead p { color: #cbd5e1; }
.spotlight-lead .topic-label, .spotlight-lead .read-link { color: #c4b5fd; }
.spotlight-lead p { font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.read-link { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--editorial-accent); }
.art-code { font: 600 74px ui-monospace, monospace; letter-spacing: -.09em; opacity: .8; }
.art-caption { position: absolute; bottom: 16px; left: 22px; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.article-library { margin-top: 58px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h1, .section-heading h2 { font-size: clamp(26px, 3vw, 34px); color: var(--text-primary); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; margin-top: 9px; }
.library-count { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.library-search { max-width: 600px; margin-bottom: 24px; }
.topic-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.topic-filters a, .article-tags a { padding: 10px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; background: var(--bg-card); color: var(--text-secondary); }
.topic-filters a:hover, .article-tags a:hover { border-color: var(--accent); color: var(--editorial-accent); }
.topic-filters a[aria-current] { color: white; background: #4f46e5; border-color: #4f46e5; }
.topic-filters a span { opacity: .75; margin-left: 5px; }
.reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reading-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); overflow: hidden; transition: border-color .2s, transform .2s; }
.reading-card-art { aspect-ratio: 16 / 9; position: relative; display: flex; align-items: center; justify-content: center; color: #4f46e5; background: radial-gradient(ellipse at 70% 20%, #ddd6fe, #eef2ff 75%); }
.art-variant-b { color: #0f766e; background: radial-gradient(ellipse at 70% 20%, #a7f3d0, #ecfdf5 75%); }
.dark .reading-card-art { background: #24254c; color: #c4b5fd; }
.dark .art-variant-b { background: #163534; color: #6ee7b7; }
.reading-card-art img { width: 100%; height: 100%; object-fit: cover; }
.reading-card-body { padding: 23px; display: flex; flex-direction: column; flex: 1; }
.reading-card h3 { font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; color: var(--text-primary); margin: 14px 0 10px; }
.reading-card-body > p { font-family: system-ui, sans-serif; font-size: 13px; line-height: 1.7; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 24px; }
.reading-card-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.reading-card-footer time { font-size: 11px; color: var(--text-secondary); }
.learning-strip { margin-top: 64px; padding: 32px; border: 1px solid var(--border); background: var(--accent-light); border-radius: 16px; display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.learning-strip h2, .reader-newsletter h2 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; color: var(--text-primary); margin: 9px 0; }
.learning-strip p:not(.eyebrow) { color: var(--text-secondary); font-size: 14px; }
.learning-actions { display: grid; gap: 12px; }
.learning-actions a { display: flex; justify-content: space-between; gap: 28px; color: var(--editorial-accent); font-size: 14px; font-weight: 600; }
.editorial-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 8px; background: #4f46e5; color: #fff; font-size: 14px; }
.reading-empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--border); border-radius: 16px; }
.reading-empty > span { font-size: 40px; }
.reading-empty h2 { font-size: 24px; color: var(--text-primary); }
.reading-empty p { margin: 10px 0 24px; }
.article-shell { max-width: 1180px; }
.article-breadcrumb { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--text-secondary); padding: 32px 0; }
.article-breadcrumb a:hover { color: var(--editorial-accent); }
.article-heading { max-width: 820px; margin-bottom: 40px; }
.article-heading h1 { color: var(--text-primary); font-size: clamp(32px, 4vw, 50px); line-height: 1.13; font-weight: 600; letter-spacing: -.04em; margin: 16px 0 22px; }
.article-deck { font-family: system-ui, sans-serif; font-size: 17px; line-height: 1.75; color: var(--text-secondary); }
.article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-secondary); padding-top: 24px; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 740px) 240px; gap: 64px; align-items: start; }
.article-main { min-width: 0; }
.article-cover { margin: 0 0 32px; }
.article-cover img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); }
.article-prose { max-width: 70ch; font-family: system-ui, sans-serif; font-size: 18px; color: var(--text-primary); line-height: 1.8; overflow-wrap: anywhere; }
.article-prose :is(h1, h2, h3, h4) { font-family: var(--font-sans); color: var(--text-primary); scroll-margin-top: 110px; letter-spacing: -.025em; }
.article-prose :is(p, li) { color: var(--text-secondary); }
.article-prose a { color: var(--editorial-accent); text-decoration: underline; text-underline-offset: 3px; }
.article-prose pre { max-width: 100%; overflow-x: auto; }
.article-prose table { display: block; max-width: 100%; overflow-x: auto; }
.reader-sidebar { align-self: stretch; }
.reader-sidebar-inner { position: sticky; top: 100px; }
.desktop-toc ol, .mobile-toc ol { list-style: none; margin: 16px 0 0; padding: 0; }
.desktop-toc ol { max-height: 48vh; overflow-y: auto; }
[data-toc-list] a { display: block; padding: 8px 12px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); border-left: 2px solid var(--border); }
[data-toc-list] a:hover, [data-toc-list] a[aria-current] { color: var(--editorial-accent); background: var(--accent-light); border-color: var(--accent); }
.toc-subsection a { padding-left: 24px; font-size: 12px; }
.reader-practice { padding: 24px 0; margin-top: 24px; border-top: 1px solid var(--border); }
.practice-symbol { display: block; color: var(--editorial-accent); font: 24px ui-monospace, monospace; margin-bottom: 16px; }
.reader-practice h2 { font-size: 20px; font-weight: 600; color: var(--text-primary); }
.reader-practice p { font-size: 13px; line-height: 1.7; margin: 8px 0 16px; color: var(--text-secondary); }
.reader-practice a { display: block; font-size: 12px; color: var(--editorial-accent); padding: 8px 0; }
.mobile-toc { display: none; }
.reading-progress { position: fixed; top: 64px; height: 3px; left: 0; right: 0; z-index: 45; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: #818cf8; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0; }
.read-next { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.read-next h2 { font-size: 28px; color: var(--text-primary); margin: 8px 0; font-weight: 600; }
.read-next > p:not(.eyebrow) { color: var(--text-secondary); font-size: 14px; }
.read-next > a { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--border); }
.read-next h3 { color: var(--text-primary); font-size: 19px; font-weight: 600; }
.read-next a:hover h3 { color: var(--editorial-accent); }
.read-next a p { margin: 8px 0; font-size: 14px; color: var(--text-secondary); }
.read-next a span { font-size: 12px; color: var(--editorial-accent); }
.reader-newsletter { margin-top: 40px; padding: 28px; background: var(--accent-light); border-radius: 14px; }
.reader-newsletter > p:not(.eyebrow) { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
[hidden] { display: none !important; }
@media (max-width: 1023px) {
  .reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-intro { gap: 32px; }
  .reading-layout { grid-template-columns: minmax(0, 1fr); }
  .reader-sidebar { display: none; }
  .article-main { max-width: 740px; margin: 0 auto; width: 100%; }
  .mobile-toc { display: block; margin-bottom: 28px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
  .mobile-toc summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-primary); }
}
@media (max-width: 700px) {
  .editorial-shell { padding: 0 20px 48px; }
  .discovery-intro { grid-template-columns: 1fr; padding: 36px 0 28px; gap: 26px; }
  .discovery-intro h1 { font-size: 44px; }
  .discovery-search { max-width: none; }
  .desktop-break { display: none; }
  .spotlight-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 12px; }
  .spotlight-lead { grid-row: auto; }
  .spotlight-card:not(.spotlight-lead) .spotlight-copy { padding: 20px; }
  .spotlight-card:not(.spotlight-lead) .card-meta { margin-bottom: 10px; }
  .spotlight-copy h2 { font-size: 21px; }
  .spotlight-art { height: 175px; }
  .section-heading { display: block; }
  .library-count { display: block; margin-top: 12px; }
  .topic-filters { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 12px; }
  .topic-filters a { white-space: nowrap; flex-shrink: 0; }
  .reading-grid { grid-template-columns: 1fr; gap: 20px; }
  .article-library { margin-top: 40px; }
  .learning-strip { display: block; padding: 24px; margin-top: 40px; }
  .learning-actions { margin-top: 24px; }
  .article-breadcrumb { padding: 24px 0; }
  .article-heading h1 { font-size: 34px; }
  .article-deck { font-size: 16px; }
  .article-prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .spotlight-card:hover, .reading-card:hover { transform: none; }
}
/* Preserve informative cover artwork instead of cropping diagrams. */
.spotlight-art:has(img) { background: #e8edf4; }
.spotlight-art img { object-fit: contain; }

/* Compact discovery: keep the library close to the first screen. */
.discovery-page .discovery-intro { padding: 32px 0 26px; gap: 40px; }
.discovery-page .discovery-intro h1 { max-width: 600px; font-size: clamp(30px, 3.3vw, 44px); margin: 10px 0 12px; }
.discovery-page .discovery-intro h1 span { display: block; }
.discovery-page .intro-copy { font-size: 15px; }
.discovery-page .spotlight-grid { grid-template-columns: 1.6fr 1fr; gap: 12px; }
.discovery-page .spotlight-lead { grid-template-columns: 140px minmax(0, 1fr); }
.discovery-page .spotlight-text-only { grid-template-columns: minmax(0, 1fr); }
.discovery-page .spotlight-art { height: 100%; min-height: 180px; }
.discovery-page .spotlight-art img { height: 100%; width: 100%; object-fit: contain; }
.discovery-page .spotlight-copy { padding: 18px 20px; }
.discovery-page .spotlight-copy .card-meta { margin-bottom: 8px; }
.discovery-page .spotlight-copy h2 { font-size: 18px; margin: 6px 0 10px; line-height: 1.35; }
.discovery-page .spotlight-lead h2 { font-size: 24px; }
.discovery-page .spotlight-lead p { font-size: 13px; margin-bottom: 12px; }
.discovery-page .spotlight-card:not(.spotlight-lead) .topic-label { display: none; }
.discovery-page .spotlight-card:not(.spotlight-lead) .read-link { display: none; }
.discovery-page .article-library { margin-top: 34px; }
.discovery-page .reading-card:not(:has(.reading-card-art)) { border-top: 3px solid var(--accent); }
.mobile-topic-picker { display: none; }
.library-note { padding: 24px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-secondary); }

/* Practice workspace */
.practice-page { padding-top: 36px; }
.practice-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.practice-heading h1 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; color: var(--text-primary); max-width: 680px; margin: 12px 0; }
.practice-heading > div > p:not(.eyebrow) { color: var(--text-secondary); line-height: 1.7; font-size: 15px; max-width: 640px; }
.quiet-link { font-size: 13px; color: var(--editorial-accent); padding: 8px 0; display: inline-block; }
.quiet-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.practice-dashboard { display: grid; grid-template-columns: 1fr 1.5fr; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--bg-card); }
.practice-summary { padding: 28px; }
.progress-total { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 20px; }
.progress-total strong { font-size: 46px; line-height: 1; font-weight: 600; color: var(--text-primary); }
.progress-total span { font-size: 14px; color: var(--text-secondary); }
.practice-page progress { display: block; appearance: none; border: 0; height: 6px; width: 100%; background: var(--bg-surface); border-radius: 10px; overflow: hidden; color: var(--accent); }
.practice-page progress::-webkit-progress-bar { background: var(--bg-surface); border-radius: 10px; }
.practice-page progress::-webkit-progress-value { background: var(--accent); border-radius: 10px; }
.practice-page progress::-moz-progress-bar { background: var(--accent); border-radius: 10px; }
.progress-note { font-size: 12px; color: var(--text-secondary); margin-top: 12px; }
.practice-next { padding: 28px; background: var(--accent-light); border-left: 1px solid var(--border); }
.practice-next h2 { margin: 10px 0 6px; color: var(--text-primary); font-weight: 600; font-size: 25px; line-height: 1.3; }
.practice-next > p:not(.eyebrow) { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.practice-next .editorial-button { gap: 20px; }
.practice-topics, .practice-roadmaps { margin-top: 40px; }
.practice-search { display: flex; align-items: center; gap: 12px; max-width: 620px; margin-bottom: 24px; }
.practice-search input { flex: 1; min-width: 0; }
.practice-search input, .problem-filters :is(input, select), .mobile-topic-picker select { border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); border-radius: 8px; min-height: 44px; padding: 10px 12px; font-size: 14px; }
.practice-search input::placeholder, .problem-filters input::placeholder { color: var(--text-secondary); }
.practice-topic-grid, .roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.practice-topic-card { display: flex; flex-direction: column; padding: 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s; }
.practice-topic-card:hover { border-color: var(--accent); }
.topic-card-top { display: flex; justify-content: space-between; color: var(--editorial-accent); }
.topic-state { color: var(--text-secondary); font-size: 11px; }
.practice-topic-card h3 { color: var(--text-primary); font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin: 12px 0 8px; }
.practice-topic-card > p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.topic-card-progress { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-top: auto; margin-bottom: 12px; padding-top: 12px; }
.roadmap-card { display: block; padding: 24px; border: 1px solid var(--border); border-radius: 12px; }
.roadmap-card:hover { border-color: var(--accent); }
.roadmap-card h3 { font-size: 21px; font-weight: 600; color: var(--text-primary); margin: 12px 0; }
.roadmap-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.practice-checklist { max-width: 1080px; padding-top: 0; }
.topic-progress-summary { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); margin-bottom: 28px; }
.topic-progress-summary > div { flex: 1; max-width: 420px; }
.topic-progress-summary progress { margin-top: 12px; }
.topic-progress-summary p { color: var(--text-secondary); font-size: 14px; }
.topic-progress-summary strong { color: var(--text-primary); }
.topic-progress-summary .progress-note { font-size: 12px; }
.problem-filters { display: grid; grid-template-columns: minmax(180px, 1fr) 150px 170px auto; gap: 12px; align-items: end; }
.problem-filters label { display: block; color: var(--text-secondary); font-size: 12px; margin-bottom: 8px; }
.problem-filters :is(input, select) { width: 100%; }
.problem-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; gap: 12px; }
.problem-list-heading p { color: var(--text-primary); font-size: 13px; }
.problem-list-heading p span { color: var(--text-secondary); }
.practice-problem-list { border: 1px solid var(--border); background: var(--bg-card); border-radius: 12px; overflow: hidden; }
.practice-problem-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; align-items: center; gap: 18px; padding: 18px 22px; }
.practice-problem-row + .practice-problem-row { border-top: 1px solid var(--border); }
.practice-problem-row:hover { background: var(--bg-primary); }
.problem-title-link { display: block; }
.problem-title-link strong { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.problem-title-link:hover strong { color: var(--editorial-accent); }
.problem-title-link > span { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 5px; }
.progress-toggle { width: 44px; min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-secondary); cursor: pointer; }
.progress-toggle:hover { border-color: var(--accent); color: var(--editorial-accent); }
.progress-toggle.is-complete { background: #15803d; color: white; border-color: #15803d; }
.progress-toggle:disabled { opacity: .6; cursor: wait; }
.difficulty-badge { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 6px; }
.difficulty-easy { color: #166534; background: #dcfce7; }
.difficulty-medium { color: #92400e; background: #fef3c7; }
.difficulty-hard { color: #9f1239; background: #ffe4e6; }
.dark .difficulty-easy { color: #86efac; background: #15392b; }
.dark .difficulty-medium { color: #fde68a; background: #42351e; }
.dark .difficulty-hard { color: #fda4af; background: #461f31; }
.problem-row-arrow { color: var(--text-secondary); }
.worked-solution { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); overflow: hidden; }
.worked-solution summary { cursor: pointer; padding: 20px 24px; color: var(--text-primary); font-size: 17px; font-weight: 600; }
.worked-solution summary span { display: block; font-size: 12px; font-weight: 400; color: var(--text-secondary); margin: 6px 0 0 18px; }
.worked-solution[open] summary { border-bottom: 1px solid var(--border); }
.practice-lesson .prose { font-family: system-ui, sans-serif; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.practice-lesson .prose pre { overflow-x: auto; }
.practice-lesson .prose table { display: block; overflow-x: auto; }
.practice-lesson .grid > div, .practice-lesson .grid > aside { min-width: 0; }
.lesson-next { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--accent-light); }
.lesson-next > a { display: block; }
.lesson-next strong { display: block; font-size: 21px; font-weight: 600; color: var(--text-primary); margin-top: 14px; }
.lesson-next a > span { display: block; color: var(--text-secondary); font-size: 13px; margin: 8px 0 16px; }
@media (max-width: 1023px) {
  .practice-topic-grid, .roadmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-heading { display: block; }
  .practice-heading > .quiet-link { margin-top: 8px; }
  .discovery-page .spotlight-lead { grid-template-columns: minmax(0, 1fr); }
  .discovery-page .spotlight-art { display: none; }
}
@media (max-width: 700px) {
  .discovery-page .discovery-intro { padding: 24px 0 20px; gap: 18px; }
  .discovery-page .discovery-intro h1 { font-size: 32px; }
  .discovery-page .discovery-intro .eyebrow { font-size: 10px; }
  .discovery-page .discovery-search label { font-size: 13px; margin-bottom: 8px; }
  .discovery-page .spotlight-grid { display: block; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .discovery-page .spotlight-card { display: block; border: 0; border-radius: 0; }
  .discovery-page .spotlight-card:hover { transform: none; }
  .discovery-page .spotlight-lead h2 { font-size: 20px; }
  .discovery-page .spotlight-copy { padding: 16px; }
  .discovery-page .spotlight-lead p { display: none; }
  .discovery-page .spotlight-lead .read-link { display: none; }
  .discovery-page .spotlight-card:not(.spotlight-lead) { border-top: 1px solid var(--border); }
  .discovery-page .spotlight-card:not(.spotlight-lead) .spotlight-copy { padding: 12px 16px; }
  .discovery-page .spotlight-card:not(.spotlight-lead) .card-meta { margin-bottom: 4px; }
  .discovery-page .spotlight-card:not(.spotlight-lead) .card-meta > span:first-child { display: none; }
  .discovery-page .spotlight-card:not(.spotlight-lead) h2 { font-size: 15px; margin: 0; }
  .discovery-page .section-heading { margin-bottom: 16px; }
  .discovery-page .section-heading h2 { font-size: 25px; }
  .discovery-page .article-library { margin-top: 26px; }
  .discovery-page .topic-filters { display: none; }
  .mobile-topic-picker { display: block; margin-bottom: 22px; }
  .mobile-topic-picker label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
  .mobile-topic-picker > div { display: flex; gap: 8px; }
  .mobile-topic-picker select { flex: 1; min-width: 0; }
  .mobile-topic-picker button { padding: 10px 14px; min-height: 44px; border-radius: 8px; background: var(--accent-light); color: var(--editorial-accent); font-size: 13px; }
  .practice-page { padding-top: 24px; }
  .practice-heading h1 { font-size: 30px; }
  .practice-dashboard { grid-template-columns: 1fr; }
  .practice-summary, .practice-next { padding: 20px; }
  .practice-next { border-left: 0; border-top: 1px solid var(--border); }
  .progress-total { margin: 12px 0; }
  .progress-total strong { font-size: 34px; }
  .practice-topic-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .practice-topics, .practice-roadmaps { margin-top: 30px; }
  .practice-topic-card { padding: 20px; }
  .practice-checklist { padding-top: 0; }
  .topic-progress-summary { display: block; padding: 18px; }
  .topic-progress-summary > .editorial-button { margin-top: 18px; }
  .problem-filters { grid-template-columns: 1fr 1fr; }
  .problem-filters .problem-search, .problem-filters > button { grid-column: 1 / -1; }
  .practice-problem-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 16px 12px; }
  .problem-title-link strong { font-size: 14px; }
  .problem-title-link > span { font-size: 11px; }
  .problem-row-arrow { display: none; }
  .difficulty-badge { padding: 4px 6px; font-size: 10px; }
}

/* Interview practice: questions first, explanations on request. */
.interview-page { padding-top: 36px; }
.interview-page .practice-heading { margin-bottom: 26px; }
.interview-library-count { color: var(--text-secondary); font-size: 13px; white-space: nowrap; }
.interview-library-count strong { color: var(--text-primary); font-size: 23px; font-weight: 600; margin-right: 4px; }
.interview-search { display: grid; grid-template-columns: minmax(180px, 1fr) 240px auto; gap: 12px; align-items: end; padding: 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.interview-search label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.interview-search :is(input, select) { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--text-primary); background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.interview-search input::placeholder { color: var(--text-secondary); }
.interview-subjects { margin-top: 36px; }
.interview-subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.interview-subject-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: border-color .2s; }
.interview-subject-card:hover { border-color: var(--accent); }
.subject-card-meta { display: flex; justify-content: space-between; align-items: center; color: var(--editorial-accent); font-size: 12px; }
.interview-subject-card h3 { color: var(--text-primary); font-weight: 600; font-size: 24px; letter-spacing: -.025em; line-height: 1.25; margin: 16px 0 22px; }
.subject-sample-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-secondary); margin-bottom: 8px; }
.subject-sample { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin-bottom: 24px; }
.interview-subject-card .read-link { margin-top: auto; border-top: 1px solid var(--border); padding-top: 16px; }
.interview-method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--border); margin-top: 48px; padding-top: 32px; }
.interview-method > div > span { font: 13px ui-monospace, monospace; color: var(--editorial-accent); }
.interview-method h2 { color: var(--text-primary); font-size: 18px; font-weight: 600; margin: 12px 0 8px; }
.interview-method p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.interview-results-heading { margin-top: 32px; }
.interview-results-count { font-size: 13px; color: var(--text-secondary); margin-top: 12px; }
.interview-practice-hint { color: var(--text-secondary); font-size: 13px; margin: 0 0 18px; line-height: 1.6; }
.interview-detail { padding-top: 0; }
.interview-detail .practice-heading h1 { font-size: clamp(28px, 3.2vw, 40px); }
.interview-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 40px; }
.interview-main { min-width: 0; }
.subject-question-search { grid-template-columns: minmax(0, 1fr) auto; padding: 18px; }
.interview-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 16px; }
.interview-list-toolbar h2 { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.interview-list-toolbar > span { font-size: 12px; color: var(--text-secondary); }
.interview-question-list { display: grid; gap: 12px; }
.interview-question { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); scroll-margin-top: 90px; }
.interview-question[open] { border-color: var(--accent); }
.interview-question summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px; cursor: pointer; color: var(--text-primary); border-radius: 12px; }
.interview-question summary::-webkit-details-marker { display: none; }
.interview-question summary::marker { content: ''; }
.interview-question summary:hover { background: var(--bg-primary); }
.question-number { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: var(--accent-light); color: var(--editorial-accent); font-size: 12px; }
.question-heading { flex: 1; font-size: 16px; font-weight: 600; line-height: 1.5; }
.question-subject { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 11px; font-weight: 400; }
.question-disclosure { display: flex; align-items: center; gap: 12px; color: var(--editorial-accent); font-size: 11px; flex-shrink: 0; }
.disclosure-icon { font-size: 24px; line-height: 1; }
.hide-label { display: none; }
.interview-question[open] .hide-label { display: inline; }
.interview-question[open] .reveal-label { display: none; }
.interview-question[open] .disclosure-icon { transform: rotate(45deg); }
.interview-answer { padding: 24px 28px 24px 66px; border-top: 1px solid var(--border); }
.interview-answer > .eyebrow { margin-bottom: 16px; }
.interview-prose { font-family: system-ui, sans-serif; max-width: 70ch; font-size: 16px; line-height: 1.8; color: var(--text-secondary); overflow-wrap: anywhere; }
.interview-prose :is(h1, h2, h3, h4, strong) { color: var(--text-primary); }
.interview-prose :is(h1, h2, h3, h4) { font-family: var(--font-sans); }
.interview-prose a { color: var(--editorial-accent); text-decoration: underline; text-underline-offset: 3px; }
.interview-prose pre { max-width: 100%; overflow-x: auto; }
.interview-prose table { display: block; max-width: 100%; overflow-x: auto; }
.interview-prose > :first-child { margin-top: 0; }
.interview-prose > :last-child { margin-bottom: 0; }
.interview-takeaways { padding: 20px; margin-top: 24px; background: var(--accent-light); border-radius: 10px; }
.interview-takeaways h3, .interview-followups h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.interview-takeaways ul { list-style: disc; padding-left: 20px; color: var(--text-secondary); font: 14px/1.8 system-ui, sans-serif; }
.interview-takeaways li + li { margin-top: 6px; }
.interview-followups { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; }
.followup-prompt { font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; }
.answer-next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; }
.answer-next:empty { display: none; }
.answer-next a { color: var(--editorial-accent); font-size: 12px; padding: 10px 0; }
.answer-next a:hover { text-decoration: underline; }
.interview-sidebar-inner { position: sticky; top: 96px; }
.interview-sidebar nav > p { margin-bottom: 16px; }
.interview-sidebar nav a, .interview-mobile-subjects nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; min-height: 44px; font-size: 13px; color: var(--text-secondary); border-radius: 8px; margin-bottom: 4px; }
.interview-sidebar nav a span, .interview-mobile-subjects nav a span { font-size: 11px; }
.interview-sidebar nav a:hover, .interview-mobile-subjects nav a:hover { background: var(--bg-surface); }
.interview-sidebar a[aria-current], .interview-mobile-subjects a[aria-current] { background: var(--accent-light); color: var(--editorial-accent); font-weight: 600; }
.interview-practice-note { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; }
.interview-practice-note h2 { font-size: 21px; font-weight: 600; color: var(--text-primary); margin: 12px 0; }
.interview-practice-note > p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: var(--text-secondary); }
.interview-mobile-subjects { display: none; }
.interview-related { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 28px; }
.interview-related h2 { font-size: 26px; font-weight: 600; color: var(--text-primary); margin: 8px 0; }
.interview-related > p:not(.eyebrow) { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.interview-related a { display: flex; justify-content: space-between; gap: 20px; color: var(--text-primary); font-size: 15px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.interview-related a:hover { color: var(--editorial-accent); }
.interview-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: 12px; color: var(--text-secondary); }
.interview-pagination a { color: var(--editorial-accent); min-height: 44px; display: inline-flex; align-items: center; padding: 8px; }
.interview-page #questions { scroll-margin-top: 90px; }
@media (max-width: 1023px) {
  .interview-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interview-library-count { margin-top: 16px; }
  .interview-layout { grid-template-columns: minmax(0, 1fr); }
  .interview-sidebar { display: none; }
  .interview-mobile-subjects { display: block; margin-top: 16px; border: 1px solid var(--border); background: var(--bg-card); border-radius: 10px; padding: 0 14px; }
  .interview-mobile-subjects summary { cursor: pointer; padding: 14px 0; font-size: 13px; color: var(--text-primary); }
  .interview-mobile-subjects nav { padding-bottom: 10px; }
}
@media (max-width: 700px) {
  .interview-page { padding-top: 24px; }
  .interview-detail { padding-top: 0; }
  .interview-page .practice-heading h1 { font-size: 30px; }
  .interview-library-count { white-space: normal; }
  .interview-search { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
  .interview-search .interview-query { grid-column: 1 / -1; }
  .subject-question-search { grid-template-columns: minmax(0, 1fr); }
  .interview-subjects { margin-top: 28px; }
  .interview-subject-grid, .interview-method { grid-template-columns: minmax(0, 1fr); }
  .interview-subject-card { padding: 20px; }
  .interview-subject-card h3 { font-size: 22px; margin: 12px 0 18px; }
  .interview-method { gap: 24px; }
  .interview-list-toolbar { align-items: start; }
  .interview-list-toolbar > span { max-width: 100px; text-align: right; }
  .interview-question summary { padding: 16px 12px; gap: 10px; align-items: start; }
  .question-heading { font-size: 15px; }
  .question-number { width: 24px; height: 24px; font-size: 11px; }
  .question-disclosure { padding-top: 2px; }
  .question-disclosure :is(.reveal-label, .hide-label) { display: none !important; }
  .interview-answer { padding: 20px 16px; }
  .interview-prose { font-size: 15px; }
  .interview-takeaways { padding: 16px; }
  .interview-results-heading .quiet-link { margin-top: 10px; }
}

/* Guided learning paths */
.learning-page { padding-top: 44px; padding-bottom: 64px; }
.path-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.path-card { display:flex; flex-direction:column; padding:32px; background:var(--bg-card); border:1px solid var(--border); border-radius:16px; }
.path-card:hover { border-color:var(--accent); }
.path-card h2 { font-size:28px; font-weight:600; letter-spacing:-.03em; color:var(--text-primary); margin:16px 0; }
.path-card p:not(.eyebrow), .path-how p, .path-intro-grid p, .path-step-content > p:not(.eyebrow), .path-continuation > p:not(.eyebrow) { color:var(--text-secondary); line-height:1.8; }
.path-card-footer { display:flex; justify-content:space-between; gap:16px; margin-top:auto; padding-top:32px; font-size:13px; color:var(--text-secondary); }
.path-card-footer strong { color:var(--accent); font-weight:600; }
.path-how { margin-top:48px; max-width:720px; }
.path-how h2, .path-continuation h2 { color:var(--text-primary); font-size:26px; font-weight:600; margin:12px 0; }
.path-how p { margin:12px 0; }
.path-intro-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; margin:28px 0; }
.path-intro-grid h2 { font-weight:600; color:var(--text-primary); margin-bottom:8px; }
.path-progress { padding:24px; border:1px solid var(--border); border-radius:12px; background:var(--bg-card); margin:28px 0; }
.path-progress > p:first-child { font-weight:600; color:var(--text-primary); margin-bottom:14px; }
.path-progress progress { width:100%; height:8px; accent-color:var(--accent); margin-bottom:20px; }
.path-storage-note { font-size:12px; line-height:1.7; color:var(--text-secondary); margin-top:14px; }
.path-steps { list-style:none; padding:0; margin:32px 0; }
.path-steps > li { display:flex; gap:24px; padding:28px 0; border-top:1px solid var(--border); }
.path-step-number { font-size:24px; letter-spacing:-.04em; color:var(--accent); min-width:42px; }
.path-step-content { flex:1; min-width:0; }
.path-step-content h2 { font-size:23px; color:var(--text-primary); font-weight:600; margin:8px 0; }
.path-step-actions, .path-next-links { display:flex; flex-wrap:wrap; align-items:center; gap:20px; margin-top:18px; }
.path-step-actions label, .path-continuation label { font-size:14px; color:var(--text-primary); cursor:pointer; }
.path-step-actions input, .path-continuation input { width:17px; height:17px; accent-color:var(--accent); vertical-align:middle; margin-right:6px; }
.path-steps .is-complete .path-step-number { color:var(--text-secondary); }
.path-steps .is-complete h2::after { content:' ✓'; color:var(--accent); }
.path-reading-banner { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:24px; color:var(--text-secondary); font-size:13px; }
.path-reading-banner a { color:var(--accent); }
.path-continuation { border-top:1px solid var(--border); padding-top:32px; padding-bottom:48px; }
.path-continuation label { display:inline-block; margin-top:16px; }
.path-continuation [hidden] { display:none; }
.path-next-links > a:not(.editorial-button) { color:var(--accent); font-size:14px; }
@media (max-width:700px) {
 .path-grid, .path-intro-grid { grid-template-columns:1fr; gap:20px; }
 .learning-page { padding-top:28px; }
 .path-card { padding:24px; }
 .path-card h2 { font-size:25px; }
 .path-card-footer { flex-wrap:wrap; }
 .path-steps > li { gap:12px; }
 .path-step-number { font-size:20px; min-width:30px; }
 .path-step-content h2 { font-size:21px; }
 .path-next-links { align-items:stretch; flex-direction:column; }
}

/* Learning usability: a clear start, visible progress, and reachable controls. */
.path-progress { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:24px; align-items:center; }
.path-progress > p:first-child { margin:0 0 12px; }
.path-progress progress { display:block; grid-column:1; grid-row:2; margin:0; height:8px; border:0; border-radius:20px; overflow:hidden; appearance:none; background:var(--bg-surface); }
.path-progress progress::-webkit-progress-bar { background:var(--bg-surface); border-radius:20px; }
.path-progress progress::-webkit-progress-value { background:var(--editorial-accent); border-radius:20px; }
.path-progress progress::-moz-progress-bar { background:var(--editorial-accent); border-radius:20px; }
.path-progress [data-continue] { grid-column:2; grid-row:1 / 3; min-height:46px; }
.path-progress .path-storage-note { grid-column:1 / -1; margin-top:16px; }
.path-curriculum-heading { display:flex; justify-content:space-between; gap:16px; align-items:baseline; margin-top:42px; }
.path-curriculum-heading h2 { font-size:24px; font-weight:600; letter-spacing:-.025em; color:var(--text-primary); }
.path-curriculum-heading > span { font-size:13px; color:var(--text-secondary); }
.path-steps { margin-top:20px; }
.path-steps > li { padding:24px; border:1px solid var(--border); border-radius:14px; background:var(--bg-card); margin-bottom:14px; }
.path-step-content h2 { line-height:1.4; font-size:21px; max-width:800px; }
.path-step-content h2 a:hover { color:var(--editorial-accent); }
.path-step-actions { justify-content:space-between; gap:12px; }
.path-step-actions > a { display:inline-flex; align-items:center; min-height:44px; }
.path-step-actions label, .path-continuation label { display:inline-flex; align-items:center; min-height:44px; padding:8px 12px; border:1px solid var(--border); border-radius:8px; background:var(--bg-primary); }
.path-step-actions label[hidden] { display:none; }
.path-step-actions label:has(input:checked), .path-continuation label:has(input:checked) { border-color:var(--editorial-accent); }
.path-continuation-inline { margin-top:36px; padding:24px; border:1px solid var(--border); border-radius:14px; background:var(--bg-card); }
.path-continuation-inline .path-next-links { align-items:stretch; }
.path-continuation-inline .path-next-links > a:not(.editorial-button) { display:inline-flex; align-items:center; min-height:44px; }
.path-continuation-inline .path-next-links .editorial-button { display:flex; flex-direction:column; align-items:flex-start; gap:6px; width:100%; line-height:1.5; white-space:normal; }
.path-next-caption { font-size:11px; text-transform:uppercase; letter-spacing:.09em; opacity:.85; }
.code-example { margin:24px 0; min-width:0; border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.code-toolbar { display:flex; justify-content:space-between; align-items:center; padding:0 6px 0 16px; border-bottom:1px solid var(--border); background:var(--bg-surface); font:12px/1.5 system-ui,sans-serif; }
.code-toolbar > span:first-child { text-transform:uppercase; letter-spacing:.06em; color:var(--text-secondary); }
.code-toolbar button { min-height:44px; padding:8px 12px; font-weight:600; color:var(--text-primary); border-radius:6px; }
.code-toolbar button:hover { color:var(--editorial-accent); }
.article-prose .code-example pre { margin:0; border:0; border-radius:0; }
@media(max-width:700px) {
 .path-progress { display:block; padding:20px; }
 .path-progress [data-continue] { display:flex; justify-content:center; margin-top:20px; }
 .path-curriculum-heading { display:block; margin-top:32px; }
 .path-curriculum-heading > span { display:block; margin-top:6px; }
 .path-steps > li { padding:18px 14px; }
 .path-step-content h2 { font-size:19px; }
 .path-step-number { min-width:26px; font-size:18px; }
 .path-step-actions { align-items:flex-start; flex-direction:column; }
 .path-continuation-inline { padding:20px 16px; }
}

.path-progress progress[hidden] { display:none; }
