/* ifakaraid.com design tokens: the ONE place colours, typefaces, type sizes, radii and motion are defined.
   Everything else reads var(--…). The build reads --color-green (theme-color) and --color-paper (touch icon) from
   here too. Declared in src/design-language.json; checked by the launch gate (no-hardcoded-hex, design-language). */
:root {
  /* palette (coordinator brief: paper, ink, clay, valley green, sun) */
  --color-paper: #FBF7F0;
  --color-paper-2: #F3ECDF;
  --color-surface: #FFFFFF;
  --color-ink: #2A2420;
  --color-ink-2: #5A4F47;
  --color-clay: #B5532E;
  --color-clay-dark: #8F3F21;
  --color-green: #1F4D3A;
  --color-green-2: #2C6650;
  --color-sun: #E8B341;
  --color-line: #E2D7C6;
  --color-on-dark: #FFFFFF;
  --color-black: #000000;
  --color-scrim: rgb(20 17 15 / 0.96);
  --color-scrim-soft: rgb(20 17 15 / 0.6);
  --color-paper-50: rgb(251 247 240 / 0.5);
  --color-shadow: rgb(42 36 32 / 0.12);

  /* typefaces: Literata (headings) + Inter (text), self-hosted, Greek + Latin subsets */
  --font-serif: 'Literata', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* type scale */
  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 4.6vw, 2.25rem);
  --text-2xl: clamp(1.75rem, 7vw, 3rem);
  --text-hero: clamp(1.625rem, 6.4vw, 3rem);
  --text-year: clamp(2rem, 9vw, 3.5rem);
  --text-figure: clamp(2.5rem, 12vw, 4rem);
  --text-icon: 2rem;

  /* layout */
  --gutter: 16px;
  --max: 72rem;
  --tap: 44px;

  /* radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 999px;

  /* motion */
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ifakaraid.com: warm, human, documentary. Photos at the centre. Mobile first (390 px), no horizontal overflow,
   44 px tap targets, Greek without mid-word breaks (no break-all; hyphens: manual), every <img> sized. */

@font-face { font-family: 'Literata'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/fonts/literata-greek.393643556e.woff2) format('woff2-variations'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/fonts/literata-latin.9adbeac5b1.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-greek.1be3448e29.woff2) format('woff2-variations'); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin.3100e775e8.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--color-paper); color: var(--color-ink);
  font: 400 var(--text-base)/1.65 var(--font-sans);
  overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual;
  font-synthesis-weight: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-clay-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--color-ink); }
:focus-visible { outline: 3px solid var(--color-clay-dark); outline-offset: 2px; border-radius: 2px; }
/* On the green band and the dark lightbox the ring is paper (9:1), elsewhere clay-dark (6.8:1): ≥ 3:1 everywhere. */
.hero :focus-visible, .foot :focus-visible, .total :focus-visible, .lb :focus-visible { outline-color: var(--color-paper); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background-color: var(--color-green); color: var(--color-paper); padding: 12px 16px; border-radius: var(--radius-md); }
.skip:focus { top: 8px; }
.skip:hover, .skip:focus { background-color: var(--color-green); color: var(--color-paper); }

/* ── Header: opaque, sticky ───────────────────────────────── */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--color-paper); border-bottom: 1px solid var(--color-line); }
.masthead__bar { display: flex; align-items: center; gap: 12px; min-height: 64px; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: auto; height: 44px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 1px solid var(--color-line); border-radius: var(--radius-md); color: var(--color-ink); text-decoration: none; font-weight: 600; background: var(--color-paper);
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ''; }
.menu-btn__bars::before { position: absolute; top: -6px; }
.menu-btn__bars::after { position: absolute; top: 6px; }

.nav { display: none; }
.nav:target, .menu-open .nav {
  display: block; position: fixed; inset: 65px 0 0 0; overflow-y: auto; background: var(--color-paper);
  padding: 8px var(--gutter) 32px; border-top: 1px solid var(--color-line);
}
.menu-open body { overflow: hidden; }
.nav__list, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__list > li { border-bottom: 1px solid var(--color-line); }
.nav a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 0; color: var(--color-ink); text-decoration: none; font-weight: 600; }
.nav a[aria-current='page'] { color: var(--color-clay-dark); box-shadow: inset 3px 0 0 var(--color-clay); padding-left: 10px; }
.nav__sub { padding-left: 16px; margin-bottom: 8px; }
.nav__sub a { font-weight: 400; min-height: 44px; }
.lang { display: inline-flex !important; justify-content: center; min-width: 48px; margin-top: 16px; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 0 12px !important; letter-spacing: 0.04em; }
.nav__close { margin-top: 8px; color: var(--color-ink-2) !important; font-weight: 400 !important; }
.doc-tag { font: 600 var(--text-2xs)/1 var(--font-sans); letter-spacing: 0.06em; color: var(--color-clay-dark); border: 1px solid currentColor; border-radius: var(--radius-sm); padding: 2px 4px; }

@media (min-width: 1024px) {
  .menu-btn, .nav .nav__close { display: none; }
  .nav, .nav:target { display: flex; position: static; align-items: center; gap: 4px; padding: 0; border: 0; overflow: visible; background: none; }
  .nav__list { display: flex; gap: 4px; }
  .nav__list > li { border: 0; position: relative; }
  .nav__list > li > a { padding: 8px 12px; font-size: var(--text-sm); }
  .nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--color-clay); padding-left: 12px; }
  .nav__sub {
    display: none; position: absolute; left: 0; top: 100%; min-width: 19rem; padding: 8px 0; margin: 0;
    background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: 0 10px 30px var(--color-shadow);
  }
  .nav__item--parent:hover .nav__sub, .nav__item--parent:focus-within .nav__sub { display: block; }
  .nav__sub a { padding: 8px 16px; font-size: var(--text-sm); }
  .nav__sub a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--color-clay); }
  .lang { margin: 0 0 0 8px; min-height: 44px; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border-radius: var(--radius-pill); border: 2px solid var(--color-green); color: var(--color-green); background-color: transparent;
  font-weight: 600; text-decoration: none; line-height: 1.25; text-align: center;
}
.btn:hover { background-color: var(--color-green); color: var(--color-paper); }
.btn--primary { background-color: var(--color-clay-dark); border-color: var(--color-clay-dark); color: var(--color-on-dark); }
.btn--primary:hover { background-color: var(--color-ink); border-color: var(--color-ink); color: var(--color-on-dark); }
.btn--ghost { border-color: var(--color-ink); color: var(--color-ink); }
.btn--ghost:hover { background-color: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn .doc-tag { color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Home hero ────────────────────────────────────────────── */
.hero { background: var(--color-green); color: var(--color-paper); }
.hero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 72svh; }
.hero__panel { padding-block: 28px 40px; }
.hero__motto { font: 500 var(--text-hero)/1.2 var(--font-serif); margin: 0 0 20px; letter-spacing: -0.01em; text-wrap: balance; }
.hero__name { font: 700 var(--text-xs)/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-sun); margin: 0 0 16px; }
.hero__lede { max-width: 40rem; font-size: var(--text-md); }
.hero__lede p { margin: 0 0 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero .btn--ghost { border-color: var(--color-paper); color: var(--color-paper); }
.hero .btn--ghost:hover { background-color: var(--color-paper); border-color: var(--color-paper); color: var(--color-green); }
.hero .btn--primary { background-color: var(--color-sun); border-color: var(--color-sun); color: var(--color-ink); }
.hero .btn--primary:hover { background-color: var(--color-paper); border-color: var(--color-paper); color: var(--color-ink); }
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1fr; }
  .hero__media img { aspect-ratio: 21 / 9; }
  .hero__panel { padding-block: 40px 56px; }
}

.section-title { font-size: var(--text-xl); color: var(--color-green); }
.sub-title { font-size: var(--text-lg); color: var(--color-green); margin-top: 1.6em; }
.prose { max-width: 42rem; }
.prose--story { font-size: var(--text-md); }
.story { padding-block: 48px 32px; }
.friends { background: var(--color-paper-2); padding-block: 48px; }
.friends__inner { display: grid; gap: 28px; align-items: center; }
.friends__photo img { border-radius: var(--radius-md); }
.prose--quote p:first-child { font: italic 600 var(--text-lg)/1.4 var(--font-serif); color: var(--color-clay-dark); }
.signature { font-family: var(--font-serif); font-style: italic; text-align: right; max-width: 42rem; }
.signature p { margin: 0; }
.signature p:last-child { font-weight: 600; margin-bottom: 20px; }
@media (min-width: 900px) { .friends__inner { grid-template-columns: 5fr 7fr; gap: 48px; } }

.paths { padding-block: 48px 64px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.card__link { display: block; height: 100%; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; color: var(--color-ink); text-decoration: none; }
.card__link img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__label { display: block; padding: 14px 16px; font: 600 var(--text-md)/1.3 var(--font-serif); }
.card__link:hover .card__label { color: var(--color-clay-dark); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(5, 1fr); } }

/* ── Inner page header: the old site's sunset band ────────── */
.page-head__band img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.page-head__band .figure { margin: 0; }
.page-head__text { padding-block: 24px 8px; }
.page-head__title { font-size: var(--text-2xl); color: var(--color-green); margin: 0; }
@media (min-width: 900px) { .page-head__band img { aspect-ratio: 5 / 1; } .page-head__text { padding-top: 40px; } }

.figure { margin: 0; }
.figure img { border-radius: var(--radius-md); }
.page-head__band .figure img { border-radius: 0; }

/* ── How to help: one screen ───────────────────────────────── */
.answer { padding-block: 24px 40px; }
.answer__list { margin: 0; display: grid; gap: 12px; }
.answer__row { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 16px 18px; }
.answer__row dt { font: 700 var(--text-xs)/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-ink-2); margin-bottom: 8px; }
.answer__row dd { margin: 0; }
.answer__row dd p:last-child { margin-bottom: 0; }
.answer__date { font: 500 var(--text-lg)/1.4 var(--font-serif); margin: 0; }
.answer__date strong, .answer__date b { background: var(--color-sun); color: var(--color-ink); padding: 0 6px; border-radius: var(--radius-sm); font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (min-width: 900px) { .answer__list { grid-template-columns: 1fr 1.4fr 1.2fr; } }

.record { padding-block: 16px 40px; }
.record__grid { display: grid; gap: 28px; }
.timeline { list-style: none; margin: 0 0 16px; padding: 0 0 0 20px; border-left: 2px solid var(--color-line); }
.timeline li { position: relative; padding: 6px 0; }
.timeline li::before { content: ''; position: absolute; left: -27px; top: 0.95em; width: 12px; height: 12px; border-radius: 50%; background: var(--color-green); }
.note { color: var(--color-ink-2); font-style: italic; }
.total { background: var(--color-green); color: var(--color-paper); border-radius: var(--radius-md); padding: 24px; align-self: start; }
.total__label { margin: 0; font-weight: 600; }
.total__num { font: 700 var(--text-figure)/1 var(--font-serif); color: var(--color-sun); margin: 8px 0 16px; }
.total__text { margin: 0; }
@media (min-width: 900px) { .record__grid { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; grid-template-columns: 1fr; }
.docs a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .docs { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
.media { padding-block: 8px 56px; }

/* ── Grids, tiles, lightbox ──────────────────────────────── */
.grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.grid__item { margin: 0; }
.tile { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-paper-2); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform var(--dur-base) var(--ease-out-soft); }
.tile:hover img { transform: scale(1.03); }
.tile__caption { margin: 6px 0 0; font: 600 var(--text-sm)/1.3 var(--font-serif); color: var(--color-green); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }

.lb { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--color-scrim); color: var(--color-paper); }
.lb::backdrop { background: var(--color-scrim); }
.lb__stage { position: absolute; inset: 56px 8px 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-height: 0; flex: 0 1 auto; }
.lb__caption { margin: 10px 0 0; font-family: var(--font-serif); text-align: center; }
.lb__count { margin: 4px 0 0; font-size: var(--text-xs); opacity: 0.85; }
.lb__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--color-paper-50); background: var(--color-scrim-soft); color: var(--color-paper); font-size: var(--text-icon); line-height: 1; cursor: pointer; }
.lb__close { top: 4px; right: 8px; }
.lb__prev { bottom: 12px; left: calc(50% - 60px); }
.lb__next { bottom: 12px; left: calc(50% + 12px); }
@media (min-width: 900px) { .lb__prev { left: 16px; top: calc(50% - 24px); bottom: auto; } .lb__next { left: auto; right: 16px; top: calc(50% - 24px); bottom: auto; } .lb__stage { inset: 56px 80px; } }
.lb-open body { overflow: hidden; }

/* ── Video ───────────────────────────────────────────────── */
.videos { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 900px) { .videos { grid-template-columns: repeat(2, 1fr); } }
.video { margin: 0; }
.video__play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--color-green); cursor: pointer; }
.video__poster { width: 100%; height: 100%; object-fit: cover; }
.video__blank { position: absolute; inset: 0; background: linear-gradient(135deg, var(--color-green), var(--color-green-2)); }
.video__icon { position: absolute; left: calc(50% - 34px); top: calc(50% - 34px); width: 68px; height: 68px; border-radius: 50%; background: var(--color-clay-dark); }
.video__icon::after { content: ''; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--color-on-dark); }
.video__play:hover .video__icon { background: var(--color-ink); }
.video__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-md); background: var(--color-black); }
.video figcaption { margin-top: 8px; font-size: var(--text-xs); color: var(--color-ink-2); }
.video__title { display: block; font: 600 var(--text-base)/1.3 var(--font-serif); color: var(--color-green); }

/* ── Albums ──────────────────────────────────────────────── */
.albums { padding-block: 24px 56px; }
.year { margin-top: 32px; }
.year__num { font: 700 var(--text-year)/1 var(--font-serif); color: var(--color-clay-dark); border-bottom: 2px solid var(--color-line); padding-bottom: 8px; }
.album__title { font-size: var(--text-lg); color: var(--color-green); margin-top: 20px; }

/* ── Children: story list ────────────────────────────────── */
.stories { list-style: none; margin: 0; padding: 24px 0 0; display: grid; gap: 16px; }
.story-card { display: grid; grid-template-columns: 7rem 1fr; gap: 14px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 12px; }
.story-card__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); }
.story-card__name { font-size: var(--text-lg); color: var(--color-green); margin: 2px 0 6px; }
.story-card__text p { margin: 0; font-size: var(--text-base); }
@media (min-width: 900px) { .stories { grid-template-columns: repeat(2, 1fr); gap: 20px; } .story-card { grid-template-columns: 10rem 1fr; padding: 16px; } }
.quote { margin: 40px auto 56px; max-width: 46rem; padding: 24px; background: var(--color-paper-2); font: italic 500 var(--text-lg)/1.5 var(--font-serif); }
.quote p { margin: 0; }
.quote footer { margin-top: 10px; font: 600 var(--text-sm)/1 var(--font-sans); font-style: normal; color: var(--color-ink-2); }

/* ── Orphanage sections ──────────────────────────────────── */
.split { display: grid; gap: 20px; padding-block: 28px; }
.split .grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding-block: 40px; }
  .split--flip .split__media { order: 2; }
  .split .grid { grid-template-columns: repeat(3, 1fr); }
}
.mark-note { display: flex; gap: 16px; align-items: center; font-family: var(--font-serif); font-size: var(--text-md); }
.mark-note__img { width: 72px; height: auto; flex: none; }
.mark-note p { margin: 0; }

/* ── Staff ───────────────────────────────────────────────── */
.staff { display: grid; gap: 24px; padding-block: 28px; }
.staff__photo img { width: 100%; max-width: 28rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.person { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 16px 18px; }
.person p:last-child { margin: 0; }
.person strong { font-family: var(--font-serif); color: var(--color-green); }
@media (min-width: 900px) { .staff { grid-template-columns: 2fr 3fr; align-items: start; gap: 40px; } .people { grid-template-columns: 1fr 1fr; } }
.closing { display: flex; align-items: center; gap: 20px; padding-block: 8px 56px; flex-wrap: wrap; }
.closing__mark img { width: 64px; }
.closing p { margin: 0; }

/* ── Contact, legal ──────────────────────────────────────── */
.contact { padding-block: 28px 8px; display: grid; gap: 20px; justify-items: start; }
.contact__mark img { width: 96px; }
.contact__card { font: 500 var(--text-lg)/1.5 var(--font-serif); }
.contact__card a { font-weight: 700; }
.legal { padding-block: 28px 56px; display: grid; gap: 20px; }
.legal__logo img { width: 12rem; }
.prose--legal { font-size: var(--text-base); }

/* ── Footer: valley-green band ───────────────────────────── */
.foot { background: var(--color-green); color: var(--color-paper); padding-block: 40px; margin-top: 24px; }
.foot a { color: var(--color-paper); }
.foot a:hover { color: var(--color-sun); }
.foot__inner { display: grid; gap: 28px; }
.foot__nav { display: grid; gap: 24px; grid-template-columns: 1fr; }
.foot__head { font: 600 var(--text-md)/1.3 var(--font-serif); margin: 0 0 8px; }
.foot__head a { text-decoration: none; }
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col li a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.foot__label { padding-top: 8px; opacity: 0.9; }
.foot .doc-tag { color: var(--color-sun); }
.foot__logo { justify-self: start; background: var(--color-paper); border-radius: var(--radius-md); padding: 10px 14px; }
.foot__logo img { height: 44px; width: auto; }
@media (min-width: 640px) { .foot__nav { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .foot__nav { grid-template-columns: repeat(4, 1fr); } }

.notfound { padding-block: 48px 64px; }

/* Menu label: both locales stacked in one cell, one visible, so the button (and the logo beside it) never moves
   when the language changes (House Standards §1). */
.menu-btn__label { display: inline-grid; }
.menu-btn__label > span { grid-area: 1 / 1; }
.menu-btn__label > span { visibility: hidden; }
.menu-btn__label > .mb-open { visibility: visible; }
.menu-open .menu-btn__label > .mb-open { visibility: hidden; }
.menu-open .menu-btn__label > .mb-close { visibility: visible; }
/* ✕ when open: the three bars become a cross (no layout change: same 18px box) */
.menu-open .menu-btn__bars { background: transparent; }
.menu-open .menu-btn__bars::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn__bars::after { top: 0; transform: rotate(-45deg); }
.lang { width: 56px; }

/* Breadcrumb (visible; mirrored by BreadcrumbList) */
.crumbs ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--text-sm); color: var(--color-ink-2); }
.crumbs li + li::before { content: '›'; margin-right: 8px; color: var(--color-ink-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); }
.crumbs span[aria-current] { display: inline-flex; align-items: center; min-height: var(--tap); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
.band--home img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; border-radius: 0; }
@media (min-width: 900px) { .band--home img { aspect-ratio: 5 / 1; } }
/* PDF tag inside a button takes the button's text colour in every state (said explicitly for the contrast audit). */
.btn:hover .doc-tag, .btn--ghost:hover .doc-tag { color: var(--color-paper); }
.btn--primary .doc-tag, .btn--primary:hover .doc-tag { color: var(--color-on-dark); }
/* Horizontal swipes belong to the lightbox (vertical pan and pinch-zoom stay with the browser). */
.lb { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }

/* An odd last photo in a two-column grid takes the full width (no empty cell) — HoPX 10/11. */
@media (max-width: 639px) {
  .grid > .grid__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid > .grid__item:last-child:nth-child(odd) .tile img { aspect-ratio: 2 / 1; }
}

/* Transfers table (the receipts themselves are not published — Head of Security 10/11). */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
.receipts { width: 100%; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.receipts th, .receipts td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.receipts thead th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-ink-2); }
.receipts tbody th { font-weight: 400; color: var(--color-ink-2); white-space: nowrap; }
.receipts .num { white-space: nowrap; }
@media (max-width: 639px) {
  .receipts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .receipts tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--color-line); }
  .receipts th, .receipts td { border: 0; padding: 0; }
  .receipts tr { grid-template-columns: 1fr; }
  .receipts td::before, .receipts tbody th::before { content: attr(data-label) ": "; color: var(--color-ink-2); font-size: var(--text-xs); }
}

.privacy { padding-block: 8px 56px; }
.privacy__updated { color: var(--color-ink-2); font-size: var(--text-sm); }
