:root {
  --ink: #151820;
  --ink-muted: #647084;
  --paper: #f7f7f5;
  --paper-warm: #f1f0ec;
  --panel: #ffffff;
  --line: #dce1e8;
  --line-strong: #c7ceda;
  --navy: #0d1421;
  --navy-2: #111c2c;
  --accent: #2d6df6;
  --accent-soft: #eaf0ff;
  --cyan: #10b7bf;
  --violet: #7655d7;
  --violet-soft: #f0edff;
  --coral: #f36d5e;
  --gold: #f0aa38;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --serif: "Iowan Old Style", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow: 0 15px 45px rgb(16 29 55 / 8%);
  --wide: calc(100% - 72px);
  --reading: min(840px, 100%);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { max-width: 100%; overflow-x: clip; margin: 0; padding-top: 76px; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
html.is-modal-open { overflow: hidden; overscroll-behavior: none; }
body.is-modal-open { width: 100%; position: fixed; inset-inline: 0; overflow: hidden; overscroll-behavior: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 1000; top: -70px; left: 20px; padding: 8px 12px; background: #fff; border-radius: 8px; color: var(--navy); transition: top .2s; }
.skip-link:focus { top: 12px; }
.reading-progress { position: fixed; z-index: 102; top: 0; left: 0; right: 0; height: 3px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--accent), var(--violet)); }

.site-header { width: 100%; height: 76px; position: fixed; z-index: 90; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 32px; padding-inline: clamp(18px, 3.4vw, 46px); color: #eef3fb; background: rgb(10 16 28 / 92%); border-bottom: 1px solid rgb(255 255 255 / 9%); backdrop-filter: blur(18px); transition: transform .28s cubic-bezier(.22, .61, .36, 1), background .2s; will-change: transform; }
.site-header.is-hidden { transform: translateY(calc(-100% - 3px)); pointer-events: none; }
.brand { flex: 0 1 auto; min-width: 0; display: inline-flex; gap: 10px; align-items: center; text-decoration: none; letter-spacing: .02em; }
.brand-text { min-width: 0; color: #fff; font-size: 16px; font-weight: 770; white-space: nowrap; }
.brand-text em { color: #8fa7d0; font-style: normal; font-weight: 500; }
.brand-mark { width: 26px; height: 29px; display: inline-flex; align-items: center; gap: 2px; transform: skewY(-4deg); }
.brand-mark i { display: block; width: 3px; border-radius: 9px; background: linear-gradient(180deg, #ff776a, #fd3e6b); }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 12px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 24px; }
.brand-mark i:nth-child(3) { height: 29px; }
.language-icon-toggle { width: 68px; height: 38px; position: relative; flex: 0 0 auto; margin-left: auto; padding: 0; border: 0; background: transparent; }
.language-icon-toggle:focus-visible { outline: 2px solid #83aaff; outline-offset: 3px; border-radius: 18px; }
.language-orbit { width: 64px; height: 32px; position: relative; display: block; margin: auto; border: 1px solid rgb(181 202 234 / 24%); border-radius: 18px; background: linear-gradient(145deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 2%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 4px 14px rgb(0 0 0 / 16%); transition: border-color .22s ease, transform .22s ease, background .22s ease; }
.language-icon-toggle:hover .language-orbit { border-color: rgb(151 191 255 / 78%); background: linear-gradient(145deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 5%)); transform: translateY(-1px); }
.language-glyph { width: 25px; height: 25px; position: absolute; top: 2px; z-index: 1; display: grid; place-items: center; border: 1px solid rgb(202 217 239 / 18%); border-radius: 50%; color: #8193ae; background: #172237; font-family: var(--sans); font-size: 11px; font-weight: 800; line-height: 1; transition: color .24s ease, background .24s ease, box-shadow .24s ease, opacity .24s ease, transform .24s cubic-bezier(.2,.8,.2,1); }
.language-glyph-zh { left: 3px; font-family: var(--serif); font-size: 14px; }
.language-glyph-en { right: 3px; }
.language-icon-toggle[data-language="zh"] .language-glyph-zh { z-index: 3; color: #fff; border-color: #65a0ff; background: linear-gradient(145deg, #4e91ff, #2d62dc); box-shadow: 0 3px 9px rgb(42 109 238 / 46%); transform: scale(1.05); }
.language-icon-toggle[data-language="zh"] .language-glyph-en { opacity: .82; transform: scale(.92); }
.language-icon-toggle[data-language="en"] .language-glyph-en { z-index: 3; color: #fff; border-color: #b294ff; background: linear-gradient(145deg, #9b7aec, #6846cb); box-shadow: 0 3px 9px rgb(117 83 213 / 46%); transform: scale(1.05); }
.language-icon-toggle[data-language="en"] .language-glyph-zh { opacity: .82; transform: scale(.92); }

.hero { min-height: 500px; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: 64px; align-items: end; padding: 82px clamp(28px, 7vw, 110px) 62px; color: #f7faff; background: radial-gradient(760px 500px at 83% 30%, #1f4770 0%, #11213a 48%, transparent 70%), linear-gradient(133deg, #070b14, #101a2c 58%, #080c15); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 660px; aspect-ratio: 1; right: -180px; top: -320px; border: 1px solid rgb(111 179 255 / 35%); border-radius: 50%; box-shadow: 0 0 0 70px rgb(74 141 215 / 5%), 0 0 0 140px rgb(75 158 255 / 4%), 0 0 90px rgb(36 135 255 / 28%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 600px; height: 5px; right: 5%; bottom: 50px; opacity: .8; background: repeating-linear-gradient(90deg, transparent 0 9px, #3d79b9 9px 10px); }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .12; background-image: linear-gradient(rgb(255 255 255 / 45%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 45%) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, #000, transparent 88%); }
.hero-copy { max-width: 740px; }
.eyebrow { margin: 0 0 12px; color: #57739b; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.hero .eyebrow { color: #9ab5da; }
.dot { width: 7px; height: 7px; display: inline-block; margin: 0 7px 1px 0; border-radius: 50%; background: var(--coral); box-shadow: 0 0 16px #ff7a6e; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 860px; margin: 0; color: #fff; font-size: clamp(40px, 5.2vw, 75px); line-height: .98; letter-spacing: -.062em; }
.hero-title-brand { display: block; color: #fff; }
.hero-title-main { display: block; margin-top: 14px; color: #afc9f5; font-family: var(--serif); font-size: .59em; font-weight: 500; letter-spacing: -.04em; }
.hero-title-translation { margin: 11px 0 0; color: #7f9fc9; font-family: var(--serif); font-size: clamp(14px, 1.5vw, 18px); line-height: 1.45; letter-spacing: .005em; }
.language-en .hero-title-main { font-size: .43em; line-height: 1.08; letter-spacing: -.025em; }
.hero-author { margin: 12px 0 0; color: #cfddf1; font-family: var(--serif); font-size: 13px; font-weight: 650; letter-spacing: .01em; }
.hero-author sup { margin-left: 1px; color: #8fb6ee; font-family: var(--sans); font-size: 9px; vertical-align: super; }
.source-footnote-marker { display: inline; margin: 0 1px; padding: 0; border: 0; border-bottom: 1px dotted currentColor; color: #497ca8; background: transparent; font: inherit; font-size: .66em; font-weight: 800; line-height: 1; vertical-align: super; cursor: pointer; }
.source-footnote-marker:hover { color: #0a8190; background: #e6fbfc; }
.hero-author .source-footnote-marker { margin: 0; color: #8fb6ee; font-size: 1em; vertical-align: baseline; }
.hero-deck { max-width: 620px; margin: 0; color: #bfd0eb; font-size: 17px; line-height: 1.78; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 15px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--accent); box-shadow: 0 10px 22px rgb(31 92 230 / 32%); }
.button-primary:hover { background: #1c5eeb; }
.button-quiet { color: #d8e7ff; border-color: rgb(207 229 255 / 26%); background: rgb(255 255 255 / 6%); }
.button-quiet:hover { background: rgb(255 255 255 / 12%); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 500px; overflow: hidden; border: 1px solid rgb(219 235 255 / 19%); border-radius: 12px; background: rgb(222 235 255 / 16%); box-shadow: 0 24px 50px rgb(0 0 0 / 22%); }
.fact { min-height: 110px; padding: 20px 17px; background: rgb(9 20 36 / 75%); }
.fact strong { display: block; color: #fff; font-size: 28px; line-height: 1.05; letter-spacing: -.05em; }
.fact span { display: block; margin-top: 9px; color: #9fb4d2; font-size: 12px; line-height: 1.4; }
.fact-wide { grid-column: 1 / -1; min-height: 82px; display: flex; align-items: baseline; gap: 13px; padding-block: 18px; }
.fact-wide strong { color: #68d7da; }
.fact-wide span { margin: 0; }

.reader-meta { width: var(--wide); max-width: 1480px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px auto 76px; }
.meta-callout { display: flex; gap: 11px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 5px 14px rgb(20 29 42 / 3%); }
.meta-callout p { margin: 0; color: var(--ink-muted); font-size: 12.5px; line-height: 1.56; }
.meta-callout b { color: var(--ink); }
.meta-icon { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-weight: 900; }
.meta-note .meta-icon { color: #058d97; background: #e3fbfb; }
.meta-reference .meta-icon { color: var(--violet); background: var(--violet-soft); }

.view { width: min(calc(100% - 40px), 1320px); min-width: 0; margin: 0 auto 82px; }
.view#view-reader { padding-top: clamp(40px, 5vw, 68px); }
.view[hidden] { display: none !important; }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.view-heading h2 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: clamp(30px, 4vw, 49px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.view-heading > p { max-width: 440px; margin: 0 0 2px; color: var(--ink-muted); font-size: 13.5px; line-height: 1.68; }

.reader-layout { display: grid; grid-template-columns: 148px minmax(0, 1fr); max-width: 1180px; margin: 0 auto; justify-content: start; gap: clamp(14px, 1.7vw, 24px); min-width: 0; transition: grid-template-columns .28s cubic-bezier(.2,.7,.2,1), gap .28s cubic-bezier(.2,.7,.2,1); }
.reader-layout.is-toc-collapsed { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.toc-rail { align-self: start; position: sticky; top: 92px; max-height: calc(100vh - 108px); min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 0 2px 12px 0; scrollbar-width: thin; transition: width .28s cubic-bezier(.2,.7,.2,1), opacity .18s ease; }
.toc-rail-head { display: flex; justify-content: flex-end; align-items: center; height: 28px; margin: 0 0 7px; }
.toc-toggle { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; color: #718098; background: transparent; }
.toc-toggle:hover { color: var(--accent); border-color: #d5e3ff; background: #f4f8ff; }
.toc-toggle-icon::before { content: "‹"; display: block; font-family: Arial, sans-serif; font-size: 24px; font-weight: 300; line-height: 20px; transition: transform .22s ease; }
.toc-toggle.is-collapsed .toc-toggle-icon::before { content: "›"; }
.toc { display: grid; max-height: 2200px; gap: 3px; opacity: 1; overflow: visible; transform: translateX(0); transition: opacity .12s ease, transform .2s ease, max-height .28s ease; }
.toc a { display: block; padding: 5px 6px; overflow: hidden; border-left: 2px solid transparent; color: #687488; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; transition: .16s; }
.toc a:hover, .toc a.is-current { border-left-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.toc a.level-3 { padding-left: 14px; font-size: 11px; }
.reader-layout.is-toc-collapsed .toc-rail { width: 24px; padding: 0; overflow: hidden; }
.reader-layout.is-toc-collapsed .toc-rail-head { justify-content: center; margin: 0; }
.reader-layout.is-toc-collapsed .toc { max-height: 0; opacity: 0; pointer-events: none; transform: translateX(-10px); }
.reader-column { min-width: 0; max-width: 100%; }
.reader-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.search-box { flex: 1 1 270px; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: #7a8697; background: #fff; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(45 109 246 / 10%); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-result { color: #738197; font-size: 11px; }
.tool-buttons { display: flex; gap: 6px; }
.mini-button { min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: #536276; background: #fff; font-size: 11px; font-weight: 650; }
.icon-button { width: 36px; padding: 0; font-size: 20px; font-family: var(--sans); font-weight: 400; line-height: 1; }
.mini-button:hover { color: var(--accent); border-color: #aac4ff; background: #f8fbff; }
.reader-content { display: block; }
.semantic-block { position: relative; min-width: 0; max-width: 100%; overflow: visible; margin: 0; padding: 0 0 13px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.semantic-block.block-heading { margin-top: 48px; padding: 0 0 15px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; box-shadow: none; }
.semantic-block.block-heading { scroll-margin-top: 108px; }
.semantic-block.block-heading:first-child { margin-top: 0; }
.semantic-block.block-figure, .semantic-block.block-table { margin: 14px 0 19px; padding: 0 0 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.semantic-block.block-list { padding: 0 0 10px 17px; }
.semantic-block.is-filtered-out { display: none; }
.block-primary { min-width: 0; max-width: 100%; }
.block-primary p { position: relative; max-width: 100%; margin: 0; padding-right: 28px; overflow-wrap: anywhere; color: #2a3342; font-family: var(--serif); font-size: 16.6px; line-height: 1.94; letter-spacing: .006em; }
.block-heading .block-primary { padding: 0; }
.block-heading .block-primary h3 { max-width: 90%; margin: 0; color: var(--navy); font-family: var(--serif); font-size: clamp(23px, 3vw, 34px); font-weight: 600; line-height: 1.26; letter-spacing: -.035em; }
.heading-translation { max-width: 90%; margin: 9px 0 0; color: #687b97; font-family: var(--serif); font-size: clamp(16px, 1.65vw, 20px); line-height: 1.52; }
.block-figure .block-primary, .block-table .block-primary { margin-top: 10px; }
.block-figure .block-primary p, .block-table .block-primary p { color: #31466b; font-size: 14.7px; line-height: 1.8; }
.block-list .block-primary p::before { content: ""; width: 5px; height: 5px; display: inline-block; margin: 0 10px 3px -16px; border-radius: 50%; background: var(--accent); }
.math-inline { max-width: 100%; color: #6b3faf; white-space: normal; overflow-wrap: anywhere; }
.math-inline .katex { max-width: 100%; font-size: 1em; }
.formula-render { display: block; max-width: 100%; margin: 16px 0 4px; padding: 15px 18px; overflow-x: auto; overflow-y: hidden; border: 1px solid #ddd6ee; border-radius: 9px; color: #483171; background: linear-gradient(135deg, #fbf9ff, #f3effd); text-align: center; }
.formula-render .katex-display { margin: 0; }
.inline-display-formula { max-width: 100%; margin: 20px 0 18px; overflow-x: auto; overflow-y: hidden; color: #483171; text-align: center; }
.inline-display-formula .formula-render { min-width: max-content; margin: 0 auto; padding: 0 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.block-formula { padding: 12px 0 14px; border: 0; background: transparent; }
.block-formula .block-primary { padding-right: 0; }
.secondary-language { margin: 0; }
.secondary-language > summary { display: none; }
.translation-toggle { width: 17px; height: 17px; position: absolute; right: 0; bottom: calc(.97em - 8.5px); display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 4px; color: #6f819a; background: transparent; cursor: pointer; }
.translation-toggle::before { content: ""; width: 6px; height: 6px; display: block; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform .18s; }
.translation-toggle.is-open::before { transform: rotate(225deg) translate(-1px, -1px); }
.translation-toggle:hover { color: var(--accent); background: #eef4ff; }
.secondary-language[open] .secondary-content { margin-top: 15px; padding: 13px 0 16px; border-top: 2px dashed #8eaccb; border-bottom: 2px dashed #8eaccb; }
.secondary-language .secondary-content { max-width: 100%; overflow-wrap: anywhere; color: #536074; font-family: var(--serif); font-size: 16.6px; line-height: 1.94; }
.secondary-language .secondary-content p { max-width: 100%; margin: 0; }
.language-en .block-primary p { font-family: var(--serif); font-size: 16px; line-height: 1.88; }
.language-en .secondary-language .secondary-content { font-family: var(--serif); font-size: 16px; line-height: 1.88; }
.language-en .translation-toggle { bottom: calc(.94em - 8.5px); }
.block-figure .secondary-language .secondary-content, .block-table .secondary-language .secondary-content { color: #31466b; font-size: 14.7px; line-height: 1.8; }
.language-en .block-figure .block-primary p, .language-en .block-table .block-primary p, .language-en .block-figure .secondary-language .secondary-content, .language-en .block-table .secondary-language .secondary-content { font-size: 14.7px; line-height: 1.8; }

.term-note, .reference-note, .figure-reference { display: inline; margin: 0 1px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.term-note { border-bottom: 1px dashed #19aeb6; color: #087e8b; font-weight: 650; }
.term-note::after { content: "✦"; margin-left: 2px; color: #13aeba; font-family: var(--sans); font-size: 9px; vertical-align: super; }
.term-note:hover { color: #075c69; background: #e1fbfc; }
.reference-note { border-bottom: 1px dashed #a38ae7; color: #6b4ab9; font-family: inherit; }
.reference-note::after { content: "⌁"; margin-left: 2px; color: #8265ce; font-family: var(--sans); font-size: 10px; vertical-align: super; }
.reference-note:hover { background: #f2efff; }
.figure-reference { border-bottom: 1px dashed #d28e2e; color: #9d610d; font-weight: 650; }
.figure-reference::after { content: "▧"; margin-left: 2px; color: #c78325; font-family: var(--sans); font-size: 8px; vertical-align: super; }
.figure-reference:hover { color: #754304; background: #fff4df; }

.inline-source-figure { max-width: 100%; margin: 14px 0 0; padding: 0; overflow: visible; border: 0; background: transparent; }
.inline-source-figure img { width: 100%; max-width: 100%; height: auto; display: block; background: transparent; }
.is-zoomable-figure { cursor: zoom-in; }
.is-zoomable-figure:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 5px; }
.composite-figure { display: grid; gap: 10px; width: 100%; }
.composite-panel { min-width: 0; margin: 0; }
.composite-panel figcaption { display: flex; align-items: baseline; gap: 8px; min-height: 21px; margin: 0 0 5px; color: #3d4d63; font-family: var(--sans); font-size: 12px; line-height: 1.35; }
.composite-panel figcaption b { flex: 0 0 auto; color: #152c47; font-size: 14px; font-weight: 850; }
.composite-panel img { width: 100%; display: block; background: #eef2f6; }
.composite-layout-29 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.composite-layout-30 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.composite-layout-30 .panel-a, .composite-layout-30 .panel-b { grid-column: span 2; }
.composite-layout-30 .panel-c { grid-column: span 1; }
.composite-layout-30 .panel-d { grid-column: span 3; }
.composite-layout-30 .panel-e { grid-column: 1 / -1; }
.composite-layout-31 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.composite-layout-31 .panel-a, .composite-layout-31 .panel-d { grid-column: span 2; grid-row: span 2; }
.composite-layout-31 .panel-b, .composite-layout-31 .panel-c, .composite-layout-31 .panel-e, .composite-layout-31 .panel-f { grid-column: span 2; }
.figure-return { position: absolute; bottom: 0; left: 0; padding: 5px 8px; border: 1px solid #e8c38c; border-radius: 6px; color: #985e0f; background: #fffaf1; font-size: 10px; font-weight: 700; }
.figure-return:hover { color: #fff; border-color: #c98223; background: #c98223; }
.vector-iframe { width: 100%; min-height: 620px; border: 0; border-radius: 7px; background: #fff; }

.semantic-block.block-heading.reference-section { margin-top: 54px; padding-bottom: 0; border-bottom: 0; }
.reference-section .block-primary { padding-bottom: 15px; border-bottom: 1px solid var(--line-strong); }
.reference-section .heading-translation { margin-bottom: 22px; }
.reference-list { columns: 1; margin: 0; }
.reference-entry { margin: 0 0 13px; color: #2a3342; font-family: var(--serif); font-size: 16.6px; line-height: 1.94; letter-spacing: .006em; overflow-wrap: anywhere; }

.figure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.figure-card { position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.figure-thumb { aspect-ratio: 1.14 / 1; display: grid; place-items: center; overflow: hidden; background: #eef1f6; }
.figure-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s; }
.figure-card:hover .figure-thumb img { transform: scale(1.025); }
.figure-thumb .missing-preview { color: #72819a; font-size: 12px; text-align: center; }
.figure-body { display: flex; flex: 1; flex-direction: column; padding: 17px 18px; }
.figure-number { color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.figure-body h3 { margin: 7px 0 8px; color: #253149; font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.45; }
.figure-body p { margin: 0; color: #657187; font-size: 12px; line-height: 1.63; }
.figure-actions { display: flex; justify-content: space-between; gap: 9px; align-items: center; margin-top: auto; padding-top: 15px; }
.figure-actions button, .figure-actions a { border: 0; color: var(--accent); background: transparent; font-size: 11px; font-weight: 700; text-decoration: none; }
.figure-actions a { color: #738099; }

.research-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; }
.research-cards { display: grid; gap: 15px; }
.research-card { position: relative; overflow: hidden; padding: 25px 29px; border: 1px solid #d7e3f7; border-radius: 12px; background: linear-gradient(130deg, #f9fcff, #fff); }
.research-card::after { content: ""; position: absolute; top: 0; right: 0; width: 120px; height: 120px; opacity: .45; background: radial-gradient(circle at 100% 0, #b8d9ff 0 4%, transparent 5% 100%); }
.research-card .kicker { margin: 0 0 7px; color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.research-card h3 { margin: 0 0 10px; color: var(--navy); font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
.research-card > p { margin: 0; color: #4d5e75; font-size: 14px; line-height: 1.8; }
.takeaway { margin-top: 16px !important; padding: 10px 13px; border-left: 3px solid var(--cyan); color: #0d6971 !important; background: #eafffc; font-size: 12px !important; font-weight: 650; }
.glossary-panel { align-self: start; position: sticky; top: 98px; padding: 23px; border: 1px solid #cde4e7; border-radius: 12px; background: #effcfc; }
.glossary-panel h3 { margin: 0 0 8px; color: #16566a; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.glossary-panel > p:not(.eyebrow) { margin-bottom: 18px; color: #497782; font-size: 12px; line-height: 1.6; }
.glossary-list { display: grid; gap: 6px; }
.glossary-list button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border: 1px solid rgb(55 151 159 / 23%); border-radius: 7px; color: #116d75; background: rgb(255 255 255 / 72%); text-align: left; font-size: 12px; font-weight: 700; }
.glossary-list button:hover { color: #fff; background: #108e98; border-color: #108e98; }
.glossary-list button span { color: #6a9da3; font-family: var(--mono); font-size: 9px; font-weight: 600; }
.glossary-list button:hover span { color: #c8fcff; }

.source-view { padding-bottom: 4px; }
.source-controls { display: flex; gap: 9px; margin: -10px 0 20px; }
.source-view .button-quiet { color: #455975; border-color: var(--line-strong); background: #fff; }
.source-view .button-quiet:hover { color: var(--accent); background: #f7faff; }
.pdf-stage { min-height: 630px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 13px; background: #e9edf3; box-shadow: var(--shadow); }
.pdf-stage iframe { display: block; width: 100%; min-height: 850px; border: 0; background: #fff; }
.pdf-placeholder { min-height: 630px; display: grid; place-content: center; justify-items: center; max-width: 440px; margin: auto; color: #6b7890; text-align: center; }
.pdf-placeholder span { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 12px; border-radius: 15px; color: #fff; background: var(--navy); font-size: 31px; }
.pdf-placeholder p { margin: 0; font-size: 13px; line-height: 1.7; }

.annotation-dialog { width: min(620px, calc(100vw - 38px)); max-height: min(740px, calc(100vh - 46px)); overflow: auto; padding: 32px; border: 0; border-radius: 16px; color: #23324b; background: #fff; box-shadow: 0 26px 80px rgb(10 21 43 / 35%); }
.annotation-dialog::backdrop { background: rgb(4 12 24 / 56%); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #72819a; background: #eff3f8; font-size: 22px; line-height: 1; }
.dialog-close:hover { color: #fff; background: var(--navy); }
.note-kicker { margin: 0 0 8px; color: #0897a1; font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.annotation-dialog h2 { margin: 0 32px 13px 0; color: #16354e; font-family: var(--serif); font-size: clamp(29px, 3.5vw, 34px); font-weight: 600; line-height: 1.22; }
.term-visual { margin: 18px 0; padding: 14px 16px; border-radius: 9px; color: #126d75; background: #e7fbfc; font-family: var(--mono); font-size: 11px; font-weight: 700; text-align: center; }
.annotation-dialog p { color: #516177; font-size: 15.5px; line-height: 1.82; }
.annotation-dialog .why { margin: 20px 0 0; padding: 13px 15px; border-left: 3px solid var(--gold); color: #72572a; background: #fff8e9; font-size: 14px; line-height: 1.72; }
.source-footnote-content { margin-top: 18px; padding: 15px 16px; border: 1px solid #d6e5ef; border-radius: 10px; background: #f8fbff; }
.source-footnote-content p { margin: 0; color: #405c76; font-family: var(--serif); font-size: 16px; line-height: 1.8; }
.source-footnote-content .source-footnote-original { margin-top: 13px; padding-top: 13px; border-top: 1px dashed #b8cce0; color: #647891; font-size: 14px; line-height: 1.75; }
.glossary-lede { margin: 0 0 19px; color: #2b5972 !important; font-family: var(--serif); font-size: 18px !important; font-weight: 600; line-height: 1.62 !important; }
.term-visual.glossary-visual { margin: 0 0 19px; padding: 17px 18px; border: 1px solid #cdebf0; border-radius: 12px; color: #0b6e76; background: linear-gradient(135deg, #e5fbfc, #f0f7ff); font-family: var(--sans); text-align: left; }
.glossary-visual .visual-caption { margin: 0 0 13px; color: #0d707a; font-family: var(--mono); font-size: 11px; font-weight: 800; line-height: 1.55; letter-spacing: .025em; }
.visual-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.visual-node { min-width: 0; padding: 7px 10px; border: 1px solid rgb(20 151 160 / 29%); border-radius: 8px; color: #126e77; background: rgb(255 255 255 / 84%); font-size: 12px; font-weight: 780; line-height: 1.28; text-align: center; }
.visual-arrow { color: #4ea9ad; font-size: 16px; font-weight: 850; line-height: 1; }
.diagram-lane, .diagram-memory, .diagram-loop, .diagram-teachers, .diagram-training, .diagram-serving, .diagram-system, .diagram-tokens { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.diagram-chip, .diagram-serving > span, .diagram-system > span, .diagram-training > span, .diagram-loop > span, .diagram-tokens > span { padding: 8px 10px; border: 1px solid #a5dfe3; border-radius: 8px; color: #116e78; background: rgb(255 255 255 / 84%); font-size: 12px; font-weight: 800; line-height: 1.3; text-align: center; }
.diagram-chip.router { color: #5e49a8; border-color: #d3c9f5; background: #faf8ff; }
.diagram-chip.output { color: #9a5d12; border-color: #f2d4a1; background: #fffaf0; }
.diagram-connector, .diagram-loop > b, .diagram-training > b, .diagram-serving > b, .diagram-system > b, .diagram-tokens > b { color: #47a5ac; font-size: 18px; font-weight: 850; line-height: 1; }
.diagram-fan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.diagram-fan i, .diagram-teachers i { padding: 6px 7px; border-radius: 7px; color: #6751ad; background: #f3efff; font-size: 10px; font-style: normal; font-weight: 800; text-align: center; }
.diagram-memory { gap: 10px; }
.memory-history { display: flex; align-items: center; gap: 4px; padding: 8px; border: 1px solid #b7dfe2; border-radius: 9px; color: #166c75; background: rgb(255 255 255 / 80%); }
.memory-history b { margin-right: 3px; font-size: 11px; }
.memory-history span { width: 9px; height: 19px; border-radius: 2px; background: #7ecad0; }
.memory-history span:nth-of-type(2) { background: #aadfe3; }
.memory-history span:nth-of-type(3) { background: #d3eff1; }
.memory-history span:nth-of-type(4) { background: #e7f8f9; }
.memory-kv { display: grid; gap: 1px; padding: 8px 10px; border: 1px solid #cfc5f1; border-radius: 8px; color: #5c47a6; background: #faf8ff; text-align: center; }
.memory-kv b { font-family: var(--mono); font-size: 13px; }
.memory-kv small, .memory-tiers small { font-size: 9px; font-weight: 700; }
.memory-tiers { display: flex; gap: 5px; }
.memory-tiers i { min-width: 58px; padding: 7px; border-radius: 7px; color: #146e77; background: #dff7f8; font-size: 11px; font-style: normal; font-weight: 850; text-align: center; }
.memory-tiers i + i { color: #84622c; background: #fff2d9; }
.diagram-attention { display: grid; justify-items: center; gap: 10px; }
.attention-query { padding: 6px 10px; border-radius: 999px; color: #fff; background: #278f9c; font-size: 11px; font-weight: 850; }
.attention-blocks { display: flex; gap: 5px; padding: 10px; border: 1px dashed #a9cfd4; border-radius: 9px; background: rgb(255 255 255 / 60%); }
.attention-blocks i { width: 20px; height: 24px; border: 1px solid #c6d9de; border-radius: 3px; background: #fff; }
.attention-blocks i.active { border-color: #3ea6b0; background: linear-gradient(180deg, #64c3ca, #d9f3f4); box-shadow: 0 0 0 2px rgb(48 158 169 / 11%); }
.diagram-attention small { color: #3f7078; font-size: 10px; font-weight: 700; }
.diagram-loop > span { border-radius: 999px; }
.diagram-loop > b:last-child { color: #7b5bc9; }
.diagram-teachers > div { display: grid; gap: 4px; }
.diagram-teachers strong { padding: 8px 10px; border: 1px solid #cfc5f1; border-radius: 8px; color: #5e48a8; background: #faf8ff; font-size: 11px; text-align: center; }
.diagram-teachers strong:last-child { color: #176e77; border-color: #a5dfe3; background: #f5ffff; }
.diagram-teachers small, .diagram-serving small, .diagram-system small, .diagram-training small { font-size: 9px; font-weight: 700; }
.diagram-training > span { min-width: 84px; }
.diagram-training > span:first-child { color: #436989; border-color: #cbddec; background: #f4f9ff; }
.diagram-training > span:last-child { color: #6551ad; border-color: #d8d0f5; background: #faf9ff; }
.diagram-precision { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.diagram-precision > div { padding: 10px; border: 1px solid #bfdfeb; border-radius: 9px; background: rgb(255 255 255 / 78%); }
.diagram-precision > div + div { border-color: #d9d0f5; background: #faf8ff; }
.diagram-precision b, .diagram-precision span { display: block; }
.diagram-precision b { color: #236c78; font-size: 11px; }
.diagram-precision span { margin-top: 5px; color: #087d89; font-family: var(--mono); font-size: 12px; font-weight: 850; }
.diagram-precision > div + div b { color: #6952ac; }
.diagram-precision > div + div span { color: #7655bd; }
.token-text { color: #5c47a6 !important; border-color: #d4cbf3 !important; background: #faf8ff !important; }
.token-pieces { display: flex; gap: 4px; padding: 5px !important; background: transparent !important; border: 0 !important; }
.token-pieces i { padding: 6px 7px; border: 1px solid #a7dce0; border-radius: 5px; color: #16717a; background: #fff; font-size: 10px; font-style: normal; font-weight: 800; }
.token-id { color: #8b5b16 !important; border-color: #efd39b !important; background: #fffaf0 !important; }
.diagram-context { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; }
.diagram-context > span { padding: 7px 9px; border: 1px solid #c8dfea; border-radius: 8px; color: #466c88; background: #f8fcff; font-size: 11px; font-weight: 800; }
.diagram-context > i { width: 18px; height: 26px; border-radius: 3px; background: #bfe7ea; }
.diagram-context > i:nth-of-type(2) { background: #8dd3d8; }
.diagram-context > i:nth-of-type(3) { background: #5ab7c0; }
.diagram-context > i:nth-of-type(4) { background: #318e9b; }
.diagram-context .context-now { color: #fff; border-color: #278f9c; background: #278f9c; }
.diagram-context > b { flex-basis: 100%; margin-top: 4px; color: #3e777e; font-size: 10px; text-align: center; }
.diagram-multimodal { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.diagram-multimodal > span { min-width: 82px; padding: 8px 10px; border: 1px solid #b7dfe2; border-radius: 8px; color: #166e77; background: #f6ffff; font-size: 12px; font-weight: 850; text-align: center; }
.diagram-multimodal small { font-size: 9px; font-weight: 700; }
.diagram-multimodal > b { color: #4ea9ad; font-size: 17px; }
.diagram-multimodal .modality-image { color: #6751ad; border-color: #d6cff4; background: #faf8ff; }
.diagram-multimodal .modality-model { color: #8a5f1a; border-color: #efd49f; background: #fffaf1; }
.diagram-learning { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.diagram-learning > span { padding: 7px 9px; border: 1px solid #bddfe4; border-radius: 8px; color: #276f78; background: #fff; font-size: 11px; font-weight: 800; text-align: center; }
.diagram-learning > b { color: #4fa9ae; font-size: 16px; }
.diagram-learning .learning-loss { color: #8a5c17; border-color: #efd79e; background: #fffaf0; }
.diagram-learning .learning-weight { color: #5f49a7; border-color: #d6cdf4; background: #faf8ff; }
.diagram-learning small { display: block; font-size: 9px; font-weight: 700; }
.diagram-traffic { display: flex; align-items: center; justify-content: center; gap: 12px; }
.diagram-traffic > b { color: #4fa9ae; font-size: 20px; }
.traffic-before, .traffic-after { display: grid; grid-template-columns: repeat(3, 16px); gap: 5px; padding: 9px; border: 1px solid #c9e3e6; border-radius: 8px; background: rgb(255 255 255 / 80%); }
.traffic-before i, .traffic-after i { height: 25px; border-radius: 3px; background: #bde6e8; }
.traffic-before i:first-child { height: 42px; margin-bottom: -17px; background: #e68478; }
.traffic-after i { height: 31px; background: #62bec5; }
.traffic-before small, .traffic-after small { grid-column: 1 / -1; margin-top: 3px; color: #54737b; font-size: 9px; font-weight: 800; text-align: center; }
.diagram-compute { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.diagram-compute .matrix { min-width: 36px; padding: 11px 8px; border: 1px solid #a6dce0; border-radius: 7px; color: #14717a; background: #fff; font-family: var(--mono); font-size: 15px; font-weight: 850; text-align: center; }
.diagram-compute b { color: #4ca5ab; font-size: 20px; }
.diagram-compute .result { color: #5d49a7; border-color: #d5ccf3; background: #faf8ff; font-family: var(--sans); font-size: 11px; }
.diagram-compute small { flex-basis: 100%; color: #55747c; font-size: 10px; font-weight: 750; text-align: center; }
.glossary-example { margin: 0 0 19px; padding: 14px 16px; border: 1px solid #d6e6f5; border-radius: 11px; background: linear-gradient(135deg, #f4faff, #fafcff); }
.glossary-example b { display: block; margin-bottom: 6px; color: #2a6283; font-size: 13px; font-weight: 850; }
.glossary-example p { margin: 0; color: #45617c; font-size: 14.5px; line-height: 1.78; }
.glossary-body { margin: 0 0 18px !important; color: #43566f !important; font-size: 15.5px !important; line-height: 1.84 !important; }
.term-steps { margin: 18px 0; padding: 0; border: 0; background: transparent; }
.term-steps > b { display: block; margin-bottom: 10px; color: #24627a; font-family: var(--sans); font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.term-steps ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.term-steps li { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 10px; align-items: start; }
.term-steps li > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #39a9b3, #227c91); font-family: var(--mono); font-size: 11px; font-weight: 800; }
.term-steps li p { margin: -2px 0 0; color: #516177; font-size: 14.5px; line-height: 1.72; }
.glossary-insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 11px; margin: 20px 0; }
.glossary-insight { min-width: 0; padding: 13px 14px; border: 1px solid #d7e5ec; border-radius: 10px; background: #fbfdff; }
.glossary-insight b { display: block; margin-bottom: 6px; font-family: var(--sans); font-size: 12px; font-weight: 850; letter-spacing: .025em; }
.glossary-insight p { margin: 0; font-size: 14px; line-height: 1.72; }
.analogy-insight { border-color: #cdeced; background: #f2fbfb; }
.analogy-insight b { color: #167077; }
.analogy-insight p { color: #326d75; }
.report-insight { border-color: #ded7f7; background: #faf9ff; }
.report-insight b { color: #6551ad; }
.report-insight p { color: #5c5876; }
.compare-insight { border-color: #f0dfa8; background: #fffdf6; }
.compare-insight b { color: #806526; }
.compare-insight p { color: #786a45; }
.reference-dialog .note-kicker { color: var(--violet); }
.reference-dialog h2 { color: #453271; }
.reference-dialog .term-visual { color: #664bb4; background: #f1eeff; }
.reference-item { margin-top: 16px; padding: 14px 15px 12px; border: 1px solid #dfd9f3; border-radius: 9px; background: #fbfaff; }
.reference-item-key { display: block; margin-bottom: 7px; color: #7053bf; font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.reference-item p { margin: 0; color: #4d4964; font-family: var(--serif); font-size: 13px; line-height: 1.7; }
.reference-item a { display: inline-block; margin-top: 9px; color: #6b4ab9; font-size: 11px; font-weight: 750; text-decoration: none; }
.reference-item a:hover { text-decoration: underline; }
.reference-empty { margin: 0; color: #5f5a70; font-size: 13px; line-height: 1.7; }
.figure-dialog { width: min(980px, calc(100vw - 36px)); max-height: min(840px, calc(100vh - 36px)); overflow-x: hidden; overflow-y: auto; padding: 26px 28px 24px; border: 0; border-radius: 16px; color: #23324b; background: #fff; box-shadow: 0 26px 80px rgb(10 21 43 / 35%); }
.figure-dialog::backdrop { background: rgb(4 12 24 / 56%); backdrop-filter: blur(3px); }
.figure-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 32px 16px 0; }
.figure-dialog h2 { margin: 0; color: #16354e; font-family: var(--serif); font-size: 28px; font-weight: 600; }
.figure-dialog-locate { flex: 0 0 auto; min-height: 32px; padding: 7px 10px; border: 1px solid #a2d7da; border-radius: 7px; color: #08747d; background: #e8f8f8; font-size: 12px; font-weight: 750; white-space: nowrap; }
.figure-dialog-locate:hover { color: #fff; border-color: #08747d; background: #08747d; }
.figure-dialog-preview { margin: 0; overflow: visible; background: #fff; }
.figure-dialog-preview img { width: 100%; height: auto; display: block; }
.figure-dialog-caption-wrap { margin-top: 14px; }
.figure-dialog-caption { position: relative; margin: 0; padding-right: 25px; color: #5b6a7e; font-family: var(--serif); font-size: 14px; line-height: 1.7; }
.figure-dialog-caption .translation-toggle { bottom: calc(.85em - 8.5px); }
.figure-dialog-caption-wrap .secondary-language[open] .secondary-content { margin-top: 12px; padding-bottom: 12px; }
.figure-dialog-caption-wrap .secondary-language .secondary-content { color: #5b6a7e; font-size: 14px; line-height: 1.7; }
.figure-dialog-caption.secondary-caption { padding-right: 0; }
.figure-dialog-preview.is-zoomable-figure { border-radius: 6px; }
.figure-zoom-dialog { width: min(1280px, calc(100vw - 28px)); height: min(900px, calc(100vh - 28px)); max-height: calc(100vh - 28px); overflow: hidden; padding: 0; border: 0; border-radius: 16px; color: #20314b; background: #fff; box-shadow: 0 28px 90px rgb(3 13 30 / 42%); }
.figure-zoom-dialog[open] { display: flex; flex-direction: column; }
.figure-zoom-dialog::backdrop { background: rgb(4 12 24 / 72%); backdrop-filter: blur(4px); }
.figure-zoom-toolbar { flex: 0 0 auto; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px 11px 18px; border-bottom: 1px solid #dce5ef; background: #fff; }
.figure-zoom-toolbar h2 { min-width: 0; margin: 0; overflow: hidden; color: #173650; font-family: var(--serif); font-size: 20px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.figure-zoom-controls { display: flex; align-items: center; gap: 5px; }
.figure-zoom-controls button { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; border: 1px solid #d5e1ed; border-radius: 8px; color: #48627e; background: #f8fbff; font-size: 18px; font-weight: 700; line-height: 1; }
.figure-zoom-controls button:hover { color: #fff; border-color: #257c8d; background: #257c8d; }
.figure-zoom-controls .figure-zoom-status { min-width: 53px; color: #24627a; font-size: 12px; }
.figure-zoom-controls .figure-zoom-close { margin-left: 4px; border-color: transparent; border-radius: 50%; color: #6d7c90; background: #eef3f8; font-size: 22px; font-weight: 400; }
.figure-zoom-viewport { min-height: 0; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; overscroll-behavior: contain; touch-action: none; background: radial-gradient(circle at 50% 35%, #273f5d, #101b2c 72%); }
.figure-zoom-content { width: min(100%, 1180px); max-width: 100%; max-height: 100%; padding: 20px; transform-origin: center center; transition: transform .14s ease-out; will-change: transform; cursor: grab; user-select: none; }
.figure-zoom-content.is-panning, .figure-zoom-content.is-zooming { cursor: grabbing; transition: none; }
.figure-zoom-content > img { width: 100%; height: auto; display: block; background: #fff; }
.figure-zoom-content .composite-figure { width: 100%; }
.figure-zoom-content .composite-panel { background: #fff; }
.figure-zoom-content .composite-panel figcaption { padding: 0 4px; color: #dbe9f9; }

@media (max-width: 1080px) {
  .site-header { gap: 14px; padding-inline: 24px; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-inline: 48px; }
  .hero-facts { max-width: 680px; }
  .reader-layout { grid-template-columns: 148px minmax(0, 1fr); gap: 20px; }
  .reader-layout.is-toc-collapsed { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
  .figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-layout { grid-template-columns: 1fr; }
  .glossary-panel { position: static; }
}

@media (max-width: 760px) {
  :root { --wide: calc(100% - 28px); }
  html { scroll-padding-top: calc(80px + env(safe-area-inset-top)); }
  body { padding-top: calc(64px + env(safe-area-inset-top)); }
  .site-header { height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .brand { gap: 7px; }
  .brand-mark { width: 22px; transform: scale(.86) skewY(-4deg); transform-origin: left center; margin-right: -2px; }
  .brand-text { font-size: 14px; }
  .brand-text em { display: inline; font-size: 12px; }
  .language-icon-toggle { width: 66px; height: 36px; }
  .language-orbit { transform: scale(.92); transform-origin: right center; }
  .hero { min-height: 0; gap: 24px; padding: 54px max(20px, env(safe-area-inset-right)) 32px max(20px, env(safe-area-inset-left)); }
  .hero::before { width: 470px; right: -270px; top: -270px; }
  .hero::after { width: calc(100% - 40px); right: 20px; bottom: 16px; }
  .hero h1 { font-size: 42px; }
  .hero-title-main { margin-top: 10px; }
  .hero-title-translation { margin-top: 8px; font-size: 14px; }
  .hero-author { margin-top: 9px; font-size: 12px; }
  .hero-deck { font-size: 15px; }
  .hero-facts { width: 100%; max-width: none; }
  .fact { min-height: 82px; padding: 13px 11px; }
  .fact strong { font-size: 23px; }
  .fact span { margin-top: 7px; font-size: 11px; }
  .fact-wide { min-height: 70px; align-items: flex-start; gap: 8px; padding-block: 14px; }
  .fact-wide span { line-height: 1.45; }
  .reader-meta { grid-template-columns: 1fr; margin-bottom: 44px; }
  .view-heading { display: block; margin-bottom: 20px; }
  .view-heading > p { margin-top: 12px; }
  .view { width: min(calc(100% - 28px), 1320px); margin-bottom: 54px; }
  .view#view-reader { padding-top: 28px; }
  .reader-layout { display: block; }
  .reader-layout.is-toc-collapsed { display: block; }
  .toc-rail { position: static; max-height: none; margin-bottom: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .reader-layout.is-toc-collapsed .toc-rail { width: 32px; height: 32px; max-height: 32px; margin: 0 0 12px auto; padding: 0; overflow: visible; border: 0; background: transparent; }
  .reader-layout.is-toc-collapsed .toc-rail-head { width: 32px; height: 32px; justify-content: center; margin: 0; }
  .reader-layout.is-toc-collapsed .toc-toggle { width: 32px; height: 32px; border-color: #d5e3ff; border-radius: 8px; background: #f5f8ff; }
  .reader-layout.is-toc-collapsed .toc { display: none; }
  .toc-rail-head { height: 30px; margin-bottom: 5px; }
  .toc { grid-template-columns: 1fr; max-height: 360px; max-height: min(44dvh, 360px); gap: 2px; overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; -webkit-overflow-scrolling: touch; }
  .toc a { padding: 7px 7px; white-space: normal; font-size: 12px; line-height: 1.35; }
  .toc a.level-3 { padding-left: 15px; font-size: 11.5px; }
  .semantic-block { padding: 0 0 12px; }
  .semantic-block.block-heading { margin-top: 37px; }
  .block-primary p { padding-right: 25px; font-size: 16.2px; line-height: 1.9; }
  .block-heading .block-primary h3, .heading-translation { max-width: 100%; }
  .heading-translation { font-size: 16px; }
  .formula-render { margin-inline: -2px; padding: 12px 8px; font-size: .84em; text-align: left; -webkit-overflow-scrolling: touch; }
  .inline-display-formula { margin: 16px 0; text-align: left; -webkit-overflow-scrolling: touch; }
  .inline-display-formula .formula-render { padding-inline: 0; }
  .inline-source-figure { margin-inline: 0; }
  .figure-dialog { width: min(100vw - 24px, 980px); max-height: calc(100dvh - 24px); padding: 22px 18px 18px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .figure-dialog h2 { font-size: 23px; }
  .figure-dialog-heading { gap: 10px; margin-right: 30px; }
  .figure-dialog-locate { padding-inline: 8px; font-size: 11px; }
  .figure-dialog-preview { max-height: none; overflow: visible; }
  .figure-zoom-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); border-radius: 12px; }
  .figure-zoom-toolbar { min-height: 52px; gap: 8px; padding: 9px 10px 9px 13px; }
  .figure-zoom-toolbar h2 { font-size: 16px; }
  .figure-zoom-controls { gap: 3px; }
  .figure-zoom-controls button { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 7px; font-size: 16px; }
  .figure-zoom-controls .figure-zoom-status { min-width: 46px; font-size: 11px; }
  .figure-zoom-controls .figure-zoom-close { margin-left: 1px; font-size: 19px; }
  .figure-zoom-content { padding: 10px; }
  .annotation-dialog { width: min(100vw - 24px, 620px); max-height: calc(100dvh - 24px); padding: 24px 20px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .annotation-dialog h2 { font-size: 25px; }
  .glossary-dialog .note-kicker { font-size: 9px; letter-spacing: .065em; white-space: nowrap; }
  .glossary-lede { font-size: 16.5px !important; }
  .term-visual.glossary-visual { padding: 14px; }
  .visual-flow { justify-content: flex-start; gap: 6px; }
  .visual-node { padding: 6px 8px; font-size: 11px; }
  .diagram-lane, .diagram-memory, .diagram-loop, .diagram-teachers, .diagram-training, .diagram-serving, .diagram-system, .diagram-tokens { justify-content: flex-start; gap: 6px; }
  .diagram-chip, .diagram-serving > span, .diagram-system > span, .diagram-training > span, .diagram-loop > span, .diagram-tokens > span { padding: 7px 8px; font-size: 11px; }
  .diagram-fan i, .diagram-teachers i { font-size: 9px; }
  .memory-history { padding: 7px; }
  .memory-tiers i { min-width: 53px; }
  .attention-blocks i { width: 17px; height: 21px; }
  .diagram-precision { grid-template-columns: 1fr; }
  .diagram-context, .diagram-multimodal, .diagram-learning, .diagram-traffic, .diagram-compute { justify-content: flex-start; }
  .diagram-multimodal > span { min-width: 76px; font-size: 11px; }
  .diagram-context > i { width: 14px; }
  .diagram-learning > span { font-size: 10px; }
  .glossary-example { padding: 12px; }
  .glossary-example p { font-size: 13.5px; }
  .term-steps li p, .glossary-insight p { font-size: 13.5px; }
  .glossary-insight-grid { grid-template-columns: 1fr; gap: 9px; }
  .composite-layout-29, .composite-layout-30, .composite-layout-31 { grid-template-columns: 1fr; }
  .composite-layout-30 .panel-a, .composite-layout-30 .panel-b, .composite-layout-30 .panel-c, .composite-layout-30 .panel-d, .composite-layout-30 .panel-e, .composite-layout-31 .panel-a, .composite-layout-31 .panel-b, .composite-layout-31 .panel-c, .composite-layout-31 .panel-d, .composite-layout-31 .panel-e, .composite-layout-31 .panel-f { grid-column: auto; grid-row: auto; }
  .reference-list { columns: 1; }
}

@media (max-width: 360px) {
  .brand-text em { display: none; }
  :root { --wide: calc(100% - 24px); }
  .view { width: min(calc(100% - 24px), 1320px); }
  .hero { padding-inline: 18px; padding-top: 48px; }
  .hero .eyebrow { font-size: 10px; line-height: 1.55; letter-spacing: .095em; }
  .hero h1 { font-size: 38px; }
  .hero-title-main { font-size: .61em; }
  .hero-title-translation { font-size: 13px; }
  .fact { min-height: 76px; padding: 11px 9px; }
  .fact strong { font-size: 21px; }
  .fact span { font-size: 10.5px; }
  .fact-wide { min-height: 67px; }
  .block-primary p { font-size: 15.8px; line-height: 1.88; }
}

@media print {
  .site-header, .reader-tools, .toc-rail, .hero-actions, .source-preview, .reading-progress, .secondary-language, .site-footer, .meta-callout { display: none !important; }
  body { padding-top: 0; background: white; }
  .hero { min-height: auto; padding: 30px; background: white; color: #111; }
  .hero h1, .hero h1 span, .hero-deck { color: #111; }
  .hero-facts { display: none; }
  .view { width: 100%; }
  .reader-layout { display: block; }
  .semantic-block { break-inside: avoid; box-shadow: none; }
}
