/* ==========================================================================
   SFUP — Shikana Frontliners for Unity Party
   Core stylesheet. Palette and type are drawn from the party's own mark
   (navy circle, rust/gold woodtype lettering) — see the design notes at
   the top of index.html for the token rationale.
   ========================================================================== */

:root {
  --navy: #16233f;
  --navy-deep: #0e1830;
  --rust: #8b3a26;
  --rust-light: #a8492f;
  --gold: #a9862f;
  --cream: #f6f1e4;
  --ink: #18140f;
  --white: #ffffff;
  --max-width: 74rem;
  --font-display: "Bitter", Georgia, serif;
  --font-body: "Karla", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  max-width: 62ch;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--rust);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--rust-light);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy-deep);
  position: sticky;
  top: 0;
  z-index: 500;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}

.brand img {
  height: 2.6rem;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center; /* keeps text links and the button li on one baseline */
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: flex;
  align-items: center;
}

.main-nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Smaller padding than the default .btn so "Join SFUP" matches the
   height of the plain text links beside it. */
.btn-nav {
  padding: 0.5rem 1.05rem;
  font-size: 0.85rem;
}
@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
  }

  /* Mobile: the Join action is the first thing a visitor can tap */
  .main-nav .nav-join {
    order: -1;
    margin: 0 0 0.9rem;
  }

  .main-nav .nav-join .btn {
    display: block;
    text-align: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media .hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(14, 24, 48, 0.92) 0%,
    rgba(14, 24, 48, 0.78) 38%,
    rgba(14, 24, 48, 0.55) 68%,
    rgba(14, 24, 48, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: 6rem 2rem 5rem;
}

.hero-eyebrow-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.hero-eyebrow-mark img {
  height: 3.4rem;
}

.hero-eyebrow-mark span {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 0.5em;
}

.hero .lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.video-toggle {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  background: rgba(14, 24, 48, 0.65);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.video-toggle:hover,
.video-toggle:focus-visible {
  border-color: var(--white);
}

/* Ridge divider — the mountain motif from the party mark, used as a
   structural device between the hero and the next section. */
.ridge-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
}

.ridge-divider path {
  fill: var(--cream);
}

.ridge-divider.on-cream path {
  fill: var(--navy-deep);
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.section-navy {
  background: var(--navy-deep);
  color: var(--white);
}

.section-navy p {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.6rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* Intro / pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

@media (max-width: 760px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar h3 {
  font-size: 1.15rem;
  color: var(--rust);
}

.pillar p {
  font-size: 0.98rem;
}

/* Join section */

.join-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) {
  .join-grid {
    grid-template-columns: 1fr;
  }
}

.ussd-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
}

.ussd-card h3 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.ussd-card ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.ussd-card ol li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.ussd-card code {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

/* Leadership teaser */

.leader-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

@media (max-width: 760px) {
  .leader-strip {
    grid-template-columns: 1fr;
  }
}

.leader-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.leader-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

.leader-card .leader-info {
  padding: 1rem 1.1rem 1.3rem;
}

.leader-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.15em;
}

.leader-card .role {
  color: var(--rust);
  font-size: 0.85rem;
  font-weight: 700;
}

/* CTA banner */

.cta-banner {
  background: var(--rust);
  color: var(--white);
  padding: 3.2rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.4em;
}

.cta-banner p {
  margin: 0 auto 1.6rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner .btn-primary {
  background: var(--navy-deep);
}

.cta-banner .btn-primary:hover,
.cta-banner .btn-primary:focus-visible {
  background: var(--navy);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.2rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 2.4rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.footer-brand img {
  height: 2.4rem;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ---------- Motion & accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ==========================================================================
   INNER-PAGE COMPONENTS
   Added for pages 2–9 (about, ideology, leadership, faq, join, contact,
   downloads, terms, privacy). Everything above this line is the original
   landing-page stylesheet and is unchanged, except where flagged "FIX".
   ========================================================================== */

/* FIX: the ridge divider is transparent, so on the landing page the cream
   ridge sitting under the navy hero was cream-on-cream (invisible).
   Default = ridge on a navy backdrop; .on-cream keeps its original look. */
.ridge-divider {
  background: var(--navy-deep);
}

.ridge-divider.on-cream {
  background: var(--cream);
}

/* FIX: leader photos — fill the frame instead of overflowing it. The
   nested-wrapper rule tolerates the doubled .leader-photo div in index.html. */
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.leader-photo .leader-photo {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}

.leader-card {
  color: var(--ink);
}

/* ---------- Nav: current page ---------- */

.main-nav a[aria-current="page"]:not(.btn) {
  color: var(--white);
  font-weight: 700;
  padding: 0.3rem 0;
  border-bottom: 2px solid var(--gold);
}

@media (max-width: 1180px) {
  .main-nav a[aria-current="page"]:not(.btn) {
    color: var(--gold);
    border-bottom: 0;
    padding: 0.85rem 0 0.85rem 0.8rem;
    border-left: 3px solid var(--gold);
  }
}

/* ---------- Page hero (all inner pages) ---------- */

.page-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 3.4rem 0 2.6rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  margin-bottom: 0.4em;
  max-width: 24ch;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  max-width: 46rem;
}

.page-hero .hero-actions {
  margin-top: 1.4rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.8rem;
}

/* ---------- Generic helpers ---------- */

.section-white {
  background: var(--white);
}

.section-tight {
  padding: 3rem 0;
}

.prose p {
  max-width: 68ch;
}

.lead {
  font-size: 1.15rem;
}

[hidden] {
  display: none !important;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
}

.text-link {
  color: var(--rust);
  font-weight: 700;
}

.section-navy .text-link,
.cta-banner .text-link {
  color: var(--white);
}

.callout {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  max-width: 46rem;
}

.callout h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Visible "content still to be supplied" marker — deliberately hard to miss
   so it can't be published by accident. Delete the element once filled. */
.placeholder-note {
  border: 2px dashed var(--rust);
  background: #fff6ee;
  color: var(--ink);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  max-width: 46rem;
}

.placeholder-note strong {
  color: var(--rust);
}

.placeholder-note p:last-child {
  margin-bottom: 0;
}

/* ---------- About ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
}

@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

.facts > div {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.facts dd {
  margin: 0;
  font-weight: 700;
}

.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

@media (max-width: 820px) {
  .statement-grid {
    grid-template-columns: 1fr;
  }
}

.statement-card {
  background: var(--cream);
  border-left: 5px solid var(--rust);
  border-radius: 8px;
  padding: 1.5rem 1.6rem;
  color: var(--ink);
}

.statement-card h3 {
  font-size: 1.15rem;
  color: var(--rust);
}

.statement-card p {
  margin-bottom: 0;
}

.values-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.8rem;
}

.values-grid li {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.office-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 1.5rem 1.7rem;
}

.office-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  margin-top: 0.9rem;
}

.office-card dt:first-child {
  margin-top: 0;
}

.office-card dd {
  margin: 0;
  color: var(--white);
}

.office-card a {
  color: var(--white);
}

/* ---------- Ideology ---------- */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 820px) {
  .principle-grid {
    grid-template-columns: 1fr;
  }
}

.principle {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--rust);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  color: var(--ink);
}

.principle h3 {
  font-size: 1.1rem;
  color: var(--rust);
}

.principle p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.2rem;
}

.position-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
  color: var(--ink);
}

.position-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
}

.position-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 10px;
  padding: 1.8rem 2rem;
}

.request-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.3em;
}

.request-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Leadership ---------- */

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.6rem;
}

.leader-grid .leader-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.leader-grid .leader-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(14, 24, 48, 0.14);
}

.leader-grid .leader-info {
  border-top: 4px solid var(--gold);
}

.leader-grid .leader-photo {
  background: var(--navy-deep);
}

/* ---------- FAQ ---------- */

.faq-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.faq-search {
  flex: 1 1 20rem;
}

.faq-search label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.faq-search input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #cfc7b3;
  border-radius: 6px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.faq-search input:focus {
  border-color: var(--navy);
}

.faq-toggles {
  display: flex;
  gap: 0.5rem;
  align-self: flex-end;
}

.faq-status {
  font-size: 0.88rem;
  color: #5a5142;
  margin: 0.4rem 0 1.6rem;
  min-height: 1.3em;
}

.faq-group {
  margin-bottom: 2.4rem;
}

.faq-group h2 {
  font-size: 1.2rem;
  color: var(--rust);
  margin-bottom: 0.9rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.2rem;
  font-weight: 700;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--rust);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item[open] {
  border-color: var(--gold);
}

.faq-answer {
  padding: 0 1.2rem 1.2rem;
}

.faq-answer p,
.faq-answer ol,
.faq-answer ul {
  max-width: 64ch;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

mark {
  background: #f3dfa2;
  color: inherit;
  padding: 0 0.1em;
  border-radius: 2px;
}

.faq-empty {
  background: var(--white);
  border: 1px dashed #bdb39a;
  border-radius: 8px;
  padding: 1.4rem;
  color: var(--ink);
}

/* ---------- Join form ---------- */

.join-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.6rem;
  align-items: start;
}

@media (max-width: 960px) {
  .join-layout {
    grid-template-columns: 1fr;
  }
}

.join-layout .ussd-card {
  position: sticky;
  top: 5rem;
}

@media (max-width: 960px) {
  .join-layout .ussd-card {
    position: static;
  }
}

.form-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 1.7rem;
  color: var(--ink);
}

.form-card h2 {
  font-size: 1.4rem;
}

.form-card fieldset {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
  min-width: 0;
}

.form-card fieldset:disabled {
  opacity: 0.45;
}

.form-card legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  padding: 0;
  margin-bottom: 0.9rem;
}

.field {
  margin-bottom: 1rem;
}

.field > label,
.field > .label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.field .req {
  color: var(--rust);
}

.field .hint {
  font-size: 0.82rem;
  color: #5a5142;
  margin: 0.25rem 0 0;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  border: 2px solid #cfc7b3;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--navy);
}

.field.invalid input,
.field.invalid select {
  border-color: #b3261e;
}

.field-error {
  color: #b3261e;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0.3rem 0 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.check input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--rust);
}

.consent-box {
  background: var(--cream);
  border: 1px solid #d8cfb8;
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.6rem;
}

.consent-box p {
  margin-top: 0;
  font-size: 0.95rem;
}

.consent-box .check {
  margin-bottom: 0;
}

.form-status {
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-status.info {
  background: #eef2fb;
  border: 1px solid #b9c6e6;
  color: var(--navy);
}

.form-status.ok {
  background: #edf6ee;
  border: 1px solid #a9d2ae;
  color: #1e5a2b;
}

.form-status.err {
  background: #fdeceb;
  border: 1px solid #efb1ad;
  color: #8a1f17;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Contact ---------- */

.contact-grid > * {
  min-width: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
}

.contact-item .ic {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 6px;
  background: var(--navy-deep);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .ic svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
  margin: 0 0 0.2rem;
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  color: var(--navy);
  font-weight: 700;
}

.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #e6dfcb;
  height: clamp(18rem, 60vw, 27rem);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
  align-items: center;
}

.map-note {
  font-size: 0.8rem;
  color: #5a5142;
  margin: 0.7rem 0 0;
}

/* ---------- Documents ---------- */

.doc-list {
  display: grid;
  gap: 1rem;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 1.6rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  color: var(--ink);
}

.doc-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 22rem;
}

.doc-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 6px;
  background: var(--navy-deep);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.doc-info h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  margin: 0 0 0.25rem;
}

.doc-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #4a4436;
}

.doc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rust);
  margin-bottom: 0.25rem;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

@media (max-width: 560px) {
  .doc-actions {
    width: 100%;
  }

  .doc-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* ---------- Legal documents (terms.html, privacy.html) ---------- */

.doc-layout {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 960px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

.toc {
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  color: var(--ink);
}

@media (max-width: 960px) {
  .toc {
    position: static;
    max-height: none;
  }
}

.toc > summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rust);
  font-weight: 700;
}

.toc ol {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.toc ol ol {
  margin: 0.1rem 0 0.3rem 0.8rem;
}

.toc a {
  display: block;
  padding: 0.35rem 0.6rem;
  border-left: 3px solid transparent;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
}

.toc a:hover,
.toc a:focus-visible {
  background: var(--cream);
}

.toc a.active {
  border-left-color: var(--gold);
  font-weight: 700;
  color: var(--navy);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-size: 0.9rem;
  color: #4a4436;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.legal-meta strong {
  color: var(--ink);
}

.legal-body h2 {
  font-size: 1.5rem;
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  scroll-margin-top: 5.2rem;
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-body h3 {
  font-size: 1.12rem;
  margin: 1.8rem 0 0.5rem;
  scroll-margin-top: 5.2rem;
}

.legal-body p,
.legal-body li {
  max-width: 72ch;
}

.legal-body ol,
.legal-body ul {
  padding-left: 1.4rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.legal-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.95rem;
  background: var(--white);
}

.legal-body th,
.legal-body td {
  border: 1px solid #d8cfb8;
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: var(--cream);
}

.table-scroll {
  overflow-x: auto;
}

.anchor-link {
  margin-left: 0.45rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 400;
  opacity: 0;
  font-family: var(--font-body);
}

.legal-body h2:hover .anchor-link,
.legal-body h3:hover .anchor-link,
.anchor-link:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .anchor-link {
    opacity: 0.55;
  }
}

.back-top {
  display: inline-block;
  margin-top: 2.2rem;
  font-weight: 700;
  color: var(--rust);
}

.doc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  #a11y-widget,
  .doc-tools,
  .cta-banner,
  .ridge-divider,
  .skip-link,
  .anchor-link,
  .back-top {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page-hero {
    background: none;
    color: #000;
    padding: 0 0 1rem;
  }

  .page-hero p,
  .eyebrow {
    color: #000;
  }

  .doc-layout {
    display: block;
  }
}

/* Checkbox labels inside .field (e.g. the join-form declaration) */
.field > label.check {
  display: flex;
  font-weight: 400;
  margin-bottom: 0;
}
