/* COAD shared theme layer, November 2026.
   Loaded after each page's own styles. Gives every page the home page's typefaces,
   navy and gold palette, top bar and menu. Page content and layout are not changed.
   Colour budget: pale ground, navy structure, gold for actions only. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/public-sans-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/public-sans-latin-wght-italic.woff2) format('woff2'); }

:root {
  --navy:    #1A2B4A;
  --navyMid: #22375E;
  --slate:   #2C4576;
  --teal:    #1A2B4A;   /* former accent on light surfaces becomes navy */
  --tealLt:  #C9D2E0;   /* former accent on dark surfaces becomes pale blue-grey */
  --orange:  #1A2B4A;
  --green:   #1A2B4A;
  --purple:  #1A2B4A;
  --yellow:  #E3E9F3;
  --bgLight: #F4F6F3;
  --bgCard:  #FFFFFF;
  --textDk:  #1A2B4A;
  --textMd:  #44506A;
  --textLt:  #5B6680;
  --divider: #D5DBD6;
  --coad-gold: #F5B700;
  --coad-gold-hi: #FFC929;
  --coad-display: 'Bricolage Grotesque', 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --coad-body: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body { font-family: var(--coad-body) !important; background-color: var(--bgLight); }
h1, h2, h3, h4, .topbar-logo, .drw-logo, .footer-logo { font-family: var(--coad-display) !important; letter-spacing: -0.015em; }
h1 { letter-spacing: -0.025em; }
button, input, select, textarea { font-family: inherit; }

/* Links on light surfaces: navy and underlined, so colour is not the only cue */
main a:not([class]), article a:not([class]), .container a:not([class]), section a:not([class]) { text-decoration: underline; text-underline-offset: 3px; }

/* Gold is for actions only */
.btn-primary, .nav-cta, .topbar-pill, .drw-cta, .cta-button, a.btn, button.btn {
  background: var(--coad-gold) !important; color: #1A2B4A !important; border-color: var(--coad-gold) !important;
  box-shadow: 0 2px 0 #B98900, 0 8px 18px rgba(10,18,36,0.22);
}
.btn-primary:hover, .nav-cta:hover, .topbar-pill:hover, .drw-cta:hover, .cta-button:hover, a.btn:hover, button.btn:hover { background: var(--coad-gold-hi) !important; }

/* Shared top bar and menu */
#site-topbar { border-bottom: 1px solid rgba(255,255,255,0.14) !important; }
.topbar-logo span, .drw-logo span, .nav-logo span { color: #C9D2E0 !important; }
.drw-header { border-bottom: 1px solid rgba(255,255,255,0.14) !important; }
.drw-link { color: #C9D2E0; }
.drw-label { color: #9AA6BA; }
.drw-close { color: #C9D2E0; }
.drw-link.active { color: #FFFFFF !important; border-left-color: #FFFFFF !important; background: rgba(255,255,255,0.09); }
#site-drawer:not(.open) { box-shadow: none; }

/* Text sitting on dark surfaces */
footer a, .pull-quote a, .hero a, .page-hero a { color: #FFFFFF; }
footer, footer p, footer div, .footer-copyright, .footer-note,
.hero-sub, .hero-meta, .hero-meta *, .hero p, .page-hero p, .print-btn,
.cta-section p, .cta-band p, .cta p, .cta-block p { color: #C9D2E0 !important; }
.print-btn { border-color: rgba(255,255,255,0.4) !important; }

/* Keyboard focus */
:focus-visible { outline: 3px solid #1A2B4A; outline-offset: 3px; }
#site-topbar :focus-visible, #site-drawer :focus-visible, footer :focus-visible, .hero :focus-visible { outline-color: var(--coad-gold-hi); }

/* Words never wait for an animation; device "reduce motion" is honoured */
.reveal, [class*="reveal-delay"] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ───────────── Look and feel shared with the home page ───────────── */

/* Hero: navy sky with the drawn town and crowd, words on the left */
.coad-hero {
  position: relative; overflow: hidden; text-align: left !important;
  background: linear-gradient(#0E1933, #0E1933) bottom / 100% 132px no-repeat, linear-gradient(180deg, #111C34 0%, #1A2B4A 42%, #2C4576 100%) !important;
  padding: 64px max(24px, calc((100% - 1072px) / 2)) 400px !important;
}
.coad-hero > * { position: relative; z-index: 1; max-width: 760px; margin-left: 0 !important; margin-right: 0 !important; }
.coad-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem) !important; font-weight: 800 !important; line-height: 1.05 !important; color: #fff !important; }
.coad-hero p, .coad-hero .hero-sub { font-size: 1.14rem !important; color: #E3E9F3 !important; }
.coad-hero .hero-meta { justify-content: flex-start !important; }
.coad-hero .hero-chip { background: none !important; border: 0 !important; padding: 0 !important; color: #C9D2E0 !important; font-size: 1rem !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; }
.coad-scene { position: absolute !important; left: 0; right: 0; bottom: 130px; width: 100%; max-width: none !important; height: 280px; z-index: 0 !important; display: block; overflow: hidden; }

/* The first block of content lifts over the hero's bottom edge */
.coad-lift { position: relative; z-index: 3; background: #fff; border-radius: 14px; padding: 12px 28px 22px; box-shadow: 0 2px 4px rgba(10,18,36,0.08), 0 20px 44px rgba(10,18,36,0.22); }
.coad-lift > * { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; }
.coad-lift > * + * { border-left: 1px solid #D5DBD6 !important; }

/* Wider reading column, flat cards, larger headings */
.container { max-width: 1000px; }
.card, .gap-card, .funding-card, .precedent { box-shadow: none !important; border: 1px solid #D5DBD6; border-radius: 12px; }
.section-header { border-bottom: 2px solid #1A2B4A !important; }
.section-header h2, .container h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 750; line-height: 1.15 !important; }
.stat-val, .funding-pct { font-family: var(--coad-display) !important; font-weight: 800 !important; letter-spacing: -0.03em; color: #1A2B4A !important; }
.stat-val { font-size: clamp(2.2rem, 4.4vw, 3.2rem) !important; }

/* Statements, as on the home page */
.pull-quote { background: #1A2B4A !important; border: 0 !important; border-radius: 14px !important; padding: 34px 38px !important; }
.pull-quote p, .pull-quote blockquote { font-family: var(--coad-display); font-style: normal !important; font-size: clamp(1.15rem, 2.2vw, 1.5rem) !important; font-weight: 500; line-height: 1.38 !important; color: #fff !important; border-left: 3px solid rgba(255,255,255,0.45); padding-left: 18px; }
.pull-quote::before { display: none !important; }
.pull-quote cite { padding-left: 21px; color: #C9D2E0 !important; }

/* Photographs */
.coad-photo { margin: 0 0 44px; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 1; background: #D5DBD6; box-shadow: 0 2px 4px rgba(10,18,36,0.10), 0 24px 54px rgba(10,18,36,0.28); }
.coad-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.coad-photo-over { position: relative; z-index: 3; margin-top: -104px; margin-bottom: 56px; }

/* Closing block with the scene */
.coad-closing { position: relative; overflow: hidden; text-align: left !important; border-radius: 14px !important; padding: 44px 44px 250px !important; background: linear-gradient(180deg, #1A2B4A 0%, #1A2B4A 45%, #2C4576 100%) !important; }
.coad-closing > *:not(.coad-scene) { position: relative; z-index: 1; }
.coad-closing .coad-scene { bottom: 0; height: 230px; }
.coad-closing .cta-btns { justify-content: flex-start !important; }
footer { background: #0E1933 !important; }

@media (max-width: 900px) {
  .coad-hero { padding-top: 34px !important; padding-bottom: 310px !important; background-size: 100% 102px, auto !important; }
  .coad-scene { height: 200px; bottom: 100px; }
  .coad-photo-over { margin-top: -76px; margin-bottom: 40px; }
  .coad-lift { padding: 4px 18px 14px; }
  .coad-lift > * + * { border-left: 0 !important; border-top: 1px solid #D5DBD6 !important; }
  .coad-photo { aspect-ratio: 16 / 9; }
  .coad-closing { padding: 30px 22px 200px !important; }
  .coad-closing .coad-scene { height: 180px; }
}
@media print { .coad-scene, .coad-photo { display: none !important; } .coad-hero { padding-bottom: 32px !important; } .coad-lift { box-shadow: none; } }

/* ───────────── Long-page components ───────────── */
.coad-hero-btn { display: inline-block; padding: 13px 24px; border-radius: 8px; font-weight: 750; text-decoration: none; margin-right: 12px; }
.coad-hero .hero-meta { gap: 6px 22px !important; font-size: 0.9rem; }

/* Contents rail */
.container.coad-has-toc { max-width: 1240px; display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 52px; }
.coad-has-toc > * { grid-column: 2; min-width: 0; }
.coad-has-toc > .coad-photo-over { grid-column: 1 / -1; grid-row: 1; }
.coad-toc { grid-column: 1; grid-row: 2 / span 40; position: sticky; top: 88px; align-self: start; font-size: 0.92rem; }
.coad-toc-h { font-family: var(--coad-display); font-weight: 700; margin-bottom: 10px; }
.coad-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #D5DBD6; }
.coad-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: #44506A; text-decoration: none; line-height: 1.3; }
.coad-toc a:hover { color: #1A2B4A; text-decoration: underline; }
.coad-toc a.is-here { color: #1A2B4A; font-weight: 700; border-left-color: #1A2B4A; }
[id] { scroll-margin-top: 84px; }

/* Key points */
.coad-keypoints { background: #fff; border: 1px solid #D5DBD6; border-left: 6px solid #1A2B4A; border-radius: 12px; padding: 28px 32px; margin-bottom: 56px; }
.coad-keypoints h2 { margin-bottom: 4px; }
.coad-kp-meta { font-size: 0.9rem; color: #5B6680; margin-bottom: 16px; }
.coad-keypoints ul { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.coad-keypoints li { font-size: 1.05rem; line-height: 1.5; max-width: 72ch; }
.coad-keypoints li a { font-size: 0.9rem; font-weight: 700; white-space: nowrap; }

/* Figures beside a photograph */
.coad-figband { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 22px; align-items: stretch; margin-bottom: 24px; }
.coad-figband .coad-photo-tall { aspect-ratio: auto; margin: 0; min-height: 100%; }
.coad-figband .coad-lift { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; margin-bottom: 0 !important; padding: 6px 28px; }
.coad-figband .coad-lift > * { text-align: left !important; padding: 18px 0 !important; }
.coad-figband .coad-lift > * + * { border-left: 0 !important; border-top: 1px solid #D5DBD6 !important; }

/* Expandable detail */
details.coad-more { margin-top: 10px; }
details.coad-more > summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; color: #1A2B4A; padding: 8px 0; }
details.coad-more > summary:hover { text-decoration: underline; }
details.coad-more-plain > summary { font-size: 0.95rem; padding: 2px 0; }
details.coad-more-section { border-top: 1px solid #D5DBD6; border-bottom: 1px solid #D5DBD6; margin-top: 22px; }
details.coad-more-section > summary { font-size: 1.02rem; padding: 16px 0; }
details.coad-more-section[open] { padding-bottom: 20px; }
.gap-card { border-left: 4px solid #1A2B4A !important; }
.gap-response { color: #1A2B4A !important; background: #EEF1F6 !important; font-size: 0.95rem !important; }

/* With and without: a mark on every row, so colour is not the only signal */
.pillar-table td.bad::before { content: "\2715\00a0\00a0"; font-weight: 700; }
.pillar-table td.good::before { content: "\2713\00a0\00a0"; font-weight: 700; }
.pillar-table td.good { color: #1A2B4A !important; font-weight: 600; }

/* Charts */
.coad-chart { background: #fff; border: 1px solid #D5DBD6; border-radius: 12px; padding: 26px 28px; }
.coad-chart h3 { font-size: 1.15rem; margin-bottom: 18px; }
.coad-chart-note { font-size: 0.88rem; color: #5B6680; margin-top: 14px; max-width: 74ch; }
.coad-split { display: flex; gap: 2px; height: 48px; margin-bottom: 4px; }
.coad-split span { border-radius: 4px; transform-origin: left; transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.coad-split .s1 { background: #1A2B4A; } .coad-split .s2 { background: #4E6594; } .coad-split .s3 { background: #98A9C9; }
.funding-row .funding-card:nth-child(1) { border-top: 6px solid #4E6594; }
.funding-row .funding-card:nth-child(2) { border-top: 6px solid #98A9C9; }
.funding-row .funding-card:nth-child(3) { border-top: 6px solid #1A2B4A; }
.coad-div { display: grid; gap: 12px; }
.coad-div-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) 70px; gap: 14px; align-items: center; font-size: 0.95rem; }
.coad-div-name { font-weight: 600; }
.coad-div-row b { font-family: var(--coad-display); font-size: 1.15rem; text-align: right; }
.coad-div-track { position: relative; height: 28px; background: linear-gradient(#1A2B4A, #1A2B4A) 78.5% 0 / 2px 100% no-repeat; }
.coad-div-track i { position: absolute; top: 2px; bottom: 2px; width: calc(var(--w) * 1.82%); transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.coad-div-track i.neg { right: 21.5%; background: #A84300; border-radius: 4px 0 0 4px; transform-origin: right; }
.coad-div-track i.pos { left: calc(78.5% + 2px); background: #1A2B4A; border-radius: 0 4px 4px 0; transform-origin: left; }
.is-waiting.coad-split span, .is-waiting .coad-div-track i { transform: scaleX(0.02); }

@media (max-width: 1000px) {
  .container.coad-has-toc { display: block; }
  .coad-toc { position: static; background: #fff; border: 1px solid #D5DBD6; border-radius: 12px; padding: 18px 20px; margin-bottom: 28px; }
  .coad-figband { grid-template-columns: 1fr; }
  .coad-figband .coad-photo-tall { aspect-ratio: 16 / 9; min-height: 0; }
  .coad-div-row { grid-template-columns: 1fr 64px; }
  .coad-div-name { grid-column: 1 / -1; }
  .coad-keypoints { padding: 22px 20px; }
}
@media print { .coad-toc, .coad-hero-btn { display: none !important; } .container.coad-has-toc { display: block; } }

/* ───────────── Automatic placement on every page ───────────── */
.coad-photo-wrap { max-width: 1048px; margin: 0 auto; padding: 44px 24px 0; }
.coad-photo-wrap .coad-photo { margin-bottom: 0; }
.coad-photo-wrap.coad-photo-over { position: relative; z-index: 3; padding-top: 0; margin-top: -104px; margin-bottom: 40px; }
.coad-hero-short { padding-bottom: 300px !important; background-size: 100% 62px, auto !important; }
.coad-hero-short > .coad-scene { bottom: 60px; }
section.coad-closing, .cta-section.coad-closing { border-radius: 0 !important; padding-left: max(24px, calc((100% - 1000px) / 2)) !important; padding-right: max(24px, calc((100% - 1000px) / 2)) !important; }
.coad-closing .cta-buttons { justify-content: flex-start !important; }
.coad-closing h2, .coad-closing h3 { color: #fff !important; }
.coad-closing p { color: #C9D2E0 !important; }
@media (max-width: 900px) { .coad-photo-wrap { padding: 32px 16px 0; } .coad-photo-wrap.coad-photo-over { margin-top: -76px; margin-bottom: 28px; } .coad-hero-short { padding-bottom: 240px !important; } }
@media print { .coad-photo-wrap { display: none !important; } }
