/* ==========================================================================
   Understanding Your Rights — shared styles
   Used by every page. Page-specific styles live in each page's <style>.
   ========================================================================== */

:root {
  --navy: #0e1f3a;
  --navy-2: #1a2f52;
  --gold: #c49a3c;            /* rules and small marks */
  --gold-text: #86651c;       /* gold text on light backgrounds */
  --gold-on-dark: #dcbc72;    /* gold on navy */
  --blue: #1f4b8f;            /* links (from the logo's blue ring) */

  --ink: #1b2433;
  --muted: #4f5a6b;
  --faint: #6b7585;
  --line: #dcdfe4;
  --line-strong: #c3c8d0;

  --paper: #ffffff;
  --sand: #f6f3ec;
  --sand-line: #e5dece;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--blue); text-underline-offset: 3px; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
  padding: 10px 16px;
  text-decoration: none;
  border: 2px solid var(--navy);
}
.skip-link:focus { top: 12px; }

.container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
}
.brand img { width: 46px; height: 46px; border-radius: 50%; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #ffffff; border-bottom-color: rgba(255, 255, 255, 0.4); }
.site-nav a[aria-current="page"] { color: #ffffff; border-bottom-color: var(--gold-on-dark); }

.site-nav a.nav-donate {
  margin-left: 4px;
  padding: 9px 18px;
  border: none;
  border-radius: 3px;
  background: var(--gold-on-dark);
  color: var(--navy);
  font-weight: 600;
}
.site-nav a.nav-donate:hover,
.site-nav a.nav-donate[aria-current="page"] { background: #e6c983; color: var(--navy); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 16px 20px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-nav a:hover { border-bottom-color: rgba(255, 255, 255, 0.1); }
  .site-nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.1); color: var(--gold-on-dark); }
  .site-nav a.nav-donate { margin: 16px 0 0; text-align: center; padding: 13px 18px; }
}

@media (max-width: 420px) {
  .brand { font-size: 17px; gap: 10px; }
  .brand img { width: 40px; height: 40px; }
}

/* ── SHARED TYPE + BITS ─────────────────────────────────────────────────── */
.label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 12px;
}

.section { padding: 84px 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.86); }
.section--navy h2,
.section--navy h3 { color: #ffffff; }
.section--navy .label { color: var(--gold-on-dark); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); }
.lede { font-size: 19px; color: var(--muted); margin-top: 10px; }
.section--navy .lede { color: rgba(255, 255, 255, 0.75); }

.prose { max-width: 720px; }
.prose p { font-size: 18px; line-height: 1.75; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--navy-2); border-color: var(--navy-2); }
.button--gold { background: var(--gold-on-dark); border-color: var(--gold-on-dark); color: var(--navy); }
.button--gold:hover { background: #e6c983; border-color: #e6c983; }

/* ── PAGE HEAD (interior pages) ─────────────────────────────────────────── */
.page-head {
  background: var(--sand);
  border-bottom: 1px solid var(--sand-line);
  padding: 64px 0;
}
.page-head h1 { font-size: clamp(34px, 4.6vw, 52px); max-width: 760px; }
.page-head p { font-size: 20px; color: var(--muted); max-width: 600px; margin-top: 16px; }

.page-head--split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.page-head-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--sand-line);
}
.page-head-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── DISCLAIMER + FOOTER ────────────────────────────────────────────────── */
.site-disclaimer {
  background: var(--sand);
  border-top: 1px solid var(--sand-line);
  padding: 22px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.site-disclaimer span { font-weight: 700; color: var(--ink); }
.site-disclaimer strong { font-weight: 600; color: var(--ink); }

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0 28px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .page-head--split .container { grid-template-columns: 1fr; gap: 32px; }
  .page-head-photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 700px) {
  :root { --header-h: 66px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 60px 0; }
  .page-head { padding: 44px 0; }
  .page-head p { font-size: 18px; }
  .lede { font-size: 18px; }
  .prose p { font-size: 17px; }
  .footer-main { flex-direction: column; align-items: flex-start; }
}
