/* Wummble — "Bounce" (decided 2026-07-13, docs/decisions/2026-07-13-frontend-
   mvp-buildout.md item 7). Playful, big-kid safe. The rule that keeps it from
   tipping into preschool: shapes and color do the playing; type and
   information stay sturdy. Fonts self-hosted (SIL OFL): Baloo 2 headings,
   Nunito Sans body. */

@font-face {
  font-family: "Baloo 2"; font-weight: 700; font-style: normal;
  font-display: swap; src: url("/static/fonts/Baloo2-700.woff2") format("woff2");
}
@font-face {
  font-family: "Baloo 2"; font-weight: 800; font-style: normal;
  font-display: swap; src: url("/static/fonts/Baloo2-800.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans"; font-weight: 400; font-style: normal;
  font-display: swap; src: url("/static/fonts/NunitoSans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans"; font-weight: 700; font-style: normal;
  font-display: swap; src: url("/static/fonts/NunitoSans-700.woff2") format("woff2");
}

:root {
  --ink: #14343b;          /* deep water */
  --muted: #5f6d78;
  --teal: #0e7a6c;         /* sea teal */
  --teal-soft: #e0f1ec;
  --coral: #ff6b5d;        /* bounce coral — spent on one thing per screen */
  --coral-deep: #d94f42;
  --sun: #ffd166;
  --sun-ink: #6b4d00;
  --amber: #9a6700;        /* stale/caution only */
  --amber-soft: #fff3d1;
  --line: #e8e2d4;
  --bg: #fdfbf6;           /* warm white */
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Baloo 2", ui-rounded, system-ui, sans-serif;
  letter-spacing: -0.01em; }
h1 { font-size: 2rem; line-height: 1.15; margin: 0.8em 0 0.4em; font-weight: 800;
  text-wrap: balance; }
h2 { font-size: 1.35rem; font-weight: 700; }

/* header + wordmark: lowercase, with a coral ball caught mid-bounce */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { font-family: "Baloo 2", ui-rounded, system-ui, sans-serif; font-weight: 800;
  font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-ball { display: inline-block; width: 0.34em; height: 0.34em; border-radius: 50%;
  background: var(--coral); margin-left: 3px; transform: translateY(-0.85em); }
@media (prefers-reduced-motion: no-preference) {
  .logo:hover .logo-ball { animation: bounce 0.5s ease; }
  @keyframes bounce {
    0%, 100% { transform: translateY(-0.85em); }
    45%      { transform: translateY(0); }
  }
}
.site-header nav a { margin-left: 18px; font-weight: 700; }

/* scalloped wave divider (the shoreline) */
.wave { height: 10px;
  background: radial-gradient(circle at 6px -3px, transparent 7px, var(--teal-soft) 7.5px) 0 0 / 24px 10px; }

.hero { text-align: center; padding: 52px 0 22px; }
.hero h1 { font-size: 2.5rem; }
.hero p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }

.section-head { display: flex; align-items: baseline; gap: 10px; margin: 34px 0 4px; }
.section-head h2 { margin: 0; }
.section-head .dot { width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--coral); transform: translateY(-1px); }
.section-head .dot.dot-teal { background: var(--teal); }
.section-head .count { color: var(--muted); font-size: 0.9rem; }

.page-checked { color: var(--teal); font-weight: 700; font-size: 0.85rem;
  margin: -4px 0 10px; }
.page-checked::before { content: "✓ "; }
.lede { color: var(--muted); max-width: 640px; margin-top: 0; }
.crumbs { margin-top: 22px; font-size: 0.9rem; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.chip span { color: var(--muted); font-weight: 600; }
.chip:hover { border-color: var(--teal); text-decoration: none;
  transform: rotate(-1deg); }
.chip-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip-active span { color: #cdeae3; }
.chip-alt { color: var(--teal); }

/* toolbar: search + age filter */
.toolbar { display: flex; align-items: center; gap: 16px; margin: 18px 0 6px;
  flex-wrap: wrap; }
.search-box input { width: 250px; max-width: 68vw; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 1rem;
  font-family: inherit; background: #fff; }
.search-box input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.age-filter { display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; color: var(--muted); flex-wrap: wrap; }
.age-filter input { width: 74px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 1rem; font-family: inherit; background: #fff; }
.age-filter input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.filter-clear { border: none; background: var(--teal-soft); color: var(--teal);
  border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; }
.filter-count { font-weight: 700; color: var(--teal); font-size: 0.95rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px; margin: 16px 0 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; color: var(--ink); display: flex; flex-direction: column;
  box-shadow: 0 3px 0 var(--line); }
.card:hover { border-color: var(--teal); text-decoration: none;
  box-shadow: 0 5px 0 var(--teal-soft); transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) {
  .card, .chip { transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease; }
}
.card h3 { margin: 8px 0 2px; font-size: 1.08rem; line-height: 1.25; font-weight: 700; }
.card-provider { margin: 0 0 6px; color: var(--muted); font-size: 0.9rem;
  display: flex; align-items: center; }
.card-meta { margin: 0; font-size: 0.9rem; color: var(--ink); }
.card-meta span + span::before { content: " · "; color: var(--muted); }

.card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { border-radius: 999px; padding: 2px 10px; font-size: 0.76rem; font-weight: 700; }
.pill-cat { background: var(--teal-soft); color: var(--teal); }
.pill-fresh { background: var(--teal-soft); color: var(--teal); }
.pill-fresh::before { content: "✓ "; }
.pill-stale { background: var(--amber-soft); color: var(--amber);
  transform: rotate(-2deg); }

/* provider pebble: same org, same color, everywhere */
.pebble { display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; color: #fff;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.02em;
  margin-right: 7px; vertical-align: -4px; flex: none;
  font-family: "Nunito Sans", system-ui, sans-serif; }
.pebble-lg { width: 34px; height: 34px; font-size: 0.85rem; vertical-align: -6px;
  margin-right: 10px; }
img.pebble-img { border-radius: 5px; background: #fff; object-fit: contain;
  border: 1px solid var(--line); padding: 1px; }
.provider-list .pebble { vertical-align: -5px; }

.detail { background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 30px; margin: 18px 0 40px; box-shadow: 0 4px 0 var(--line); }
.detail h1 { margin-top: 10px; }
.detail-provider { color: var(--muted); margin-top: -6px; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 20px 0; }
.facts dt { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; }
.followup-note { background: var(--amber-soft); color: var(--amber);
  border-radius: 12px; padding: 12px 16px; font-size: 0.95rem; }
.cta { display: inline-block; background: var(--coral); color: #fff; font-weight: 800;
  border-radius: 999px; padding: 12px 22px; margin: 10px 0;
  box-shadow: 0 3px 0 var(--coral-deep); font-family: inherit; }
.cta:hover { text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--coral-deep); }
.detail-source { color: var(--muted); font-size: 0.88rem; }
.detail-blurb, .flyout-blurb { color: var(--ink); max-width: 62ch; }
.flyout-blurb { font-size: 0.92rem; color: var(--muted); }

.metro-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin: 18px auto; max-width: 520px; text-align: center;
  box-shadow: 0 3px 0 var(--line); }
.metro-tile h2 { margin: 0 0 4px; }
.metro-tile p { margin: 0; color: var(--muted); }
.see-all { text-align: center; margin: 4px 0 30px; }

.provider-list { list-style: none; padding: 0; max-width: 560px; }
.provider-list li { display: flex; justify-content: space-between; padding: 10px 4px;
  border-bottom: 1px solid var(--line); }
.provider-list span { color: var(--muted); font-size: 0.9rem; }

.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 30px;
  padding: 26px 0 40px; }
.footer-note { color: var(--muted); font-size: 0.85rem; max-width: 640px; }

.hidden { display: none !important; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .facts { grid-template-columns: 90px 1fr; }
  .site-header nav a { margin-left: 10px; }
}

/* format tag: second axis (Camp/Class/Event/Session/League/Program) */
.pill-format { background: var(--amber-soft); color: var(--sun-ink); }
.chip-sun { border-color: var(--sun); background: #fff8e4; }

/* flyout: details slide out instead of a full page swap */
.flyout-backdrop { position: fixed; inset: 0; background: rgba(20, 52, 59, 0.35);
  z-index: 40; }
.flyout { position: fixed; top: 0; right: 0; bottom: 0; width: 420px;
  max-width: 92vw; background: #fff; z-index: 41; padding: 22px 26px;
  overflow-y: auto; border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px rgba(20, 52, 59, 0.12); }
@media (prefers-reduced-motion: no-preference) {
  .flyout:not([hidden]) { animation: flyout-in 0.18s ease-out; }
  @keyframes flyout-in { from { transform: translateX(30px); opacity: 0; }
                         to { transform: none; opacity: 1; } }
}
.flyout-close { position: absolute; top: 12px; right: 14px; border: none;
  background: var(--teal-soft); color: var(--teal); width: 32px; height: 32px;
  border-radius: 50%; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.flyout-title { margin: 10px 0 4px; font-size: 1.3rem; }
.flyout-h3 { margin: 14px 0 4px; font-size: 1rem; }
.flyout-fullpage { margin-top: 14px; font-size: 0.9rem; }

.session-list { padding-left: 20px; margin: 6px 0; }
.session-list li { margin: 3px 0; }
.session-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0; margin: 8px 0 0; }
.session-chips li { background: var(--teal-soft); color: var(--teal);
  border-radius: 999px; padding: 3px 12px; font-size: 0.82rem; font-weight: 700; }

/* summer-camps hub */
.camp-provider { background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 22px; margin: 16px 0;
  box-shadow: 0 3px 0 var(--line); }
.camp-provider h2 { margin: 0 0 6px; }
.camp-row { border-top: 1px solid var(--line); padding: 12px 0 10px; }
.camp-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.camp-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.camp-title:hover { color: var(--teal); }
.camp-meta { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
