 :root {
      --bg: #020617;
      --bg-alt: #0b1120;
      --accent: #38bdf8;
      --accent-soft: #e0f2fe;
      --danger-soft: #fee2e2;
      --text-main: #e5e7eb;
      --text-muted: #9ca3af;
      --card-bg: #020617;
      --border-subtle: #1f2937;
    }
    * {
      box-sizing: border-box;
    }
    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
      color: var(--text-main);
      background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
    }
    a {
      color: var(--accent-soft);
    }
    header {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(12px);
      background: rgba(2, 6, 23, 0.92);
      border-bottom: 1px solid var(--border-subtle);
    }
    .shell {
      max-width: 1080px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }
    .nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.85rem 0;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 0.55rem;
    }
    .brand-mark {
      width: 32px;
      height: 32px;
      border-radius: 999px;
      border: 2px solid var(--accent);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.8rem;
      color: var(--accent);
    }
    .brand-text {
      display: flex;
      flex-direction: column;
    }
    .brand-name {
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
    .brand-tagline {
      font-size: 0.75rem;
      color: var(--text-muted);
    }
  
/* Navigation links */
nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.2rem;
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--accent);
}

/* Highlight the active page */
nav a.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
}



    main {
      padding: 2.5rem 0 3.5rem;
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
      gap: 2.5rem;
      align-items: center;
      margin-bottom: 3rem;
    }
    @media (max-width: 860px) {
      .hero {
        grid-template-columns: 1fr;
      }
    }
    .hero-kicker {
      text-transform: uppercase;
      letter-spacing: 0.16em;
      font-size: 0.75rem;
      color: var(--accent-soft);
      margin-bottom: 0.75rem;
    }
    .hero h1 {
      font-size: clamp(2.1rem, 3vw + 1.2rem, 2.7rem);
      line-height: 1.1;
      margin: 0 0 1rem;
    }
    .hero h1 span {
      color: var(--accent);
    }
    .hero p {
      margin: 0 0 1.2rem;
      color: var(--text-muted);
      max-width: 32rem;
      font-size: 0.98rem;
    }
    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.4rem;
    }
    .badge {
      border-radius: 999px;
      border: 1px solid var(--border-subtle);
      padding: 0.3rem 0.75rem;
      font-size: 0.75rem;
      color: var(--text-muted);
      background: rgba(15, 23, 42, 0.9);
    }
    .cta-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.85rem;
      margin-bottom: 0.4rem;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.75rem 1.6rem;
      border-radius: 999px;
      border: 1px solid transparent;
      cursor: pointer;
      font-weight: 600;
      text-decoration: none;
      font-size: 0.9rem;
      white-space: nowrap;
    }
    .btn-primary {
      background: var(--accent);
      color: #0f172a;
    }
    .btn-outline {
      border-color: var(--accent-soft);
      color: var(--accent-soft);
      background: transparent;
    }
    .cta-note {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .hero-card {
      border-radius: 1.25rem;
      border: 1px solid var(--border-subtle);
      background: linear-gradient(145deg, #020617, #0b1120);
      padding: 1.5rem 1.4rem;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
      font-size: 0.85rem;
    }
    .hero-card h2 {
      font-size: 0.95rem;
      margin: 0 0 0.75rem;
      color: var(--accent-soft);
    }
    .hero-card p {
      color: var(--text-muted);
      margin: 0 0 0.9rem;
    }
    .hero-metrics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.8rem;
    }
    .metric {
      border-radius: 0.85rem;
      border: 1px solid var(--border-subtle);
      padding: 0.65rem 0.7rem;
      background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.03), rgba(15, 23, 42, 0.98));
    }
    .metric-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 0.1rem;
    }
    .metric-value {
      font-size: 0.9rem;
      font-weight: 600;
    }

    section {
      margin-bottom: 3.1rem;
    }
    section h2 {
      font-size: 1.4rem;
      margin-bottom: 0.4rem;
    }
    section p.lead {
      color: var(--text-muted);
      font-size: 0.92rem;
      max-width: 40rem;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.4rem;
      margin-top: 1.3rem;
    }
    @media (max-width: 900px) {
      .grid-3 {
        grid-template-columns: 1fr;
      }
    }
    .card {
      border-radius: 1rem;
      border: 1px solid var(--border-subtle);
      background: rgba(15, 23, 42, 0.98);
      padding: 1.1rem 1rem;
      font-size: 0.88rem;
    }
    .card h3 {
      font-size: 1rem;
      margin: 0 0 0.35rem;
    }
    .card p {
      margin: 0;
      color: var(--text-muted);
    }
    .pill {
      display: inline-block;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--accent-soft);
      margin-bottom: 0.5rem;
    }
    ul.tight {
      list-style: disc;
      padding-left: 1.2rem;
      margin: 0.5rem 0 0;
    }
    ul.tight li {
      margin-bottom: 0.25rem;
      font-size: 0.86rem;
      color: var(--text-muted);
    }

    .two-col {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
      gap: 1.6rem;
      margin-top: 1.3rem;
    }
    @media (max-width: 860px) {
      .two-col {
        grid-template-columns: 1fr;
      }
    }

    .note-box {
      border-radius: 1rem;
      border: 1px dashed var(--accent-soft);
      padding: 1rem 1.1rem;
      background: rgba(15, 23, 42, 0.8);
      font-size: 0.85rem;
      color: var(--accent-soft);
    }

    .shop-placeholder {
      border-radius: 1rem;
      border: 1px solid var(--border-subtle);
      background: rgba(15, 23, 42, 0.95);
      padding: 1.1rem 1rem;
      font-size: 0.87rem;
    }
    .shop-placeholder strong {
      color: var(--accent-soft);
    }

    footer {
      border-top: 1px solid var(--border-subtle);
      padding: 1.6rem 0 1.8rem;
      background: var(--bg-alt);
      font-size: 0.78rem;
      color: var(--text-muted);
    }
    footer .footer-inner {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
    }
    footer a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.78rem;
    }
    footer a:hover {
      color: var(--accent);
    }
/* ------------------------------------------ */
/* MOBILE NAV + HEADER SPACING IMPROVEMENTS   */
/* ------------------------------------------ */
@media (max-width: 600px) {
  nav a {
    margin-left: 0.6rem;
    font-size: 0.85rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  main {
    padding-top: 3.5rem;
  }
}

/* ------------------------------------------ */
/* SWIM LESSON DIRECTORY                      */
/* ------------------------------------------ */
.fs-dir-head { margin: 1.5rem 0 1rem 0; }
.fs-dir-title { font-size: 1.6rem; margin: 0; }
.fs-dir-sub { margin-top: 0.35rem; opacity: 0.85; }

.fs-controls { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin: 1rem 0; }
@media (min-width: 780px) { .fs-controls { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: center; } }

.fs-input, .fs-select { width: 100%; padding: 0.65rem 0.75rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.15); color: inherit; }
.fs-input:focus, .fs-select:focus { outline: 2px solid rgba(255,255,255,0.25); outline-offset: 2px; }

.fs-btn { padding: 0.65rem 0.85rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: inherit; cursor: pointer; }
.fs-btn:hover { background: rgba(255,255,255,0.10); }
.fs-btn:disabled { opacity: 0.5; cursor: default; }

.fs-summary { margin: 0.75rem 0; opacity: 0.9; }

.fs-results { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 780px) { .fs-results { grid-template-columns: 1fr 1fr; } }

.fs-card { padding: 1rem; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.12); }
.fs-card-title { font-size: 1.05rem; margin-bottom: 0.35rem; }
.fs-card-meta { opacity: 0.8; margin-bottom: 0.65rem; }
.fs-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.fs-tag { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); font-size: 0.85rem; }

.fs-empty { padding: 1rem; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.12); }

.fs-state-bar { margin: 1rem 0; }
.fs-state-bar-title { opacity: 0.85; margin-bottom: 0.5rem; }
.fs-state-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fs-chip { padding: 0.35rem 0.6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: inherit; cursor: pointer; }
.fs-chip:hover { background: rgba(255,255,255,0.10); }

.fs-pager { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0 2rem 0; }
@media (min-width: 780px) { .fs-pager { flex-direction: row; align-items: center; justify-content: space-between; } }
.fs-pager-controls { display: flex; gap: 0.6rem; }

.fs-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(0,0,0,0.55); z-index: 9999; }
.fs-modal.open { display: flex; }
.fs-modal-panel { width: 100%; max-width: 740px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); background: rgba(15,15,18,0.98); padding: 1rem; }
.fs-modal-top { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; margin-bottom: 0.75rem; }
.fs-modal-title { font-size: 1.2rem; }
.fs-modal-body { display: grid; gap: 0.65rem; }
.fs-row { display: grid; grid-template-columns: 120px 1fr; gap: 0.75rem; }
@media (max-width: 520px) { .fs-row { grid-template-columns: 1fr; } }
.fs-label { opacity: 0.75; }
.fs-value a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

