/* ═══════════════════════════════════════════════════════════
   QUANTIVERSE EDUCATION — content styles (in-app build)
   Generated from education.css: the standalone shell/header styles
   and global resets (body, a, *, .header, .nav, .ticker-*, .user-*,
   .notif-*, .btn-upgrade, .input-search, .theme-toggle-btn, …) are
   removed. The design tokens are scoped to .edu-scope so they style
   the guide body only and never override the real app header/layout.
   Only the .eh-* content classes below are kept.
   ═══════════════════════════════════════════════════════════ */
.edu-scope{
  --font-display:'DM Sans',sans-serif;
  --font-mono:'JetBrains Mono',monospace;
  --font-serif:'Instrument Serif',serif;
  --text-xs:10px;--text-sm:11.5px;--text-base:13px;--text-md:14px;
  --text-lg:16px;--text-xl:20px;--text-2xl:26px;--text-3xl:34px;
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:20px;--sp-6:24px;--sp-8:32px;
  --r-sm:4px;--r-md:6px;--r-lg:10px;--r-xl:14px;--r-pill:9999px;

  --bg-base:#0b0e11;--bg-surface-1:#12161c;--bg-surface-2:#181c25;--bg-surface-3:#1e2330;
  --brand:#f0b90b;--brand-rgb:240,185,11;
  --brand-dim:rgba(240,185,11,0.08);--brand-glow:rgba(240,185,11,0.18);
  --brand-secondary:#2d7ff9;
  --brand-text:#f0b90b;--warning-text:#f0b90b;
  --positive:#0ecb81;--negative:#f6465d;--warning:#f0b90b;
  --text-primary:#eaecef;--text-secondary:#848e9c;--text-tertiary:#5e6673;
  --text-disabled:#474d57;--heading-white:#eaecef;
  --text-meta:#9aa4b0;
  --border-subtle:rgba(234,236,239,0.04);--border-default:rgba(234,236,239,0.08);
  --border-prominent:rgba(234,236,239,0.14);--border-brand:rgba(240,185,11,0.25);

  font-family:var(--font-display);font-size:var(--text-base);line-height:1.55;
  color:var(--text-primary);-webkit-font-smoothing:antialiased;
}
html.light .edu-scope{
  --bg-base:#fafafa;--bg-surface-1:#ffffff;--bg-surface-2:#f5f5f5;--bg-surface-3:#eeeeee;
  --brand:#c99400;--brand-rgb:201,148,0;
  --brand-dim:rgba(201,148,0,0.07);--brand-glow:rgba(201,148,0,0.14);
  --brand-secondary:#1e6feb;
  --brand-text:#8a6800;--warning-text:#8a6800;
  --positive:#03a66d;--negative:#cf304a;--warning:#c99400;
  --text-primary:#1e2329;--text-secondary:#474d57;--text-tertiary:#848e9c;
  --text-disabled:#b7bdc6;--heading-white:#1e2329;
  --text-meta:#5b6470;
  --border-subtle:rgba(30,35,41,0.05);--border-default:rgba(30,35,41,0.08);
  --border-prominent:rgba(30,35,41,0.14);--border-brand:rgba(201,148,0,0.25);
}
.edu-scope *{box-sizing:border-box}
.edu-scope .visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap}
/* .edu-scope a{color:var(--brand-secondary)} */
.edu-scope a:hover{text-decoration:none}
.eh-progress{z-index:210}

/* ── .eh-* content classes (from education.css lines 90-424) ── */
/* ── Layout ───────────────────────────────────────────────── */
.eh-wrap{max-width:1180px;margin:0 auto;padding:36px 20px 80px}
.eh-kicker{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.14em;
  text-transform:uppercase;color:var(--brand-text);font-weight:600}
.eh-section-title{font-size:var(--text-xl);font-weight:700;letter-spacing:-.02em;
  color:var(--heading-white);margin:0 0 6px}
.eh-section-sub{font-size:var(--text-md);color:var(--text-secondary);margin:0 0 18px}
.eh-section{margin:46px 0 0}

/* ── Hero ─────────────────────────────────────────────────── */
.eh-hero{display:grid;grid-template-columns:1.5fr 1fr;gap:44px;align-items:center;margin-bottom:8px}
.eh-hero h1{font-family:var(--font-serif);font-weight:400;font-size:42px;line-height:1.12;
  letter-spacing:-.01em;color:var(--heading-white);margin:14px 0 12px}
.eh-hero p{font-size:var(--text-md);color:var(--text-secondary);line-height:1.65;max-width:560px;margin:0 0 14px}
.eh-trust{display:flex;gap:14px;font-family:var(--font-mono);font-size:var(--text-xs);
  color:var(--text-meta);letter-spacing:.08em;text-transform:uppercase;margin-bottom:20px;flex-wrap:wrap}
.eh-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.eh-btn-primary{display:inline-block;background:var(--brand);color:#0b0e11;font-weight:700;
  font-size:var(--text-md);padding:10px 18px;border-radius:var(--r-md);text-decoration:none;border:none;cursor:pointer}
.eh-btn-primary:hover{text-decoration:none;filter:brightness(1.06)}
.eh-btn-ghost{display:inline-block;background:var(--brand-dim);border:1px solid var(--border-brand);
  color:var(--brand-text);font-weight:700;font-size:var(--text-md);padding:10px 18px;
  border-radius:var(--r-md);text-decoration:none;cursor:pointer}
.eh-btn-ghost:hover{text-decoration:none}
/* journey diagram */
.eh-journey{background:var(--bg-surface-1);border:1px solid var(--border-default);
  border-radius:var(--r-lg);padding:22px}
.eh-journey-title{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.12em;
  color:var(--text-meta);text-transform:uppercase;margin-bottom:14px}
.eh-journey ol{list-style:none;margin:0;padding:0}
.eh-journey li{display:flex;align-items:center;gap:12px;padding:9px 0;position:relative}
.eh-journey li+li::before{content:'';position:absolute;left:13px;top:-9px;width:2px;height:16px;
  background:var(--border-prominent)}
.eh-journey .n{width:28px;height:28px;flex:none;border-radius:var(--r-pill);
  background:var(--brand-dim);border:1px solid var(--border-brand);color:var(--brand-text);
  font-family:var(--font-mono);font-size:var(--text-xs);font-weight:700;
  display:flex;align-items:center;justify-content:center}
.eh-journey .t{font-size:var(--text-md);font-weight:600;color:var(--text-primary)}
.eh-journey .d{font-size:var(--text-sm);color:var(--text-meta)}

/* ── Search ───────────────────────────────────────────────── */
.eh-search-wrap{position:relative;max-width:560px;margin:22px 0 0}
.eh-search-wrap svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--text-tertiary)}
.eh-search{width:100%;background:var(--bg-surface-2);border:1px solid var(--border-default);
  border-radius:var(--r-md);padding:11px 76px 11px 40px;color:var(--text-primary);
  font-size:var(--text-md);font-family:var(--font-display);outline:none}
.eh-search:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-dim)}
.eh-search-clear{position:absolute;right:44px;top:50%;transform:translateY(-50%);
  background:none;border:none;color:var(--text-tertiary);cursor:pointer;padding:6px;display:none}
.eh-search-clear.show{display:block}
.eh-search-clear:hover{color:var(--text-primary)}
.eh-kbd{position:absolute;right:12px;top:50%;transform:translateY(-50%);
  font-family:var(--font-mono);font-size:var(--text-xs);color:var(--text-tertiary);
  border:1px solid var(--border-default);border-radius:4px;padding:2px 7px}
.eh-popular{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px;
  font-size:var(--text-sm);color:var(--text-meta)}
.eh-popular button{background:var(--bg-surface-2);border:1px solid var(--border-default);
  border-radius:var(--r-pill);color:var(--text-secondary);font-size:var(--text-sm);
  padding:4px 12px;cursor:pointer}
.eh-popular button:hover{border-color:var(--border-brand);color:var(--brand-text)}

/* ── Learning paths ───────────────────────────────────────── */
.eh-paths{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.eh-path-card{display:flex;flex-direction:column;gap:10px;background:var(--bg-surface-1);
  border:1px solid var(--border-default);border-radius:var(--r-lg);padding:20px;
  text-decoration:none;color:inherit;transition:transform .15s,border-color .15s}
.eh-path-card:hover{transform:translateY(-2px);border-color:var(--border-prominent);text-decoration:none}
.eh-path-card h3{font-size:var(--text-lg);font-weight:700;letter-spacing:-.01em;
  color:var(--heading-white);margin:0}
.eh-path-card p{font-size:var(--text-sm);color:var(--text-secondary);line-height:1.5;margin:0;flex:1}
.eh-path-meta{display:flex;gap:10px;font-family:var(--font-mono);font-size:var(--text-xs);
  color:var(--text-meta);flex-wrap:wrap}
.eh-path-start{color:var(--brand-text);font-weight:700;font-size:var(--text-sm)}
.eh-path-num{width:34px;height:34px;border-radius:var(--r-md);background:var(--brand-dim);
  border:1px solid var(--border-brand);display:flex;align-items:center;justify-content:center;
  color:var(--brand-text);font-family:var(--font-mono);font-weight:700;font-size:var(--text-sm)}

/* ── Topics ───────────────────────────────────────────────── */
.eh-topics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.eh-topic-card{display:flex;align-items:center;gap:12px;background:var(--bg-surface-1);
  border:1px solid var(--border-default);border-radius:var(--r-lg);padding:14px 16px;
  text-decoration:none;color:inherit;transition:border-color .15s}
.eh-topic-card:hover{border-color:var(--border-brand);text-decoration:none}
.eh-topic-card .name{font-size:var(--text-md);font-weight:700;color:var(--text-primary)}
.eh-topic-card .desc{font-size:var(--text-sm);color:var(--text-meta)}
.eh-topic-card .count{margin-left:auto;font-family:var(--font-mono);font-size:var(--text-xs);
  color:var(--brand-text);background:var(--brand-dim);border-radius:var(--r-pill);padding:3px 10px;flex:none}
/* mobile chips row */
.eh-topic-chips{display:none;gap:8px;overflow-x:auto;padding:4px 2px 10px;scrollbar-width:none}
.eh-topic-chips::-webkit-scrollbar{display:none}
.eh-topic-chips a{flex:none;background:var(--bg-surface-2);border:1px solid var(--border-default);
  border-radius:var(--r-pill);color:var(--text-secondary);font-size:var(--text-sm);
  font-weight:600;padding:7px 14px;text-decoration:none;min-height:24px}
.eh-topic-chips a:hover{color:var(--brand-text);border-color:var(--border-brand);text-decoration:none}

/* ── Article cards ───────────────────────────────────────── */
.eh-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.eh-card{display:flex;flex-direction:column;gap:9px;background:var(--bg-surface-1);
  border:1px solid var(--border-default);border-radius:var(--r-lg);padding:18px;
  text-decoration:none;color:inherit;transition:transform .15s,border-color .15s}
.eh-card:hover{transform:translateY(-2px);border-color:var(--border-prominent);text-decoration:none}
.eh-card-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.eh-card .cat{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.1em;
  text-transform:uppercase;color:var(--brand-text);font-weight:600}
.eh-diff{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.06em;
  color:var(--text-meta);text-transform:uppercase;flex:none}
.eh-card h3{font-size:15px;font-weight:700;color:var(--text-primary);line-height:1.35;
  margin:0;letter-spacing:-.01em}
.eh-card .outcome{font-size:var(--text-sm);color:var(--text-secondary);line-height:1.55;margin:0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.eh-card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;
  padding-top:10px;border-top:1px solid var(--border-subtle);
  font-family:var(--font-mono);font-size:var(--text-xs);color:var(--text-meta)}
.eh-card-foot .arrow{color:var(--brand-text);font-weight:700;transition:transform .15s}
.eh-card:hover .arrow{transform:translateX(3px)}
.eh-card mark{background:var(--brand-dim);color:var(--brand-text);border-radius:2px;padding:0 1px}
.eh-flag{font-family:var(--font-mono);font-size:var(--text-xs);color:#0b0e11;background:var(--brand);
  border-radius:var(--r-sm);padding:2px 8px;font-weight:700;letter-spacing:.06em}

/* ── Archive controls ─────────────────────────────────────── */
.eh-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0 6px}
.eh-select{background:var(--bg-surface-2);border:1px solid var(--border-default);
  border-radius:var(--r-md);color:var(--text-primary);font-size:var(--text-sm);
  font-family:var(--font-display);padding:8px 10px;cursor:pointer;min-height:24px}
.eh-select:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.eh-count{font-family:var(--font-mono);font-size:var(--text-sm);color:var(--text-meta);margin-left:auto}
.eh-clear-filters{background:none;border:none;color:var(--brand-secondary);font-size:var(--text-sm);
  cursor:pointer;text-decoration:underline;padding:6px}
.eh-empty{grid-column:1/-1;text-align:center;color:var(--text-secondary);padding:52px 16px;
  background:var(--bg-surface-1);border:1px dashed var(--border-default);border-radius:var(--r-lg)}
.eh-empty .sug{margin-top:12px;display:flex;gap:8px;justify-content:center;flex-wrap:wrap}

/* ── Article page ─────────────────────────────────────────── */
.eh-progress{position:fixed;top:0;left:0;height:3px;background:var(--brand);width:0;z-index:120}
.eh-breadcrumbs{font-size:var(--text-sm);color:var(--text-meta);margin-bottom:18px}
.eh-breadcrumbs ol{list-style:none;display:flex;gap:6px;flex-wrap:wrap;margin:0;padding:0}
.eh-breadcrumbs a{color:var(--text-secondary);text-decoration:none}
.eh-breadcrumbs a:hover{color:var(--brand-text)}
.eh-breadcrumbs [aria-current]{color:var(--text-meta)}
.eh-article-layout{display:grid;grid-template-columns:minmax(0,720px) 250px;gap:56px;justify-content:center}
.eh-article-head .chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.eh-chip{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.08em;
  text-transform:uppercase;padding:4px 10px;border-radius:var(--r-pill);
  background:var(--bg-surface-2);border:1px solid var(--border-default);color:var(--text-meta)}
.eh-chip.cat{color:var(--brand-text);background:var(--brand-dim);border-color:var(--border-brand)}
.eh-article-head h1{font-family:var(--font-serif);font-weight:400;font-size:37px;line-height:1.18;
  letter-spacing:-.01em;color:var(--heading-white);margin:0 0 14px}
.eh-article-head .desc{font-size:15px;color:var(--text-secondary);line-height:1.6;margin:0 0 20px}
.eh-byline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding-bottom:20px;border-bottom:1px solid var(--border-default);margin-bottom:26px}
.eh-avatar{width:32px;height:32px;border-radius:var(--r-pill);background:var(--brand-dim);
  border:1px solid var(--border-brand);display:flex;align-items:center;justify-content:center;
  font-family:var(--font-serif);font-style:italic;color:var(--brand);font-size:18px;flex:none}
.eh-byline .who{font-size:var(--text-sm);font-weight:700;color:var(--text-primary)}
.eh-byline .sub{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--text-meta)}
.eh-byline .actions{margin-left:auto;display:flex;gap:8px}

/* prose */
.eh-body{font-size:15.5px;line-height:1.75;color:var(--text-primary)}
.eh-body>section{margin:0 0 8px}
.eh-body p{margin:0 0 18px}
.eh-body h2{font-size:21px;font-weight:700;letter-spacing:-.02em;color:var(--heading-white);
  margin:40px 0 14px;scroll-margin-top:80px}
.eh-body h2::before{content:'';display:block;width:28px;height:3px;background:var(--brand);
  border-radius:2px;margin-bottom:12px}
.eh-body h3{font-size:16px;font-weight:700;color:var(--text-primary);margin:26px 0 10px;scroll-margin-top:80px}
.eh-body ul,.eh-body ol{margin:0 0 18px;padding-left:22px}
.eh-body li{margin-bottom:8px}
.eh-body li::marker{color:var(--brand)}
.eh-body strong{color:var(--heading-white)}
.eh-anchor{margin-left:8px;color:var(--text-tertiary);text-decoration:none;opacity:0;font-weight:400}
h2:hover .eh-anchor,h3:hover .eh-anchor{opacity:1}
.eh-anchor:focus-visible{opacity:1}

/* components */
.eh-quick{background:var(--bg-surface-1);border:1px solid var(--border-brand);
  border-left:3px solid var(--brand);border-radius:var(--r-lg);padding:18px 20px;margin:0 0 26px}
.eh-quick .k{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.12em;
  color:var(--brand-text);font-weight:700;margin-bottom:8px}
.eh-quick p{margin:0;font-size:15.5px;line-height:1.7}
.eh-quick p+p{margin-top:12px}

.eh-takeaways{background:var(--bg-surface-1);border:1px solid var(--border-default);
  border-radius:var(--r-lg);padding:18px 20px;margin:0 0 8px}
.eh-takeaways .k{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.12em;
  color:var(--text-meta);font-weight:700;text-transform:uppercase;margin-bottom:10px}
.eh-takeaways ul{margin:0;padding-left:20px}
.eh-takeaways li{margin-bottom:9px;font-size:var(--text-md);line-height:1.6}

.eh-snapshot{border:1px solid var(--border-default);border-radius:var(--r-lg);
  overflow:hidden;margin:0 0 8px}
.eh-snapshot dl{margin:0;display:grid;grid-template-columns:210px 1fr}
.eh-snapshot dt{background:var(--bg-surface-2);padding:11px 16px;font-family:var(--font-mono);
  font-size:var(--text-xs);letter-spacing:.05em;text-transform:uppercase;color:var(--text-meta);
  border-bottom:1px solid var(--border-subtle);display:flex;align-items:center}
.eh-snapshot dd{margin:0;padding:11px 16px;font-size:var(--text-md);line-height:1.55;
  border-bottom:1px solid var(--border-subtle);background:var(--bg-surface-1)}
.eh-snapshot dt:last-of-type,.eh-snapshot dd:last-of-type{border-bottom:none}

.eh-formula{background:var(--bg-surface-2);border:1px solid var(--border-brand);
  border-radius:var(--r-lg);padding:16px 18px;margin:0 0 22px;position:relative}
.eh-formula .k{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.12em;
  color:var(--brand-text);font-weight:700;margin-bottom:10px}
.eh-formula code{display:block;font-family:var(--font-mono);font-size:15px;font-weight:600;
  color:var(--heading-white);overflow-x:auto;white-space:nowrap;padding-bottom:4px}
.eh-formula .copy{position:absolute;top:12px;right:12px;background:var(--bg-surface-1);
  border:1px solid var(--border-default);border-radius:var(--r-sm);color:var(--text-secondary);
  font-size:var(--text-xs);font-family:var(--font-mono);padding:5px 10px;cursor:pointer;min-height:24px}
.eh-formula .copy:hover{border-color:var(--border-brand);color:var(--brand-text)}

.eh-example{background:var(--bg-surface-1);border:1px solid var(--border-default);
  border-radius:var(--r-lg);padding:18px 20px;margin:0 0 8px}
.eh-example .k{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.12em;
  color:var(--text-meta);font-weight:700;text-transform:uppercase;margin-bottom:12px}
.eh-table-wrap{overflow-x:auto;margin:0 0 16px}
.eh-body table{border-collapse:collapse;width:100%;font-size:var(--text-md)}
.eh-body th{text-align:left;font-family:var(--font-mono);font-size:var(--text-xs);
  letter-spacing:.06em;text-transform:uppercase;color:var(--text-meta);font-weight:600;
  padding:9px 12px;border-bottom:2px solid var(--border-prominent)}
.eh-body td{padding:9px 12px;border-bottom:1px solid var(--border-subtle)}
.eh-body td.num{text-align:right;font-family:var(--font-mono);font-weight:600}

.eh-mistakes{background:var(--bg-surface-1);border:1px solid var(--border-default);
  border-left:3px solid var(--warning);border-radius:var(--r-lg);padding:18px 20px;margin:0 0 8px}
.eh-mistakes .k{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.12em;
  color:var(--warning-text);font-weight:700;text-transform:uppercase;margin-bottom:10px;
  display:flex;align-items:center;gap:8px}

.eh-perspective{background:linear-gradient(135deg,var(--brand-dim),transparent 60%),var(--bg-surface-1);
  border:1px solid var(--border-brand);border-radius:var(--r-lg);padding:20px 22px;margin:0 0 8px}
.eh-perspective .k{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.12em;
  color:var(--brand-text);font-weight:700;margin-bottom:10px;display:flex;align-items:center;gap:8px}
.eh-cta{display:inline-flex;align-items:center;gap:8px;margin-top:6px;
  background:var(--brand-dim);border:1px solid var(--border-brand);color:var(--brand-text);
  border-radius:var(--r-md);padding:8px 14px;font-size:var(--text-sm);font-weight:700;text-decoration:none}
.eh-cta:hover{text-decoration:none;background:rgba(var(--brand-rgb),.14)}

.eh-faq details{border:1px solid var(--border-default);border-radius:var(--r-md);
  margin-bottom:10px;background:var(--bg-surface-1)}
.eh-faq summary{cursor:pointer;padding:13px 16px;font-weight:700;font-size:var(--text-md);
  color:var(--text-primary);list-style:none;display:flex;justify-content:space-between;gap:10px;min-height:24px}
.eh-faq summary::-webkit-details-marker{display:none}
.eh-faq summary::after{content:'+';font-family:var(--font-mono);color:var(--brand-text);font-weight:700}
.eh-faq details[open] summary::after{content:'\2212'}
.eh-faq details>div{padding:0 16px 14px;color:var(--text-secondary);line-height:1.65}
.eh-faq details>div p{margin:0 0 10px}

.eh-sources ol{list-style:none;counter-reset:src;margin:0;padding:0}
.eh-sources li{counter-increment:src;display:flex;gap:12px;padding:10px 0;
  border-bottom:1px solid var(--border-subtle);font-size:var(--text-md);line-height:1.5}
.eh-sources li::before{content:counter(src,decimal-leading-zero);font-family:var(--font-mono);
  font-size:var(--text-xs);color:var(--text-meta);padding-top:3px;flex:none}
.eh-sources .pub{color:var(--text-meta);font-size:var(--text-sm)}
.eh-sources a{color:var(--brand-secondary);text-decoration:none;font-weight:600}
.eh-sources a:hover{text-decoration:underline}

.eh-disclaimer{margin-top:34px;background:var(--bg-surface-2);border:1px dashed var(--border-default);
  border-radius:var(--r-lg);padding:13px 16px;font-size:var(--text-sm);color:var(--text-meta);line-height:1.6}
.eh-disclaimer a{color:var(--brand-secondary)}

/* TOC */
.eh-toc{position:sticky;top:76px;align-self:start;font-size:var(--text-sm);
  max-height:calc(100vh - 110px);overflow:auto;padding-right:4px}
.eh-toc-title{font-family:var(--font-mono);font-size:var(--text-xs);letter-spacing:.12em;
  color:var(--text-meta);text-transform:uppercase;margin-bottom:12px;display:flex;justify-content:space-between}
.eh-toc .pct{color:var(--brand-text)}
.eh-toc a{display:block;color:var(--text-secondary);padding:5px 0 5px 12px;
  border-left:2px solid var(--border-default);text-decoration:none;line-height:1.4}
.eh-toc a:hover{color:var(--brand-text);border-left-color:var(--brand);text-decoration:none}
.eh-toc a.active{color:var(--brand-text);border-left-color:var(--brand);font-weight:600}
/* mobile toc */
.eh-toc-mobile{display:none;position:sticky;top:54px;z-index:90;margin:0 0 18px}
.eh-toc-mobile details{background:var(--bg-surface-1);border:1px solid var(--border-default);border-radius:var(--r-md)}
.eh-toc-mobile summary{list-style:none;display:flex;justify-content:space-between;align-items:center;
  padding:11px 14px;cursor:pointer;font-weight:700;font-size:var(--text-md);min-height:24px}
.eh-toc-mobile summary::-webkit-details-marker{display:none}
.eh-toc-mobile .pct{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--brand-text)}
.eh-toc-mobile nav{padding:4px 14px 12px;max-height:46vh;overflow:auto}
.eh-toc-mobile nav a{display:block;padding:8px 0;color:var(--text-secondary);text-decoration:none;
  border-bottom:1px solid var(--border-subtle);min-height:24px}
.eh-toc-mobile nav a.active{color:var(--brand-text);font-weight:600}

/* prev/next + related */
.eh-pn{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:40px 0 6px}
.eh-pn a{background:var(--bg-surface-1);border:1px solid var(--border-default);
  border-radius:var(--r-lg);padding:15px 16px;text-decoration:none;color:inherit;transition:border-color .15s}
.eh-pn a:hover{border-color:var(--border-prominent);text-decoration:none}
.eh-pn .lbl{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--text-meta);
  letter-spacing:.1em;margin-bottom:6px}
.eh-pn .ttl{font-size:var(--text-sm);font-weight:700;color:var(--text-primary);line-height:1.35}
.eh-pn .meta{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--text-meta);margin-top:6px}
.eh-pn a.next{text-align:right}
.eh-related-title{font-size:var(--text-lg);font-weight:700;color:var(--heading-white);
  margin:38px 0 14px;letter-spacing:-.02em}

/* footer */
.eh-footer{border-top:1px solid var(--border-default);margin-top:60px}
.eh-footer-inner{max-width:1180px;margin:0 auto;padding:26px 20px;display:flex;gap:18px;
  flex-wrap:wrap;align-items:center;font-size:var(--text-sm);color:var(--text-meta)}
.eh-footer a{color:var(--text-secondary);text-decoration:none}
.eh-footer a:hover{color:var(--brand-text)}
.eh-footer .legal{flex-basis:100%;font-size:var(--text-xs);color:var(--text-tertiary);line-height:1.6}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:1100px){
  .eh-article-layout{grid-template-columns:minmax(0,720px)}
  .eh-toc{display:none}
  .eh-toc-mobile{display:block}
}
@media (max-width:1023px){
  .eh-paths{grid-template-columns:repeat(2,1fr)}
  .eh-topics{display:none}
  .eh-topic-chips{display:flex}
  .eh-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:767px){
  .eh-hero{grid-template-columns:1fr;gap:22px}
  .eh-hero h1{font-size:31px}
  .eh-journey{display:none}
  .eh-wrap{padding:24px 14px 60px}
  .eh-article-head h1{font-size:27px}
  .eh-snapshot dl{grid-template-columns:1fr}
  .eh-snapshot dt{border-bottom:none;padding-bottom:2px}
  .eh-snapshot dd{padding-top:4px}
  .eh-pn{grid-template-columns:1fr}
  .eh-pn a.next{text-align:left}
  .eh-controls{gap:8px}
  .eh-count{flex-basis:100%;margin-left:0}
}
@media (max-width:560px){
  .eh-grid{grid-template-columns:1fr}
  .eh-paths{grid-template-columns:1fr}
  .eh-hero-actions .eh-btn-primary,.eh-hero-actions .eh-btn-ghost{flex:1;text-align:center}
}

