/* ==========================================================================
   Family Capital Design Forum — static templates
   No framework, no page builder. One stylesheet, organised by component so
   each block maps cleanly to a WordPress template part later.
   ========================================================================== */

/* ---- Self-hosted fonts (SIL Open Font License) ------------------------- */
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Colour — taken from the logo's leaf mark */
  --forest: #1f2b23;       /* deep green: header, hero, footer */
  --forest-2: #28372d;     /* raised surfaces on forest */
  --forest-deep: #162019;  /* home hero: a shade deeper than the nav */
  --moss: #4c6b43;         /* logo green: links, buttons, family sessions */
  --moss-dark: #3d5736;
  --tan: #b89d80;          /* logo tan: fine detail, rules, accents on dark */
  --tan-deep: #8a6f52;     /* tan dark enough for text on light */
  --heading: #34502e;       /* headings on light: deep moss, distinct from body ink */
  --lede: #755b40;         /* intro paragraphs: logo tan, deepened for legibility */
  /* Third colour: claret. Complements the greens and warms the tan.
     Used sparingly on light backgrounds for small markers and emphasis.
     Alternative: harbour slate #3f5d6e (swap this one value). */
  --accent: #7a3e48;
  --accent-soft: #e9dcdc;
  --paper: #f4f5f0;        /* page background, faint sage */
  --card: #ffffff;
  --ink: #1c221d;          /* body text */
  --ink-soft: #545a52;     /* secondary text */
  --line: #d9dbd2;         /* hairlines on light */
  --cream: #fffbef;        /* text on forest (matches logo lettering) */
  --cream-soft: #cfd2c4;

  /* Type */
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Scale (roughly 1.25 at small sizes, opening up for display) */
  --fs-sm: 1rem;
  --fs-base: clamp(1.125rem, 1.08rem + .25vw, 1.25rem);
  --fs-md: clamp(1.3125rem, 1.2rem + .45vw, 1.5rem);
  --fs-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-display: clamp(2.375rem, 1.5rem + 4vw, 4.25rem);

  /* Space */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --max: 72rem;
  --measure: 40rem;

  --radius: 3px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  color: var(--heading);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); letter-spacing: -0.01em; line-height: 1.08; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); line-height: 1.3; }

p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }

a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--moss-dark); }
.btn, .btn:hover, .btn:focus-visible { text-decoration: none; }

:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cream); color: var(--forest); padding: 0.6rem 1rem;
}
.skip-link:focus { top: 1rem; }

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

/* ---- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section--line { border-top: 1px solid var(--line); }
.section--white { background: var(--card); }
.prose { max-width: var(--measure); }
.lede { font-size: var(--fs-md); line-height: 1.55; color: var(--lede); }

.split {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--lede); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.5rem;
  font: 600 1rem/1.2 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--moss); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--forest); color: var(--cream); }
.btn--primary:active { background: #141c17; }
.btn--light { background: var(--cream); color: var(--forest); }
.btn--light:hover, .btn--light:focus-visible { background: var(--tan); color: var(--forest); }
.btn--light:active { background: #a68a6c; }
.btn--ghost { border-color: rgba(255, 251, 239, .45); color: var(--cream); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--tan); background: rgba(184, 157, 128, .12); color: #fff; }
.btn--outline { border-color: var(--moss); color: var(--moss); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--moss); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  background: var(--forest); color: var(--cream);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(184, 157, 128, .25), 0 6px 20px rgba(10, 16, 12, .25); }
/* The bar never changes height (that would shift the page and make it
   jitter near the top); the logo scales visually instead. */
.site-logo img { transform-origin: left center; transition: transform .2s ease; }
.site-header.is-scrolled .site-logo img { transform: scale(.88); }
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-logo img { transition: none; }
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.75rem;
}
.site-logo img { width: clamp(11rem, 30vw, 14.5rem); }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid rgba(255, 251, 239, .35); border-radius: var(--radius);
  color: var(--cream); font: 600 0.9375rem var(--sans); padding: 0.55rem 0.85rem; cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 14px; position: relative; flex: none; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 6px; }
.nav-toggle__bars::after { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.site-nav a:not(.btn) {
  display: block; padding: 0.5rem 0.75rem; color: var(--cream-soft);
  text-decoration: none; font-size: 1rem; border-bottom: 1px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--cream); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--cream); border-bottom-color: var(--tan); }
.site-nav .nav-cta { margin-left: 0.75rem; }
.site-nav .btn { min-height: 2.6rem; padding: 0.5rem 1.1rem; }

@media (max-width: 63.99rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--forest); border-top: 1px solid rgba(255, 251, 239, .12);
    padding: 0.5rem var(--gutter) 1.5rem;
    max-height: calc(100dvh - 4.25rem); overflow-y: auto;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) {
    padding: 0.9rem 0; font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 251, 239, .1);
  }
  .site-nav a:not(.btn)[aria-current="page"] { border-bottom-color: rgba(255, 251, 239, .1); color: var(--tan); }
  .site-nav .nav-cta { margin: 1.25rem 0 0; }
  .site-nav .btn { width: 100%; min-height: 3rem; }
}

/* ---- Hero (home) -------------------------------------------------------- */
/* Hero sits a shade deeper than the nav, with the brushwork texture
   showing faintly through. --hero-texture sets its strength. */
.hero {
  --hero-texture: .16;
  position: relative; isolation: isolate;
  background: var(--forest-deep);
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__bg img { object-fit: cover; filter: saturate(.7); }
/* Same forest tint as the page headers, a touch deeper for the home page. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 32, 25, .82), rgba(22, 32, 25, .92));
}
@media (min-width: 48rem) {
  .hero::before {
    background: linear-gradient(100deg, rgba(22, 32, 25, .97) 0%, rgba(22, 32, 25, .9) 35%, rgba(22, 32, 25, .66) 62%, rgba(22, 32, 25, .5) 100%);
  }
}
.hero { color: var(--cream); padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(4rem, 3rem + 5vw, 7rem); overflow: hidden; }
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr); align-items: center;
}
@media (min-width: 60rem) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero h1 { color: var(--cream); max-width: 12ch; }
.hero__intro { font-size: var(--fs-md); line-height: 1.55; color: var(--cream-soft); max-width: 34rem; margin-bottom: 2rem; }

/* The invitation card: the one distinctive gesture on the site.
   An inset double rule echoes engraved stationery. */
.invite {
  position: relative; background: var(--forest-2); color: var(--cream);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  outline: 1px solid rgba(184, 157, 128, .55); outline-offset: -10px;
  box-shadow: inset 0 0 0 1px rgba(184, 157, 128, .25);
}
.invite__mark { width: 2.75rem; margin-bottom: 1.5rem; }
.invite__lead { font-family: var(--serif); font-style: italic; color: var(--tan); margin: 0 0 0.35rem; font-size: 1.0625rem; }
.invite__date { font-family: var(--serif); font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.15; margin: 0 0 0.35rem; }
.invite__place { color: var(--cream-soft); margin: 0 0 1.75rem; }
.invite dl { margin: 0; border-top: 1px solid rgba(184, 157, 128, .35); }
.invite dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(184, 157, 128, .2); }
.invite dt { color: var(--cream-soft); font-size: var(--fs-sm); }
.invite dd { margin: 0; text-align: right; font-size: var(--fs-sm); font-weight: 600; }

/* ---- Page header (inner pages) ----------------------------------------- */
.page-head { background: var(--forest); color: var(--cream); padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); }
.page-head h1 { color: var(--cream); font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); margin-bottom: 0.4em; }
.page-head p { color: var(--cream-soft); font-size: var(--fs-md); max-width: 40rem; margin: 0; }
/* Photographic page headers: each page has its own crop of the texture
   (an ACF image field in WordPress), under a forest gradient that is
   darkest behind the text so it stays legible whatever the crop. */
/* Every photo header is the same height whatever its copy, with the copy
   centred vertically. Sized to fit the longest intro (Programme). */
.page-head--photo {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 25rem; padding-block: 2.75rem;
}
@media (min-width: 48rem) { .page-head--photo { min-height: 24rem; padding-block: 3rem; } }
.page-head--photo > .wrap { width: 100%; }
.page-head__bg, .page-head__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
}
.page-head__bg img { object-fit: cover; object-position: center bottom; filter: saturate(.7); }
/* Forest tint over the photo: near-solid behind the copy, easing off to the
   right so the planting keeps some colour. Mobile is evenly darker because
   the text runs full width there. */
.page-head--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(31, 43, 35, .78), rgba(31, 43, 35, .9));
}
@media (min-width: 48rem) {
  .page-head--photo::before {
    background: linear-gradient(100deg, rgba(31, 43, 35, .97) 0%, rgba(31, 43, 35, .92) 30%, rgba(31, 43, 35, .72) 52%, rgba(31, 43, 35, .42) 78%, rgba(31, 43, 35, .32) 100%);
  }
}

.page-head__meta { margin-top: 1.5rem !important; font-size: var(--fs-base) !important; color: var(--tan) !important; font-family: var(--serif); font-style: italic; }

/* ---- Lists ------------------------------------------------------------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 0.7rem 0 0.7rem 1.75rem; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 1.25rem;
  width: 0.55rem; height: 0.55rem; border-radius: 50% 0; background: var(--accent);
  transform: rotate(45deg);
}

.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 44rem) { .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
.questions li {
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.4;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}

/* ---- Stat strip -------------------------------------------------------- */
.facts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 0; }
.facts div { border-top: 2px solid var(--accent); padding-top: 1rem; }
.facts dt { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.2; margin-bottom: 0.35rem; }
.facts dd { margin: 0; color: var(--ink-soft); }

/* ---- Speakers ---------------------------------------------------------- */
.speakers { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.speaker { display: flex; flex-direction: column; }
.speaker__photo { aspect-ratio: 4 / 5; margin-bottom: 1rem; overflow: hidden; background: #e4e6dd; }
.speaker__photo picture { display: block; width: 100%; height: 100%; }
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (min-width: 48rem) {
  .speakers--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .speakers--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) { .speakers--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Host (Speakers page) */
.host { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 48rem) { .host { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.host__photo { max-width: 22rem; }
.speaker h3 { margin-bottom: 0.2rem; }
.speaker__role { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0 0 0.8rem; }
.speaker__more {
  align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 var(--fs-sm) var(--sans); color: var(--moss);
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px;
}
.speaker__more:hover { color: var(--moss-dark); }
.speaker--tba .speaker__photo { display: grid; place-items: center; background: transparent; border: 1px dashed #b9bcb0; }
.speaker--tba .speaker__photo span { font-family: var(--serif); font-style: italic; color: var(--ink-soft); padding: 1rem; text-align: center; }

/* Placeholder imagery — swap for real photography */
.ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(160deg, #cfd3c6, #aeb3a3);
  color: rgba(31, 43, 35, .55);
  font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 3.5rem);
}
.ph--wide { aspect-ratio: 16 / 9; font-size: 1rem; font-family: var(--sans); letter-spacing: .02em; }

/* Bio dialog */
.bio { border: 0; padding: 0; width: min(46rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); background: var(--card); color: var(--ink); border-radius: var(--radius); }
.bio::backdrop { background: rgba(20, 28, 22, .7); }
.bio__inner { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .bio__inner { grid-template-columns: 14rem minmax(0, 1fr); } .bio__inner > .bio__photo { align-self: start; } }
.bio__photo { aspect-ratio: 4 / 5; background: #e4e6dd; }
.bio__photo picture, .bio__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 39.99rem) { .bio__photo { display: none; } }
.bio__body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.bio__body h2 { font-size: var(--fs-lg); margin-bottom: 0.2em; }
.bio__role { color: var(--ink-soft); margin-bottom: 1.25rem; }
.bio__close {
  position: absolute; top: 0.6rem; right: 0.6rem; width: 2.5rem; height: 2.5rem;
  border: 0; border-radius: 50%; background: var(--paper); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.bio__close:hover { background: var(--line); }
.bio[open] { animation: bio-in .2s ease-out; }
@keyframes bio-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .bio[open] { animation: none; } }

/* ---- Agenda ------------------------------------------------------------ */
.agenda-key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 2rem; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-soft); }
.agenda-key li { display: flex; align-items: center; gap: 0.5rem; }

.agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.session {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) { .session { grid-template-columns: 8.5rem minmax(0, 1fr); padding: 1.75rem 0; } }
.session__time { font-family: var(--serif); font-size: 1.0625rem; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; padding-top: 0.15rem; }
.session__body { max-width: 44rem; }
.session h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin-bottom: 0.4rem; }
.session__format { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--ink-soft); margin: 0 0 0.75rem; }
.session p.session__desc { color: var(--ink-soft); }
.session__people { font-size: var(--fs-sm); margin: 0.25rem 0 0; }
.session__mod { display: block; color: var(--ink-soft); margin-top: 0.15rem; }
.session__people strong { font-weight: 600; }
.session__people .tba { font-style: italic; color: var(--ink-soft); }
.session--break { padding-block: 1rem; background: transparent; }
.session--break h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; color: var(--ink-soft); margin: 0; }
@media (min-width: 48rem) { .session--break { padding-block: 1.1rem; } }

.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; display: inline-block; flex: none; }
.dot--family { background: var(--moss); }
.dot--professional { background: var(--accent); }
.dot--mixed { background: linear-gradient(90deg, var(--moss) 50%, var(--accent) 50%); }
.dot--host { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-soft); }

.topics { margin-top: 0.9rem; }
.topics summary {
  cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--moss);
  list-style: none; display: inline-flex; align-items: center; gap: 0.45rem;
}
.topics summary::-webkit-details-marker { display: none; }
.topics summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border: 1px solid currentColor; border-radius: 50%; font-size: 0.85rem; line-height: 1; }
.topics[open] summary::before { content: "\2212"; }
.topics ul { margin: 0.75rem 0 0; padding-left: 1.15rem; color: var(--ink-soft); font-size: var(--fs-sm); }
.topics li { margin-bottom: 0.3rem; }

/* ---- Steps (application process — a true sequence) -------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--accent); margin-bottom: 0.75rem; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---- Fees ------------------------------------------------------------- */
.fees { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .fees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fee { background: var(--card); border: 1px solid var(--line); padding: 1.75rem; }
.fee--current { border-color: var(--moss); box-shadow: inset 0 3px 0 var(--moss); }
.fee h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin-bottom: 0.75rem; }
.fee__price { font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.5rem); line-height: 1.1; margin: 0 0 0.35rem; font-variant-numeric: lining-nums; }
.fee__price small { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); white-space: nowrap; display: inline-block; }
.fee__note { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0; }

/* ---- Form ------------------------------------------------------------- */
.form-panel { background: var(--card); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); }
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 0.4rem; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: var(--fs-sm); margin-top: 0.1rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #fff; border: 1px solid #a7ab9e; border-radius: var(--radius);
  padding: 0.7rem 0.85rem; min-height: 3rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--moss); outline-offset: 0; border-color: var(--moss); }
.field fieldset { border: 0; margin: 0; padding: 0; }
.field .choice { font-weight: 400; margin-bottom: 0; }
.choice { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0.45rem 0; font-size: 1.0625rem; }
.choice input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--moss); flex: none; }
.req { color: var(--accent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.form-foot p { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); max-width: 28rem; }
.form-success { display: none; }
.form-success.is-visible { display: block; }
.form-success h3 { font-size: var(--fs-lg); }

/* ---- Partners --------------------------------------------------------- */
.tier { padding-block: 2rem; border-top: 1px solid var(--line); display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 48rem) { .tier { grid-template-columns: 14rem minmax(0, 1fr); } }
.tier h3 { margin: 0; font-size: 1.125rem; }
.logo-slot {
  display: grid; place-items: center; min-height: 7rem; max-width: 22rem; padding: 1.5rem;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-weight: 600;
}
.logo-slot img { width: 100%; max-width: 17rem; height: auto; }
.logo-slot--dark { background: var(--forest); border-color: var(--forest); transition: background-color .2s ease; }
.logo-slot--dark:hover, .logo-slot--dark:focus-visible { background: var(--forest-deep); }
.logo-slot--empty { border-style: dashed; background: transparent; font-weight: 400; font-style: italic; font-family: var(--serif); }

/* Principal partner: centred, unboxed, framed by fine tan rules */
.principal {
  max-width: 42rem; margin-inline: auto; text-align: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--tan); border-bottom: 1px solid var(--tan);
}
.principal__tier { font-family: var(--serif); font-style: italic; font-size: var(--fs-md); color: var(--accent); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.principal__logo { display: inline-block; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); transition: opacity .2s ease; }
.principal__logo:hover, .principal__logo:focus-visible { opacity: .75; }
.principal__logo img { width: min(78vw, 22rem); height: auto; }
.principal p:not(.principal__tier) { color: var(--ink-soft); margin-inline: auto; max-width: 36rem; }
.principal .link-row { justify-content: center; }
.principal__more { text-align: center; color: var(--ink-soft); font-size: var(--fs-sm); margin: 2rem 0 0; }
.link-row { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.link-row a { font-weight: 600; }

/* ---- Callout band ----------------------------------------------------- */
/* Call-to-action band: deeper than the footer, with the same faint
   brushwork as the home hero and a tan rule where it meets the footer. */
.band {
  position: relative; isolation: isolate;
  background: var(--forest-deep); color: var(--cream);
  padding-block: clamp(3.5rem, 3rem + 4vw, 6rem);
  border-bottom: 1px solid rgba(184, 157, 128, .45);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/band.jpg") center / cover no-repeat;
  opacity: .16;
}
.band__inner { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 52rem) { .band__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.band h2 { color: var(--cream); margin-bottom: 0.35em; }
.band p { color: var(--cream-soft); margin: 0; max-width: 36rem; }

/* ---- Detail list (venue, contact) ------------------------------------- */
.details { margin: 0; }
.details div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.details dt { font-weight: 600; margin-bottom: 0.2rem; }
.details dd { margin: 0; color: var(--ink-soft); }

.note { font-size: var(--fs-sm); color: var(--ink-soft); border-left: 2px solid var(--accent); padding-left: 1rem; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--forest); color: var(--cream-soft); padding-block: 4rem 2rem; font-size: 1rem; border-top: 1px solid rgba(255, 251, 239, .08); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); } }
.footer-grid img { width: 13rem; margin-bottom: 1rem; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--tan); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 251, 239, .12); font-size: var(--fs-sm); }
.footer-base p { margin: 0; }

/* ---- Fixed backgrounds ---------------------------------------------------
   The header and hero photos stay put while the page scrolls over them.
   (background-attachment: fixed doesn't work on <img> and is broken on iOS,
   so the picture is position: fixed and the section clips it.) */
.page-head--photo, .hero { clip-path: inset(0); }
.page-head--photo .page-head__bg { position: fixed; inset: 0 0 auto 0; height: var(--bg-h, 30rem); }
.hero .hero__bg { position: fixed; inset: 0 0 auto 0; height: 100vh; height: var(--bg-h, 100lvh); }
.hero__bg img { object-position: center bottom; }

/* ==========================================================================
   WordPress additions (not in the static templates)
   ========================================================================== */

/* Keep the sticky header below the admin toolbar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Classic editor output */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose img { margin-block: 1.5rem; }
.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .prose figcaption { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 0.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.prose blockquote { margin: 1.75rem 0; padding-left: 1.25rem; border-left: 2px solid var(--tan); font-family: var(--serif); font-style: italic; color: var(--ink-soft); }

/* Built-in application form: validation messages */
.form-errors { border-left: 2px solid var(--accent); background: var(--accent-soft); padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.form-errors p { margin: 0 0 0.4rem; }
.form-errors ul { margin: 0; padding-left: 1.15rem; font-size: var(--fs-sm); }
.form-errors a { color: var(--accent); }
.field-error { color: var(--accent); font-size: var(--fs-sm); margin: 0.35rem 0 0; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--accent); }

/* Partners: other tiers, several logos per row */
.tier__logos { display: flex; flex-wrap: wrap; gap: 1rem; }
.tier__logos .logo-slot { flex: 1 1 14rem; }

/* Venue: real photograph in place of the placeholder */
.venue__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
