/* Rowvero public site.
   Plain, accessible layout inspired by the GOV.UK Design System's principles:
   one readable column, large body text, square edges and a strong focus state.
   Its own colours and wordmark keep it clearly separate from government services.
   Deliberately light-only, like the pattern it follows. */
:root {
  --ink: #0c1b24;
  --ink-2: #46555d;
  --band: #10323b;
  --accent: #0d7565;
  --accent-dark: #074a40;
  --accent-tint: #e2f1ec;
  --link: #135c9e;
  --link-hover: #0b3d6b;
  --rule: #b3bdc1;
  --rule-light: #d7dee1;
  --panel: #f1f4f4;
  --page: #ffffff;
  --focus: #ffd23f;
  --error: #b42318;
  --amber-bg: #fcefc0; --amber: #574100;
  --green-bg: #d3ebe0; --green: #0a5134;
  --grey-bg: #e4e9eb; --grey: #2d3b42;
  --blue-bg: #d8e7f5; --blue: #123e69;
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 641px) { :root { --gutter: 30px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 641px) { body { font-size: 19px; line-height: 1.42; } }

h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.3; }
@media (min-width: 641px) {
  h1 { font-size: 48px; line-height: 1.05; }
  h2 { font-size: 30px; line-height: 1.17; }
  h3 { font-size: 22px; }
}
p { max-width: 38em; }
code { font-family: var(--mono); font-size: 0.9em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }

/* Links and focus. The yellow focus state is visible on every background. */
a { color: var(--link); text-decoration-thickness: max(1px, 0.0625rem); text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); text-decoration-thickness: max(3px, 0.1875rem); }
a:focus-visible {
  outline: 3px solid transparent;
  color: var(--ink);
  background: var(--focus);
  box-shadow: 0 -2px var(--focus), 0 4px var(--ink);
  text-decoration: none;
}
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.wrap { max-width: calc(960px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; padding: 10px 15px; background: var(--focus); color: var(--ink); }
.skip:focus { top: 10px; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px;
  padding-block: 14px;
  padding-inline: max(var(--gutter), calc((100% - 960px) / 2));
  background: var(--band);
  border-bottom: 8px solid var(--accent);
  color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; }
.brand-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid #fff; font-size: 19px; font-weight: 400; line-height: 1; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 16px; font-weight: 700; }
.site-header nav a { color: #fff; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.site-header nav a:focus-visible, .brand:focus-visible { color: var(--ink); }

/* Phase banner */
.phase { display: flex; align-items: baseline; gap: 10px; padding-block: 10px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.phase p { max-width: none; }

/* Tags */
.tag {
  display: inline-block; padding: 2px 8px 3px; font-size: 14px; font-weight: 700; line-height: 1.25;
  letter-spacing: 0.02em; vertical-align: 0.1em; white-space: nowrap;
  background: var(--grey-bg); color: var(--grey);
}
.tag-blue { background: var(--blue-bg); color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-grey, .neutral { background: var(--grey-bg); color: var(--grey); }
h3 .tag { margin-left: 8px; }

/* Layout: two-thirds content, one-third aside */
.grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.hero { padding-block: 40px 50px; align-items: start; }
@media (min-width: 641px) { .hero { padding-block: 50px 60px; } }
.hero-copy { display: grid; gap: 20px; }
.lead { font-size: 18px; line-height: 1.4; }
@media (min-width: 641px) { .lead { font-size: 24px; line-height: 1.25; } }

/* Start button */
.start-button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: fit-content; min-height: 44px;
  padding: 10px 16px 9px;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--accent);
  box-shadow: 0 2px 0 var(--accent-dark);
  color: #fff;
  font-weight: 700; font-size: 18px; line-height: 1.2;
  text-decoration: none;
}
.start-button { margin-top: 10px; padding: 12px 18px 11px; font-size: 24px; line-height: 1; }
.start-icon { flex-shrink: 0; }
.start-button:hover, .button:hover:not(:disabled) { background: var(--accent-dark); color: #fff; text-decoration: none; }
.start-button:active, .button:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.start-button:focus-visible, .button:focus-visible {
  outline: 3px solid transparent; background: var(--focus); color: var(--ink);
  box-shadow: 0 2px 0 var(--ink); border-color: var(--focus);
}
.button.secondary { background: var(--panel); color: var(--ink); box-shadow: 0 2px 0 #7d8b91; }
.button.secondary:hover:not(:disabled) { background: var(--rule-light); color: var(--ink); }
.after-start { font-size: 16px; color: var(--ink-2); }

/* Customs card: the three identifiers on a declaration line */
.customs-card { background: var(--panel); border-top: 5px solid var(--band); padding: 20px; display: grid; gap: 16px; }
.customs-card h2 { font-size: 19px; line-height: 1.3; }
@media (min-width: 641px) { .customs-card h2 { font-size: 22px; } }
.code-list { display: grid; gap: 0; }
.code-list > div { display: grid; gap: 6px; padding-block: 14px; border-top: 1px solid var(--rule); }
.code-list > div:last-child { border-bottom: 1px solid var(--rule); }
.code-list dt { font-weight: 700; font-size: 16px; display: grid; gap: 4px; }
.code-list dd { font-size: 16px; color: var(--ink-2); }
.code-list dd .tag { margin-right: 6px; }
.doc-code {
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  width: fit-content; padding: 1px 6px; background: var(--page); border: 1px solid var(--ink); color: var(--ink);
}
.code-missing .doc-code { background: var(--ink); color: #fff; }
.card-source { font-size: 14px; color: var(--ink-2); }

/* Content column */
.content { display: grid; gap: 50px; padding-bottom: 60px; }
.content section { display: grid; gap: 20px; }
.content > section + section { border-top: 1px solid var(--rule-light); padding-top: 40px; }
.list { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-width: 38em; }
.list li::marker { color: var(--ink); }

/* Step by step: a real sequence, so the numbers carry meaning */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 58px; display: grid; gap: 6px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px; width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--page);
  font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums;
}
.steps li::after { content: ""; position: absolute; left: 17px; top: 34px; bottom: 2px; border-left: 2px solid var(--rule); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; }
@media (min-width: 641px) { .steps h3 { font-size: 22px; } }
.steps p { color: var(--ink-2); }

/* Example result, matching the free preview's totals */
.result-panel { border: 1px solid var(--rule); display: grid; }
.result-panel figcaption { padding: 10px 15px; background: var(--panel); border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 700; }
.result-stats { display: flex; flex-wrap: wrap; }
.result-stat { flex: 1 0 50%; min-width: 0; }
@media (min-width: 641px) { .result-stat { flex-basis: 33.333%; } }
.result-stat[data-count=blockedNoBarcode] { background: var(--amber-bg, #fff3dd); }
.result-stat { padding: 15px; font-size: 16px; line-height: 1.3; border-bottom: 1px solid var(--rule-light); border-right: 1px solid var(--rule-light); }
.result-stat strong { display: block; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.result-fill { background: var(--accent-tint); }
.result-example { display: grid; gap: 6px 20px; padding: 15px; font-size: 16px; }
@media (min-width: 641px) { .result-example { grid-template-columns: 160px 1fr; } }
.result-example > code { font-weight: 700; }
.result-example .tag { margin-right: 6px; }

/* Inset text and warning text */
.inset { border-left: 10px solid var(--rule); padding: 15px 20px; }
.warning { display: grid; grid-template-columns: 35px 1fr; gap: 15px; align-items: start; }
.warning-icon {
  display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 26px; font-weight: 700; line-height: 1;
}

/* Details and summary list */
.details summary { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; width: fit-content; }
.details summary:hover { color: var(--link-hover); text-decoration-thickness: 3px; }
.details[open] > summary { margin-bottom: 15px; }
.details > :not(summary) { border-left: 5px solid var(--rule); padding-left: 20px; }
.details > p { margin-top: 15px; }
.summary-list { display: grid; }
.summary-list > div { display: grid; gap: 4px 20px; padding-block: 10px; border-bottom: 1px solid var(--rule-light); }
@media (min-width: 641px) { .summary-list > div { grid-template-columns: 11em 1fr; } }
.summary-list dt { font-weight: 700; }

/* Common questions */
.faq { gap: 0 !important; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 44px 15px 0; position: relative;
  font-weight: 700; color: var(--link);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 2px solid var(--link); border-radius: 50%; font-size: 20px; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--link-hover); text-decoration: underline; text-decoration-thickness: 3px; }
.faq details p { padding-bottom: 20px; }

/* Closing call to action */
.closing { display: grid; gap: 15px; padding: 25px; background: var(--panel); border-top: 5px solid var(--accent); }
.closing .button { margin-top: 5px; }

/* Footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 16px; }
.footer-inner { display: grid; gap: 15px; padding-block: 30px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--ink); }
.site-footer p { max-width: 50em; }
/* The preview page's footer sits directly on .site-footer.wrap */
.site-footer.wrap { display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; align-items: baseline; padding-block: 25px 35px; background: none; border-top: 1px solid var(--rule); }

/* ---------- Free preview workspace (preview.html) ---------- */
.info-page { max-width: calc(800px + var(--gutter) * 2); margin-inline: auto; padding: 40px var(--gutter) 60px; display: grid; gap: 24px; overflow-wrap: anywhere; }
.info-page section, .info-page aside { display: grid; gap: 16px; }
.info-page section { padding-top: 24px; border-top: 1px solid var(--rule-light); }
.info-page h1 { max-width: 20em; }
.workspace { max-width: calc(960px + var(--gutter) * 2); margin-inline: auto; padding: 40px var(--gutter) 60px; display: grid; gap: 20px; }
.workspace > h1 { margin-top: 0; }
.workspace .lead { max-width: 34em; }
.eyebrow { font-size: 16px; font-weight: 700; color: var(--ink-2); }

.message { font-size: 16px; overflow-wrap: anywhere; }
.message:empty { display: none; }
.message.error { border: 5px solid var(--error); padding: 15px 20px; color: var(--ink); font-weight: 700; }



label { font-weight: 700; font-size: 16px; }
select, input[type=number] {
  width: 100%; min-width: 0; min-height: 40px; padding: 5px 8px;
  border: 2px solid var(--ink); border-radius: 0; background: var(--page); color: var(--ink); font-weight: 400;
}
.recovery { display: grid; gap: 6px; font-size: 16px; }
.recovery label { display: flex; gap: 10px; align-items: start; font-weight: 400; }
.recovery input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }

.empty { color: var(--ink-2); font-size: 16px; }
#results-content { display: grid; gap: 15px; }
#results-content h3 { margin-top: 10px; }
.text-link { font-weight: 700; }

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

/* Public guide: shared workflow text, with the public site's typography and navigation. */

/* Declaration landing direction. Scoped to preserve the preview and guide layout. */
@font-face {
  font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
}
.landing-declaration {
  --page: #eceef1; --ink: #12151b; --ink-2: #4b5563; --link: #1f3fb8; --link-hover: #132a80;
  --focus: #ffe45c; --sans: 'Schibsted Grotesk', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  background: var(--page); color: var(--ink); font-size: 17px; line-height: 1.55;
}
.landing-declaration h1, .landing-declaration h2 { font-weight: 900; letter-spacing: -.035em; text-wrap: initial; }
.landing-declaration h2 { font-size: 42px; line-height: 1.05; }
.landing-declaration h3 { font-weight: 800; font-size: 20px; line-height: 1.2; }
.landing-declaration p { max-width: none; }
.landing-declaration :target { scroll-margin-top: 24px; }
.declaration-wrap { max-width: 1240px; padding-inline: 32px; margin-inline: auto; }
.declaration-header { border-bottom: 2px solid var(--ink); }
.declaration-header-inner { padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.declaration-brand { display: flex; align-items: baseline; gap: 12px; font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.declaration-brand span { font: 13px var(--mono); color: var(--ink-2); letter-spacing: 0; }
.declaration-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.declaration-nav > a { color: var(--ink); text-decoration: none; }
.declaration-nav > a:hover { text-decoration: underline; }
.declaration-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 24px; background: var(--link); color: #fff; border: 2px solid transparent; text-decoration: none; font-weight: 700; line-height: 1.25; text-align: center; }
.declaration-button:hover { color: #fff; background: var(--link-hover); text-decoration: none; }
.declaration-button-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.declaration-button-outline:hover { background: #fff; color: var(--ink); }
.declaration-nav .declaration-button-dark { background: var(--ink); color: #fff; min-height: 44px; padding: 10px 16px; }
.declaration-nav .declaration-button-dark:hover { background: var(--link); text-decoration: none; }
.landing-declaration a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; background: var(--focus); color: var(--ink); box-shadow: 0 3px var(--ink); }
.landing-declaration h1 { font-size: clamp(46px, 4.8vw, 68px); line-height: 1; }
.declaration-eyebrow { font: 500 13px/1.5 var(--mono); color: var(--ink-2); }
.declaration-lead { color: #333a45; font-size: 20px; line-height: 1.5; }
.declaration-source { font: 12px/1.65 var(--mono); color: var(--ink-2); }
.declaration-footer { border-top: 2px solid var(--ink); padding-block: 32px 48px; color: #333a45; font-size: 13px; }
.declaration-footer .declaration-wrap { display: grid; gap: 12px; }
.declaration-footer-top { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-bottom: 8px; }
.declaration-footer-top > strong { font-size: 23px; font-weight: 900; color: var(--ink); letter-spacing: -.03em; }
.declaration-footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
@media (max-width: 1100px) {
  .declaration-brand span { display: none; }
}
@media (max-width: 899px) {
  .landing-declaration h1 { font-size: 54px; }
  .declaration-footer-top { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .landing-declaration { font-size: 16px; }
  .declaration-wrap { padding-inline: 18px; }
  .declaration-header-inner { padding-block: 12px; gap: 12px; }
  .declaration-brand { font-size: 23px; }
  .declaration-nav > a:not(.declaration-button) { display: none; }
  .declaration-nav .declaration-button { font-size: 14px; }
  .landing-declaration h1 { font-size: 40px; line-height: 1.02; }
  .landing-declaration h2 { font-size: 30px; letter-spacing: -.025em; }
  .declaration-lead { font-size: 17px; }
  .declaration-footer { padding-block: 24px 36px; }
  .declaration-footer nav { gap: 12px 20px; }
}

/* ---------- Declaration theme for every public page ----------
   The landing page introduced this look; these rules carry it to the free
   preview, the guide, contact and privacy so the whole site matches.
   Later rules intentionally override the earlier GOV.UK-inspired base. */
:root {
  --ink: #12151b; --ink-2: #4b5563; --body: #333a45;
  --band: #12151b;
  --accent: #1f3fb8; --accent-dark: #132a80; --accent-tint: #fff6c2;
  --link: #1f3fb8; --link-hover: #132a80;
  --rule: #12151b; --rule-light: #b8bec8;
  --panel: #ffffff; --page: #eceef1;
  --focus: #ffe45c; --highlight: #ffe45c;
  --sans: 'Schibsted Grotesk', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
body { background: var(--page); font-size: 17px; line-height: 1.55; }
h1, h2 { font-weight: 900; letter-spacing: -0.03em; }
h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.02; }
h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
h3 { font-weight: 800; letter-spacing: -0.01em; }
.lead { color: var(--body); font-size: 19px; line-height: 1.5; }
.eyebrow { font: 500 13px/1.5 var(--mono); color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.declaration-wrap { width: 100%; }
.declaration-nav a[aria-current="page"]:not(.declaration-button) { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Buttons, tags and form controls */
.button, .start-button { border-radius: 0; box-shadow: none; border: 2px solid transparent; min-height: 48px; padding: 10px 20px; font-size: 16px; }
.start-button { font-size: 20px; min-height: 54px; }
.button:hover:not(:disabled), .start-button:hover { background: var(--accent-dark); }
.button:active:not(:disabled), .start-button:active { transform: none; }
.button.secondary { background: transparent; border-color: var(--ink); color: var(--ink); box-shadow: none; }
.button.secondary:hover:not(:disabled) { background: #fff; color: var(--ink); }
.tag { font-family: var(--sans); font-size: 13px; letter-spacing: 0; border: 1.5px solid currentColor; }
.tag-blue { font: 500 12px var(--mono); text-transform: uppercase; background: transparent; color: var(--ink); border: 0; padding-inline: 0; }
.tag-green { background: var(--highlight); color: var(--ink); border-color: var(--highlight); }
.tag-amber { background: transparent; color: var(--ink); border-color: var(--ink); }
.tag-grey, .neutral { background: transparent; color: var(--ink-2); border-style: dashed; }
select, input[type=number] { border: 2px solid var(--ink); border-radius: 0; background: #fff; }
label { font-weight: 700; }

/* Free preview workspace */
.workspace { max-width: calc(1040px + var(--gutter) * 2); padding-top: 48px; gap: 24px; }
.workspace .lead { max-width: 36em; }
.empty { color: var(--ink-2); }
/* Visible on load, so every font weight the results use is fetched before any file
   is chosen: the preview must make no requests while comparing files. */
.message.error { border: 2px solid var(--error); background: #fff; }

/* Contact and privacy */
.info-page { max-width: calc(820px + var(--gutter) * 2); padding-top: 48px; }
.info-page section { border-top: 2px solid var(--ink); }
.info-page h2 { font-size: 26px; }
.inset { background: #fff; border: 2px solid var(--ink); padding: 18px 22px; }
.contact-addresses { box-shadow: 8px 8px 0 var(--ink); }
.contact-addresses a { font: 600 17px var(--mono); }
.warning-icon { background: var(--ink); }

/* Guide (free preview edition) */

/* Older shared header and footer, kept consistent for any page still using them */
.site-header { background: var(--page); color: var(--ink); border-bottom: 2px solid var(--ink); }
.site-header .brand, .site-header nav a { color: var(--ink); }
.brand { font-weight: 900; font-size: 26px; letter-spacing: -0.03em; }
.brand-icon { display: none; }
.site-footer { background: transparent; border-top: 2px solid var(--ink); }

/* ---------- Paid access pages (/buy, /unlock) ---------- */
.test-mode { display: grid; gap: 6px; padding: 14px 18px; background: #fff6c2; border: 2px dashed var(--ink); }
.test-mode h2 { font: 600 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.test-mode p { font-size: 15px; }
.paid-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.paid-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.paid-cta form { margin: 0; }
.paid-cta button { font: inherit; font-weight: 700; cursor: pointer; }
.paid-disabled { background: #d0d4db; color: var(--ink-2); cursor: not-allowed; }
.paid-disabled:hover { background: #d0d4db; color: var(--ink-2); }
.unlock-messages:focus { outline: none; }
.unlock-message { padding: 14px 18px; background: #fff; border: 2px solid var(--ink); font-weight: 600; }
.unlock-message[hidden] { display: none; }
.unlock-error { border-color: var(--error); border-left-width: 8px; }
.unlock-form { display: grid; gap: 10px; max-width: 34em; padding: 22px; background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.unlock-help { font-size: 15px; color: var(--ink-2); }
.unlock-form input[type=text] { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; background: #fff; font: 500 16px var(--mono); }
.unlock-form .button, .unlock-form .declaration-button { justify-self: start; margin-top: 6px; }
.unlock-remember { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 600; font-size: 16px; cursor: pointer; }
.unlock-remember input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
@media (max-width: 600px) { .unlock-form { padding: 16px; box-shadow: 6px 6px 0 var(--ink); margin-right: 6px; } }

/* ---------- Matching-desk landing (structure approved by Damian, October 2026) ---------- */
/* Shared by every page that uses the matching-desk components. */
:root { --desk-yellow: #ffe45c; --desk-rule: #b8bec8; --desk-grey: #d0d4db; --desk-slate: #737c8a; --desk-faint: #5f6774; }
.desk-empty { color: var(--desk-faint); } /* AA on white and on the grey page */
.desk-hl { background: var(--desk-yellow); padding: 2px 6px; font-weight: 600; }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr); align-items: start; margin: 18px 0 8px; }
.desk-sheet { background: #fff; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.desk-sheet-head { display: flex; justify-content: space-between; gap: 12px; height: 42px; align-items: center; padding: 0 16px; border-bottom: 2px solid var(--ink); font: 12px var(--mono); }
.desk-sheet-head b { font-weight: 600; }
.desk-sheet-head span { color: var(--ink-2); }
.desk-sheet table { width: 100%; border-collapse: collapse; font: 13px var(--mono); }
.desk-sheet th { text-align: left; font-weight: 400; font-size: 11px; text-transform: uppercase; color: var(--ink-2); padding: 0 16px; height: 36px; border-bottom: 1px solid var(--ink); }
.desk-sheet td { padding: 0 16px; height: 58px; border-bottom: 1px dashed var(--desk-rule); white-space: nowrap; }
.desk-sheet tr:last-child td { border-bottom: 0; }
.desk-wires { width: 180px; height: 310px; }
.desk-pairs { display: none; list-style: none; padding: 0; margin: 0; }
.desk-stamp { font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; border: 2px solid var(--ink); transform: rotate(-2deg); background: #fff; white-space: nowrap; }
.desk-stamp-fill { background: var(--desk-yellow); }
.desk-stamp-hold { background: var(--ink); color: #fff; }
.desk-stamp-none { border-style: dashed; color: var(--ink-2); }
.desk-stamp-block { background: var(--desk-grey); border-color: var(--desk-slate); }
.desk-files { margin-top: 28px; }
.desk-files summary { display: inline-block; cursor: pointer; font-weight: 700; padding: 8px 0; border-bottom: 2px solid var(--ink); }
.desk-files[open] summary { margin-bottom: 8px; }
.desk-files-note { font: 12px var(--mono); color: var(--ink-2); margin-bottom: 14px; }
.desk-files-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.desk-files-scroll { overflow-x: auto; border: 2px solid var(--ink);
  /* Edge shadows appear only while a column is hidden off to that side. */
  background: linear-gradient(to right, #fff 30%, rgb(255 255 255 / 0)) left / 40px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgb(255 255 255 / 0)) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(18 21 27 / .22), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(18 21 27 / .22), transparent) right / 14px 100% no-repeat scroll, #fff; }
.desk-files-swipe { display: none; }
.desk-files table { width: 100%; border-collapse: collapse; font: 13px var(--mono); }
.desk-files caption { text-align: left; padding: 10px 14px; font: 600 12px var(--mono); border-bottom: 2px solid var(--ink); }
.desk-files th { text-align: left; font-weight: 400; font-size: 11px; text-transform: uppercase; color: var(--ink-2); padding: 8px 14px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.desk-files td { padding: 8px 14px; border-bottom: 1px dashed var(--desk-rule); white-space: nowrap; }
.desk-files tr:last-child td { border-bottom: 0; }
.desk-totals { margin-top: 24px; font-size: 15px; color: #333a45; line-height: 1.8; }
.desk-totals strong { font-weight: 800; color: var(--ink); }
.desk-tag { display: inline-block; font: 600 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border: 1.5px solid var(--ink); margin-right: 6px; }
.desk-tag-free { background: var(--desk-yellow); border-color: var(--desk-yellow); }
@media (max-width: 1100px) {
  .desk-sheet-head, .desk-sheet th, .desk-sheet td, .desk-files th, .desk-files td { padding-inline: 10px; }
}
@media (max-width: 899px) {
  .desk { display: none; }
  .desk-pairs { display: grid; gap: 12px; margin: 18px 0 8px; }
  .desk-pair { background: #fff; border: 2px solid var(--ink); padding: 12px 14px; display: grid; gap: 6px; font: 13px/1.5 var(--mono); }
  .desk-pair-fill { box-shadow: 5px 5px 0 var(--desk-yellow); margin-right: 5px; }
  .desk-pair-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 700 15px var(--sans); margin-bottom: 2px; }
  .desk-pair-head .desk-stamp { font-size: 10px; padding: 4px 7px; }
  .desk-pair small { display: inline-block; width: 64px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
  .desk-pair u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
  .desk-files-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .desk-files-swipe { display: inline; }
}

/* ---------- Free preview (matching desk in use) ----------
   Rules for public/preview.html go between this marker and the next one.
   ---------- end of free preview ---------- */
.pd-intro { padding-block: 52px 26px; display: grid; gap: 18px; }
.pd-intro h1 { max-width: 15em; }
.pd-intro .declaration-lead { max-width: 36em; }
.pd-sample { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pd-sample p { font-size: 15px; color: #333a45; }
.preview-desk .message { max-width: 52em; font-size: 15px; }
.preview-desk .message:not(:empty) { background: #fff; border-left: 4px solid var(--ink); padding: 10px 14px; }
.preview-desk .message.error { border: 2px solid var(--error); border-left-width: 6px; }
.pd-stage { padding-bottom: 56px; scroll-margin-top: 24px; }
.pd-desk { display: grid; grid-template-columns: minmax(0, 1fr) 226px minmax(0, 1fr); align-items: start; margin-top: 12px; }
.pd-sheet { background: #fff; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); min-width: 0; }
.pd-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 54px; padding: 0 12px 0 16px; border-bottom: 2px solid var(--ink); }
.preview-desk .pd-sheet-head h3 { font-size: 17px; font-weight: 800; min-width: 0; }
.pd-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pd-choose { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 2px solid var(--ink); background: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pd-choose:hover { background: var(--desk-yellow); }
.pd-file:focus-visible + .pd-choose { outline: 3px solid var(--focus); outline-offset: 2px; background: var(--focus); }
.pd-file-line { height: 36px; line-height: 36px; padding: 0 16px; font: 12px/36px var(--mono); border-bottom: 1px solid var(--ink); background: var(--page); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-peek { width: 100%; border-collapse: collapse; table-layout: fixed; font: 13px var(--mono); }
.pd-peek th, .pd-peek td { padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.pd-peek th { height: 34px; font-weight: 400; font-size: 11px; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.pd-peek td { height: 44px; border-bottom: 1px dashed var(--desk-rule); }
.pd-peek tr:last-child td { border-bottom: 1px solid var(--ink); }
.pd-peek .pd-join-col { background: var(--accent-tint); }
.pd-peek th.pd-join-col { background: var(--desk-yellow); color: var(--ink); font-weight: 600; }
.pd-peek .pd-code-col { box-shadow: inset 2px 0 0 var(--link), inset -2px 0 0 var(--link); }
.pd-peek th.pd-code-col { color: var(--link); font-weight: 600; }
.pd-peek .pd-blank { color: var(--desk-faint); }
.pd-peek-note { caption-side: bottom; text-align: left; padding: 8px 12px 0 16px; font: 11px/1.4 var(--mono); color: var(--ink-2); }
.pd-drop { margin: 14px 16px 0; border: 2px dashed var(--desk-slate); padding: 16px; font-size: 14px; color: #333a45; display: grid; gap: 8px; }
.pd-drop b { color: var(--ink); }
.pd-workbook { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; padding: 14px 16px 0; font-size: 14px; font-weight: 700; }
.pd-workbook label { display: grid; gap: 4px; min-width: 0; }
.pd-parts { list-style: none; margin: 0; padding: 10px 16px 0; font: 12px/1.5 var(--mono); color: var(--ink-2); display: grid; gap: 2px; }
.pd-parts:empty { display: none; }
.pd-parts li { overflow-wrap: anywhere; }
.pd-picks { display: grid; gap: 12px; padding: 14px 16px 16px; }
.pd-pick { display: grid; gap: 4px; font-size: 14px; font-weight: 700; min-width: 0; }
/* Long column names must never widen the page. WebKit can size a select by its longest
   option and spill the text, so selects ignore their content's width (contain), and every
   grid that holds them, or their example lines, may shrink to its container. */
.preview-desk select { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; contain: inline-size; }
.pd-picks, .pd-pick, .pd-link-card > label, .pd-workbook label { grid-template-columns: minmax(0, 1fr); }
.pd-eg, .pd-file-line { min-width: 0; contain: inline-size; }
.preview-desk select, .pd-workbook input { font: 400 15px var(--sans); height: 42px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
/* Keep native select semantics and its option picker, but paint the closed control
   ourselves: Linux WebKit's native appearance lets option text escape its box. */
.preview-desk select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.preview-desk select:disabled { border-color: var(--desk-rule); color: var(--desk-faint); background-color: var(--page); }
.pd-key:not(:disabled) { box-shadow: 4px 4px 0 var(--desk-yellow); }
.pd-code:not(:disabled) { box-shadow: 4px 4px 0 var(--link); }
.pd-eg { display: none; font: 400 12px var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-fixed { font: 12px/1.5 var(--mono); color: var(--ink-2); }
.pd-fixed b { color: var(--ink); font-weight: 600; }
.pd-link { position: relative; align-self: stretch; padding: 168px 14px 0; }
.pd-wire { position: absolute; left: 0; right: 0; top: 107px; height: 10px; }
.pd-wire::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px dashed var(--desk-slate); }
.pd-desk.is-linked .pd-wire { background: var(--desk-yellow); }
.pd-desk.is-linked .pd-wire::before { top: 3px; border-top: 3px solid var(--ink); }
.pd-join { position: absolute; left: 6px; right: 6px; top: 124px; text-align: center; font: 600 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); overflow-wrap: anywhere; }
.pd-desk.is-linked .pd-join { color: var(--ink); }
.pd-link-card { background: #fff; border: 2px solid var(--ink); padding: 12px; display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.pd-link-card > label { display: grid; gap: 4px; }
.pd-link-card select { font-size: 13px; padding: 0 32px 0 6px; }
.pd-link-card p { font: 400 12px/1.4 var(--mono); color: var(--ink-2); }
.pd-recovery { display: grid; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--desk-rule); font-weight: 400; font-size: 13px; }
.pd-recovery label { display: flex; gap: 8px; align-items: start; }
.pd-capitals { display: grid; gap: 10px; justify-items: start; margin-bottom: 24px; padding: 14px 16px; border: 2px dashed var(--ink); background: var(--paper, #fff); font-size: 15px; overflow-wrap: anywhere; }
.pd-run { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 34px; }
.pd-run p { font-size: 14px; color: var(--ink-2); }
.preview-desk .declaration-button:disabled { background: var(--desk-grey); color: var(--ink-2); cursor: not-allowed; }
.pd-clear { font: 600 15px var(--sans); color: var(--ink); background: none; border: 0; border-bottom: 2px solid var(--ink); padding: 4px 0; cursor: pointer; }
.pd-clear:focus-visible, .pd-results:focus-visible, .pd-sheet-head h3:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pd-limits { margin-top: 14px; font-size: 13px; color: var(--ink-2); max-width: 62em; }
.pd-results { background: #fff; border-block: 2px solid var(--ink); padding-block: 60px 72px; }
.pd-results:focus:not(:focus-visible) { outline: none; }
.pd-results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 24px; margin-bottom: 28px; }
.pd-coverage { font: 13px var(--mono); color: var(--ink-2); }
.pd-results-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
/* "Back to your files": a quiet return link, underlined like "Clear both files". */
.pd-back { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink); padding: 4px 0; }
.pd-back:hover { color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.pd-back-row { margin-top: 32px; }
.pd-empty { border: 2px dashed var(--desk-slate); padding: 28px; font-size: 17px; color: #333a45; }
.pd-trays { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 20px; }
.pd-tray { border: 2px solid var(--ink); padding: 20px; display: grid; gap: 10px; align-content: start; background: var(--page); min-width: 0; }
.pd-tray .desk-tag { justify-self: start; margin: 0; }
.pd-tray-fill { background: #fff; box-shadow: 8px 8px 0 var(--desk-yellow); }
.pd-tray-fill .desk-tag { background: var(--desk-yellow); border-color: var(--desk-yellow); }
.pd-tray-review { background: var(--ink); color: #fff; }
.pd-tray-review .desk-tag { border-color: #fff; }
.pd-tray-none { border-style: dashed; background: transparent; }
.pd-big { font-size: 20px; font-weight: 700; line-height: 1.2; }
.pd-big strong { display: block; font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.pd-why { font-size: 14px; color: #333a45; }
.pd-tray-review .pd-why { color: #c9ced6; }
.pd-later { font: 12px/1.5 var(--mono); color: var(--ink-2); border-top: 1px dashed var(--desk-rule); padding-top: 10px; }
.pd-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pd-lines li { display: grid; grid-template-columns: minmax(44px, auto) minmax(0, 1fr); gap: 2px 10px; align-items: baseline; }
.pd-lines strong { font-size: 30px; font-weight: 900; line-height: 1; grid-row: span 2; }
.pd-lines span { font-size: 16px; font-weight: 700; }
.pd-lines small { grid-column: 2; font-size: 13px; color: var(--ink-2); }
.pd-caveat { margin-top: 22px; font-size: 14px; color: var(--ink-2); max-width: 52em; }
.pd-examples { margin-top: 52px; }
.pd-examples-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 14px; }
.pd-examples-head p { font-size: 14px; color: var(--ink-2); }
.pd-ex { list-style: none; padding: 0; margin: 0; }
.pd-ex-row { display: grid; grid-template-columns: minmax(0, .9fr) 210px minmax(0, .7fr) minmax(0, 1.4fr); gap: 0 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--ink); }
.pd-ex-row:last-child { border-bottom: 1px solid var(--ink); }
.pd-cell { border: 2px solid var(--ink); background: var(--page); padding: 8px 12px; font: 13px/1.5 var(--mono); overflow-wrap: anywhere; min-width: 0; }
.pd-cell strong { display: block; font-weight: 400; }
.pd-cell small { display: block; font-size: 11px; color: var(--ink-2); }
.pd-cell-none { border-style: dashed; background: transparent; color: var(--desk-faint); }
.pd-ex-row .desk-stamp { justify-self: center; max-width: 100%; white-space: normal; text-align: center; }
.pd-reason { font-size: 14px; color: #333a45; border-left: 3px solid var(--ink); padding-left: 12px; overflow-wrap: anywhere; }
.pd-ex-row[data-group="fills"] .pd-reason { border-left-color: var(--desk-yellow); }
.pd-next { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 36px; align-items: center; border: 2px solid var(--ink); padding: 22px 24px; background: var(--page); }
.pd-next .desk-tag { margin: 0; }
.pd-next p { margin-top: 8px; font-size: 15px; color: #333a45; max-width: 46em; }
.pd-next a { font-weight: 700; color: var(--ink); }
@media (max-width: 1100px) {
  .pd-ex-row { grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); }
  .pd-ex-row .pd-reason { grid-column: 1 / -1; margin-top: 10px; }
  .pd-trays { grid-template-columns: 1fr 1fr; }
  .pd-tray-none { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .pd-desk { grid-template-columns: minmax(0, 1fr); }
  .pd-sheet { box-shadow: 6px 6px 0 var(--ink); margin-right: 6px; }
  .pd-link { padding: 0 0 0 26px; margin-left: 24px; border-left: 3px dashed var(--desk-slate); }
  .pd-desk.is-linked .pd-link { border-left: 3px solid var(--ink); }
  .pd-wire { display: none; }
  .pd-join { position: static; text-align: left; padding-top: 14px; }
  .pd-link-card { margin: 10px 0 16px; }
}
@media (max-width: 600px) {
  .pd-intro { padding-block: 32px 18px; }
  .pd-peek { display: none; }
  .pd-eg { display: block; }
  .pd-run .declaration-button { width: 100%; }
  .pd-results { padding-block: 40px 48px; }
  .pd-trays { grid-template-columns: 1fr; }
  .pd-tray-fill { box-shadow: 6px 6px 0 var(--desk-yellow); margin-right: 6px; }
  .pd-ex-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 0; }
  .pd-ex-row .pd-cell { border: 0; background: none; padding: 0; }
  .pd-ex-row .pd-cell + .desk-stamp + .pd-cell { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); }
  .pd-ex-row .pd-reason { grid-column: 1 / -1; margin-top: 0; }
  .pd-ex-row .desk-stamp { justify-self: end; font-size: 10px; padding: 4px 7px; }
  .pd-next { grid-template-columns: 1fr; }
}

/* ---------- Public Shopify guide ----------
   Rules for public/guide.html go below this marker.
   ---------- */
/* "pg" = public guide. Only public/guide.html uses these classes. Rules are
   scoped under .pg where they must beat the .landing-declaration defaults. */
.pg-intro { padding-block: 56px 48px; display: grid; gap: 18px; }
.pg-intro h1 { max-width: 15em; }
.pg-intro .declaration-lead { max-width: 34em; }
.pg-route { margin-top: 14px; }
.pg-route ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pg-route a { display: grid; align-content: start; gap: 6px; height: 100%; padding: 12px 14px 14px; background: #fff; border: 2px solid var(--ink); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.pg-route a:hover { background: var(--desk-yellow); color: var(--ink); }
.pg-route span { font: 500 12px/1.4 var(--mono); color: var(--ink-2); }

.pg-section { border-top: 2px solid var(--ink); padding-block: 64px; }
.pg-band { background: #fff; }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px 56px; align-items: start; }
.pg-head { display: grid; gap: 14px; position: sticky; top: 24px; }
.pg .pg-head p { max-width: 24em; color: var(--body); font-size: 16px; }
.pg .pg-head .pg-num { font: 500 13px/1.5 var(--mono); color: var(--ink-2); }
.pg .pg-section h2 { font-size: 36px; line-height: 1.05; }
.pg-body { min-width: 0; display: grid; gap: 28px; }
.pg .pg-text { max-width: 40em; color: var(--body); font-size: 16px; }

/* 01 · The two files face each other, joined by the match rule */
.pg-files { display: grid; grid-template-columns: minmax(0, 1fr) 172px minmax(0, 1fr); align-items: stretch; }
.pg-sheet { background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.pg .pg-sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 12px 16px; border-bottom: 2px solid var(--ink); font-size: 17px; }
.pg-sheet-head span { font: 500 12px var(--mono); color: var(--ink-2); letter-spacing: 0; }
.pg-sheet ul { margin: 0; padding: 14px 18px 16px 34px; display: grid; gap: 8px; font-size: 15px; color: var(--body); }
.pg .pg-link { position: relative; display: grid; place-items: center; padding-inline: 8px; }
.pg-link::before { content: ''; position: absolute; left: 8px; right: 0; top: 50%; border-top: 3px solid var(--ink); }
.pg-link span { position: relative; display: grid; gap: 4px; max-width: 124px; padding: 8px 10px; background: var(--desk-yellow); border: 2px solid var(--ink); font: 500 11px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.pg-link b { font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.pg-rules { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pg-rules > div { padding-block: 14px; border-top: 1px dashed var(--desk-slate); }
.pg-rules dt { font-weight: 800; }
.pg-rules dd { margin: 4px 0 0; font-size: 15px; color: var(--body); }

/* 02 · Limits as a ledger */
.pg-ledger { margin: 0; background: #fff; border: 2px solid var(--ink); }
.pg-ledger > div { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 4px 20px; padding: 14px 18px; border-bottom: 1px dashed var(--desk-rule); }
.pg-ledger > div:last-child { border-bottom: 0; }
.pg-ledger dt { font: 600 12px/1.8 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.pg-ledger dd { margin: 0; font-size: 15px; color: var(--body); }
.pg-ledger dd b { color: var(--ink); font-weight: 800; }

/* 03 · Results, with the landing page's stamps */
.pg .pg-group h3 { font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.pg-results { list-style: none; margin: 0; padding: 0; }
.pg-results li { display: grid; grid-template-columns: 15em minmax(0, 1fr); gap: 10px 24px; align-items: start; padding-block: 16px; border-bottom: 1px dashed var(--desk-rule); }
.pg-results .desk-stamp { justify-self: start; max-width: 100%; white-space: normal; }
.pg .pg-results p { font-size: 15px; color: var(--body); }
.pg-results p b { color: var(--ink); }
.pg-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pg-never { background: var(--ink); color: #fff; padding: 22px; box-shadow: 8px 8px 0 var(--desk-yellow); }
.pg-format { background: var(--page); border: 2px solid var(--ink); padding: 22px; }
.pg .pg-boxes h3 { font-size: 19px; margin-bottom: 12px; }
.pg-boxes ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.pg .pg-format p { font-size: 15px; color: var(--body); }
.pg-format ul { margin-block: 10px; font: 13px/1.6 var(--mono); }

/* 04 · Free preview: what it gives and what it doesn't */
.pg .pg-lead { font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.pg-lead .desk-tag { vertical-align: 3px; }
.pg-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border: 2px solid var(--ink); }
.pg-split > div { padding: 18px 20px; }
.pg-split-not { border-left: 2px dashed var(--ink); }
.pg .pg-split h3 { font: 600 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.pg-split ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.pg .pg-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 05 · Full version steps */
.pg-steps { list-style: none; margin: 0; padding: 0; counter-reset: pg-step; background: #fff; border: 2px solid var(--ink); }
.pg-steps li { counter-increment: pg-step; position: relative; padding: 16px 18px 16px 64px; border-bottom: 1px dashed var(--desk-rule); font-size: 15px; color: var(--body); }
.pg-steps li:last-child { border-bottom: 0; }
.pg-steps li::before { content: counter(pg-step, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font: 600 13px/1.75 var(--mono); color: var(--ink); }
.pg-steps b { color: var(--ink); }

/* 06 · Before Shopify: the rules, the tested case and what Rowvero can check */
.pg-musts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pg-musts li { padding: 16px 18px; background: var(--page); border: 2px solid var(--ink); border-left-width: 8px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.pg-check { border-left: 4px solid var(--ink); padding-left: 16px; }
.pg .pg-check h3 { font-size: 19px; margin-bottom: 6px; }
.pg .pg-check p { max-width: 40em; font-size: 16px; color: var(--body); }

.pg-close { border-top: 2px solid var(--ink); padding-block: 40px 56px; }
.pg-close-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.pg .pg-close p { font: 500 13px/1.5 var(--mono); color: var(--ink-2); }

@media (max-width: 1100px) {
  .pg-route ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-head { position: static; }
  .pg .pg-head p { max-width: 40em; }
}
@media (max-width: 820px) {
  .pg-boxes { grid-template-columns: minmax(0, 1fr); }
  .pg-never { margin-right: 8px; }
}
@media (max-width: 699px) {
  .pg-files { grid-template-columns: minmax(0, 1fr); }
  .pg-sheet { margin-right: 8px; }
  .pg .pg-link { padding: 22px 0 14px; }
  .pg-link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 3px solid var(--ink); }
  .pg-link span { max-width: 16em; }
  .pg-rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pg-intro { padding-block: 32px 36px; }
  .pg-route ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pg-route a { padding: 10px 12px; font-size: 14px; }
  .pg-section { padding-block: 44px; }
  .pg .pg-section h2 { font-size: 30px; }
  .pg-ledger > div { grid-template-columns: minmax(0, 1fr); }
  .pg-results li { grid-template-columns: minmax(0, 1fr); }
  .pg-split { grid-template-columns: minmax(0, 1fr); }
  .pg-split-not { border-left: 0; border-top: 2px dashed var(--ink); }
  .pg-musts { grid-template-columns: minmax(0, 1fr); }
  .pg-musts li { font-size: 17px; }
  .pg .pg-lead { font-size: 19px; }
  .pg-actions .declaration-button, .pg-close .declaration-button { width: 100%; }
  .pg-close { padding-block: 32px 44px; }
}

/* ---------- Site menu and short pages (multi-tab site, approved by Damian, 7 October 2026) ----------
   One menu of ordinary links on every public page; the current page carries aria-current="page". */
.menu-header { background: #fff; border-bottom: 2px solid var(--ink); }
.menu-header .declaration-wrap { display: grid; }
.menu-brand { justify-self: start; padding-block: 16px 14px; }
.menu-tabs { display: flex; align-items: flex-end; margin-bottom: -2px; }
.menu-tabs a { flex: none; display: block; padding: 12px 20px; border: 2px solid var(--ink); margin-right: -2px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.menu-tabs a:hover { background: var(--desk-yellow); color: var(--ink); text-decoration: none; }
.menu-tabs a[aria-current] { background: var(--page); border-bottom-color: var(--page); padding-bottom: 14px; box-shadow: inset 0 4px 0 var(--desk-yellow); }
.menu-tabs a.menu-action { margin-left: auto; margin-right: 0; background: var(--ink); color: #fff; }
.menu-tabs a.menu-action:hover { background: var(--link); color: #fff; }
.menu-tabs a.menu-action[aria-current] { border-bottom-color: var(--ink); padding-bottom: 12px; box-shadow: inset 0 -4px 0 var(--desk-yellow); }
.menu-tabs a:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--focus); outline-offset: 2px; }
.menu-short { display: none; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; padding-block: 44px 40px; }
.home-copy { display: grid; gap: 18px; align-content: center; min-width: 0; }
.landing-declaration .home-copy h1 { font-size: clamp(40px, 4.2vw, 60px); }
.home-copy .declaration-lead { font-size: 19px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 4px; }
.home-note { font-size: 14px; color: var(--ink-2); }
.home-video { margin: 0; min-width: 0; }
.home-video video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; background: #fff; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--desk-yellow); }
.home-explore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 32px 56px; }
.home-explore a { display: grid; gap: 6px; align-content: start; border: 2px solid var(--ink); background: #fff; padding: 18px; color: var(--ink); text-decoration: none; }
.home-explore a:hover { box-shadow: 6px 6px 0 var(--desk-yellow); color: var(--ink); }
.home-explore b { font-size: 18px; }
.home-explore span { font-size: 14px; color: #333a45; }
.page-intro { display: grid; gap: 16px; justify-items: start; padding-block: 44px 24px; }
.landing-declaration .page-title { font-size: clamp(38px, 4.2vw, 56px); max-width: 16em; }
.page-intro .declaration-lead { max-width: 40em; }
.page-intro .declaration-lead a { color: var(--ink); font-weight: 700; }
.page-body { padding-bottom: 56px; }
.landing-declaration .page-sub { font: 600 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 12px; }
.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.outcomes article { border: 2px solid var(--ink); background: #fff; padding: 16px; display: grid; gap: 10px; align-content: start; }
.outcomes .desk-stamp { justify-self: start; }
.outcomes p { font-size: 14px; color: #333a45; }
.outcomes b { color: var(--ink); }
.panel-link { margin-top: 18px; font-size: 15px; }
.panel-link a { font-weight: 700; color: var(--ink); }
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.versions article { border: 2px solid var(--ink); background: #fff; padding: 16px; display: grid; gap: 8px; align-content: start; }
.versions .desk-tag { justify-self: start; }
.versions p { font-size: 14px; color: #333a45; }
.limit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.limit-cards > section { border: 2px solid var(--ink); background: #fff; padding: 18px; display: grid; gap: 10px; align-content: start; }
.landing-declaration .limit-cards h2 { font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.limit-cards ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: #333a45; }
.limit-cards svg { width: 120px; height: 24px; }
.limit-note { font: 12px/1.5 var(--mono); color: var(--ink-2); }
.limit-cards a { font-size: 14px; font-weight: 700; color: var(--ink); }
.limit-cards a::after { content: ' →'; }
.page-intro .test-mode { justify-self: stretch; max-width: 46em; }
.paid-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.paid-body section { border: 2px solid var(--ink); background: #fff; padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.landing-declaration .paid-body h2 { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.paid-body p, .paid-body li { font-size: 15px; color: #333a45; }
.paid-body .list, .paid-body .paid-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.paid-body .paid-cta { display: grid; justify-items: start; gap: 12px; }
.paid-body .text-link { font-weight: 700; color: var(--ink); }
.paid-body .paid-span-2 { grid-column: span 2; }
.price-table { width: 100%; max-width: 30em; border-collapse: collapse; font-size: 15px; }
.price-table caption { text-align: left; font: 600 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding-bottom: 6px; }
.price-table th, .price-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1.5px solid var(--ink); }
.price-table thead th { font: 600 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.price-table td { font-weight: 800; font-size: 18px; color: var(--ink); }
.price-table tbody th { font-weight: 600; color: #333a45; }
/* Net and VAT-inclusive amounts share one size: the inclusive price needs at least equal prominence. */
.price-table-vat td b { display: block; font-size: 18px; font-weight: 800; }
.price-table-vat td span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.price-table-vat td span:last-child { margin-bottom: 0; }
.plan-people { font-size: 15px; }
.unlock-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.unlock-main, .unlock-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.unlock-side form { margin: 0; }
.page-close { border-top: 2px solid var(--ink); padding-block: 30px; }
.page-close .declaration-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.landing-declaration .page-close h2 { font-size: 28px; margin-right: auto; }
@media (max-width: 1100px) {
  .outcomes, .limit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .menu-tabs a { padding-inline: 14px; }
  .menu-long { display: none; }
  .menu-short { display: inline; }
}
@media (max-width: 899px) {
  .home-hero, .paid-body, .unlock-layout { grid-template-columns: 1fr; gap: 28px; }
  .paid-body .paid-span-2 { grid-column: auto; }
}
@media (max-width: 600px) {
  .menu-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; margin-bottom: 14px; }
  /* Labels may wrap rather than overflow: font metrics differ between systems. */
  .menu-tabs a, .menu-tabs a.menu-action { margin: 0 -2px -2px 0; padding: 11px 4px; font-size: 14px; line-height: 1.2; text-align: center; white-space: normal; border-bottom: 2px solid var(--ink); }
  .menu-tabs a[aria-current] { background: var(--ink); color: #fff; border-bottom-color: var(--ink); padding-bottom: 11px; box-shadow: inset 0 -4px 0 var(--desk-yellow); }
  .menu-tabs a.menu-action { background: var(--link); }
  .menu-tabs a.menu-action[aria-current] { padding-bottom: 11px; }
  .home-hero { padding-block: 26px 30px; }
  .landing-declaration .home-copy h1 { font-size: 38px; }
  .home-copy .declaration-lead { font-size: 17px; }
  .home-actions .declaration-button, .page-close .declaration-button { width: 100%; }
  .home-video { margin-right: 6px; }
  .home-video video { box-shadow: 6px 6px 0 var(--desk-yellow); }
  .home-explore, .outcomes, .limit-cards, .versions { grid-template-columns: 1fr; }
  .page-intro { padding-block: 28px 18px; }
  .landing-declaration .page-title { font-size: 36px; }
  .landing-declaration .page-close h2 { margin-right: 0; }
}
@media (max-width: 360px) {
  .menu-tabs a, .menu-tabs a.menu-action { padding-inline: 2px; font-size: 13px; }
}

/* Pricing: plan cards in the desk style. */
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; }
.plan-card { border: 2px solid var(--ink); background: #fff; padding: 22px; display: grid; gap: 10px; align-content: start; }
.plan-card-annual { box-shadow: 10px 10px 0 var(--desk-yellow); }
.landing-declaration .plan-card h3 { font: 600 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.plan-price { font-size: 16px; color: var(--ink-2); }
.plan-price b { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-right: 4px; }
.plan-price span { display: block; font-size: 14px; margin-top: 4px; }
.plan-card p { font-size: 15px; color: #333a45; }
.plan-card .plan-price { color: var(--ink-2); }
.plan-status { justify-self: start; font: 600 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border: 1.5px dashed var(--ink); color: var(--ink); }
.plan-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 36px; }
.plan-details > section { border: 2px solid var(--ink); background: #fff; padding: 18px; display: grid; gap: 10px; align-content: start; }
.plan-details > section.plan-know { border-style: dashed; background: transparent; }
.landing-declaration .plan-details h3 { font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.plan-details ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: #333a45; }
.plan-details a { font-size: 14px; font-weight: 700; color: var(--ink); }
.plan-know > a::after { content: ' →'; }
.landing-declaration .plan-does-title { font: 800 24px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); margin-bottom: 16px; }
.plan-does-steps { max-width: 760px; margin: 0 0 16px; padding-left: 24px; display: grid; gap: 14px; font-size: 17px; }
.plan-does-lead { max-width: 760px; font-size: 17px; }
@media (max-width: 760px) {
  .plan-cards, .plan-details { grid-template-columns: minmax(0, 1fr); }
  .plan-card-annual { box-shadow: 6px 6px 0 var(--desk-yellow); margin-right: 6px; }
}

[id$="-csv-options"]{margin-top:12px;max-width:100%;overflow-wrap:anywhere}[id$="-csv-options"] summary{cursor:pointer}[id$="-csv-options"]>div{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:12px 0}[id$="-csv-options"] label{display:flex;flex-direction:column;gap:6px}[id$="-csv-options"] select,[id$="-csv-options"] input{width:100%;min-width:0;max-width:100%}[id$="-csv-options"] p{font-size:12px}.input-warning{padding:12px;border:2px solid currentColor;margin:12px 0;overflow-wrap:anywhere}
