/* tokens.css is linked before this file in the layout, not imported,
   so both can be cache-busted and both load in parallel. */

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

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

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-hero); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); line-height: 1.2; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }

.accent { color: var(--leather); font-style: italic; font-weight: 500; }
.band-dark .accent { color: var(--leather-bright); }

/* ---------- shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-narrow { max-width: 760px; }

.band { padding-block: var(--band); position: relative; }
.band-tint { background: var(--limestone-warm); }
.band-mist { background: var(--field-mist); }
.band-dark {
  background:
    radial-gradient(120% 90% at 12% 0%, #1B3128 0%, rgba(27,49,40,0) 62%),
    linear-gradient(168deg, var(--field-dark) 0%, var(--field-darker) 100%);
  color: var(--ink-inverse);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--ink-inverse); }
.band-dark p { color: var(--ink-inverse-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step-micro);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
}
.band-dark .eyebrow { color: var(--leather-bright); }

.lead { font-size: var(--step-lead); line-height: 1.5; color: var(--ink-soft); }
.band-dark .lead { color: var(--ink-inverse-soft); }

.fragment {
  font-family: var(--serif);
  font-size: var(--step-h3);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .7em;
}
.band-dark .fragment { color: var(--ink-inverse); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .005em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  min-height: 48px;
}
.btn-primary {
  background: var(--leather);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(168,90,40,.45);
  animation: breathe 4.5s ease-in-out infinite;
}
.btn-primary:hover { background: var(--leather-bright); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}
.band-dark .btn-ghost { border-color: rgba(247,244,239,.28); color: var(--ink-inverse); }
.btn-ghost:hover { border-color: var(--leather); color: var(--leather); }
.band-dark .btn-ghost:hover { border-color: var(--leather-bright); color: var(--leather-bright); }

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,90,40,.38); }
  50%      { box-shadow: 0 0 0 12px rgba(168,90,40,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247,244,239,.92);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: none; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--leather);
}
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-drawer {
  display: none;
  border-top: 1px solid var(--rule);
  padding: 14px 0 22px;
}
.nav-drawer.is-open { display: block; }
.nav-drawer a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.nav-drawer a.btn {
  /* .nav-drawer a would otherwise strip the button's padding and centring. */
  display: flex;
  width: 100%;
  margin-top: 16px;
  padding: 15px 28px;
  border-bottom: 1px solid transparent;
  color: #fff;
  font-size: 16px;
}

@media (min-width: 900px) {
  .nav-links { display: flex; gap: 22px; align-items: center; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-drawer, .nav-drawer.is-open { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero h1 { max-width: 15ch; margin-bottom: .35em; }
.hero .lead { max-width: 52ch; }
.hero-glow {
  position: absolute;
  inset-inline-start: -10%;
  top: -18%;
  width: min(760px, 120%);
  pointer-events: none;
  opacity: .8;
}

/* ---------- impact bar ---------- */
.impact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--rule-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.impact-cell {
  background: var(--field-dark);
  padding: 26px 22px;
  text-align: center;
}
.impact-figure {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1;
  color: var(--ink-inverse);
  display: block;
  margin-bottom: 8px;
}
.impact-label {
  font-size: var(--step-micro);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-inverse-soft);
}
.impact-pending {
  font-family: var(--sans);
  font-size: var(--step-small);
  color: var(--leather-bright);
  font-style: normal;
}
@media (min-width: 620px) { .impact { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .impact { grid-template-columns: repeat(4, 1fr); } }

/* ---------- cards ---------- */
/* Breakpoints ascend, so the widest rule wins at the widest screen. */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  min-width: 0;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.band-dark .card {
  background: rgba(247,244,239,.05);
  border-color: rgba(247,244,239,.14);
  box-shadow: none;
}

/* ---------- horse cards ---------- */
.horse-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  min-width: 0;
}
.horse-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.horse-photo {
  /* Source photographs are portrait (roughly 3:4). A wide 4:3 box was
     cropping ears, heads and riders' heads off the top, so the card area
     is portrait to suit the photographs. */
  aspect-ratio: 3 / 4;
  background: var(--limestone-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  position: relative;
}
.horse-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-missing {
  font-size: var(--step-small);
  color: var(--ink-faint);
  font-family: var(--sans);
  line-height: 1.4;
}
.horse-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.horse-card-body h3 { margin-bottom: .25em; }
.horse-meta {
  font-size: var(--step-small);
  color: var(--ink-faint);
  margin: 0 0 .8em;
}
.horse-card-body p { font-size: var(--step-small); color: var(--ink-soft); margin-bottom: 1em; }
.horse-card-foot { margin-top: auto; }

.pill {
  display: inline-block;
  font-size: var(--step-micro);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--field-mist);
  color: var(--field);
}
.pill-rehab     { background: var(--leather-soft); color: #8A4A1E; }
.pill-permanent { background: #E4DEF2; color: #4C3E73; }
.pill-available { background: var(--field-mist); color: var(--field); }
.pill-rehomed   { background: #D9E8DE; color: #1F5136; }
.pill-need      { background: var(--leather); color: #fff; }

.sponsor-meter {
  height: 6px;
  background: var(--limestone-deep);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 8px;
}
.sponsor-meter i { display: block; height: 100%; background: var(--leather); border-radius: 999px; }
.sponsor-note { font-size: var(--step-micro); color: var(--ink-faint); margin: 0; }

/* ---------- filters ---------- */
.filters {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 32px;
}
@media (min-width: 720px) { .filters { grid-template-columns: repeat(3, 1fr); align-items: end; } }
@media (min-width: 1020px) { .filters { grid-template-columns: repeat(5, 1fr); } }
.field label {
  display: block;
  font-size: var(--step-micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.field select, .field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--limestone);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 13px;
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field select:focus, .field input:focus, .field textarea:focus {
  outline: 2px solid var(--leather);
  outline-offset: 1px;
  border-color: var(--leather);
}
.field-hint { font-size: var(--step-micro); color: var(--ink-faint); margin: 6px 0 0; }

/* ---------- tiers ---------- */
.tier {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.tier-featured { border-color: var(--leather); box-shadow: var(--shadow-lift); }
.tier-flag {
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--leather);
  margin-bottom: 10px;
}
.tier-price {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  line-height: 1;
  margin: 6px 0 4px;
}
.tier-price small {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-faint);
}
.tier ul { list-style: none; margin: 18px 0 24px; padding: 0; }
.tier li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: var(--step-small);
  line-height: 1.5;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--leather);
}
.tier .btn { margin-top: auto; width: 100%; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 30px 26px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--leather);
  border: 2px solid var(--limestone);
}
.timeline time {
  display: block;
  font-size: var(--step-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.timeline-pair { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 12px; }
.timeline-pair figure { margin: 0; }
.timeline-pair figcaption {
  font-size: var(--step-micro);
  color: var(--ink-faint);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

/* ---------- notices ---------- */
.notice {
  border: 1px dashed var(--leather);
  background: var(--leather-soft);
  color: #7A3F16;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: var(--step-small);
  line-height: 1.55;
  margin: 0 0 24px;
}
.notice strong { display: block; margin-bottom: 4px; }
.notice p { margin: 0; max-width: none; }
.notice-quiet {
  border: 1px solid var(--rule);
  background: var(--limestone-warm);
  color: var(--ink-soft);
}
.notice-error { border: 1px solid #C0392B; background: #FBE9E7; color: #8E2A1E; border-style: solid; }
.notice-ok { border: 1px solid var(--field); background: var(--field-mist); color: var(--field); border-style: solid; }

/* ---------- trust band ---------- */
.trust {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust-item { font-size: var(--step-small); }
.trust-item h3 { font-size: 17px; font-family: var(--sans); font-weight: 600; margin-bottom: .3em; }
.trust-item p { color: var(--ink-soft); margin: 0; }

/* ---------- forms ---------- */
.form-stack { display: grid; gap: 18px; max-width: 520px; }
.form-wide { max-width: 720px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 240px; }
.inline-form .btn { flex: 0 0 auto; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
table.data th, table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  white-space: nowrap;
}
table.data th {
  font-size: var(--step-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
table.data td.wrap { white-space: normal; min-width: 220px; }

/* ---------- footer ---------- */
.footer {
  background: var(--field-darker);
  color: var(--ink-inverse-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--step-small);
}
.footer h4 {
  font-family: var(--sans);
  font-size: var(--step-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-inverse);
  margin: 0 0 14px;
}
.footer a { color: var(--ink-inverse-soft); text-decoration: none; }
.footer a:hover { color: var(--leather-bright); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: var(--step-micro);
  color: var(--ink-faint);
}
.footer-mark { width: 34px; height: 34px; margin-bottom: 14px; }

/* ---------- utility ---------- */
.stack > * + * { margin-top: 1.1em; }
.center { text-align: center; }
.center p, .center h1, .center h2 { margin-inline: auto; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 44px; }
.divider { display: block; width: 100%; height: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--leather); color: #fff;
  padding: 11px 18px; border-radius: 0 0 10px 10px;
  text-decoration: none; z-index: 100;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--leather); outline-offset: 2px; border-radius: 4px; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { margin-bottom: 0; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split-lead { grid-template-columns: 1.15fr .85fr; } }

blockquote.pull {
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 3px solid var(--leather);
  font-family: var(--serif);
  font-size: var(--step-h3);
  line-height: 1.32;
  color: var(--ink);
}
.band-dark blockquote.pull { color: var(--ink-inverse); }
blockquote.pull cite {
  display: block;
  font-family: var(--sans);
  font-size: var(--step-micro);
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* ---------- photography ---------- */
.photo {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--limestone-deep);
  box-shadow: var(--shadow-card);
}
.photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* Biased up the frame, so a crop never takes a horse's head off. */
  object-position: 50% 35%;
}
.photo-tall  { aspect-ratio: 4 / 5; }
.photo-wide  { aspect-ratio: 3 / 2; }
.photo-square { aspect-ratio: 1 / 1; }
.photo-lift { box-shadow: var(--shadow-lift); }

/* Horse card and profile photographs: source images are portrait, so bias
   the crop toward the top of the frame to keep ears, heads and riders'
   heads in shot. Placed after .photo img so it wins on specificity. */
.horse-photo img { object-position: 50% 20%; }

figure.photo-figure { margin: 0; }
figure.photo-figure figcaption {
  font-size: var(--step-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 10px;
}
.band-dark figure.photo-figure figcaption { color: var(--ink-inverse-soft); }

/* Hero that carries a photograph beside the words. */
.hero-split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 940px) {
  .hero-split { grid-template-columns: 1.05fr .95fr; }
}

/* Logo lockup */
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
  display: block;
}
.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 18px;
  display: block;
}

/* ---------- stepped form ---------- */
/* Without JS every step is visible and the form is one long page that works.
   With JS it becomes a wizard. Nothing here hides content by default. */
.wizard-progress { display: none; }
.form-nav { display: none; }

.js-wizard .wizard-progress {
  display: block;
  position: sticky;
  top: 68px;
  z-index: 40;
  background: var(--limestone);
  padding: 18px 0 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.js-wizard .form-nav { display: flex; }
.js-wizard .step { display: none; }
.js-wizard .step.is-current { display: block; animation: stepIn .3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js-wizard .step.is-current { animation: none; } }

.progress-track {
  height: 5px;
  background: var(--limestone-deep);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--leather);
  border-radius: 999px;
  transition: width .35s var(--ease);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--step-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.progress-meta strong { color: var(--ink); font-weight: 600; letter-spacing: .06em; }

.step > h2 { font-size: var(--step-h3); margin-bottom: .25em; }
.step > .step-intro { color: var(--ink-soft); font-size: var(--step-small); margin-bottom: 1.6em; }

.form-nav {
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.form-nav .spacer { flex: 1; }

fieldset.field-group {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 0 0 22px;
  background: #fff;
  min-width: 0;
}
fieldset.field-group > legend {
  font-size: var(--step-micro);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 8px;
}
.field-pair { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 620px) { .field-trio { grid-template-columns: repeat(3, 1fr); } }

.field-required { color: var(--leather); }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--step-small);
  line-height: 1.5;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--limestone);
  margin-bottom: 12px;
  cursor: pointer;
}
.check:hover { border-color: var(--leather); }
.check input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
  flex: none;
  accent-color: var(--leather);
  width: 19px;
  height: 19px;
}
.check strong { display: block; margin-bottom: 2px; }

.conditions-list {
  counter-reset: cond;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 20px;
}
.conditions-list li {
  counter-increment: cond;
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  font-size: var(--step-small);
  line-height: 1.55;
}
.conditions-list li:last-child { margin-bottom: 0; }
.conditions-list li::before {
  content: counter(cond);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--field-mist);
  color: var(--field);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fee-callout {
  border: 2px solid var(--leather);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--leather-soft);
  margin-bottom: 22px;
}
.fee-callout h3 { margin-bottom: .3em; color: #7A3F16; }
.fee-callout p { color: #7A3F16; font-size: var(--step-small); margin-bottom: .6em; }
.fee-callout p:last-child { margin-bottom: 0; }
.fee-rows { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 14px 0; }
@media (min-width: 560px) { .fee-rows { grid-template-columns: 1fr 1fr; } }
.fee-row {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
}
.fee-row span {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.fee-row small { font-size: var(--step-micro); color: var(--ink-soft); }

.error-summary {
  border: 2px solid #C0392B;
  background: #FBE9E7;
  color: #8E2A1E;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 26px;
}
.error-summary h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; margin-bottom: .5em; color: #8E2A1E; }
.error-summary ul { margin: 0; padding-left: 20px; font-size: var(--step-small); }
.error-summary a { color: #8E2A1E; }
.field-error { font-size: var(--step-micro); color: #8E2A1E; margin: 6px 0 0; font-weight: 600; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #C0392B;
  background: #FDF4F3;
}

.file-drop {
  border: 2px dashed var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  background: var(--limestone);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.file-drop:hover, .file-drop.is-over { border-color: var(--leather); background: var(--leather-soft); }
.file-drop input { width: 100%; font-size: var(--step-small); }
.file-list { list-style: none; margin: 14px 0 0; padding: 0; font-size: var(--step-small); }
.file-list li { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.file-list li:last-child { border-bottom: 0; }

.reference-badge {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: .04em;
  background: var(--field-dark);
  color: var(--ink-inverse);
  padding: 14px 26px;
  border-radius: var(--radius);
  margin: 6px 0 20px;
}

/* ---------- site notice ---------- */
/* Shown on every page while SITE_NOTICE is set in the environment. Removing
   that variable removes the banner, with no code change. */
.site-notice {
  background: var(--field-dark);
  color: var(--ink-inverse);
  border-bottom: 2px solid var(--leather);
  padding: 11px 0;
  position: relative;
  z-index: 70;
}
.site-notice-inner {
  display: flex;
  gap: 10px 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  font-size: var(--step-small);
  line-height: 1.45;
}
.site-notice strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--leather-bright);
  flex: none;
}
.site-notice strong::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--leather-bright);
}
.site-notice span { color: var(--ink-inverse-soft); max-width: 68ch; }
/* The nav sticks below the banner rather than over it. */
.has-site-notice .nav { position: static; }
