/* Shoal 文章模板：一份样式，四种版式和总览。部件照 Lumno 的逻辑（浮起的顶栏、标题对、亮面板、沙粒图版、从左下到右上的进场），
   颜色、字体和动效照 Shoal 品牌手册 v2。body 上的类选版式：t-research、t-sheets、t-release、t-note、t-index。
   颜色都是变量；深色跟随系统，也可手动切换（html[data-theme]）。数值和站点首页的同名部件一致。 */
@font-face{font-family:'Google Sans Flex';font-weight:300;font-style:normal;font-display:swap;src:url(fonts/google-sans-flex-latin-300-normal.woff2) format('woff2')}
@font-face{font-family:'Google Sans Flex';font-weight:400;font-style:normal;font-display:swap;src:url(fonts/google-sans-flex-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Google Sans Flex';font-weight:500;font-style:normal;font-display:swap;src:url(fonts/google-sans-flex-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Google Sans Code';font-weight:300;font-style:normal;font-display:swap;src:url(fonts/google-sans-code-latin-300-normal.woff2) format('woff2')}
@font-face{font-family:'Google Sans Code';font-weight:400;font-style:normal;font-display:swap;src:url(fonts/google-sans-code-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Google Sans Code';font-weight:500;font-style:normal;font-display:swap;src:url(fonts/google-sans-code-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Outfit';font-weight:200;font-style:normal;font-display:swap;src:url(fonts/outfit-latin-200-normal.woff2) format('woff2')}
@font-face{font-family:'Outfit';font-weight:300;font-style:normal;font-display:swap;src:url(fonts/outfit-latin-300-normal.woff2) format('woff2')}
@font-face{font-family:'Outfit';font-weight:400;font-style:normal;font-display:swap;src:url(fonts/outfit-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Outfit';font-weight:500;font-style:normal;font-display:swap;src:url(fonts/outfit-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Outfit';font-weight:600;font-style:normal;font-display:swap;src:url(fonts/outfit-latin-600-normal.woff2) format('woff2')}

:root {
  --bg: #fff; --fg: #1f2124; --fg-2: #3c4043; --muted: #5f6368; --faint: #9aa0a6; --line: #dfe3e1; --line-2: #ebeeed;
  --surface: #f5f7f6; --surface-2: #eef1ef; --hover: #f2f4f3; --outline: #b8bcc0;
  --win: #fff; --paper: #fff; --chip-bg: #fff; --grid: #eef1ec;
  --hair: rgba(14, 44, 51, .08); --ring: rgba(14, 44, 51, .1);
  --ok: #188038; --ok-bg: #e6f4ea; --bad: #d93025; --bad-bg: #fce8e6; --wait: #b06000; --wait-bg: #fef7e0;
  --brand: #03586f; --brand-ink: #03586f; --on-brand: #f5f7f2;
  --sand: #edd6a8; --sand-ink: #8a6a2e; --sand-bg: #fbf3e3; --teal: #007e9c; --dsand: #b38236; --r3: #2f6fc0;
  --alice: #007E9C; --bob: #A0712E; --carol: #C2417A; --asker: #7651C4; --dan: #2E7D4F;
  --fish-near: #03586f; --fish-far: #7fa6af;
  --accent: linear-gradient(180deg, #03586F 0%, #2F7C8F 55%, #6FA3B3 100%);
  --panel-bg: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .85), transparent 62%), linear-gradient(180deg, #f4f6f4, #eceeee);
  --lift: inset 0 0 0 1px var(--hair), 0 1px 1px rgba(14, 44, 51, .06), 0 2px 5px -1px rgba(14, 44, 51, .05), 0 10px 18px -10px rgba(14, 44, 51, .12);
  --lift-hover: inset 0 0 0 1px var(--hair), 0 1px 2px rgba(14, 44, 51, .06), 0 3px 8px -2px rgba(14, 44, 51, .06), 0 16px 26px -14px rgba(14, 44, 51, .18);
  --chip-shadow: 0 0 0 1px var(--ring), 0 1px 2px rgba(14, 44, 51, .05);
  --shadow: 0 1px 3px rgba(60, 64, 67, .12), 0 24px 48px -24px rgba(14, 44, 51, .4);
  --photo: none;
  --font: 'Google Sans Flex', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --display: 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;
  --code: 'Google Sans Code', 'PingFang SC', ui-monospace, Menlo, monospace;
  --shoal-ease: cubic-bezier(.32, .72, 0, 1); --shoal-fast: 120ms; --shoal-panel: 240ms; --shoal-scene: 480ms;
  --col: min(calc(100% - 48px), 1360px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1517; --fg: #e6ece8; --fg-2: #c3cfcc; --muted: #9db2b3; --faint: #6d8488; --line: #26363a; --line-2: #1d2c30;
  --surface: #142124; --surface-2: #1a2b2f; --hover: #18272a; --outline: #3d565b;
  --win: #0f2125; --paper: #0f2125; --chip-bg: #16262a; --grid: #16292d;
  --hair: rgba(255, 255, 255, .06); --ring: rgba(255, 255, 255, .1);
  --ok: #81c995; --ok-bg: rgba(129, 201, 149, .14); --bad: #f28b82; --bad-bg: rgba(242, 139, 130, .12); --wait: #fdd663; --wait-bg: rgba(253, 214, 99, .1);
  --brand: #6fb9c9; --brand-ink: #6fb9c9; --on-brand: #0e2c33;
  --sand: #c9a867; --sand-ink: #e2c68a; --sand-bg: rgba(226, 198, 138, .1); --teal: #1a9fbb; --dsand: #bc8a36; --r3: #5b8fe0;
  --alice: #1A9FBB; --bob: #BC8A36; --carol: #D9649A; --asker: #9B7BE6; --dan: #5DBB85;
  --fish-near: #dce6e2; --fish-far: #5f8b95;
  --accent: linear-gradient(180deg, #A8D4DE 0%, #6FB9C9 60%, #4F98A8 100%);
  --panel-bg: linear-gradient(180deg, #172a2f, #11262b);
  --lift: inset 0 0 0 1px var(--hair), 0 1px 1px rgba(0, 0, 0, .3), 0 10px 18px -10px rgba(0, 0, 0, .5);
  --lift-hover: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 1px 2px rgba(0, 0, 0, .3), 0 16px 26px -14px rgba(0, 0, 0, .6);
  --chip-shadow: 0 0 0 1px var(--ring);
  --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 24px 48px -20px rgba(0, 0, 0, .7);
  --photo: brightness(.62) saturate(.85);
  color-scheme: dark;
}
/* 设计图纸：泡沫底、深水墨，潟湖蓝只给重点 */
.t-sheets { --bg: #F5F7F2; --fg: #0E2C33; --fg-2: #2f4a51; --muted: #4A6168; --faint: #8fa3a5; --line: #D5DED8; --line-2: #E1E8E2; --surface: #ECF0EA; --surface-2: #DCE4DE; --grid: #E8EDE7; }
:root[data-theme="dark"] .t-sheets { --bg: #0B1C20; --fg: #E6ECE8; --fg-2: #c3d0cd; --muted: #9DB2B3; --line: #23393E; --line-2: #1a3035; --surface: #10262B; --surface-2: #1A3338; --grid: #14292e; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--fg); font: 300 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; transition: background var(--shoal-panel) var(--shoal-ease), color var(--shoal-panel) var(--shoal-ease); }
a { color: inherit; text-underline-offset: 4px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
code { font: 400 .9em var(--code); }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
.oi { fill: currentColor; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-ink) 40%, transparent); outline-offset: 3px; }

/* ---- 部件 ---------------------------------------------------------------------------------------------------- */
/* 标题对：前半常规，后半细体、潟湖色渐变的一行；中文不用斜体 */
.tp { font: 300 clamp(38px, 4.4vw, 60px)/1.06 var(--display); letter-spacing: -.02em; color: var(--fg); }
:lang(zh) .tp { line-height: 1.2; letter-spacing: -.01em; }
.tp-lead, .tp-accent { display: block; }
.tp-accent { font-weight: 200; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .08em; margin-bottom: -.08em; }
h2.tp { font-size: clamp(28px, 3vw, 40px); }
h3.tp { font-size: 22px; line-height: 1.3; letter-spacing: -.005em; }
.eyebrow { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 500 14px/1.4 var(--font); color: var(--fg-2); }
.eyebrow .num { font: 400 13px var(--code); color: var(--muted); }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--fg-2); max-width: 680px; text-wrap: balance; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--chip-bg); box-shadow: var(--chip-shadow); font: 500 13px var(--font); color: var(--fg-2); white-space: nowrap; text-decoration: none; }
a.chip:hover { color: var(--fg); }
.chip.ok { color: var(--ok); background: var(--ok-bg); box-shadow: none; }
.chip.wait { color: var(--wait); background: var(--wait-bg); box-shadow: none; }
.chip.no { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); border: 1px dashed transparent; }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live 2.4s var(--shoal-ease) infinite; }
@keyframes live { 50% { opacity: .35; } }
.meta, .chips, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions { gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--chip-bg); box-shadow: var(--chip-shadow); color: var(--fg); font: 500 15px var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--shoal-fast) var(--shoal-ease), box-shadow var(--shoal-fast) var(--shoal-ease); }
.btn:hover { box-shadow: 0 0 0 1px var(--ring), 0 4px 12px -4px rgba(14, 44, 51, .2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: #03586F; color: #F5F7F2; box-shadow: 0 1px 2px rgba(3, 88, 111, .35), inset 0 1px 0 rgba(255, 255, 255, .14); }
:root[data-theme="dark"] .btn.primary { background: #6FB9C9; color: #0E2C33; box-shadow: none; }
.btn .oi { transition: transform var(--shoal-fast) var(--shoal-ease); }
.btn:hover .oi { transform: translateX(2px); }
.round { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--chip-bg); box-shadow: var(--chip-shadow); cursor: pointer; color: var(--fg-2); }
.round:hover { color: var(--fg); }
.lang-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--chip-bg); box-shadow: var(--chip-shadow); font: 500 13.5px var(--font); color: var(--fg-2); text-decoration: none; white-space: nowrap; transition: color var(--shoal-fast) var(--shoal-ease); }
.lang-btn:hover { color: var(--fg); }
/* 亮面板：灰纸上一束顶光；里面嵌白窗，圆角和面板同心（28 − 8） */
.panel { padding: 8px; border-radius: 28px; background: var(--panel-bg); box-shadow: var(--lift); }
.win { position: relative; padding: 24px 26px 18px; border-radius: 20px; background: var(--win); box-shadow: inset 0 0 0 1px var(--hair); overflow-x: auto; }
/* 站内写的文章，图只以图片出现（build.py --untrusted） */
.fig-img { display: block; width: 100%; height: auto; }
/* 影片（:::video）：16:9，铺满白窗，窗的圆角裁边 */
.fg.vid .win { padding: 0; overflow: hidden; background: #000; }
.vid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
/* 分段控件：图的几种视图 */
.pills { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; margin-bottom: 18px; border-radius: 12px; background: var(--surface-2); }
.pills label { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 9px; font: 400 13.5px var(--font); color: var(--fg-2); cursor: pointer; transition: background var(--shoal-fast) var(--shoal-ease), color var(--shoal-fast) var(--shoal-ease); }
.pills label:hover { color: var(--fg); }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs .pane { display: none; }
.tabs > input:nth-of-type(1):checked ~ .panes .pane:nth-child(1), .tabs > input:nth-of-type(2):checked ~ .panes .pane:nth-child(2), .tabs > input:nth-of-type(3):checked ~ .panes .pane:nth-child(3), .tabs > input:nth-of-type(4):checked ~ .panes .pane:nth-child(4) { display: block; animation: pane-in var(--shoal-panel) var(--shoal-ease); }
.tabs > input:nth-of-type(1):checked ~ .pills label:nth-child(1), .tabs > input:nth-of-type(2):checked ~ .pills label:nth-child(2), .tabs > input:nth-of-type(3):checked ~ .pills label:nth-child(3), .tabs > input:nth-of-type(4):checked ~ .pills label:nth-child(4) { background: var(--chip-bg); color: var(--fg); font-weight: 500; box-shadow: var(--chip-shadow); }
.tabs > input:focus-visible ~ .pills { outline: 3px solid color-mix(in srgb, var(--brand-ink) 40%, transparent); outline-offset: 2px; }
@keyframes pane-in { from { opacity: 0; transform: translate(-6px, 6px); } }

/* 进场：从左下到右上，和鱼群同向。<html class="js"> 才藏，没有脚本时全都看得见 */
.js [data-rv] { opacity: 0; transform: translate(-12px, 16px); transition: opacity var(--shoal-scene) var(--shoal-ease), transform var(--shoal-scene) var(--shoal-ease); transition-delay: calc(var(--rv-i, 0) * 60ms); }
.js [data-rv].seen { opacity: 1; transform: none; }

/* ---- 顶栏：静止时透明、随开头滚走；开头离开屏幕后，变成浮起的玻璃胶囊落回来，主操作只在这时出现 ---------------- */
.nav { position: absolute; z-index: 50; top: 18px; left: 0; right: 0; width: var(--col); min-height: 56px; margin-inline: auto; padding: 6px 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; border: 1px solid transparent; border-radius: 999px; }
.nav .brand { display: flex; align-items: center; gap: 12px; padding-left: 8px; text-decoration: none; justify-self: start; }
.nav .logo { display: block; height: 26px; width: auto; color: var(--brand-ink); }
.nav .brand small { font: 400 13px var(--code); color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.nav .links { display: flex; gap: 4px; }
.nav .links a { padding: 8px 12px; border-radius: 999px; font: 400 14.5px var(--font); color: var(--fg-2); text-decoration: none; white-space: nowrap; transition: color var(--shoal-fast) var(--shoal-ease), background var(--shoal-fast) var(--shoal-ease); }
.nav .links a:hover { color: var(--fg); background: var(--hover); }
.nav .tools { display: flex; align-items: center; gap: 8px; justify-self: end; }
.pill-only { display: none; }
.pill .nav { position: fixed; top: 6px; width: min(var(--col), 980px); border-color: var(--ring); background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 10px 32px rgba(14, 44, 51, .08), inset 0 1px 0 rgba(255, 255, 255, .9); animation: nav-in var(--shoal-panel) var(--shoal-ease) both; }
:root[data-theme="dark"].pill .nav { box-shadow: 0 10px 32px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05); }
.pill .pill-only { display: inline-flex; height: 40px; padding: 0 16px; font-size: 14px; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-24px); filter: blur(8px); } }

/* ---- 开头：羽化的沙粒横幅（照片按 2 px 一粒抖动过，grain.py），眉题、标题对、导语、标签 ------------------------- */
.opening { padding-top: 96px; }
.banner { width: var(--col); height: 260px; margin: 0 auto; background: var(--grain) center / 1440px 320px; image-rendering: pixelated; filter: var(--photo);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 78%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 78%, transparent); mask-composite: intersect;
  animation: drift 90s steps(18) infinite alternate; }
@keyframes drift { to { background-position: calc(50% - 36px) 50%; } }
.b-research { --grain: url(img/photo-school-grain-b.png); }
.b-sheets { --grain: url(img/photo-grains-grain-b.png); }
.b-release { --grain: url(img/photo-braids-grain-b.png); }
.b-note { --grain: url(img/haze-noon-grain-b.png); }
.b-index { --grain: url(img/haze-noon-grain-b.png); }
:root[data-theme="dark"] :is(.b-note, .b-index) { --grain: url(img/haze-dusk-grain-b.png); filter: none; }
.head { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 900px; margin: 8px auto 0; padding-inline: 24px; text-align: center; }
.head .meta { justify-content: center; }
.head.start { align-items: flex-start; max-width: 1184px; width: var(--col); padding-inline: 0; text-align: left; }
.head.start .meta { justify-content: flex-start; }
.hero-fig { width: var(--col); max-width: 1184px; margin: 56px auto 0; }
.hero-fig figcaption, .fg figcaption { margin: 14px auto 0; max-width: 860px; text-align: center; font: 300 13.5px/1.7 var(--code); color: var(--muted); }
.fg figcaption { text-align: left; margin-left: 4px; font: 400 14px/1.75 var(--font); color: var(--fg-2); }
.fg figcaption b { color: var(--fg); font-weight: 500; }

/* ---- 正文：一栏，右边“本页”目录 ---------------------------------------------------------------------------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 64px; width: var(--col); max-width: 1184px; margin: 0 auto; }
.col { min-width: 0; }
.otp { position: sticky; top: 96px; align-self: start; margin-top: 104px; font-size: 13.5px; line-height: 1.5; }
.otp p { margin-bottom: 10px; font-weight: 500; color: var(--fg); }
.otp a { display: block; padding: 5px 0 5px 14px; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: color var(--shoal-fast) var(--shoal-ease), border-color var(--shoal-fast) var(--shoal-ease); }
.otp a:hover { color: var(--fg); }
.otp a.on { color: var(--brand-ink); border-left-color: var(--brand-ink); font-weight: 500; }
.sec { padding-top: 104px; }
.sec-h { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
.sec-h.center { align-items: center; text-align: center; margin-inline: auto; }
.prose { max-width: 720px; margin-top: 24px; }
.sec-h + .prose, .lead + .prose { margin-top: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.95; color: var(--fg-2); font-weight: 400; }
.prose p + p, .prose ul, .prose ol { margin-top: 16px; }
.prose b { color: var(--fg); font-weight: 500; }
.prose ul, .prose ol { padding-left: 22px; }
.prose h3, .wide h3 { font: 400 22px/1.3 var(--display); margin: 36px 0 10px; color: var(--fg); }
.prose a { color: var(--brand-ink); }
.wide { margin-top: 32px; }
.cite { font: 400 11.5px var(--code); color: var(--muted); vertical-align: 1px; white-space: nowrap; padding: 0 3px; }
.cite::before { content: "["; } .cite::after { content: "]"; }
figure { margin: 0; }
.fg { margin-top: 32px; }

/* 积木：表、行、发现、三级、时间线……都落在窗和卡片上 */
.wide:has(> .tb) { padding: 6px 22px 8px; border-radius: 20px; background: var(--win); box-shadow: var(--lift); overflow-x: auto; }
.tb { width: 100%; border-collapse: collapse; font-size: 15px; }
.tb th { text-align: left; font: 400 12.5px var(--code); color: var(--muted); padding: 14px 16px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tb td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; line-height: 1.65; color: var(--fg-2); font-weight: 400; }
.tb tr:last-child td { border-bottom: 0; }
.tb td:first-child { font: 400 16px/1.45 var(--display); color: var(--fg); }
.tb .chip { height: 24px; font-size: 12.5px; }
.rows, .recs, .facts { border-radius: 20px; background: var(--win); box-shadow: var(--lift); overflow: hidden; }
.rows > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 15px 22px; border-bottom: 1px solid var(--line-2); }
.rows > div:last-child { border-bottom: 0; }
.rows b { font: 400 16.5px/1.5 var(--display); } .rows span { font-size: 15.5px; color: var(--fg-2); line-height: 1.75; font-weight: 400; }
.finds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.finds > div, .notes > div, .tiers > div, .answers > div, .tiles > div { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: 20px; background: var(--win); box-shadow: var(--lift); transition: box-shadow var(--shoal-panel) var(--shoal-ease), transform var(--shoal-panel) var(--shoal-ease); }
.finds > div:hover, .notes > div:hover, .answers > div:hover, .tiles > div:hover { box-shadow: var(--lift-hover); transform: translateY(-2px); }
.finds b { font: 400 19px/1.4 var(--display); } .finds span { font-size: 15px; color: var(--fg-2); line-height: 1.75; font-weight: 400; }
.finds small { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); font: 400 12.5px/1.6 var(--code); color: var(--muted); }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.notes b { font: 400 18px var(--display); } .notes span { font-size: 15px; line-height: 1.75; color: var(--fg-2); font-weight: 400; }
.notes.one { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tiers > div.now { box-shadow: inset 0 0 0 1.5px var(--brand-ink), var(--lift); }
.tiers .t { font: 400 12.5px var(--code); color: var(--muted); } .tiers > div.now .t { color: var(--brand-ink); }
.tiers h4 { font: 400 21px/1.3 var(--display); } .tiers p { font-size: 15px; line-height: 1.7; color: var(--fg-2); font-weight: 400; }
.tl { list-style: none; padding: 26px 22px 20px; margin: 32px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; border-radius: 20px; background: var(--win); box-shadow: var(--lift); position: relative; }
.tl::before { content: ""; position: absolute; left: 22px; right: 22px; top: 31px; height: 1px; background: var(--line); }
.tl li { position: relative; padding-top: 20px; font-size: 14px; line-height: 1.6; color: var(--fg-2); font-weight: 400; }
.tl li::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--win); border: 1.5px solid var(--fg-2); }
.tl li.now::before { background: var(--brand-ink); border-color: var(--brand-ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-ink) 18%, transparent); }
.tl .d { font: 400 12.5px var(--code); color: var(--muted); display: block; } .tl b { display: block; font-weight: 500; font-size: 15.5px; color: var(--fg); margin: 2px 0; }
.limits { padding: 22px 26px; border-radius: 20px; background: var(--wait-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wait) 22%, transparent); }
.limits-h { display: flex; align-items: center; gap: 10px; font: 500 15px var(--font); color: var(--fg); margin-bottom: 6px; }
.limits ul { margin: 0; padding: 0; list-style: none; } .limits li { font-size: 16.5px; line-height: 1.8; color: var(--fg-2); padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--wait) 14%, transparent); font-weight: 400; }
.limits li:first-child { border-top: 0; } .limits b { color: var(--fg); font-weight: 500; }
.idea { margin-top: 32px; padding: 32px 36px; border-radius: 28px; background: var(--panel-bg); box-shadow: var(--lift); }
.idea p { font: 300 24px/1.55 var(--display); color: var(--fg); } .idea p + p { margin-top: 10px; font: 400 15px/1.75 var(--font); color: var(--fg-2); }
.records .eyebrow { margin-bottom: 12px; }
.recs > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; padding: 10px 22px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--fg-2); line-height: 1.6; font-weight: 400; }
.recs > div:last-child { border-bottom: 0; }
.recs code { color: var(--fg); overflow-wrap: anywhere; }

/* ---- 发布记录：左轨写日期和状态，一条竖线一个点，正文按组折叠（Lumno 的发布记录） ------------------------------- */
.rel { display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px; gap: 48px; width: var(--col); max-width: 1280px; margin: 40px auto 0; }
.rail { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 8px; }
.rail time { font: 400 14px var(--code); color: var(--fg-2); }
.entry { position: relative; min-width: 0; padding-left: 44px; }
.entry::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 0; width: 1px; background: linear-gradient(var(--line) 85%, transparent); }
.entry::after { content: ""; position: absolute; left: -5px; top: 11px; width: 11px; height: 11px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 5px var(--bg); }
.entry > .tp, .entry > .lead, .entry > .meta, .entry > .callout { margin-top: 18px; }
.entry > .eyebrow + .tp { margin-top: 12px; }
.callout { padding: 16px 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-size: 15.5px; line-height: 1.8; color: var(--fg-2); font-weight: 400; max-width: 760px; }
.callout b { color: var(--fg); font-weight: 500; } .callout a { color: var(--brand-ink); }
.entry .hero-fig { width: auto; margin-top: 36px; }
.grp { margin-top: 20px; border-radius: 20px; background: var(--win); box-shadow: var(--lift); overflow: clip; }
.grp:first-of-type { margin-top: 48px; }
.grp summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding: 18px 56px 18px 22px; background: var(--surface); cursor: pointer; list-style: none; position: relative; }
.grp summary::-webkit-details-marker { display: none; }
.grp summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--chip-bg); box-shadow: var(--chip-shadow); font: 400 16px/1 var(--font); color: var(--fg-2); }
.grp[open] summary::after { content: "−"; }
.grp summary .k { font: 400 12.5px var(--code); color: var(--muted); }
.grp summary b { font: 400 20px/1.35 var(--display); color: var(--fg); }
.grp summary .count { font: 400 13px var(--code); color: var(--muted); }
.grp summary .count::before { content: "("; } .grp summary .count::after { content: ")"; }
.grp-b { padding: 6px 22px 24px; }
.grp-b > .lead { margin-top: 14px; font-size: 16px; }
.grp-b .wide:has(> .tb), .grp-b .rows, .grp-b .tl { box-shadow: inset 0 0 0 1px var(--hair); }
.grp-b .tl { margin-top: 20px; }

/* ---- 设计图纸：网格纸图幅和标题栏，放在面板和窗里 ---------------------------------------------------------- */
.grid-fig { background-color: var(--win); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; padding-top: 34px; }
.grid-fig .tag { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--chip-bg); box-shadow: var(--chip-shadow); font: 400 11.5px var(--code); letter-spacing: .04em; color: var(--muted); }
.tblock { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; margin-top: 8px; border-radius: 16px; background: var(--win); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; line-height: 1.5; font-weight: 400; overflow: hidden; }
.tblock div { padding: 10px 14px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.tblock div:nth-child(4) { border-right: 0; } .tblock .all { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.tblock span { display: block; font: 400 10.5px var(--code); letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.answers .k { font: 400 11.5px var(--code); letter-spacing: .08em; color: var(--muted); }
.answers h3 { font: 500 18px/1.4 var(--display); } .answers p { font-size: 15px; line-height: 1.75; color: var(--fg-2); font-weight: 400; }
.answers p b { font-family: var(--display); font-weight: 600; color: var(--brand-ink); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.tiles > div { min-width: 0; }
.tiles .bigc { font: 500 34px/1 var(--display); color: var(--brand-ink); } .tiles h4 { font: 500 16px var(--display); margin-top: 6px; } .tiles p { font-size: 14.5px; line-height: 1.7; color: var(--fg-2); font-weight: 400; }
.t-sheets .tb th { letter-spacing: .06em; }
.t-sheets .col > .answers { margin-top: 56px; }

/* ---- 一图短文：一块大图版，旁边是怎么读、条件、状态、依据 ------------------------------------------------------ */
.notepage { width: var(--col); max-width: 1184px; margin: 48px auto 0; }
/* 短讯没有氛围带，也没有收尾图版：开头就是标题，结尾一行链接到这次改了的东西；顶栏不再给一个同去处的按钮 */
.t-note .opening { padding-top: 136px; }
.t-note .pill-only { display: none; }
.end-line { display: flex; flex-wrap: wrap; gap: 8px 28px; width: var(--col); max-width: 1184px; margin: 72px auto 0; padding-top: 22px; border-top: 1px solid var(--line-2); font: 400 16px/1.6 var(--font); }
.end-line a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); text-decoration: none; }
.end-line a:hover { text-decoration: underline; }
.note-fig .win { padding: 28px 30px 22px; }
.nb { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; margin-top: 44px; align-items: start; }
.nb .prose { margin: 0; } .nb .prose p { font-size: 18px; line-height: 1.9; }
.facts > div { padding: 13px 20px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.65; color: var(--fg-2); font-weight: 400; }
.facts > div:last-child { border-bottom: 0; }
.facts .k { display: inline-flex; margin-bottom: 6px; height: 22px; padding: 0 8px; align-items: center; border-radius: 999px; background: var(--surface-2); font: 500 12px var(--font); color: var(--fg); }
.facts a { color: var(--brand-ink); }

/* ---- 收尾：一块沙粒图版，鱼群游过，重提这篇的行动 -------------------------------------------------------------- */
.grain-c { position: relative; overflow: hidden; border-radius: 28px; background: url(img/haze-noon-grain-c.png) center / 1440px 440px; image-rendering: pixelated; box-shadow: var(--lift); }
:root[data-theme="dark"] .grain-c { background-image: url(img/haze-dusk-grain-c.png); }
.grain-c > * { image-rendering: auto; }
.school { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.closing { width: var(--col); margin: 128px auto 0; }
.closing .plate { min-height: 420px; display: grid; place-items: center; }
.closing-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 88px 24px; text-align: center; }
.closing .tp { font-size: clamp(34px, 4vw, 54px); }
.closing .actions { justify-content: center; }
:root:not([data-theme="dark"]) .closing .tp-lead { color: #0E2C33; }
:root:not([data-theme="dark"]) .t-note .closing .grain-c { background-image: url(img/haze-dawn-grain-c.png); } /* 横幅已经是午时的水面 */

/* ---- 页脚：标志、一句话、两列链接，底下一抹水面 ---------------------------------------------------------------- */
.foot { position: relative; margin-top: 128px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) 200px 200px; gap: 32px; width: var(--col); margin: 0 auto; padding: 56px 0 40px; }
.foot-brand .logo { display: block; height: 30px; width: auto; color: var(--brand-ink); }
.foot-brand p { margin-top: 16px; max-width: 380px; font-size: 14.5px; line-height: 1.7; color: var(--fg-2); }
.foot-brand .chips { margin-top: 18px; }
.foot nav h2 { margin-bottom: 10px; font: 500 13px var(--font); color: var(--fg); }
.foot nav a { display: block; padding: 4px 0; font-size: 14px; color: var(--fg-2); text-decoration: none; }
.foot nav a:hover { color: var(--fg); }
.foot-bar { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; width: var(--col); margin: 0 auto; padding: 18px 0 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-bar a { color: var(--fg-2); text-decoration: none; }
.foot-bar a:hover { color: var(--fg); text-decoration: underline; }
.foot-haze { height: 160px; margin-top: -40px; background: url(img/haze-dawn-grain-c.png) center / 1440px 440px; image-rendering: pixelated; opacity: .6; -webkit-mask-image: linear-gradient(180deg, transparent, #000 85%); mask-image: linear-gradient(180deg, transparent, #000 85%); }
:root[data-theme="dark"] .foot-haze { background-image: url(img/haze-dusk-grain-c.png); opacity: .5; }

/* ---- 总览 ---------------------------------------------------------------------------------------------------- */
.t-index .head { margin-top: 48px; }
.t-index .head .actions { justify-content: center; margin-top: 8px; }
.art { width: var(--col); height: 440px; margin: 64px auto 0; }
:root:not([data-theme="dark"]) .art { background-image: url(img/haze-dawn-grain-c.png); }
.art-row { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--chip-shadow); max-width: calc(100% - 32px); overflow-x: auto; }
.art-row a { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 13px; font: 500 14px var(--font); color: var(--fg-2); text-decoration: none; white-space: nowrap; transition: background var(--shoal-fast) var(--shoal-ease); }
.art-row a:hover { background: var(--chip-bg); color: var(--fg); box-shadow: var(--chip-shadow); }
.art-row .thumb { width: 44px; height: 32px; border-radius: 9px; }
.thumb { display: block; background: var(--grain) center / 1440px 320px; image-rendering: pixelated; filter: var(--photo); }
.gal { width: var(--col); max-width: 1184px; margin: 0 auto; }
.part { padding-top: 128px; }
.part > .sec-h { margin-bottom: 44px; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tcard { display: flex; flex-direction: column; padding: 8px; border-radius: 28px; background: var(--panel-bg); box-shadow: var(--lift); transition: box-shadow var(--shoal-panel) var(--shoal-ease); }
.tcard:hover { box-shadow: var(--lift-hover); }
.tcard-b { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 18px; }
.tcard-b h3 { font: 400 26px/1.2 var(--display); }
.tcard-b > p { font-size: 15.5px; line-height: 1.7; color: var(--fg-2); font-weight: 400; }
.bones { display: flex; flex-wrap: wrap; gap: 6px; } .bones span { font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--chip-bg); box-shadow: var(--chip-shadow); color: var(--fg-2); font-weight: 400; }
.tcard dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; margin: 4px 0 0; font-size: 14px; line-height: 1.65; } .tcard dt { color: var(--muted); } .tcard dd { margin: 0; color: var(--fg-2); font-weight: 400; }
.go { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: auto; padding-top: 8px; font-size: 15px; } .go a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--brand-ink); text-decoration: none; } .go code { color: var(--muted); }
/* 缩略骨架：每种版式的排法，用色块画 */
.mini { --sk: color-mix(in srgb, var(--fg) 10%, transparent); display: flex; flex-direction: column; gap: 9px; height: 236px; padding: 16px 20px; border-radius: 20px; background: var(--win); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.mini i { display: block; flex: none; height: 8px; border-radius: 4px; background: var(--sk); }
.mini .m-ban { height: 44px; border-radius: 10px; background: var(--grain) center / 720px 160px; image-rendering: pixelated; filter: var(--photo); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.m-research { --grain: url(img/photo-school-grain-b.png); } .m-sheets { --grain: url(img/photo-grains-grain-b.png); } .m-release { --grain: url(img/photo-braids-grain-b.png); } .m-note { --grain: url(img/haze-noon-grain-b.png); }
.mini .m-t { height: 13px; width: 58%; } .mini .m-t2 { width: 36%; opacity: .55; } .mini .c { margin-inline: auto; }
.mini .m-fig { height: 50px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); } .mini .m-fig.big { height: 84px; }
.mini .m-l { width: 100%; } .mini .m-l.s { width: 66%; }
.m-two { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 14px; } .m-two > div { display: flex; flex-direction: column; gap: 7px; }
.m-toc i { height: 6px; border-left: 2px solid var(--brand-ink); border-radius: 0 3px 3px 0; opacity: .5; } .m-toc i:first-child { opacity: 1; }
.m-grid { position: relative; height: 92px; border-radius: 10px; background-color: var(--win); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 10px 10px; box-shadow: inset 0 0 0 1px var(--hair); }
.mini .m-tb { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; border-radius: 0 0 10px 10px; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.m-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .mini .m-three i { height: 34px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); }
.m-rel { display: grid; grid-template-columns: 54px 12px minmax(0, 1fr); gap: 8px; } .m-rel > div { display: flex; flex-direction: column; gap: 7px; }
.mini .m-chip { height: 12px; width: 44px; border-radius: 999px; background: var(--ok-bg); }
.m-line { position: relative; } .m-line::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 0; width: 1px; background: var(--line); } .m-line::after { content: ""; position: absolute; left: 1px; top: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--fg); }
.m-pills { display: flex; gap: 5px; } .mini .m-pills i { width: 34px; height: 10px; border-radius: 999px; background: var(--ok-bg); } .mini .m-pills i:nth-child(2) { background: var(--wait-bg); } .mini .m-pills i:nth-child(3) { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.mini .m-row { height: 22px; border-radius: 7px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); }
.m-facts i { height: 14px; border-radius: 4px; background: var(--surface-2); }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; padding: 8px; border-radius: 28px; background: var(--panel-bg); box-shadow: var(--lift); color: inherit; text-decoration: none; transition: box-shadow var(--shoal-panel) var(--shoal-ease); }
.pcard:hover { box-shadow: var(--lift-hover); }
.pcard .thumb { height: 150px; border-radius: 20px; transition: background-position var(--shoal-scene) var(--shoal-ease); }
.pcard:hover .thumb { background-position: calc(50% - 24px) 50%; }
.pcard-b { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 14px; }
.wg { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.term { padding: 0; }
.term-h { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font: 400 12.5px var(--code); color: var(--muted); }
.term-h i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); } .term-h span { margin-left: 8px; }
.term pre { margin: 0; padding: 18px 20px; font: 400 13.5px/1.8 var(--code); color: var(--fg-2); white-space: pre-wrap; }
.wg .notes.one > div { padding: 16px 20px; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 64px; align-items: start; }
.faq-h { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; position: sticky; top: 96px; }
.faq-list details { border-bottom: 1px solid var(--line); transition: background var(--shoal-panel) var(--shoal-ease); }
.faq-list details[open] { border-radius: 18px; border-bottom-color: transparent; background: var(--surface); }
.faq-list summary { position: relative; padding: 20px 56px 20px 20px; font: 500 17px/1.45 var(--font); color: var(--fg); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 300 22px/1 var(--font); color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 20px 20px; font-size: 15.5px; line-height: 1.8; color: var(--fg-2); font-weight: 400; }

/* ---- 图里的记号（各篇的 svg 和 html 片段用） -------------------------------------------------------------------- */
.chart, .dg { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart .grid { stroke: var(--line-2); } .chart .base { stroke: var(--line); }
.chart .ax { font: 300 12.5px var(--code); fill: var(--muted); }
.chart .ref { stroke: var(--muted); stroke-dasharray: 5 5; }
.chart .ref-t { font: 400 13.5px var(--font); fill: var(--fg-2); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.chart .line { fill: none; stroke: var(--brand-ink); stroke-width: 2; stroke-linejoin: round; }
.chart .dot { fill: var(--brand-ink); stroke: var(--paper); stroke-width: 2; } .chart .dot.hot { fill: var(--dsand); }
.chart .dot-t { font: 400 13.5px var(--font); fill: var(--fg); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.chart .cross { stroke: var(--fg-2); stroke-dasharray: 2 3; } .chart .hit { fill: transparent; cursor: crosshair; }
.chart-wrap { position: relative; }
.tip { position: absolute; top: 12px; right: 40px; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); font: 400 13px/1.6 var(--font); color: var(--fg-2); pointer-events: none; }
.tip b { font: 500 14px var(--code); color: var(--fg); }
.lanes .lh { font: 400 16px var(--display); fill: var(--fg); } .lanes .ls { font: 300 12.5px var(--code); fill: var(--muted); }
.lanes .sg { fill: var(--surface-2); stroke: var(--line); }
.lanes .sg.job { fill: color-mix(in srgb, var(--teal) 22%, var(--paper)); stroke: color-mix(in srgb, var(--teal) 50%, transparent); }
.lanes .sg.keep { fill: color-mix(in srgb, var(--sand) 30%, var(--paper)); stroke: color-mix(in srgb, var(--sand-ink) 40%, transparent); }
.lanes .end { stroke: var(--fg); stroke-width: 1.5; } .lanes .nt { font: 400 13.5px var(--font); fill: var(--fg); } .lanes .nt.m { font: 400 12.5px var(--code); fill: var(--muted); }
.lanes .link, .lanes .drop { fill: none; stroke: var(--brand-ink); stroke-width: 1.6; }
.hb .lab { font: 400 15px var(--font); fill: var(--fg); } .hb .sublab { font: 300 12.5px var(--font); fill: var(--muted); }
.hb .v { font: 400 14px var(--code); fill: var(--fg); } .hb .ax { font: 300 12.5px var(--code); fill: var(--muted); } .hb .grid { stroke: var(--line-2); }
.hb .bar { fill: var(--brand-ink); } .hb .bar.lost { fill: var(--dsand); } .hb .bar.cmp { fill: var(--line); }
.rails text { font: 400 13.5px var(--font); fill: var(--fg-2); } .rails .h { font: 300 12.5px var(--code); fill: var(--muted); } .rails .n { font: 500 15.5px var(--font); fill: var(--fg); } .rails .s { font: 300 12.5px var(--font); fill: var(--muted); }
.rails .on { stroke: var(--brand-ink); stroke-width: 2; fill: none; } .rails .off { stroke: var(--brand-ink); stroke-width: 1.6; stroke-dasharray: 5 5; fill: none; }
.rails .nd { fill: var(--paper); stroke: var(--brand-ink); stroke-width: 2; } .rails .nd.fill { fill: var(--brand-ink); } .rails .nd.dim { stroke: var(--faint); }
.dg .band rect { fill: color-mix(in srgb, var(--surface-2) 55%, transparent); stroke: var(--line); stroke-dasharray: 5 5; }
.dg .band.lit rect { fill: color-mix(in srgb, var(--teal) 6%, transparent); stroke: color-mix(in srgb, var(--teal) 40%, transparent); }
.dg .band.pf rect { fill: color-mix(in srgb, var(--r3) 5%, transparent); stroke: color-mix(in srgb, var(--r3) 35%, transparent); }
.dg .band text { font: 300 12px var(--code); fill: var(--muted); }
.dg .nd rect { fill: var(--bg); stroke: var(--line); stroke-width: 1.2; }
.dg .nd .t { font: 400 15px var(--display); fill: var(--fg); } .dg .nd .s { font: 300 12.5px var(--font); fill: var(--fg-2); }
.dg .nd.main rect { fill: color-mix(in srgb, var(--teal) 12%, var(--bg)); stroke: var(--brand-ink); stroke-width: 1.6; }
.dg .nd.you rect { fill: var(--sand-bg); stroke: color-mix(in srgb, var(--sand-ink) 55%, transparent); }
.dg .nd.pf rect { fill: color-mix(in srgb, var(--r3) 8%, var(--bg)); stroke: color-mix(in srgb, var(--r3) 42%, transparent); }
.dg .nd.mem rect { fill: var(--surface); stroke: var(--outline); }
.dg .nd.later rect { fill: transparent; stroke: var(--outline); stroke-dasharray: 5 4; } .dg .nd.later .t, .dg .nd.later .s { fill: var(--muted); }
.dg .e { fill: none; stroke: var(--fg-2); stroke-width: 1.4; } .dg .e.br { stroke: var(--brand-ink); stroke-width: 1.7; } .dg .e.sd { stroke: var(--dsand); stroke-width: 1.6; stroke-dasharray: 6 5; }
.dg .el { font: 300 11.5px var(--code); fill: var(--fg-2); paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.split { width: 100%; border-collapse: collapse; }
.split th { font: 400 14px var(--font); text-align: left; padding: 9px 18px 9px 0; white-space: nowrap; vertical-align: middle; }
.split tr:first-child th { font: 300 12.5px var(--code); color: var(--muted); }
.split th b { display: block; font-weight: 500; font-size: 15.5px; } .split th small { font-size: 12.5px; color: var(--muted); font-weight: 300; }
.split .n { text-align: right; padding-left: 16px; font: 400 15px var(--code); width: 82px; } .split td.z { color: var(--faint); } .split td.b { width: 100%; }
.split .k { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.track { display: flex; gap: 2px; height: 36px; border-radius: 4px; overflow: hidden; background: var(--surface-2); } .track i { display: block; }
.alice { background: var(--alice); } .bob { background: var(--bob); } .carol { background: var(--carol); } .asker { background: var(--asker); } .dan { background: var(--dan); }
.scen { font-size: 16px; color: var(--fg-2); margin-bottom: 8px; line-height: 1.7; } .scen b { color: var(--fg); font-weight: 500; }
.q2 { display: grid; grid-template-columns: minmax(0, 1.5fr) 34px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.q2 > div { padding: 20px 22px; border-radius: 14px; } .q2 .rc { background: #0E2C33; color: #F5F7F2; } .q2 .cr { border: 1.5px dashed var(--brand-ink); background: var(--paper); }
:root[data-theme="dark"] .q2 .rc { background: #1a3a42; }
.wide .q2 h3 { font: 500 26px var(--display); margin: 0 0 6px; color: inherit; } .q2 p { font-size: 15px; line-height: 1.7; margin: 0; opacity: .88; font-weight: 400; }
.q2 .arr { display: grid; place-items: center; padding: 0; color: var(--muted); font-size: 22px; }
.q2 .cs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; } .q2 .cs span { font-size: 13px; border: 1px solid rgba(245, 247, 242, .36); border-radius: 6px; padding: 2px 9px; }
.ten .pane > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.ten .r { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 7px; font-size: 14px; color: var(--fg-2); font-weight: 400; }
.ten .t { display: flex; gap: 2px; height: 36px; } .ten .t i { display: flex; align-items: center; justify-content: center; font: 400 13px var(--font); color: #fff; border-radius: 3px; white-space: nowrap; overflow: hidden; font-style: normal; }
.ten .t i.g { background: var(--surface-2); color: var(--fg-2); } .ten .t i.joint { background: #0E2C33; color: #F5F7F2; }
.ten ul { list-style: none; margin: 0; padding: 0; } .ten li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--fg-2); font-weight: 400; } .ten li:first-child { border-top: 0; padding-top: 0; }
.ten .m { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 500 12.5px var(--font); } .ten .m.joint { background: #0E2C33; } .ten li b { color: var(--fg); font-weight: 600; }

/* ---- 窄屏 ---------------------------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .doc, .rel { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .otp { display: none; }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0 0 16px; }
  .nb, .wg, .faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-h { position: static; }
  .notes, .tiers, .answers { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl { grid-auto-flow: row; } .tl::before { display: none; }
  .q2 { grid-template-columns: minmax(0, 1fr); } .q2 .arr { display: none; } .ten .pane > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav .links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .bento, .pgrid { grid-template-columns: minmax(0, 1fr); }
  .rows > div, .recs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 760px) {
  :root { --col: calc(100% - 32px); }
  .opening { padding-top: 84px; }
  .t-note .opening { padding-top: 104px; }
  .banner { height: 150px; }
  h1.tp { font-size: 34px; }
  h2.tp { font-size: 27px; }
  .head { padding-inline: 16px; }
  .head.start { padding-inline: 0; }
  .sec { padding-top: 76px; } .part { padding-top: 88px; }
  .nav .brand small { display: none; }
  .win { padding: 18px 16px 14px; }
  .chart, .dg { min-width: 760px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tblock { grid-template-columns: 1fr 1fr; } .tblock div:nth-child(2) { border-right: 0; }
  .entry { padding-left: 24px; }
  .art { height: 360px; }
  .art-row { left: 16px; right: 16px; transform: none; }
  .closing-in { padding: 64px 20px; }
  .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
  .split th small { display: none; } .split .n { width: auto; padding-left: 8px; font-size: 13px; } .track { min-width: 90px; }
  .pill .pill-only { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}
/* a draft is made whatever is wrong with it (build.py err, hole): what does not render is a red box in its place, with
   the builder's reason; what is still to come, a dashed box naming it, as large as a figure where a figure goes */
.draft .desk-err { display: block; margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: var(--bad-bg); color: var(--bad);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 36%, transparent); font: 400 13px/1.6 var(--code); text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.draft span.desk-err { display: inline; margin: 0; padding: 1px 6px; border-radius: 6px; }
.draft .desk-hole { display: inline-block; padding: 0 .5em; border: 1px dashed var(--outline); border-radius: 8px; color: var(--muted); font: 400 .72em/1.6 var(--code); letter-spacing: 0; vertical-align: middle; }
.draft div.desk-hole { display: grid; place-items: center; min-height: 96px; margin: 24px 0; padding: 16px; border-radius: 12px; font-size: 14px; }
.draft .desk-hole.fig { aspect-ratio: 16 / 9; min-height: 0; margin: 0; border-color: var(--line); }
/* the writing desk (public/desk.js gives the page's root desk-link): the part under the pointer outlined, the part its
   cursor is in tinted, and the template's words still in the post framed and tagged */
.desk-link .draft :is([data-line], [data-fm]) { cursor: pointer; }
.desk-link .draft :is([data-line], [data-fm]):hover:not(:has(:is([data-line], [data-fm]):hover)) { outline: 1px solid var(--outline); outline-offset: 4px; border-radius: 6px; }
.desk-link .draft .desk-here { border-radius: 6px; background: color-mix(in srgb, var(--brand) 7%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 7%, transparent); }
.desk-link .draft [data-sample] { position: relative; outline: 1px dashed var(--outline); outline-offset: 4px; }
.desk-link .draft [data-sample]::after { content: "示例"; position: absolute; z-index: 1; bottom: calc(100% + 1px); right: -4px; padding: 0 6px; border-radius: 999px; background: var(--bg);
  box-shadow: var(--chip-shadow); font: 400 10.5px/16px var(--font); letter-spacing: .04em; color: var(--muted); pointer-events: none; }
.desk-link .draft:lang(en) [data-sample]::after { content: "Sample"; }

/* ---- 11-15: what each kind of post says about itself (news/build.py) ------------------------------------------------
   An update's kind and areas, a correction's kind and what it corrects, the words before and after; a design note's
   stage; tables numbered and captioned above; a reviewer's checklist. New classes only: published posts are untouched. */
.hang { display: inline-block; width: 0; white-space: nowrap; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; }
.head .labels { justify-content: center; }
.head.start .labels { justify-content: flex-start; }
.chip.mark { color: var(--brand-ink); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-ink) 40%, transparent); }
.chip.area { color: var(--muted); }
.nb-l { min-width: 0; }
.nb .nb-l > * + * { margin-top: 24px; }
.nb .nb-l > .diff { margin-top: 28px; }
.corr-of { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; padding: 12px 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--fg-2); text-decoration: none; font-size: 15px; transition: box-shadow var(--shoal-fast) var(--shoal-ease); }
.corr-of:hover { box-shadow: inset 0 0 0 1px var(--brand-ink); }
.corr-of .k { font: 500 12.5px var(--code); color: var(--muted); }
.corr-of b { font-weight: 500; color: var(--fg); }
.corr-of .d { font: 400 13px var(--code); color: var(--muted); }
.corr-of .oi { align-self: center; color: var(--brand-ink); }
.diff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 28px; border-block: 1.5px solid var(--fg); }
.diff > div { padding: 14px 18px 16px 0; min-width: 0; }
.diff > .now { padding-left: 18px; padding-right: 0; border-left: 1px solid var(--line); }
.diff .k { display: block; margin-bottom: 6px; font: 500 12.5px var(--code); letter-spacing: .04em; color: var(--muted); }
.diff p { font-size: 16.5px; line-height: 1.8; }
.diff .was p { color: var(--muted); }
.diff del { text-decoration-color: var(--bad); text-decoration-thickness: 1.5px; }
.diff .now p { color: var(--fg); font-weight: 500; }
.standing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; width: 100%; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.stages { display: flex; flex: 1 1 360px; max-width: 560px; margin: 0; padding: 0; list-style: none; }
.stages li { position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; font: 400 13px/1.4 var(--font); color: var(--faint); }
.stages li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line); }
.stages li span { position: relative; width: 11px; height: 11px; box-sizing: border-box; border: 1.5px solid var(--faint); border-radius: 50%; background: var(--bg); }
.stages li.done { color: var(--fg-2); }
.stages li.done::before { background: var(--brand-ink); }
.stages li.done span { border-color: var(--brand-ink); background: var(--brand-ink); }
.stages li.now { color: var(--fg); font-weight: 500; }
.stages li.now span { border-color: var(--brand-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ink) 18%, transparent); }
.standing-r { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.standing-r a:not(.btn) { color: var(--brand-ink); }
.tb-cap { margin: 0 0 10px; font: 400 13.5px/1.7 var(--font); color: var(--muted); }
.tb-cap b { margin-right: 2px; font: 500 12px var(--code); letter-spacing: .06em; color: var(--brand-ink); }
.checklist { margin-top: 44px; }
.checklist .eyebrow { font: 500 12.5px var(--code); letter-spacing: .1em; color: var(--muted); }
.checklist ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: q; border-block: 1.5px solid var(--fg); }
.checklist li { display: grid; grid-template-columns: 2em minmax(0, 1fr) 4.5em minmax(0, 1.2fr); gap: 4px 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); counter-increment: q; font-size: 15px; line-height: 1.65; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: counter(q); font: 400 12.5px var(--code); color: var(--faint); }
.checklist .q { color: var(--fg); font-weight: 500; }
.checklist b { font: 500 13px var(--font); }
.checklist .ok b { color: var(--ok); }
.checklist .no b { color: var(--bad); }
.checklist .na b { color: var(--muted); font-weight: 400; }
.checklist .why { color: var(--fg-2); }
@media (max-width: 760px) {
  .diff { grid-template-columns: minmax(0, 1fr); }
  .diff > .now { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .checklist li { grid-template-columns: 2em minmax(0, 1fr) 4.5em; }
  .checklist .why { grid-column: 2 / -1; }
}
/* review mode (drafts only): numbered paragraphs for PR reviews, and a tag saying this is not published */
.draft [data-n] { position: relative; }
.draft [data-n]::before { content: attr(data-n); position: absolute; right: calc(100% + 12px); top: .4em; white-space: nowrap; font: 400 11.5px/1.4 var(--code); color: var(--faint); }
.draft-tag { position: fixed; z-index: 30; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); margin: 0; padding: 6px 12px; border-radius: 999px;
  background: var(--wait-bg); color: var(--wait); font: 500 12.5px var(--font); box-shadow: var(--chip-shadow); }
