@charset "utf-8";

/* ==========================================================================
   Win4Cancer — civic clinical
   One stylesheet. Cascade layers. No preprocessor, no framework.
   ========================================================================== */

@layer tokens, base, layout, components, pages, utilities;

/* ==========================================================================
   FONTS — self-hosted, latin + latin-ext
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/publicsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/publicsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallbacks so the swap causes no layout shift */
@font-face {
  font-family: 'Public Sans Fallback';
  src: local('Segoe UI'), local('Helvetica Neue'), local('Arial');
  size-adjust: 101.5%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 104%;
  ascent-override: 96%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Segoe UI'), local('Arial');
  size-adjust: 98%;
  ascent-override: 94%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ==========================================================================
   TOKENS
   ========================================================================== */

@layer tokens {
  :root {
    /* ---- colour: hex fallback, then oklch where supported ---- */
    --ink: #17323d;
    --ink-soft: #3d5560;
    --petrol: #22525f;
    --petrol-deep: #143039;
    --teal: #276676;
    --teal-soft: #e3eef1;
    --paper: #faf7f2;
    --paper-sunk: #f2ede5;
    --card: #ffffff;
    --ember: #b8531f;
    --ember-deep: #92400f;
    --ember-wash: #fbeee5;
    --gold: #d9a442;
    --gold-soft: #f6e6c4;
    --rule: #d8d3ca;
    --rule-strong: #b9b2a6;
    --positive: #2c7350;
    --positive-wash: #e6f1ea;
    --warn: #9a6412;
    --warn-wash: #fbf1dd;
    --danger: #9c2f2f;
    --danger-wash: #f8e8e6;

    --on-petrol: #f3f7f8;
    --on-petrol-dim: #b8ced4;
    --on-ember: #ffffff;

    /* ---- type ---- */
    --font-display: 'Fraunces', 'Fraunces Fallback', Georgia, 'Times New Roman', serif;
    --font-body: 'Public Sans', 'Public Sans Fallback', 'Segoe UI', Tahoma, sans-serif;
    --font-data: 'Archivo', 'Archivo Fallback', 'Segoe UI', Tahoma, sans-serif;

    --fs-base: clamp(1.0625rem, 1.0313rem + 0.156vw, 1.1875rem); /* 17 -> 19 */
    --fs-sm: clamp(0.9375rem, 0.9219rem + 0.078vw, 1rem);
    --fs-xs: 0.875rem;
    --fs-lg: clamp(1.1875rem, 1.125rem + 0.313vw, 1.375rem);
    --fs-h4: clamp(1.1875rem, 1.125rem + 0.313vw, 1.375rem);
    --fs-h3: clamp(1.375rem, 1.25rem + 0.625vw, 1.75rem);
    --fs-h2: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
    --fs-h1: clamp(2.125rem, 1.65rem + 2.375vw, 3.5rem);
    --fs-display: clamp(2.75rem, 1.9rem + 4.25vw, 5.25rem);
    --fs-jackpot: clamp(3.25rem, 1.85rem + 7vw, 7rem);

    --lh-tight: 1.08;
    --lh-snug: 1.22;
    --lh-body: 1.62;
    --lh-loose: 1.72;

    /* ---- space: 4px base, geometric ---- */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 2.75rem;
    --sp-8: 3.75rem;
    --sp-9: 5rem;
    --sp-10: 7rem;

    /* ---- layout ---- */
    --measure: 68ch;
    --shell: 78rem;
    --shell-wide: 90rem;
    --gutter: clamp(1.125rem, 0.6rem + 2.6vw, 3rem);
    --tap: 48px;

    /* ---- form ---- */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(20, 48, 57, 0.06), 0 2px 6px rgba(20, 48, 57, 0.04);
    --shadow: 0 2px 4px rgba(20, 48, 57, 0.05), 0 12px 28px -14px rgba(20, 48, 57, 0.22);
    --shadow-lg: 0 4px 8px rgba(20, 48, 57, 0.06), 0 28px 60px -26px rgba(20, 48, 57, 0.3);

    --ease: cubic-bezier(0.2, 0, 0, 1);
    --dur: 320ms;
    --dur-fast: 160ms;
  }

  @supports (color: oklch(0.5 0.1 200)) {
    :root {
      --ink: oklch(0.24 0.045 215);
      --ink-soft: oklch(0.42 0.032 215);
      --petrol: oklch(0.38 0.078 210);
      --petrol-deep: oklch(0.25 0.06 212);
      --teal: oklch(0.495 0.098 197);
      --teal-soft: oklch(0.94 0.019 200);
      --paper: oklch(0.975 0.011 85);
      --paper-sunk: oklch(0.945 0.015 85);
      --card: oklch(1 0 0);
      --ember: oklch(0.55 0.147 42);
      --ember-deep: oklch(0.45 0.13 45);
      --ember-wash: oklch(0.955 0.02 45);
      --gold: oklch(0.76 0.115 82);
      --gold-soft: oklch(0.92 0.06 85);
      --rule: oklch(0.87 0.012 85);
      --rule-strong: oklch(0.76 0.015 85);
      --positive: oklch(0.5 0.09 155);
      --positive-wash: oklch(0.95 0.022 155);
      --warn: oklch(0.5 0.11 70);
      --warn-wash: oklch(0.96 0.035 82);
      --danger: oklch(0.45 0.14 25);
      --danger-wash: oklch(0.95 0.025 25);
      --on-petrol: oklch(0.97 0.006 205);
      --on-petrol-dim: oklch(0.83 0.024 205);
    }
  }

  @property --tick {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
  }
}

/* ==========================================================================
   BASE
   ========================================================================== */

@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
  }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    font-synthesis-weight: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: var(--lh-snug);
    letter-spacing: -0.014em;
    margin: 0;
    text-wrap: balance;
    font-variation-settings: 'opsz' 40, 'SOFT' 0, 'WONK' 0;
  }
  h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-tight);
    letter-spacing: -0.022em;
    font-variation-settings: 'opsz' 120, 'SOFT' 0, 'WONK' 0;
  }
  h2 { font-size: var(--fs-h2); letter-spacing: -0.018em; font-variation-settings: 'opsz' 72; }
  h3 { font-size: var(--fs-h3); }
  h4 { font-size: var(--fs-h4); font-weight: 600; }

  p, ul, ol, dl, table, figure, blockquote { margin: 0 0 var(--sp-4); }
  p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

  a {
    color: var(--teal);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
  }
  a:hover { color: var(--ember); }

  strong, b { font-weight: 700; }

  small { font-size: var(--fs-sm); }

  img, picture, svg, video { max-width: 100%; height: auto; display: block; }

  hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: var(--sp-6) 0;
  }

  ul, ol { padding-left: 1.35em; }
  li + li { margin-top: 0.35em; }

  code, kbd, samp { font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: 0.92em; }

  table { border-collapse: collapse; width: 100%; }
  caption { text-align: left; }

  :focus-visible {
    outline: 2px solid var(--ember);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
  }
  :focus:not(:focus-visible) { outline: none; }

  ::selection { background: var(--gold-soft); color: var(--ink); }

  [hidden] { display: none !important; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

@layer layout {
  .shell {
    width: min(100% - (var(--gutter) * 2), var(--shell));
    margin-inline: auto;
  }
  .shell--wide { width: min(100% - (var(--gutter) * 2), var(--shell-wide)); }
  .shell--narrow { width: min(100% - (var(--gutter) * 2), 52rem); }

  .section { padding-block: var(--sp-8); }
  .section--tight { padding-block: var(--sp-7); }
  .section--loose { padding-block: var(--sp-9); }
  .section--sunk { background: var(--paper-sunk); }
  .section--petrol {
    background: var(--petrol-deep);
    color: var(--on-petrol);
    position: relative;
    isolation: isolate;
  }
  .section--petrol::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  }
  .section--petrol h1,
  .section--petrol h2,
  .section--petrol h3 { color: var(--on-petrol); }
  .section--petrol a:not(.btn):not(.pill) { color: var(--gold); }
  .section--petrol a:not(.btn):not(.pill):hover { color: #fff; }

  /* The editorial rail: narrow label column + wide content column */
  .rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4) var(--sp-7);
  }
  .rail__label {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--dim, var(--ink-soft));
    padding-top: 0.45em;
  }
  .section--petrol .rail__label { color: var(--on-petrol-dim); }
  .rail__label::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--rule-strong);
    margin-top: 0.7em;
  }
  .section--petrol .rail__label::after { background: color-mix(in oklab, var(--on-petrol) 32%, transparent); }

  .rail > *:not(.rail__label) { container-type: inline-size; }
  @media (min-width: 60rem) {
    .rail { grid-template-columns: 12rem minmax(0, 1fr); }
    .rail__label { padding-top: 0.85em; }
  }

  .stack > * + * { margin-top: var(--sp-4); }
  .stack-lg > * + * { margin-top: var(--sp-6); }
  .stack-xl > * + * { margin-top: var(--sp-7); }

  .grid { display: grid; gap: var(--sp-5); }
  .grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
  .grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
  /* Exactly two columns, whatever the container width — for photo pairs and 2x2 sets. */
  .grid--pair { grid-template-columns: 1fr; }
  @media (min-width: 44rem) { .grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

  .cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    align-items: center;
  }

  .prose { max-width: var(--measure); }
  .prose h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); scroll-margin-top: 6rem; }
  .prose h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); scroll-margin-top: 6rem; }
  .prose h2:first-child { margin-top: 0; }
  .prose p { line-height: var(--lh-loose); }
  .prose ul, .prose ol { line-height: var(--lh-loose); }
  .prose li + li { margin-top: 0.5em; }
  .prose table { margin-block: var(--sp-5); }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

@layer components {

  /* ---- skip link ---- */
  .skip {
    position: absolute;
    left: var(--sp-4);
    top: var(--sp-4);
    z-index: 200;
    transform: translateY(-160%);
    background: var(--ember);
    color: var(--on-ember);
    padding: 0.7em 1.2em;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--dur-fast) var(--ease);
  }
  .skip:focus { transform: translateY(0); color: var(--on-ember); }

  /* ---- buttons ---- */
  .btn {
    --btn-bg: var(--ember);
    --btn-fg: var(--on-ember);
    --btn-bd: var(--ember);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: var(--tap);
    padding: 0.72em 1.5em;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1.5px solid var(--btn-bd);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
      transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  }
  .btn:hover {
    --btn-bg: var(--ember-deep);
    --btn-bd: var(--ember-deep);
    color: var(--on-ember);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  .btn:active { transform: translateY(0); }
  .btn[disabled], .btn[aria-disabled='true'] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  .btn--lg { font-size: var(--fs-lg); padding: 0.85em 1.9em; }
  .btn--full { width: 100%; }
  .btn--secondary {
    --btn-bg: transparent;
    --btn-fg: var(--petrol);
    --btn-bd: var(--rule-strong);
  }
  .btn--secondary:hover {
    --btn-bg: var(--teal-soft);
    --btn-bd: var(--teal);
    color: var(--petrol-deep);
  }
  .btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--teal);
    --btn-bd: transparent;
    padding-inline: 0.6em;
  }
  .btn--ghost:hover { --btn-bg: var(--teal-soft); --btn-bd: transparent; color: var(--petrol-deep); }
  .btn--onpetrol {
    --btn-bg: transparent;
    --btn-fg: var(--on-petrol);
    --btn-bd: color-mix(in oklab, var(--on-petrol) 45%, transparent);
  }
  .btn--onpetrol:hover {
    --btn-bg: color-mix(in oklab, var(--on-petrol) 12%, transparent);
    --btn-bd: var(--on-petrol);
    color: var(--on-petrol);
  }
  .btn--danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: var(--danger); }
  .btn--danger:hover { --btn-bg: var(--danger); --btn-bd: var(--danger); color: #fff; }

  /* ---- compliance strip ---- */
  .strip {
    background: var(--petrol-deep);
    color: var(--on-petrol-dim);
    font-size: var(--fs-xs);
    font-family: var(--font-data);
    letter-spacing: 0.02em;
  }
  .strip__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.4rem;
    align-items: baseline;
    justify-content: center;
    padding-block: 0.5rem;
    text-align: center;
  }
  .strip__inner p { margin: 0; line-height: 1.45; }
  .strip__licences { flex: 0 1 auto; }
  .strip__eligibility { flex: 0 1 auto; }
  @media (max-width: 47.99rem) {
    .strip { font-size: 0.8125rem; }
    .strip__inner { gap: 0.1rem; }
    .strip__inner p { flex: 1 1 100%; }
  }
  .strip b { color: var(--on-petrol); font-weight: 700; }
  .strip a { color: var(--gold); }

  /* ---- header ---- */
  .masthead {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in oklab, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
  }
  @supports not (backdrop-filter: blur(4px)) {
    .masthead { background: var(--paper); }
  }
  .masthead__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem var(--sp-4);
    min-height: 4.5rem;
    padding-block: 0.6rem;
    flex-wrap: wrap;
  }
  .masthead__bar > .brand { flex: 0 0 auto; }
  .masthead__bar > .langswitch,
  .masthead__bar > .btn { flex: 0 0 auto; }
  .brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none;
    color: var(--ink);
    margin-right: auto;
    line-height: 1.1;
  }
  .brand:hover { color: var(--ink); }
  .brand__mark {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.024em;
    font-variation-settings: 'opsz' 60, 'WONK' 1;
    color: var(--petrol-deep);
  }
  .brand__mark em { font-style: normal; color: var(--ember); }
  .brand__sub {
    font-family: var(--font-data);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .navtoggle { display: inline-flex; }
  .navtoggle__box {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 22px;
  }
  .navtoggle__box span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  }
  .navtoggle[aria-expanded='true'] .navtoggle__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .navtoggle[aria-expanded='true'] .navtoggle__box span:nth-child(2) { opacity: 0; }
  .navtoggle[aria-expanded='true'] .navtoggle__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .mainnav {
    flex: 1 1 22rem;
    min-width: 0;
  }
  .mainnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem 0.1rem;
  }
  .mainnav li { margin: 0; }
  .mainnav a {
    display: block;
    padding: 0.5em 0.6em;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
  }
  .mainnav a:hover { background: var(--teal-soft); color: var(--petrol-deep); }
  .mainnav a[aria-current='page'] {
    color: var(--petrol-deep);
    box-shadow: inset 0 -2px 0 var(--ember);
    border-radius: 0;
  }
  .mainnav a.is-highlight { color: var(--ember-deep); }

  .langswitch {
    display: inline-flex;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .langswitch a {
    display: grid;
    place-items: center;
    min-width: 2.9rem;
    min-height: calc(var(--tap) - 8px);
    padding-inline: 0.4rem;
    font-family: var(--font-data);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    text-decoration: none;
  }
  .langswitch a:hover { background: var(--teal-soft); color: var(--petrol-deep); }
  .langswitch a[aria-current='true'] { background: var(--petrol); color: var(--on-petrol); }

  @media (max-width: 74.99rem) {
    .mainnav {
      display: none;
      width: 100%;
      padding-bottom: var(--sp-4);
    }
    .masthead.is-open .mainnav { display: block; }
    .masthead.is-open .masthead__bar { flex-wrap: wrap; }
    .mainnav ul { flex-direction: column; gap: 0; }
    .mainnav a {
      padding: 0.8em 0.6em;
      border-bottom: 1px solid var(--rule);
      border-radius: 0;
      font-size: var(--fs-base);
    }
    .mainnav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--ember); }
  }
  @media (min-width: 75rem) {
    .navtoggle { display: none; }
  }

  /* ---- footer ---- */
  .colophon {
    background: var(--petrol-deep);
    color: var(--on-petrol-dim);
    padding-block: var(--sp-8) var(--sp-6);
    font-size: var(--fs-sm);
    position: relative;
    isolation: isolate;
  }
  .colophon::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  }
  .colophon h2, .colophon h3 { color: var(--on-petrol); }
  .colophon a:not(.btn) { color: var(--on-petrol); text-decoration-color: color-mix(in oklab, var(--on-petrol) 45%, transparent); }
  .colophon a:not(.btn):hover { color: var(--gold); }
  .colophon__grid {
    display: grid;
    gap: var(--sp-6);
    grid-template-columns: 1fr;
  }
  @media (min-width: 48rem) {
    .colophon__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-7); }
  }
  .colophon__head {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--on-petrol);
    margin-bottom: var(--sp-3);
  }
  .colophon ul { list-style: none; margin: 0; padding: 0; }
  .partnermark { width: auto; height: 1.45rem; margin-bottom: 0.2rem; }
  .colophon li + li { margin-top: 0.55em; }
  .colophon__legalline {
    margin-top: var(--sp-7);
    padding-top: var(--sp-5);
    border-top: 1px solid color-mix(in oklab, var(--on-petrol) 22%, transparent);
    font-size: var(--fs-xs);
    line-height: 1.75;
    font-family: var(--font-data);
    color: var(--on-petrol-dim);
  }
  .colophon__base {
    margin-top: var(--sp-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3) var(--sp-5);
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-xs);
  }

  /* ---- badges & pills ---- */
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.3em 0.75em;
    border-radius: 999px;
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--teal-soft);
    color: var(--petrol-deep);
    border: 1px solid transparent;
  }
  .pill--live { background: var(--positive-wash); color: var(--positive); }
  .pill--live::before {
    content: '';
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2.4s var(--ease) infinite;
  }
  .pill--warn { background: var(--warn-wash); color: var(--warn); }
  .pill--closed { background: var(--paper-sunk); color: var(--ink-soft); }
  .pill--gold { background: var(--gold-soft); color: var(--ember-deep); }
  .pill--onpetrol {
    background: color-mix(in oklab, var(--on-petrol) 14%, transparent);
    color: var(--on-petrol);
    border-color: color-mix(in oklab, var(--on-petrol) 26%, transparent);
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }

  .licenceline {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    line-height: 1.65;
    letter-spacing: 0.015em;
    color: var(--dim, var(--ink-soft));
  }
  .section--petrol .licenceline { color: var(--on-petrol-dim); }
  .licenceline b { font-weight: 700; color: inherit; }

  /* ---- CTA block: button + mandatory microcopy ---- */
  .ctablock { display: grid; gap: var(--sp-3); justify-items: start; }
  .ctablock--center { justify-items: center; text-align: center; }
  .ctablock__note {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--dim, var(--ink-soft));
  }
  .section--petrol .ctablock__note { color: var(--on-petrol-dim); }

  /* ---- cards ---- */
  .card {
    container-type: inline-size;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
  }
  .card--flat { background: transparent; border-color: var(--rule); }
  .card--sunk { background: var(--paper-sunk); border-color: transparent; }
  .card__eyebrow {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--dim, var(--ink-soft));
    margin-bottom: var(--sp-2);
  }

  /* ---- ticket card: the perforation motif. Used here and nowhere else. ---- */
  .ticket {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    background: var(--card);
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: var(--sp-5) var(--sp-5) var(--sp-5) calc(var(--sp-5) + 0.9rem);
    transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .ticket::before {
    content: '';
    position: absolute;
    left: 0.85rem;
    top: 0.9rem;
    bottom: 0.9rem;
    width: 2px;
    background-image: radial-gradient(circle at 1px 4px, var(--rule) 0 2.4px, transparent 2.6px);
    background-size: 2px 11px;
    background-repeat: repeat-y;
  }
  .ticket:hover { border-color: var(--teal); transform: translateY(-2px); }
  .ticket--featured {
    border-color: var(--ember);
    box-shadow: var(--shadow-sm);
  }
  .ticket--featured::before { background-image: radial-gradient(circle at 1px 4px, var(--ember) 0 2.4px, transparent 2.6px); }
  .ticket__flag {
    position: absolute;
    top: -0.75rem;
    right: var(--sp-4);
  }
  .ticket__qty {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--petrol-deep);
    font-variation-settings: 'opsz' 72;
  }
  .ticket__price {
    font-family: var(--font-data);
    font-size: var(--fs-lg);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ember-deep);
  }
  .ticket__unit {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
  }

  /* ---- jackpot ---- */
  .jackpot { display: grid; gap: var(--sp-2); }
  .jackpot__label {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--on-petrol-dim);
  }
  .jackpot__figure {
    font-family: var(--font-display);
    font-size: var(--fs-jackpot);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: var(--gold);
    font-variant-numeric: tabular-nums lining-nums;
    font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  }
  /* Narrower columns need a smaller figure, or a seven-character amount wraps. */
  .jackpot__figure--compact { font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.25rem); white-space: nowrap; }
  .jackpot__figure--medium { font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.75rem); white-space: nowrap; }
  .jackpot__take {
    font-family: var(--font-data);
    font-size: var(--fs-lg);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--on-petrol);
  }
  .jackpot__note {
    font-size: var(--fs-sm);
    color: var(--on-petrol-dim);
    max-width: 42ch;
  }

  /* ---- countdown ---- */
  .countdown { display: grid; gap: var(--sp-2); }
  .grid > .countdown { grid-template-rows: auto auto 1fr; }
  .grid > .countdown .countdown__label { min-height: 2.6em; display: flex; align-items: flex-end; }
  .countdown__label {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--dim, var(--ink-soft));
  }
  .section--petrol .countdown__label { color: var(--on-petrol-dim); }
  .countdown__cells { display: flex; gap: var(--sp-2); }
  .countdown__cell {
    display: grid;
    gap: 0.15rem;
    justify-items: center;
    min-width: 3.9rem;
    padding: 0.55rem 0.4rem;
    background: var(--paper-sunk);
    border-radius: var(--radius);
  }
  .section--petrol .countdown__cell,
  .countdown--onpetrol .countdown__cell {
    background: color-mix(in oklab, var(--on-petrol) 10%, transparent);
    border: 1px solid color-mix(in oklab, var(--on-petrol) 18%, transparent);
  }
  .countdown__num {
    font-family: var(--font-data);
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--petrol-deep);
    min-width: 2.1ch;
    text-align: center;
  }
  .section--petrol .countdown__num,
  .countdown--onpetrol .countdown__num { color: var(--on-petrol); }
  .countdown__unit {
    font-family: var(--font-data);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim, var(--ink-soft));
  }
  .section--petrol .countdown__unit,
  .countdown--onpetrol .countdown__unit { color: var(--on-petrol-dim); }
  .countdown__target {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    color: var(--dim, var(--ink-soft));
    font-variant-numeric: tabular-nums;
  }
  .section--petrol .countdown__target { color: var(--on-petrol-dim); }

  /* ---- notices ---- */
  /* A notice keeps its own light ground and dark ink even inside a dark section. */
  .notice {
    display: grid;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-5);
    border-left: 4px solid var(--teal);
    background: var(--teal-soft);
    color: var(--ink);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
  }
  .section--petrol .notice,
  .hero .notice { color: var(--ink); }
  .section--petrol .notice a:not(.btn),
  .hero .notice a:not(.btn) { color: var(--teal); }
  .section--petrol .notice a:not(.btn):hover,
  .hero .notice a:not(.btn):hover { color: var(--ember-deep); }
  .notice .helpcard { background: var(--card); border-color: var(--rule); }
  .notice .helpcard__phone { color: var(--ember-deep); }
  .notice .helpcard__meta { color: var(--ink-soft); }
  .notice__title { font-weight: 700; font-family: var(--font-body); font-size: var(--fs-base); }
  .notice--warn { border-color: var(--warn); background: var(--warn-wash); }
  .notice--positive { border-color: var(--positive); background: var(--positive-wash); }
  .notice--danger { border-color: var(--danger); background: var(--danger-wash); }
  .notice--plain { border-color: var(--rule-strong); background: var(--paper-sunk); }

  /* ---- steps ---- */
  .steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--sp-5); }
  .steps > li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 2.85rem minmax(0, 1fr);
    gap: var(--sp-4);
    margin: 0;
  }
  .steps > li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 50%;
    border: 1.5px solid var(--rule-strong);
    font-family: var(--font-data);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ember-deep);
    background: var(--card);
  }
  .steps h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
  .section--petrol .steps > li::before {
    background: transparent;
    border-color: color-mix(in oklab, var(--on-petrol) 35%, transparent);
    color: var(--gold);
  }

  /* ---- data tables ---- */
  .tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dtable {
    font-family: var(--font-data);
    font-size: var(--fs-sm);
    font-variant-numeric: tabular-nums;
    min-width: 40rem;
  }
  .dtable caption {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--dim, var(--ink-soft));
    padding-bottom: var(--sp-3);
  }
  .dtable th, .dtable td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
  }
  .dtable thead th {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1.5px solid var(--rule-strong);
    white-space: nowrap;
  }
  .dtable tbody tr:hover { background: var(--paper-sunk); }
  .dtable tbody tr.is-past td { color: var(--ink-soft); }
  .dtable tbody tr[aria-current] {
    background: var(--gold-soft);
    box-shadow: inset 3px 0 0 var(--ember);
  }
  .dtable tbody tr[aria-current]:hover { background: var(--gold-soft); }
  .dtable .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .dtable__ticket { letter-spacing: 0.04em; font-weight: 700; color: var(--petrol-deep); }

  /* Card reflow for narrow screens */
  @media (max-width: 47.99rem) {
    .dtable--reflow { min-width: 0; }
    .dtable--reflow thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .dtable--reflow tbody tr {
      display: grid;
      gap: 0.2rem;
      padding: var(--sp-4) 0;
      border-bottom: 1px solid var(--rule);
    }
    .dtable--reflow tbody tr[aria-current] { padding-left: var(--sp-4); }
    .dtable--reflow td { border: 0; padding: 0.15rem 0; display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--sp-3); }
    .dtable--reflow td::before {
      content: attr(data-th);
      font-size: var(--fs-xs);
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--ink-soft);
    }
    .dtable--reflow td.is-lead { grid-template-columns: 1fr; margin-bottom: 0.3rem; }
    .dtable--reflow td.is-lead::before { display: none; }
    .dtable--reflow td.is-lead { font-size: var(--fs-base); font-weight: 700; color: var(--petrol-deep); }
  }

  /* ---- accordion ---- */
  .accordion { border-top: 1px solid var(--rule); }
  .accordion details {
    border-bottom: 1px solid var(--rule);
  }
  .accordion summary {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: 1.15rem 0;
    min-height: var(--tap);
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: var(--fs-lg);
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    color: var(--petrol-deep);
  }
  .accordion summary::-webkit-details-marker { display: none; }
  .accordion summary::after {
    content: '';
    flex: 0 0 auto;
    margin-left: auto;
    width: 0.72em;
    height: 0.72em;
    margin-top: 0.4em;
    border-right: 2.5px solid var(--ember);
    border-bottom: 2.5px solid var(--ember);
    transform: rotate(45deg);
    transition: transform var(--dur-fast) var(--ease);
  }
  .accordion details[open] summary::after { transform: rotate(-135deg); margin-top: 0.62em; }
  .accordion summary:hover { color: var(--ember-deep); }
  .accordion__body {
    padding-bottom: var(--sp-5);
    max-width: var(--measure);
    line-height: var(--lh-loose);
  }

  /* ---- trust badges ---- */
  .trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--sp-3);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  }
  .trust li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    margin: 0;
    padding: var(--sp-4);
    border: 1px solid color-mix(in oklab, var(--on-petrol) 20%, transparent);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    line-height: 1.5;
  }
  .trust svg { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; color: var(--gold); }

  /* ---- stat block ---- */
  .stats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
  .stats li { margin: 0; }
  .stats__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.6rem + 1.8vw, 2.9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ember);
    font-variation-settings: 'opsz' 96;
  }
  .section--petrol .stats__value { color: var(--gold); }
  .stats__label { display: block; margin-top: 0.5rem; font-size: var(--fs-sm); line-height: 1.45; color: var(--dim, var(--ink-soft)); }
  .section--petrol .stats__label { color: var(--on-petrol-dim); }

  /* ---- forms ---- */
  .field { display: grid; gap: 0.35rem; margin-bottom: var(--sp-5); }
  .field__label { font-weight: 700; font-size: var(--fs-sm); }
  .field__req { color: var(--ember-deep); font-weight: 700; }
  .field__help { font-size: var(--fs-sm); color: var(--dim, var(--ink-soft)); line-height: 1.5; }
  .field__err {
    display: none;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--danger);
    line-height: 1.45;
  }
  .field.is-invalid .field__err { display: block; }

  .input, .select, .textarea {
    width: 100%;
    min-height: var(--tap);
    padding: 0.7em 0.85em;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.4;
    color: var(--ink);
    background: var(--card);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  }
  .input:hover, .select:hover, .textarea:hover { border-color: var(--teal); }
  .input:focus-visible, .select:focus-visible, .textarea:focus-visible {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--teal) 22%, transparent);
  }
  .field.is-invalid .input,
  .field.is-invalid .select,
  .field.is-invalid .textarea { border-color: var(--danger); }
  .textarea { min-height: 9rem; resize: vertical; }
  .select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2317323d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9em center;
    padding-right: 2.6em;
  }
  .input[type='date'] { padding-block: 0.6em; }

  .check {
    display: grid;
    grid-template-columns: 1.45rem 1fr;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: var(--sp-4);
    font-size: var(--fs-sm);
    line-height: 1.55;
    cursor: pointer;
  }
  .check input[type='checkbox'] {
    width: 1.45rem;
    height: 1.45rem;
    margin: 0.1rem 0 0;
    accent-color: var(--ember);
    cursor: pointer;
  }
  .check.is-invalid { color: var(--danger); }

  .switchrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--rule);
  }
  .switchrow:last-child { border-bottom: 0; }
  .switchrow__text { display: grid; gap: 0.2rem; }
  .switchrow__title { font-weight: 700; }
  .switchrow__meta { font-size: var(--fs-sm); color: var(--ink-soft); font-family: var(--font-data); font-variant-numeric: tabular-nums; }
  .switch {
    position: relative;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 3.4rem;
    height: var(--tap);
    cursor: pointer;
  }
  .switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
  }
  .switch__track {
    width: 3.2rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--rule-strong);
    transition: background var(--dur-fast) var(--ease);
    position: relative;
  }
  .switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-fast) var(--ease);
  }
  .switch input:checked + .switch__track { background: var(--positive); }
  .switch input:checked + .switch__track::after { transform: translateX(1.45rem); }
  .switch input:focus-visible + .switch__track {
    outline: 2px solid var(--ember);
    outline-offset: 3px;
  }

  .meter { display: grid; gap: 0.4rem; }
  .meter__bar {
    height: 0.5rem;
    border-radius: 999px;
    background: var(--paper-sunk);
    overflow: hidden;
  }
  .meter__fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--rule-strong);
    transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .meter[data-level='1'] .meter__fill { width: 25%; background: var(--danger); }
  .meter[data-level='2'] .meter__fill { width: 50%; background: var(--warn); }
  .meter[data-level='3'] .meter__fill { width: 75%; background: var(--teal); }
  .meter[data-level='4'] .meter__fill { width: 100%; background: var(--positive); }
  .meter__text { font-size: var(--fs-sm); color: var(--ink-soft); }

  .criteria { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.3rem; font-size: var(--fs-sm); }
  .criteria li { margin: 0; padding-left: 1.6em; position: relative; color: var(--ink-soft); }
  .criteria li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 0.85em;
    height: 0.85em;
    border: 1.5px solid var(--rule-strong);
    border-radius: 50%;
  }
  .criteria li.is-met { color: var(--positive); }
  .criteria li.is-met::before {
    border-color: var(--positive);
    background: var(--positive);
    box-shadow: inset 0 0 0 2px var(--card);
  }

  .formnote {
    font-size: var(--fs-sm);
    color: var(--dim, var(--ink-soft));
    line-height: var(--lh-loose);
  }

  /* ---- dialog ---- */
  dialog {
    max-width: min(42rem, calc(100vw - 2rem));
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
  }
  dialog::backdrop { background: rgba(20, 48, 57, 0.55); backdrop-filter: blur(3px); }
  .dialog__body { padding: var(--sp-6); }
  .dialog__head { display: flex; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-4); }
  .dialog__head h2 { font-size: var(--fs-h3); }
  .dialog__foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
  }

  /* ---- cookie banner ---- */
  .cookiebar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 90;
    background: var(--petrol-deep);
    color: var(--on-petrol);
    border-top: 3px solid var(--ember);
    box-shadow: 0 -14px 40px -20px rgba(20, 48, 57, 0.6);
  }
  .cookiebar[hidden] { display: none; }
  .cookiebar__inner {
    display: grid;
    gap: var(--sp-4);
    padding-block: var(--sp-5);
  }
  @media (min-width: 60rem) {
    .cookiebar__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-6); }
  }
  .cookiebar h2 { font-size: var(--fs-h4); color: var(--on-petrol); margin-bottom: 0.4rem; }
  .cookiebar p { font-size: var(--fs-sm); color: var(--on-petrol-dim); max-width: 62ch; margin: 0; }
  .cookiebar a:not(.btn) { color: var(--gold); }
  .cookiebar__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
  .cookiebar__actions .btn { flex: 1 1 auto; }
  @media (min-width: 60rem) {
    .cookiebar__actions { flex-wrap: nowrap; }
    .cookiebar__actions .btn { flex: 0 0 auto; }
  }

  .catrow {
    display: grid;
    gap: var(--sp-2);
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--rule);
  }
  .catrow:last-of-type { border-bottom: 0; }
  .catrow__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
  .catrow__name { font-weight: 700; }
  .catrow__purpose { font-size: var(--fs-sm); color: var(--ink-soft); }
  .catrow__meta {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.1rem;
  }
  .catrow__locked {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--positive);
  }

  /* ---- table of contents ---- */
  .toc { font-size: var(--fs-sm); }
  .toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
  .toc li { margin: 0; counter-increment: toc; }
  .toc a {
    display: grid;
    grid-template-columns: 1.9rem 1fr;
    gap: 0.4rem;
    padding: 0.42rem 0;
    color: var(--ink-soft);
    text-decoration: none;
    line-height: 1.4;
  }
  .toc a::before {
    content: counter(toc) '.';
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
    color: var(--rule-strong);
  }
  .toc a:hover { color: var(--ember-deep); }
  .toc a:hover::before { color: var(--ember); }
  .toc a.is-active { color: var(--petrol-deep); font-weight: 700; }
  .toc a.is-active::before { color: var(--ember); }

  .legal { display: grid; gap: var(--sp-6); }
  @media (min-width: 68rem) {
    .legal { grid-template-columns: 16rem minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
    .legal__aside { position: sticky; top: 7rem; max-height: calc(100vh - 9rem); overflow-y: auto; }
  }
  .legal__aside-head {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--rule-strong);
    margin-bottom: var(--sp-2);
  }
  @media (max-width: 67.99rem) {
    .legal__aside details { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
    .legal__aside summary {
      padding: 0.85rem 1rem;
      min-height: var(--tap);
      display: flex;
      align-items: center;
      font-weight: 700;
      cursor: pointer;
    }
    .legal__aside .toc { padding: 0 1rem 0.85rem; }
    .legal__aside-head { display: none; }
  }

  .clauselist { counter-reset: clause; list-style: none; padding: 0; margin: 0; }
  .clauselist > li {
    counter-increment: clause;
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: var(--sp-3);
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--rule);
    margin: 0;
    scroll-margin-top: 6rem;
  }
  .clauselist > li::before {
    content: counter(clause);
    font-family: var(--font-data);
    font-size: var(--fs-sm);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ember);
    padding-top: 0.18em;
  }
  .clauselist ol { list-style: lower-alpha; margin-top: var(--sp-3); }

  /* ---- account shell ---- */
  .account { display: grid; gap: var(--sp-6); }
  @media (min-width: 62rem) {
    .account { grid-template-columns: 16.5rem minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
    .account__rail { position: sticky; top: 7rem; }
  }
  .accountnav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .accountnav li { margin: 0; }
  .accountnav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: var(--tap);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-decoration: none;
    white-space: nowrap;
  }
  .accountnav a:hover { background: var(--teal-soft); color: var(--petrol-deep); }
  .accountnav a[aria-current='true'] {
    background: var(--petrol);
    color: var(--on-petrol);
  }
  .accountnav svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; }
  @media (max-width: 61.99rem) {
    .accountnav {
      overflow-x: auto;
      scrollbar-width: thin;
      border-bottom: 1px solid var(--rule);
      margin-inline: calc(var(--gutter) * -1);
      padding-inline: var(--gutter);
    }
    .accountnav ul { grid-auto-flow: column; grid-auto-columns: max-content; gap: 0.2rem; }
    .accountnav a { border-radius: 0; border-bottom: 3px solid transparent; }
    .accountnav a[aria-current='true'] {
      background: transparent;
      color: var(--petrol-deep);
      border-bottom-color: var(--ember);
    }
  }
  .account__panel { min-height: 24rem; container-type: inline-size; }
  .account__panel[hidden] { display: none; }
  .account__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3) var(--sp-5);
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: var(--sp-4);
    margin-bottom: var(--sp-5);
    border-bottom: 1.5px solid var(--rule-strong);
  }
  .account__head h2 { scroll-margin-top: 6rem; }

  .authcard {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
  }
  @media (min-width: 40rem) { .authcard { padding: var(--sp-7); } }

  .authwrap { display: grid; gap: var(--sp-6); align-items: start; }
  @media (min-width: 62rem) {
    .authwrap { grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--sp-8); }
  }

  /* Two columns only when the element's own container is wide enough — a viewport
     query gets this wrong inside a narrow card. */
  .cq { container-type: inline-size; }
  .datalist { margin: 0; display: grid; gap: 0; }
  .datalist > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule);
  }
  @container (min-width: 34rem) {
    .datalist > div { grid-template-columns: 12rem minmax(0, 1fr); gap: var(--sp-4); align-items: baseline; }
  }
  .datalist > div:last-child { border-bottom: 0; }
  .datalist dt { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); margin: 0; }
  .section--petrol .datalist dt,
  .hero .datalist dt { color: var(--on-petrol-dim); }
  .section--petrol .datalist > div,
  .hero .datalist > div { border-bottom-color: color-mix(in oklab, var(--on-petrol) 20%, transparent); }
  .section--petrol .card__eyebrow { color: var(--on-petrol-dim); }
  .datalist dd { margin: 0; }

  .emptystate {
    display: grid;
    gap: var(--sp-3);
    justify-items: start;
    padding: var(--sp-6);
    border: 1.5px dashed var(--rule-strong);
    border-radius: var(--radius-lg);
    background: var(--paper-sunk);
  }
  .emptystate h3 { font-size: var(--fs-h4); }
  .emptystate p { font-size: var(--fs-sm); color: var(--ink-soft); max-width: 46ch; margin: 0; }

  .toast {
    position: fixed;
    left: 50%;
    bottom: var(--sp-5);
    transform: translateX(-50%);
    z-index: 120;
    display: grid;
    gap: 0.2rem;
    min-width: min(24rem, calc(100vw - 2rem));
    padding: var(--sp-4) var(--sp-5);
    background: var(--petrol-deep);
    color: var(--on-petrol);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: var(--fs-sm);
  }
  .toast[hidden] { display: none; }
  .toast--positive { border-left: 4px solid var(--positive); }
  .toast--danger { border-left: 4px solid var(--danger); }

  .figure { margin: 0; display: grid; gap: var(--sp-3); }
  /* A single accent photograph should not run the full measure of a text column. */
  .figure--inset { max-width: 46rem; }
  .figure img { border-radius: var(--radius-lg); width: 100%; }
  .figure figcaption { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; }
  .imgph {
    display: block;
    width: 100%;
    aspect-ratio: var(--ar, 3 / 2);
    border-radius: var(--radius-lg);
    background:
      linear-gradient(135deg, color-mix(in oklab, var(--petrol) 92%, #000) 0%, var(--petrol) 55%, var(--teal) 100%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
  .imgph::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  }

  .breadcrumb { font-size: var(--fs-sm); }
  .breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.55rem; }
  .breadcrumb li { margin: 0; display: flex; gap: 0.55rem; align-items: center; color: var(--dim, var(--ink-soft)); }
  .breadcrumb li + li::before { content: '/'; color: var(--rule-strong); }
  .breadcrumb a { color: var(--dim, var(--ink-soft)); }
  .breadcrumb a:hover { color: var(--ember-deep); }

  .helpcard {
    display: grid;
    gap: 0.3rem;
    padding: var(--sp-4) var(--sp-5);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--card);
  }
  .section--petrol .helpcard {
    background: color-mix(in oklab, var(--on-petrol) 8%, transparent);
    border-color: color-mix(in oklab, var(--on-petrol) 22%, transparent);
  }
  .helpcard__name { font-weight: 700; }
  /* Third-party mark, supplied white on transparency. It appears only where the ground
     is dark; on a light card the plain name stands in for it. Never recoloured. */
  .helpcard__logo { display: none; width: auto; height: 1.6rem; margin-bottom: 0.15rem; }
  .section--petrol .helpcard__logo,
  .hero .helpcard__logo,
  .cookiebar .helpcard__logo { display: block; }
  .section--petrol .helpcard__logo + .helpcard__name,
  .hero .helpcard__logo + .helpcard__name,
  .cookiebar .helpcard__logo + .helpcard__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .notice .helpcard__logo { display: none; }
  .notice .helpcard__logo + .helpcard__name { position: static; width: auto; height: auto; clip-path: none; }
  .helpcard__phone {
    font-family: var(--font-data);
    font-size: var(--fs-lg);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ember-deep);
    text-decoration: none;
  }
  .section--petrol .helpcard__phone { color: var(--gold); }
  .helpcard__meta { font-size: var(--fs-sm); color: var(--dim, var(--ink-soft)); }
  .section--petrol .helpcard__meta { color: var(--on-petrol-dim); }
}

/* ==========================================================================
   PAGES
   ========================================================================== */

@layer pages {

  /* ---- hero ---- */
  .hero {
    position: relative;
    isolation: isolate;
    background: var(--petrol-deep);
    color: var(--on-petrol);
    overflow: hidden;
    padding-block: var(--sp-8) var(--sp-9);
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
      radial-gradient(120% 90% at 82% 18%, color-mix(in oklab, var(--teal) 42%, transparent) 0%, transparent 62%),
      linear-gradient(168deg, var(--petrol-deep) 0%, #10262e 100%);
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
  }
  .hero h1 { color: var(--on-petrol); }
  .hero a:not(.btn) { color: var(--gold); }
  /* A notice inside the hero keeps its own light ground, so links go back to ink colours. */
  .hero .notice a:not(.btn) { color: var(--teal); }
  .hero .notice a:not(.btn):hover { color: var(--ember-deep); }
  .hero .notice .helpcard__phone { color: var(--ember-deep); }
  .hero .notice .helpcard__meta { color: var(--ink-soft); }

  .hero__grid { display: grid; gap: var(--sp-6); align-items: center; }
  @media (min-width: 64rem) {
    .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--sp-8); align-items: stretch; }
    .hero--bleed { padding-right: 0; }
    .hero--bleed .hero__media {
      margin-right: calc((100vw - var(--shell)) / -2 - var(--gutter));
      align-self: stretch;
      display: grid;
    }
    .hero--bleed .hero__media picture { display: block; height: 100%; }
    .hero--bleed .hero__media img {
      height: 100%;
      /* Without a cap, a tall left column crops a 16:9 photograph down to a slot.
         Retune object-position when the photography is replaced. */
      max-height: 34rem;
      object-fit: cover;
      object-position: 42% 58%;
    }
    .hero--bleed .hero__media { align-items: center; }
  }
  .hero__media img, .hero__media .imgph { border-radius: var(--radius-lg); }
  @media (min-width: 64rem) {
    .hero--bleed .hero__media img,
    .hero--bleed .hero__media .imgph { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  }
  .hero__eyebrow {
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .hero__lede { font-size: var(--fs-lg); color: var(--on-petrol-dim); max-width: 46ch; line-height: 1.55; }

  /* One orchestrated page-load reveal */
  .reveal > * {
    animation: rise var(--dur) var(--ease) backwards;
  }
  .reveal > *:nth-child(1) { animation-delay: 40ms; }
  .reveal > *:nth-child(2) { animation-delay: 130ms; }
  .reveal > *:nth-child(3) { animation-delay: 220ms; }
  .reveal > *:nth-child(4) { animation-delay: 310ms; }
  .reveal > *:nth-child(5) { animation-delay: 400ms; }
  .reveal > *:nth-child(6) { animation-delay: 480ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal > * { animation: fade 0.001ms backwards; }
    @keyframes fade { from { opacity: 1; } to { opacity: 1; } }
  }

  .pagehead {
    padding-block: var(--sp-7) var(--sp-6);
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }
  .pagehead__inner { display: grid; gap: var(--sp-4); }
  .pagehead h1 { max-width: 22ch; }
  .pagehead__lede { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 56ch; line-height: 1.55; }

  /* pairing diagram */
  .pairing {
    display: grid;
    gap: var(--sp-4);
    align-items: center;
    justify-items: center;
    text-align: center;
  }
  @media (min-width: 44rem) {
    .pairing { grid-template-columns: 1fr auto 1fr; }
  }
  .pairing__op {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--ember);
    line-height: 1;
  }
  .pairing__stub {
    position: relative;
    width: 100%;
    max-width: 19rem;
    padding: var(--sp-5) var(--sp-5) var(--sp-5) calc(var(--sp-5) + 0.9rem);
    border-radius: var(--radius-lg);
    text-align: left;
  }
  .pairing__stub--main { background: var(--petrol); color: var(--on-petrol); }
  .pairing__stub--add { background: var(--ember); color: var(--on-ember); }
  .pairing__stub::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 0.9rem;
    bottom: 0.9rem;
    width: 2px;
    background-image: radial-gradient(circle at 1px 4px, currentColor 0 2.4px, transparent 2.6px);
    background-size: 2px 11px;
    opacity: 0.55;
  }
  .pairing__kind {
    display: block;
    font-family: var(--font-data);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    opacity: 0.85;
  }
  .pairing__title { display: block; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; margin-top: 0.3rem; line-height: 1.2; }
  .pairing__price { display: block; font-family: var(--font-data); font-size: var(--fs-lg); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 0.45rem; }

  /* filters */
  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    align-items: flex-end;
    padding: var(--sp-4) var(--sp-5);
    background: var(--paper-sunk);
    border-radius: var(--radius-lg);
    margin-bottom: var(--sp-5);
  }
  .filters .field { margin-bottom: 0; min-width: 12rem; }
  .filters__count {
    margin-left: auto;
    font-family: var(--font-data);
    font-size: var(--fs-sm);
    color: var(--dim, var(--ink-soft));
    font-variant-numeric: tabular-nums;
    padding-bottom: 0.7rem;
  }

  .equipment { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
  .equipment > li {
    display: grid;
    gap: var(--sp-2) var(--sp-5);
    padding: var(--sp-5) 0;
    border-bottom: 1px solid var(--rule);
    margin: 0;
  }
  @media (min-width: 52rem) {
    .equipment > li { grid-template-columns: minmax(0, 1fr) 9rem; align-items: start; }
  }
  .equipment__amount {
    font-family: var(--font-data);
    font-size: var(--fs-lg);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ember-deep);
    text-align: left;
  }
  @media (min-width: 52rem) { .equipment__amount { text-align: right; } }
  .equipment__year {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

@layer utilities {
  .vh {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .u-measure { max-width: var(--measure); }
  .u-center { margin-inline: auto; }
  .u-tac { text-align: center; }
  .u-dim { color: var(--dim, var(--ink-soft)); }
  .section--petrol .u-dim { color: var(--on-petrol-dim); }
  .u-sm { font-size: var(--fs-sm); }
  .u-xs { font-size: var(--fs-xs); }
  .u-lg { font-size: var(--fs-lg); }
  .u-data { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
  .u-bold { font-weight: 700; }
  .u-mt-0 { margin-top: 0; }
  .u-mt-2 { margin-top: var(--sp-2); }
  .u-mt-3 { margin-top: var(--sp-3); }
  .u-mt-4 { margin-top: var(--sp-4); }
  .u-mt-5 { margin-top: var(--sp-5); }
  .u-mt-6 { margin-top: var(--sp-6); }
  .u-mt-7 { margin-top: var(--sp-7); }
  .u-mt-8 { margin-top: var(--sp-8); }
  .u-mb-0 { margin-bottom: 0; }
  .u-nowrap { white-space: nowrap; }
  .u-flow > * + * { margin-top: var(--sp-4); }

  .missing { background: #ffe0e0; color: #a00; outline: 2px dashed #a00; font-family: monospace; font-size: 0.85em; }

  @media print {
    @page { margin: 16mm 15mm 18mm; }

    .masthead, .colophon, .cookiebar, .skip, .strip, .btn, .filters,
    .legal__aside, .breadcrumb, .toc, .hero__media, .figure,
    [data-block], [data-countdown], [data-chrome], .imgph, .trust,
    .section--petrol, .pagehead .pill, #state-announcer { display: none !important; }

    html { font-size: 10.5pt; }
    body { background: #fff; color: #000; }

    .section, .section--tight, .section--loose, .pagehead { padding-block: 0 !important; }
    .shell, .shell--wide, .shell--narrow { width: 100% !important; }
    .legal { display: block !important; }
    .prose { max-width: none; }
    .prose h2 { margin-top: 14pt; margin-bottom: 4pt; font-size: 13pt; break-after: avoid; }
    .prose h3 { margin-top: 9pt; margin-bottom: 3pt; font-size: 11pt; break-after: avoid; }
    .prose p, .prose li { line-height: 1.42; margin-bottom: 5pt; }
    .prose li + li { margin-top: 2pt; }

    h1 { font-size: 18pt; line-height: 1.15; margin-bottom: 4pt; }
    .pagehead__lede { font-size: 10.5pt; margin-bottom: 2pt; }

    /* Chrome fragments a grid row badly across printed pages, which collapses the
       nested lists to one character per line. Plain block flow prints correctly. */
    .clauselist > li {
      display: block;
      padding: 4pt 0 4pt 22pt;
      position: relative;
      break-inside: auto;
    }
    .clauselist > li::before {
      position: absolute;
      left: 0;
      top: 4pt;
      font-size: 9.5pt;
      padding-top: 0;
    }
    .clauselist ul, .clauselist ol { margin-top: 4pt; }

    .dtable { font-size: 9pt; min-width: 0; }
    .dtable th, .dtable td { padding: 3pt 5pt; }
    table, tr, .card { break-inside: avoid; }

    .licenceline { font-size: 8.5pt; }
    a { color: #000; text-decoration: none; }
    a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 8pt; }
    a[href^='/']::after, a[href^='#']::after, a[href^='mailto']::after { content: none; }
  }
}

/* ==========================================================================
   DARK-SURFACE TEXT CONTRACT
   Muted text reads --dim. Dark surfaces re-point that one variable instead of
   restating every selector, so a new component inherits the correct colour.
   ========================================================================== */

@layer utilities {
  .hero,
  .section--petrol,
  .colophon,
  .cookiebar,
  .countdown--onpetrol,
  .card--onpetrol {
    --dim: var(--on-petrol-dim);
  }

  /* Anything that paints its own light ground opts back out. */
  .notice,
  .card:not(.card--onpetrol),
  .authcard,
  .emptystate,
  dialog,
  .pairing__stub {
    --dim: var(--ink-soft);
  }

  .card--onpetrol {
    background: transparent;
    border-color: color-mix(in oklab, var(--on-petrol) 22%, transparent);
    color: var(--on-petrol);
  }

  .hero .btn--ghost,
  .section--petrol .btn--ghost,
  .colophon .btn--ghost { --btn-fg: var(--on-petrol); }
  .hero .btn--ghost:hover,
  .section--petrol .btn--ghost:hover,
  .colophon .btn--ghost:hover {
    --btn-bg: color-mix(in oklab, var(--on-petrol) 14%, transparent);
    color: var(--on-petrol);
  }

  .section--petrol .dtable :is(th, td),
  .hero .dtable :is(th, td) { border-bottom-color: color-mix(in oklab, var(--on-petrol) 20%, transparent); }
  .section--petrol .dtable thead th,
  .hero .dtable thead th { border-bottom-color: color-mix(in oklab, var(--on-petrol) 38%, transparent); }
  .section--petrol .dtable tbody tr:hover,
  .hero .dtable tbody tr:hover { background: color-mix(in oklab, var(--on-petrol) 7%, transparent); }
}
