/* humarb Research · Paper 03
   Primitive brand tokens → semantic themes → component tokens. */
:root {
  --p-brand: oklch(from #7657DD l c h);
  --p-brand-on-dark: oklch(from #967EFF l c h);
  --p-ink: oklch(from #111113 l c h);
  --p-paper: oklch(from #FAFAFC l c h);
  --accent: var(--p-brand);
  --canvas: var(--p-paper);
  --ink: var(--p-ink);
  --text: color-mix(in oklch, var(--p-ink) 91%, var(--p-paper));
  --muted: #5d5c66;
  --faint: #75747e;
  --line: color-mix(in oklch, var(--p-ink) 14%, var(--p-paper));
  --line-strong: color-mix(in oklch, var(--p-ink) 27%, var(--p-paper));
  --surface-2: color-mix(in oklch, var(--p-brand) 4%, var(--p-paper));
  --surface-3: color-mix(in oklch, var(--p-brand) 8%, var(--p-paper));
  --header-bg: color-mix(in oklch, var(--p-paper) 91%, transparent);
  --button-text: var(--p-paper);
  --focus: var(--p-brand);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif CJK SC", "Songti SC", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-pad: clamp(20px, 4vw, 64px);
  --content-max: 1440px;
  --reading-measure: 70ch;
  --header-height: 72px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --accent: var(--p-brand-on-dark);
  --canvas: var(--p-ink);
  --ink: var(--p-paper);
  --text: color-mix(in oklch, var(--p-paper) 91%, var(--p-ink));
  --muted: #b8b7c1;
  --faint: #a3a2ad;
  --line: color-mix(in oklch, var(--p-paper) 16%, var(--p-ink));
  --line-strong: color-mix(in oklch, var(--p-paper) 30%, var(--p-ink));
  --surface-2: color-mix(in oklch, var(--p-brand-on-dark) 6%, var(--p-ink));
  --surface-3: color-mix(in oklch, var(--p-brand-on-dark) 11%, var(--p-ink));
  --header-bg: color-mix(in oklch, var(--p-ink) 91%, transparent);
  --button-text: var(--p-ink);
  --focus: var(--p-brand-on-dark);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  min-width: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 220ms ease-out, color 220ms ease-out;
}
body.dialog-open { overflow: hidden; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, figure, blockquote { margin: 0; }
button { border: 0; background: none; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .35; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
::selection { background: color-mix(in oklch, var(--accent) 25%, var(--canvas)); }
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  min-height: 44px;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; z-index: 45; inset: 0 0 auto; height: 2px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.grain {
  position: fixed;
  z-index: 40;
  inset: 0;
  pointer-events: none;
  opacity: .032;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .grain { mix-blend-mode: soft-light; opacity: .04; }
.meta-label {
  display: block;
  color: var(--faint);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: calc(var(--header-height) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease-out, border-color 200ms ease-out;
}
.site-header.is-scrolled { background: var(--header-bg); border-bottom-color: var(--line); backdrop-filter: blur(16px); }
.header-inner {
  width: 100%;
  max-width: var(--content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  gap: 16px;
}
.humarb-brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; }
.humarb-brand img { width: 128px; height: auto; aspect-ratio: 896 / 292; }
.humarb-brand .humarb-logo-dark { display: none; }
html[data-theme="dark"] .humarb-brand .humarb-logo-light { display: none; }
html[data-theme="dark"] .humarb-brand .humarb-logo-dark { display: block; }
.header-divider { width: 1px; height: 24px; background: var(--line-strong); }
.research-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .875rem; font-weight: 650; }
.research-link span { color: var(--accent); font-family: var(--mono); font-size: .75rem; }
.header-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme-toggle, .header-download {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  corner-shape: squircle;
  font-size: .8125rem;
  font-weight: 650;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}
.theme-toggle { padding: 0 12px; }
.theme-toggle svg, .header-download svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.header-download { padding: 0 14px; background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.theme-toggle:hover { background: var(--surface-3); border-color: var(--line-strong); }
.header-download:hover { background: var(--accent); border-color: var(--accent); color: var(--button-text); }
.theme-toggle:active, .header-download:active, .button:active { transform: scale(.97); }
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--header-height) + 64px) var(--page-pad) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--content-max); margin: 0 auto; }
.series-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 32px; color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.series-line span:first-child { color: var(--accent); }
.hero h1 {
  max-width: 17ch;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.paper-subtitle { max-width: 40ch; margin-top: 24px; color: var(--muted); font-family: var(--serif); font-size: clamp(1.15rem, 3vw, 1.55rem); line-height: 1.4; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 14px;
  corner-shape: squircle;
  font-size: .875rem;
  font-weight: 700;
  transition: transform 160ms ease-out, background-color 160ms ease-out;
}
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--accent); color: var(--button-text); }
.button-primary:hover { background: color-mix(in oklch, var(--accent) 87%, var(--ink)); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-strong); font-size: .875rem; font-weight: 650; transition: border-color 160ms ease-out, color 160ms ease-out; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.paper-identity { position: relative; z-index: 2; margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); background: color-mix(in oklch, var(--canvas) 87%, transparent); }
.author-block > strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; line-height: 1.2; }
.author-block > span:not(.meta-label) { display: block; margin-top: 8px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.author-block a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--accent); font-size: .75rem; overflow-wrap: anywhere; }
.author-block a:hover { text-decoration: underline; text-underline-offset: 4px; }
.identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 28px; }
.identity-grid > div > span:last-child { display: block; margin-top: 4px; font-size: .8125rem; }
.identity-grid a { min-height: 44px; margin-top: -8px; display: inline-flex; align-items: center; color: var(--accent); font-size: .8125rem; }
.identity-grid a:hover, .published-doi:hover, .version-record:hover, .repository-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.doi-status { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.doi-status > div { min-width: 0; }
.published-doi { min-height: 44px; margin-top: 2px; display: inline-flex; align-items: center; color: var(--accent); font-family: var(--mono); font-size: .8125rem; font-weight: 700; overflow-wrap: anywhere; }
.version-record { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent) 12%, transparent); }
.doi-status strong, .doi-status div > span:last-child { display: block; }
.doi-status strong { margin-top: 4px; font-size: .875rem; }
.doi-status div > span:last-child { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.hero-foot { position: relative; z-index: 2; width: 100%; max-width: var(--content-max); margin: 48px auto 0; padding: 20px 0 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.hero-foot span:not(:last-child)::after { content: "·"; margin-left: 20px; color: var(--accent); }
.hero-orbit { position: absolute; z-index: 0; right: -200px; top: 110px; width: 340px; height: 340px; opacity: .52; pointer-events: none; transform: scale(.95); transition: transform 900ms cubic-bezier(.2,.8,.2,1), opacity 600ms ease-out; }
body.is-ready .hero-orbit { transform: scale(1); }
.orbit { position: absolute; inset: 0; border: 1px solid color-mix(in oklch, var(--accent) 34%, transparent); border-radius: 50%; }
.orbit-b { transform: rotate(62deg) scaleY(.38); }
.orbit-c { transform: rotate(-28deg) scaleY(.62); }
.abstract-section { padding: 88px var(--page-pad); border-bottom: 1px solid var(--line); }
.abstract-section > * { width: 100%; max-width: var(--content-max); margin-left: auto; margin-right: auto; }
.section-index { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.abstract-content h2 { max-width: 25ch; margin-top: 32px; font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3.15rem); font-weight: 500; line-height: 1.16; letter-spacing: -.025em; }
.abstract-lead { max-width: var(--reading-measure); margin-top: 32px; font-family: var(--serif); font-size: clamp(1.08rem, 2.5vw, 1.28rem); line-height: 1.72; }
.chinese-abstract { max-width: var(--reading-measure); margin-top: 28px; border-top: 1px solid var(--line); }
.chinese-abstract summary, .mobile-contents summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; color: var(--muted); font-size: .875rem; font-weight: 650; list-style: none; }
.chinese-abstract summary::-webkit-details-marker, .mobile-contents summary::-webkit-details-marker { display: none; }
.chinese-abstract summary span, .mobile-contents summary span { color: var(--accent); transition: transform 180ms ease-out; }
.chinese-abstract[open] summary span, .mobile-contents[open] summary span { transform: rotate(45deg); }
.chinese-abstract p { padding: 8px 0 4px; color: var(--muted); font-family: "Noto Serif CJK SC", "Songti SC", "SimSun", serif; font-size: 1rem; line-height: 1.9; }
.evidence-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.evidence-strip > div { min-height: 136px; padding: 24px var(--page-pad); display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.evidence-strip > div:nth-child(odd) { border-right: 1px solid var(--line); }
.evidence-strip strong { color: var(--accent); font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1; }
.evidence-strip span { max-width: 22ch; margin-top: 12px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.reading-layout { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--page-pad); }
.chapter-column, .margin-column { display: none; }
.article-flow { min-width: 0; }
.mobile-contents { border-bottom: 1px solid var(--line); }
.mobile-contents nav { padding: 0 0 16px; display: grid; }
.mobile-contents a { min-height: 44px; display: flex; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.article-section { max-width: var(--reading-measure); padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + 24px); }
.section-number { margin-bottom: 20px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.article-section h2 { margin-bottom: 28px; font-family: var(--serif); font-size: clamp(1.85rem, 5vw, 2.8rem); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.article-section > p:not(.section-number):not(.disclaimer):not(.gallery-hint) { margin-top: 20px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.78; }
.article-section blockquote { margin: 40px 0 0; padding: 24px 0 0 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--accent); }
.article-section blockquote p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; }
.article-section blockquote a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--accent); font-size: .8125rem; font-weight: 650; }
.article-section blockquote a:hover { text-decoration: underline; text-underline-offset: 4px; }
.formula-block { margin: 36px 0; padding: 24px; overflow-x: auto; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.formula-label { display: block; margin-bottom: 16px; color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.formula { min-width: max-content; color: var(--ink); font-family: var(--serif); font-size: clamp(1.25rem, 4.8vw, 1.9rem); line-height: 1.5; text-align: center; }
.formula sup, .formula sub { font-size: .55em; }
.fraction { display: inline-flex; flex-direction: column; vertical-align: middle; line-height: 1.25; }
.fraction span:first-child { padding: 0 8px 4px; border-bottom: 1px solid currentColor; }
.fraction span:last-child { padding-top: 4px; }
.framework-steps { margin-top: 48px; border-top: 1px solid var(--line-strong); }
.framework-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.roman { color: var(--accent); font-family: var(--serif); font-size: 1.65rem; line-height: 1.2; }
.framework-row h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.3; }
.framework-row p { margin-top: 12px; color: var(--muted); font-size: .9375rem; line-height: 1.75; }
.row-tag { grid-column: 2; color: var(--faint); font-family: var(--mono); font-size: .75rem; }
.semantic-note { margin-top: 40px; padding: 24px; background: var(--surface-2); }
.semantic-note h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.semantic-note p { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.figures-section { max-width: none; }
.section-heading-row { display: flex; flex-direction: column; gap: 12px; }
.gallery-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.gallery-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background-color 160ms ease-out, border-color 160ms ease-out; }
.gallery-controls button:not(:disabled):hover { background: var(--surface-3); border-color: var(--accent); }
.gallery-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gallery-controls span { min-width: 62px; color: var(--muted); font-family: var(--mono); font-size: .75rem; text-align: center; }
.figure-viewport { overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent) var(--line); border-top: 1px solid var(--line-strong); }
.figure-track { display: flex; }
.figure-panel { flex: 0 0 100%; min-width: 0; padding-top: 24px; scroll-snap-align: start; }
.figure-open { position: relative; width: 100%; min-height: 44px; padding: 16px; display: block; overflow: hidden; background: #FAFAFC; color: #111113; text-align: left; }
.figure-open img { width: 100%; height: auto; transition: transform 240ms ease-out; }
.figure-open:hover img { transform: scale(1.012); }
.enlarge-label { position: absolute; right: 12px; bottom: 12px; min-height: 44px; padding: 10px 12px; display: inline-flex; align-items: center; gap: 8px; background: color-mix(in oklch, #FAFAFC 92%, transparent); border: 1px solid #d8d8de; border-radius: 10px; color: #111113; font-size: .75rem; font-weight: 650; }
.enlarge-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.figure-panel figcaption { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 20px 0 28px; }
.figure-panel figcaption span { color: var(--accent); font-size: .75rem; font-weight: 700; }
.figure-panel figcaption p { color: var(--muted); font-size: .8125rem; line-height: 1.65; }
.gallery-hint { margin-top: 8px; color: var(--faint); font-size: .75rem; }
.distinction-list { margin-top: 36px; border-top: 1px solid var(--line-strong); }
.distinction-list > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.distinction-list span { color: var(--ink); font-size: .875rem; font-weight: 700; }
.distinction-list p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.compact-formula .formula { display: flex; align-items: center; justify-content: center; gap: 12px; }
.compact-formula p { max-width: 52ch; margin: 20px auto 0; color: var(--muted); font-size: .8125rem; text-align: center; }
.limitation-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.limitation-list li { position: relative; padding: 24px 0 24px 28px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.limitation-list li::before { content: ""; position: absolute; left: 1px; top: 34px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.limitation-list strong { color: var(--ink); }
.disclaimer { margin-top: 32px; color: var(--faint); font-size: .8125rem; line-height: 1.7; }
.citation-section { padding: 80px var(--page-pad); background: #111113; color: #FAFAFC; scroll-margin-top: var(--header-height); }
.citation-intro, .citation-workbench { width: 100%; max-width: 1320px; margin-left: auto; margin-right: auto; }
.citation-intro .section-number { color: #967EFF; }
.citation-intro h2 { font-family: var(--serif); font-size: clamp(2.15rem, 7vw, 4rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.citation-intro > p:not(.section-number) { max-width: 52ch; margin-top: 24px; color: #c8c7d0; font-size: .9375rem; }
.publication-facts { margin-top: 28px; border-top: 1px solid #3d3d43; }
.publication-facts > div { display: grid; grid-template-columns: minmax(104px, .42fr) minmax(0, .58fr); gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid #3d3d43; }
.publication-facts dt { color: #b8b7c1; font-size: .75rem; letter-spacing: .04em; }
.publication-facts dd { margin: 0; color: #f4f3f7; font-family: var(--mono); font-size: .75rem; text-align: right; overflow-wrap: anywhere; }
.publication-facts dd a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #967EFF; font-weight: 700; }
.publication-facts dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.repository-link { min-height: 48px; display: inline-flex; align-items: center; gap: 12px; color: #c8c7d0; font-size: .8125rem; font-weight: 650; }
.repository-link:hover { color: #967EFF; }
.citation-workbench { margin-top: 48px; }
.citation-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #3d3d43; }
.citation-tabs { display: flex; gap: 8px; }
.citation-tabs button, .copy-button { min-height: 44px; padding: 10px 14px; border: 1px solid #494950; border-radius: 10px; color: #c8c7d0; font-size: .8125rem; font-weight: 650; transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out; }
.citation-tabs button[aria-selected="true"] { background: #967EFF; border-color: #967EFF; color: #111113; }
.citation-tabs button:hover, .copy-button:hover { border-color: #967EFF; color: #FAFAFC; }
.citation-tabs button[aria-selected="true"]:hover { color: #111113; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; }
.copy-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.citation-panel { min-height: 260px; padding: 32px 0; border-bottom: 1px solid #3d3d43; }
.citation-panel p { max-width: 62ch; font-family: var(--serif); font-size: clamp(1.15rem, 3vw, 1.45rem); line-height: 1.65; overflow-wrap: anywhere; }
.citation-panel pre { max-width: 100%; margin: 0; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #e6e5eb; font-family: var(--mono); font-size: .8125rem; line-height: 1.75; }
.citation-actions { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.citation-actions a { min-height: 48px; display: inline-flex; align-items: center; gap: 12px; color: #967EFF; font-size: .8125rem; font-weight: 650; }
.citation-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { padding: 56px var(--page-pad) calc(28px + env(safe-area-inset-bottom)); }
.footer-top, .footer-bottom { width: 100%; max-width: var(--content-max); margin: 0 auto; }
.footer-top { display: flex; flex-direction: column; gap: 28px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-top p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; }
.back-top { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: .8125rem; font-weight: 650; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; color: var(--muted); font-size: .75rem; }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text); }
.footer-bottom a:hover { color: var(--accent); }
.figure-dialog { width: calc(100% - 32px); max-width: 1100px; max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--canvas); color: var(--text); }
.figure-dialog::backdrop { background: rgba(17,17,19,.78); backdrop-filter: blur(5px); }
.dialog-bar { position: sticky; z-index: 2; top: 0; min-height: 64px; padding: 8px 12px 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(12px); }
.dialog-bar h2 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.dialog-bar button { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.dialog-bar button:hover { background: var(--surface-3); }
.dialog-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.figure-dialog > img { width: 100%; height: auto; padding: 20px; background: #FAFAFC; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--canvas); box-shadow: 0 10px 36px rgba(17,17,19,.18); font-size: .8125rem; opacity: 0; pointer-events: none; transform: translate(-50%, 12px) scale(.95); transition: opacity 180ms ease-out, transform 180ms ease-out; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (min-width: 700px) {
  :root { --header-height: 80px; }
  .header-inner { gap: 22px; }
  .header-nav { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
  .header-nav a { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; color: var(--muted); font-size: .8125rem; transition: color 160ms ease-out; }
  .header-nav a:hover { color: var(--accent); }
  .hero { padding-top: calc(var(--header-height) + 72px); }
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr); gap: clamp(48px, 7vw, 112px); align-items: end; }
  .paper-identity { margin-top: 0; }
  .hero-orbit { width: 620px; height: 620px; right: -170px; top: 40px; }
  .hero-foot { margin-top: 64px; }
  .abstract-section { display: grid; grid-template-columns: minmax(130px, .4fr) minmax(0, 1.6fr); gap: 48px; }
  .abstract-section > * { margin: 0; }
  .section-index { flex-direction: column; justify-content: flex-start; gap: 8px; border-bottom: 0; }
  .abstract-content h2 { margin-top: 0; }
  .evidence-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .evidence-strip > div { min-height: 160px; border-bottom: 0; border-right: 1px solid var(--line); }
  .evidence-strip > div:last-child { border-right: 0; }
  .section-heading-row { flex-direction: row; align-items: end; justify-content: space-between; gap: 32px; }
  .section-heading-row h2 { margin-bottom: 24px; }
  .gallery-controls { flex: 0 0 auto; }
  .figure-panel { flex-basis: 100%; }
  .figure-open { padding: 28px; }
  .framework-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 24px; }
  .row-tag { grid-column: auto; padding-top: 5px; }
  .citation-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 8vw, 120px); }
  .citation-intro, .citation-workbench { margin: 0; }
  .citation-workbench { margin-top: 32px; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-top p { margin-left: auto; margin-right: 48px; }
}
@media (min-width: 1100px) {
  .hero { padding-top: calc(var(--header-height) + 88px); }
  .hero h1 { font-size: clamp(4rem, 5.2vw, 5.4rem); }
  .hero-inner { grid-template-columns: minmax(0, 1.7fr) minmax(270px, .55fr); }
  .abstract-section { padding-top: 128px; padding-bottom: 128px; }
  .reading-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); }
  .chapter-column { display: block; }
  .chapter-rail { position: sticky; top: calc(var(--header-height) + 40px); padding: 80px 0; display: flex; flex-direction: column; }
  .rail-title { margin-bottom: 16px; color: var(--faint); font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
  .chapter-link { position: relative; min-height: 48px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.35; transition: color 160ms ease-out, transform 160ms ease-out; }
  .chapter-link span { color: var(--faint); font-family: var(--serif); }
  .chapter-link:hover { color: var(--accent); transform: translateX(3px); }
  .chapter-link.is-active { color: var(--accent); font-weight: 700; }
  .chapter-link.is-active::before { content: ""; position: absolute; left: -12px; width: 3px; height: 18px; border-radius: 2px; background: var(--accent); }
  .chapter-link.is-active span { color: var(--accent); }
  .mobile-contents { display: none; }
  .article-section { padding: 104px 0; }
  .figure-panel { flex-basis: 100%; }
  .citation-section { padding-top: 112px; padding-bottom: 112px; }
}
@media (min-width: 1340px) {
  .reading-layout { grid-template-columns: 150px minmax(0, 790px) 190px; justify-content: center; gap: 64px; }
  .margin-column { display: block; }
  .margin-note { padding-top: 104px; }
  .margin-note + .margin-note { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
  .margin-note p { margin-top: 12px; color: var(--muted); font-size: .75rem; line-height: 1.7; }
  .margin-download { min-height: 48px; margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); color: var(--accent); font-size: .75rem; font-weight: 650; }
  .figure-panel { flex-basis: 100%; }
}
@media (max-width: 430px) {
  .header-divider, .research-link, .theme-toggle span { display: none; }
  .theme-toggle { padding: 0; }
  .header-download { padding: 0 12px; }
  .hero-ctas { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .figure-panel figcaption { grid-template-columns: 1fr; gap: 8px; }
  .citation-toolbar { align-items: stretch; }
  .copy-button { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-orbit { transform: none; }
  .figure-open:hover img { transform: none; }
}
