
  :root {
    --brand: #0033A1;      /* exact logo blue */
    --brand-light: #3E6FC4; /* lighter blue, decorative */
    --navy: #0A2A5E;        /* darkest navy - footer, headings */
    --navy-mid: #0A2A5E;    /* ski-n-swim section */
    --orange: #F18A00;      /* exact logo orange - primary CTA */
    --orange-dark: #C96A00; /* deeper orange - hover/secondary */
    --ink: #1C2B3A;
    --slate: #4A5A6A;       /* body copy on white */
    --cloud: #FFFFFF;
    --mist: #EEF3FA;        /* light blue-grey tint */
    --line: #E1E7F0;        /* hairline borders */
    --display: 'Space Grotesk', sans-serif;
    --body: 'Inter', sans-serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: var(--body);
    background: var(--cloud);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4, .display {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
  }

  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

  /* ---------- NAV ---------- */
  .site-nav {
    position: sticky;
    top: 0; z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .brand { display: flex; align-items: center; }
  .brand img { height: 45px; width: auto; display: block; }
  .nav-links {
    display: none;
    gap: 4px;
    font-weight: 500;
    font-size: 0.92rem;
  }
  @media (min-width: 900px) { .nav-links { display: flex; } }
  .nav-links a {
    color: var(--slate);
    padding: 8px 14px;
    border-radius: 6px;
  }
  .nav-links a:hover { background: var(--mist); color: var(--brand); }
  .nav-cta {
    background: var(--navy);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
  }
  .nav-cta:hover { background: var(--brand); }

  /* ---------- HERO ---------- */
  .hero {
    position: relative;
    padding: 40px 0 0;
    overflow: hidden;
    background: var(--navy);
  }
  .hero-media { position: absolute; inset: 0; z-index: 0; }
  .hero-media video, .hero-media .fallback { width: 100%; height: 100%; object-fit: cover; }
  .hero-media .fallback {
    background: linear-gradient(160deg, #0A2A5E 0%, #123A78 55%, #1B4B94 100%);
  }
  /* PLACEHOLDER: replace src with real footage — practice on deck,
     swimmers mid-stroke, Ski-n-Swim highlights. Bright, motion-forward. */
  @media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }
  .hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(4,27,61,0.55) 0%, rgba(4,27,61,0.4) 45%, rgba(4,27,61,0.82) 100%);
  }
  .hero-inner {
    position: relative; z-index: 2;
    padding: 130px 0 90px;
    max-width: 560px;
  }
  .eyebrow {
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 20px;
    display: block;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 5.6vw, 4rem);
    color: #fff;
  }
  .hero h1 .accent { color: var(--orange); }
  .hero-sub {
    margin-top: 22px;
    font-size: 1.12rem;
    max-width: 520px;
    color: rgba(255,255,255,0.82);
  }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
  .btn {
    display: inline-block;
    padding: 13px 24px;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .btn-primary { background: var(--orange); color: #fff; }
  .btn-primary:hover { background: var(--orange-dark); }
  .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
  .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
  .btn-quiet { background: var(--mist); color: var(--navy); }
  .btn-quiet:hover { background: var(--line); }

  .practice-bar {
    position: relative; z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.16);
    background: rgba(4,27,61,0.55);
  }
  .practice-bar .wrap {
    display: flex; flex-wrap: wrap; gap: 28px;
    padding: 18px 32px;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.85);
  }
  .practice-bar strong { color: var(--orange); font-weight: 600; }

  /* ---------- SECTIONS ---------- */
  section { position: relative; padding: 100px 0; }
  .eyebrow-label {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 14px;
  }
  .section-title {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    color: var(--navy);
    max-width: 680px;
    margin-bottom: 24px;
  }
  .lede { font-size: 1.05rem; color: var(--slate); max-width: 600px; }

  /* Mission */
  .mission { background: var(--cloud); border-bottom: 1px solid var(--line); }
  .mission-grid { display: grid; gap: 56px; margin-top: 44px; }
  @media (min-width: 900px) { .mission-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
  .photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .photo-slot {
    aspect-ratio: 4/3;
    border-radius: 10px;
    background: var(--mist);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; text-align: center; color: #8493A6; padding: 10px;
    overflow: hidden;
  }
  .photo-slot.tall { grid-row: span 2; aspect-ratio: auto; }
  .photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
  }

  .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

  /* Swim with us */
  .swim-section { background: var(--mist); }
  .info-cards { display: grid; gap: 20px; margin-top: 44px; }
  @media (min-width: 760px) { .info-cards { grid-template-columns: repeat(3, 1fr); } }
  .info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px 26px;
  }
  .info-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
  .info-card p { font-size: 0.94rem; color: var(--slate); }
  .kicker {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 10px;
  }

  /* Ski-n-Swim */
  .snswim { background: var(--navy-mid); color: #fff; }
  .snswim-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
  .snswim-title { font-size: clamp(2.1rem, 5vw, 3.2rem); color: #fff; }
  .date-chip {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
  .snswim-strip { display: grid; gap: 1px; margin-top: 46px; grid-template-columns: repeat(2, 1fr); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; overflow: hidden; }
  @media (min-width: 760px) { .snswim-strip { grid-template-columns: repeat(4, 1fr); } }
  .snswim-item { background: var(--navy-mid); padding: 20px 22px; }
  .snswim-item .day { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
  .snswim-item h4 { font-size: 1.05rem; margin: 8px 0 6px; }
  .snswim-item p { font-size: 0.85rem; color: rgba(255,255,255,0.68); }

  /* Calendar preview */
  .calendar-preview { background: var(--cloud); }
  .cal-list { margin-top: 44px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .cal-row {
    display: grid;
    grid-template-columns: 78px 1fr auto;
    gap: 20px;
    align-items: center;
    background: #fff;
    padding: 18px 22px;
  }
  .cal-date {
    text-align: center;
    color: var(--navy);
    border-right: 1px solid var(--line);
    padding-right: 20px;
  }
  .cal-date .d { font-family: var(--display); font-size: 1.5rem; font-weight: 600; display: block; line-height: 1; }
  .cal-date .m { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8493A6; }
  .cal-row h4 { font-size: 1.02rem; color: var(--navy); font-weight: 600; }
  .cal-row .loc { font-size: 0.85rem; color: var(--slate); margin-top: 2px; }
  .cal-row .arrow { color: var(--brand); font-weight: 600; font-size: 0.88rem; }

  /* Support Us */
  .involved { background: var(--mist); }
  .involved-grid { display: grid; gap: 20px; margin-top: 44px; }
  @media (min-width: 760px) { .involved-grid { grid-template-columns: repeat(3, 1fr); } }
  .involved-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 10px;
    padding: 30px 26px;
  }
  .involved-card.donate { border-top-color: var(--orange); }
  .involved-card.sponsor { border-top-color: var(--navy); }
  .involved-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
  .involved-card p { font-size: 0.92rem; color: var(--slate); margin-bottom: 16px; }
  .involved-card a { font-weight: 600; font-size: 0.86rem; color: var(--brand); }
  .involved-card a::after { content: ' →'; }

  /* Footer */
  footer { background: var(--navy); color: rgba(255,255,255,0.68); padding: 70px 0 32px; }
  .footer-grid { display: grid; gap: 40px; }
  @media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
  .footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; font-weight: 600; }
  .footer-grid ul { list-style: none; }
  .footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }
  .footer-grid a:hover { color: #fff; }
  .footer-brand { margin-bottom: 12px; }
  .footer-brand img { height: 26px; opacity: 0.92; }
  .footer-bottom {
    margin-top: 56px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.14);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    font-size: 0.8rem; color: rgba(255,255,255,0.4);
  }

  ::selection { background: var(--orange); color: #fff; }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

  /* ================= SHARED SUBPAGE COMPONENTS ================= */

  /* Page header (non-video subpages) */
  .page-header {
    background: var(--navy);
    padding: 150px 0 70px;
  }
  .page-header.has-photo {
    background-size: cover;
    background-position: center;
    background-color: var(--navy);
    position: relative;
  }
  .page-header.has-photo::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(4,27,61,0.78) 0%, rgba(4,27,61,0.55) 50%, rgba(4,27,61,0.85) 100%);
  }
  .page-header.has-photo .wrap { position: relative; z-index: 1; }
  .page-header .eyebrow { margin-bottom: 16px; }
  .page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: #fff;
    max-width: 700px;
  }
  .page-header p {
    margin-top: 18px;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    max-width: 600px;
  }
  .breadcrumb {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 18px;
  }
  .breadcrumb a { color: rgba(255,255,255,0.85); }
  .breadcrumb a:hover { color: #fff; }

  .anchor-nav {
    position: sticky; top: 67px; z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .anchor-nav .wrap { display: flex; gap: 4px; overflow-x: auto; padding: 0 32px; }
  .anchor-nav a {
    padding: 16px 16px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--slate);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
  }
  .anchor-nav a:hover { color: var(--brand); }
  .anchor-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }

  .subsection { padding: 80px 0; border-bottom: 1px solid var(--line); }
  .subsection:last-of-type { border-bottom: none; }
  .subsection.tint { background: var(--mist); }

  /* Forms */
  .form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 36px;
    max-width: 680px;
  }
  .form-grid { display: grid; gap: 20px; margin-top: 8px; }
  .form-row { display: grid; gap: 20px; }
  @media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
  .field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 7px;
  }
  .field .req { color: var(--orange); }
  .field input, .field select, .field textarea {
    width: 100%;
    font-family: var(--body);
    font-size: 0.95rem;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,51,161,0.12);
  }
  .field textarea { resize: vertical; min-height: 110px; }
  .field-note { font-size: 0.8rem; color: #8493A6; margin-top: 6px; }
  .form-honeypot { position: absolute; left: -9999px; }
  .form-status { font-size: 0.9rem; margin-top: 16px; display: none; }
  .form-status.show { display: block; }
  .form-status.ok { color: #1A7A45; }
  .form-status.err { color: #C4342B; }

  /* Board / people */
  .people-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
  .person-card {
    --avatar-size: 160px;
    display: grid;
    grid-template-columns: var(--avatar-size) 1fr;
    column-gap: 20px;
    row-gap: 2px;
    align-items: start;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px;
  }
  .person-avatar {
    grid-column: 1; grid-row: 1 / span 3;
    width: var(--avatar-size); height: var(--avatar-size); border-radius: 8px;
    background: var(--mist);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: #8493A6; text-align: center; padding: 4px;
    overflow: hidden;
  }
  .person-avatar img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block; border-radius: inherit;
  }
  .person-card h4 { grid-column: 2; grid-row: 1; font-size: 1rem; color: var(--navy); margin: 0; }
  .person-card .role { grid-column: 2; grid-row: 2; font-size: 0.82rem; color: var(--orange-dark); font-weight: 600; }
  .person-card .bio { grid-column: 2; grid-row: 3; margin-top: 8px; font-size: 0.9rem; line-height: 1.6; color: var(--slate); }

  @media (max-width: 600px) {
    .person-card { --avatar-size: 72px; }
    .person-avatar { grid-row: 1 / span 2; }
    .person-card .bio { grid-column: 1 / -1; }
  }

  /* History timeline-ish blocks */
  .history-body { max-width: 720px; margin-top: 36px; }
  .history-body p { font-size: 1.02rem; color: var(--slate); margin-bottom: 20px; }
  .history-body .byline { font-size: 0.85rem; color: #8493A6; margin-bottom: 32px; }
  .pull-quote {
    border-left: 3px solid var(--orange);
    padding: 4px 0 4px 22px;
    margin: 32px 0;
    font-size: 1.15rem;
    font-family: var(--display);
    font-weight: 500;
    color: var(--navy);
  }

  /* Pricing table */
  .pricing-grid { display: grid; gap: 20px; margin-top: 40px; }
  @media (min-width: 760px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
  .price-card {
    background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px 26px;
  }
  .price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
  .price-card .price-tag { font-family: var(--display); font-size: 2rem; color: var(--navy); margin: 10px 0 4px; }
  .price-card .price-tag span { font-family: var(--body); font-size: 0.9rem; font-weight: 500; color: var(--slate); }
  .price-card ul { margin-top: 14px; padding-left: 18px; font-size: 0.9rem; color: var(--slate); }
  .price-card li { margin-bottom: 6px; }

  .donation-tiers { display: grid; gap: 14px; margin-top: 24px; grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 700px) { .donation-tiers { grid-template-columns: repeat(4, 1fr); } }
  .tier-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; text-align: center; }
  .tier-card .amt { font-family: var(--display); font-size: 1.3rem; color: var(--brand); }
  .tier-card .label { font-size: 0.8rem; color: var(--slate); margin-top: 4px; }

  /* Sponsor/affiliate list */
  .org-list { display: grid; gap: 16px; margin-top: 30px; }
  .org-item { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .org-item h4 { font-size: 1.02rem; color: var(--navy); margin-bottom: 6px; }
  .org-item p { font-size: 0.92rem; color: var(--slate); }
  .org-group-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-dark); margin: 30px 0 6px; }
  .org-group-label:first-child { margin-top: 0; }

  /* ---------- CALENDAR PAGE ---------- */
  .cal-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; margin-top: 40px; margin-bottom: 28px;
  }
  .cal-nav { display: flex; align-items: center; gap: 14px; }
  .cal-nav button {
    width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line);
    background: #fff; color: var(--navy); font-size: 1rem; cursor: pointer;
  }
  .cal-nav button:hover { background: var(--mist); }
  .cal-nav .month-label { font-family: var(--display); font-size: 1.25rem; color: var(--navy); min-width: 170px; text-align: center; }
  .cal-filters { display: flex; gap: 8px; flex-wrap: wrap; }
  .cal-filter {
    padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
    border: 1px solid var(--line); background: #fff; color: var(--slate); cursor: pointer;
  }
  .cal-filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
  .view-toggle { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  .view-toggle button { padding: 7px 14px; font-size: 0.82rem; font-weight: 600; background: #fff; color: var(--slate); border: none; cursor: pointer; }
  .view-toggle button.active { background: var(--navy); color: #fff; }

  .cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
    background: var(--line);
    gap: 1px;
  }
  .cal-grid .dow {
    background: var(--mist); text-align: center; padding: 10px 4px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8493A6;
  }
  .cal-cell {
    background: #fff; min-height: 96px; padding: 8px; position: relative;
  }
  .cal-cell.other-month { background: #FAFBFD; color: #C3CBD6; }
  .cal-cell .num { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
  .cal-cell.other-month .num { color: #C3CBD6; }
  .cal-cell.today .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff;
  }
  .cal-chip {
    display: block; margin-top: 6px; padding: 3px 6px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 600; line-height: 1.3;
    background: var(--mist); color: var(--brand);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .cal-chip.snswim { background: #FCEFDC; color: var(--orange-dark); }
  .cal-chip.social { background: #E9F0FF; color: var(--brand); }
  .cal-chip.board { background: var(--mist); color: var(--slate); }
  @media (max-width: 700px) {
    .cal-grid { grid-template-columns: repeat(7, minmax(38px,1fr)); }
    .cal-cell { min-height: 64px; padding: 5px; font-size: 0.8rem; }
    .cal-chip { font-size: 0; padding: 0; height: 6px; border-radius: 3px; margin-top: 3px; }
  }

  .legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; font-size: 0.84rem; color: var(--slate); }
  .legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

  .subscribe-box {
    margin-top: 50px; padding: 26px 30px; border-radius: 10px;
    background: var(--mist); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  }
  .subscribe-box p { font-size: 0.92rem; color: var(--slate); max-width: 420px; }

  .event-modal-overlay {
    position: fixed; inset: 0; background: rgba(4,27,61,0.55);
    display: none; align-items: center; justify-content: center;
    z-index: 100; padding: 20px;
  }
  .event-modal-overlay.open { display: flex; }
  .event-modal {
    background: #fff; border-radius: 12px; max-width: 460px; width: 100%;
    padding: 32px; position: relative; box-shadow: 0 20px 60px rgba(4,27,61,0.3);
  }
  .event-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: var(--mist); color: var(--navy); font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; line-height: 1;
  }
  .event-modal-close:hover { background: var(--line); }
  .event-modal-tag {
    display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
  }
  .event-modal-tag.practice { background: var(--mist); color: var(--brand); }
  .event-modal-tag.snswim { background: #FCEFDC; color: var(--orange-dark); }
  .event-modal-tag.social { background: #E9F0FF; color: var(--brand); }
  .event-modal-tag.board { background: var(--mist); color: var(--slate); }
  .event-modal h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; }
  .event-modal-meta { font-size: 0.9rem; color: var(--slate); margin-bottom: 16px; }
  .event-modal-desc { font-size: 0.95rem; color: var(--ink); line-height: 1.6; white-space: pre-line; }
  .cal-chip { cursor: pointer; }
  .cal-row { cursor: pointer; }


/* ---------- MOBILE MENU ---------- */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle:hover { background: var(--mist); }
 
@media (max-width: 899px) {
  .site-nav { flex-wrap: wrap; padding: 12px 20px; }
  .brand { order: 1; }
  .nav-toggle { order: 2; display: flex; margin-left: auto; }
 
  /* links drop down underneath the logo row */
  .nav-links {
    order: 3; display: none;
    flex-basis: 100%; flex-direction: column; gap: 0;
    margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line);
  }
  .nav-links a { padding: 13px 8px; font-size: 1rem; border-radius: 6px; }
 
  /* the membership button moves to the bottom of the dropdown */
  .nav-cta {
    order: 4; display: none;
    flex-basis: 100%; text-align: center;
    margin: 10px 0 6px; padding: 13px 20px;
  }
 
  .site-nav.open .nav-links { display: flex; }
  .site-nav.open .nav-cta { display: block; }
}

/* ---------- PHOTO CAROUSEL ---------- */
.gallery { --gallery-ratio: 4 / 3; }   /* try 4 / 3 (wider) or 4 / 5 (taller) */
.gallery-stage {
  position: relative;
  aspect-ratio: var(--gallery-ratio);
  border-radius: 12px; overflow: hidden;
  background: var(--mist);
}
.gallery-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 0.7s ease;
}
.gallery-slide.active { opacity: 1; }
.gallery-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); color: var(--navy);
  font-size: 1.5rem; line-height: 1; padding: 0 0 3px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(4,27,61,0.25);
}
.gallery-btn:hover { background: #fff; }
.gallery-btn.prev { left: 12px; }
.gallery-btn.next { right: 12px; }
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.gallery-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px;
  background: var(--line); cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.gallery-dots button.active { width: 24px; background: var(--brand); }
@media (prefers-reduced-motion: reduce) { .gallery-slide { transition: none; } }



/* ---------- AFFILIATES & SPONSORS: logos ---------- */
.org-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 28px;
  align-items: center;
}
.org-logo {
  display: flex; align-items: center; justify-content: center;
  height: 76px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.org-logo img {
  max-width: 100%; max-height: 56px;
  width: auto; height: auto; display: block;
}
/* for logos that are white artwork (Federation of Gay Games) */
.org-logo--dark:not(.org-logo--none) { background: var(--navy); border-color: var(--navy); }
/* shown when a logo file is missing: a dashed box with the group's initials */
.org-logo--none {
  background: transparent; border-style: dashed;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.05em; text-align: center; color: #8493A6;
}
.org-item h4 a { color: inherit; }
.org-item h4 a:hover { color: var(--brand); text-decoration: underline; }
 
/* phones: logo sits above the text */
@media (max-width: 600px) {
  .org-item { grid-template-columns: 1fr; }
  .org-logo { width: 200px; }
}

/* events that don't fit a category (shown under "All") */
.cal-chip.other { background: #EEF1F5; color: var(--slate); }
.event-modal-tag.other { background: #EEF1F5; color: var(--slate); }

/* event details popup: long text wraps, links look like links, and a tall popup scrolls instead of running off the screen */
.event-modal { max-height: calc(100vh - 40px); overflow-y: auto; }
.event-modal-meta, .event-modal-desc { overflow-wrap: anywhere; word-break: break-word; }
.event-modal-desc a { color: var(--brand); text-decoration: underline; }

/* Shop page: the two store cards sit side by side on wider screens and stack on phones */
.shop-grid { max-width: 840px; }
@media (min-width: 760px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
 
/* buttons inside these cards keep their own colors, with no arrow added after them */
.involved-card a.btn::after { content: none; }
.involved-card a.btn-primary { color: #fff; }
 
/* Phones: less empty space above the headings */
@media (max-width: 700px) {
  .hero { padding-top: 0; }
  .hero-inner { padding: 56px 0 56px; }
  .page-header { min-height: 0; padding: 40px 0 48px; }
  .shop-grid { margin-top: 0; }
}

.subsection { scroll-margin-top: 48px; }
 
@media (max-width: 700px) {
  /* Section menu (Our Story / History / ...): a clean swipeable strip with no scrollbar,
     bigger tap targets, and a soft fade on the right edge that says "there's more" */
  .anchor-nav .wrap { padding: 0 44px 0 12px; gap: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .anchor-nav .wrap::-webkit-scrollbar { display: none; }
  .anchor-nav a { padding: 16px 14px 14px; }
  .anchor-nav::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 1px; width: 36px;
    background: linear-gradient(to right, rgba(255,255,255,0), #fff); pointer-events: none;
  }
 
  /* Calendar: events are solid bars in the same colours as the legend (they were pale and almost invisible),
     with a bigger invisible tap area around each one */
  .cal-chip { height: 9px; margin-top: 5px; border-radius: 5px; background: var(--brand); overflow: visible; position: relative; }
  .cal-chip.snswim { background: var(--orange); }
  .cal-chip.social { background: #3E6FC4; }
  .cal-chip.board  { background: #8493A6; }
  .cal-chip.other  { background: #C3CBD6; }
  .cal-chip::after { content: ''; position: absolute; inset: -6px -4px; }
}


/* ---------- PHONE SPACING: tighter gaps between elements ---------- */
@media (max-width: 700px) {
 
  /* side margins */
  .wrap { padding: 0 20px; }
  .practice-bar .wrap { padding: 14px 20px; gap: 8px 20px; }
 
  /* space above and below each section.
     (scroll-margin keeps a section's heading just below the sticky bars when you jump to it) */
  section { padding: 56px 0; }
  .subsection { padding: 48px 0; scroll-margin-top: 84px; }
 
  /* headings and the text under them */
  .eyebrow-label { margin-bottom: 10px; }
  .section-title { margin-bottom: 16px; }
 
  /* gaps between groups of cards, lists and grids */
  .mission-grid { gap: 32px; margin-top: 28px; }
  .info-cards, .involved-grid, .pricing-grid { gap: 14px; margin-top: 28px; }
  .cal-list, .snswim-strip { margin-top: 28px; }
  .people-grid { gap: 8px; margin-top: 24px; }
  .donation-tiers { gap: 10px; margin-top: 18px; }
  .org-list { gap: 12px; margin-top: 18px; }
  .org-item { padding-bottom: 14px; }
  .org-group-label { margin: 24px 0 4px; }
  .history-body { margin-top: 20px; }
  .history-body p { margin-bottom: 14px; }
  .history-body .byline { margin-bottom: 22px; }
  .gallery-dots { margin-top: 10px; }
 
  /* padding inside cards, rows and forms */
  .info-card, .price-card { padding: 20px 18px; }
  .involved-card { padding: 22px 18px; }
  .form-card { padding: 22px 18px; }
  .person-card { padding: 12px 14px; column-gap: 14px; }
  .cal-row { padding: 14px 16px; gap: 14px; }
  .info-card h3, .involved-card h3 { margin-bottom: 8px; }
  .involved-card p { margin-bottom: 12px; }
 
  /* buttons and button rows */
  .cta-row { gap: 10px; margin-top: 20px; }
  .hero-ctas { margin-top: 24px; }
 
  /* footer */
  footer { padding: 44px 0 24px; }
  .footer-grid { gap: 28px; }
  .footer-grid h4 { margin-bottom: 10px; }
  .footer-grid li { margin-bottom: 6px; }
  .footer-bottom { margin-top: 36px; }
 
  /* large gaps written directly in the pages' HTML (these need !important to be overridden) */
  [style*="margin-top:56px"] { margin-top: 32px !important; }
  [style*="margin-top:44px"] { margin-top: 28px !important; }
  [style*="margin-top:38px"] { margin-top: 26px !important; }
  [style*="margin-top:36px"] { margin-top: 24px !important; }
  [style*="margin-top:32px"] { margin-top: 22px !important; }
  [style*="margin-top:20px"] { margin-top: 16px !important; }
  [style*="padding-bottom:56px"] { padding-bottom: 44px !important; }
  [style*="padding-top:56px"] { padding-top: 32px !important; }
}

/* the second button in the tinted subscribe box was the same color as the box: make it white with an outline */
.subscribe-box .btn-quiet { background: #fff; border-color: #BCC8DA; }
.subscribe-box .btn-quiet:hover { background: var(--mist); border-color: var(--navy); }

/* ---------- CALENDAR ACCESSIBILITY ---------- */
:root {
  --pat-practice: #0033A1;
  --pat-snswim: repeating-linear-gradient(135deg, #B45309 0, #B45309 3px, #FDBA74 3px, #FDBA74 6px);
  --pat-social: radial-gradient(circle at 3px 3px, #fff 1px, transparent 1.5px) 0 0 / 6px 6px, #0F766E;
  --pat-board: repeating-linear-gradient(0deg, #5B6B80 0, #5B6B80 3px, #D5DCE6 3px, #D5DCE6 5px);
  --pat-other: #fff;
}
 
/* the key */
.legend .sw { width: 20px; height: 12px; flex: none; box-sizing: border-box; border: 1.5px solid #5B6B80; border-radius: 3px; display: inline-block; }
.legend .sw.practice { background: var(--pat-practice); border-color: #0033A1; }
.legend .sw.snswim   { background: var(--pat-snswim);   border-color: #B45309; }
.legend .sw.social   { background: var(--pat-social);   border-color: #0F766E; }
.legend .sw.board    { background: var(--pat-board);    border-color: #5B6B80; }
.legend .sw.other    { background: var(--pat-other);    border-color: #5B6B80; border-width: 2px; }
.legend .sw.today    { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; }
 
/* on a computer: a small pattern marker before each event's title, and text that is readable on its pale chip */
.cal-chip::before {
  content: ''; display: inline-block; width: 14px; height: 8px; margin-right: 6px; vertical-align: middle;
  box-sizing: border-box; border: 1.5px solid #5B6B80; border-radius: 2px; background: #fff;
}
.cal-chip.practice::before { background: var(--pat-practice); border-color: #0033A1; }
.cal-chip.snswim::before   { background: var(--pat-snswim);   border-color: #B45309; }
.cal-chip.social::before   { background: var(--pat-social);   border-color: #0F766E; }
.cal-chip.board::before    { background: var(--pat-board);    border-color: #5B6B80; }
.cal-chip.snswim, .event-modal-tag.snswim { color: #8A4500; }
.cal-chip.social, .event-modal-tag.social { background: #E3F4F2; color: #0B5F59; }
 
/* "today" is a navy ring around the date, no longer an orange fill: it passes contrast and it can't be mistaken for an event type */
.cal-cell.today .num { background: #fff; color: var(--navy); font-weight: 700; box-shadow: inset 0 0 0 2px var(--navy); }
 
/* text that was too faint */
.cal-grid .dow { color: #4F5F73; }
.cal-cell.other-month, .cal-cell.other-month .num { color: #627186; }
.cal-cell.other-month .num { font-weight: 400; }
 
@media (max-width: 700px) {
  /* on a phone each event is a bar: same patterns, a dark edge, and the title for screen readers */
  .cal-chip { height: 12px; box-sizing: border-box; border: 1.5px solid #5B6B80; border-radius: 3px; background: #fff; }
  .cal-chip::before { display: none; }
  .cal-chip.practice { background: var(--pat-practice); border-color: #0033A1; }
  .cal-chip.snswim   { background: var(--pat-snswim);   border-color: #B45309; }
  .cal-chip.social   { background: var(--pat-social);   border-color: #0F766E; }
  .cal-chip.board    { background: var(--pat-board);    border-color: #5B6B80; }
  .cal-chip.other    { background: var(--pat-other);    border-color: #5B6B80; border-width: 2px; }
}

/* ---------- CALENDAR: equal columns, long titles wrap ---------- */
@media (min-width: 701px) {
  /* every day column gets exactly the same width, however long an event title is */
  .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
 
  /* event titles wrap onto a second line instead of stretching their column */
  .cal-chip { display: flex; align-items: flex-start; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .cal-chip::before { flex: none; margin-top: 3px; }
}
 
/* narrow screens (small tablets): slightly tighter, so a word like PRACTICE still fits on one line */
@media (min-width: 701px) and (max-width: 900px) {
  .cal-cell { padding: 6px; }
  .cal-chip { padding: 3px 4px; font-size: 0.66rem; }
  .cal-chip::before { width: 10px; margin: 3px 4px 0 0; }
}