/* =====================================================================
   InvoiceGap
   Editorial and document-led. Light paper, hairline rules, serif
   headings, square corners, one accent.

   Layout runs full width: a 12-column grid where content is placed
   asymmetrically and deliberately, not centred in a narrow measure.
   ===================================================================== */

:root {
  --paper:    #ffffff;
  --tint:     #f7f6f3;
  --tint-2:   #fbfaf7;
  --ink:      #16181c;
  --ink-2:    #3f444d;
  --muted:    #6d737e;
  --rule:     #dedcd6;
  --rule-2:   #c7c3ba;

  --accent:   #1f3f6e;
  --accent-l: #2b5490;

  --good:     #2f6b46;
  --warn:     #8a5a12;
  --bad:      #9c2a24;

  --pad:   clamp(20px, 4vw, 56px);
  --gut:   clamp(16px, 2vw, 28px);
  --maxw:  1640px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
           Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
           "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .5, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.014em; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--rule-2); }
a:hover { color: var(--accent-l); border-bottom-color: var(--accent-l); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 600; }
em { font-style: italic; }
.r { text-align: right; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.measure { max-width: 66ch; }
.measure-sm { max-width: 52ch; }

/* ---------------------------------------------------------- frame */
.wrap {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--pad);
}

/* full-bleed: escape the max width and run edge to edge */
.bleed {
  width: 100%;
  border-block: 1px solid var(--rule);
}
.bleed > .wrap { max-width: none; }

/* 12-column grid, used for asymmetric placement */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gut);
}

/* Spans, named by their own explicit start and end. A class is only ever
   one of these, so there is no accidental override between them. */
.c1-3  { grid-column: 1 / 4; }
.c1-4  { grid-column: 1 / 5; }
.c1-5  { grid-column: 1 / 6; }
.c1-6  { grid-column: 1 / 7; }
.c1-7  { grid-column: 1 / 8; }
.c1-8  { grid-column: 1 / 9; }
.c1-9  { grid-column: 1 / 10; }
.c1-10 { grid-column: 1 / 11; }
.c1-11 { grid-column: 1 / 12; }
.c1-12 { grid-column: 1 / -1; }

.c2-5  { grid-column: 2 / 6; }
.c3-8  { grid-column: 3 / 9; }
.c4-7  { grid-column: 4 / 8; }
.c4-8  { grid-column: 4 / 9; }
.c4-9  { grid-column: 4 / 10; }
.c4-12 { grid-column: 4 / -1; }

.c5-7  { grid-column: 5 / 8; }
.c5-8  { grid-column: 5 / 9; }
.c5-12 { grid-column: 5 / -1; }

.c7-9  { grid-column: 7 / 10; }
.c7-12 { grid-column: 7 / -1; }

.c8-12 { grid-column: 8 / -1; }
.c9-12 { grid-column: 9 / -1; }
.c10-12{ grid-column: 10 / -1; }
.c11-12{ grid-column: 11 / -1; }

/* offset wrappers used by the home page */
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }

/* Only these are spans. Without this list the mobile rule would catch
   every class in the file that happens to contain the letter c. */
@media (max-width: 1000px) {
  .grid > .c1-3, .grid > .c1-4, .grid > .c1-5, .grid > .c1-6,
  .grid > .c1-7, .grid > .c1-8, .grid > .c1-9, .grid > .c1-10,
  .grid > .c1-11, .grid > .c1-12,
  .grid > .c2-5, .grid > .c3-8, .grid > .c4-7, .grid > .c4-8,
  .grid > .c4-9, .grid > .c4-12, .grid > .c5-7, .grid > .c5-8,
  .grid > .c5-12, .grid > .c7-9, .grid > .c7-12, .grid > .c8-12,
  .grid > .c9-12, .grid > .c10-12, .grid > .c11-12,
  .grid > .start-6, .grid > .start-7, .grid > .start-8 {
    grid-column: 1 / -1;
  }
  .grid { gap: 22px; }
}

/* ---------------------------------------------------------- labels */
.label {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

/* the small utility type used across the pages */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tiny { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; }

/* --- modifiers, formerly inline styles --------------------------- */
/* a grid with wider row spacing than the column gutter */
.grid-rows-lg { row-gap: 30px; }

/* a list that reads as a callout rather than a plain list */
.never-key { border-top: 2px solid var(--ink); }

/* an aside paragraph at page-head size */
.page-aside { font-size: 14px; }

/* buttons in a closing block sit flush, no top margin */
.actions-flush { margin: 0; }

/* a small note under the closing buttons */
.closing-note { margin-top: 20px; }

/* a bordered sub-block, tighter than .handling */
.sub-block { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--rule); }
.sub-block-tight { padding: 20px 22px; }

/* an uppercase heading used inside a sub-block */
.eyebrow-h {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* a checklist that starts below a paragraph */
.checklist { margin-top: 34px; }

/* the two-question list on the contact page */
.method-key { border-top: 2px solid var(--ink); }
.method-key h3 { font-size: 19px; }
.method-key .method-n { padding-top: 4px; }

.note-left { margin: 16px 0 30px; }
.note-quote { margin-top: 18px; max-width: 52ch; padding-left: 14px; border-left: 2px solid var(--rule-2); }
.measure-tight { max-width: 52ch; }

/* the suggested subject line, set as a specimen */
.specimen {
  font-size: clamp(17px, 2.4vw, 24px);
  color: var(--ink);
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  word-break: break-word;
}

/* colour swatches in the register key */
.sw-dup   { color: #fdf3f2; background: #fdf3f2; }
.sw-gap   { color: #fdf8ef; background: #fdf8ef; }
.sw-route { color: #f8f4fb; background: #f8f4fb; }
.k-bad    { color: var(--bad); }
.k-warn   { color: var(--warn); }
.k-route  { color: #6b3a8c; }

.key-sub-h { margin-top: 26px; }

/* the lead paragraph on the contact page */
.lead-lg { font-size: 19px; line-height: 1.6; color: var(--ink-2); }

.h2-contact { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.18; margin: 0 0 18px; }

/* fine print, last paragraph in a block */
.fine-last { margin: 0; }
.fine-gap  { margin: 0 0 12px; }

/* a larger closing note on the contact page */
.actions-spaced { margin-top: 24px; }
.actions-top { margin-top: 26px; }

/* a section heading with no left column above it */
.h2-wide {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--ink);
}
.h2-mid { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.14; margin: 0 0 16px; }
.h2-big { font-size: clamp(26px, 4vw, 44px); line-height: 1.1; margin: 0 0 18px; }

/* body copy at the sizes these pages use */
.lede-body { font-size: 17px; color: var(--ink-2); margin: 0 0 14px; }
.body-mute { font-size: 16px; color: var(--muted); margin: 0 0 14px; }
.card-h { font-size: 20px; margin: 0 0 10px; }
.card-d { font-size: 15.5px; color: var(--muted); margin: 0; }
.card-h-sm { font-size: 19px; margin: 0 0 9px; }

/* a vertical rule-label that hangs off the left edge */
.side-label {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding-top: 6px;
  border-top: 1px solid var(--rule-2);
}
@media (max-width: 1000px) { .side-label { display: none; } }

/* ---------------------------------------------------------- skip */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------- utility */
.utility { border-bottom: 1px solid var(--rule); background: var(--tint); }
.utility-in {
  display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between;
  align-items: center;
  padding-block: 9px; font-size: 12.5px; color: var(--muted);
}
.utility-in a { color: var(--ink-2); }

/* ---------------------------------------------------------- language switcher */
.lang-slot { position: relative; display: inline-block; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 9px; background: none;
  border: 1px solid var(--rule-2); border-radius: 0;
  color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer;
  transition: border-color .16s var(--ease), color .16s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn-t { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }

.caret {
  width: 7px; height: 7px; margin-left: 1px;
  border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* The currency list is long, so it scrolls rather than growing past the
   window. max-height is capped against the viewport and the menu is pinned
   to the top so it never opens downward off the bottom of the screen. */
.lang-menu {
  position: fixed; right: var(--pad); top: 46px; z-index: 60;
  width: 268px; padding: 6px;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper); border: 1px solid var(--rule-2);
}
.lang-menu[hidden] { display: none; }

/* a heading inside the menu, separating the two choices */
.lang-group {
  margin: 8px 0 4px; padding: 0 9px;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
}
.lang-group:first-child { margin-top: 2px; }

/* what the browser told us, shown so the currency is never a mystery */
.lang-region {
  margin: 0 0 6px; padding: 0 9px 8px;
  border-bottom: 1px solid var(--rule-2);
  font-size: 11.5px; color: var(--muted);
}
.lang-cur { font-family: var(--mono); font-weight: 600; color: var(--ink-2); }

.lang-opt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px; align-items: center; width: 100%;
  padding: 8px 9px; background: none; border: 0; border-bottom: 1px solid var(--rule);
  color: var(--ink-2); font: inherit; font-size: 13.5px;
  text-align: left; cursor: pointer;
}
.lang-opt:hover { background: var(--tint); color: var(--ink); }
.lang-opt.is-on { color: var(--accent); font-weight: 600; }

/* the currency rows lead with the code, not a flag */
.lang-opt-cur { grid-template-columns: 34px minmax(0, 1fr); }
.lang-opt-code {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: var(--muted);
}
.lang-opt-cur.is-on .lang-opt-code { color: var(--accent); }
.lang-note {
  margin: 6px 0 0; padding: 9px 9px 4px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px; line-height: 1.45; color: var(--muted);
}

/* flags drawn in CSS: no image requests, no emoji font dependency */
.flag {
  flex: none; width: 18px; height: 12px;
  border: 1px solid rgba(0,0,0,.22);
  background-size: cover;
}
.flag-gb {
  background:
    linear-gradient(33deg, transparent 42%, #fff 42% 45%, #c8102e 45% 52%, #fff 52% 55%, transparent 55%) no-repeat,
    linear-gradient(-33deg, transparent 42%, #fff 42% 45%, #c8102e 45% 52%, #fff 52% 55%, transparent 55%) no-repeat,
    linear-gradient(90deg, transparent 40%, #fff 40% 60%, #c8102e 60%),
    linear-gradient(0deg, transparent 38%, #fff 38% 62%, #c8102e 62%),
    #012169;
}
.flag-de {
  background: linear-gradient(180deg, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
}
.flag-nl {
  background: linear-gradient(180deg, #ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66%);
}
.flag-fr {
  background: linear-gradient(90deg, #002395 0 33.33%, #fff 33.33% 66.66%, #ed2939 66.66%);
}

.dim { color: var(--muted); }

/* ---------------------------------------------------------- masthead */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--rule);
}
.masthead-in {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: 64px;
}

.wordmark {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  letter-spacing: -.015em; color: var(--ink); border-bottom: 0; white-space: nowrap;
}
.wordmark span { color: var(--accent); }

.nav { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.nav a {
  font-size: 14.5px; color: var(--ink-2);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.cta-link {
  font-size: 14px; font-weight: 600; color: var(--accent);
  border-bottom: 1px solid var(--rule-2); padding-bottom: 2px; white-space: nowrap;
}

.menu-btn {
  margin-left: auto; width: 40px; height: 36px;
  background: none; border: 1px solid var(--rule-2); border-radius: 0;
  cursor: pointer; padding: 0;
  display: none; place-content: center; gap: 4px;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .22s var(--ease), opacity .18s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobnav { padding: 6px var(--pad) 18px; border-top: 1px solid var(--rule); background: var(--paper); }
.mobnav a {
  display: block; padding: 12px 0; font-size: 15.5px; color: var(--ink-2);
  border-bottom: 1px solid var(--rule); border-left: 0; border-right: 0; border-top: 0;
}
.mobnav a:last-child { border-bottom: 0; color: var(--accent); font-weight: 600; }

@media (max-width: 1060px) {
  .nav, .cta-link { display: none; }
  .menu-btn { display: grid; }
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  font: inherit; font-size: 15px; font-weight: 600;
  color: #fff; background: var(--accent);
  border: 1px solid var(--accent); border-radius: 0;
  cursor: pointer; text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s;
}
.btn:hover { background: var(--accent-l); border-color: var(--accent-l); color: #fff; text-decoration: none; }
.btn-quiet { color: var(--ink); background: transparent; border-color: var(--rule-2); }
.btn-quiet:hover { color: var(--accent); border-color: var(--accent); background: transparent; }

.quiet-link {
  font-size: 15px; font-weight: 500; color: var(--accent);
  border-bottom: 1px solid var(--rule-2); padding-bottom: 1px;
  white-space: nowrap;
}
.quiet-link:hover { border-bottom-color: var(--accent); }

/* ---------------------------------------------------------- page head */
.pagehead { padding: clamp(38px, 6vw, 84px) 0 clamp(28px, 4vw, 48px); }
.pagehead h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 6vw, 66px); line-height: 1.05; letter-spacing: -.028em;
}
.pagehead .lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin: 0; }
.pagehead-rule { margin-top: clamp(26px, 4vw, 40px); border-top: 1px solid var(--rule); }

/* breadcrumb */
.crumb {
  font-size: 12.5px; color: var(--muted); margin: 0 0 20px;
  letter-spacing: .02em;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }

/* ---------------------------------------------------------- statement */
.statement { padding: clamp(40px, 6vw, 84px) 0 clamp(30px, 4vw, 56px); }

.statement h1 {
  margin: 0 0 clamp(20px, 2.4vw, 30px);
  /* capped so a wide window does not push the headline into one enormous
     line with nothing beside it */
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: 1.02; letter-spacing: -.032em; color: var(--ink);
  /* wide enough that the <br> in the copy is the only line break, so
     the headline reads in German and Dutch as deliberately as in English */
  max-width: 22ch;
}
.statement h1 em { font-style: italic; color: var(--accent); }

.statement-grid { align-items: start; }
.standfirst { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--ink-2); margin: 0; }
.standfirst-2 { font-size: 15.5px; color: var(--muted); margin: 0; }

/* the copy columns are pulled up to sit under the headline, with a rule
   above each so they read as the same row rather than a floating block */
.standfirst-ruled { border-top: 1px solid var(--rule); padding-top: 26px; }
.statement-actions { margin-top: 26px; }

/* the vertical ruled facts strip beside the headline */
.facts { border-top: 1px solid var(--rule); }
.facts div {
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--rule);
  font-size: 13.5px; color: var(--muted);
}
.facts b { font-family: var(--mono); font-weight: 600; color: var(--ink); }

.statement-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  margin-top: clamp(26px, 3vw, 38px);
}
/* in the statement the button sits in its own narrow column, so it goes
   full width rather than wrapping to two lines */
.statement-actions { flex-direction: column; align-items: stretch; }
.statement-actions .btn { width: 100%; }

.disclaimer {
  margin-top: clamp(26px, 3vw, 40px);
  padding: 17px 20px;
  border: 1px solid var(--rule); border-left: 3px solid var(--ink);
  background: var(--tint); max-width: 680px;
}
.disclaimer p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.disclaimer strong { color: var(--ink); }

/* ---------------------------------------------------------- figures */
.figures { border-block: 1px solid var(--rule); background: var(--tint); }
.figures-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fig { padding: clamp(22px, 3vw, 34px) clamp(14px, 2vw, 28px); border-left: 1px solid var(--rule); }
.fig:first-child { border-left: 0; padding-left: 0; }
.fig-n {
  display: block; font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px); line-height: 1.05; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fig-l { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 22ch; }

@media (max-width: 900px) {
  .figures-row { grid-template-columns: repeat(2, 1fr); }
  .fig:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fig:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 460px) {
  .figures-row { grid-template-columns: 1fr; }
  .fig { border-left: 0; border-bottom: 1px solid var(--rule); padding-left: 0; }
  .fig:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------- index rows */
.index-list { border-top: 1px solid var(--rule); }
.idx {
  display: grid;
  grid-template-columns: 76px minmax(0, 3fr) minmax(0, 4fr) 44px;
  gap: var(--gut); align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
  transition: background .2s var(--ease);
}
.idx:hover { background: var(--tint-2); }
.idx-n { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: var(--muted); }
.idx-t {
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.18; color: var(--ink); letter-spacing: -.018em;
}
.idx:hover .idx-t { color: var(--accent); }
.idx-d { font-size: 15.5px; color: var(--muted); }
.idx-a { text-align: right; color: var(--accent); font-size: 18px; line-height: 1; }
.idx-a::after { content: "\2192"; }
.idx { color: var(--ink); border-bottom-color: var(--rule); }
.idx:hover { text-decoration: none; border-bottom-color: var(--rule); }

@media (max-width: 900px) {
  .idx { grid-template-columns: 52px minmax(0, 1fr) 32px; }
  .idx-d { grid-column: 2 / -1; }
}

/* ---------------------------------------------------------- bands */
.band { padding: clamp(48px, 7vw, 92px) 0; }
.band-tint { background: var(--tint); border-block: 1px solid var(--rule); }

/* tighter spacing for the pages that are mostly one component */
.band-tight { padding: clamp(34px, 5vw, 62px) 0; }

.band-head { margin-bottom: clamp(30px, 4vw, 52px); }
.band-head h2 {
  margin: 0 0 16px; font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.12; color: var(--ink); letter-spacing: -.022em;
}
.band-lede { font-size: clamp(16px, 1.7vw, 18px); color: var(--ink-2); margin: 0; }

/* section head that sits in the grid, label in the left column */
.band-head-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: var(--gut); align-items: end; }
@media (max-width: 860px) { .band-head-split { grid-template-columns: 1fr; } }
.band-head-split .label { margin-bottom: 12px; }

/* ---------------------------------------------------------- checks */
.check { padding: clamp(34px, 5vw, 60px) 0; border-top: 1px solid var(--rule); }
.check-grid { row-gap: clamp(24px, 4vw, 44px); align-items: start; }

.check-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.check-n { flex: none; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: var(--muted); padding-top: 5px; }
.check-head h3 { margin: 0; font-size: clamp(22px, 3vw, 32px); line-height: 1.16; color: var(--ink); }

.check-copy p { font-size: 16px; color: var(--ink-2); }
.check-copy p:last-child { margin-bottom: 0; }
.check-vis { min-width: 0; }

/* alternate which side the document sits on is handled by the spans in
   the markup, which keeps the mobile collapse working with no overrides */

/* which side the document sits on is decided in the markup with the
   c1-6 / c8-12 spans, so there is nothing to override here */

/* the vertical section label, used at the top of a full-width band */
.side-label-row {
  display: flex; justify-content: flex-end;
  margin-bottom: -6px;
}
.side-label-row .side-label { writing-mode: horizontal-tb; transform: none; }

.check-nav {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
}
.check-nav a {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  padding: 6px 11px; border: 1px solid var(--rule);
}
.check-nav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------- sheets */
.sheet { border: 1px solid var(--rule-2); background: var(--paper); padding: 16px 18px; margin-bottom: 12px; }
.sheet-h {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 11px; margin-bottom: 12px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
}
.stamp {
  font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 7px; white-space: nowrap;
}
.stamp-bad { color: var(--bad); border: 1px solid currentColor; }
.stamp-warn { color: var(--warn); border: 1px solid currentColor; }

.sheet dl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 7px 18px; margin: 0; }
.sheet dt { font-size: 13.5px; color: var(--muted); }
.sheet dd { margin: 0; font-size: 14px; text-align: right; word-break: break-word; }
.sheet dd.bad { color: var(--bad); font-weight: 600; }
.sheet dd.good { color: var(--good); }

.finding { margin: 18px 0 0; padding: 14px 0 0; border-top: 2px solid var(--ink); }
.finding-warn { border-top-color: var(--warn); }
.finding-k { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.finding-v { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.finding-warn .finding-k { color: var(--warn); }

/* ---------------------------------------------------------- aging */
.aging { width: 100%; border-collapse: collapse; font-size: 14px; }
.aging th, .aging td { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.aging th { text-align: left; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.aging td.num { text-align: right; color: var(--ink); }
.aging td:nth-child(2) { width: 40%; padding-inline: 16px; }
.bar { display: block; height: 4px; background: var(--rule); position: relative; overflow: hidden; }
.bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 0;
  background: var(--accent); transition: width .9s var(--ease);
}
.bar.in::after { width: var(--w); }
.aging tr:nth-child(n+4) .bar::after { background: var(--warn); }
.aging-total th, .aging-total td {
  border-bottom: 0; border-top: 2px solid var(--ink);
  padding-top: 12px; font-weight: 700; color: var(--ink); font-size: 13.5px;
}
.aging-total td.num { font-size: 19px; font-family: var(--mono); }
.fine { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------- sequence */
.sequence { display: flex; flex-wrap: wrap; gap: 8px; }
.seq { font-family: var(--mono); font-size: 13px; padding: 9px 12px; border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--paper); }
.seq-hole { color: var(--warn); border-style: dashed; border-color: var(--warn); position: relative; }
.seq-hole::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; border-top: 1px solid var(--warn); opacity: .45; }

/* ---------------------------------------------------------- register */
.sheet-lg { border: 1px solid var(--rule-2); background: var(--paper); }
.sheet-lg-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 18px; border-bottom: 1px solid var(--rule); background: var(--tint);
}
.sheet-lg-name { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.sheet-lg-status { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sheet-lg-status.done { color: var(--good); }

.sheet-lg-scroll { overflow-x: auto; }
.reg { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px; }
.reg thead th {
  text-align: left; padding: 12px 18px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: var(--tint); border-bottom: 1px solid var(--rule-2); white-space: nowrap;
}
.reg tbody td { padding: 12px 18px; border-bottom: 1px solid var(--rule); color: var(--ink-2); white-space: nowrap; }
.reg tbody tr:last-child td { border-bottom: 0; }
.reg tbody tr:hover td { background: #fbfaf8; }
.reg .c-inv { font-family: var(--mono); color: var(--ink); }
.reg .c-amt { font-family: var(--mono); text-align: right; color: var(--ink); }
.reg tbody tr { animation: rowIn .34s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; } to { opacity: 1; } }

.tag {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 7px; white-space: nowrap; border: 1px solid currentColor;
}
.t-paid { color: var(--good); }
.t-due  { color: var(--accent); }
.t-over { color: #a75c1c; }
.f-dup   { color: var(--bad); }
.f-gap   { color: var(--warn); }
.f-route { color: #6b3a8c; }
.f-clear { color: var(--muted); }

tr.mark-duplicate td { background: #fdf3f2; }
tr.mark-gap td { background: #fdf8ef; }
tr.mark-route td { background: #f8f4fb; }

.sheet-lg-foot { padding: 15px 18px; border-top: 1px solid var(--rule); background: var(--tint); }
.sheet-lg-foot .fine { margin: 0 0 6px; }
.sheet-lg-foot .fine:last-child { margin: 0; }

/* a key beside the table */
.key { border-top: 2px solid var(--ink); }
.key h4 {
  margin: 14px 0 12px; font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
}
.key div { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
.key .sw { flex: none; width: 10px; height: 10px; border: 1px solid currentColor; }

/* ---------------------------------------------------------- method */
.method { border-top: 1px solid var(--rule); }
.method li {
  display: grid; grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--rule);
}
.method-n { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: var(--muted); padding-top: 5px; }
.method h3 { margin: 0 0 7px; font-size: clamp(18px, 2.2vw, 22px); color: var(--ink); }
.method p { font-size: 16px; color: var(--ink-2); margin: 0; max-width: 68ch; }

@media (max-width: 620px) {
  .method li { grid-template-columns: 1fr; gap: 8px; }
  .method-n { padding-top: 0; }
}

/* ---------------------------------------------------------- assurances */
.never { border-top: 1px solid var(--rule-2); }
.never li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr);
  gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.never-mark { width: 13px; height: 13px; margin-top: 7px; border: 1.5px solid var(--bad); position: relative; }
.never-mark::before, .never-mark::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--bad); }
.never-mark::before { width: 1.5px; height: 17px; transform: translate(-50%,-50%) rotate(45deg); }
.never-mark::after  { width: 1.5px; height: 17px; transform: translate(-50%,-50%) rotate(-45deg); }
.never h3 { margin: 0 0 5px; font-size: 17.5px; color: var(--ink); }
.never p { margin: 0; font-size: 15px; color: var(--muted); }

.handling { padding: clamp(22px, 3vw, 30px); border: 1px solid var(--rule-2); background: var(--paper); }
.handling h3 { margin: 0 0 12px; font-size: 20px; color: var(--ink); }
.handling p { font-size: 15.5px; color: var(--ink-2); }
.formats { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.formats span { font-family: var(--mono); font-size: 11.5px; color: var(--good); border: 1px solid var(--rule-2); padding: 3px 8px; }
.handling .fine { margin-bottom: 18px; }

/* ---------------------------------------------------------- questions */
.qlist { border-top: 1px solid var(--rule-2); }
.q { border-bottom: 1px solid var(--rule); }
.q summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(18px, 2.4vw, 24px) 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); color: var(--ink);
}
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: var(--accent); }
.q summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-2px,-2px); transition: transform .24s var(--ease);
}
.q[open] summary::after { transform: rotate(-135deg) translate(-3px,-3px); }
.q-body { padding: 0 0 24px; max-width: 74ch; }
.q-body p { font-size: 16px; color: var(--ink-2); }

/* contents rail beside the questions */
.rail { border-top: 2px solid var(--ink); align-self: start; }
.rail h4 {
  margin: 14px 0 12px; font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
}
.rail ol { counter-reset: r; }
.rail li { border-bottom: 1px solid var(--rule); }
.rail a {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px;
  padding: 9px 0; font-size: 13.5px; color: var(--ink-2); border-bottom: 0;
}
.rail a:hover { color: var(--accent); text-decoration: none; }
.rail a::before {
  counter-increment: r; content: counter(r);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}

/* ---------------------------------------------------------- contact */
.contact-grid { row-gap: 34px; }
.contact-checklist { border-top: 1px solid var(--rule-2); }
.contact-checklist li {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px; color: var(--ink-2);
}
.tickbox {
  width: 13px; height: 13px; margin-top: 5px; border: 1.5px solid var(--ink);
  position: relative;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }

/* ---------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--rule); padding: clamp(34px, 5vw, 56px) 0 24px; }
.foot-in { row-gap: 32px; }
.foot-mark { font-size: 17px; }
.foot-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); max-width: 40ch; }
.foot-col h4 {
  margin: 0 0 12px; font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.foot-col p { font-size: 14.5px; margin: 0; }
.foot-col address { font-style: normal; font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.65; }
.foot-list { display: grid; gap: 7px; }
.foot-list a { font-size: 14px; color: var(--ink-2); }
.foot-base { margin-top: clamp(24px, 4vw, 38px); padding-top: 18px; border-top: 1px solid var(--rule); }
.foot-base p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--rd, 0) * 80ms);
}

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- print */
@media print {
  .utility, .masthead, .menu-btn, .mobnav, .skip, .side-label { display: none !important; }
  body { font-size: 11pt; background: #fff; }
  .band, .statement, .pagehead { padding: 12pt 0; break-inside: avoid; }
  a { color: #000; border-bottom: 0; }
  .sheet, .sheet-lg, .handling { border-color: #999; }
  .rail, .key { display: none; }
}