/* Blueprint / Technical Drawing — antjanus.com redesign 040
   Two print processes, one token set:
   whiteprint (diazo, blue line on pale stock) = light
   blueprint  (cyanotype, white line on Prussian blue) = dark */

:root {
  --ground: #e9eff4;
  --sheet: #f6f9fb;
  --ink: #0f2f52;
  --ink-2: #33587e;
  --line: #1d5a95;
  --line-soft: rgba(29, 90, 149, 0.35);
  --grid-minor: rgba(29, 90, 149, 0.065);
  --grid-major: rgba(29, 90, 149, 0.13);
  --accent: #0a5c9e;
  --red: #b42318;
  --red-soft: rgba(180, 35, 24, 0.08);
  --hatch: rgba(29, 90, 149, 0.16);
  --print: #0b3563;
  --print-ink: #e8f3ff;
  --code-bg: #0b3563;
  --code-ink: #e6f1ff;
  --code-muted: #a9c8e8;
  --code-key: #8fdcff;
  --code-str: #ffd8a0;
  --panel: #ffffff;
  --shadow: none;

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "B612 Mono", "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 40px);
  --max: 1320px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="whiteprint"]) {
    --ground: #0a3160;
    --sheet: #0c3a6c;
    --ink: #eef6ff;
    --ink-2: #b9d5f0;
    --line: #cfe6ff;
    --line-soft: rgba(207, 230, 255, 0.4);
    --grid-minor: rgba(207, 230, 255, 0.06);
    --grid-major: rgba(207, 230, 255, 0.13);
    --accent: #8fdcff;
    --red: #ffa394;
    --red-soft: rgba(255, 163, 148, 0.1);
    --hatch: rgba(207, 230, 255, 0.16);
    --print: #072849;
    --code-bg: #072648;
    --panel: #0e4176;
    color-scheme: dark;
  }
}
:root[data-theme="blueprint"] {
  --ground: #0a3160;
  --sheet: #0c3a6c;
  --ink: #eef6ff;
  --ink-2: #b9d5f0;
  --line: #cfe6ff;
  --line-soft: rgba(207, 230, 255, 0.4);
  --grid-minor: rgba(207, 230, 255, 0.06);
  --grid-major: rgba(207, 230, 255, 0.13);
  --accent: #8fdcff;
  --red: #ffa394;
  --red-soft: rgba(255, 163, 148, 0.1);
  --hatch: rgba(207, 230, 255, 0.16);
  --print: #072849;
  --code-bg: #072648;
  --panel: #0e4176;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--sheet); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Drawing sheet frame ---------- */
.sheet {
  position: relative;
  max-width: var(--max);
  margin: clamp(10px, 2vw, 28px) auto;
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
  border: 2px solid var(--line);
  padding: 34px 34px 0;
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.zones {
  position: absolute;
  left: 34px; right: 34px; top: 8px;
  height: 26px;
  display: flex;
  justify-content: space-around;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
  pointer-events: none;
}
.zones span { display: flex; align-items: center; justify-content: center; flex: 1; border-left: 1px solid var(--line-soft); }
.zones span:first-child { border-left: 0; }
.zones-v {
  position: absolute; top: 34px; bottom: 34px; left: 8px; width: 26px;
  display: flex; flex-direction: column; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); pointer-events: none;
}
.zones-v span { flex: 1; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--line-soft); }
.zones-v span:first-child { border-top: 0; }
.zones-v.right { left: auto; right: 8px; }
.sheet-inner { position: relative; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-head {
  display: flex; align-items: center; gap: 24px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand svg { width: 48px; height: 48px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-words b { font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.04em; }
.brand-words small { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; min-height: 44px;
  font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--ink); text-decoration: none; position: relative;
}
.nav a .no { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); margin-right: 5px; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 7px;
  border-left: 1px solid currentColor; border-right: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.head-tools { display: flex; align-items: center; gap: 8px; }
.theme-btn, .menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  font-family: var(--f-mono); font-size: 0.8125rem;
}
.theme-btn:hover, .menu-btn:hover { background: var(--hatch); }
.theme-btn svg, .menu-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

/* ---------- Generic blocks ---------- */
main { display: block; }
.band { padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); position: relative; }
.band:last-child { border-bottom: 0; }
.sec-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: end; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.sec-head .more { font-family: var(--f-mono); font-size: 0.875rem; white-space: nowrap; padding: 10px 0; }
.detail-tag {
  display: grid; place-items: center; width: 64px; height: 64px; border: 1.5px solid var(--line); border-radius: 50%;
  font-family: var(--f-mono); font-size: 0.8125rem; line-height: 1; position: relative; color: var(--ink);
}
.detail-tag::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.detail-tag b { position: absolute; top: 12px; font-size: 1.1rem; font-weight: 400; }
.detail-tag i { position: absolute; bottom: 12px; font-style: normal; color: var(--ink-2); }
.lede { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--ink); max-width: 58ch; }
.muted { color: var(--ink-2); }
.label { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); letter-spacing: 0.02em; }

/* Dimension line: extension ticks, arrowheads, centered value */
.dim {
  position: relative; display: flex; justify-content: center; align-items: center;
  height: 26px; margin: 8px 0; color: var(--line);
  border-left: 1px solid currentColor; border-right: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / calc(100% - 2px) 1px no-repeat;
}
.dim::before, .dim::after {
  content: ""; position: absolute; top: 50%; width: 10px; height: 8px; margin-top: -4px; background: currentColor;
}
.dim::before { left: 0; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.dim::after { right: 0; clip-path: polygon(100% 50%, 0 0, 0 100%); }
.dim span { background: var(--sheet); padding: 0 10px; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink); white-space: nowrap; }
.dim-v { writing-mode: vertical-rl; }

/* Balloons */
.balloon {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 1.5px solid currentColor; border-radius: 50%;
  font-family: var(--f-mono); font-size: 0.875rem; line-height: 1; background: var(--sheet); color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--line); transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--sheet); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--hatch); }
.link-quiet { font-family: var(--f-mono); font-size: 0.875rem; color: var(--ink-2); }

/* Chips / tags */
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chip {
  font-family: var(--f-mono); font-size: 0.8125rem; padding: 3px 9px; border: 1px solid var(--line-soft); color: var(--ink-2);
  text-decoration: none; background: var(--sheet);
}
a.chip:hover { border-color: var(--line); color: var(--ink); }
.rev {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 0.8125rem;
  color: var(--red); border: 1.5px solid var(--red); padding: 1px 8px; background: var(--red-soft);
}
.rev::before { content: ""; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid currentColor; }

/* Cyanotype print treatment */
.cyan { position: relative; background: var(--print); overflow: hidden; border: 1px solid var(--line); }
.cyan img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(1.05);
  mix-blend-mode: screen; transition: filter .35s ease;
}
.cyan::after { /* registration corners */
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  background:
    linear-gradient(var(--print-ink), var(--print-ink)) top left / 14px 1.5px no-repeat,
    linear-gradient(var(--print-ink), var(--print-ink)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--print-ink), var(--print-ink)) top right / 14px 1.5px no-repeat,
    linear-gradient(var(--print-ink), var(--print-ink)) top right / 1.5px 14px no-repeat,
    linear-gradient(var(--print-ink), var(--print-ink)) bottom left / 14px 1.5px no-repeat,
    linear-gradient(var(--print-ink), var(--print-ink)) bottom left / 1.5px 14px no-repeat,
    linear-gradient(var(--print-ink), var(--print-ink)) bottom right / 14px 1.5px no-repeat,
    linear-gradient(var(--print-ink), var(--print-ink)) bottom right / 1.5px 14px no-repeat;
  opacity: .85;
}
.develop:hover .cyan img, .develop:focus-visible .cyan img, .cyan.developable:hover img { filter: none; mix-blend-mode: normal; }
.cyan-empty {
  background:
    repeating-linear-gradient(45deg, transparent 0 9px, rgba(232, 243, 255, 0.18) 9px 10px), var(--print);
  display: grid; place-items: center; color: var(--print-ink); font-family: var(--f-mono); font-size: 0.875rem;
}
figcaption { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); margin-top: 8px; }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.portrait { margin: 0; }
.pframe { position: relative; }
.portrait .cyan { aspect-ratio: 4 / 3.4; }
.portrait .cyan img { object-position: 30% 30%; }
.portrait svg.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.portrait svg.leaders line, .portrait svg.leaders polyline { stroke: var(--print-ink); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; }
.portrait svg.leaders circle { fill: var(--print-ink); }
.callout {
  position: absolute; display: flex; align-items: center; gap: 10px; max-width: 46%;
  background: var(--print); color: var(--print-ink); border: 1px solid var(--print-ink); padding: 6px 12px 6px 6px;
  font-family: var(--f-mono); font-size: 0.8125rem; line-height: 1.35;
}
.callout .balloon { background: var(--print); color: var(--print-ink); width: 30px; height: 30px; }
.callout.c1 { right: 4%; top: 9%; }
.callout.c2 { right: 4%; top: 42%; }
.callout.c3 { right: 4%; bottom: 10%; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-copy .label { margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 5rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.005em; }
.hero .lede { margin: 24px 0 26px; }
.spec { border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 28px; background: var(--sheet); }
.spec div { padding: 12px 14px; border-left: 1px solid var(--line); }
.spec div:first-child { border-left: 0; }
.spec dt { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); }
.spec dd { margin: 0; font-family: var(--f-display); font-size: 2.1rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.cta-row .underline { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); padding: 10px 0; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line); }
.card .cyan { aspect-ratio: 16 / 9; border: 0; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.55rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--ink-2); }
.card .meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); }
.card:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.card:focus-within a:focus-visible { outline: none; }
.card .dwg { position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--f-mono); font-size: 0.8125rem; background: var(--print); color: var(--print-ink); padding: 2px 8px; border: 1px solid var(--print-ink); }
.card.feature .cyan { aspect-ratio: 16 / 10; }

/* Register (list of drawings) */
.register { width: 100%; border-collapse: collapse; border: 1.5px solid var(--line); background: var(--sheet); }
.register th, .register td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.register thead th { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); border-bottom: 1.5px solid var(--line); background: var(--hatch); }
.register td.no, .register td.date { font-family: var(--f-mono); font-size: 0.875rem; white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.register td.title a { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.2; }
.register td.title a:hover { text-decoration: underline; color: var(--accent); }
.register td.title p { margin: 4px 0 0; color: var(--ink-2); font-size: 1rem; }
.register tr:hover td { background: var(--hatch); }
.register .coll { font-family: var(--f-mono); font-size: 0.8125rem; white-space: nowrap; }

/* Parts list / BOM */
.bom { width: 100%; border-collapse: collapse; border: 1.5px solid var(--line); background: var(--sheet); }
.bom th, .bom td { padding: 14px 16px; border: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.bom thead th { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); background: var(--hatch); border-bottom: 1.5px solid var(--line); }
.bom td.qty { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bom td.item { width: 64px; }
.bom td.part a { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.bom td.part a:hover { text-decoration: underline; color: var(--accent); }
.bom td.mat { font-family: var(--f-mono); font-size: 0.875rem; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }

/* Notes list (drawing "GENERAL NOTES") */
.notes { counter-reset: note; list-style: none; padding: 0; margin: 0; }
.notes li { counter-increment: note; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line-soft); }
.notes li::before { content: counter(note) "."; font-family: var(--f-mono); color: var(--ink-2); padding-top: 4px; }

/* Title-block footer */
.site-foot { border-top: 2px solid var(--line); margin: 0 calc(-1 * var(--gutter)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.foot-main { padding: 32px var(--gutter) 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; border-right: 2px solid var(--line); }
.foot-main h2 { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); margin-bottom: 10px; }
.foot-main ul { list-style: none; margin: 0; padding: 0; }
.foot-main li a { display: inline-block; padding: 5px 0; color: var(--ink); text-decoration: none; }
.foot-main li a:hover { color: var(--accent); text-decoration: underline; }
.foot-main .blurb { color: var(--ink-2); margin-top: 10px; }
.nl { display: flex; gap: 0; margin-top: 12px; }
.nl input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; background: var(--sheet); }
.nl input::placeholder { color: var(--ink-2); opacity: 1; }
.nl button { min-height: 46px; padding: 0 16px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--sheet); cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.04em; }
.nl button:hover { background: var(--accent); border-color: var(--accent); }
.nl-done { display: none; margin-top: 10px; border: 1px solid var(--line); padding: 10px 12px; }
.nl-done strong { font-family: var(--f-display); font-size: 1.2rem; }
form.is-done .nl, form.is-done .nl-note { display: none; }
form.is-done .nl-done { display: block; }
.tblock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tblock > div { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 12px 10px; min-width: 0; }
.tblock > div:nth-child(4n+1) { border-left: 0; }
.tblock dt { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); }
.tblock dd { margin: 2px 0 0; font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.tblock .wide2 { grid-column: span 2; }
.tblock .wide4 { grid-column: span 4; border-left: 0; }
.tblock .title dd { font-size: 1.6rem; line-height: 1.1; }
.tblock .copy { border-bottom: 0; }
.tblock .copy dd { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }

/* ---------- Page headers (non-home) ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.page-head h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: 0.95; }
.page-head .lede { margin-top: 20px; }
.page-head .cyan { aspect-ratio: 16 / 10; }

/* Filter bar */
.filterbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 24px; }
.seg { display: flex; flex-wrap: wrap; border: 1.5px solid var(--line); }
.seg button {
  min-height: 44px; padding: 0 14px; background: transparent; border: 0; border-left: 1px solid var(--line-soft); cursor: pointer;
  font-family: var(--f-display); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.03em; color: var(--ink);
}
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.seg button:hover:not([aria-pressed="true"]) { background: var(--hatch); }
.count { font-family: var(--f-mono); font-size: 0.875rem; color: var(--ink-2); }
.search { display: flex; flex: 1 1 360px; }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); background: var(--sheet); }
.search input::placeholder { color: var(--ink-2); opacity: 1; }
select { min-height: 44px; border: 1.5px solid var(--line); background: var(--sheet); padding: 0 10px; }
.empty-state { display: none; border: 1.5px dashed var(--line); padding: 36px; text-align: center; background: repeating-linear-gradient(45deg, transparent 0 10px, var(--hatch) 10px 11px), var(--sheet); }
.empty-state.show { display: block; }
.empty-state h3 { font-size: 1.8rem; margin-bottom: 6px; }

/* ---------- Writing ---------- */
.pickgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pickbox { border: 1.5px solid var(--line); background: var(--sheet); }
.pickbox > header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pickbox h2 { font-size: 1.8rem; }
.pickbox ol { list-style: none; margin: 0; padding: 0; }
.pickbox li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); align-items: center; position: relative; }
.pickbox li:last-child { border-bottom: 0; }
.pickbox li .cyan { aspect-ratio: 4/3; }
.pickbox li a { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.2; }
.pickbox li a::after { content: ""; position: absolute; inset: 0; }
.pickbox li a:hover { color: var(--accent); text-decoration: underline; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist a { font-family: var(--f-mono); font-size: 0.875rem; border: 1px solid var(--line-soft); padding: 6px 10px; color: var(--ink); text-decoration: none; background: var(--sheet); }
.taglist a:hover { border-color: var(--line); background: var(--hatch); }
.taglist a sup { color: var(--ink-2); margin-left: 4px; }

/* ---------- AI stories ---------- */
.sheetset { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1.5px solid var(--line); background: var(--sheet); }
.story { position: relative; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.story:first-child { border-left: 0; }
.story .cyan { aspect-ratio: 3 / 4; border: 0; border-bottom: 1px solid var(--line); }
.story .sb { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.story h3 { font-size: 1.4rem; }
.story h3 a { color: var(--ink); text-decoration: none; }
.story h3 a::after { content: ""; position: absolute; inset: 0; }
.story h3 a:hover { text-decoration: underline; }
.story p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.story.draft .cyan-empty { aspect-ratio: 3 / 4; border-bottom: 1px solid var(--line); }
.story.draft h3 { color: var(--ink-2); }
.notice { border: 1.5px solid var(--line); padding: 16px 20px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--sheet); }
.consult { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; border: 1.5px solid var(--line); padding: 22px 24px; background: repeating-linear-gradient(-45deg, transparent 0 12px, var(--hatch) 12px 13px), var(--sheet); }
.consult p { margin: 0; font-size: 1.2rem; font-family: var(--f-display); font-weight: 500; }

/* ---------- About ---------- */
.chain { position: relative; margin: 14px 0 8px; }
.chain-bar { display: grid; border: 1.5px solid var(--line); background: var(--sheet); }
.chain-bar > div { border-left: 1px solid var(--line); padding: 10px 8px; min-width: 0; }
.chain-bar > div:first-child { border-left: 0; }
.chain-bar b { display: block; font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.chain-bar span { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); }
.chain-bar > div.now { background: var(--hatch); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1.5px solid var(--line); background: var(--sheet); }
.phases > li { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.phases > li:last-child { border-bottom: 0; }
.phases .when { padding: 20px; border-right: 1px solid var(--line); }
.phases .when b { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.phases .what { padding: 20px 24px; }
.phases .what p { color: var(--ink-2); }
.roles { list-style: none; padding: 0; margin: 0; }
.roles li { padding: 6px 0; border-top: 1px dashed var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.roles li span { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); }
.bullets { margin: 10px 0 0; padding-left: 20px; }
.bullets li { margin-bottom: 6px; }
.spectable { width: 100%; border-collapse: collapse; border: 1.5px solid var(--line); background: var(--sheet); }
.spectable th, .spectable td { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
.spectable th { width: 26%; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; border-right: 1px solid var(--line); }
.spectable th p { font-family: var(--f-body); font-size: 1rem; font-weight: 400; color: var(--ink-2); margin: 6px 0 0; }

/* ---------- Article ---------- */
.progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--red); z-index: 60; }
.art-head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; border: 1.5px solid var(--line); margin-top: clamp(28px, 4vw, 48px); background: var(--sheet); }
.art-head .ah-main { padding: clamp(22px, 3vw, 36px); border-right: 1.5px solid var(--line); }
.art-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 0.98; margin: 12px 0 18px; }
.art-head .lede { margin: 0; }
.art-head .tblock { grid-template-columns: 1fr 1fr; align-content: start; }
.art-head .tblock > div:last-child { border-bottom: 0; }
.art-head .tblock > div:nth-child(4n+1) { border-left: 1px solid var(--line); }
.art-head .tblock > div:nth-child(2n+1) { border-left: 0; }
.crumb { font-family: var(--f-mono); font-size: 0.875rem; }
.art-fig { margin: 28px 0 0; }
.art-fig .cyan { aspect-ratio: 21 / 8; }
.art-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: clamp(24px, 3.5vw, 56px); padding: 40px 0 64px; }
.toc { position: sticky; top: 24px; align-self: start; border: 1.5px solid var(--line); background: var(--sheet); }
.toc h2 { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.toc ol { list-style: none; margin: 0; padding: 6px 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 30px 1fr; padding: 8px 14px; color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.3; border-left: 3px solid transparent; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); padding-top: 2px; }
.toc a:hover { background: var(--hatch); }
.toc a[aria-current="true"] { border-left-color: var(--red); background: var(--hatch); font-weight: 600; }
.toc details summary { display: none; }
.prose { font-size: 1.125rem; line-height: 1.7; max-width: 68ch; min-width: 0; }
.prose h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin: 2.2em 0 0.6em; display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 24px; }
.prose h2 .sec-no { font-family: var(--f-mono); font-size: 0.875rem; font-weight: 400; color: var(--ink-2); border: 1px solid var(--line-soft); padding: 2px 8px; flex: none; transform: translateY(-4px); }
.prose p, .prose li { color: var(--ink); }
.prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose code:not(pre code) { font-family: var(--f-mono); font-size: 0.88em; background: var(--hatch); padding: 1px 5px; border: 1px solid var(--line-soft); }
.prose em { font-style: italic; }
.codeblock { margin: 1.6em 0; border: 1.5px solid var(--line); background: var(--code-bg); color: var(--code-ink); }
.codeblock header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 0 0 14px; border-bottom: 1px solid rgba(207, 230, 255, 0.3); font-family: var(--f-mono); font-size: 0.8125rem; color: var(--code-muted); }
.codeblock header button { min-height: 40px; padding: 0 14px; background: transparent; border: 0; border-left: 1px solid rgba(207, 230, 255, 0.3); color: var(--code-ink); font-family: var(--f-mono); font-size: 0.8125rem; cursor: pointer; }
.codeblock header button:hover { background: rgba(207, 230, 255, 0.12); }
.codeblock pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--f-mono); font-size: 0.875rem; line-height: 1.65;
  background-image: linear-gradient(rgba(207, 230, 255, 0.05) 1px, transparent 1px); background-size: 100% 1.65em; background-position: 0 16px; tab-size: 2; }
.codeblock .k { color: var(--code-key); }
.codeblock .s { color: var(--code-str); }
.codeblock .c { color: var(--code-muted); font-style: italic; }
.codeblock :focus-visible { outline-color: #ffa394; }
.note, .rfi, .skillnote { margin: 1.6em 0; padding: 16px 20px 16px 20px; position: relative; }
.note { border: 1.5px solid var(--line); border-left-width: 6px; background: var(--sheet); }
.note .tag, .rfi .tag, .skillnote .tag { display: inline-block; font-family: var(--f-mono); font-size: 0.8125rem; margin-bottom: 6px; color: var(--ink-2); }
.note p:last-child, .rfi p:last-child, .skillnote p:last-child { margin-bottom: 0; }
.rfi { border: 1.5px dashed var(--red); background: var(--red-soft); }
.rfi .tag { color: var(--red); }
.skillnote { border: 1.5px solid var(--line); background: repeating-linear-gradient(45deg, transparent 0 10px, var(--hatch) 10px 11px), var(--sheet); }
.margin-notes { align-self: start; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.margin-notes .box { border: 1.5px solid var(--line); padding: 12px 14px; background: var(--sheet); }
.margin-notes .box h2 { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); margin-bottom: 8px; }
.sharebtns { display: flex; flex-direction: column; gap: 6px; }
.sharebtns a, .sharebtns button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-soft); background: transparent; color: var(--ink); text-decoration: none; font-size: 1rem; cursor: pointer; text-align: left; }
.sharebtns a:hover, .sharebtns button:hover { background: var(--hatch); border-color: var(--line); }
.after-art { border-top: 1px solid var(--line); padding: 48px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.nlcard { border: 1.5px solid var(--line); padding: 24px; background: var(--sheet); }
.nlcard h2 { font-size: 2rem; margin-bottom: 8px; }
.series-card { border: 1.5px solid var(--line); padding: 24px; background: var(--sheet); }

/* ---------- Patterns ---------- */
.threeways { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--line); background: var(--sheet); }
.threeways > div { padding: 22px; border-left: 1px solid var(--line); }
.threeways > div:first-child { border-left: 0; }
.threeways h3 { font-size: 1.6rem; margin: 10px 0 6px; }
.threeways p { margin: 0; color: var(--ink-2); }
.threeways svg { width: 100%; height: 70px; color: var(--line); }
.threeways-foot { border: 1.5px solid var(--line); border-top: 0; padding: 16px 22px; background: var(--sheet); font-size: 1.05rem; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--line); border-left: 1.5px solid var(--line); }
.pcard { position: relative; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); padding: 20px; display: grid; grid-template-columns: 64px 1fr; gap: 16px; background: var(--sheet); }
.pcard[hidden] { display: none; }
.pcard:hover { background: var(--hatch); }
.pcard:focus-within { outline: 3px solid var(--red); outline-offset: -3px; }
.pcard:focus-within a:focus-visible { outline: none; }
.pcard .top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); margin-bottom: 4px; }
.pcard h2 { font-size: 1.5rem; margin-bottom: 6px; }
.pcard h2 a { color: var(--ink); text-decoration: none; }
.pcard h2 a::after { content: ""; position: absolute; inset: 0; }
.pcard p { margin: 0 0 10px; color: var(--ink-2); font-size: 1rem; }
.pcard .chips { position: relative; }

.p-head { padding: clamp(28px, 4vw, 48px) 0 28px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 28px; }
.p-head .detail-tag { width: 110px; height: 110px; }
.p-head .detail-tag b { top: 20px; font-size: 1.7rem; }
.p-head .detail-tag i { bottom: 22px; }
.p-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 6px 0 14px; }
.usecases { columns: 2; column-gap: 32px; padding-left: 20px; margin: 8px 0 18px; }
.panes { border: 1.5px solid var(--line); margin: 32px 0; background: var(--sheet); }
.panes-bar { display: flex; flex-wrap: wrap; justify-content: space-between; border-bottom: 1.5px solid var(--line); }
.panes-bar [role="tablist"] { display: flex; flex-wrap: wrap; }
.panes-bar [role="tab"] { min-height: 48px; padding: 0 18px; border: 0; border-right: 1px solid var(--line-soft); background: transparent; cursor: pointer; font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; letter-spacing: 0.03em; color: var(--ink); }
.panes-bar [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--sheet); }
.panes-bar [role="tab"]:hover:not([aria-selected="true"]) { background: var(--hatch); }
.pane-actions { display: flex; }
.pane-actions button { min-height: 48px; padding: 0 16px; border: 0; border-left: 1px solid var(--line-soft); background: transparent; cursor: pointer; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink); }
.pane-actions button:hover { background: var(--hatch); }
.pane { padding: 24px; }
.pane[hidden] { display: none; }
.pane pre { margin: 0; font-family: var(--f-mono); font-size: 0.875rem; line-height: 1.6; overflow-x: auto; white-space: pre; background: var(--code-bg); color: var(--code-ink); padding: 18px; border: 1px solid var(--line); }
.pane .prompt { max-width: 70ch; font-size: 1.0625rem; }
.pane .note { margin-top: 0; }
.stage { border: 1px dashed var(--line); padding: clamp(14px, 3vw, 32px); background: var(--ground); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--line); margin-bottom: 48px; background: var(--sheet); }
.prevnext a { padding: 18px 20px; text-decoration: none; color: var(--ink); display: block; }
.prevnext a + a { border-left: 1px solid var(--line); text-align: right; }
.prevnext a:hover { background: var(--hatch); }
.prevnext b { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; }

/* Hairline stat strip demo — tokens local to the stage */
.hss-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 42rem) { .hss-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hss-strip.five { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.hss-tile { background: var(--sheet); padding: 14px 16px; min-width: 0; text-align: left; border: 0; color: var(--ink); }
.hss-tile .l { display: block; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); }
.hss-tile .v { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hss-tile .u { display: block; font-size: 0.9375rem; color: var(--ink-2); }
.hss-tile .v.none { color: var(--ink-2); }
button.hss-tile { cursor: pointer; font: inherit; }
button.hss-tile:hover { background: var(--hatch); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, var(--sheet)); box-shadow: inset 0 -3px 0 var(--accent); }
.hss-cap { font-size: 1rem; color: var(--ink-2); margin: 0 0 10px; }
.hss-list { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--line); background: var(--sheet); }
.hss-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.hss-list li:last-child { border-bottom: 0; }
.hss-list li[hidden] { display: none; }
.hss-list li span { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--ink-2); }
.hss-status { margin: 10px 0 0; font-family: var(--f-mono); font-size: 0.875rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .art-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .margin-notes { grid-column: 2; position: static; flex-direction: row; flex-wrap: wrap; }
  .margin-notes .box { flex: 1 1 240px; }
  .sheetset { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheetset .story:nth-child(4) { border-left: 0; }
  .sheetset .story:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 1024px) {
  .hero, .page-head { grid-template-columns: 1fr; }
  .grid-3, .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot { grid-template-columns: 1fr; }
  .foot-main { border-right: 0; border-bottom: 2px solid var(--line); }
  .art-head { grid-template-columns: 1fr; }
  .art-head .ah-main { border-right: 0; border-bottom: 1.5px solid var(--line); }
  .art-head .tblock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .art-head .tblock > div:nth-child(2n+1) { border-left: 1px solid var(--line); }
  .art-head .tblock > div:nth-child(4n+1) { border-left: 0; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 40; background: var(--sheet); border: 1.5px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li + li { border-top: 1px solid var(--line-soft); }
  .nav a { padding: 12px 16px; }
  .nav a[aria-current="page"] { background: var(--hatch); }
  .nav a[aria-current="page"]::after { display: none; }
  .head-tools { margin-left: auto; }
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc details summary { display: flex; justify-content: space-between; min-height: 44px; align-items: center; padding: 0 14px; cursor: pointer; font-family: var(--f-mono); font-size: 0.875rem; }
  .toc > h2 { display: none; }
  .margin-notes { grid-column: 1; }
  .after-art, .pickgrid, .grid-2 { grid-template-columns: 1fr; }
  .phases > li { grid-template-columns: 1fr; }
  .phases .when { border-right: 0; border-bottom: 1px dashed var(--line-soft); padding-bottom: 12px; }
  .threeways { grid-template-columns: 1fr; }
  .threeways > div { border-left: 0; border-top: 1px solid var(--line); }
  .threeways > div:first-child { border-top: 0; }
  .consult { grid-template-columns: 1fr; }
  .chain-bar { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .chain-bar > div { border-top: 1px solid var(--line); }
  .chain-bar > div:nth-child(4n+1) { border-left: 0; }
  .chain .dim { display: none; }
}
@media (max-width: 640px) {
  .sheet { padding: 12px 10px 0; margin: 8px; border-width: 1.5px; }
  .sheet::before { inset: 4px; }
  .zones, .zones-v { display: none; }
  .sheet-inner { padding: 0 8px; }
  .brand-words small { display: none; }
  .brand svg { width: 40px; height: 40px; }
  .theme-btn .tlabel { display: none; }
  .grid-3, .grid-4, .pgrid { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  .sec-head .detail-tag { display: none; }
  .spec dd { font-size: 1.6rem; }
  .spec div { padding: 10px; }
  .callout { position: static; max-width: none; border: 0; border-top: 1px solid var(--line-soft); background: transparent; color: var(--ink); padding: 8px 0; }
  .callout .balloon { background: var(--sheet); color: var(--ink); }
  .portrait svg.leaders { display: none; }
  .foot-main { grid-template-columns: 1fr; }
  .site-foot { margin: 0 -8px; }
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock > div:nth-child(4n+1) { border-left: 1px solid var(--line); }
  .tblock > div:nth-child(2n+1) { border-left: 0; }
  .tblock .wide2, .tblock .wide4 { grid-column: span 2; border-left: 0; }
  .art-head .tblock { grid-template-columns: 1fr 1fr; }
  .art-head .tblock > div:nth-child(4n+1) { border-left: 1px solid var(--line); }
  .art-head .tblock > div:nth-child(2n+1) { border-left: 0; }
  .art-fig .cyan { aspect-ratio: 16 / 9; }
  .register thead { display: none; }
  .register, .register tbody, .register tr, .register td { display: block; }
  .register tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .register td { border: 0; padding: 2px 14px; }
  .register td.no { display: inline-block; }
  .register td.date { display: inline-block; float: right; }
  .register td.coll { display: none; }
  .bom thead { display: none; }
  .bom, .bom tbody, .bom tr, .bom td { display: block; }
  .bom tr { border-bottom: 1.5px solid var(--line); position: relative; padding: 12px 0; }
  .bom td { border: 0; padding: 3px 14px; }
  .bom td.item { position: absolute; right: 0; top: 10px; width: auto; }
  .bom td.qty { text-align: left; font-size: 1.2rem; }
  .bom td.qty::before { content: "Stars "; font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }
  .spectable th, .spectable td { display: block; width: auto; border-right: 0; }
  .spectable th { border-bottom: 0; padding-bottom: 4px; }
  .pickbox li { grid-template-columns: 88px 1fr; }
  .sheetset { grid-template-columns: 1fr 1fr; }
  .sheetset .story { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .sheetset .story:nth-child(odd) { border-left: 0; }
  .sheetset .story:nth-child(-n+2) { border-top: 0; }
  .p-head { grid-template-columns: 1fr; }
  .p-head .detail-tag { width: 84px; height: 84px; }
  .p-head .detail-tag b { top: 14px; font-size: 1.3rem; }
  .p-head .detail-tag i { bottom: 16px; }
  .usecases { columns: 1; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .pane { padding: 14px; }
  .chain-bar { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .chain-bar > div:nth-child(odd) { border-left: 0; }
  .chain-bar > div:nth-child(even) { border-left: 1px solid var(--line); }
  .pcard { grid-template-columns: 1fr; }
  .pcard .detail-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Article illustrations are mostly dark; over-expose them so the print keeps its detail. */
.card .cyan img, .story .cyan img, .pickbox .cyan img, .art-fig .cyan img, .page-head .cyan img {
  filter: grayscale(1) brightness(1.75) contrast(1.2);
}

[hidden] { display: none !important; }
