/* Stop Human Trafficking Worldwide: the whole look of the website.
   1 Tokens (colours, sizes, spacing)  2 Fonts  3 Base  4 Grid  5 Top of every page
   6 Components (class names are fixed: pages use them)  7 Bottom of every page
   8 Home page  9 Printing  10 Less movement.
   Every component is shown on /_site/styleguide/. Dad's Publish tool will not publish changes in this folder. */

/* ---------- 1. Tokens ---------- */
:root {
  /* colours (contrast ratios are in the overhaul plan, section 2.3) */
  --paper: #FFFFFF;
  --mist: #EDF1F6;
  --ink: #16181D;
  --ink-soft: #4A5261;
  --line: #C9D1DB;
  --navy: #13294B;
  --navy-deep: #0C1D37;
  --navy-text: #C9D6E8;
  --link: #1B4F9C;
  --red: #C4161C;
  --red-deep: #A51217;
  --red-tint: #FDECEC;
  --umber: #7A4419;
  --umber-deep: #633714;
  --umber-tint: #F6EDE4;
  --green: #1E6B34;
  --green-deep: #18572A;
  --green-tint: #E8F3EA;
  --focus: #FFDD00;

  /* the colour of the "door" this page belongs to (set by a class on <body>) */
  --door: var(--navy);
  --door-deep: var(--navy-deep);
  --door-tint: var(--mist);

  /* type */
  --serif: "Bodoni Moda", "Bodoni MT", Didot, Georgia, serif;
  --sans: "Public Sans", "Segoe UI", Arial, sans-serif;
  --t-hero: clamp(2.5rem, 1.2rem + 5.6vw, 4.75rem);
  --t-h1: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);
  --t-h2: clamp(1.75rem, 1.45rem + 1.2vw, 2.25rem);
  --t-h3: 1.375rem;
  --t-h4: 1.125rem;
  --t-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-body: 1.1875rem;
  --t-small: 1rem;
  --t-door: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);

  /* spacing: use only these */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --frame: 88rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --gap: 24px;
  --radius: 8px;
  --radius-photo: 4px;
  --header-h: 72px;
  --doorbar-h: 56px;
  --measure: 46rem;
}

body.door-help { --door: var(--red);   --door-deep: var(--red-deep);   --door-tint: var(--red-tint); }
body.door-spot { --door: var(--umber); --door-deep: var(--umber-deep); --door-tint: var(--umber-tint); }
body.door-join { --door: var(--green); --door-deep: var(--green-deep); --door-tint: var(--green-tint); }

@media (max-width: 899px) { :root { --header-h: 60px; } }
@media (max-width: 719px) { :root { --gap: 16px; } }
@media (max-width: 479px) { :root { --t-body: 1.125rem; } }

/* ---------- 2. Fonts (self-hosted; licences beside the files) ---------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/BodoniModa-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/PublicSans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { border-radius: var(--radius-photo); }
p, ul, ol, dl, figure, blockquote, table { margin: 0 0 var(--s-5); }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: var(--s-2); }
li > ul, li > ol { margin-top: var(--s-2); margin-bottom: 0; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

h1, h2, h3, h4 { margin: 0 0 var(--s-4); color: var(--green); text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-variation-settings: "opsz" 14; } /* opsz 14 keeps the thin strokes from looking skinny */
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-family: var(--sans); font-size: var(--t-h3); font-weight: 700; line-height: 1.3; }
h4 { font-family: var(--sans); font-size: var(--t-h4); font-weight: 700; line-height: 1.35; }

a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }

/* keyboard focus: always a thick yellow outline, never removed */
:focus-visible { outline: 4px solid var(--focus); outline-offset: 0; box-shadow: 0 0 0 2px var(--ink) inset; }
a:focus-visible { background: var(--focus); color: var(--ink); text-decoration-thickness: 3px; box-shadow: none; }
a.button:focus-visible, a.door:focus-visible, a.helpline-number:focus-visible, a.leave:focus-visible,
a.video-poster:focus-visible, a.download:focus-visible, .door-bar a:focus-visible {
  box-shadow: 0 0 0 2px var(--ink) inset;
}

/* phone numbers: never broken over two lines, figures all the same width */
a[href^="tel:"], .tel { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }

.lead { font-size: var(--t-lead); line-height: 1.5; max-width: var(--measure); }
.small, small { font-size: var(--t-small); line-height: 1.5; }
.muted { color: var(--ink-soft); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* skip link: the first thing a keyboard user reaches */
a.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  padding: var(--s-3) var(--s-4); background: var(--focus); color: var(--ink);
  font-weight: 700; border-radius: var(--radius);
}
a.skip:focus { top: var(--s-2); }

/* the six icons */
.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; border-radius: 0; }

/* ---------- 4. Page frame and grid ---------- */
.wrap { width: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); }
.wrap .wrap { padding-inline: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7) var(--gap); align-items: start; }
.grid > * { min-width: 0; }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-4  { grid-column: span 4; }
  .col-6  { grid-column: span 6; }
  .col-7  { grid-column: span 7; }
  .col-8  { grid-column: span 8; }
  .col-12 { grid-column: 1 / -1; }
  .col-7 + .col-4, .col-7 + .aside { grid-column: 9 / span 4; }
  .aside { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}
@media (max-width: 899px) { .grid > * { grid-column: 1 / -1; } }

/* a block of the page; .section-mist gives it the quiet blue-grey background */
.section { padding-block: var(--s-9); }
/* two white sections in a row share one gap; after a mist section the next white one keeps its own top space */
.section:not(.section-mist) + .section:not(.section-mist) { padding-top: 0; }
.section-mist { background: var(--mist); }
@media (max-width: 899px) {
  .section { padding-block: var(--s-8); }
}
/* space before the footer when a page does not end with a coloured section */
main > :last-child:not(.section) { margin-bottom: var(--s-9); }
@media (max-width: 899px) { main > :last-child:not(.section) { margin-bottom: var(--s-8); } }

/* a section heading with a link on the right ("All news") */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); }
.section-head > h2 { margin: 0; }
.section-head > a { font-weight: 700; }
.section-intro { max-width: var(--measure); margin-bottom: var(--s-6); }

/* only on wide screens (QR codes are useless on the phone you hold) */
@media (max-width: 899px) { .wide-only { display: none !important; } }

/* ---------- 5. Top of every page ---------- */
.blessing {
  margin: 0; padding: 6px var(--gutter);
  background: var(--mist); color: var(--ink-soft);
  font-size: var(--t-small); line-height: 1.5; text-align: center;
}

.safety { border-bottom: 1px solid var(--line); background: var(--paper); }
.safety-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; padding-block: 2px; }
.safety p { margin: 0; font-size: var(--t-small); line-height: 1.3; }
.safety a[href^="tel:"] { color: var(--red-deep); font-size: 1.25rem; text-decoration-thickness: 2px; padding-inline: 2px; }
.safety .short { display: none; }
@media (max-width: 559px) { .safety .long { display: none; } .safety .short { display: inline; } }

a.leave {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-2) var(--s-4);
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  font-size: var(--t-small); font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
a.leave:hover { background: #000; }
a.leave:active { transform: translateY(1px); }
a.leave .icon { width: 20px; height: 20px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: box-shadow 150ms ease; }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: block; flex: none; margin-right: auto; border-radius: var(--radius-photo); }
.brand img { height: 52px; width: auto; border-radius: 0; }
@media (max-width: 899px) { .brand img { height: 44px; } }

.site-nav { display: none; }
.site-nav > ul { display: flex; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; height: var(--header-h); }
.site-nav li { margin: 0; display: flex; }
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a::after { content: ""; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.site-nav a {
  display: flex; align-items: center; padding: 0 var(--s-3);
  color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav a[aria-current] { box-shadow: inset 0 -6px 0 var(--door); font-weight: 700; }
.site-nav a[aria-current]:focus-visible { box-shadow: inset 0 -6px 0 var(--door); }

.header-donate { flex: none; }
.menu-button {
  display: inline-flex; align-items: center; gap: var(--s-2); flex: none;
  min-height: 48px; padding: var(--s-2) var(--s-3);
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
  font: 700 var(--t-small)/1 var(--sans); text-decoration: none; cursor: pointer;
}
.menu-button:hover { background: var(--mist); }
@media (max-width: 359px) {
  .menu-button .icon { display: none; }
  .header-row { gap: var(--s-2); }
  .header-row .button { padding-inline: var(--s-3); }
}
@media (min-width: 1140px) {
  .site-nav { display: block; }
  .menu-button { display: none; }
  .brand { margin-right: var(--s-2); }
  .site-nav { margin-right: auto; }
}

/* desktop dropdowns: open on mouse hover or keyboard focus */
.site-nav .sub { position: absolute; top: 100%; left: 0; z-index: 60; display: none; min-width: 17rem; max-height: calc(100vh - 11rem); overflow-y: auto; list-style: none; margin: 0; padding: var(--s-2) 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 28px rgb(22 24 29 / 0.18); }
.site-nav .has-sub:nth-last-child(-n+2) .sub { left: auto; right: 0; }
.site-nav .has-sub:hover > .sub, .site-nav .has-sub:focus-within > .sub { display: block; }
.site-nav .has-sub.is-closed > .sub { display: none; }
.site-nav .sub li { display: block; }
.site-nav .sub a { min-height: 40px; padding: var(--s-1) var(--s-4); font-size: var(--t-small); font-weight: 600; }
.site-nav .sub a:hover { background: var(--mist); }
.site-nav .sub a[aria-current] { box-shadow: inset 6px 0 0 var(--door); }

/* the menu sheet (phones and tablets). It is a <dialog>; ui.js opens it. */
.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(26rem, 100%); max-width: 100%; height: 100%; max-height: 100%;
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgb(22 24 29 / 0.55); }
.sheet[open] { animation: sheet-in 180ms cubic-bezier(.2, .7, .2, 1); }
@keyframes sheet-in { from { transform: translateX(100%); } to { transform: none; } }
.sheet-top { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) var(--s-5); min-height: var(--header-h); background: var(--paper); border-bottom: 1px solid var(--line); }
.sheet-top p { margin: 0; font-weight: 700; }
.sheet-body { padding: var(--s-5) var(--s-5) var(--s-8); }
.sheet-body > .button { margin-bottom: var(--s-5); }
.menu-groups, .menu-groups ul { list-style: none; margin: 0; padding: 0; }
.menu-groups > li { margin: 0; border-bottom: 1px solid var(--line); padding-block: var(--s-2); }
.menu-groups a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; }
.menu-groups a:hover { text-decoration: underline; }
.menu-groups > li > a { font-size: 1.25rem; font-weight: 700; }
.menu-groups ul { margin: 0 0 var(--s-2) var(--s-4); }
.menu-groups ul li { margin: 0; }
.menu-groups ul a { min-height: 44px; font-size: var(--t-small); }
.menu-groups a[aria-current] { box-shadow: inset 6px 0 0 var(--door); padding-left: var(--s-4); }
html.sheet-open { overflow: hidden; }

/* ---------- 6. Components ---------- */

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-5);
  background: var(--navy); color: var(--paper); border: 2px solid transparent; border-radius: var(--radius);
  font: 700 1.0625rem/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, transform 60ms ease;
}
.button:hover { background: var(--navy-deep); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button-donate, .button-help { background: var(--red); }
.button-donate:hover, .button-help:hover { background: var(--red-deep); }
.button-spot { background: var(--umber); }
.button-spot:hover { background: var(--umber-deep); }
.button-join { background: var(--green); }
.button-join:hover { background: var(--green-deep); }
.button-quiet { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.button-quiet:hover { background: var(--mist); }
.button-wide { display: flex; width: 100%; }
.button .icon { width: 20px; height: 20px; }
/* a row of buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.actions li { margin: 0; }

/* The stop line: the one signature. Once per page (plus the footer edge). */
.stop-line { display: block; width: var(--s-9); height: 12px; margin: var(--s-5) 0; background: var(--door); border: 0; }
.stop-line-wide { width: 100%; transform-origin: left center; animation: stop-draw 600ms cubic-bezier(.2, .7, .2, 1) 150ms both; }
@keyframes stop-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Page head */
.page-head { padding-top: var(--s-8); padding-bottom: var(--s-7); }
.page-head h1 { max-width: 22ch; margin-bottom: 0; }
.page-head .stop-line { margin-bottom: var(--s-5); }
.page-head .lead { margin-bottom: 0; }
.page-head .lead + * { margin-top: var(--s-5); }
@media (max-width: 899px) { .page-head { padding-top: 40px; padding-bottom: var(--s-6); } }

/* Breadcrumb */
nav.crumb { margin-bottom: var(--s-4); font-size: var(--t-small); line-height: 1.5; }
nav.crumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
nav.crumb li { margin: 0; color: var(--ink-soft); }
nav.crumb li + li::before { content: "\203A"; padding: 0 var(--s-2); color: var(--ink-soft); }
nav.crumb a { color: var(--link); }

/* Prose: running text in a readable column */
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose h4 { margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose h2 + h3 { margin-top: var(--s-4); }
.prose blockquote:not([class]) { margin: var(--s-6) 0; padding: var(--s-1) 0 var(--s-1) var(--s-5); border-left: 4px solid var(--line); }
.prose blockquote:not([class]) > :last-child { margin-bottom: 0; }
.prose cite, .cite { display: block; margin-top: var(--s-2); color: var(--ink-soft); font-size: var(--t-small); font-style: normal; }
.prose figure { margin: var(--s-6) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.prose th, .prose td { padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); }
.prose .table-scroll { overflow-x: auto; }
.prose img { height: auto; }

/* Doors: the three ways in. The whole panel is one link. */
ul.doors { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); list-style: none; margin: 0 0 var(--s-6); padding: 0; }
ul.doors > li { margin: 0; display: flex; }
a.door {
  --c: var(--navy); --c-deep: var(--navy-deep);
  display: flex; flex-direction: column; justify-content: flex-start; gap: var(--s-1);
  width: 100%; min-height: 96px; padding: var(--s-3) var(--s-4);
  background: var(--c); color: var(--paper); border-radius: var(--radius); text-decoration: none;
  transition: background-color 120ms ease, transform 60ms ease;
}
a.door:hover { background: var(--c-deep); }
a.door:active { transform: translateY(1px); }
a.door:focus-visible { outline: 4px solid var(--focus); outline-offset: 0; background: var(--c-deep); color: var(--paper); }
a.door-help { --c: var(--red);   --c-deep: var(--red-deep); }
a.door-spot { --c: var(--umber); --c-deep: var(--umber-deep); }
a.door-join { --c: var(--green); --c-deep: var(--green-deep); }
.door-label { font-size: var(--t-door); font-weight: 800; line-height: 1.15; letter-spacing: -0.005em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; text-decoration-color: rgb(255 255 255 / 0.45); }
a.door:hover .door-label { text-decoration-color: currentColor; }
.door-text { font-size: var(--t-small); line-height: 1.4; }
@media (min-width: 900px) {
  ul.doors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
  a.door { min-height: 180px; padding: 20px var(--s-5); gap: var(--s-2); justify-content: space-between; }
}

/* Emergency and ordinary notices */
.notice { margin: 0 0 var(--s-5); padding: var(--s-5) var(--s-5); background: var(--door-tint); border-left: 6px solid var(--door); border-radius: 0 var(--radius) var(--radius) 0; max-width: 46rem; }
.notice > :last-child { margin-bottom: 0; }
.notice h2, .notice h3 { margin-bottom: var(--s-2); }
.notice h2 { font-family: var(--sans); font-size: var(--t-h3); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.notice-emergency { background: var(--red-tint); border-left-color: var(--red); }
.notice-emergency .notice-title, .notice-emergency > p:first-child { font-size: var(--t-h3); font-weight: 700; line-height: 1.35; }
.notice-emergency a { color: var(--red-deep); }
.notice-emergency a.button { color: var(--paper); margin-top: var(--s-2); }
.notice-compact { padding: var(--s-3) var(--s-4); }
.notice-compact.notice-emergency > p:first-child, .notice-compact .notice-title { font-size: var(--t-body); }
.notice-help { background: var(--red-tint); border-left-color: var(--red); }
.notice-spot { background: var(--umber-tint); border-left-color: var(--umber); }
.notice-join { background: var(--green-tint); border-left-color: var(--green); }
.notice-plain { background: var(--mist); border-left-color: var(--navy); }

/* Helpline rows (/need-help/) */
.helplines { list-style: none; margin: 0 0 var(--s-5); padding: 0; max-width: 46rem; border-top: 1px solid var(--line); }
.helpline { margin: 0; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.helpline h3 { margin-bottom: var(--s-2); }
.helpline-for { margin-bottom: var(--s-3); }
a.helpline-number {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 56px; padding: var(--s-2) var(--s-5);
  background: var(--door); color: var(--paper); border-radius: var(--radius);
  font-size: 1.5rem; line-height: 1.1; text-decoration: none;
}
a.helpline-number:hover { background: var(--door-deep); }
@media (max-width: 359px) { a.helpline-number { font-size: 1.25rem; padding-inline: var(--s-4); gap: var(--s-2); } }
a.helpline-number:active { transform: translateY(1px); }
.helpline-hours { margin: var(--s-3) 0 0; color: var(--ink-soft); }

/* Help card (sidebar on content pages) */
.help-card { padding: var(--s-5); background: var(--mist); border-top: 6px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); }
.help-card h2 { margin-bottom: var(--s-3); font-family: var(--sans); font-size: var(--t-h3); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.help-card p { margin-bottom: var(--s-3); font-size: var(--t-small); line-height: 1.5; }
.help-card a[href^="tel:"] { font-size: 1.25rem; color: var(--red-deep); }
.help-card > :last-child { margin-bottom: 0; }

/* Story rows (news, articles) */
.story-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; border-top: 1px solid var(--line); }
.story-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-5); margin: 0; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.story-row > * { grid-column: 1; margin: 0; }
.story-row h3 { margin: 0; font-size: var(--t-h3); }
.story-row h3 a { color: var(--green); text-decoration-color: var(--line); }
.story-row h3 a:hover { text-decoration-color: currentColor; }
.story-date { color: var(--ink-soft); font-size: var(--t-small); }
.story-sum { color: var(--ink); max-width: var(--measure); }
.story-row > img, .story-row > picture { grid-column: 2; grid-row: 1 / span 3; width: 160px; height: 120px; object-fit: cover; }
@media (max-width: 559px) {
  .story-row { grid-template-columns: minmax(0, 1fr) 96px; gap: var(--s-2) var(--s-4); }
  .story-row > img, .story-row > picture { width: 96px; height: 72px; grid-row: 1 / span 2; }
  .story-row > .story-sum { grid-column: 1 / -1; }
  .story-row h3 { font-size: 1.1875rem; line-height: 1.35; }
}

/* Article (one story or guide) */
article.article { min-width: 0; }
.byline { color: var(--ink-soft); font-size: var(--t-small); margin-bottom: var(--s-5); }

/* Pager: previous / next */
nav.pager { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin: var(--s-8) 0 var(--s-5); max-width: var(--measure); }
nav.pager a {
  display: flex; flex-direction: column; gap: var(--s-1);
  min-height: 48px; padding: var(--s-4) var(--s-5);
  border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none;
}
nav.pager a:hover { border-color: var(--ink); }
nav.pager .pager-dir { color: var(--ink-soft); font-size: var(--t-small); }
nav.pager .pager-title { font-weight: 700; color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
nav.pager a[rel="next"] { text-align: right; }
@media (min-width: 720px) {
  nav.pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav.pager a[rel="next"]:only-child { grid-column: 2; }
}

/* Sub-navigation under a section's page head */
nav.subnav { margin: 0 0 var(--s-7); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
nav.subnav ul { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; white-space: nowrap; }
nav.subnav li { margin: 0; }
nav.subnav a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; }
nav.subnav a:hover { text-decoration: underline; }
nav.subnav a[aria-current] { font-weight: 700; box-shadow: inset 0 -4px 0 var(--door); }

/* Person (team and patrons) */
.people { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7) var(--s-7); }
.people > li { margin: 0; }
@media (min-width: 900px) { .people-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 var(--s-5); align-items: start; align-content: start; }
.person > * { grid-column: 2; }
.person > img { grid-column: 1; grid-row: 1 / span 4; width: 112px; height: 112px; object-fit: cover; object-position: 50% 20%; background: var(--mist); }
.person h3 { margin: 0 0 var(--s-1); }
.person-role { margin: 0 0 var(--s-3); color: var(--ink-soft); font-weight: 700; line-height: 1.4; }
.person-bio { max-width: var(--measure); }
.person-bio > :last-child { margin-bottom: 0; }
/* phones: portrait beside the name and role, the biography full width underneath */
@media (max-width: 479px) {
  .person { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 0 var(--s-4); }
  .person > img { grid-row: 1 / span 2; width: 88px; height: 88px; }
  .person > h3 { padding-top: var(--s-1); }
  .person > .person-bio { grid-column: 1 / -1; grid-row: 3; margin-top: var(--s-4); }
}

/* Gallery of photographs: each opens the full picture */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: var(--s-3); margin: 0 0 var(--s-6); padding: 0; list-style: none; }
.gallery li { margin: 0; }
.gallery a { position: relative; display: block; border-radius: var(--radius-photo); }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist); }

/* Figure with caption */
figure.figure { margin: 0 0 var(--s-6); }
figure.figure img { width: 100%; height: auto; background: var(--mist); }
figcaption { margin-top: var(--s-2); color: var(--ink-soft); font-size: var(--t-small); line-height: 1.5; }
/* a poster is a document: shown modestly, linked to the full picture */
.poster { max-width: 22.5rem; }
.poster img { border: 1px solid var(--line); }

/* Video: a picture first; YouTube only loads after a press (ui.js) */
.video { margin: 0 0 var(--s-6); }
.video-poster { position: relative; display: block; overflow: hidden; border-radius: var(--radius-photo); background: var(--navy); color: var(--paper); text-decoration: none; }
.video-poster img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; transition: transform 300ms ease, opacity 200ms ease; }
.video-poster:hover img { transform: scale(1.02); }
.video-play {
  position: absolute; left: var(--s-3); bottom: var(--s-3);
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3);
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  font-size: var(--t-small); font-weight: 700; line-height: 1.2;
}
.video-play .icon { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.video-poster:hover .video-play { background: #000; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-photo); overflow: hidden; animation: fade-in 200ms ease; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame-box { position: relative; height: min(80vh, 50rem); border: 1px solid var(--line); border-radius: var(--radius-photo); overflow: hidden; animation: fade-in 200ms ease; }
.frame-box iframe { width: 100%; height: 100%; border: 0; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--gap); margin: 0 0 var(--s-6); }
.video-grid .video { margin: 0; }
.video-grid + h2 { margin-top: var(--s-8); }
/* a heading that is itself a link (video groups): ink, with a quiet underline */
h2 > a:only-child { color: var(--green); text-decoration-thickness: 2px; text-decoration-color: var(--line); text-underline-offset: 0.14em; }
h2 > a:only-child:hover { text-decoration-color: currentColor; }
@media (min-width: 560px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* PDF shown in the page */
.pdf-frame { display: block; width: 100%; height: min(85vh, 60rem); margin: 0 0 var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-photo); background: var(--mist); }

/* Pull quote: once per page at most */
blockquote.pullquote { margin: var(--s-7) 0; padding: var(--s-1) 0 var(--s-1) var(--s-5); border-left: 12px solid var(--door); max-width: 46rem; }
blockquote.pullquote p { margin: 0 0 var(--s-3); font-family: var(--serif); font-size: var(--t-h2); font-weight: 700; font-variation-settings: "opsz" 14; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
blockquote.pullquote footer { color: var(--ink-soft); font-size: var(--t-small); }

/* Letter (quoted in full) */
blockquote.letter { margin: var(--s-6) 0; padding: var(--s-6); background: var(--mist); border-radius: var(--radius); max-width: var(--measure); }
blockquote.letter > :last-child { margin-bottom: 0; }
@media (max-width: 559px) { blockquote.letter { padding: var(--s-5); } }

/* Timeline: real dates only, newest first */
h2.timeline-year { margin-top: var(--s-7); }
ol.timeline { list-style: none; margin: 0 0 var(--s-6); padding: 0 0 0 var(--s-6); border-left: 2px solid var(--ink); max-width: 46rem; }
ol.timeline > li { position: relative; margin: 0; padding: 0 0 var(--s-6); }
ol.timeline > li:last-child { padding-bottom: var(--s-1); }
ol.timeline > li::before { content: ""; position: absolute; left: calc(-1 * var(--s-6) - 7px); top: 0.45em; width: 12px; height: 12px; background: var(--door); }
ol.timeline time { display: block; color: var(--ink-soft); font-size: var(--t-small); font-weight: 700; }
.timeline-what { display: block; font-size: var(--t-h4); font-weight: 700; line-height: 1.35; }
.timeline-where { display: block; color: var(--ink-soft); }
ol.timeline > li > p { margin: var(--s-2) 0 0; }

/* Event (next event / past event). ui.js marks past ones. */
.event { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--gap); align-items: start; }
.event-label { margin-bottom: var(--s-4); }
.event h3 { margin-bottom: var(--s-3); }
.event-when { margin-bottom: var(--s-2); font-size: var(--t-lead); font-weight: 700; line-height: 1.35; }
.event-where { margin-bottom: var(--s-4); }
.event .poster { margin: 0; }
.event.is-past .event-when::after { content: " (this has now taken place)"; font-weight: 400; color: var(--ink-soft); font-size: var(--t-small); }
@media (min-width: 900px) {
  .event { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .event > .event-body { grid-column: span 7; }
  .event > .poster, .event > figure { grid-column: 9 / span 4; }
}
.event-fallback[hidden] { display: none; }

/* Act / Means / Purpose */
.amp-table { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--gap); margin: 0 0 var(--s-6); }
.amp-table > div, .amp-table > section { border-top: 6px solid var(--ink); padding-top: var(--s-4); }
.amp-table h3, .amp-table h4 { margin: 0 0 var(--s-3); font-size: var(--t-h3); }
.amp-table ul { margin: 0; }
@media (min-width: 720px) { .amp-table { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Download link: says the file type and size */
a.download {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 56px; margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-5) var(--s-3) var(--s-4);
  border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3;
}
a.download:hover { background: var(--mist); }
a.download .download-meta { display: block; color: var(--ink-soft); font-weight: 400; font-size: var(--t-small); }

/* Forms (markup fixed by section 4.4 of the plan; site.js sends them) */
.form { max-width: 32rem; margin: 0 0 var(--s-5); }
.field { margin: 0 0 var(--s-5); }
.field label { display: block; margin-bottom: var(--s-2); font-weight: 700; line-height: 1.35; }
.optional { font-weight: 400; color: var(--ink-soft); }
.form input:not([type="checkbox"]):not([type="radio"]):not(.trap), .form textarea, .form select {
  display: block; width: 100%;
  padding: 12px 14px; border: 2px solid var(--ink-soft); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: 400 1.125rem/1.4 var(--sans);
}
.form textarea { min-height: 7rem; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 4px solid var(--focus); outline-offset: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper); }
.form .button { margin-top: var(--s-1); }
.form-note { margin: var(--s-4) 0 0; color: var(--ink-soft); font-size: var(--t-small); line-height: 1.5; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dad-status[hidden] { display: none; }
.dad-status { font-size: var(--t-small); }
.form noscript .notice, .form .notice { margin-top: var(--s-4); }

/* Read more (Patrons page only) */
details.more { margin: var(--s-3) 0 0; }
details.more > summary {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px;
  color: var(--link); font-weight: 700; cursor: pointer; list-style: none;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 4px; font-size: 1.1rem; line-height: 1; text-decoration: none; }
details.more[open] > summary::before { content: "\2212"; }
details.more > summary:hover { text-decoration-thickness: 3px; }
details.more[open] > :not(summary) { animation: fade-in 150ms ease; }

/* Numbered reading list (the seven-part guide) */
ol.guide-list { list-style: none; counter-reset: guide; margin: 0 0 var(--s-6); padding: 0; }
ol.guide-list > li { counter-increment: guide; position: relative; margin: 0; padding: var(--s-4) 0 var(--s-4) 3.25rem; border-bottom: 1px solid var(--line); }
ol.guide-list > li:first-child { border-top: 1px solid var(--line); }
/* the numbers use the sans: Bodoni's hairline 4 and 1 vanish at this size */
ol.guide-list > li::before { content: counter(guide); position: absolute; left: 0; top: var(--s-4); width: 2.25rem; font-family: var(--sans); font-size: 1.5rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--door); }
ol.guide-list a { font-size: var(--t-h4); font-weight: 700; }
/* the one-column list on /learn/ has room for larger titles (plan: --t-h3) */
ol.guide-list:not(.guide-list-2col) a { font-size: var(--t-h3); line-height: 1.4; }
ol.guide-list:not(.guide-list-2col) > li::before { line-height: calc(var(--t-h3) * 1.4); }
ol.guide-list p { margin: var(--s-1) 0 0; color: var(--ink-soft); }
@media (min-width: 720px) {
  ol.guide-list.guide-list-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: var(--gap); align-content: start; }
  ol.guide-list.guide-list-2col > li:nth-child(5) { border-top: 1px solid var(--line); }
}
/* a plain list of links, one per row */
ul.link-rows { list-style: none; margin: 0 0 var(--s-6); padding: 0; border-top: 1px solid var(--line); }
ul.link-rows > li { margin: 0; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
ul.link-rows a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; }
ul.link-rows p { margin: var(--s-1) 0 0; color: var(--ink-soft); }

/* Contact rows: phone numbers and email, each a 48 px row */
ul.contact-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
ul.contact-list li { margin: 0; }
ul.contact-list a { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 48px; font-size: 1.25rem; overflow-wrap: anywhere; }
ul.contact-list a[href^="mailto:"] { font-weight: 700; font-size: var(--t-body); }

/* Panel: an outlined box, used only where things are true alternatives (Donate: three ways to give) */
.panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; margin: 0 0 var(--s-6); padding: 0; list-style: none; }
.panels > li { margin: 0; display: flex; }
.panel { width: 100%; padding: var(--s-5); border: 2px solid var(--line); border-radius: var(--radius); }
.panel > :last-child { margin-bottom: 0; }
.panel h2, .panel h3 { font-family: var(--sans); font-size: var(--t-h3); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
@media (min-width: 560px) { .panels.panels-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.panel .qr { width: 160px; height: auto; margin-top: var(--s-4); border-radius: 0; }
@media (min-width: 900px) { .panels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Donate page: online giving, then the call-back form, then the reasons */
.give > h2 { margin-top: 0; }
.give-cards { margin-bottom: var(--s-8); }
.give-card { text-align: center; }
.give-card .button { margin: 0; }
.give-qr { margin: var(--s-4) 0 0; }
.give-qr .qr { display: block; margin: 0 auto var(--s-2); }
.give-qr figcaption { color: var(--ink-soft); font-size: var(--t-small); }
.split-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-8); align-items: start; }
.split-form h2 { margin-top: 0; }
.split-form .form { max-width: none; margin: 0; padding: var(--s-5); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); }
@media (min-width: 640px) { .field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); align-items: end; } }
@media (min-width: 900px) {
  .split-form { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

/* Two or three columns of short text (What we do, audiences) */
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--gap); margin: 0 0 var(--s-6); padding: 0; list-style: none; }
.cols > li { margin: 0; }
.cols h3 { margin-bottom: var(--s-2); }
.cols > * > :last-child { margin-bottom: 0; }
@media (min-width: 720px) { .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Jump links at the top of a long page ("Українською" / "In English") */
.jump { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; margin: 0 0 var(--s-6); padding: 0; }
.jump li { margin: 0; }

/* ---------- 7. Bottom of every page ---------- */
.donate-band { background: var(--navy); color: var(--paper); }
.donate-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-8); }
.donate-band p { margin: 0; max-width: 34rem; font-family: var(--serif); font-size: var(--t-h2); font-weight: 700; font-variation-settings: "opsz" 14; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.donate-band .actions { margin: 0; }
.donate-band .button-quiet { background: transparent; color: var(--paper); border-color: var(--paper); }
.donate-band .button-quiet:hover { background: rgb(255 255 255 / 0.12); }

.site-footer { background: var(--navy); color: var(--paper); border-top: 12px solid var(--red); font-size: var(--t-small); line-height: 1.5; }
.site-footer .wrap { padding-block: var(--s-8) var(--s-6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7) var(--gap); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.15fr 1fr 2.1fr 1.1fr; }
  .footer-links > ul { columns: 2; column-gap: var(--gap); }
  .footer-links > ul > li { break-inside: avoid; }
}
.site-footer h2 { margin: 0 0 var(--s-4); font-family: var(--sans); font-size: var(--t-h4); font-weight: 700; letter-spacing: 0; color: var(--paper); }
.site-footer p { margin: 0 0 var(--s-3); }
.site-footer ul { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--paper); text-decoration-color: rgb(255 255 255 / 0.5); }
.site-footer a:hover { text-decoration-color: currentColor; }
.site-footer a:focus-visible { color: var(--ink); }
.footer-links a, .footer-help a, .footer-contact a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer .sister a { display: inline-block; }
.footer-links ul ul { margin: 0 0 var(--s-2) var(--s-4); }
.footer-links ul ul a { color: var(--navy-text); }
.footer-help li, .footer-contact li { padding: var(--s-1) 0; }
.footer-help .what { display: block; color: var(--navy-text); }
.footer-help .num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.25rem; }
.site-footer .muted { color: var(--navy-text); }
.site-footer .sister img { width: 120px; height: auto; margin-top: var(--s-2); background: var(--paper); padding: 6px; border-radius: var(--radius-photo); }
.footer-small { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgb(255 255 255 / 0.2); color: var(--navy-text); }

/* Phone door bar: three doors fixed at the bottom of small screens */
.door-bar { display: none; }
@media (max-width: 719px) {
  body { padding-bottom: calc(var(--doorbar-h) + env(safe-area-inset-bottom, 0px)); }
  .door-bar {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--ink);
  }
  .door-bar ul { display: contents; }
  .door-bar li { margin: 0; display: flex; }
  .door-bar a {
    display: flex; align-items: center; justify-content: center; width: 100%;
    height: var(--doorbar-h); padding: 0 var(--s-2);
    color: var(--paper); font-size: var(--t-small); font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none;
  }
  .door-bar .door-help { background: var(--red); }
  .door-bar .door-spot { background: var(--umber); }
  .door-bar .door-join { background: var(--green); }
  .door-bar a:hover { filter: brightness(0.92); }
  .door-bar a[aria-current] { box-shadow: inset 0 4px 0 var(--paper); }
  .door-bar a:focus-visible { outline: 4px solid var(--focus); outline-offset: -4px; color: var(--paper); }
}

/* ---------- 8. Home page ---------- */
.hero { padding-top: var(--s-5); padding-bottom: var(--s-8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--gap); align-items: start; }
.hero h1 { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.015em; margin: 0; max-width: 15ch; }
.hero .stop-line-wide { margin: 20px 0 var(--s-5); background: var(--red); }

.motto { margin: 0 0 var(--s-6); font-size: var(--t-h3); font-weight: 700; line-height: 1.35; max-width: var(--measure); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; background: var(--mist); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero-main { grid-column: 1 / span 8; }
  .hero-photo { grid-column: 9 / span 4; grid-row: 1; }
  
}
@media (max-width: 899px) {
  .hero { padding-top: var(--s-5); }
  .hero-photo { max-width: 30rem; }
}

/* the scale of the problem: plain sentences, not tiles */
.scale { list-style: none; margin: 0 0 var(--s-4); padding: 0; max-width: 46rem; }
.scale li { margin: 0; padding: var(--s-3) 0; font-size: var(--t-lead); line-height: 1.45; border-bottom: 1px solid var(--line); }
.scale li:first-child { border-top: 1px solid var(--line); }
.scale strong { font-weight: 800; }
.source { color: var(--ink-soft); font-size: var(--t-small); }

/* Watch: one large video + two smaller */
.watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--gap); align-items: start; }
.watch .video { margin: 0; }
.watch-text { max-width: var(--measure); margin-top: var(--s-5); }
.watch-text h3 { margin-bottom: var(--s-2); }
.watch-text > :last-child { margin-bottom: 0; }
.watch-side .video + .video { margin-top: var(--s-5); }
@media (min-width: 900px) {
  .watch { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .watch-main { grid-column: span 8; }
  .watch-side { grid-column: 9 / span 4; }
}

/* 404 page */
.not-found .doors { max-width: 60rem; }

/* ---------- 9. Printing ---------- */
@media print {
  @page { margin: 15mm; }
  html { scroll-behavior: auto; }
  body { padding: 0 !important; background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  .blessing, .site-nav, .menu-button, .sheet, a.leave, .header-donate, .door-bar, .donate-band,
  .video, .video-grid, .watch, .skip, .subnav, .pager, .help-card, form, .hero-photo, .gallery, .actions .button-quiet { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  .header-row { height: auto; padding: 0 0 6mm; }
  .brand img { height: 14mm; }
  .safety { border: 0; }
  .wrap { max-width: none; padding: 0; }
  .section, .page-head, .hero { padding: 0 0 6mm; }
  .grid, .hero-grid, .watch, .event { display: block; }
  h1, h2, h3 { color: #000; break-after: avoid; }
  h1 { font-size: 24pt; } h2 { font-size: 16pt; margin-top: 6mm; } h3 { font-size: 12.5pt; }
  .lead { font-size: 12.5pt; }
  a { color: #000; }
  .prose a[href^="http"]::after, .notice a[href^="http"]::after, .helpline a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .button, a.helpline-number, a.door, .door-bar a { background: #fff !important; color: #000 !important; border: 1.5pt solid #000; min-height: 0; padding: 1mm 3mm; }
  ul.doors { display: block; }
  a.door { display: block; margin-bottom: 2mm; }
  .notice, .notice-emergency, .help-card, blockquote.letter { background: #fff !important; border: 1pt solid #000; border-left-width: 4pt; }
  .stop-line { background: #000 !important; animation: none; height: 6px; }
  .helpline { break-inside: avoid; padding: 3mm 0; }
  /* the printed page already carries the numbers it needs: the footer shrinks to one line */
  main > :last-child { margin-bottom: 4mm !important; }
  .site-footer { background: #fff; color: #000; border-top: 1pt solid #000; }
  .site-footer .wrap { padding: 2mm 0 0; }
  .footer-grid, [data-translate], main hr { display: none !important; }
  .footer-small { margin: 0; padding: 0; border: 0; color: #000; font-size: 9pt; }
  .footer-small::after { content: " \00B7  www.stoptrafficking.co.uk"; }
  img { max-width: 60mm; }
}

/* ---------- 10. Less movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .stop-line-wide { transform: none; }
}

/* Home hero: Westminster behind a dark wash, as on the old site. */
@media screen {
  .hero { background: linear-gradient(rgba(0, 0, 0, .74), rgba(0, 0, 0, .74)), url("hero-london-720.webp") center 40% / cover no-repeat #16181D; padding-top: var(--s-7); }
  .hero h1.hero-logo { max-width: 38rem; }
  .hero-logo img { display: block; width: 100%; height: auto; padding: 12px; background: #FFFFFF; border-radius: 8px; }
  .hero figcaption { color: #FFFFFF; }
}
@media screen and (min-width: 721px) {
  .hero { background-image: linear-gradient(rgba(0, 0, 0, .74), rgba(0, 0, 0, .74)), url("hero-london-1280.webp"); }
}

/* Home: the statement beside the main video, full width on green. */
.intro { padding-block: var(--s-8); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--gap); align-items: center; }
.intro h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.05; margin-bottom: var(--s-5); }
.intro-lead { font-size: 1.25rem; line-height: 1.55; }
.intro-motto { margin: var(--s-5) 0; padding-left: var(--s-4); border-left: 6px solid var(--focus); font-size: var(--t-h3); font-weight: 700; line-height: 1.35; }
.intro-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0; }
.intro-button { display: inline-block; padding: 14px 24px; border: 2px solid currentColor; border-radius: 8px; font-weight: 700; text-decoration: none; }
.intro .video { margin: 0; }
.video-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--gap); margin-top: var(--s-5); }
.video-pair .video { margin: 0; }
@media (min-width: 640px) { .video-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .intro-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
@media screen {
  .intro { background: var(--green); color: #FFFFFF; }
  .intro h2, .intro figcaption { color: #FFFFFF; }
  .intro .video-poster { box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
  .intro-button { background: #FFFFFF; border-color: #FFFFFF; color: var(--green-deep); }
  .intro-button:hover { background: var(--green-tint); color: var(--green-deep); }
  .intro-button-quiet { background: transparent; color: #FFFFFF; }
  .intro-button-quiet:hover { background: var(--green-deep); color: #FFFFFF; }
}

/* Home: the booklet. */
.booklet-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--s-7); align-items: center; justify-items: start; }
.booklet-grid img { width: 100%; max-width: 287px; height: auto; border-radius: 8px; }
.booklet-grid p { max-width: var(--measure); }
@media (min-width: 640px) { .booklet-grid { grid-template-columns: 287px minmax(0, 1fr); } }
@media screen { .booklet-band { background: var(--green-tint); } }

/* People: cards on the listing pages, one page per person */
.people-cards { list-style: none; margin: 0 0 var(--s-7); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
@media (min-width: 640px) { .people-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .people-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); } }
.person-card { position: relative; margin: 0; text-align: center; }
.person-card > img { display: block; width: 100%; max-width: 224px; height: auto; aspect-ratio: 1; margin: 0 auto var(--s-3); object-fit: cover; object-position: 50% 20%; background: var(--mist); }
.person-card h3 { margin: 0 0 var(--s-1); }
.person-card h3 a::after { content: ""; position: absolute; inset: 0; }
.person-card:hover h3 a { text-decoration-thickness: 3px; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-8); align-items: start; margin-bottom: var(--s-8); }
.profile-photo img { display: block; width: 224px; height: 224px; object-fit: cover; object-position: 50% 20%; background: var(--mist); }
@media (min-width: 900px) { .profile { grid-template-columns: 224px minmax(0, 1fr); } }

/* Phones: PDFs do not show inside the page, so offer the download button only; wrap the section tabs; space above "Past events". */
@media (max-width: 899px) { .pdf-frame { display: none; } }
@media (max-width: 639px) { nav.subnav ul { flex-wrap: wrap; row-gap: 0; column-gap: var(--s-4); } }
#past-title { padding-top: var(--s-6); }

/* The safety bar (999 and "Leave this site") stays at the top while scrolling, with the menu just under it */
:root { --safety-h: 57px; }
.top-band { display: contents; }
.safety { position: sticky; top: 0; z-index: 51; }
.safety-row { height: calc(var(--safety-h) - 1px); }
.site-header { top: var(--safety-h); }
html { scroll-padding-top: calc(var(--safety-h) + var(--header-h) + var(--s-5)); }
@media (min-width: 900px) { .aside { top: calc(var(--safety-h) + var(--header-h) + var(--s-5)); } }
@media print { .safety, .site-header { position: static; } }

/* Page heading with a photo beside it (About us) */
.page-head-photo { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-8); align-items: stretch; }
.page-head-photo figure { margin: 0; position: relative; }
.page-head-photo img { display: block; width: 100%; max-width: 30rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; border-radius: var(--radius); }
@media (min-width: 900px) {
  .page-head-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); }
  .page-head-photo img { position: absolute; inset: 0; height: 100%; max-width: none; aspect-ratio: auto; }
}

/* A line from the page itself, beside the heading */
.page-head-quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-8); align-items: center; }
.head-quote { display: none; margin: 0; padding: var(--s-6); background: var(--mist); border: 0; border-left: 6px solid var(--green, #1E6B34); border-radius: var(--radius); }
.head-quote p { margin: 0; font: 600 1.4rem/1.45 var(--serif, Georgia, serif); color: var(--ink); }
@media (min-width: 900px) {
  .page-head-quote { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }
  .head-quote { display: block; }
}
@media (min-width: 900px) { .page-head-photo { min-height: 30rem; } }
@media print { .head-quote, .page-head-photo figure { display: none; } }

/* Learn drop-down: the seven guide parts sit under "All guides"; the further reading below a line, not indented. */
.site-nav a[data-key="learn"] + .sub li:nth-child(n+2):nth-child(-n+8) a { padding-left: calc(var(--s-4) * 2); font-weight: 400; }
.site-nav a[data-key="learn"] + .sub li:nth-child(9) { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); }

/* Donate page */
#give-online, #give-call { scroll-margin-top: var(--s-5); }
.don-intro, .don-band-grid, .don-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--s-8); align-items: start; }
.don-intro h2, .don-pair h2, .don-band h2 { margin-top: 0; }
.don-intro h2 span { display: block; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 4px solid var(--red); font: 700 var(--t-lead)/1.35 var(--sans); letter-spacing: 0; color: var(--ink-soft); }
.don-open { font-size: var(--t-lead); line-height: 1.5; }
.don-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); counter-reset: area; }
.don-areas li { counter-increment: area; margin: 0; padding: var(--s-6) var(--s-5) var(--s-5); background: var(--paper); border-top: 6px solid var(--navy); border-radius: var(--radius); }
.don-areas li::before { content: counter(area); display: block; font: 700 3rem/1 var(--serif); color: var(--red); margin-bottom: var(--s-4); }
.don-areas h3 { margin: 0 0 var(--s-3); }
.don-areas p { margin: 0; }
.don-band { padding-block: var(--s-9); background: var(--navy); color: var(--paper); }
.don-band h2 { color: var(--paper); }
.don-band ul { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.don-band li { margin: 0; padding: var(--s-4) 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.don-pound { font: 600 var(--t-h2)/1.3 var(--serif); }
.don-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.don-shots li { margin: 0; }
.don-shots img { display: block; width: 100%; height: auto; border-radius: var(--radius-photo); }
.don-ways { list-style: none; margin: 0; padding: 0; }
.don-ways li { margin: 0 0 var(--s-3); }
.don-ways a { display: block; padding: var(--s-4) var(--s-5); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.don-ways a:hover { border-color: var(--navy); }
.don-close .wrap { text-align: center; }
.don-close p { max-width: var(--measure); margin-inline: auto; }
.don-close .actions { justify-content: center; margin: var(--s-6) auto 0; }
@media (min-width: 640px) { .don-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .don-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .don-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .don-band-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
  .don-pair { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

/* Home hero: the rally photo as a card, its name laid over the foot of the picture. */
.hero .hero-photo { position: relative; overflow: hidden; justify-self: stretch; border-radius: var(--radius); background: #16181D; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.hero .hero-photo img { display: block; border-radius: 0; }
.hero .hero-photo figcaption { position: absolute; inset: auto 0 0 0; margin: 0; padding: var(--s-9) var(--s-5) var(--s-5); background: linear-gradient(rgba(10, 12, 16, 0), rgba(10, 12, 16, .78) 55%, rgba(10, 12, 16, .94)); color: #FFFFFF; font: 700 var(--t-h3, 1.5rem)/1.2 var(--serif); font-variation-settings: "opsz" 14; text-align: left; }
.hero .hero-photo figcaption::before { content: ""; display: block; width: 56px; height: 5px; margin-bottom: var(--s-3); background: var(--red); }
/* Side by side: the card runs from the top of the logo to the foot of the three boxes, whatever the width. */
@media (min-width: 900px) {
  .hero .hero-photo { align-self: stretch; max-width: none; margin-bottom: var(--s-6); }
  .hero .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 15% 0; }
}
@media (max-width: 899px) { .hero .hero-photo { margin-top: var(--s-6); } }
