/* Public pages. Brand colours and fonts come from /brand/theme.css. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--font-body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); font-family: var(--font-heading); font-weight: 700; line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -.035em; margin-bottom: 24px; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.025em; margin-bottom: 24px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 16px; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
.measure { max-width: 46rem; }
.eyebrow { color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.lead { max-width: 42rem; font-size: 1.2rem; line-height: 1.55; }
.note, .muted { color: var(--muted); }
.note { font-size: .9rem; }
.action-note { margin-top: 16px; }
.section-note { margin-top: 24px; max-width: 52rem; }
.blue { color: var(--blue); }
.email-address { overflow-wrap: anywhere; }

/* Shared navigation and controls. */
.button.dark, .hero .button { background: var(--navy); color: var(--white); }
.button.dark:hover, .hero .button:hover { background: var(--white); color: var(--navy); border-color: var(--navy); }
.site-header a:focus-visible, .contact-band :focus-visible { outline-color: var(--yellow); }
.site-header .button:focus-visible, .contact-band .button:focus-visible { outline-color: var(--white); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }

/* Section rhythm and page introductions. */
.section, .hero { padding-block: 80px; }
.hero { background: var(--yellow); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero .eyebrow, .hero .note, .hero a:not(.button), .hero .facts dd { color: var(--navy); }
.hero :focus-visible { outline-color: var(--navy); }
.hero-note { border-left: 3px solid var(--navy); padding-left: 24px; }
.hero-note h2 { font-size: 1.5rem; margin-bottom: 8px; }
.hero-note .facts div { border-bottom-color: var(--navy); }
.hero-note .facts div:last-child { border-bottom: 0; }
.logo-canvas { width: 100%; aspect-ratio: 1000/350; }
.logo-canvas img { width: 100%; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; }
.soft { background: var(--soft); }
.facts { margin: 0; }
.facts div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }

/* Decision cards and report catalogue. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--white); }
.card .eyebrow { color: var(--blue); font-size: .72rem; letter-spacing: .08em; }
.card h2 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 16px; }
.card p:not(.eyebrow) { color: var(--muted); font-size: 1rem; flex: 1; }
.card a { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-weight: 700; }
.report-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.report-list article:target { outline: 3px solid var(--blue); outline-offset: 5px; scroll-margin-top: 24px; }
.sample-list { margin-top: 32px; border-top: 1px solid var(--line); }
.sample-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.sample-row .eyebrow { margin-bottom: 8px; }
.sample-row h3 { margin-bottom: 8px; }
.sample-row p:not(.eyebrow) { max-width: 42rem; color: var(--muted); font-size: 1rem; }
.sample-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding-block: 8px; font-size: .95rem; font-weight: 700; }
.sample-download > span[aria-hidden] { font-size: 1.4rem; }
.file-format { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }

/* Contact, footer, and long-form reading. */
.contact-band { background: var(--navy); color: var(--white); }
.contact-band h2, .contact-band a:not(.button), .contact-band .note { color: var(--white); }
.contact-band .button:hover { background: #e6b300; color: var(--navy); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; }
details { border-bottom: 1px solid var(--line); padding-block: 16px; }
summary { cursor: pointer; min-height: 44px; padding-block: 8px; font-weight: 700; color: var(--navy); }
details p { margin: 8px 0 0; max-width: 55rem; color: var(--muted); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.legal h2 { font-size: 1.4rem; line-height: 1.3; margin: 40px 0 16px; }
.legal p { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Optional analytics controls use the same form and button treatment. */
#analytics-preferences { width: min(34rem, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-panel); color: var(--ink); background: var(--white); }
#analytics-preferences::backdrop { background: rgb(11 23 42 / 60%); }
#analytics-preferences h2 { font-size: 1.5rem; }
#privacy-settings { padding: 0; border: 0; background: transparent; color: var(--link); text-align: left; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .hero-grid { gap: 32px; }
  .split { gap: 40px; }
  .section, .hero { padding-block: 64px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 24px; }
}
@media (max-width: 760px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .logo-canvas { max-width: 480px; }
  .hero-note { max-width: 40rem; }
  .report-list { grid-template-columns: 1fr; }
  .sample-row { grid-template-columns: 1fr; gap: 8px; }
  .sample-download { justify-content: flex-start; width: fit-content; }
}
@media (max-width: 480px) {
  .section, .hero { padding-block: 48px; }
  .hero-note { padding-left: 16px; }
  .card { padding: 24px; }
  .actions { gap: 8px 16px; }
  .contact-grid { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  .button, .navlinks .portal-link { border: 1px solid ButtonText; }
  .navlinks a[aria-current="page"] { text-decoration: underline; }
  .site-header, .contact-band { border-bottom: 1px solid CanvasText; }
}
