/* ============================================================================
   EMS-Trade Cooling · assets/site.css
   Shared layout and components for every page. Loaded after design-tokens.css.

   Windows down this sheet: nav title block, footer, the twelve-column ruled
   sheet, figure plate with a band over the photograph, parameter table, data
   row, specimen strip, document request band, process flow, structural
   section, parameter matrix, supply-network band, figure numbering.

   CSP: no inline style attribute anywhere. Every interface is a class:
     wrong  <div class="flow" style="--steps:4">
     right  <div class="flow flow--4">
   Custom properties that a page may need to vary (--steps) are set by a
   modifier class, never in markup.

   Images: the only ratio classes are .ar-3-2 / .ar-2-3 / .ar-1-1. The
   aspect-ratio door is a three-slot whitelist; a hero photograph is sized by
   height instead, so the 16:9 hero asset never becomes a 16/9 CSS box.
   ========================================================================= */

/* ============================================================ 1 · LAYOUT == */

/* The sheet's container. Width, not padding, so the twelve column rules drawn
   on .wrap--ruled line up exactly with the columns of .cols inside it. */
.wrap {
  width: min(var(--wrap), calc(100% - (2 * var(--gut))));
  margin-inline: auto;
}

/* The visible grid, drawn down the whole sheet. Twelve rules at every twelfth
   of the container, which is exactly where the columns start.

   Two widths, one intent. On a 2x display a 1px rule paints two device pixels
   and twelve of them read as stripes rather than as a grid, so there the rule
   is drawn at 0.5px — one device pixel — against a slightly stronger colour.
   On a 1x display 0.5px would be rendered as a proportionally lighter line by
   the browser, which disappears instead of thinning, so there it stays 1px and
   simply carries the lower colour. */
.wrap--ruled {
  background-image: repeating-linear-gradient(
    90deg,
    var(--rule-col) 0 var(--bw),
    transparent var(--bw) calc(100% / 12)
  );
}

@media (min-resolution: 1.5dppx) {
  .wrap--ruled {
    background-image: repeating-linear-gradient(
      90deg,
      var(--rule-col) 0 var(--bw-col),
      transparent var(--bw-col) calc(100% / 12)
    );
  }
}

.cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.cols > * {
  min-width: 0;
  padding-inline: var(--cell-pad);
}

.cols > .flush {
  padding-inline: 0;
}

.sp-1 { grid-column: span 1; }
.sp-2 { grid-column: span 2; }
.sp-3 { grid-column: span 3; }
.sp-4 { grid-column: span 4; }
.sp-5 { grid-column: span 5; }
.sp-6 { grid-column: span 6; }
.sp-7 { grid-column: span 7; }
.sp-8 { grid-column: span 8; }
.sp-9 { grid-column: span 9; }
.sp-10 { grid-column: span 10; }
.sp-11 { grid-column: span 11; }
.sp-12 { grid-column: span 12; }

.st-1 { grid-column-start: 1; }
.st-2 { grid-column-start: 2; }
.st-3 { grid-column-start: 3; }
.st-4 { grid-column-start: 4; }
.st-5 { grid-column-start: 5; }
.st-6 { grid-column-start: 6; }
.st-7 { grid-column-start: 7; }

/* Fixed splits, for the hero variants that are not a twelve-column multiple.
   A page may compose its own split with .sp-* instead. */
.cols--5-7 { grid-template-columns: 5fr 7fr; }
.cols--7-5 { grid-template-columns: 7fr 5fr; }
.cols--4-8 { grid-template-columns: 4fr 8fr; }
.cols--8-4 { grid-template-columns: 8fr 4fr; }
.cols--6-6 { grid-template-columns: 6fr 6fr; }

/* Image grids. All <img> inside one of these must declare the same
   width/height ratio: a row of mixed portrait and landscape shots reads as a
   mistake, and under object-fit cover one half of them get cropped badly. */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 0;
  border: var(--hair);
  background: var(--rule);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  background: var(--raise);
  padding: var(--sp-3);
}

/* Full-bleed row: breaks out of the container to the viewport edges. */
.bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* ======================================================== 2 · TYPOGRAPHY == */

.prose {
  max-width: var(--measure);
  font-size: var(--fs-body);
  line-height: var(--lh-prose);
  color: var(--body);
}

.prose > * + * {
  margin-top: var(--sp-4);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink);
  max-width: 52ch;
}

/* Utility face: numbers, units, labels, buttons, nav, footer, meta. */
.mono,
.num,
.u {
  font-family: var(--f-util);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.num {
  color: var(--ink);
  font-weight: var(--w-medium);
}

.u {
  color: var(--muted);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
}

/* Micro label. 11px is allowed only for things nobody reads as prose:
   eyebrows, table column heads, figure numbers, field labels. */
.lbl {
  display: inline-block;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: var(--w-medium);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: var(--w-medium);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--stamp);
  background: var(--stamp-wash);
  border: 1px solid #e3d3bb;
  border-left: var(--bw-bar) solid var(--stamp-brand);
  padding: 5px 10px;
}

.fig-no {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  color: var(--link);
  white-space: nowrap;
}

.plate-no {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  color: var(--stamp);
}

.h1 { font-size: var(--fs-h1); letter-spacing: var(--tr-display); }
.h2 { font-size: var(--fs-h2); letter-spacing: var(--tr-title); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }

.head-rule {
  border-top: var(--hair-strong);
  padding-top: var(--sp-3);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: var(--sp-3);
  top: var(--sp-3);
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ========================================================= 3 · SECTIONS == */

.sec {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: baseline;
  gap: var(--sp-4);
  border-top: 2px solid var(--ink);
  padding: var(--sp-3) 0 var(--sp-5);
}

.sec__no {
  justify-self: start;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  color: var(--paper);
  background: var(--ink);
  padding: 3px 8px;
}

.sec__title {
  font-size: var(--fs-h2);
  letter-spacing: var(--tr-title);
}

.sec__meta {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
  max-width: 34ch;
}

.sec--thin {
  border-top: var(--hair-strong);
}

.sec--thin .sec__no {
  background: none;
  color: var(--stamp);
  padding: 3px 0;
}

.block {
  padding-bottom: var(--sp-9);
}

.block--tight {
  padding-bottom: var(--sp-7);
}

.rule-top {
  border-top: var(--hair);
}

.rule-top-strong {
  border-top: var(--hair-strong);
}

.pad-y {
  padding-block: var(--section-y);
}

/* ================================================ 4 · NAV TITLE BLOCK ==== */

.tb {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  border-bottom: var(--hair-strong);
}

.tb__row {
  display: flex;
  align-items: stretch;
  border-bottom: var(--hair);
}

.tb__row > * {
  display: flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-right: var(--hair-soft);
}

.tb__row > *:last-child {
  border-right: 0;
}

.tb-mark {
  gap: var(--sp-3);
  color: var(--ink);
}

.tb-mark:hover {
  text-decoration: none;
}

.tb-mark svg {
  flex: none;
  width: 32px;
  height: 32px;
}

.tb-mark__wm {
  display: block;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--ink);
}

.tb-mark__sub {
  display: block;
  font-family: var(--f-util);
  font-size: 9px;
  letter-spacing: var(--tr-micro);
  text-transform: uppercase;
  color: var(--muted);
}

/* Document control cell: the sheet identifies itself before it sells anything. */
.tb-doc {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.tb-doc b {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}

/* The primary control takes the right end of the row: no spacer element. */
.tb-act {
  flex: none;
  margin-left: auto;
}

/* Numbered index row. Six product lines numbered, plus Home and Industries. */
.tb-index {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.tb-index > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--sp-3);
  border-right: var(--hair-soft);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body);
  white-space: nowrap;
}

.tb-index > a b {
  color: var(--muted);
  font-weight: var(--w-body);
  margin-right: 6px;
}

.tb-index > a:hover {
  background: var(--link-wash);
  color: var(--link-deep);
  text-decoration: none;
}

.tb-index > a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-2);
  box-shadow: inset 0 -3px 0 var(--link-brand);
}

.tb-index > a[aria-current="page"] b {
  color: var(--link);
}

/* Index disclosure. Native <details>: no script, works with CSP. */
.tb-drop {
  position: relative;
  margin-left: auto;
  border-right: 0 !important;
}

.tb-drop > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding: 0 var(--sp-3);
  cursor: pointer;
  list-style: none;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.tb-drop > summary::-webkit-details-marker {
  display: none;
}

.tb-drop > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur-2) var(--ease);
}

.tb-drop[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}

.tb-drop__body {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 50;
  width: min(620px, calc(100vw - (2 * var(--gut))));
  max-height: 72vh;
  overflow-y: auto;
  background: var(--raise);
  border: var(--hair-strong);
  box-shadow: var(--shadow-plate);
  padding: var(--sp-4);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

/* 窄屏专用的「Sections」列：桌面端内联行已经把 8 个编号区块显示出来了，
   这一列必须藏起来，否则同一批链接会在同一视口出现两次（无障碍树里也是两份）。 */
.tb-drop__col--sections {
  display: none;
}

.tb-drop__col--sections a b {
  color: var(--muted);
  font-weight: var(--w-body);
  margin-right: 6px;
}

.tb-drop__col h2 {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
  padding-bottom: var(--sp-2);
  border-bottom: var(--hair-soft);
  margin-bottom: var(--sp-2);
}

.tb-drop__col a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 14px;
  color: var(--ink);
}

.tb-drop__col a:hover {
  color: var(--link);
}

/* Two rows of specificity matter here: .ctl declares display:inline-flex later
   in this file, so the mobile control has to be addressed through the header
   rather than by class alone. */
.tb .tb__cta-m {
  display: none;
}

.tb-drop > summary b {
  color: var(--muted);
  font-weight: var(--w-body);
  margin-right: 6px;
}

/* ============================================================ 5 · FOOTER == */

.foot {
  border-top: 2px solid var(--ink);
  background: var(--paper);
  padding-top: var(--sp-5);
}

.foot .wrap {
  padding-bottom: var(--sp-6);
}

/* Revision block: six cells, all hairlines, exactly like a drawing sheet. */
.rev-block {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: var(--hair);
  background: var(--raise);
}

.rev-block > div {
  padding: var(--sp-3);
  border-right: var(--hair-soft);
}

.rev-block > div:last-child {
  border-right: 0;
}

.rev-block span {
  display: block;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
}

.rev-block b {
  display: block;
  margin-top: 3px;
  font-family: var(--f-util);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rev-block .is-stamp b {
  color: var(--stamp);
}

/* Link schedule: six columns, headings in the utility face. */
.foot-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--sp-6);
  border-top: var(--hair);
}

.foot-cols > div {
  padding: var(--sp-4) var(--sp-4) var(--sp-5) 0;
  border-right: var(--hair-soft);
}

.foot-cols > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.foot-cols h2 {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
  padding-bottom: var(--sp-2);
}

.foot-cols a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}

.foot-cols a:hover {
  color: var(--link);
}

.foot-cols .foot-note {
  display: block;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: var(--sp-2);
}

.foot-cols .foot-mail {
  font-family: var(--f-util);
  font-size: 14px;
  color: var(--link);
  overflow-wrap: anywhere;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  justify-content: space-between;
  align-items: center;
  border-top: var(--hair);
  padding: var(--sp-4) 0 var(--sp-7);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-base p {
  max-width: 96ch;
}

.foot-cta {
  border-top: var(--hair);
  border-bottom: var(--hair);
  padding: var(--sp-4) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
}

.foot-cta__line {
  flex: 1 1 46ch;
  font-size: var(--fs-data);
  line-height: var(--lh-ui);
  color: var(--body);
}

/* ========================================================== 6 · CONTROLS == */

.ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding: 0 var(--sp-4);
  border: var(--hair);
  border-radius: var(--r-ctl);
  background: var(--raise);
  color: var(--ink);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  line-height: 1;
  text-align: center;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    transform var(--dur-1) var(--ease);
}

.ctl:hover {
  text-decoration: none;
  border-color: var(--ink);
}

.ctl:active {
  transform: translateY(1px);
}

.ctl--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: inset var(--bw-bar) 0 0 var(--link-brand);
}

.ctl--primary:hover {
  background: #241f18;
  color: var(--paper);
  box-shadow: inset var(--bw-bar) 0 0 var(--link-brand), var(--shadow-lift);
}

.ctl--onplate {
  background: none;
  color: var(--on-plate);
  border-color: rgba(246, 244, 239, 0.42);
}

.ctl--onplate:hover {
  border-color: var(--on-plate);
  color: var(--on-plate);
  background: rgba(246, 244, 239, 0.08);
}

.ctl--onplate:focus-visible {
  outline: var(--focus-w) solid var(--focus-on-plate);
  outline-offset: var(--focus-off);
}

.ctl--wide {
  width: 100%;
}

.ctl-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}

/* Text link with a rule under it: the sheet's own "see § 03" move. */
.jump {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--link);
  border-bottom: var(--hair);
}

.jump:hover {
  text-decoration: none;
  border-bottom-color: var(--link);
}

/* ============================================================= 7 · PLATE ==
   A plate is a photograph held in a ruled frame, with its number and caption
   attached. Three placements exist: the frame alone, the frame with a band of
   text over the lower part of the photograph, and the frame with a band that
   overlaps its lower edge. Nothing else carries a photograph on this site. */

.plate {
  margin: 0;
}

.plate__frame {
  border: var(--hair-strong);
  background: var(--raise);
  padding: 1px;
  box-shadow: var(--shadow-plate);
}

/* Height-driven frame. A band over a photograph needs a box tall enough to
   hold both, so a hero frame is sized in vh, not by a ratio. */
.plate__frame--tall {
  height: var(--hero-h);
}

.plate__shot {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

.plate__frame--tall .plate__shot {
  height: 100%;
}

.plate__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 结构兜底：盒子的直接子 <img> 即使漏写 .plate__img，也按同一份契约填盒。
   为什么要写：`.plate__shot`（定比例的盒子）与 `.plate__img`（填盒的图）是一对，
   只写盒子不写图的类，浏览器就退回默认 —— width 被全局 img{max-width:100%}
   压到容器宽，**height 则被 HTML 的 height="1024" 属性以固定值接管**（没有任何
   CSS 覆盖它），object-fit 退回 fill → 图片被压扁。实测事故：1024×1024 的方图
   被渲染成 266×1024 再被 overflow:hidden 裁掉，全站 103 处，
   而 check-aspect 只比对"声明值 vs 文件"，全绿也照样漏。
   两条规则特异性相同，靠先后顺序定胜负，故 --mat 一条必须排在后面。 */
.plate__shot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate__shot--mat > img {
  object-fit: contain;
}

.plate__shot--mat {
  background: var(--raise);
}

.plate__shot--mat .plate__img {
  object-fit: contain;
}

/* Ratio boxes. The whitelist has three slots; use them. */
.ar-3-2 { aspect-ratio: 3/2; }
.ar-2-3 { aspect-ratio: 2/3; }
.ar-1-1 { aspect-ratio: 1/1; }

/* The band: CSS text over the lower part of the photograph. The ground is the
   frozen scrim and never goes lighter than .62; the measured worst case (a
   white pixel under it) is 5.07:1 for --on-scrim and 4.69:1 for --on-scrim-2.
   Secondary copy that must sit dimmer than that goes on .band--strong. */
.plate__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--band-y) var(--band-x);
  background-color: var(--scrim);
  background-image: linear-gradient(180deg, var(--scrim) 0%, var(--scrim-deep) 100%);
  color: var(--on-scrim);
}

.plate__band--strong {
  background-color: var(--scrim-strong);
  background-image: none;
}

.plate__band h1,
.plate__band h2,
.plate__band h3 {
  color: var(--on-scrim);
  text-shadow: var(--shadow-text);
}

.plate__band .band__lede {
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
  max-width: 56ch;
  margin-top: var(--sp-3);
  font-size: var(--fs-lede);
  line-height: 1.45;
}

.plate__band .band__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-4);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

.plate__band .band__meta b {
  color: var(--on-scrim);
  font-weight: 500;
}

.plate__band .ctl-row {
  margin-top: var(--sp-5);
}

/* Band that overlaps the frame's lower edge: photograph above, document
   below, no text parked beside a picture. */
.plate--over {
  position: relative;
  padding-bottom: 64px;
}

.plate--over .plate__band {
  left: var(--cell-pad);
  right: var(--cell-pad);
  bottom: 0;
  border: var(--hair-strong);
  background-color: var(--scrim-strong);
  background-image: none;
}

.plate__cap {
  display: flex;
  gap: var(--sp-3);
  align-items: baseline;
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: var(--hair-soft);
}

.plate__cap p {
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--body);
  max-width: 78ch;
}

.plate__cap .plate-no {
  flex: none;
}

/* A four-cell read-out under a plate: the decisive figures, in the utility
   face, one hairline each. */
.fig-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--hair-soft);
  margin-top: var(--sp-3);
}

.fig-row > div {
  padding: var(--sp-2) var(--sp-3);
  border-right: var(--hair-soft);
}

.fig-row > div:last-child {
  border-right: 0;
}

.fig-row b {
  display: block;
  font-family: var(--f-util);
  font-size: var(--fs-data);
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fig-row span {
  display: block;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
  color: var(--muted);
}

/* ============================================================== 8 · HERO ==
   Four placements, one per page type. A page picks one and may invent
   another; the brand layer underneath all four is the same: a photograph of
   real loop hardware, and text that sits on it rather than beside it. */

.hero {
  border-bottom: var(--hair-strong);
}

/* full-bleed-band-lower · home */
.hero--full {
  position: relative;
  background: var(--paper-2);
}

.hero--full .plate__shot {
  height: var(--hero-h);
}

.hero--full .hero__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--band-y) var(--band-x);
  background-color: var(--scrim);
  background-image: linear-gradient(180deg, var(--scrim) 0%, var(--scrim-deep) 100%);
  color: var(--on-scrim);
}

.hero__inner {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
}

/* Hero copy budget: one h1 of at most three lines, one sentence of
   explanation, one primary control. The band sits on the lower third of the
   photograph, so it cannot grow past roughly half the frame. */
.hero__band h1 {
  color: var(--on-scrim);
  font-size: var(--fs-h1);
  letter-spacing: var(--tr-display);
  max-width: 26ch;
  text-shadow: var(--shadow-text);
}

.hero__band .band__lede {
  margin-top: var(--sp-3);
  max-width: 62ch;
  font-size: var(--fs-lede);
  line-height: 1.45;
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

.hero__band .hero__act {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
  margin-top: var(--sp-5);
}

.hero__band .hero__note {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--on-scrim-2);
  text-shadow: var(--shadow-text);
}

/* split-copy-plate · product pages */
.hero--split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-bottom: var(--hair-strong);
}

.hero--split .hero__copy {
  padding: var(--sp-9) var(--sp-8) var(--sp-8);
  border-right: var(--hair-soft);
}

.hero--split .hero__figure {
  padding: var(--sp-6);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero--split .hero__copy h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--tr-display);
  max-width: 15ch;
  margin-top: var(--sp-4);
}

.hero--split .hero__copy .band__lede {
  margin-top: var(--sp-4);
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink);
  max-width: 46ch;
}

.hero--split .ctl-row {
  margin-top: var(--sp-5);
}

/* document-head · technical and trust pages: no photograph, a ruled head.
   The rule allows a page to open with the document itself; the photograph
   still appears in the body, and the page still carries its image floor. */
.hero--doc {
  border-bottom: var(--hair-strong);
  padding: var(--sp-8) 0 var(--sp-7);
}

.hero--doc .hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: var(--hair);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
}

.hero--doc h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--tr-display);
  max-width: 24ch;
  margin-top: var(--sp-4);
}

.hero--doc .band__lede {
  margin-top: var(--sp-4);
  max-width: 68ch;
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--body);
}

/* Document index: the sheet's table of contents, numbered. */
.toc {
  margin-top: var(--sp-5);
  border-top: var(--hair);
  padding-top: var(--sp-3);
}

.toc ol {
  list-style: none;
  columns: 2;
  column-gap: var(--sp-6);
}

.toc li {
  display: flex;
  gap: var(--sp-3);
  align-items: baseline;
  padding: var(--sp-2) 0;
  border-bottom: var(--hair-soft);
  break-inside: avoid;
  font-size: 14px;
}

.toc li b {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--muted);
  min-width: 26px;
}

.toc li a {
  color: var(--ink);
}

.toc li a:hover {
  color: var(--link);
}

/* ======================================================= 9 · SPEC TABLE ==
   The centre of gravity. Row height 32px, units in their own column,
   figures in the utility face with tabular numerals so a column compares
   down its length. Always inside .spec-scroll: a table that outgrows its
   grid cell must scroll inside itself rather than over the next section. */

.spec-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: var(--hair);
  background: var(--raise);
  /* position:relative 不是装饰：没有它，表格里的绝对定位后代（如 .sr 屏幕阅读器文本）
     会以**视口**为包含块逃出滚动容器，把整页宽度撑破（实测 375px 视口下文档被撑到 586px）。 */
  position: relative;
}

.spec-scroll:focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: var(--focus-off);
}

.spec-table {
  width: 100%;
  min-width: 620px;
  font-size: var(--fs-body);
}

.spec-table caption {
  caption-side: top;
  text-align: left;
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
  border-bottom: var(--hair);
}

.spec-table th,
.spec-table td {
  text-align: left;
  vertical-align: top;
  padding: 6px var(--sp-3);
  height: 32px;
  border-bottom: var(--hair-soft);
}

.spec-table thead th {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--body);
  background: var(--paper-2);
  border-top: var(--hair);
  border-bottom: var(--hair);
  white-space: nowrap;
}

.spec-table tbody tr:hover {
  background: var(--link-wash);
}

.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Row number, name, value, unit, note: the schedule shape. */
.spec-table .c-no {
  width: 48px;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.spec-table .c-name {
  font-family: var(--f-display);
  font-size: var(--fs-data);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.spec-table .c-name span {
  display: block;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
  color: var(--muted);
  margin-top: 2px;
}

.spec-table .c-val {
  font-family: var(--f-util);
  font-size: var(--fs-data);
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.spec-table .c-val a {
  border-bottom: var(--hair);
}

.spec-table .c-unit {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  color: var(--muted);
  white-space: nowrap;
  width: 96px;
}

.spec-table .c-note {
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--body);
}

.spec-table .c-ref {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  color: var(--muted);
  white-space: nowrap;
  width: 96px;
}

.spec-table--key .c-val {
  color: var(--link);
}

.spec-note {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: var(--sp-2);
  max-width: 96ch;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: var(--hair-soft);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.legend b {
  color: var(--ink);
  font-weight: 500;
}

/* ========================================================= 10 · DATA ROW ==
   Label column left, content right, one hairline per row. Used for the
   "what this line is" blocks and the boundary statements. */

.data-rows {
  border-top: var(--hair-strong);
}

.data-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-bottom: var(--hair-soft);
}

.data-row__k {
  padding: var(--sp-3);
  border-right: var(--hair-soft);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
  color: var(--muted);
}

.data-row__v {
  padding: var(--sp-3);
  font-size: var(--fs-data);
  line-height: var(--lh-ui);
  color: var(--body);
}

.data-row__v b,
.data-row__v strong {
  font-family: var(--f-util);
  font-size: var(--fs-data);
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* A single row of figures across the sheet: the "line of numbers" that
   closes a section. */
.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: var(--hair-strong);
  border-bottom: var(--hair);
}

.data-strip > div {
  padding: var(--sp-4) var(--sp-3);
  border-right: var(--hair-soft);
}

.data-strip > div:last-child {
  border-right: 0;
}

.data-strip b {
  display: block;
  font-family: var(--f-util);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.data-strip span {
  display: block;
  margin-top: var(--sp-1);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
  color: var(--muted);
}

.data-strip small {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-cap);
  color: var(--body);
}

/* =================================================== 11 · SPECIMEN STRIP ==
   Real parts, one cell each, on a white mount. object-fit is contain here:
   a supplier photograph of a part is not a photograph of a scene, and
   cropping it to a ratio would cut the part. */

.specimen-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: var(--hair);
  background: var(--raise);
}

.specimen {
  padding: var(--sp-3);
  border-right: var(--hair-soft);
  border-bottom: var(--hair-soft);
}

.specimen-strip > .specimen:nth-child(4n) {
  border-right: 0;
}

.specimen__shot {
  background: var(--raise);
  border: var(--hair-soft);
  overflow: hidden;
}

.specimen__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-3) var(--ease-out);
}

.specimen:hover .specimen__shot img {
  transform: scale(1.02);
}

.specimen__no {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
  color: var(--stamp);
}

.specimen__name {
  display: block;
  margin-top: 2px;
  font-family: var(--f-display);
  font-size: var(--fs-data);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.specimen__spec {
  display: block;
  margin-top: 2px;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ==================================================== 12 · REQUEST BAND ==
   The conversion device: an inline document request slip, not a contact
   form. Four tickable document lines on the left, three fields on the
   right, on an ink plate. No modal, no drawer, no sticky bar, no counter. */

.request-band {
  background: var(--plate);
  color: var(--on-plate);
}

.request-band__inner {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--sp-7);
  padding: var(--sp-8) 0;
}

.request-band h2 {
  color: var(--on-plate);
  font-size: var(--fs-h2);
  max-width: 22ch;
}

/* On the ink plate the label takes the lifted amber: the reading amber
   measures 2.90:1 against this ground and would not be readable. */
.request-band .plate-no {
  color: var(--stamp-on-plate);
}

/* Inverse control. An ink-filled button on an ink plate has no edge; the
   primary control on this plate is paper-filled with the link-blue bar. */
.request-band .ctl--primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.request-band .ctl--primary:hover {
  background: #fffdf8;
  color: var(--ink);
  border-color: #fffdf8;
}

.request-band .band__lede {
  margin-top: var(--sp-3);
  max-width: 52ch;
  font-size: var(--fs-data);
  line-height: var(--lh-ui);
  color: var(--on-plate-2);
}

.ticks {
  margin-top: var(--sp-5);
  border-top: var(--hair-plate);
}

.tick {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  min-height: 40px;
  padding: var(--sp-3) 0;
  border-bottom: var(--hair-plate);
  cursor: pointer;
}

.tick input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: var(--bw-2) solid rgba(246, 244, 239, 0.55);
  border-radius: var(--r-0);
  background: none;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}

.tick input:checked {
  background: var(--link-brand);
  border-color: var(--link-brand);
}

.tick input:focus-visible {
  outline: var(--focus-w) solid var(--focus-on-plate);
  outline-offset: var(--focus-off);
}

.tick__doc {
  font-size: var(--fs-data);
  color: var(--on-plate);
}

.tick__doc b {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--on-plate-2);
  margin-left: var(--sp-2);
}

.request-band .promise {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: var(--bw-bar) solid var(--link-brand);
}

.request-band .promise .lbl {
  color: var(--on-plate);
}

.request-band .promise p {
  margin-top: var(--sp-2);
  font-family: var(--f-util);
  font-size: var(--fs-data);
  color: var(--on-plate);
}

.request-band .promise .promise__limit {
  margin-top: var(--sp-2);
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--on-plate-2);
}

.req-fields {
  border-top: var(--hair-plate);
  padding-top: var(--sp-5);
}

.field {
  margin-bottom: var(--sp-4);
}

.field label {
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--on-plate-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--plate-2);
  border: var(--hair-plate);
  border-radius: var(--r-ctl);
  color: var(--on-plate);
  font-size: var(--fs-data);
  transition: border-color var(--dur-2) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--on-plate-2);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--on-plate);
  outline: var(--focus-w) solid var(--focus-on-plate);
  outline-offset: 1px;
}

.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

/* 13px, not 11px: the hint is read, not glanced at. It carries the failure
   path, which is the one sentence on this plate a buyer may need to act on. */
.field__hint {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--f-util);
  font-size: var(--fs-cap);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--on-plate-2);
}

.field-fail {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  border-left: var(--bw-bar) solid var(--stamp-brand);
  background: rgba(168, 100, 0, 0.14);
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--on-plate);
}

/* ======================================================= 13 · PROCESS FLOW ==
   A sequence is not a table. Class-based step count, never a style
   attribute: .flow--3 / .flow--4 / .flow--5. */

.flow {
  --steps: 3;
  display: grid;
  grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
  border: var(--hair);
  background: var(--raise);
}

.flow--2 { --steps: 2; }
.flow--3 { --steps: 3; }
.flow--4 { --steps: 4; }
.flow--5 { --steps: 5; }
.flow--6 { --steps: 6; }

.flow__step {
  padding: var(--sp-4);
  border-right: var(--hair-soft);
}

.flow__step:last-child {
  border-right: 0;
}

.flow__no {
  display: block;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  color: var(--link);
}

.flow__name {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--f-display);
  font-size: var(--fs-data);
  font-weight: 600;
  color: var(--ink);
}

.flow__spec {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.flow__return {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--rule-strong);
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ==================================================== 14 · STRUCTURAL CUT ==
   Filter housing, joint or hose in true section: hairline strokes, one blue
   centre line, numbered callouts, and a parts key in the utility face.

   A drawing is not a photograph: it has a legible minimum. Drawn at
   viewBox 760x300 with 13px labels, it holds its scale down to about a
   640px box and goes illegible below roughly 500px. Place .cut in a full
   twelve-column row (it needs 760px for the drawing plus 260px for the key),
   and .matrix in at least nine columns. The min-width below is the safety
   net: in a cell narrower than that the figure scrolls inside itself rather
   than shrinking the leader lines into nothing. */

.cut {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  border: var(--hair);
  background: var(--raise);
}

.cut__figure {
  padding: var(--sp-5);
  overflow-x: auto;
}

.cut__figure svg {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

.cut__key {
  border-left: var(--hair-soft);
  padding: var(--sp-4);
  background: var(--paper-2);
}

.cut__key h3 {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-micro);
  color: var(--muted);
  padding-bottom: var(--sp-2);
  border-bottom: var(--hair-soft);
  margin-bottom: var(--sp-2);
}

.cut__key ol {
  list-style: none;
}

.cut__key li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: var(--hair-soft);
  font-size: var(--fs-cap);
  line-height: 1.45;
  color: var(--body);
}

.cut__key li:last-child {
  border-bottom: 0;
}

.callout {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--link);
}

/* SVG diagram language. A diagram is drawn inline in the page, never as an
   image, so it stays sharp and can carry a real number. Conventions:
     structural section  viewBox 760x300, hairline strokes, one blue centre
                         line dashed 9-4-2-4, numbered callouts with a key
     parameter matrix    viewBox 760x220, ruled cells on a real log axis
     process flow        viewBox 760x128, ruled boxes, dashed return path
   Strokes and text are set here, not with presentation attributes, so a page
   never carries a style attribute. */
.dia-body { fill: none; stroke: var(--ink); stroke-width: 2; }
.dia-hair { fill: none; stroke: var(--rule); stroke-width: 1; }
.dia-axis { fill: none; stroke: var(--link-brand); stroke-width: 1.4; stroke-dasharray: 9 4 2 4; }
.dia-flow { fill: none; stroke: var(--link-brand); stroke-width: 2; stroke-linecap: square; }
.dia-band { fill: var(--link-wash); stroke: none; }
.dia-select { fill: none; stroke: var(--link-brand); stroke-width: 3; }
.dia-mark { fill: var(--link-brand); stroke: none; }
.dia-tick { fill: none; stroke: var(--ink); stroke-width: 2; }
.dia-label { font-family: var(--f-util); font-size: 13px; fill: var(--body); }
.dia-num { font-family: var(--f-util); font-size: 13px; font-weight: 600; fill: var(--stamp); }
.dia-key { fill: none; stroke: var(--rule); stroke-width: 1; }
.dia-note { font-family: var(--f-util); font-size: 12px; fill: var(--muted); }
.dia-selected { font-family: var(--f-util); font-size: 12px; fill: var(--link); }

/* ====================================================== 15 · MATRIX ======
   Ruled cells on a real axis. A ladder a buyer reads, not a paragraph about
   the ladder. */

.matrix {
  border: var(--hair);
  background: var(--raise);
}

.matrix__figure {
  padding: var(--sp-5);
  overflow-x: auto;
}

.matrix__figure svg {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

.matrix__cells {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-top: var(--hair);
}

.matrix__cell {
  padding: var(--sp-3) var(--sp-2);
  border-right: var(--hair-soft);
  text-align: center;
}

.matrix__cell:last-child {
  border-right: 0;
}

.matrix__cell b {
  display: block;
  font-family: var(--f-util);
  font-size: var(--fs-data);
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.matrix__cell span {
  display: block;
  margin-top: 2px;
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  color: var(--muted);
}

.matrix__cell--on {
  background: var(--link-wash);
  box-shadow: inset 0 -3px 0 var(--link-brand);
}

/* ================================================= 16 · NETWORK BAND =====
   The supply network as a ruled band, one cell per partner discipline. */

.net-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: var(--hair);
}

.net-band > div {
  padding: var(--sp-4) var(--sp-3);
  border-right: var(--hair-soft);
}

.net-band > div:last-child {
  border-right: 0;
}

.net-band b {
  display: block;
  font-family: var(--f-util);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.net-band span {
  display: block;
  margin-top: var(--sp-1);
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
  color: var(--muted);
}

.net-band small {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-cap);
  line-height: 1.45;
  color: var(--body);
}

/* =========================================================== 17 · ICONS == */

.ic {
  flex: none;
  width: 24px;
  height: 24px;
  color: inherit;
  vertical-align: -0.26em;
}

.ic--16 { width: 16px; height: 16px; }
.ic--18 { width: 18px; height: 18px; }
.ic--20 { width: 20px; height: 20px; }
.ic--32 { width: 32px; height: 32px; }
.ic--40 { width: 40px; height: 40px; }

/* Icon over a micro label, used where a line is introduced by its subject. */
.icon-line {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.icon-line + .icon-line {
  margin-top: var(--sp-4);
}

.icon-line .ic {
  color: var(--link-brand);
  margin-top: 2px;
}

/* ===================================================== 18 · LISTS, NOTES == */

.list-spec {
  list-style: none;
  border-top: var(--hair);
}

.list-spec li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: var(--hair-soft);
  font-size: var(--fs-data);
  line-height: var(--lh-ui);
}

.list-spec li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--link-brand);
}

.note {
  padding: var(--sp-4);
  border-left: var(--bw-bar) solid var(--stamp-brand);
  background: var(--stamp-wash);
  font-size: var(--fs-cap);
  line-height: 1.55;
  color: var(--ink);
  max-width: 96ch;
}

.discussed {
  font-family: var(--f-util);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.8;
}

.discussed b {
  color: var(--ink);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
}

/* ========================================== 19 · DECORATIVE REVEAL ======
   Optional and decorative only. It is attached to [data-deco], which a page
   may put on a photograph or a texture layer and nowhere else: text, tables
   and diagrams are never inside one. Without support, or with reduced motion
   asked for, the element is simply drawn at full strength. */

@keyframes deco-in {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-deco] {
      animation: deco-in linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 34%;
    }
  }
}

/* ========================================================= 20 · RESPONSIVE */

@media (max-width: 1080px) {
  .tb-doc {
    display: none;
  }

  .tb-drop__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .hero--split {
    grid-template-columns: 1fr;
  }

  .hero--split .hero__copy {
    border-right: 0;
    border-bottom: var(--hair-soft);
    padding: var(--sp-7) var(--sp-5) var(--sp-6);
  }

  .data-row,
  .cut,
  .request-band__inner {
    grid-template-columns: 1fr;
  }

  .cut__key {
    border-left: 0;
    border-top: var(--hair-soft);
  }

  .request-band__inner {
    gap: var(--sp-6);
  }
}

@media (max-width: 900px) {
  /* ⛔ 这里原来是 `display: none` —— 它藏掉的是**整个导航**，包括 `<details class="tb-drop">`
     里那个唯一能做移动菜单的 `<summary>09 Index</summary>`。实测后果（375px 与 768px）：
     首屏只剩 3–4 个可见链接（logo + 两个询盘按钮），summary 的盒子是 **0×0**（点不到），
     **手机访客无法到达站内任何一页**。而 blocks/nav.html 的头注释自己写着
     "THE ONLY NAVIGATION ON THE SITE"。
     基准规则本来就是 `display: flex; flex-wrap: wrap`，所以这里不需要发明移动菜单 —— 让它折行。
     （不用 `overflow-x: auto` 做横滑条：`.tb` 是 sticky 且带 `backdrop-filter`，
     那会同时构成裁剪容器与 fixed 定位的包含块，会切掉 `.tb-drop__body` 的下拉。） */
  .tb-index {
    display: flex;
  }

  /* 窄屏：内联的 8 个编号区块让位给折叠菜单（8 项的宽度合计 953px，而 375px 屏每行只有
     343px，怎么压都要 3–4 行、约 180–211px；`.tb` 是 sticky，那等于永久吃掉手机四分之一视口）。
     改由 `<details>` 接管 —— 它本来就是这段标记里现成的、无需脚本的折叠控件。 */
  .tb-index > a {
    display: none;
  }

  .tb-drop {
    margin-left: 0;
    width: 100%;
  }

  .tb-drop > summary {
    width: 100%;
    min-height: 34px;
    padding: 0 7px;
    font-size: 10px;
    letter-spacing: 0.02em;
    justify-content: space-between;
  }

  .tb-drop__col--sections {
    display: block;
  }

  .tb .tb__cta-m {
    display: inline-flex;
  }

  .sp-1, .sp-2, .sp-3, .sp-4, .sp-5, .sp-6, .sp-7, .sp-8, .sp-9, .sp-10, .sp-11 {
    grid-column: span 12;
  }

  .st-1, .st-2, .st-3, .st-4, .st-5, .st-6, .st-7 {
    grid-column-start: auto;
  }

  .cols--5-7,
  .cols--7-5,
  .cols--4-8,
  .cols--8-4,
  .cols--6-6 {
    grid-template-columns: 1fr;
  }

  .sec {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .sec__meta {
    text-align: left;
  }

  .rev-block,
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rev-block > div:nth-child(2n),
  .foot-cols > div:nth-child(2n) {
    border-right: 0;
  }

  .net-band,
  .specimen-strip,
  .grid-3,
  .grid-4,
  .fig-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specimen-strip > .specimen:nth-child(4n) {
    border-right: var(--hair-soft);
  }

  .specimen-strip > .specimen:nth-child(2n) {
    border-right: 0;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow__step {
    border-right: 0;
    border-bottom: var(--hair-soft);
  }
}

@media (max-width: 720px) {
  .wrap--ruled {
    background-image: none;
  }

  .tb__cta {
    display: none;
  }

  .tb-drop__body {
    grid-template-columns: 1fr;
  }

  .plate__band {
    position: static;
    border-top: var(--hair-plate);
  }

  .hero--full .hero__band {
    position: static;
  }

  .plate--over {
    padding-bottom: 0;
  }

  .plate--over .plate__band {
    position: static;
    left: 0;
    right: 0;
    border: 0;
    border-top: var(--hair-plate);
  }

  .matrix__cells {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .matrix__cell:nth-child(4n) {
    border-right: 0;
  }

  .data-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--row {
    grid-template-columns: 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .foot-base {
    display: block;
  }

  .foot-base > * + * {
    margin-top: var(--sp-3);
  }
}

/* ============================================================= 21 · PRINT ==
   The sheet is meant to be legible as a document when someone prints it. */

@media print {
  .tb,
  .foot-cta,
  .request-band {
    display: none;
  }

  .plate__band,
  .hero--full .hero__band {
    position: static;
    background: none;
    color: var(--ink);
  }

  .plate__band h1,
  .plate__band .band__lede,
  .hero__band h1,
  .hero__band .band__lede {
    color: var(--ink);
    text-shadow: none;
  }
}

/* 索取单投递端点（build/functions/contact/submit.js）输出的回执页。
   该页复用本站样式表：CSP 是 `style-src 'self'`，内联 <style> 与 style="" 属性
   都会被浏览器拦掉（style-src-attr 回落到 style-src，且没有 'unsafe-inline'），
   所以这一页的排版只能落在类上，不能写在标签里。 */
.req-ack {
  padding-block: clamp(3rem, 8vw, 7rem);
  max-width: 62ch;
}

.req-ack ul {
  margin-block: 1.2rem;
  padding-left: 1.1em;
  line-height: 1.9;
}

.req-ack code {
  font-family: var(--f-util);
  font-size: 0.92em;
}
