/* ==========================================================================
   The Collective — /safeguarding/
   Colour tokens and shared header/nav/footer rules match the rest of the
   site exactly (same brand, same accessibility patterns).
   ========================================================================== */

:root {
  --teal: #6BB7B0;
  --teal-deep: #326762;
  --bg-warm: #F7F5F0;
  --pale-aqua: #E7F2F0;
  --mustard: #D9A441;
  --teal-near-black: #1B3733;
  --text-dark: #1E3A38;
  --text-muted: #5C7A78;
  --white: #FFFFFF;
  --error: #B3261E;

  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 4px 16px rgba(30, 58, 56, 0.08);
  --shadow-card: 0 6px 20px rgba(30, 58, 56, 0.10);
  --focus-ring: 3px solid var(--teal-deep);

  --content-width: 1080px;
  --transition-fast: 200ms ease;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* Keeps scroll targets (skip link, in-page focus jumps) from landing
     underneath the sticky header. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg-warm);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

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

a {
  color: var(--teal-deep);
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--teal-deep);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Header / navigation (shared pattern with the rest of the site)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-link:hover,
.brand-link:focus-visible {
  opacity: 0.85;
  transform: scale(1.02);
}

.nav-logo-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  width: 130px;
  aspect-ratio: 1004 / 142;
}

.nav-logo-wrap .nav-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 107.57%;
  max-width: none;
  height: auto;
  transform: translate(-2.778%, -43.426%);
}

@media (min-width: 640px) {
  .nav-logo-wrap {
    width: 165px;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-toggle-icon {
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover {
  background: var(--pale-aqua);
}

.primary-nav a[aria-current="page"] {
  color: var(--teal-deep);
  background: var(--pale-aqua);
  font-weight: 700;
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 12px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}
/* ==========================================================================
   Page hero — simple intro used by content-only pages (Accessibility,
   Privacy) rather than the full marketing hero.
   ========================================================================== */

.page-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: 2.4rem;
  line-height: 1.15;
  color: var(--teal-deep);
}

.page-hero-subtitle {
  margin: 0 auto;
  font-size: 1.1875rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 3rem;
  }
}

/* ==========================================================================
   Page body — plain prose content
   ========================================================================== */

.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.page-body h2 {
  margin: 40px 0 12px;
  font-size: 1.375rem;
  color: var(--teal-deep);
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p {
  margin: 0 0 16px;
  color: var(--text-dark);
}

.page-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-dark);
}

.page-body li {
  margin-bottom: 8px;
}

.page-body a {
  font-weight: 600;
}

.page-body .updated-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--pale-aqua);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Footer (shared pattern with the rest of the site)
   ========================================================================== */

.site-footer {
  background: var(--teal-near-black);
  color: var(--pale-aqua);
  padding: 64px 24px 24px;
  border-top: 3px solid var(--mustard);
}

.footer-inner {
  max-width: var(--content-width, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
}

.footer-brand .footer-wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}

.footer-brand .footer-tagline {
  margin: 0;
  color: var(--pale-aqua);
  font-size: 0.9375rem;
  max-width: 34ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.footer-col-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mustard);
  margin: 0 0 4px;
}

.footer-col a,
.footer-email a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9375rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-col a:hover,
.footer-email a:hover {
  text-decoration: underline;
  color: var(--mustard);
}

.footer-email {
  margin: 0 0 16px;
}

.footer-social {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.footer-social a:hover {
  background: var(--mustard);
  color: var(--teal-deep);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  max-width: var(--content-width, 1080px);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--pale-aqua);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: var(--pale-aqua);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
  color: var(--white);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

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

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}

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

/* ==========================================================================
   Motion
   ========================================================================== */

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

  * {
    transition: none !important;
    animation: none !important;
  }
}
