/* Writing 列表与文章（2026-10-16 自 legacy.css 收口：去 Lab 守卫，段序与原层叠一致；段头保留 Lab 方案出处） */

/* dim:pagination start */
.pagination { display: flex; gap: 24px; justify-content: center; padding-top: 26px; font: 600 10px/1 var(--mono); letter-spacing: .12em; color: var(--on-soot-muted); }
.pagination a[aria-disabled="true"] { opacity: .4; }
/* dim:pagination end */

/* dim:article-header start */
.article-header { padding: calc(var(--sec-y) * 1.2) 0 var(--sec-y); border-bottom: 1px solid var(--line); }
.article-header h1 { margin-top: 20px; font: 700 clamp(32px, 5vw, 60px)/1.12 var(--serif); letter-spacing: var(--ls-display); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 26px; font: 600 10px/1.6 var(--mono); letter-spacing: .1em; color: var(--on-soot-muted); }
/* dim:article-header end */

/* dim:toc start */
.article-layout { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: 60px; padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.toc { position: sticky; top: 84px; align-self: start; }
.toc li { padding: 6px 0; font-size: 13px; }
.toc a { text-decoration: none; color: var(--on-soot-muted); }
.toc a:hover { color: var(--on-soot-fg); }
@media (max-width: 860px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } .toc { position: static; padding-bottom: 16px; border-bottom: 1px solid var(--line); } }
/* dim:toc end */

/* dim:prose start */
.prose { font-size: 16px; line-height: 1.9; }
.prose h2 { margin: 48px 0 16px; font: 700 24px/1.35 var(--serif); letter-spacing: var(--ls-h2); scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.h-num { font-family: var(--mono); font-size: .7em; color: var(--on-soot-accent); }
.prose p { margin-top: 14px; }
.prose .closing { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 18px; }
/* dim:prose end */

/* dim:data-table start */
.table-wrap { margin: 28px 0; overflow-x: auto; }
.table-wrap table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
.table-wrap caption { padding-bottom: 10px; text-align: left; font: 600 10px/1.4 var(--mono); letter-spacing: .12em; color: var(--on-soot-muted); }
.table-wrap th, .table-wrap td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap thead th { font: 700 10px/1.4 var(--mono); letter-spacing: .12em; color: var(--on-soot-muted); }
/* dim:data-table end */

/* dim:code-block start */
.code-block { margin: 28px 0; }
.code-block figcaption { margin-bottom: 8px; font: 600 10px/1.4 var(--mono); letter-spacing: .12em; color: var(--on-soot-muted); }
.code-block pre { overflow-x: auto; padding: 18px 20px; border: 1px solid var(--line); background: var(--soot-raise); font: 13px/1.8 var(--mono); }
/* dim:code-block end */

/* dim:pull-quote start */
.pull-quote { margin: 36px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 700 24px/1.5 var(--serif); }
/* dim:pull-quote end */

/* dim:aside start */
.aside { margin: 28px 0; padding: 18px 20px; border: 1px dashed var(--line); font-size: 14px; color: var(--on-soot-muted); }
/* F08 落点基线（Lab 出案前的朴素版）：正文上标编号 + 文末注释列表，编号与回链互指 */
.fn-ref { font: 600 .7em/0 var(--mono); vertical-align: super; margin-left: 1px; }
.fn-ref a, .prose .fn-ref a { color: var(--on-soot-accent); text-decoration: none; border: 0; background: none; padding: 0; margin: 0; }
.footnotes { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--on-soot-muted); }
.footnotes .label { margin-bottom: 12px; font-size: var(--fs-label); }
.footnotes ol { margin: 0; padding-left: 1.5em; list-style: decimal; }
.footnotes li::marker { font: 600 12px var(--mono); color: var(--on-soot-accent); }
.fn-back { color: var(--on-soot-accent); text-decoration: none; }
.aside .label { margin-bottom: 8px; }
/* dim:aside end */

/* dim:article-footer start */
.article-footer { padding-top: var(--sec-y); border-top: 1px solid var(--line); }
.article-footer .prev-next { margin-top: 30px; padding-bottom: var(--sec-y); }
.copy-status { margin-top: 10px; font: 600 10px/1.4 var(--mono); color: var(--on-soot-muted); }
/* dim:article-footer end */

/* dim:data-table-docs start — F05 落地 = Lab F05-V7「文档表」（用户 2026-10-04 选定）；由 tools/land_f05_v7.py 生成，勿手改 */
/* F05-V7 文档表：翻译 GitHub Docs 表格——粗体无衬线表头、宽松单元格、每行一根细线，无外框无底色 */
body.landed-a01 .table-wrap { margin: 36px 0 40px; }
body.landed-a01 .table-wrap table { min-width: 0; table-layout: fixed; font: 400 15px/1.6 var(--sans); color: var(--bone); }
body.landed-a01 .table-wrap caption {
  padding: 0 0 12px; text-align: left;
  font: 400 13px/1.5 var(--sans); letter-spacing: 0; color: var(--on-soot-muted);
}
body.landed-a01 .table-wrap th,
body.landed-a01 .table-wrap td { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
body.landed-a01 .table-wrap thead th {
  padding-top: 10px; padding-bottom: 10px;
  font: 700 15px/1.5 var(--sans); letter-spacing: 0; color: var(--bone);
}
body.landed-a01 .table-wrap thead th:nth-child(1) { width: 26%; }
body.landed-a01 .table-wrap thead th:nth-child(3) { width: 26%; }
body.landed-a01 .table-wrap tbody th { font-weight: 400; color: var(--bone); }
body.landed-a01 .table-wrap tbody td:last-child { padding-right: 0; }
/* dim:data-table-docs end */

/* dim:article-header-titleblock start — F02 落地 = Lab F02-V6「图签 · 侧栏」（用户 2026-10-04 选定）；由 tools/land_f02_v6.py 生成，勿手改 */
@media (min-width: 861px) {
/* F02-V6 图签 · 侧栏（Claude）：基底 V1 图签做减法，翻译 Vercel Blog 文章头。
   去掉十字、斜线阴影、尺寸线和空心 02；头部只剩上下两根图框线 + 一根竖分隔：
   左栏 面包屑 / 衬线大标题 / 导语，右栏把编号、篇幅、日期、相关项目逐行列成规格。 */

body.landed-a01:has([data-dim="article-header"]) .a3-head { overflow: visible; padding: 112px 0 0; }
body.landed-a01:has([data-dim="article-header"]) :is(.a3-wedge, .a3-hair) { display: none; }

/* JS 建 .f2-main / .f2-rail 两栏，已有节点挪进去 */
body.landed-a01:has([data-dim="article-header"]) .a3-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 264px; column-gap: 0;
}
body.landed-a01:has([data-dim="article-header"]) .f2-frame {
  display: grid; grid-template-columns: minmax(0, 1fr) 264px; grid-column: 1 / -1;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
body.landed-a01:has([data-dim="article-header"]) .f2-main { padding: 40px 56px 52px 0; border-right: 1px solid var(--line); }
body.landed-a01:has([data-dim="article-header"]) .f2-rail { display: flex; flex-direction: column; }

/* 左栏 */
body.landed-a01:has([data-dim="article-header"]) .a3-kicker { display: block; margin: 0; color: var(--on-soot-muted); }
body.landed-a01:has([data-dim="article-header"]) .a3-kicker::before { display: none; }
body.landed-a01:has([data-dim="article-header"]) .a3-title {
  margin-top: 28px; max-width: 12em;
  font: 700 84px/1.04 var(--serif); letter-spacing: -.035em; color: var(--bone); text-wrap: balance;
}
body.landed-a01:has([data-dim="article-header"]) .a3-deck {
  max-width: 33em; margin: 36px 0 0; font-size: 19px; line-height: 1.7; color: var(--dust); text-wrap: pretty;
}

/* 右栏：每行一项规格，行间细线 */
body.landed-a01:has([data-dim="article-header"]) .f2-rail > * {
  display: block; margin: 0; padding: 18px 0 18px 24px; border-bottom: 1px solid var(--line);
  font: 600 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dust);
}
body.landed-a01:has([data-dim="article-header"]) .f2-rail > *:last-child { border-bottom: 0; }
body.landed-a01:has([data-dim="article-header"]) .f2-rail .a3-no {
  position: static; transform: none; padding-top: 40px;
  font: 700 13px/1.6 var(--mono); letter-spacing: .12em; color: var(--on-soot-accent);
}
body.landed-a01:has([data-dim="article-header"]) .f2-rail .a3-cut { position: static; transform: none; white-space: normal; color: var(--bone); }

/* 元信息拆进右栏：日期一行，相关项目 + 标签一行 */
body.landed-a01:has([data-dim="article-header"]) .f2-rail .a3-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
body.landed-a01:has([data-dim="article-header"]) .a3-meta > span:first-child { color: var(--bone); padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); width: calc(100% + 0px); }
body.landed-a01:has([data-dim="article-header"]) .a3-meta .tag {
  padding: 0; border: 0; font-size: 11px; color: var(--bone); text-decoration: underline;
  text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color 160ms linear;
}
body.landed-a01:has([data-dim="article-header"]) .a3-meta .tag:hover { text-decoration-color: var(--bone); }

body.landed-a01:has([data-dim="article-header"]) .a3-head + .article-layout { padding-top: 56px; }
}
/* dim:article-header-titleblock end */

/* dim:code-block-terminal start — F04 落地 = Lab F04-V9「终端运行」（用户 2026-10-11 选定）；由 tools/land_f04_v9.py 生成，勿手改 */
/* F04-V9「终端运行」：译 Vercel CLI 文档里的终端块——一扇终端窗（顶栏三颗圆点 + 标题），先 `$ cat classify.py` 打出示例代码，
   再 `$ python check.py` 运行，骨架的四个验证问题就是程序的输出（移动原文字）。命令行与示例代码是占位。 */
body#top.landed-a01 [data-dim="code-block"] figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--soot); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -30px color-mix(in srgb, var(--soot) 90%, transparent); }
body#top.landed-a01 [data-dim="code-block"] figcaption { position: relative; margin: 0; padding: 11px 16px; text-align: center; background: var(--soot-raise); border-bottom: 1px solid var(--line);
  font: 500 12px/1.4 var(--sans); letter-spacing: 0; color: var(--on-soot-muted); }
body#top.landed-a01 [data-dim="code-block"] figcaption::before { content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 11px; height: 11px; border-radius: 50%;
  background: var(--burn); box-shadow: 18px 0 0 var(--on-soot-muted), 36px 0 0 var(--line); }
body#top.landed-a01 [data-dim="code-block"] pre { margin: 0; padding: 0 22px; border: 0; background: none; font: 13px/1.8 var(--mono); }
body#top.landed-a01 [data-dim="code-block"] .f04-cmd { display: block; padding-top: 16px; font: 13px/1.8 var(--mono); color: var(--on-soot-fg); }
body#top.landed-a01 [data-dim="code-block"] .f04-cmd::before { content: "$"; margin-right: 10px; color: var(--burn); }
body#top.landed-a01 [data-dim="code-block"] pre.f04-sample { padding-bottom: 4px; color: var(--on-soot-fg); }
body#top.landed-a01 [data-dim="code-block"] pre:not(.f04-sample) { padding-bottom: 18px; color: var(--on-soot-fg); }
body#top.landed-a01 [data-dim="code-block"] .f04-cursor { display: inline-block; width: 9px; height: 17px; vertical-align: -3px; background: var(--bone); }
body#top.landed-a01 [data-dim="code-block"] .tk-k { color: var(--burn); }
body#top.landed-a01 [data-dim="code-block"] .tk-s { color: color-mix(in srgb, var(--bone) 62%, var(--burn)); }
body#top.landed-a01 [data-dim="code-block"] .tk-c { color: var(--on-soot-muted); font-style: italic; }
body#top.landed-a01 [data-dim="code-block"] .tk-n { color: var(--on-soot-accent); }
body#top.landed-a01 [data-dim="code-block"] .tk-f { color: var(--bone); font-weight: 700; }
/* dim:code-block-terminal end */

/* dim:aside-margin start — F06 落地 = Lab F06-V1「页边旁注」（用户 2026-10-11 选定）；由 tools/land_f06_v1.py 生成，勿手改 */
@media (min-width: 861px) {
/* F06-V1「页边旁注」：边注离开正文栏，挂到右侧页边，顶端对齐它注解的那段正文。
   参考 refs/lixiaolai-com_article-margin-rail.png 的右栏（左竖线 + mono 小标签 + 小号正文）与 Tufte 旁注。 */
body.landed-a01 .article-body { position: relative; }

body.landed-a01 .aside {
  position: absolute;
  left: calc(100% + 30px);
  width: 160px;
  margin: 0;
  padding: 2px 0 4px 16px;
  border: 0;
  border-left: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--on-soot-muted);
  transition: border-color .2s ease;
}
body.landed-a01 .aside .label { margin-bottom: 10px; gap: 0; }
body.landed-a01 .aside .label span { color: var(--on-soot-accent); }
body.landed-a01 .aside .label span::before {
  content: "†";
  margin-right: 6px;
  font: 700 14px/1 var(--serif);
  letter-spacing: 0;
}

/* 正文段末的对应记号 */
body.landed-a01 .prose p:has(+ .aside)::after {
  content: "†";
  margin-left: 3px;
  font: 700 1.05em/0 var(--serif);
  vertical-align: .35em;
  color: var(--on-soot-accent);
}

/* 读者视线落到旁注或那段正文上时，两者互相点亮 */
body.landed-a01 .aside:hover,
body.landed-a01 .aside.f06-on { border-left-color: var(--burn); color: var(--on-soot-fg); }
body.landed-a01 .prose p.f06-on { color: var(--on-soot-fg); }
}
/* dim:aside-margin end */

/* dim:article-layout-centered start — F01 落地 = Lab F01-V6「Craig Mod 居中单栏」（用户 2026-10-14 选定）；由 tools/land_f01_v6.py 生成，勿手改 */
@media (min-width: 861px) {
/* F01-V6 Craig Mod 居中单栏：只改版心布局（栏宽与目录 / 边注 / 宽块的位置），字号、行距、段距与各组件皮肤不动。 */
body.landed-a01 .article-layout { grid-template-columns: minmax(0, 680px); justify-content: center; gap: 0; }
body.landed-a01 .toc { position: static; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
body.landed-a01 .toc ol { display: flex; flex-wrap: wrap; gap: 0 28px; }
}
/* dim:article-layout-centered end */

/* dim:toc-dash-list start — B03 落地 = Lab B03-V7「GOV.UK 破折号清单」（用户 2026-10-14 选定）；由 tools/land_b03_v7.py 生成，勿手改 */
@media (min-width: 861px) {
/* B03-V7 GOV.UK 破折号清单：位置沿用已落地 F01-V6（目录在正文上方、不吸顶）；本维只改目录块本身的样子。 */
body.landed-a01 .article-layout .toc { margin-bottom: 48px; padding-bottom: 28px; }
body.landed-a01 .article-layout .toc .label { margin-bottom: 14px; font: 600 19px/1.3 var(--sans); letter-spacing: 0; font-variant-caps: normal; }
body.landed-a01 .article-layout .toc ol { display: block; }
body.landed-a01 .article-layout .toc li { position: relative; padding: 5px 0 5px 28px; font-size: 16px; }
body.landed-a01 .article-layout .toc li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1px; background: var(--on-soot-muted); }
body.landed-a01 .article-layout .toc a { color: var(--on-soot-fg); text-decoration: underline; text-decoration-color: var(--on-soot-muted); text-decoration-thickness: 1px; text-underline-offset: 4px; }
body.landed-a01 .article-layout .toc a:hover { text-decoration-color: var(--burn); text-decoration-thickness: 2px; }
}
/* dim:toc-dash-list end */

/* dim:pull-quote-inset start — F03 落地 = Lab F03-V9「GOV.UK 插入文字」（用户 2026-10-14 选定）；由 tools/land_f03_v9.py 生成，勿手改 */
@media (min-width: 861px) {
/* F03-V9 GOV.UK 插入文字：版心沿用已落地 F01-V6（680px 居中）；去掉 A01 落地的斜橙红短线。 */
body.landed-a01 .prose .pull-quote::before { display: none; }
body.landed-a01 .prose .pull-quote { margin: 36px 0; padding: 16px 0 16px 24px; border: 0; border-left: 8px solid color-mix(in srgb, var(--bone) 22%, transparent); font: 500 19px/1.7 var(--sans); letter-spacing: 0; color: var(--bone); }
}
/* dim:pull-quote-inset end */

/* dim:pagination-prev-next start — J04 落地 = Lab J04-V8「MDN 前后翻页」（用户 2026-10-14 选定）；由 tools/land_j04_v8.py 生成，勿手改 */
@media (min-width: 861px) {
/* J04-V8 MDN 前后翻页：只有 1 页——页码「1」来自 CSS 计数器，不伪造页数；禁用态清楚但不像坏掉，可用态（a:not([aria-disabled])）已预留 */
body.landed-a01 .pagination { justify-content: space-between; align-items: center; gap: 24px; margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 400 15px/1.4 var(--sans); letter-spacing: 0; color: var(--on-soot-muted); }
body.landed-a01 .pagination a { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
body.landed-a01 .pagination a:last-child { justify-content: flex-end; }
body.landed-a01 .pagination a:first-child::before { content: "←"; }
body.landed-a01 .pagination a:last-child::after { content: "→"; }
body.landed-a01 .pagination a[aria-disabled="true"] { opacity: 1; color: var(--on-soot-muted); text-decoration: none; cursor: default; }
body.landed-a01 .pagination a:not([aria-disabled]):hover { color: var(--burn); }
body.landed-a01 .pagination span { color: var(--on-soot-fg); }
}
/* dim:pagination-prev-next end */

/* dim:figure-breakout start — F07 落地 = Lab F07-V1「Distill 破栏宽图」（用户 2026-10-15 选定）；由 tools/land_f07_v1.py 生成，勿手改 */
@media (min-width: 861px) {
/* F07-V1 Distill 破栏宽图：图冲出 680 正文栏到 1040 宽，无框无底；图注对齐图左缘，灰字两行，编号作句首粗体 */
body.landed-a01 [data-dim="figure"] { width: min(1040px, calc(100vw - 160px)); margin: 64px 0 56px 50%; translate: -50% 0; }
body.landed-a01 [data-dim="figure"] .fig-plate { padding: 0; border: 0; background: none; }
body.landed-a01 [data-dim="figure"] .fg-node rect { stroke: var(--on-soot-fg); stroke-width: .8; }
body.landed-a01 [data-dim="figure"] .fg-node.is-loop rect { fill: color-mix(in srgb, var(--bone) 6%, transparent); }
body.landed-a01 [data-dim="figure"] .fg-node text { font-size: 12px; font-weight: 500; }
body.landed-a01 [data-dim="figure"] .fg-note { font-size: 9px; letter-spacing: .08em; }
body.landed-a01 [data-dim="figure"] .fg-edge, body.landed-a01 [data-dim="figure"] .fg-head { stroke-width: .8; }
body.landed-a01 [data-dim="figure"] figcaption { display: block; max-width: 780px; margin-top: 28px; font-size: 15px; line-height: 1.75; color: var(--on-soot-muted); }
body.landed-a01 [data-dim="figure"] .fig-no { margin-right: .6em; font: 700 15px/1.75 var(--sans); color: var(--on-soot-fg); }
body.landed-a01 [data-dim="figure"] .fig-src { display: block; margin-top: 4px; font-size: 13px; }
}
/* dim:figure-breakout end */

/* dim:footnote-popup start — F08 落地 = Lab F08-V7「Gwern 细框窗口」（用户 2026-10-15 选定）；由 tools/land_f08_v7.py 生成，勿手改 */
@media (min-width: 861px) {
/* F08-V7 Gwern 细框窗口：机制同 V1（方括号上标 / 悬停或聚焦弹卡 / 文末小字列表、回链在前），只换弹卡外观。 */
body.landed-a01 .fn-ref { font: 500 11px/0 var(--sans); vertical-align: super; margin: 0 1px; }
body.landed-a01 .prose .fn-ref a { color: var(--on-soot-accent); }
body.landed-a01 .prose .fn-ref a::before { content: "["; }
body.landed-a01 .prose .fn-ref a::after { content: "]"; }
body.landed-a01 .footnotes { margin-top: 56px; padding-top: 18px; font-size: 13px; line-height: 1.7; }
body.landed-a01 .footnotes .label { margin-bottom: 10px; font: 600 15px/1.4 var(--serif); letter-spacing: 0; text-transform: none; }
body.landed-a01 .footnotes .label span { color: var(--on-soot-fg); }
body.landed-a01 .footnotes li { padding-left: 2px; }
body.landed-a01 .footnotes li:target { background: color-mix(in srgb, var(--bone) 8%, transparent); }
body.landed-a01 .footnotes .fn-back { float: left; margin-right: 6px; }
body.landed-a01 .f08-pop { position: absolute; z-index: 30; width: 380px; padding: 26px 20px 16px; border: 1px solid var(--on-soot-muted); background: var(--soot);
  color: var(--on-soot-fg); font: 400 14px/1.8 var(--serif); text-align: justify; box-shadow: 4px 4px 0 color-mix(in srgb, var(--bone) 8%, transparent); }
body.landed-a01 .f08-pop::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 4px); }
body.landed-a01 .f08-pop[hidden] { display: none; }
}
/* dim:footnote-popup end */
