:root {
  --ink: #07130f;
  --ink-2: #10231c;
  --leaf: #35b765;
  --leaf-dark: #167341;
  --gold: #f5c542;
  --turq: #1fc7be;
  --paper: #f7fbf5;
  --white: #fff;
  --muted: #5f6f68;
  --line: #cbd8d0;
  --red: #d83b3b;
  --amber: #e7a61a;
  --green: #168649;
  --shadow: 0 18px 45px rgba(7, 19, 15, .14);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.62 "Trebuchet MS", "Segoe UI", Arial, sans-serif; overflow-x: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: var(--leaf-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 3px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 4px solid var(--turq); outline-offset: 4px; border-radius: 6px; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-160%); padding: .75rem 1rem; color: var(--ink); background: var(--gold); font-weight: 900; }
.skip-link:focus { transform: none; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 .55rem; color: var(--leaf-dark); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .7em; line-height: 1.05; letter-spacing: -.035em; font-family: "Arial Black", Impact, "Trebuchet MS", sans-serif; }
h1 { font-size: clamp(2.4rem, 8vw, 5.9rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3.15rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
p, li, dd { overflow-wrap: anywhere; }
.lede { max-width: 760px; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.site-header { position: relative; z-index: 30; color: var(--white); background: var(--ink); border-bottom: 5px solid var(--gold); }
.header-main { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; padding: 18px 0 14px; }
.brand-lockup { display: inline-flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; min-width: 0; }
.brand-lockup img { width: 48px; height: 48px; flex: 0 0 auto; }
.brand-lockup span { font-family: "Arial Black", Impact, sans-serif; font-size: 1.03rem; line-height: 1.02; letter-spacing: -.03em; }
.brand-lockup b { color: var(--gold); }
.primary-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem .55rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: .48rem .68rem; color: #e8f5ed; border: 1px solid #315146; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 800; }
.primary-nav a[aria-current="page"], .primary-nav a:hover { color: var(--ink); background: var(--turq); border-color: var(--turq); }
.button, .commercial-cta { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 48px; padding: .78rem 1.1rem; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 13px; box-shadow: 5px 5px 0 var(--ink); font-weight: 900; text-decoration: none; }
.site-header .commercial-cta { border-color: var(--gold); box-shadow: 5px 5px 0 var(--turq); white-space: nowrap; }
.button:hover, .commercial-cta:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.button.dark { color: var(--white); background: var(--ink); border-color: var(--ink); box-shadow: 5px 5px 0 var(--turq); }
.button.ghost { color: var(--ink); background: transparent; }
.hero .button.ghost { color: var(--white); border-color: var(--white); box-shadow: 5px 5px 0 var(--turq); }

main { min-height: 60vh; }
.hero { position: relative; isolation: isolate; padding: clamp(3.8rem, 9vw, 8rem) 0 4.5rem; color: var(--white); background: radial-gradient(circle at 74% 24%, #184c38 0 18%, transparent 42%), linear-gradient(132deg, var(--ink), #0d261d 70%); overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(48deg, transparent 0 30px, rgba(255,255,255,.025) 30px 34px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.hero h1 em { display: block; color: var(--gold); font-style: normal; }
.hero .lede { color: #d8f2e7; }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.date-stamp { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.8rem; padding: .55rem .8rem; border: 1px solid #416456; border-radius: 8px; color: #cfe6da; font: 800 .83rem/1.2 "Liberation Mono", monospace; }
.date-stamp::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 5px rgba(31,199,190,.18); }
.record-dial { position: relative; aspect-ratio: 1; width: min(100%, 420px); margin-inline: auto; border: 16px solid var(--gold); border-radius: 50%; background: repeating-radial-gradient(circle, #08100d 0 11px, #17241f 12px 14px); box-shadow: 0 0 0 16px rgba(245,197,66,.08), var(--shadow); }
.record-dial::before { content: ""; position: absolute; inset: 27%; border: 9px dashed var(--turq); border-radius: 50%; }
.record-dial::after { content: "✓"; position: absolute; inset: 39%; display: grid; place-items: center; color: var(--ink); background: var(--leaf); border-radius: 50%; font: 900 clamp(2rem, 7vw, 4rem)/1 Arial; }
.dial-label { position: absolute; inset: auto 8% 8%; padding: .55rem; text-align: center; color: var(--ink); background: var(--white); border: 2px solid var(--ink); transform: rotate(-3deg); font-weight: 900; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section.dark { color: var(--white); background: var(--ink); }
.section.gold { background: var(--gold); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: end; margin-bottom: 2rem; }
.section-head > :first-child { max-width: 770px; }
.section-head p { max-width: 560px; margin-bottom: 0; }

.ai-disclosure { position: relative; margin-top: -1.9rem; z-index: 4; padding: clamp(1.3rem, 3vw, 2rem); background: var(--white); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 9px 9px 0 var(--turq); }
.ai-disclosure strong { display: block; margin-bottom: .35rem; font-family: "Arial Black", Impact, sans-serif; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.brand-card { position: relative; min-width: 0; }
.brand-card > a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; height: 100%; padding: 1.2rem; color: inherit; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 7px 7px 0 #b9d4c7; text-decoration: none; }
.brand-card > a:hover { transform: translateY(-4px) rotate(-.25deg); box-shadow: 8px 12px 0 var(--turq); }
.brand-card img { width: 72px; height: 72px; padding: 8px; object-fit: contain; background: #edf5ef; border: 1px solid var(--line); border-radius: 50%; image-rendering: auto; }
.brand-card h3 { margin: 0 0 .35rem; }
.brand-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.42; }
.signal-pill { display: inline-flex; align-items: center; gap: .42rem; margin-top: .65rem; padding: .26rem .55rem; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.signal-pill::before { content: ""; width: .68rem; height: .68rem; border-radius: 50%; background: currentColor; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.signal-pill.green { color: var(--green); }
.signal-pill.amber { color: #9a6500; }
.signal-pill.red { color: var(--red); }
.catalogue-filter { display: grid; grid-template-columns: 1fr auto; gap: .7rem; width: min(100%, 620px); margin: 0 0 2rem; }
.catalogue-filter label { grid-column: 1 / -1; font-weight: 900; }
.catalogue-filter input { width: 100%; min-width: 0; padding: .8rem 1rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); }
.result-count { align-self: center; font-weight: 900; white-space: nowrap; }

.legend-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.legend-item { padding: 1.25rem; border-radius: 18px; background: var(--white); border: 2px solid var(--ink); }
.legend-item::before { content: ""; display: block; width: 54px; height: 54px; margin-bottom: .9rem; border-radius: 50%; border: 8px solid #e8eee9; background: currentColor; box-shadow: 0 0 0 3px currentColor; }
.legend-item.green { color: var(--green); }
.legend-item.amber { color: var(--amber); }
.legend-item.red { color: var(--red); }
.legend-item p { color: var(--ink); margin-bottom: 0; }

.soundboard { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .9rem; }
.sound-card { min-width: 0; padding: 1.2rem; color: var(--white); background: var(--ink-2); border: 1px solid #315145; border-radius: 8px 24px 8px 24px; }
.sound-card .knob { width: 52px; height: 52px; margin-bottom: 1rem; border: 8px dotted var(--gold); border-radius: 50%; background: var(--turq); }
.sound-card p { color: #cfe3d7; }

.page-hero { padding: clamp(3rem, 8vw, 6rem) 0; color: var(--white); background: linear-gradient(126deg, var(--ink), #164b37); border-bottom: 12px solid var(--gold); }
.page-hero h1 { max-width: 930px; font-size: clamp(2.6rem, 7vw, 5.25rem); }
.breadcrumbs { margin: 0 0 1.4rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .83rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: var(--turq); }
.breadcrumbs a { color: #d8f2e7; }

.ledger { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 1.4rem; }
.paper-card { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border: 2px solid var(--ink); border-radius: 8px 24px 8px 24px; box-shadow: 8px 8px 0 #d4e2d8; }
.paper-card + .paper-card { margin-top: 1rem; }
.definition-grid { display: grid; grid-template-columns: minmax(110px, .38fr) minmax(0, 1fr); gap: .6rem 1rem; margin: 0; }
.definition-grid dt { color: var(--muted); font-weight: 900; }
.definition-grid dd { margin: 0; font-weight: 800; }
.domain { overflow-wrap: anywhere; word-break: break-word; font-family: "Liberation Mono", monospace; }
.verdict-block { position: relative; padding: 1.4rem; border: 3px solid var(--ink); border-radius: 20px; background: var(--white); }
.verdict-block::before { content: ""; display: block; width: 76px; height: 76px; margin-bottom: 1rem; border-radius: 50%; background: var(--signal-colour); border: 12px solid #edf1ed; box-shadow: 0 0 0 4px var(--signal-colour); }
.verdict-block[data-signal="green"] { --signal-colour: var(--green); }
.verdict-block[data-signal="amber"] { --signal-colour: var(--amber); }
.verdict-block[data-signal="red"] { --signal-colour: var(--red); }
.brand-title-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.brand-title-row > img { width: 130px; height: 130px; padding: 16px; object-fit: contain; background: var(--white); border: 3px solid var(--gold); border-radius: 50%; box-shadow: 8px 8px 0 var(--turq); }
.brand-title-row h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
.evidence-card { min-width: 0; margin: 0; padding: .8rem; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.evidence-card img { width: 100%; aspect-ratio: 1.44; object-fit: cover; object-position: top; border-radius: 10px; background: #dfe6e1; }
.evidence-card figcaption { padding: .8rem .25rem .25rem; color: var(--muted); font-size: .88rem; }
.evidence-card .source-host { display: block; color: var(--ink); font-family: "Liberation Mono", monospace; font-weight: 900; overflow-wrap: anywhere; }
.journey-cta { margin: 2rem 0; padding: 1.5rem; color: var(--white); background: linear-gradient(135deg, var(--ink), #174633); border: 3px solid var(--gold); border-radius: 24px 8px 24px 8px; }
.journey-cta p { max-width: 720px; }
.article-contract { padding: 1rem 1.2rem; background: #e6f3ec; border-left: 8px solid var(--turq); }

.steps { counter-reset: steps; display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 74px; padding: 1rem 1rem 1rem 5.2rem; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; }
.steps li::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); position: absolute; left: 1rem; top: .7rem; color: var(--gold); font: 900 2rem/1 "Arial Black", sans-serif; -webkit-text-stroke: 1px var(--ink); }
.authority-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.authority-links a { padding: .6rem .8rem; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 10px; font-weight: 900; }
.notice { padding: 1rem 1.2rem; background: #fff3c6; border: 2px solid #a57300; border-radius: 12px; }
.urgent { padding: 1.4rem; color: var(--white); background: #761f1f; border: 5px solid var(--gold); border-radius: 18px; }
.policy-shell { max-width: 900px; }
.policy-shell section { margin: 2rem 0; padding: 1.4rem; background: var(--white); border-left: 8px solid var(--turq); box-shadow: 5px 5px 0 #dce8e1; }
.policy-status { display: inline-block; padding: .4rem .65rem; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 6px; font-weight: 900; }

.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 2px solid var(--ink); border-radius: 14px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--white); }
th, td { padding: .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
th { color: var(--white); background: var(--ink); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .35rem; font-weight: 900; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: .8rem; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 9px; }
.field textarea { min-height: 190px; resize: vertical; }

.site-footer { padding: 3rem 0 2rem; color: #d4e7dc; background: var(--ink); border-top: 8px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .5rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #d4e7dc; }
.footer-note { margin-top: 2rem; padding-top: 1rem; color: #9eb7aa; border-top: 1px solid #2f4b40; font-size: .85rem; }

@media (max-width: 980px) {
  .header-main { grid-template-columns: 1fr auto; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; }
  .primary-nav ul { justify-content: flex-start; }
  .hero-grid, .ledger { grid-template-columns: 1fr; }
  .record-dial { width: min(78vw, 360px); }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .soundboard { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 22px), var(--max)); }
  .header-main { gap: .8rem; }
  .brand-lockup span { font-size: .9rem; }
  .brand-lockup img { width: 40px; height: 40px; }
  .site-header .commercial-cta { min-height: 42px; padding: .55rem .65rem; font-size: .76rem; box-shadow: 3px 3px 0 var(--turq); }
  .primary-nav a { padding: .42rem .55rem; font-size: .78rem; }
  .hero { padding-top: 3.2rem; }
  .card-grid, .legend-grid, .soundboard, .evidence-grid { grid-template-columns: 1fr; }
  .brand-card > a { grid-template-columns: 58px minmax(0,1fr); }
  .brand-card img { width: 58px; height: 58px; }
  .brand-title-row { grid-template-columns: 86px minmax(0,1fr); gap: 1rem; }
  .brand-title-row > img { width: 86px; height: 86px; padding: 10px; }
  .brand-title-row h1 { font-size: clamp(2rem, 13vw, 3.2rem); }
  .contact-form { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid, .footer-links { grid-template-columns: 1fr; }
  .catalogue-filter { grid-template-columns: 1fr; }
  .catalogue-filter label { grid-column: auto; }
  .result-count { white-space: normal; }
  .definition-grid { grid-template-columns: 1fr; }
  .definition-grid dd { margin-bottom: .7rem; }
}

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

/* Generated dossier table containment */
.dossier{min-width:0}.dossier table{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

@media (max-width: 650px){table{min-width:0;table-layout:fixed}th,td{overflow-wrap:anywhere;word-break:normal}}

/* Dossier reading measure and brand-image containment. */
.dossier{width:min(1180px,calc(100% - 2rem));margin:0 auto;padding:clamp(2rem,5vw,4.5rem) 0}
.dossier>h1{max-width:1050px}
.dossier figure[data-evidence-type="brand-logo"]{max-width:420px;margin:1.5rem 0}
.dossier figure[data-evidence-type="brand-logo"] img{width:100%;max-height:280px;object-fit:contain}
.dossier>img[data-evidence-type="brand-logo"]{display:block;width:auto;max-width:min(420px,100%);max-height:280px;object-fit:contain;margin:1.5rem 0}
.dossier img[data-evidence-type="brand-logo"]{display:block;width:auto;max-width:min(420px,100%);max-height:280px;object-fit:contain}
