/* Dock & Duty design system.
   The look: a marked-up shipping document. White paper, ink black, one hi-vis yellow highlighter.
   Rules: yellow is always a FILL behind black, never text. Zero green. One 8px corner. Title Case in markup.
   Motion (ux-motion): typing never animates; press 150ms; menus 200ms from their trigger; exits shorter. */

@font-face { font-family: "Host Grotesk"; src: url("/assets/fonts/host-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800; 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: "Host Grotesk"; src: url("/assets/fonts/host-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 800; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; src: url("/assets/fonts/caveat-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-display: swap; }

:root {
  /* color */
  --ink: #0A0A0A; --ink-2: #2A2A28; --muted: #575550; --hair: #E4E0D6; --line: #0A0A0A;
  --paper: #FFFFFF; --pale: #F7F7F8; --card: #F6F1E8; --yellow: #FFD60A; --yellow-2: #FFE45C; --red: #B3261E;
  /* type */
  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
  --h1: 64px; --h2: 40px; --h3: 24px; --body: 16px; --small: 14px;
  /* shape and space */
  --r: 8px; --wrap: 1220px; --side: 50px; --section: 144px; --gap: 24px;
  /* motion */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1); --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 150ms; --dur-menu: 200ms; --dur-menu-out: 150ms; --dur-drawer: 280ms; --dur-drawer-out: 210ms;
}
@media (max-width: 760px) {
  :root { --h1: 40px; --h2: 30px; --h3: 21px; --side: 16px; --section: 64px; --gap: 16px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--body); line-height: 1.6; color: var(--ink); background: var(--paper);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); }
@media (hover: hover) and (pointer: fine) { a:hover { background: var(--yellow); transition: background-color var(--dur-press) ease; } }
.wrap { max-width: calc(var(--wrap) + 2 * var(--side)); margin: 0 auto; padding: 0 var(--side); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.code, code, .hts { font-family: var(--mono); font-size: 0.95em; letter-spacing: 0; }
.muted { color: var(--muted); }
.hand { font-family: var(--hand); font-size: 22px; line-height: 1.1; color: var(--ink-2); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 16px; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; }
p { margin: 0 0 16px; max-width: 68ch; }
.hl { background: linear-gradient(transparent 12%, var(--yellow) 12%, var(--yellow) 88%, transparent 88%); padding: 0 6px;
  margin: 0 -2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- header and menus ---------- */
.top { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid transparent; }
.top.scrolled { box-shadow: 0 1px 0 var(--hair), 0 6px 20px rgba(0, 0, 0, 0.07); }
.top .bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { flex: none; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .logo:hover { background: none; } }
.logo .mark { width: 30px; height: 30px; border-radius: var(--r); background: var(--yellow); border: 1px solid var(--ink); display: grid; place-items: center; }
.rooms { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rooms > li { position: static; } /* the panel anchors to the whole header (.top), never to its menu word */
.room-btn { font: inherit; font-weight: 500; background: none; border: 0; border-radius: var(--r); padding: 10px 14px; min-height: 44px; cursor: pointer;
  color: var(--ink); display: flex; align-items: center; gap: 6px; transition: background-color var(--dur-press) ease; }
.room-btn[aria-expanded="true"], .room-btn.here { background: var(--pale); }
@media (hover: hover) and (pointer: fine) { .room-btn:hover { background: var(--pale); } }
.room-btn svg { width: 12px; transition: transform var(--dur-menu) var(--ease-out); }
.room-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.desk-link { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* header icons and words keep their size when the bar is tight: the UK header at 1024 px squeezed the menu arrows and the
   My Desk icon to slivers (Antigravity R2-008); between 981 and 1180 px the gaps and the find box give way instead */
.top .bar svg, .top .bar img { flex: none; }
.room-btn, .desk-link .btn, .logo { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1180px) {
  .top .bar { gap: 14px; }
  .room-btn { padding: 10px 9px; }
  .desk-link { gap: 6px; }
  .top .findbox input { width: 150px; }
}
.tag { font-size: 12px; font-weight: 600; border: 1px solid var(--ink); border-radius: var(--r); padding: 1px 7px; background: var(--paper); white-space: nowrap; }
.findbox { position: relative; }
.findbox input { width: 220px; }
.panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--ink);
  transform-origin: top center; opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none;
  transition: opacity var(--dur-menu-out) var(--ease-in), transform var(--dur-menu-out) var(--ease-in); }
.panel.open { opacity: 1; transform: none; pointer-events: auto; transition: opacity var(--dur-menu) var(--ease-out), transform var(--dur-menu) var(--ease-out); }
.panel.instant { transition: none !important; } /* switching rooms: the old panel goes at once, so two never show together */
.panel { z-index: 1; box-shadow: 0 14px 28px rgba(10, 10, 10, 0.08); }
.panel .inner { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 36px var(--side) 40px; max-width: calc(var(--wrap) + 2 * var(--side)); margin: 0 auto; }
.panel h2 { font-size: 32px; margin-bottom: 8px; }
.panel .list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.mi { display: flex; gap: 14px; padding: 12px; border-radius: var(--r); text-decoration: none; align-items: flex-start; }
@media (hover: hover) and (pointer: fine) { .mi:hover { background: var(--pale); } }
.mi .ic { flex: none; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: var(--r); display: grid; place-items: center; background: var(--paper); }
.mi .ic svg { width: 20px; height: 20px; }
.mi b { display: block; font-weight: 600; line-height: 1.3; }
.mi span { display: block; font-size: var(--small); color: var(--muted); line-height: 1.4; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); cursor: pointer; }
.phone-menu { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); background: var(--paper); z-index: 80; border-left: 1px solid var(--ink);
  transform: translateX(100%); transition: transform var(--dur-drawer-out) var(--ease-in); overflow-y: auto; padding: 16px; }
.phone-menu.open { transform: none; transition: transform var(--dur-drawer) var(--ease-out); }
.scrim { position: fixed; inset: 0; background: rgba(10, 10, 10, 0.35); z-index: 70; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-drawer-out) var(--ease-in); }
.scrim.open { opacity: 1; pointer-events: auto; transition: opacity var(--dur-drawer) var(--ease-out); }
.phone-menu h3 { font-size: 15px; margin: 20px 4px 6px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.phone-menu .mi { border-bottom: 1px solid var(--hair); border-radius: 0; min-height: 56px; }
/* US/UK switch: the site you are on is filled in, the other is a link (to the same page in the other country when there is one) */
.region-switch { display: inline-flex; flex: none; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; font-size: var(--small); font-weight: 600; }
.region-switch > * { display: grid; place-items: center; min-width: 46px; min-height: 42px; padding: 0 10px; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.region-switch > * + * { border-left: 1px solid var(--ink); }
.region-switch .on { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .region-switch a:hover { background: var(--pale); } }
@media (max-width: 980px) {
  .rooms, .desk-link, .top .findbox { display: none; }
  .burger { display: grid; place-items: center; }
  .top nav[aria-label="Rooms"] { display: none; }
  .top .bar { gap: 12px; }
  .top .region-switch { margin-left: auto; }
  .top .region-switch + .burger { margin-left: 0; }
}
@media (max-width: 420px) { .top .logo img { height: 26px; } }
@media (max-width: 380px) { .top .region-switch { display: none; } .top .region-switch + .burger { margin-left: auto; } } /* the phone menu still lists the other country */

/* ---------- buttons, inputs ---------- */
.btn { font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 20px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer;
  text-decoration: none; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-press) ease; white-space: nowrap; }
.btn.primary { background: var(--yellow); }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: var(--small); }
.btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--pale); } .btn.primary:hover { background: var(--yellow-2); } }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.linkbtn { font: inherit; background: none; border: 0; padding: 10px 2px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink); }
label, .lab { display: block; font-size: var(--small); font-weight: 600; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=search], input[type=date], input[type=number], select, textarea {
  font: inherit; font-variant-numeric: tabular-nums; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ink);
  border-radius: var(--r); background: var(--paper); color: var(--ink); appearance: none; -webkit-appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A0A0A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea { min-height: 88px; resize: vertical; }
input.bad, select.bad { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.err { color: var(--red); font-size: var(--small); margin-top: 4px; }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 10px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: var(--body); cursor: pointer; min-height: 44px; padding-top: 10px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button { font: inherit; font-size: var(--small); font-weight: 600; min-height: 44px; min-width: 44px; padding: 6px 12px; border: 0; background: var(--paper); cursor: pointer; color: var(--ink); }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fracs { display: none; gap: 6px; margin-top: 6px; }
@media (pointer: coarse) { .fracs { display: flex; } }
.fracs button { font: inherit; font-size: var(--small); min-height: 44px; min-width: 44px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--paper); }

/* ---------- page layout ---------- */
.crumbs { font-size: var(--small); color: var(--muted); margin: 28px 0 14px; }
.crumbs a { color: var(--muted); }
.tool-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-areas: "intro tool" "about tool";
  column-gap: 56px; row-gap: 8px; align-items: start; padding-bottom: var(--section); }
@media (min-width: 981px) { .tool-page { grid-template-rows: auto 1fr; } } /* a tall calculator never pushes the explanation down */
.tool-intro { grid-area: intro; }
.tool-intro p.lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.tool-col { grid-area: tool; min-width: 0; }
.about { grid-area: about; min-width: 0; }
.about h2 { font-size: 30px; margin-top: 40px; }
.about h3 { margin-top: 28px; }
.about ul, .about ol { padding-left: 22px; max-width: 68ch; }
.about li { margin-bottom: 6px; }
.tool-page.wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "tool" "about"; row-gap: 24px; }
.tool-page.solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "about"; grid-template-rows: auto auto; row-gap: 8px; }
.tool-page.solo .about { max-width: 900px; }
.tool-page.wide .about { max-width: 760px; }
@media (max-width: 980px) {
  .tool-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "tool" "about"; row-gap: 20px; }
  .tool-intro p.lead { font-size: 17px; margin-bottom: 0; }
}
.band { padding: var(--section) 0; }
.band.pale { background: var(--pale); }
.band.card { background: var(--card); }
.band.dark { background: var(--ink); color: var(--paper); }
.band.dark a { color: var(--paper); }

/* ---------- the calculator card ---------- */
.calc { border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); padding: 22px; }
.calc .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.calc .head h2 { font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.lines { display: grid; gap: 10px; }
.line { border: 1px solid var(--hair); border-radius: var(--r); padding: 12px; background: var(--pale); }
.line .line-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: var(--small); font-weight: 600; }
.line .x { font: inherit; border: 0; background: none; min-width: 44px; min-height: 44px; cursor: pointer; text-decoration: underline; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- the answer: a yellow shipping label ---------- */
.label { position: relative; margin-top: 18px; background: var(--yellow); border: 1px solid var(--ink); border-radius: var(--r); padding: 18px 20px 16px; }
.label::before { content: ""; position: absolute; left: 14px; right: 14px; top: 8px; border-top: 1px dashed rgba(10, 10, 10, 0.45); }
.label .kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.label .big { font-size: min(56px, 12vw); overflow-wrap: anywhere; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 2px 0 4px; }
.label .big small { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-left: 6px; }
.label .sub { font-size: 15px; line-height: 1.45; }
.label table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.label td, .label th { text-align: left; padding: 6px 0; border-top: 1px solid rgba(10, 10, 10, 0.25); vertical-align: top; }
.label td.n, .label th.n { text-align: right; white-space: nowrap; }
@media (max-width: 760px) { .label td.n, .label th.n { white-space: normal; } }
.label .empty { font-size: 18px; font-weight: 600; }
.label.wait { background: var(--card); }
.label-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: var(--small); }
.label-actions .linkbtn { font-size: var(--small); }
.margin-note { position: absolute; right: -8px; top: -30px; transform: rotate(-3deg); pointer-events: none; }
@media (max-width: 980px) { .margin-note { display: none; } }

/* Show The Math, Rules As Of, estimate wording */
details.math { margin-top: 12px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); }
details.math summary { cursor: pointer; font-weight: 600; padding: 10px 14px; min-height: 44px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.math summary::-webkit-details-marker { display: none; }
details.math summary::after { content: "+"; font-weight: 400; font-size: 20px; }
details.math[open] summary::after { content: "−"; }
details.math .body { padding: 0 14px 12px; font-size: var(--small); }
details.math .body div { font-family: var(--mono); font-size: 13px; padding: 3px 0; white-space: pre-wrap; word-break: break-word; }
.rules-asof { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.rules-asof b { color: var(--ink); }
.rules-asof .nv { border: 1px solid var(--ink); border-radius: 4px; padding: 0 5px; font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 10px; }

/* Heads Up (warnings are never amber: black outline, icon, words) */
.heads-up { display: flex; gap: 12px; border: 1px solid var(--ink); border-radius: var(--r); padding: 12px 14px; background: var(--paper); margin-top: 12px; font-size: var(--small); line-height: 1.5; }
.heads-up svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
/* only the box's title sits on its own line: bold words inside its text stay in the sentence ("..., in force from"
   used to start a new line with a comma: Antigravity R2-012) */
.heads-up > div > b:first-child { display: block; font-size: 15px; }
.heads-up.stop { border-color: var(--red); }
.heads-up.stop > div > b:first-child { color: var(--red); }

/* Next Step strip */
.next { margin-top: 18px; }
.next .lab { color: var(--muted); }
.next .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
/* The lift on hover is a box-shadow, never a pseudo-element behind the card: a transform makes the card its own stacking
   context, so a z-index:-1 layer would paint over the card's background and hide the title (bug found 2026-12-05). */
.sticker { position: relative; display: block; border: 1px solid var(--ink); border-radius: var(--r); padding: 12px 14px; background: var(--paper);
  text-decoration: none; }
.sticker b { display: block; font-weight: 600; line-height: 1.3; }
.sticker span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
@media (hover: hover) and (pointer: fine) {
  .sticker { transition: transform var(--dur-menu) var(--ease-out), box-shadow var(--dur-menu) var(--ease-out); }
  .sticker:hover { transform: translate(5px, -5px); box-shadow: -6px 6px 0 var(--ink); background: var(--paper); }
}
.sticker:active { background: var(--pale); }

/* phone: the answer sticks to the bottom while you type */
.dock-answer { display: none; }
@media (max-width: 980px) {
  .dock-answer { display: flex; position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 40;
    background: var(--yellow); border: 1px solid var(--ink); border-radius: var(--r); padding: 10px 14px; align-items: center; justify-content: space-between; gap: 10px;
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--dur-menu-out) var(--ease-in), transform var(--dur-menu-out) var(--ease-in); }
  .dock-answer.show { opacity: 1; transform: none; pointer-events: auto; transition: opacity var(--dur-menu) var(--ease-out), transform var(--dur-menu) var(--ease-out); }
  .dock-answer b { font-size: 22px; letter-spacing: -0.02em; }
  .dock-answer span { font-size: 13px; }
  .dock-answer a { font-size: 13px; min-height: 36px; display: flex; align-items: center; }
}

/* tables, cards, home */
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.data th { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
table.data td.n, table.data th.n { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hero { padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-card .label { transform: rotate(1.2deg); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-card .label { transform: none; } }
.hero h1 { font-size: 72px; max-width: 15ch; }
@media (max-width: 760px) { .hero { padding: 32px 0 var(--section); } .hero h1 { font-size: 44px; } }
.room-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

/* footer */
footer.site { background: var(--card); padding: 72px 0 40px; font-size: var(--small); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer.site h3 { font-size: 15px; letter-spacing: 0; margin-bottom: 10px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 0 0 6px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > div:first-child { grid-column: 1 / -1; } } /* the logo and note get the full width (F-014) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--ink); color: var(--paper); border-radius: var(--r);
  padding: 10px 16px; font-size: var(--small); z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-menu-out) var(--ease-in), transform var(--dur-menu-out) var(--ease-in); }
.toast.show { opacity: 1; transform: translate(-50%, 0); transition: opacity var(--dur-menu) var(--ease-out), transform var(--dur-menu) var(--ease-out); }

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

/* printable documents (bill of lading, invoice, packing list) */
.doc-sheet { display: none; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  body.printing > *:not(.doc-sheet) { display: none !important; }
  body.printing .doc-sheet { display: block !important; }
  .doc-sheet { font-size: 11px; line-height: 1.35; color: #000; }
}

/* tool search results (menu panel and phone drawer) */
.find-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--paper); border: 1px solid var(--ink); border-radius: var(--r); z-index: 60; }
.find-results:empty { display: none; }
.phone-menu .find-results { position: static; margin-top: 8px; }


/* tariff-book reference pages (/hts/...), moved from the generator */
.hts-ref h2{font-size:28px;margin-top:40px}.hts-ref h3{font-size:20px;margin:0 0 8px}
.hts-ref .path{font-size:15px;margin:0 0 12px}.hts-ref .path .sep{color:var(--muted)}
table.hts-lines td{padding:7px 10px;font-size:14px;line-height:1.45}table.hts-lines td:first-child{white-space:nowrap;width:1%}
table.hts-lines td+td{overflow-wrap:anywhere}table.hts-lines tr.h td+td{color:var(--muted)}
table.hts-lines tr.i1 td+td{padding-left:22px}table.hts-lines tr.i2 td+td{padding-left:34px}table.hts-lines tr.i3 td+td{padding-left:46px}
table.hts-lines tr.i4 td+td{padding-left:58px}table.hts-lines tr.i5 td+td,table.hts-lines tr.i6 td+td{padding-left:70px}
table.hts-lines small{display:block;font-size:13px;color:var(--muted);margin-top:2px}table.hts-lines small b{color:var(--ink);font-weight:600}
.hts-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-top:12px}
.hts-o{border:1px solid var(--ink);border-radius:var(--r);padding:12px 14px;background:var(--paper);font-size:14px;line-height:1.45}
.hts-o h3{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.hts-o h3 b{font-size:20px;white-space:nowrap}
.hts-o ul{list-style:none;padding:0;margin:6px 0 0}.hts-o li{margin:0 0 5px;padding:0}.hts-o .r{white-space:nowrap;font-weight:600}
.hts-o .f{font-size:13px;color:var(--muted)}.hts-o .w{border-left:3px solid var(--ink);padding-left:8px;margin-top:6px}
table.hts-tot td,table.hts-tot th{padding:7px 8px;font-size:14px}table.hts-tot td+td,table.hts-tot th+th{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.hts-src li{font-size:14px;line-height:1.55}.hts-src a{white-space:nowrap}.hts-ref ol.notes{font-size:14px;max-width:none}
.hts-list{list-style:none;padding:0 !important;margin:12px 0 0}.hts-list>li{border-bottom:1px solid var(--hair);padding:10px 0;margin:0}
.hts-gl{font-size:14px;margin-top:4px;line-height:1.7}.hts-gl a{white-space:nowrap}
.hts-nav{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:24px;font-size:15px}
.hts-ref .legal{margin-top:24px}


/* Common Cases: links from a core page to the search pages built around it */
.related-pages { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--hair); }
.related-pages ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 32px; }
.related-pages li { border-bottom: 1px solid var(--hair); }
.related-pages a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; }

/* logo (hand-built SVG, src/brand/) */
.logo img { display: block; height: 30px; width: auto; }
.phone-menu .logo img { height: 26px; }
footer.site .logo img { height: 28px; }
/* What Changed tables: on a phone they scroll sideways instead of squeezing three columns into 390 px (F-024) */
@media (max-width: 560px) { table.data.wc { min-width: 560px; } }
/* a table that scrolls sideways shows a soft shadow at the edge where more of it is hidden, so a cut word reads as "more
   this way", not as a broken page (Antigravity R2-012); pure CSS, the shadows move with the scroll */
.table-wrap { background:
  linear-gradient(to right, var(--paper) 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat local,
  linear-gradient(to left, var(--paper) 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(10, 10, 10, 0.16), transparent) left center / 10px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(10, 10, 10, 0.16), transparent) right center / 10px 100% no-repeat scroll,
  var(--paper); }
.table-wrap table.data { background: transparent; }
