/* SUDenomics website – one stylesheet.
   Colours and type from SUDenomics_tokens_v0.4.css (00_Source_of_Truth). Text is ink only; white on steel.
   Layout reproduces the approved canvas boards (desktop 1280 px; phone boards 390 px via the 600 px media query). */

:root {
  --s-steel: #2A5A94;
  --s-sand: #A0803F;
  --s-ink: #1F2227;
  --s-paper: #F6F5F0;
  --s-panel: #EAE9E2;
  --s-panel-bd: #D6D4CA;
  --s-strip: #F0EFE9;
  --s-on-fill: #FFFFFF;
  --data-sq: #D55E00;
  --data-int: #0072B2;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--s-paper);
  color: var(--s-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
p, ul, h1, h2, h3, figure { margin: 0; }
a { color: var(--s-ink); text-decoration: none; }
a:hover { color: var(--s-steel); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--s-steel); outline-offset: 3px; }
.steel :focus-visible { outline-color: var(--s-on-fill); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--s-on-fill); color: var(--s-ink); padding: 8px 12px;
}
.skip:focus { top: 12px; }

/* ---------- Bands and the content column ---------- */
.band { width: 100%; padding: 0 80px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.steel { background: var(--s-steel); color: var(--s-on-fill); }
.steel a, .steel a:hover { color: var(--s-on-fill); }
.link-light { text-decoration: underline; text-underline-offset: 4px; }
.strip { background: var(--s-strip); border-top: 1px solid var(--s-panel-bd); border-bottom: 1px solid var(--s-panel-bd); }

/* ---------- Header and hero ---------- */
.hero > .wrap { display: flex; flex-direction: column; gap: 56px; padding: 24px 0 72px; }
.hero--home > .wrap { gap: 64px; padding-bottom: 176px; }
.hero--stamina > .wrap { gap: 40px; }
.hero--about > .wrap { gap: 48px; padding-bottom: 64px; }

.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px 24px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { height: 48px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 40px; font-size: 17px; }
.site-nav a { padding: 8px 0; }
.site-nav a.is-current { padding: 8px 0 6px; border-bottom: 2px solid var(--s-on-fill); }

.h1 {
  font-family: var(--font-serif); font-weight: normal; font-size: 64px; line-height: 1.06;
  letter-spacing: -0.012em; color: var(--s-on-fill);
}
.h1--56 { font-size: 56px; }
.lead { font-size: 21px; line-height: 1.5; }
.hero__body { display: flex; flex-direction: column; gap: 24px; }
.hero__body--wide { gap: 20px; max-width: 800px; }
.hero__body .lead--640 { max-width: 640px; }
.eyebrow { font-size: 17px; font-weight: bold; }
.hero__note { font-size: 17px; line-height: 1.5; }

.hero__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px 80px; }
.hero__text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero__text .lead { max-width: 560px; }
.hero__logo { height: 260px; width: auto; flex: 0 0 auto; }

/* ---------- Home: attention cards ---------- */
.cards-band { padding-bottom: 72px; }
.cards { max-width: 1120px; margin: -112px auto 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.card {
  flex: 1 1 220px; min-width: 0; min-height: 258px; background: var(--s-panel);
  border: 1px solid var(--s-panel-bd); display: flex; flex-direction: column;
}
.card.is-open { border-color: var(--s-steel); }
.card__btn {
  display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; width: 100%;
  padding: 30px 26px 24px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-sans); color: var(--s-ink);
}
.card__fig { font-family: var(--font-serif); font-size: 40px; line-height: 1.05; letter-spacing: -0.01em; color: var(--s-steel); }
.card__text { font-size: 15px; line-height: 1.5; }
.card__mark { margin-top: auto; align-self: flex-end; padding-top: 8px; font-size: 13px; font-weight: bold; color: var(--s-steel); }
.card__more { border-top: 1px solid var(--s-panel-bd); padding: 18px 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.card__more[hidden] { display: none; }
.card__more p { font-size: 15px; line-height: 1.5; }
.card__more .source { font-size: 12px; line-height: 1.45; }

/* ---------- Two-column rows ---------- */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 64px; }
.h2 { font-family: var(--font-serif); font-weight: normal; font-size: 36px; line-height: 1.18; color: var(--s-steel); }
.h2--30 { font-size: 30px; line-height: 1.2; }
.body { font-size: 17px; line-height: 1.55; }
.col-400 { flex: 1 1 400px; min-width: 0; }
.col-460 { flex: 1 1 460px; min-width: 0; }
.stack { display: flex; flex-direction: column; }

/* Home: What we do band */
.pages > .wrap { padding: 56px 0; }
.pages__head { flex: 0 1 300px; min-width: 0; }
.pages__head a { color: var(--s-steel); text-decoration: underline; text-underline-offset: 5px; }
.pages__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pages__text p, .pages__text ul { font-size: 20px; line-height: 1.5; }
.pages__text ul { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.nowrap { white-space: nowrap; }

/* ---------- What we do ---------- */
.work > .wrap { padding: 24px 0 96px; }
.work__item { display: flex; flex-wrap: wrap; gap: 24px 64px; padding: 56px 0; border-bottom: 1px solid var(--s-sand); }
.work__item:last-child { padding: 56px 0 0; border-bottom: none; }
.work__head { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.work__label { font-size: 19px; font-weight: bold; }
.work__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.work__text ul { padding-left: 20px; font-size: 16px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.link-strong { font-size: 17px; font-weight: bold; color: var(--s-steel); text-decoration: underline; text-underline-offset: 4px; align-self: flex-start; }

.who > .wrap { display: flex; flex-direction: column; gap: 8px; padding: 64px 0 72px; }
.who__head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 24px; }
.who__head p { font-size: 17px; line-height: 1.5; }
.who__list { display: flex; flex-direction: column; border-top: 1px solid var(--s-ink); }
.who__item { border-bottom: 1px solid var(--s-panel-bd); display: flex; flex-direction: column; gap: 8px; padding: 28px 0 24px; }
.who__item h3 { font-family: var(--font-serif); font-weight: normal; font-size: 32px; line-height: 1.2; color: var(--s-steel); }
.who__item p { font-size: 17px; line-height: 1.5; }

/* ---------- STAMINA methodology ---------- */
.picture > .wrap { padding: 72px 0 64px; gap: 32px 64px; }
.picture__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.picture__fig { flex: 1 1 420px; min-width: 0; max-width: 440px; display: flex; flex-direction: column; gap: 10px; }

.produces > .wrap { display: flex; flex-direction: column; gap: 24px; padding: 56px 0 64px; }
.panel { background: var(--s-paper); color: var(--s-ink); padding: 28px 32px 24px; display: flex; flex-direction: column; gap: 24px; }
.panel__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.boxed { padding: 8px 14px; border: 2px solid var(--s-ink); font-size: 18px; line-height: 1.4; font-weight: bold; }
.panel__title { font-size: 16px; font-weight: bold; }
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 180px; min-width: 0; border-top: 2px solid var(--s-ink); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.tile__num { font-family: var(--font-serif); font-size: 40px; line-height: 1.05; }
.tile__label { font-size: 14px; line-height: 1.4; }
.charts { display: flex; flex-wrap: wrap; gap: 32px; }
.chart { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.chart--line { flex: 1 1 520px; }
.chart--bars { flex: 1 1 320px; }
.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.chart__title { font-size: 15px; font-weight: bold; }
.legend { display: flex; gap: 18px; font-size: 13px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 3px; display: block; }
.legend .sq { background: var(--data-sq); }
.legend .int { background: var(--data-int); }

.rarely > .wrap { padding: 72px 0 56px; border-bottom: 1px solid var(--s-sand); }
.rarely .body, .questions .body { padding-top: 8px; }
.questions > .wrap { display: flex; flex-direction: column; gap: 28px; padding: 56px 0 64px; }
.questions .split { gap: 16px 64px; }
.qcards { display: flex; flex-wrap: wrap; gap: 24px; }
.qcard {
  flex: 1 1 300px; min-width: 0; background: var(--s-panel); border-top: 4px solid var(--s-steel);
  padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px;
}
.qcard__label { font-weight: bold; font-size: 17px; }
.qcard__q { font-family: var(--font-serif); font-size: 22px; line-height: 1.25; }
.qcard__text { font-size: 15px; line-height: 1.5; }

.faq > .wrap { gap: 32px 64px; padding: 64px 0 72px; }
.faq__intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.faq__list { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--s-ink); }
.faq__item { border-bottom: 1px solid var(--s-panel-bd); display: flex; flex-direction: column; }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; min-height: 60px;
  padding: 16px 0; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-serif); font-weight: normal; font-size: 23px; line-height: 1.25; color: var(--s-ink);
}
.faq__item h3 { font-size: inherit; font-weight: normal; }
.faq__mark { flex: 0 0 auto; font-family: var(--font-sans); font-size: 22px; color: var(--s-steel); }
.faq__a { padding: 0 48px 20px 0; font-size: 17px; line-height: 1.55; }
.faq__a[hidden] { display: none; }

/* ---------- Who we are ---------- */
.facts > .wrap { display: flex; flex-direction: column; padding: 16px 0 72px; }
.fact { display: flex; flex-wrap: wrap; gap: 16px 64px; padding: 48px 0; border-bottom: 1px solid var(--s-sand); }
.fact:last-child { border-bottom: none; }
.fact__head { flex: 0 1 320px; min-width: 0; }
.fact__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.fact__body p { font-size: 17px; line-height: 1.6; }

/* ---------- Plain text pages (privacy, not found) ---------- */
.prose > .wrap { padding: 56px 0 72px; }
.prose__body { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prose__body a { color: var(--s-steel); text-decoration: underline; text-underline-offset: 4px; }
.work__text .body a { color: var(--s-steel); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contact band and footer ---------- */
.contact > .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 72px; padding: 64px 0; }
.contact__logo { height: 120px; width: auto; }
.contact__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact__text h2 { font-family: var(--font-serif); font-weight: normal; font-size: 32px; line-height: 1.2; color: var(--s-on-fill); }
.contact__text p { max-width: 640px; font-size: 17px; line-height: 1.55; }
.contact__email { font-size: 20px; text-decoration: underline; text-underline-offset: 4px; }
.contact--compact > .wrap { padding: 56px 0; }
.contact--compact .contact__logo { height: 110px; }
.contact--compact .contact__text { gap: 10px; }
.contact--compact .contact__text h2 { font-size: 30px; }

.site-footer > .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 28px 0 36px; font-size: 15px; }
.site-footer--note > .wrap { gap: 14px 32px; }
.site-footer__note { flex-basis: 100%; line-height: 1.5; }
.site-footer__right { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Password page (served by _worker.js while the site is in preview) ---------- */
.gate { min-height: 100vh; display: flex; align-items: center; }
.gate > .gate__inner { max-width: 420px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; padding: 48px 0; }
.gate__inner img { height: 80px; width: auto; }
.gate__form { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.gate__form label { font-size: 17px; }
.gate__form input[type="password"] {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--s-ink);
  background: var(--s-on-fill); border: 1px solid var(--s-on-fill); border-radius: 0;
}
.gate__form button {
  padding: 12px 22px; font-size: 17px; font-weight: bold; color: var(--s-steel);
  background: var(--s-on-fill); border: none; cursor: pointer;
}
.gate__error { font-size: 15px; }

/* ---------- Figures: desktop and phone versions from the one generator ---------- */
.fig-phone { display: none !important; }

/* ---------- Phone (the 390 px boards) ---------- */
@media (max-width: 600px) {
  .band { padding-left: 20px; padding-right: 20px; }
  .site-header { gap: 12px 16px; }
  .site-nav { gap: 18px; font-size: 15px; }
  .h1, .h1--56 { font-size: 38px; line-height: 1.1; }
  .h2, .h2--30, .contact__text h2, .contact--compact .contact__text h2 { font-size: 26px; line-height: 1.2; }
  .lead, .pages__text p, .pages__text ul { font-size: 18px; }
  .work__label { font-size: 17px; }
  .tile__num { font-size: 32px; }
  .hero__logo { display: none; }
  .contact__logo, .contact--compact .contact__logo { height: 64px; }
  .hero--home > .wrap { padding-bottom: 104px; gap: 40px; }
  .cards { margin-top: -56px; }
  .card { min-height: 236px; }
  .panel { padding: 20px 16px 16px; }
  .tile { flex-basis: 110px; }
  .qcard { padding: 20px 18px 22px; }
  .work__item, .work__item:last-child { padding-top: 36px; padding-bottom: 36px; }
  .fact { padding-top: 32px; padding-bottom: 32px; }
  .faq__q { font-size: 19px; }
  .faq__a { padding-right: 0; }
  svg { max-width: 100% !important; }
  .fig-desktop { display: none !important; }
  .fig-phone { display: block !important; }
}
