/* ==========================================================================
   Girl Guiding: a cultural history — "the working archive"
   Museum-catalogue clarity with the warmth of a well-used unit logbook.
   Palette drawn from materials (Guide blue, Brownie ochre, paper, ink,
   camp green) — deliberately not Girlguiding's current brand colours.
   ========================================================================== */

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("/assets/fonts/zilla-slab-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("/assets/fonts/zilla-slab-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #22201d;
  --ink-soft: #4a463f;
  --muted: #655f55;
  --paper: #fbf8f1;
  --paper-2: #f4eee1;
  --card: #fffdf8;
  --rule: #d9cdb5;
  --rule-strong: #b9a988;

  --navy: #1d2d4f;
  --navy-2: #2a3f68;
  --link: #24457a;
  --link-hover: #1d2d4f;
  --ochre: #d39b35;
  --ochre-deep: #7f530b;
  --ochre-wash: #f7ead0;
  --green: #3e6b48;
  --green-wash: #e3eee2;
  --rust: #a2462b;
  --rust-wash: #f6e2da;
  --violet: #574785;
  --violet-wash: #e9e5f3;

  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.06rem, 1.02rem + 0.2vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.7vw, 1.95rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.4vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);

  --gutter: 1rem;
  --radius: 6px;
  --shadow: 0 1px 0 rgb(34 32 29 / 0.04), 0 6px 18px -10px rgb(34 32 29 / 0.25);
  --stitch: repeating-linear-gradient(90deg, var(--rule-strong) 0 8px, transparent 8px 14px);
}

@media (min-width: 40rem) {
  :root { --gutter: 1.5rem; }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  overflow-wrap: break-word;
}

img, svg, picture { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1rem; }

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

/* Navy on the light page (about 13:1). The navy nav and footer switch to
   ochre, which only passes 3:1 against dark backgrounds. */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}

main:focus { outline: none; }

cite { font-style: italic; }

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.muted { color: var(--muted); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li + li { margin-top: 0.3rem; }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* -------------------------------------------------------------- header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-height: 44px;
}
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); }
.brand__note {
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-header__tools { display: flex; align-items: center; gap: 0.5rem; }

.search-link, .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--navy);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.search-link:hover, .nav-toggle:hover { border-color: var(--navy); color: var(--navy); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 30rem) {
  .brand__note { display: none; }
  .search-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.site-nav { background: var(--navy); }
.site-nav__list {
  list-style: none;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  color: #f3ecdc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: rgb(255 255 255 / 0.35); }
.site-nav a[aria-current] { color: #fff; border-bottom-color: var(--ochre); }
.site-nav a:focus-visible { outline-color: var(--ochre); outline-offset: -3px; }

/* Collapsible only when JS is present and the screen is narrow. The inline
   script sets .js before first paint, so the menu starts collapsed instead of
   flashing open until site.js runs. Without JS the toggle stays hidden and the
   full menu shows. */
.nav-toggle { display: none; }
@media (max-width: 60rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav.is-collapsible { display: none; }
  .site-nav.is-collapsible.is-open { display: block; }
  .site-nav.is-collapsible .site-nav__list { flex-direction: column; padding-block: 0.5rem; }
  .site-nav.is-collapsible a { border-bottom: 0; border-left: 3px solid transparent; }
  .site-nav.is-collapsible a[aria-current] { border-left-color: var(--ochre); }
}

/* --------------------------------------------------------- breadcrumbs */
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0.85rem 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--rule-strong); }
.breadcrumbs a { color: var(--ink-soft); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: #dfe6ea; }
.hero__media picture, .hero__img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 70% 40%;
}
.hero__panel { position: relative; }
.hero__card {
  position: relative;
  margin-top: -2.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1.5px dashed var(--rule-strong);
  border-radius: 3px;
  pointer-events: none;
}
.hero h1 { font-size: var(--step-4); margin-bottom: 0.35em; }
.hero__lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

@media (min-width: 52rem) {
  .hero__media picture, .hero__img { aspect-ratio: auto; height: min(78vh, 42rem); min-height: 30rem; }
  .hero__panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2.5rem;
    pointer-events: none;
  }
  .hero__card {
    margin-top: 0;
    max-width: 34rem;
    padding: 2rem 2rem 2.1rem;
    background: rgb(251 248 241 / 0.94);
    pointer-events: auto;
  }
}

/* ------------------------------------------------------------- buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.3rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.button--ghost { background: transparent; color: var(--navy); }
.button--ghost:hover { background: var(--ochre-wash); color: var(--navy); border-color: var(--navy); }
.button--small { min-height: 44px; padding: 0.35rem 1rem; font-size: var(--step--1); }

.linklike {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--link);
  text-decoration: underline; cursor: pointer;
  min-height: 44px;
}

/* --------------------------------------------------------------- home */
.home-intro { padding-block: 2.5rem 1rem; }
.home-intro__text {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 48rem;
  color: var(--ink-soft);
}
.independence {
  display: inline-block;
  font-size: var(--step--1);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
}

.band { background: var(--paper-2); padding-block: 2.5rem; margin-block: 2rem; border-block: 1px solid var(--rule); }
.band--paper { background: var(--card); }

.section-title {
  font-size: var(--step-2);
  position: relative;
  padding-bottom: 0.45rem;
  margin-bottom: 1.25rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 5rem; height: 2px;
  background: var(--stitch);
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.section-head .section-title { margin-bottom: 1.25rem; }
.more { font-weight: 600; white-space: nowrap; }
.more::after { content: " →"; }

.routes {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.route {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
}
.route:hover { border-color: var(--rule-strong); }
.route h3 { margin: 0.75rem 0 0.35rem; }
.route h3 a { text-decoration: none; color: var(--navy); }
.route h3 a::after { content: ""; position: absolute; inset: 0; }
.route h3 a:hover { text-decoration: underline; }
.route p { margin: 0; color: var(--ink-soft); }
.route__icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.35), inset 0 0 0 5px currentColor;
}
.route--decade .route__icon { background: var(--navy); }
.route--theme .route__icon { background: var(--green); }
.route--section .route__icon { background: var(--ochre-deep); }
.route--object .route__icon { background: var(--rust); }

.period-strip {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
}
.period-strip a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 0.9rem 0.9rem 0.8rem;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
}
.period-strip li:nth-child(even) a { border-top-color: var(--ochre); }
.period-strip a:hover { background: var(--ochre-wash); }
.period-strip__years { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.period-strip__label { font-size: 0.95rem; line-height: 1.3; }
.period-strip__count { margin-top: auto; font-size: var(--step--1); color: var(--muted); }

.method { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .method { grid-template-columns: 1fr 1.2fr; align-items: start; } }

.status-legend { margin: 0; display: grid; gap: 0.75rem; }
.status-legend > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; align-items: baseline; }
.status-legend dd { margin: 0; }
@media (max-width: 30rem) { .status-legend > div { grid-template-columns: 1fr; gap: 0.25rem; } }

.updated-list { list-style: none; padding: 0; columns: 20rem 2; column-gap: 2rem; }
.updated-list li { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px dashed var(--rule); }

/* ------------------------------------------------------- page headers */
.page-header { padding-block: 1.5rem 1.75rem; }
.page-header h1 { max-width: 22ch; }
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}
.eyebrow a { color: inherit; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 44rem; }
.event-date {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.2rem 0.75rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--navy);
  background: var(--ochre-wash);
  border: 1.5px dashed var(--ochre-deep);
  border-radius: 3px;
}

/* ------------------------------------------------------ article layout */
.article__layout { display: grid; gap: 2rem; padding-bottom: 3rem; }
@media (min-width: 64rem) {
  .article__layout { grid-template-columns: 17rem minmax(0, 1fr); gap: 3rem; }
  .article__aside { order: 0; }
  .article__aside > * { position: sticky; top: 1rem; }
  .article__aside > * + * { position: static; }
}
.article__aside:empty { display: none; }

.prose { max-width: 44rem; min-width: 0; }
.prose--wide { max-width: 48rem; }
.prose h2 { margin-top: 2.25rem; font-size: var(--step-2); }
.prose h3 { margin-top: 1.75rem; }
.prose li + li { margin-top: 0.35rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--ochre); }
.page-updated { font-size: var(--step--1); color: var(--muted); margin-top: 2rem; }

.landing { padding-bottom: 3rem; }
.landing > .card-grid { margin-top: 1.5rem; }

/* --------------------------------------------------------------- toc */
.toc {
  font-size: 0.95rem;
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.toc__heading { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li + li { margin-top: 0.3rem; }
.toc a { text-decoration: none; display: inline-block; padding-block: 0.15rem; }
.toc a:hover { text-decoration: underline; }

/* ------------------------------------------------ record cards / boxes */
.record-card, .evidence-box {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.record-card::before, .evidence-box::before {
  content: "";
  position: absolute;
  top: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--stitch);
}
.record-card h2, .evidence-box h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.record-card dl, .evidence-box dl { margin: 0; font-size: 0.95rem; }
.record-card dl > div, .evidence-box dl > div { padding: 0.45rem 0; border-top: 1px dashed var(--rule); }
.record-card dl > div:first-child, .evidence-box dl > div:first-child { border-top: 0; padding-top: 0; }
.record-card dt, .evidence-box dt { font-weight: 700; font-size: var(--step--1); color: var(--ink-soft); }
.record-card dd, .evidence-box dd { margin: 0; }
.evidence-box__check { font-size: 0.92rem; margin: 0.75rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--rule); }

/* ------------------------------------------------------ fact status */
.fact-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.05rem 0.55rem 0.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: 0.1em;
  border: 1px solid;
}
.fact-status::before { font-size: 0.85em; }
.fact-status--verified { color: var(--green); background: var(--green-wash); }
.fact-status--verified::before { content: "✓" / ""; }
.fact-status--verify { color: var(--ochre-deep); background: var(--ochre-wash); border-style: dashed; }
.fact-status--verify::before { content: "?" / ""; }
.fact-status--disputed { color: var(--rust); background: var(--rust-wash); }
.fact-status--disputed::before { content: "⇄" / ""; }
.fact-status--interpretation { color: var(--violet); background: var(--violet-wash); }
.fact-status--interpretation::before { content: "✎" / ""; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 0.45rem;
  border-radius: 3px;
  vertical-align: 0.1em;
}
.tag--quiet { color: var(--muted); border: 1px dashed var(--rule-strong); }

/* ---------------------------------------------------------- citations */
.cite { font-size: 0.72em; line-height: 0; margin-left: 0.1em; }
.cite a { text-decoration: none; font-weight: 700; padding: 0.1em; }
.cite a:hover { text-decoration: underline; }

.source-list {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
  font-size: 0.95rem;
}
.source-list h2 { font-size: var(--step-1); margin-top: 0; }
.source-list ol { padding-left: 1.6rem; }
.source-list li { padding-left: 0.25rem; }
.source-list li:target { background: var(--ochre-wash); outline: 2px solid var(--ochre); outline-offset: 4px; border-radius: 2px; }
.source-list__locator { color: var(--muted); }
.source-list__note { display: block; color: var(--muted); font-size: 0.9rem; }

/* -------------------------------------------------- notes and warnings */
.context-note, .content-warning, .policy-banner {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
}
.context-note > :last-child, .content-warning > :last-child, .policy-banner > :last-child { margin-bottom: 0; }
.context-note { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--green); }
.context-note__label, .content-warning__label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.context-note__label { color: var(--green); }
.content-warning { background: var(--paper-2); border: 1px solid var(--rule-strong); }
.content-warning__label { color: var(--ink-soft); }
.policy-banner { background: #eaf0f7; border: 1px solid #b7c6db; border-left: 4px solid var(--navy); }
.policy-banner--overdue { background: var(--rust-wash); border-color: #dfb4a4; border-left-color: var(--rust); }

/* ---------------------------------------------------------- glossary term */
.term { position: relative; display: inline; }
.term > a { text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 0.2em; color: inherit; }
.term > a:hover { color: var(--link); }
/* Hidden with display:none (not visibility) so an unshown tip takes up no
   space and cannot widen the page. site.js nudges it back inside the
   viewport, flips it below the term near the top of the screen, opens it on
   a first tap and closes it with Escape (WCAG 1.4.13). */
.term__tip {
  display: none;
  position: absolute;
  left: 0; bottom: calc(100% + 0.4rem);
  z-index: 20;
  width: min(20rem, calc(100vw - 2 * var(--gutter)));
  translate: var(--tip-shift, 0px) 0;
  padding: 0.65rem 0.8rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Bridges the gap so the pointer can move onto the tip without closing it. */
.term__tip::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0.5rem; }
.term--below .term__tip { bottom: auto; top: calc(100% + 0.4rem); }
.term--below .term__tip::after { top: auto; bottom: 100%; }
/* Hover only where there is a real pointer: on touch screens a hover rule
   would make iOS swallow the first tap. */
@media (hover: hover) { .term:hover:not(.is-dismissed) .term__tip { display: block; } }
.term:is(:focus-within, .is-open):not(.is-dismissed) .term__tip { display: block; }
/* Small screens: show the definition as a panel pinned to the bottom of the
   viewport, so it is always on screen and never overflows. */
@media (max-width: 40rem) {
  .term { position: static; }
  .term__tip,
  .term--below .term__tip {
    position: fixed;
    left: var(--gutter); right: var(--gutter); bottom: var(--gutter); top: auto;
    width: auto;
    max-height: 50vh;
    overflow-y: auto;
    translate: none;
    font-size: 1rem;
  }
  .term__tip::after { display: none; }
}

/* --------------------------------------------------------------- chips */
.chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip--section::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c, var(--navy)); }
.chip--rainbows { --c: #b8573a; }
.chip--brownies { --c: #9a6a12; }
.chip--guides { --c: #1d2d4f; }
.chip--rangers { --c: #3e6b48; }

/* --------------------------------------------------------------- cards */
.card-grid {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.card-grid > li { display: flex; }
.card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: var(--shadow);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--navy);
}
.card--object::before { background: var(--rust); }
.card--theme::before { background: var(--green); }
.card--person::before { background: var(--ochre); }
.card--practice::before { background: var(--ochre-deep); }
.card--source-guide::before, .card--link::before { background: var(--violet); }
.card:hover { border-color: var(--rule-strong); }
.card__kicker {
  margin: 0.2rem 0 0.4rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ochre-deep);
  letter-spacing: 0.04em;
}
.card__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { text-decoration: underline; }
.card__summary { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card--org .card__title { font-size: 1.15rem; }

/* ------------------------------------------------------------ timeline */
.timeline-intro { max-width: 48rem; }
.filters {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
/* Shown from first paint when JS is on (no layout shift); never without it. */
.filters { display: none; }
.js .filters { display: block; }
.filters__heading { font-size: var(--step-1); margin-bottom: 0.5rem; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 0.75rem; }
.filters legend { font-weight: 700; margin-bottom: 0.35rem; }
.filters__options { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.check { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--navy); }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; }
.filters__row label { font-weight: 700; }
.filters select {
  min-height: 44px;
  padding: 0.3rem 0.6rem;
  font: inherit;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  max-width: 100%;
}
.filters__status { margin: 0.5rem 0 0; font-weight: 600; color: var(--ink-soft); }

.period-jump ul { list-style: none; padding: 0; margin: 1rem 0 2rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.period-jump a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.period-jump a:hover { background: var(--ochre-wash); }

.timeline__period { margin-bottom: 2.5rem; }
.timeline__period.is-filtered-empty .timeline__list { display: none; }
.timeline__period-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 1rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--navy);
}
.timeline__period-head h2 { margin: 0; }
.timeline__years {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ochre-deep);
  font-size: var(--step-1);
}

.timeline__list { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; }
.timeline__list::before {
  content: "";
  position: absolute;
  left: 0.35rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--rule-strong) 0 8px, transparent 8px 13px);
}
.timeline__item { position: relative; margin-bottom: 1rem; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.4rem; top: 1.1rem;
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--navy);
}
.timeline-card {
  display: grid;
  gap: 0.25rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow);
}
@media (min-width: 44rem) { .timeline-card { grid-template-columns: 8.5rem 1fr; } }
.timeline-card__date {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.3;
}
.timeline-card__title { font-size: var(--step-1); margin-bottom: 0.3rem; }
.timeline-card__title a { color: var(--navy); }
.timeline-card__body p { margin-bottom: 0.4rem; }
.timeline-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; font-size: var(--step--1); color: var(--muted); }
.timeline-card__note { flex-basis: 100%; order: 1; }
.evidence-box__note { display: block; margin-top: 0.3rem; font-size: 0.9rem; color: var(--muted); }

.timeline__planned {
  margin-left: 1.4rem;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  background: transparent;
}
.timeline__planned summary {
  cursor: pointer;
  padding: 0.6rem 1rem;
  min-height: 44px;
  display: flex; align-items: center;
  font-weight: 600;
  color: var(--ink-soft);
}
.timeline__planned ul { list-style: none; margin: 0; padding: 0 1rem 0.75rem; }
.timeline__planned li { padding: 0.35rem 0; border-top: 1px dashed var(--rule); }
.timeline__planned-date { display: inline-block; min-width: 4.5rem; font-weight: 700; color: var(--navy); }
.timeline__empty { padding: 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }

.mini-timeline { list-style: none; padding: 0 !important; margin: 0 0 1rem; border-left: 2px dashed var(--rule-strong); }
.mini-timeline li { padding: 0.35rem 0 0.35rem 1rem; margin: 0 !important; }
.mini-timeline__date { display: inline-block; min-width: 5.5rem; font-weight: 700; color: var(--navy); }

.pager { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .pager { grid-template-columns: 1fr 1fr; } .pager__next { text-align: right; grid-column: 2; } }
.pager a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  line-height: 1.35;
}
.pager a:hover { border-color: var(--navy); }
.pager__label { display: block; font-size: var(--step--1); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* -------------------------------------------------------- page record */
.page-record {
  margin-top: 2.5rem;
  padding: 1rem 1.1rem;
  background: var(--paper-2);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.page-record dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.5rem 1.5rem; margin-bottom: 0.75rem; }
.page-record dt { font-weight: 700; color: var(--ink-soft); font-size: var(--step--1); }
.page-record dd { margin: 0; }
.page-record p { margin: 0; }

.related, .linked { margin-top: 2.5rem; }
.related h2, .linked h2 { font-size: var(--step-1); }
.related .card-grid, .linked .card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }

/* ------------------------------------------------------------- objects */
.image-pending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 2px dashed var(--rule-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgb(217 205 181 / 0.25) 12px 13px),
    var(--card);
}
.image-pending p { margin: 0; flex: 1 1 20rem; }
.accession-label {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: #fff;
  border: 1px solid var(--ink-soft);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.85rem;
  transform: rotate(-1.5deg);
  box-shadow: 2px 2px 0 var(--rule-strong);
}
.object-story__list { margin: 0; }
.object-story__list > div { padding: 0.8rem 0; border-top: 1px dashed var(--rule); }
.object-story__list dt { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.object-story__list dd { margin: 0.25rem 0 0; }
.object-story__open { margin: 0; padding: 0.8rem 0 0; border-top: 1px dashed var(--rule); color: var(--muted); font-size: var(--step--1); }
.object-story__open strong { color: var(--ink-soft); }
.swatches li { display: flex; align-items: center; gap: 0.4rem; }
.swatch { width: 1rem; height: 1rem; border-radius: 3px; background: var(--swatch); border: 1px solid var(--ink-soft); }

.figure { margin-bottom: 2rem; }
.figure img { border-radius: var(--radius); }
.figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }

/* ----------------------------------------------------------- quotations */
.quote { margin: 1.75rem 0; padding: 1rem 1.25rem; background: var(--card); border-left: 4px solid var(--ochre); }
.quote blockquote { margin: 0 0 0.5rem; padding: 0; border: 0; font-size: 1.1rem; }
.quote figcaption { font-size: 0.9rem; color: var(--muted); }
.quote--recollection { border-left-style: dashed; }

/* -------------------------------------------------------------- tables */
/* position:relative keeps visually hidden text inside the scroll box, so it
   cannot widen the page. */
.table-wrap { position: relative; overflow-x: auto; margin-bottom: 1.5rem; }
.table-wrap:focus-visible { outline-offset: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; color: var(--navy); }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
thead th { border-bottom: 2px solid var(--navy); font-size: var(--step--1); letter-spacing: 0.04em; }
tbody th { font-weight: 700; }

.section-dot {
  display: inline-block;
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--c);
  margin-right: 0.45rem;
  vertical-align: 0.05em;
}

/* ------------------------------------------------ sections band chart */
.band-chart { margin: 2rem 0; }
.band-chart__plot {
  position: relative;
  padding: 2rem 1rem 1rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.band-chart__axis { position: relative; height: 1.25rem; margin-left: 6.5rem; margin-bottom: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.band-chart__axis span { position: absolute; transform: translateX(-50%); top: 0; }
.band-chart__row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.band-chart__label { flex: 0 0 6rem; font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.band-chart__track {
  position: relative;
  flex: 1;
  height: 2.2rem;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), var(--rule) calc(100% / 6 - 1px) calc(100% / 6));
  border-radius: 3px;
}
.band-chart__bar {
  position: absolute;
  top: 0.2rem; bottom: 0.2rem;
  background: var(--c);
  border-radius: 3px;
  display: flex; align-items: center;
  padding-left: 0.4rem;
  overflow: hidden;
  border: 1px solid rgb(0 0 0 / 0.15);
}
.band-chart__bar + .band-chart__bar { border-left: 2px solid var(--card); }
.band-chart__bar--verify {
  background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 55%, white) 6px 10px);
}
.band-chart__name { color: #fff; font-size: 0.75rem; font-weight: 600; white-space: nowrap; text-shadow: 0 1px 1px rgb(0 0 0 / 0.4); }
.band-chart figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 40rem) { .band-chart__name { display: none; } .band-chart__label { flex-basis: 4.5rem; font-size: 0.85rem; } .band-chart__axis { margin-left: 5rem; } }

.section-notes {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  margin: 2rem 0;
}
.section-note { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; }
.section-note h2 { font-size: var(--step-1); display: flex; align-items: center; }
.section-note p { margin: 0; }

/* ----------------------------------------------------------- world/orgs */
.world-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  margin: 2rem 0;
}
.world-grid .record-card h2 { font-family: var(--font-head); font-size: var(--step-1); text-transform: none; letter-spacing: 0; color: var(--navy); }
.world-grid .record-card li { padding: 0.35rem 0; border-top: 1px dashed var(--rule); margin: 0; }
.case-list {
  list-style: none; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.case-list li { padding: 1rem; border: 1px dashed var(--rule-strong); border-radius: var(--radius); }
.case-list h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.case-list p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.case-studies { margin-top: 2.5rem; }

.org-map { margin: 2rem 0; padding: 1.25rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.org-map figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
.org-tree, .org-tree ol { list-style: none; margin: 0; padding: 0; }
.org-tree ol { padding-left: 1.5rem; margin-left: 0.75rem; border-left: 2px dashed var(--rule-strong); }
.org-tree li { position: relative; padding-top: 0.6rem; }
.org-tree ol > li::before { content: ""; position: absolute; left: -1.5rem; top: 1.45rem; width: 1.2rem; border-top: 2px dashed var(--rule-strong); }
.org-node {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 600;
}
.org-node--world { background: var(--navy); color: #fff; border-color: var(--navy); }
.org-node--world .muted { color: #d8deea; }
.org-node--uk { border: 2px solid var(--navy); }
.org-node--small { font-weight: 400; font-size: 0.95rem; }

/* ------------------------------------------------------------ research */
.research-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 60rem) { .research-grid { grid-template-columns: 1.1fr 1fr; } }
.evidence-ladder { counter-reset: rung; list-style: none; padding: 0; }
.evidence-ladder li {
  counter-increment: rung;
  position: relative;
  padding: 0.6rem 0 0.6rem 2.75rem;
  border-top: 1px dashed var(--rule);
}
.evidence-ladder li::before {
  content: counter(rung);
  position: absolute;
  left: 0; top: 0.55rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
}
.link-list { margin-top: 1rem; }
.repo-list {
  list-style: none; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.repo { padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.repo h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.repo p { margin-bottom: 0.4rem; font-size: 0.95rem; }
.repo__kind { font-size: var(--step--1) !important; color: var(--ochre-deep); font-weight: 600; }

.bibliography { margin-bottom: 2rem; }
.bibliography__list { padding-left: 1.2rem; max-width: 52rem; }
.bibliography__list li { margin-bottom: 0.6rem; }

/* ------------------------------------------------------------ glossary */
.glossary { max-width: 52rem; margin: 0; }
.glossary__entry { padding: 1rem 0; border-top: 1px dashed var(--rule); }
.glossary__entry:target { background: var(--ochre-wash); outline: 2px solid var(--ochre); outline-offset: 0; padding-inline: 0.75rem; border-radius: var(--radius); }
.glossary dt { font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); color: var(--navy); }
.glossary dd { margin: 0.3rem 0 0; }
.glossary dd p { margin-bottom: 0.4rem; }
.glossary__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.9rem; color: var(--ink-soft); }
.glossary__note { font-size: 0.92rem; padding: 0.4rem 0.7rem; background: var(--paper-2); border-radius: 3px; }
.glossary__see { font-size: 0.92rem; }

/* ------------------------------------------------------------- themes */
.theme-index { margin-top: 3rem; }
.theme-index__list {
  list-style: none; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.theme-index__list > li { padding: 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); scroll-margin-top: 1rem; }
.theme-index__list > li:target { outline: 3px solid var(--ochre); }
.theme-index__list h3 { font-size: 1.15rem; }
.theme-index__list .plain { font-size: 0.95rem; }
.theme-browse { margin-top: 2.5rem; }

/* -------------------------------------------------------------- search */
.search-form { max-width: 40rem; margin-bottom: 2rem; }
.search-form__label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.search-form__row { display: flex; gap: 0.5rem; }
.search-form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  border: 2px solid var(--muted);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.search-form input:focus-visible { border-color: var(--navy); }
.search-results__list { padding-left: 1.25rem; max-width: 48rem; }
.search-results__list li { margin-bottom: 1rem; }
.search-results__list p { margin: 0.2rem 0 0; color: var(--ink-soft); }
.az-list { columns: 18rem 3; column-gap: 2rem; padding-left: 1.1rem; }
.az-list li { break-inside: avoid; margin-bottom: 0.35rem; }

.sitemap-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.sitemap-grid h2 { font-size: var(--step-1); }

.start-routes ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.start-routes li { padding: 0.6rem 0.9rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin: 0 !important; }

/* -------------------------------------------------------------- footer */
.site-footer {
  margin-top: 3rem;
  background: var(--navy);
  color: #e9e3d4;
  padding-block: 2.5rem;
  font-size: 0.95rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0.6rem; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.3) 0 8px, transparent 8px 14px);
}
.site-footer__inner { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .site-footer__inner { grid-template-columns: 1.4fr 1fr; } }
.site-footer__title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:focus-visible { outline-color: var(--ochre); }
.site-footer__links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.site-footer__links li { break-inside: avoid; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__researched { color: #cfd6e4; }

/* -------------------------------------------------------- preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .fact-status, .chip, .card, .button { border: 1px solid CanvasText; }
  .band-chart__bar { forced-color-adjust: none; }
}

@media print {
  .site-header, .site-nav, .site-footer, .breadcrumbs, .filters, .pager, .skip-link, .search-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  a { color: inherit; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .card, .record-card, .evidence-box, .timeline-card { box-shadow: none; }
}

/* Card grids and lists inside prose keep their own spacing. */
.prose .card-grid, .prose .mini-timeline { padding-left: 0; }
.prose .card-grid > li { margin: 0; }

.nowrap { white-space: nowrap; }

/* Object photographs: keep tall pages and tiny badges at sensible sizes. */
.figure--hero, .figure--object {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
}
.figure--hero img, .figure--object img {
  width: auto;
  max-width: 100%;
  max-height: min(80vh, 44rem);
  margin-inline: auto;
}
.figure--object { margin: 1.5rem 0; }
.figure--object figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.transcript {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ochre);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  white-space: pre-wrap;
  overflow-x: auto;
}
