/* Hallmark · shape: Workbench (draw d98de9; each automation is a run of figures: its flow chart, then the screens it produces, captioned like a paper's pictures) · genre: editorial · theme: Newsprint (deal 5/5 shown, chosen by the user from The Lantern picture) · job: hire (talk to us) · draw: d98de9
 * hero: Index (one order's life as a printed listing, the head small above it) · nav: masthead (swapped from search-led bar: a brochure has nothing to search) · footer: mast (swapped from index columns: there is no sitemap) · imagery: the product built in 9 slots, one library photograph as a stand-in for the brand's own · signature: one bottle of shampoo, as the customer hears it, listed message by message with the automation that sent each
 * axes: light/slab-serif/warm · posture: restrained · contrast: pass · fold: pass · data: sample · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: H, five automation sections risk one skeleton; each pairs a different flow (a chain with a delay lane, a vertical chain with a two-way fork, a chain ending in a fork, a plain chain, a fan-in and fan-out) with different screens, and the paper alternates between plain, band and double rule */
/* Hallmark · waive 44c · Index hero: the order listing sits under the head and is painted to y 770 at 1440 x 900 · the listing of one shampoo order is the hero's visual, set below the head as the Index posture asks, so nothing stands beside the text */
/* Hallmark · waive 79 · the listing runs from y 365 to y 770 under the head · the check reads only the head block; the order listing below it is the hero's content and reaches the fold */
/* Hallmark · dismissed 58 · the page count includes the built chat, table and flow-chart labels; prose outside the product screens stays near the budget and the densest 900px window holds 91 words, mostly chart labels */
/* Hallmark · dismissed 41 · --on-ink is paper-coloured text on the ink chat head and ink bubbles; nothing on the page sets it over --node-bg */
/* Hallmark · dismissed F18 · the hallmarkSlots script lives in app.js because the CSP forbids inline scripts */
/* Hallmark · dismissed render · fonts are self-hosted and the shots show Zilla Slab, Spectral and Libre Franklin; the warning comes from preload timing on the local server */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- Fonts (self-hosted; the CSP allows nothing else) ---------- */
@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-400i-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-400i-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Zilla Slab"; src: url("fonts/zilla-slab-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Zilla Slab"; src: url("fonts/zilla-slab-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Page tokens ---------- */
:root {
  --logo-tile: var(--color-ink);
  --logo-edge: transparent;
  --logo-word: var(--color-ink);
  --rule-bar: 2px;
  --node-bg: var(--color-paper-2);
  --chat-bg: var(--color-paper-3);
  --on-ink: var(--color-paper);
  --on-ink-2: var(--color-paper-3);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M0 4.25h31v1.5H0z'/%3E%3Cpath d='M30 0l10 5-10 5z'/%3E%3C/svg%3E");
  --arrow-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 40' preserveAspectRatio='none'%3E%3Cpath d='M4.25 0h1.5v31h-1.5z'/%3E%3Cpath d='M0 30l5 10 5-10z'/%3E%3C/svg%3E");
  --arrow-u: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 40' preserveAspectRatio='none'%3E%3Cpath d='M4.25 9h1.5v31h-1.5z'/%3E%3Cpath d='M0 10L5 0l5 10z'/%3E%3C/svg%3E");
}

body { font-size: 1.0625rem; color: var(--color-ink-2); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
.agate { font-family: var(--font-outlier); font-weight: 500; font-variant-numeric: tabular-nums; }
b, strong { font-weight: 500; color: var(--color-ink); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--on-ink); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Type ---------- */
h1, h2, h3 { color: var(--color-ink); }
h1 { max-width: 18ch; }
.lead { color: var(--color-ink-2); }
a { color: var(--color-accent); text-decoration-color: var(--color-accent); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
.rule--double { box-sizing: content-box; height: 2px; margin: 0; border: 0; border-block: var(--rule-hair) solid var(--color-rule-2); }

/* ---------- Controls ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: 0; background: none; color: var(--color-ink); font: 700 0.9375rem/1 var(--font-display); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn--primary { background: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-ink-2); }
.btn--secondary { border-block: var(--rule-hair) solid var(--color-ink); }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn--light { border-block: var(--rule-hair) solid var(--on-ink); color: var(--on-ink); }
.btn--light:hover { background: var(--color-ink-2); }
.btn--light:focus-visible { outline-color: var(--on-ink); }

/* ---------- Masthead ---------- */
.mast { padding-top: var(--space-xs); }
.mast-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 44px; }
.mast-for { font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); }
.mast-links { display: flex; align-items: center; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font: 500 var(--text-sm)/1 var(--font-body); }
.mast-links a { color: var(--color-ink); text-decoration-color: transparent; white-space: nowrap; }
.mast-links a:hover { text-decoration-color: var(--color-accent); }
.mast-links .mast-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border-block: var(--rule-hair) solid var(--color-ink); font: 700 var(--text-sm)/1 var(--font-display); transition: background-color var(--dur-short) var(--ease-out); }
.mast-links .mast-cta:hover { background: var(--color-paper-2); text-decoration-color: transparent; }
.mast-brand { display: flex; justify-content: center; width: max-content; margin: var(--space-2xs) auto var(--space-sm); }
.logo { height: 40px; width: auto; }

/* ---------- Hero: the listing ---------- */
.hero { padding-block: var(--space-xl) var(--space-2xl); }
.hero-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.hero-top h1 { grid-column: 1 / 9; line-height: 1.02; }
.hero-side { grid-column: 9 / 13; display: grid; gap: var(--space-lg); padding-bottom: var(--space-2xs); }
.listing { margin: var(--space-xl) 0 0; }
[data-slot].listing { background: none; overflow: visible; }
.listing-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-lg); padding: var(--space-sm) 0; border-top: var(--rule-bar) solid var(--color-ink); }
.listing-title { font: 700 var(--text-title)/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); }
.listing-sub { font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); }
.listing-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-lg); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); font: 500 var(--text-sm)/1.45 var(--font-body); color: var(--color-muted); }
.listing-foot span:first-child { max-width: 72ch; }

/* tables: rules, never boxes */
table { width: 100%; border-collapse: collapse; }
thead th { padding: var(--space-xs) var(--space-md) var(--space-xs) 0; border-block: var(--rule-hair) solid var(--color-rule-2); font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); text-align: left; white-space: nowrap; }
tbody th, tbody td { padding: var(--space-xs) var(--space-md) var(--space-xs) 0; border-top: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
tbody tr:first-child > * { border-top: 0; }
tbody th { font-weight: 500; color: var(--color-ink); }
th:last-child, td:last-child { padding-right: 0; }
.r, td.num { text-align: right; }
tr.is-pointed > * { background: var(--color-paper-2); }
tr.is-pointed > :first-child { box-shadow: inset 3px 0 0 var(--color-accent); padding-left: var(--space-sm); }
.life tbody th { font-size: 1.0625rem; font-weight: 400; }
.life td.when { width: 9.5rem; white-space: nowrap; color: var(--color-ink); }
.life .t { margin-left: var(--space-xs); color: var(--color-muted); }
.life td.opt { width: 13rem; text-align: right; white-space: nowrap; }
.life thead th:last-child { text-align: right; }
.scroll { overflow-x: auto; }
.scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- The five at a glance ---------- */
.glance { padding-block: var(--section-gap-s) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.glance-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.glance-text { grid-column: 1 / 8; display: grid; gap: var(--space-2xl); }
.glance-photo { grid-column: 8 / 13; margin: 0; }
.five { margin: 0; padding: 0; list-style: none; counter-reset: five; border-top: var(--rule-bar) solid var(--color-ink); }
.five li { counter-increment: five; display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.15fr); align-items: baseline; gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.five li::before { content: counter(five); font: 700 var(--text-title)/1 var(--font-display); color: var(--color-muted); }
.five a { font: 700 var(--text-title)/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); text-decoration-color: var(--color-rule); }
.five a:hover { text-decoration-color: var(--color-accent); }
.five span { color: var(--color-ink-2); }
.photo { aspect-ratio: 4 / 5; min-height: 440px; border: var(--rule-hair) solid var(--color-rule); }
.photo > img { object-position: 46% 50%; }
figcaption { font: 500 var(--text-sm)/1.4 var(--font-body); color: var(--color-muted); padding-top: var(--space-xs); }

/* ---------- Automation sections ---------- */
.feat { padding-block: var(--section-gap-s) var(--section-gap); }
.feat--band { --node-bg: var(--color-paper); --chat-bg: var(--color-paper-3); background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); padding-block: var(--section-gap-s); }
.feat--rule > .container { padding-top: var(--space-xl); }
.feat--rule > .container::before { content: ""; display: block; height: 2px; margin-top: calc(-1 * var(--space-xl)); margin-bottom: var(--space-xl); border-block: var(--rule-hair) solid var(--color-rule-2); }
.feat > .container { display: grid; gap: var(--space-2xl); }
.feat > .container.split { gap: var(--gap-columns); }
.head-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.head-split h2 { grid-column: 1 / 8; }
.head-split .lead { grid-column: 8 / 13; }
.cap { margin: 0; min-width: 0; }
.cap > figcaption { margin-top: var(--space-xs); max-width: 72ch; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: start; }
.pair--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.split-text { grid-column: 1 / 7; display: grid; gap: var(--space-lg); }
.split-text .cap { margin-top: var(--space-lg); }
.split-vis { grid-column: 8 / 13; display: grid; gap: var(--space-xl); }

/* ---------- Flow charts ---------- */
.flow-wrap { container-type: inline-size; padding-block: var(--space-xs); }
.flow { --fg: var(--space-lg); display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--fg); margin: 0; padding: 0; list-style: none; }
.n4 { --n: 4; } .n5 { --n: 5; }
.node { position: relative; display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-sm) var(--space-xs) var(--space-md) var(--space-sm); background: var(--node-bg); border-top: var(--rule-bar) solid var(--color-ink); }
.node .ico { color: var(--color-muted); margin-bottom: var(--space-2xs); }
.node b { font: 700 1.0625rem/1.2 var(--font-display); color: var(--color-ink); }
.node span { font-size: var(--text-sm); line-height: 1.35; color: var(--color-muted); }
.node.is-out { border-top-color: var(--color-accent); }
.node.is-out .ico { color: var(--color-accent); }
.node.is-hand { border-top-style: dashed; }
.fork { position: relative; display: grid; gap: var(--space-sm); align-content: start; padding-left: var(--space-sm); border-left: var(--rule-bar) solid var(--color-ink); }
.flow > :not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 100%; width: var(--fg); height: 10px; background: var(--color-ink); -webkit-mask: var(--arrow) center / 100% 100% no-repeat; mask: var(--arrow) center / 100% 100% no-repeat; }
.flow > .fork:not(:last-child)::after { left: calc(100% + var(--rule-bar)); }

/* delay lane under the order chain */
.lane { margin-top: var(--space-xl); }
.lane .node { background: transparent; border: var(--rule-hair) dashed var(--color-rule-2); }
.lane .lane-skip { visibility: hidden; }
.flow.lane > .lane-skip::after, .flow.lane > .node:has(+ .lane-skip)::after { display: none; }
.lane .is-up::before { content: ""; position: absolute; bottom: 100%; left: calc(50% - 5px); width: 10px; height: calc(var(--space-xl) - 2px); background: var(--color-ink); -webkit-mask: var(--arrow-u) center / 100% 100% no-repeat; mask: var(--arrow-u) center / 100% 100% no-repeat; }

/* the route: four in, one hub, three out */
.flow--route { --fg: var(--space-2xl); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.flow--route > .node--hub::after, .flow--route > .fork--in::after { top: calc(50% - 5px); }
.fork--in { grid-template-columns: minmax(0, 1fr); padding: 0 var(--space-sm) 0 0; border-left: 0; border-right: var(--rule-bar) solid var(--color-ink); }
.node--chip { flex-direction: row; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-top-width: var(--rule-hair); }
.node--chip .ico { margin: 0; }
.node--hub { padding-block: var(--space-md) var(--space-lg); }

/* vertical chain (support) */
.flow--v { grid-template-columns: minmax(0, 1fr); }
.flow--v > :not(:last-child)::after { top: 100%; left: calc(var(--space-sm) + 5px); width: 10px; height: var(--fg); -webkit-mask-image: var(--arrow-d); mask-image: var(--arrow-d); }
.flow--v > .node { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--space-sm); row-gap: var(--space-3xs); }
.flow--v > .node .ico { grid-row: 1 / 3; margin: 0; }
.flow--v > .fork { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--space-sm) 0 0; border-left: 0; border-top: var(--rule-bar) solid var(--color-ink); }

@container (max-width: 720px) {
  .flow, .flow--route { grid-template-columns: minmax(0, 1fr); --fg: var(--space-lg); align-items: stretch; }
  .flow > :not(:last-child)::after, .flow--route > .node--hub::after, .flow--route > .fork--in::after { top: 100%; left: calc(var(--space-sm) + 5px); width: 10px; height: var(--fg); -webkit-mask-image: var(--arrow-d); mask-image: var(--arrow-d); }
  .flow > .fork:not(:last-child)::after { left: calc(var(--space-sm) + 5px); }
  .flow > .node { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--space-sm); row-gap: var(--space-3xs); }
  .flow > .node .ico { grid-row: 1 / 3; margin: 0; }
  .fork > .node { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--space-sm); row-gap: var(--space-3xs); }
  .fork > .node .ico { grid-row: 1 / 3; margin: 0; }
  .fork > .node--chip { display: flex; }
  .fork--in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0 0 var(--space-sm); border-right: 0; border-bottom: var(--rule-bar) solid var(--color-ink); }
  .lane { margin-top: var(--space-lg); margin-left: var(--space-xl); }
  .lane .lane-skip { display: none; }
  .lane .is-up::before { display: none; }
  .lane[data-from]::before { content: attr(data-from); font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); }
}
@container (max-width: 440px) {
  .flow--v > .fork { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 var(--space-sm); border-top: 0; border-left: var(--rule-bar) solid var(--color-ink); }
}

/* ---------- Built screens ---------- */
.sheet { padding-top: var(--space-xs); border-top: var(--rule-bar) solid var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
[data-slot].sheet, [data-slot].chat { background: none; overflow: visible; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-lg); padding-bottom: var(--space-sm); }
.sheet-title { font: 700 var(--text-title)/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); }
.sheet-when { font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); }
.sheet-foot { padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); font-style: italic; color: var(--color-muted); }
.tbl { font-size: 1rem; }
.tbl td.num { width: 4rem; }
.tbl--reviews { min-width: 520px; }
.tbl--enq { min-width: 640px; }
.scroll tbody th, .scroll thead th:first-child { position: sticky; left: 0; z-index: var(--z-base); background: var(--feat-bg, var(--color-paper)); }
.feat--band .scroll tbody th, .feat--band .scroll thead th:first-child { background: var(--color-paper-2); }
.scroll tr.is-pointed > th { background: var(--color-paper-2); }
.feat--band tr.is-pointed > *, .feat--band .scroll tr.is-pointed > th { background: var(--color-paper-3); }
.msg .agate, .kv .agate, .listing-sub .agate, .tbl .agate { font-size: 0.92em; }
.scroll-hint { display: none; }

/* chat */
[data-slot].chat { background: var(--chat-bg); }
.chat { display: grid; gap: var(--space-sm); padding: 0 var(--space-md) var(--space-lg); background: var(--chat-bg); border-top: var(--rule-bar) solid var(--color-ink); }
.chat-head { display: flex; align-items: center; gap: var(--space-xs); margin-inline: calc(-1 * var(--space-md)); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--on-ink); font: 700 1.0625rem/1.2 var(--font-display); }
.msg { display: grid; gap: var(--space-2xs); max-width: 86%; padding: var(--space-xs) var(--space-sm); font-size: 1rem; line-height: 1.45; }
.msg time { justify-self: end; font-size: var(--text-xs); line-height: 1; }
.msg.in { justify-self: start; background: var(--color-paper); color: var(--color-ink); }
.msg.in time { color: var(--color-muted); }
.msg.out { justify-self: end; background: var(--color-ink-2); color: var(--on-ink); }
.msg.out time { color: var(--on-ink-2); }
.attach { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border: var(--rule-hair) solid currentColor; font: 700 var(--text-sm)/1.2 var(--font-display); }

/* handover note */
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.kv > div:first-child { border-top: 0; }
.kv dt { font: 500 var(--text-sm)/1.6 var(--font-body); color: var(--color-muted); }
.kv dd { margin: 0; color: var(--color-ink); }

/* reminders as agate listings */
.agenda { margin: 0; padding: 0; list-style: none; }
.agenda li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 3rem; align-items: baseline; gap: var(--space-md); padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.agenda li:first-child { border-top: 0; }
.agenda b { font: 700 var(--text-title)/1.15 var(--font-display); }
.agenda .agate { text-align: right; color: var(--color-ink); }
.agenda li.is-pointed { background: var(--color-paper-2); box-shadow: inset 3px 0 0 var(--color-accent); padding-left: var(--space-sm); }

/* ---------- Close: the ink band ---------- */
.start { padding-block: var(--section-gap-s); background: var(--color-ink); color: var(--on-ink); }
.start h2, .start h3 { color: var(--on-ink); }
.start .lead { color: var(--on-ink-2); }
.start-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.start-text { grid-column: 1 / 6; display: grid; gap: var(--space-lg); }
.start-list { grid-column: 7 / 13; }
.start-k { max-width: none; padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-accent); }
.needs { margin: 0; }
.needs > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--gap-columns); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-muted); }
.needs dt { font: 700 var(--text-lg)/1.3 var(--font-display); color: var(--on-ink); }
.needs dd { margin: 0; color: var(--on-ink-2); }

/* ---------- Footer: mast ---------- */
.foot { padding-block: var(--space-3xl) var(--space-xl); }
.foot-brand { display: inline-flex; margin-bottom: var(--space-lg); }
.logo--big { height: clamp(56px, 7vw, 96px); }
.foot-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); padding-top: var(--space-lg); }
.foot-links { grid-column: 1 / 5; display: grid; gap: var(--space-xs); align-content: start; margin: 0; padding: 0; list-style: none; font-size: 1.0625rem; }
.foot-small { grid-column: 6 / 13; display: grid; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.foot-small p { max-width: 75ch; }

/* ---------- Narrower screens ---------- */
@media (max-width: 75rem) {
  .hero-top h1 { grid-column: 1 / 8; }
  .hero-side { grid-column: 8 / 13; }
  .split-text { grid-column: 1 / 7; }
  .split-vis { grid-column: 7 / 13; }
}
@media (max-width: 60rem) {
  .hero-top, .head-split, .glance-grid, .split, .start-grid, .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .hero-top h1, .hero-side, .head-split h2, .head-split .lead, .glance-text, .glance-photo, .split-text, .split-vis, .start-text, .start-list, .foot-links, .foot-small { grid-column: 1; }
  .hero-top, .head-split { row-gap: var(--space-md); }
  .glance-grid, .split, .start-grid { row-gap: var(--space-2xl); }
  .pair, .pair--wide { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); }
  .photo { min-height: 0; aspect-ratio: 4 / 3; }
  .mast-for { display: none; }
  .mast-top { justify-content: flex-end; }
}
@media (max-width: 40rem) {
  .hide-s, .opt { display: none; }
  .logo { height: 32px; }
  .mast > .container { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; row-gap: var(--space-sm); }
  .mast-brand { grid-column: 1; grid-row: 1; margin: 0; }
  .mast-top { grid-column: 2; grid-row: 1; }
  .mast .rule--double { grid-column: 1 / -1; }
  .tbl { font-size: var(--text-sm); }
  .tbl--reviews { min-width: 0; }
  .scroll-hint { display: block; margin-top: var(--space-xs); font-size: var(--text-sm); font-style: italic; color: var(--color-muted); }
  .life td.when { width: auto; white-space: normal; }
  .life .t { display: block; margin: var(--space-3xs) 0 0; }
  .life tbody th { font-size: 1rem; }
  .five li { grid-template-columns: 2rem minmax(0, 1fr); row-gap: var(--space-2xs); }
  .five span { grid-column: 2; }
  .agenda li { grid-template-columns: minmax(0, 1fr) 3rem; row-gap: var(--space-2xs); }
  .agenda li span:not(.agate) { grid-column: 1; grid-row: 2; }
  .agenda .agate { grid-row: 1; grid-column: 2; }
  .kv > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .needs > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .msg { max-width: 92%; }
  .tbl--reviews { min-width: 440px; }
}
