/* Styles for the pages v3 does not cover: join, contact, the holding page and error pages.
   Loaded after site.css only on those pages. Variable names that clash with v3 tokens are prefixed --lg-. */
:root {
  --rc-powder-blue: #B9D9EB;
  --color-text-strong: var(--rc-black);
  --color-surface: var(--rc-white);
  --color-surface-alt: var(--rc-cloud);
  --color-surface-info: var(--rc-powder-blue);
  --color-band: var(--rc-royal-blue);
  --color-on-band: var(--rc-white);
  --color-border: var(--rc-silver);
  --color-border-input: var(--rc-charcoal);
  --color-error: var(--rc-cardinal);
  --color-success: var(--rc-grass);
  --color-placeholder: var(--rc-silver);
  --font-secondary: Georgia, serif;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fs-label: 0.8125rem;
  --lg-fs-meta: 0.9375rem;
  --lg-fs-h2: clamp(1.875rem, 2vw + 1.25rem, 3rem);
  --lg-fs-h1: clamp(2.5rem, 3.6vw + 1.25rem, 4.5rem);
  --lg-fs-lead: clamp(1.125rem, 0.6vw + 0.95rem, 1.375rem);
  --lh-tight: 1.12;
  --lh-heading: 1.25;
  --lh-body: 1.6;
  --tracking-label: 0.08em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius: 4px;
  --shadow-card: 0 0 0 1px var(--rc-silver);
  --shadow-raised: 0 0 0 1px var(--rc-silver), 0 4px 0 0 var(--rc-silver);
  --rule-accent: 4px solid var(--rc-gold);
}
.container--narrow { max-width: 780px; }
/* ======================================================================
   Shared by About, Join and Contact (pg-*). Written by the forms agent.
   ====================================================================== */
.pg-head {
  background: var(--color-surface);
}
.pg-head__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px);
}
.pg-head__eyebrow {
  color: var(--color-text);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.pg-head h1 {
  max-width: 20ch;
  font-size: var(--lg-fs-h1);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
.pg-head__lead {
  max-width: 60ch;
  font-family: var(--font-secondary);
  font-size: var(--lg-fs-lead);
  line-height: 1.55;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding-inline: var(--space-6);
  background: var(--rc-royal-blue);
  border: 2px solid var(--rc-royal-blue);
  border-radius: var(--radius);
  color: var(--rc-white);
  font-size: var(--fs-ui);
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.pg-btn:hover {
  background: var(--rc-azure);
  border-color: var(--rc-azure);
  color: var(--rc-white);
}
.pg-btn--ghost {
  background: var(--rc-white);
  color: var(--rc-royal-blue);
}
.pg-btn--ghost:hover {
  background: var(--rc-white);
  border-color: var(--rc-azure);
  color: var(--rc-azure);
}

.pg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap-min);
  color: var(--color-link);
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.pg-link:hover { text-decoration: underline; }

/* ============================================================== join page */
.join-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-8);
  margin-top: var(--space-6);
}
.join-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: var(--rule-accent);
}
.join-step__number {
  color: var(--color-heading);
  font-size: var(--space-8);
  font-weight: var(--fw-semibold);
  line-height: 1;
}
.join-step__title { font-size: 1.25rem; }
.join-step p { line-height: var(--lh-body); }

.join-form { background: var(--color-surface-alt); }
.join-form__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 64px);
  padding-block: var(--section-y);
}
.join-form__intro {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--color-text-strong);
}
.join-form__intro h2 { font-size: var(--lg-fs-h2); }
.join-form__intro p { max-width: 42ch; }

/* ============================================================ contact page */
.contact { background: var(--color-surface); }
.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: var(--section-y);
}
.contact__details {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.contact-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
}
.contact-facts dt {
  color: var(--color-text);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.contact-facts dd {
  margin: 2px 0 0;
  color: var(--color-text-strong);
  font-weight: var(--fw-semibold);
}
.contact__map {
  display: block;
  width: 100%;
  text-decoration: none;
}
.contact__map img,
.contact__map-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-placeholder);
  border-radius: var(--radius);
}

/* =================================================================== forms */
.form-card {
  flex: 1.4 1 380px;
  min-width: 0;
  padding: clamp(20px, 4vw, 40px);
  background: var(--color-surface);
  border-radius: var(--radius);
}
.form-card--outlined { box-shadow: var(--shadow-card); }
.form-card--messenger { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form__title { font-size: 1.5rem; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label,
.form-fieldset legend {
  color: var(--color-text-strong);
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
}
.form-field__optional {
  color: var(--color-text);
  font-weight: var(--fw-regular);
}
.form-field__hint {
  color: var(--color-text);
  font-size: var(--lg-fs-meta);
}
.form-field__error {
  color: var(--color-error);
  font-size: var(--lg-fs-meta);
  font-weight: var(--fw-semibold);
}

.form-control {
  width: 100%;
  min-height: var(--control-h);
  padding: 10px 14px;
  background: var(--rc-white);
  border: 2px solid var(--color-border-input);
  border-radius: var(--radius);
  color: var(--color-text-strong);
  font-size: var(--fs-ui);
}
.form-control--area {
  min-height: 140px;
  line-height: 1.5;
  resize: vertical;
}
.form-control:focus-visible {
  border-color: var(--rc-royal-blue);
  box-shadow: var(--focus-ring);
}
.form-control[aria-invalid="true"],
.form-check input[aria-invalid="true"] { border-color: var(--color-error); }

.form-fieldset {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-fieldset legend { padding: 0; margin-bottom: 6px; }
.form-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0 var(--space-4);
}
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap-min);
  color: var(--color-text-strong);
  font-size: var(--fs-ui);
  font-weight: var(--fw-regular);
  cursor: pointer;
}
.form-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--rc-royal-blue);
}
.form-check--consent {
  align-items: flex-start;
  font-size: var(--lg-fs-meta);
  line-height: 1.5;
}
.form-check--consent input { margin-top: 2px; }

/* Off-screen rather than display:none, which more bots skip. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  align-self: flex-start;
  min-height: var(--control-h);
  padding-inline: var(--space-8);
  background: var(--rc-royal-blue);
  border: 2px solid var(--rc-royal-blue);
  border-radius: var(--radius);
  color: var(--rc-white);
  font-size: var(--fs-ui);
  font-weight: var(--fw-bold);
  cursor: pointer;
}
.form-submit:hover {
  background: var(--rc-azure);
  border-color: var(--rc-azure);
}

.form-summary {
  padding: 14px var(--space-4);
  border: 2px solid var(--color-error);
  border-radius: var(--radius);
  color: var(--color-text-strong);
}
.form-summary__title {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-error);
}
.form-summary__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.form-summary__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--color-text-strong);
}

.form-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 60ch;
  padding-top: var(--space-5);
  border-top: 4px solid var(--color-success);
}
.form-done__title { font-size: 1.5rem; }

/* ======================================================= holding page */
.holding__header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.holding__logo {
  height: clamp(52px, 5vw, 72px);
  width: auto;
  margin-block: 10px;
}
.holding__main { background: var(--color-surface); }
.holding__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  max-width: 820px;
  padding-block: clamp(40px, 6vw, 80px);
}
.holding__title {
  max-width: 20ch;
  font-size: var(--lg-fs-h1);
  line-height: var(--lh-tight);
  text-wrap: balance;
}
.holding__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  margin: 0;
  padding: var(--space-5);
  background: var(--color-surface-info);
  border-left: var(--rule-accent);
  color: var(--color-text-strong);
}
.holding__facts dt {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.holding__facts dd { margin: 0; }
.holding__event {
  display: block;
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  text-decoration: none;
}
.holding__event:hover { box-shadow: var(--shadow-raised); color: var(--color-text); }
.holding__event-band { display: flex; height: 8px; }
.holding__event-band i { flex: 1; }
.holding__event-band .s1 { background: var(--rc-cranberry); }
.holding__event-band .s2 { background: var(--rc-orange); }
.holding__event-band .s3 { background: var(--rc-gold); }
.holding__event-band .s4 { background: var(--rc-grass); }
.holding__event-band .s5 { background: var(--rc-sky-blue); }
.holding__event-band .s6 { background: var(--rc-violet); }
.holding__event-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
}
.holding__event-title {
  color: var(--color-heading);
  font-size: var(--lg-fs-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}
.holding__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.holding__footer {
  background: var(--color-band);
  border-top: 6px solid var(--rc-gold);
  color: var(--color-on-band);
}
.holding__footer-inner { padding-block: var(--space-6); }
.holding__footer a { color: var(--color-on-band); }

/* Elements that carry their own box-shadow would otherwise lose the focus ring. */
.post-card:focus-visible,
.project-card:focus-visible,
.event-card:focus-visible,
.holding__event:focus-visible,
.mobile-nav__link[aria-current="page"]:focus-visible { box-shadow: var(--focus-ring); }

/* ------------------------------------------------- card hover and focus */
