/* Academic project page; fonts are self-hosted for offline use. */
:root {
  --ink: #26282d; --muted: #60656f; --accent: #ab3547; --accent-light: #fbf0f2;
  --line: #e5e7eb; --paper: #f8f9fb; --blue: #445873;
  --sans: "Noto Sans", "Segoe UI", Arial, sans-serif;
  --display: "Manrope", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
html { scroll-padding-top: 88px; }
body { background: #fff; font-family: var(--sans); line-height: 1.8; }
[hidden] { display: none !important; }
p { color: var(--muted); }
h1, h2, h3, .wordmark { font-family: var(--display); }
h2 { font-size: clamp(28px, 3.3vw, 38px); line-height: 1.28; font-weight: 700; letter-spacing: -1.1px; text-wrap: balance; }
h3 { font-weight: 650; letter-spacing: -.45px; }
pre, code { font-family: var(--mono); }
a, button { transition: color .16s, background-color .16s, border-color .16s; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.container { width: min(1040px, calc(100% - 80px)); }
.topbar { min-height: 72px; height: auto; padding: 12px max(28px, calc((100% - 1160px) / 2)); border-color: #eef0f3; }
.wordmark { font-size: 20px; font-weight: 700; }
.topbar nav { gap: 30px; font-size: 13px; color: var(--muted); }
.menu-button { height: 40px; width: 40px; border: 0; border-radius: 50%; background: var(--paper); font-size: 19px; }
.menu-button:hover { background: #eceef1; }
.hero { padding-top: 76px; padding-bottom: 72px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 600; color: var(--muted); }
h1 { font-size: clamp(56px, 6.3vw, 80px); font-weight: 700; line-height: 1.12; letter-spacing: -3.8px; gap: 18px; margin: 25px 0 20px; }
h1 img { width: 64px; }
.subtitle { max-width: 800px; margin-inline: auto; font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; line-height: 1.35; letter-spacing: -1.25px; }
.authors { font-size: 16px; margin-top: 24px; }
.affiliations { font-size: 14px; color: var(--muted); }
.hero-summary { margin: 24px auto 0; font-size: 18px; color: var(--ink); line-height: 1.8; }
.hero-summary span { font-size: 15px; color: var(--muted); }
.resource-links { gap: 10px; margin-top: 27px; }
.resource { min-height: 44px; padding: 11px 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; }
.resource[href]:hover { background: var(--accent-light); border-color: #dbb5bd; color: var(--accent); }
.resource-primary { order: -1; background: var(--ink); border-color: var(--ink); color: #fff; }
.resource-primary[href]:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.resource-public, .resource-public[aria-disabled=true] { order: -2; background: #30343a; border-color: #30343a; color: #fff; }
.resource-public small { font-size: 10px; color: #e0e3e8; border-color: #717883; font-weight: 400; }
.resource-public[aria-disabled=true] { cursor: default; }
.resource-public[href]:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.resource-icon { display: block; width: 17px; height: 17px; flex: 0 0 17px; }
.brand-icon { width: 18px; height: 18px; flex-basis: 18px; }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 810px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.metrics>div { gap: 5px; }
.metrics strong { font-family: var(--display); font-size: 37px; font-weight: 600; letter-spacing: -1.4px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.4; }
.metrics strong span { font-size: 20px; }
.metrics>div>span { font-size: 12px; color: var(--muted); }
.metric-note { margin-top: 20px; font-size: 12px; color: var(--muted); }
.metric-note a { color: var(--accent); text-underline-offset: 4px; }
.metric-note a:hover { text-decoration: underline; }
.section { padding-block: 88px; scroll-margin-top: 12px; }
.tinted { background: var(--paper); border: 0; }
.section-kicker { margin-bottom: 14px; color: var(--accent); font-size: 10px; letter-spacing: 2px; font-weight: 600; text-align: center; }
.section h2 { text-align: center; }
.section-lead { max-width: 740px; margin: 18px auto 0; font-size: 16px; line-height: 1.8; text-align: center; text-wrap: pretty; }
.prose { max-width: 800px; }
.prose h2 { margin-bottom: 32px; }
.prose>p { font-size: 16px; line-height: 1.95; margin-top: 20px; text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
.method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 46px; }
.method-grid article { padding-top: 24px; border-top: 1px solid var(--line); }
.step-number { color: var(--accent); font-family: var(--mono); font-size: 12px; margin-bottom: 14px; }
.method-grid h3 { font-size: 20px; }
.method-grid p { margin-top: 12px; font-size: 14px; line-height: 1.85; }
.paper-figure { background: #fff; margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.paper-figure .figure-open { display: block; cursor: zoom-in; }
.paper-figure img { display: block; width: 100%; height: auto; margin-inline: auto; }
.paper-figure figcaption { max-width: 900px; margin: 22px auto 0; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: left; }
.paper-figure figcaption strong { color: var(--ink); font-weight: 600; }
.figure-actions { display: flex; flex-wrap: wrap; gap: 10px 24px; max-width: 900px; margin: 12px auto 0; }
.figure-actions a { display: inline-flex; align-items: center; min-height: 36px; color: var(--accent); font-size: 12px; text-underline-offset: 4px; }
.figure-actions a:hover { text-decoration: underline; }
.hero-paper-figure { max-width: 1000px; margin: 52px auto 0; padding: 0; border: 0; border-radius: 0; }
.hero-paper-figure figcaption { padding-top: 20px; margin-top: 26px; border-top: 1px solid var(--line); }
.hero-paper-figure .figure-actions { justify-content: center; margin-top: 6px; }
.case-tabs { display: flex; gap: 6px; width: fit-content; max-width: 100%; margin: 36px auto 24px; padding: 5px; background: #edeff3; border: 0; border-radius: 12px; }
.case-tabs button { flex: initial; min-height: 44px; padding: 10px 23px; font-size: 13px; font-weight: 500; color: var(--muted); border: 0; border-radius: 8px; white-space: nowrap; }
.case-tabs button:hover { background: #f7f8fa; color: var(--ink); }
.case-tabs button[aria-selected=true] { background: #fff; color: var(--accent); box-shadow: 0 1px 4px #2029360d; }
.recorded-case { padding: 36px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.recorded-case + .recorded-case { margin-top: 24px; }
.case-heading { display: flex; }
.case-label { font-size: 10px; font-weight: 600; color: var(--accent); letter-spacing: 1.6px; }
.recorded-case>h3 { font-size: clamp(24px, 2.7vw, 29px); font-weight: 600; line-height: 1.35; margin-top: 12px; text-wrap: balance; }
.recorded-case .case-question { max-width: 860px; font-size: 15px; margin-top: 18px; line-height: 1.85; }
.case-question strong { font-weight: 600; color: var(--ink); }
.case-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.case-comparison>div { border-top: 2px solid #e2e5ea; padding-top: 16px; }
.case-comparison>div:last-child { border-top-color: #dca3ae; }
.recorded-case h4 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.case-comparison p { margin-top: 10px; font-size: 14px; line-height: 1.85; }
.recorded-case .paper-figure { padding: 0; border: 0; border-radius: 0; margin-top: 32px; }
.case-observation { margin-top: 24px; padding: 18px 22px; background: var(--paper); border-left: 2px solid #bfc8d6; border-radius: 0 8px 8px 0; }
.case-observation p { max-width: none; font-size: 14px; margin-top: 6px; }
.case-scope { margin-top: 16px; font-size: 13px; color: var(--muted); }
.case-scope summary { cursor: pointer; padding-block: 10px; color: var(--muted); }
.case-scope p { font-size: 13px; line-height: 1.8; max-width: none; margin-top: 4px; }
.results-toolbar { justify-content: center; margin: 32px 0 24px; }
.segmented { background: var(--paper); border-color: var(--line); border-radius: 10px; }
.segmented button { min-height: 40px; padding: 9px 16px; border-radius: 7px; font-size: 12px; color: var(--muted); }
.segmented button[aria-pressed=true] { color: var(--accent); box-shadow: 0 1px 4px #2029360d; }
.table-scroll { border-top: 1px solid #b8bec8; }
table { font-size: 13px; }
th, td { padding: 20px 12px; }
thead th { font-size: 11px; line-height: 1.7; }
thead small { font-size: 10px; color: var(--muted); }
tbody th { font-size: 13px; font-weight: 500; }
tbody th small { margin-top: 3px; font-size: 11px; color: var(--muted); }
tbody tr.highlight { background: #fcf5f6; }
tbody tr.highlight td:last-child { color: var(--accent); font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 1px solid #b8bec8; }
caption { font-size: 12px; color: var(--muted); line-height: 1.8; padding-top: 18px; }
.figure-note { font-size: 12px; margin-top: 10px; color: var(--muted); line-height: 1.8; }
.analysis-block { margin-top: 42px; }
.analysis-block+.analysis-block { margin-top: 50px; }
.analysis-block>h3 { font-size: 24px; font-weight: 600; }
.analysis-block>p { max-width: 800px; margin-top: 12px; font-size: 15px; }
.analysis-block .paper-figure { margin-top: 26px; }
.runtime-heading { display: block; }
.runtime-heading .section-lead { max-width: 660px; }
.runtime-heading h2 br { display: none; }
.runtime-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 42px; }
.runtime-modes article { border-top: 1px solid var(--line); padding-top: 20px; }
.mode-number { font: 12px var(--mono); color: var(--accent); }
.runtime-modes h3 { font-size: 22px; margin-top: 12px; }
.runtime-modes p { font-size: 14px; margin-top: 10px; line-height: 1.85; }
.runtime-quickstart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 36px; margin-top: 44px; align-items: start; }
.runtime-details h3 { font-size: 21px; }
.runtime-details p { margin-top: 14px; font-size: 14px; }
.runtime-details dl { font-size: 12px; margin: 22px 0 0; }
.runtime-details dl>div { border-top: 1px solid var(--line); padding-block: 10px; }
.runtime-details dt { font-weight: 600; }
.runtime-details dd { margin: 3px 0 0; color: var(--muted); }
.code-panel { min-width: 0; margin: 0; background: #252830; border: 1px solid #353943; border-radius: 10px; }
.code-header { padding: 14px 22px; border-color: #40444e; color: #d2d5dc; font-size: 12px; gap: 10px; }
.code-header>span:last-child { font-size: 10px; color: #bfc5d0; }
.code-dot { background: #d5909e; }
.code-panel pre { padding: 24px; font-size: 12px; line-height: 1.9; color: #f0f2f6; }
.comment { color: #b6becb; }
.runtime-note { margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.release-list { max-width: 800px; margin: 32px auto 0; }
.release-list>div { padding-block: 24px; gap: 20px; }
.release-list h3 { max-width: none; font-size: 16px; font-weight: 600; }
.text-link, .release-list a { font-size: 13px; color: var(--accent); text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }
.release-status { background: var(--accent-light); padding: 8px 16px; border-radius: 999px; }
.citation-heading h2 { text-align: left; }
.citation-inner { max-width: 880px; }
.citation-heading { gap: 20px; }
.citation-note { margin-top: 16px; font-size: 14px; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; flex-shrink: 0; font-size: 12px; padding: 9px 16px; border-color: var(--line); border-radius: 8px; background: #fff; }
.copy-button:hover { color: var(--accent); background: var(--accent-light); border-color: #dbb5bd; }
.bibtex { font-size: 13px; line-height: 1.9; background: #fff; padding: 26px; border-color: var(--line); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
#copy-status { min-height: 24px; font-size: 13px; }
footer { padding-block: 36px; background: #fff; border-color: var(--line); }
footer .wordmark { font-size: 18px; }
footer p, .credit, .back-top { font-size: 12px; color: var(--muted); }
.credit a { text-decoration: underline; text-underline-offset: 3px; }
dialog { background: #fff; border-color: var(--line); }
.dialog-head h2 { font-size: 23px; }
.close-button { min-width: 40px; height: 40px; border-radius: 50%; }
.close-button:hover { background: var(--paper); }
dialog nav a { font-size: 14px; padding: 12px 10px; }
#figure-viewer { width: calc(100vw - 48px); max-width: 1500px; height: calc(100dvh - 48px); max-height: none; padding: 20px; border-radius: 12px; overflow: hidden; }
#figure-viewer[open] { display: flex; flex-direction: column; }
.figure-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; padding-bottom: 14px; }
#figure-viewer-title { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.figure-viewer-controls { display: flex; align-items: center; flex-shrink: 0; gap: 16px; }
.figure-viewer-controls>a { font-size: 13px; color: var(--accent); }
#figure-scale { min-height: 44px; font-size: 13px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.figure-viewport { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid var(--line); }
.figure-viewport img { display: block; width: 100%; height: auto; max-width: 100%; }
.figure-viewport.is-original img { width: auto; max-width: none; }
.figure-viewer-hint { font-size: 12px; margin-top: 10px; flex: 0 0 auto; }
@media (max-width: 960px) {
  .container { width: calc(100% - 48px); }
  .runtime-quickstart { gap: 26px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .method-grid { gap: 24px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .topbar { min-height: 64px; padding: 12px 20px; gap: 16px; }
  .topbar nav { gap: 18px; font-size: 12px; }
  .topbar nav a:first-child, .topbar nav a:last-child { display: none; }
  .wordmark { font-size: 18px; }
  .hero { padding-top: 48px; padding-bottom: 52px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  h1 { margin: 22px 0 18px; gap: 12px; font-size: 56px; letter-spacing: -3px; }
  h1 img { width: 46px; }
  .subtitle { font-size: 28px; letter-spacing: -.8px; }
  .hero-summary { font-size: 16px; margin-top: 22px; }
  .hero-summary span { display: inline-block; max-width: 330px; font-size: 13px; }
  .resource-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; margin: 24px auto 0; gap: 8px; }
  .resource { justify-content: center; min-width: 0; font-size: 11px; padding-inline: 10px; }
  .resource-public { flex-wrap: wrap; gap: 3px 6px; }
  .resource-public small { flex-basis: 100%; padding: 0; border: 0; font-size: 9px; line-height: 1.4; }
  .resource-links [data-citation-link] { grid-column: 1 / -1; justify-self: center; min-width: 124px; }
  .hero-paper-figure { margin-top: 36px; }
  .hero-paper-figure figcaption { padding-top: 14px; margin-top: 18px; }
  .metrics { margin-top: 30px; padding-top: 26px; }
  .metrics strong { font-size: 26px; letter-spacing: -.8px; }
  .metrics strong span { font-size: 15px; }
  .metrics>div>span { font-size: 10px; }
  .metrics>div:nth-child(2) { border-right: 1px solid var(--line); }
  .metric-note { font-size: 11px; line-height: 1.9; }
  .section { padding-block: 60px; }
  .section-kicker { margin-bottom: 12px; font-size: 9px; }
  .prose>p { font-size: 15px; line-height: 1.9; }
  .section-lead { font-size: 15px; margin-top: 16px; }
  .method-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .method-grid article { padding: 20px 0 0 36px; }
  .step-number { top: 23px; }
  .method-grid h3 { font-size: 20px; }
  .method-grid p { font-size: 14px; }
  .paper-figure { padding: 12px; border-radius: 8px; }
  .hero-paper-figure { padding: 0; }
  .paper-figure figcaption { font-size: 12px; margin-top: 16px; line-height: 1.8; }
  .figure-actions { gap: 10px 22px; margin-top: 6px; }
  .case-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 4px; margin: 28px auto 20px; }
  .case-tabs button { min-height: 44px; font-size: 12px; padding: 10px 8px; }
  .recorded-case { padding: 24px 18px; border-radius: 10px; }
  .recorded-case>h3 { font-size: 24px; }
  .recorded-case .case-question { font-size: 14px; }
  .case-comparison { grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
  .recorded-case .paper-figure { margin-top: 24px; }
  .case-observation { padding: 16px; }
  .results-toolbar { align-items: center; }
  th, td { padding: 16px 12px; }
  .analysis-block { margin-top: 32px; }
  .analysis-block>h3 { font-size: 22px; }
  .analysis-block>p { font-size: 14px; }
  .runtime-heading h2 br { display: block; }
  .runtime-modes { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .runtime-quickstart { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
  .runtime-details dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .code-header { padding: 14px 16px; }
  .code-panel pre { padding: 20px 16px; font-size: 11px; }
  .release-list>div { flex-wrap: wrap; align-items: center; gap: 12px; }
  .release-list h3 { flex: 1; min-width: 150px; font-size: 15px; }
  .release-list a { font-size: 12px; margin-left: 0; }
  .bibtex { padding: 18px; font-size: 12px; }
  #figure-viewer { width: calc(100vw - 16px); height: calc(100dvh - 16px); padding: 12px; }
  .figure-viewer-header { flex-wrap: wrap; gap: 8px; }
  .figure-viewer-controls { width: 100%; justify-content: space-between; gap: 8px; }
  #figure-viewer-title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* v2: method training step, results comparison, figures, mobile hints. */
.method-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.results-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 8px; }
.results-highlights>div { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.results-highlights strong { font-family: var(--display); font-size: 30px; font-weight: 650; letter-spacing: -1px; color: var(--accent); line-height: 1.3; font-variant-numeric: tabular-nums; }
.results-highlights span { font-size: 13px; color: var(--muted); line-height: 1.6; }
#results-table .group-row th { padding: 14px 12px 8px; font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); text-align: left; background: #fff; border-bottom: 0; }
#results-table tbody tr:not(.group-row) th, #results-table tbody td { padding-block: 13px; }
#results-table tbody tr:not(.group-row) th, #results-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
#results-table tbody tr.highlight th { background: #fbf3f4; }
.results-figures { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 20px; align-items: start; margin-top: 16px; }
.results-figures .paper-figure figcaption, .results-figures .figure-actions { max-width: none; }
.runtime-details code { font-size: 12.5px; padding: 1px 5px; border-radius: 4px; background: var(--paper); color: var(--ink); }
.runtime-note code { font-size: 12px; }
.mobile-hint { display: none; margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 960px) {
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-figures { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .method-grid { grid-template-columns: 1fr; }
  .results-highlights { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .results-highlights>div { flex-direction: row; align-items: baseline; gap: 14px; padding: 14px 16px; }
  .results-highlights strong { font-size: 24px; flex: 0 0 auto; }
  .mobile-hint { display: block; }
  .table-hint { text-align: left; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table-hint { margin: 0 0 8px; }
#results-table .group-row th span { position: sticky; left: 16px; }
.code-single { margin-top: 36px; }
.code-single pre { margin: 0; padding: 18px 22px; overflow-x: auto; }
.runtime-modes article h3 { margin-top: 0; }
tbody tr.highlight.subdued td:last-child { color: inherit; font-weight: inherit; }

/* Analysis carousel: one figure at a time, arrows / tabs / keys / swipe. Without JS all slides stack. */
.carousel { margin-top: 34px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.carousel-arrow { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; }
.carousel-arrow:hover { border-color: #dbb5bd; color: var(--accent); background: var(--accent-light); }
.carousel-tabs { display: flex; gap: 6px; padding: 5px; background: #edeff3; border-radius: 12px; min-width: 0; overflow-x: auto; }
.carousel-tabs button { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.carousel-tabs button:hover { color: var(--ink); background: #f7f8fa; }
.carousel-tabs button[aria-pressed=true] { background: #fff; color: var(--accent); box-shadow: 0 1px 4px #2029360d; }
.carousel-track { outline-offset: 6px; touch-action: pan-y; }
.carousel.is-ready .carousel-slide { margin-top: 26px; animation: slide-in .28s ease; }
.carousel.is-ready .analysis-block>h3 { text-align: center; }
.carousel.is-ready .analysis-block>p { margin-inline: auto; text-align: center; }
.carousel-hint { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }
@keyframes slide-in { from { opacity: .35; transform: translateX(var(--slide-from, 0)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .carousel.is-ready .carousel-slide { animation: none; } }
@media (max-width: 640px) {
  .carousel-controls { gap: 8px; }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-tabs button { padding: 8px 12px; font-size: 12px; }
}

/* Language switch and Chinese typography. */
.lang-toggle { display: inline-flex; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 650; line-height: 1; }
.lang-toggle a { padding: 6px 11px; border-radius: 999px; color: var(--muted); transition: background .15s, color .15s; }
.lang-toggle a:hover { color: var(--accent); }
.lang-toggle a[aria-current="page"] { background: var(--ink); color: #fff; pointer-events: none; }
.footer-lang { font-size: 13px; }
.footer-lang a[aria-current="page"] { color: var(--ink); font-weight: 650; pointer-events: none; }
@media (max-width: 760px) {
  .lang-toggle { font-size: 11px; }
  .lang-toggle a { padding: 5px 9px; }
}
:lang(zh) body, body:lang(zh) { font-family: "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .wordmark { font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(zh) h2, :lang(zh) h3, :lang(zh) .subtitle { letter-spacing: 0; }
:lang(zh) .section-kicker, :lang(zh) .eyebrow, :lang(zh) .case-label { letter-spacing: 3px; }
:lang(zh) p, :lang(zh) figcaption { text-align: justify; }
:lang(zh) .authors, :lang(zh) .section-lead, :lang(zh) .hero-summary, :lang(zh) .carousel.is-ready .analysis-block>p, :lang(zh) .metric-note, :lang(zh) .mobile-hint, :lang(zh) .carousel-hint { text-align: center; }
