  /* ---------- self-hosted webfonts ----------
     This page deliberately does not load /styles.css (its body and background
     rules would fight the ones below), so the @font-face block has to be
     restated here or every family silently falls back to a system font and the
     wordmark comes out as Arial Black. Same files and same root-absolute paths
     as the main site, so they are already cached for anyone who has been on
     littleoceans.co.uk. Keep in step with the block at the top of /styles.css. */
  @font-face {
    font-family: "Clash Display"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("/fonts/clash-display-700.woff2") format("woff2");
  }
  @font-face {
    font-family: "Cabinet Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("/fonts/cabinet-grotesk-500.woff2") format("woff2");
  }
  @font-face {
    font-family: "Cabinet Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("/fonts/cabinet-grotesk-700.woff2") format("woff2");
  }
  @font-face {
    font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("/fonts/archivo-black-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
  }
  @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");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
  }
  @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");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
  }

  :root {
    color-scheme: dark;
    --bg: #050810;
    --surface: #0a0f1e;
    --surface-2: #0d1426;
    --text: #f4f2ea;
    --muted: rgba(244, 242, 234, 0.66);
    --faint: rgba(244, 242, 234, 0.42);
    --hairline: rgba(244, 242, 234, 0.13);
    --acid: #3ed6ff;
    --acid-rgb: 62, 214, 255;
    --link: #5b9dff;
    --spark: #c6ff3f;

    /* Severity scale. Always paired with a text label, never colour alone. */
    --now: #ff7a66;
    --soon: #ffc061;
    --worth: #8e9ab4;
    --check: #c6ff3f;

    /* --display is this report's own voice. The LITTLEOCEANS wordmark is not part
       of that, it is the agency's, so it takes --brand and matches .nav-mark on
       the main site. */
    --brand: "Clash Display", "Arial Narrow", sans-serif;
    --display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
    --body: "Cabinet Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--bg); color: var(--text); font-family: var(--body);
    font-size: 1.0625rem; line-height: 1.65;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
  }

  ::selection { background: var(--spark); color: var(--bg); }

  .grain {
    position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  }

  .wrap { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }

  a { color: var(--link); }
  :focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

  .label {
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--muted);
  }

  /* ---------- site bar ---------- */

  .sitebar { border-bottom: 1px solid var(--hairline); padding: 1.1rem 0; }
  .sitebar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

  .mark {
    display: inline-flex; align-items: center; gap: 1px;
    font-family: var(--brand); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
    color: var(--text); text-decoration: none;
  }

  .mark-o {
    width: 0.72em; height: 0.72em; border: 0.14em solid var(--acid);
    border-radius: 50%; display: inline-block; position: relative;
    margin: 0 0.07em; flex: none; box-shadow: 0 0 14px rgba(var(--acid-rgb), 0.5);
  }

  .mark-o::after {
    content: ""; position: absolute; inset: -0.14em;
    border: 0.14em solid var(--acid); border-radius: 50%;
    animation: sonar 2.8s ease-out infinite;
  }

  @keyframes sonar {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(2.3); opacity: 0; }
  }

  .backlink {
    font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted); text-decoration: none;
  }

  .backlink:hover { color: var(--acid); }

  /* ---------- sample notice ---------- */

  .notice { background: var(--surface); border-bottom: 1px solid var(--hairline); padding: 1.4rem 0; }
  .notice-in { display: grid; gap: 0.45rem; border-left: 3px solid var(--spark); padding-left: 1.1rem; max-width: 72ch; }
  .notice strong {
    font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--spark); font-weight: 400;
  }
  .notice p { color: var(--muted); font-size: 0.95rem; }

  /* ---------- masthead ---------- */

  .masthead { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }

  h1 {
    font-family: var(--display); font-size: clamp(2.1rem, 6.5vw, 4rem);
    line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; margin-top: 0.6rem;
  }

  h1 .dom { color: var(--acid); }

  .standfirst {
    max-width: 62ch; margin-top: 1.5rem;
    font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--muted);
  }

  /* ---------- summary infographic ---------- */

  .summary { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--hairline); }

  .stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--hairline); border: 1px solid var(--hairline); margin-top: 2rem;
  }

  @media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

  .stat { background: var(--surface); padding: 1.4rem 1.2rem; display: grid; gap: 0.3rem; }

  .stat b {
    font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1; font-variant-numeric: tabular-nums;
  }

  .stat span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }

  .split { margin-top: 2.5rem; }
  .split-bar { display: flex; gap: 2px; height: 46px; margin-top: 0.9rem; }

  .split-seg {
    display: flex; align-items: center; padding-left: 0.7rem;
    font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
    color: #050810; overflow: hidden; white-space: nowrap;
  }

  .split-key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.9rem; }
  .split-key div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
  .swatch { width: 10px; height: 10px; flex: none; }

  .coverage { margin-top: 2.8rem; }

  .cover-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 1rem;
  }

  .cover-cell {
    background: var(--surface); padding: 0.9rem 1rem;
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  }

  /* The category count rarely divides evenly into the columns, which would leave
   the last cell stranded beside an empty block. Let it span the remainder. */
.cover-cell:last-child { grid-column: auto / -1; justify-content: flex-start; gap: 1.2rem; }

.cover-cell span { font-size: 0.9rem; }
  .cover-cell b { font-family: var(--mono); font-size: 0.85rem; color: var(--acid); font-variant-numeric: tabular-nums; }

  /* ---------- findings ---------- */

  main { padding-top: clamp(2.5rem, 5vw, 4rem); }

  .controls { display: flex; justify-content: flex-end; margin-bottom: 1rem; }

  .expand-all {
    background: none; border: 1px solid var(--hairline); color: var(--muted);
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
    text-transform: uppercase; padding: 0.55rem 0.95rem; cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
  }

  .expand-all:hover { color: var(--acid); border-color: rgba(var(--acid-rgb), 0.5); }

  .tier { --tier: var(--worth); padding-bottom: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 2rem; }
  .tier.now { --tier: var(--now); }
  .tier.soon { --tier: var(--soon); }
  .tier.worth { --tier: var(--worth); }
  .tier.check { --tier: var(--check); }

  .tier-head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 1.1rem;
    padding-bottom: 1.1rem; border-bottom: 2px solid var(--tier);
  }

  .tier-head h2 {
    font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.05; letter-spacing: -0.02em; color: var(--tier);
  }

  .tier-count {
    font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums;
  }

  .tier-why { margin-top: 1.1rem; max-width: 62ch; color: var(--muted); }

  .items { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }

  .item {
    --pad: clamp(1.1rem, 3vw, 1.6rem);
    background: var(--surface); border: 1px solid var(--hairline);
    border-left: 3px solid var(--tier);
  }

  .item-head {
    display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 1.5rem;
    align-items: start; gap: 0.5rem 0;
    padding: var(--pad); cursor: pointer;
    list-style: none; transition: background 0.2s;
  }

  .item-head::-webkit-details-marker { display: none; }
  .item-head::marker { content: ""; }
  .item-head:hover { background: var(--surface-2); }

  .item-n { font-family: var(--mono); font-size: 0.82rem; color: var(--tier); font-variant-numeric: tabular-nums; line-height: 1.7; }

  .item h3 {
    font-family: var(--body); font-size: clamp(1.02rem, 2vw, 1.15rem);
    font-weight: 700; line-height: 1.35; text-wrap: balance;
  }

  .cat {
    display: inline-block; margin-top: 0.5rem;
    font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--faint);
    border: 1px solid var(--hairline); padding: 0.2rem 0.5rem;
  }

  .chev {
    font-family: var(--mono); font-size: 1.15rem; line-height: 1.4;
    color: var(--faint); text-align: right; transition: color 0.2s;
  }

  .chev::before { content: "+"; }
  .item[open] .chev::before { content: "\2212"; }
  .item-head:hover .chev { color: var(--acid); }

  .item[open] > .item-head { border-bottom: 1px solid var(--hairline); }

  .item-body { padding: 1.15rem var(--pad) var(--pad); max-width: 76ch; }

  /* Aligns the body text with the heading rather than the number column. */
  @media (min-width: 600px) { .item-body { padding-left: calc(var(--pad) + 2.4rem); } }

  .item-body p { color: var(--muted); }
  .item-body p + p { margin-top: 0.75rem; }

  .item-body code {
    font-family: var(--mono); font-size: 0.85em; color: var(--text);
    background: var(--surface-2); border: 1px solid var(--hairline); padding: 0.08em 0.35em;
  }

  .ask {
    margin-top: 1.1rem; padding: 0.85rem 1rem;
    background: var(--surface-2); border: 1px solid var(--hairline);
    display: grid; gap: 0.35rem;
  }

  .ask > .label { color: var(--tier); }
  .ask > p { color: var(--text); }

  /* Second half of the panel, addressed to whoever opens the code rather than
     to the owner. Deliberately the approach, not step-by-step implementation. */
  .fix {
    margin-top: 0.85rem; padding-top: 0.8rem;
    border-top: 1px dashed var(--hairline);
    display: grid; gap: 0.3rem;
  }

  .fix .label { color: var(--faint); }
  .fix p { color: var(--muted); font-size: 0.95rem; }

  /* ---------- cta + foot ---------- */

  .cta { border-top: 1px solid var(--hairline); padding: clamp(2.5rem, 6vw, 4rem) 0; }

  .cta h2 {
    font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.8rem);
    line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; max-width: 20ch;
  }

  .cta p { color: var(--muted); max-width: 56ch; margin-top: 1rem; }

  .btn {
    display: inline-block; margin-top: 1.8rem; background: var(--acid); color: #050810;
    font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em;
    text-transform: uppercase; text-decoration: none; padding: 0.95rem 1.6rem;
  }

  .btn:hover { background: var(--text); }

  .foot { border-top: 1px solid var(--hairline); padding: 1.6rem 0 3rem; font-size: 0.85rem; color: var(--muted); }

  @media (prefers-reduced-motion: reduce) {
    .mark-o::after { animation: none; opacity: 0; }
    * { transition-duration: 0.01ms !important; }
  }

  @media print {
    :root {
      color-scheme: light;
      --bg: #fff; --surface: #fff; --surface-2: #fff;
      --text: #000; --muted: #333c4d; --faint: #5a6478; --hairline: #c4c4c4;
      --acid: #0a6a8c; --spark: #40590a;
      --now: #a82f1a; --soon: #744c00; --worth: #4a5464; --check: #40590a;
    }
    /* The site bar stays so the printed report carries the wordmark; only the
       navigation out of it goes. */
    .grain, .backlink, .cta, .controls, .chev { display: none; }
    .sitebar { padding: 0 0 0.8rem; }
    body { font-size: 10pt; line-height: 1.5; }
    .items { display: block; }
    .item { margin-bottom: 0.75rem; }
    .item, .ask, .stat, .cover-cell { page-break-inside: avoid; break-inside: avoid; }
    .tier-head, h1, h2, h3 { page-break-after: avoid; break-after: avoid; }
    .item-head { cursor: auto; }
    p { orphans: 3; widows: 3; }
    .mark-o { box-shadow: none; }
    .mark-o::after { display: none; }
    .split-seg { color: #fff; }
  }

/* ---------- extracted from inline style attributes ----------
   Moved out of the markup so the site-wide CSP needs no style-src 'unsafe-inline'.
   Values are unchanged; these are the priority-bar segments and legend swatches. */
.seg-now   { flex: 5; background: var(--now); }
.seg-soon  { flex: 5; background: var(--soon); }
.seg-worth { flex: 5; background: var(--worth); }
.seg-check { flex: 1; background: var(--check); }
.sw-now    { background: var(--now); }
.sw-soon   { background: var(--soon); }
.sw-worth  { background: var(--worth); }
.sw-check  { background: var(--check); }

/* ---------- site footer ----------
   Mirrors .footer in the root styles.css. Restated here rather than loaded,
   because styles.css also sets body/background rules that would fight this
   page's own. Keep the two in step if the site footer changes. */
.sitefoot {
  border-top: 1px solid var(--hairline);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2.4rem;
  overflow: hidden;
}

.sitefoot-mark {
  font-family: var(--brand); font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 7rem); line-height: 0.95;
  letter-spacing: 0.01em;
  display: flex; align-items: center; justify-content: center;
  color: transparent; -webkit-text-stroke: 2px rgba(244, 242, 234, 0.28);
  transition: -webkit-text-stroke-color 0.5s;
}

.sitefoot-mark:hover { -webkit-text-stroke-color: var(--acid); }

.sitefoot-mark .mark-o {
  border-width: 0.09em;
  box-shadow: 0 0 34px rgba(var(--acid-rgb), 0.35);
  margin: 0 0.05em;
}

.sitefoot-mark .mark-o::after { animation: sonar 3.4s ease-out infinite; opacity: 0.5; }

.sitefoot-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.6rem 2rem;
  margin-top: 2.6rem;
  font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
}

@media (max-width: 760px) {
  .sitefoot-meta { justify-content: center; text-align: center; gap: 0.7rem 1.4rem; }
}

@media print {
  .sitefoot-mark { display: none; }
  .sitefoot { padding-top: 1rem; }
  .sitefoot-meta { margin-top: 0; }
}

/* ---------- export ---------- */
.export { border-top: 1px solid var(--hairline); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }

.export h2 {
  font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.6rem;
  text-wrap: balance; max-width: 24ch;
}

.export-lead { color: var(--muted); max-width: 56ch; margin-top: 0.9rem; }

.export-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.7rem; }

.xbtn {
  background: none; border: 1px solid var(--hairline); color: var(--text);
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.13em;
  text-transform: uppercase; padding: 0.8rem 1.15rem; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.xbtn:hover { border-color: rgba(var(--acid-rgb), 0.55); color: var(--acid); }

.xbtn-primary { background: var(--acid); border-color: var(--acid); color: #050810; }
.xbtn-primary:hover { background: var(--text); border-color: var(--text); color: #050810; }

/* Reserves its own height so confirming a copy does not nudge the page. */
.export-note {
  min-height: 1.4rem; margin-top: 1.1rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--spark);
}

@media print { .export { display: none; } }
