/* ───────────────────────────────────────────────────────────────────────
   Parent Group Activities — design system
   Aligned to CLAUDE.md §5 (kickoff brief, 2026-05-27). Nunito-only,
   spec-exact palette + full spacing/radius/shadow scales. Legacy
   --indigo / --coral / --r-sm aliases retained for back-compat.
   ─────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  /* ── Brand (spec §5) ────────────────────────────────────────── */
  --brand-blue:          #1E7FD6;
  --brand-blue-deep:     #1B4DA6;
  --brand-cyan:          #29B6E0;
  --brand-orange:        #F58220;
  --brand-orange-soft:   #FFB066;
  --brand-green:         #2BA84A;
  --brand-green-soft:    #7CCB8F;

  /* ── Interaction ────────────────────────────────────────────── */
  --indigo-cta:          #5B53E8;   /* primary CTA */
  --indigo-soft:         #EEF0FF;

  /* ── Semantic ───────────────────────────────────────────────── */
  --success:             #16A34A;
  --warn:                #F59E0B;
  --danger:              #DC2626;

  /* ── Surfaces & text ────────────────────────────────────────── */
  --bg:                  #F4F6FB;
  --bg-soft:             #F9FAFC;
  --surface:             #FFFFFF;
  --ink:                 #111827;
  --ink-2:               #1F2937;
  --muted:               #6B7280;
  --line:                #E5E7EB;
  --line-soft:           #EEF1F6;

  /* ── Spacing scale (spec §5) ───────────────────────────────── */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-xxl: 48px;
  --space-xxxl: 64px;

  /* ── Radius scale (spec §5) ────────────────────────────────── */
  --radius-xs:    6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  /* ── Shadow scale (spec §5) ────────────────────────────────── */
  --shadow-card:     0 1px 3px rgba(17,24,39,0.06);
  --shadow-elevated: 0 6px 16px rgba(17,24,39,0.08);
  --shadow-cta:      0 8px 20px rgba(27,77,166,0.18);

  /* ── Font ──────────────────────────────────────────────────── */
  --font-display: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ── Legacy aliases (kept so older pages keep rendering) ──── */
  --brand-primary:       var(--brand-blue);
  --brand-primary-dark:  var(--brand-blue-deep);
  --brand-primary-light: var(--indigo-soft);
  --brand-accent:        var(--brand-green);
  --brand-accent-dark:   var(--success);
  --brand-accent-light:  #DCF7E3;
  --brand-cta:           var(--indigo-cta);
  --brand-cta-dark:      #4940D0;
  --indigo:              var(--brand-blue);
  --indigo-light:        var(--indigo-soft);
  --indigo-dark:         var(--brand-blue-deep);
  --coral:               var(--brand-green);
  --coral-light:         #DCF7E3;
  --green:               var(--success);
  --green-light:         #D1FAE5;
  --yellow:              var(--warn);
  --yellow-light:        #FEF3C7;
  --red:                 var(--danger);
  --border:              var(--line);
  --r-sm:  var(--radius-sm);
  --r-md:  var(--radius-md);
  --r-lg:  var(--radius-lg);
  --shadow:    var(--shadow-card);
  --shadow-lg: var(--shadow-elevated);

  /* discover category colors (kept for parity with category badges) */
  --cat-sports:      var(--success);
  --cat-arts:        #A855F7;
  --cat-music:       var(--brand-orange);
  --cat-swimming:    var(--brand-cyan);
  --cat-outdoor:     var(--brand-green);
  --cat-educational: var(--brand-blue-deep);
  --cat-other:       var(--muted);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); }
img { max-width: 100%; }

/* ── Typography scale ────────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.25; font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
.hero { font-size: 42px; font-weight: 900; line-height: 1.1; letter-spacing: -.5px; }
.label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.wrap { max-width: 720px; margin: 0 auto; padding: 22px 16px 96px; }
.page-title { margin-bottom: 4px; }
.page-sub { color: var(--muted); margin-bottom: 20px; font-size: 13.5px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 18px 0; border: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; }

/* ── Header / nav ────────────────────────────────────────────────────── */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 6px;
  padding: 11px 16px; flex-wrap: wrap;
}
.brand {
  font-weight: 900; font-size: 16px; text-decoration: none;
  color: var(--indigo); margin-right: auto;
}
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none;
  color: var(--muted); font-size: 13px; font-weight: 700;
}
.nav-links a:hover { background: var(--bg); }
.nav-links a.active { background: var(--indigo-light); color: var(--indigo-dark); }
.nav-signout {
  background: none; border: 1px solid var(--border); cursor: pointer;
  padding: 6px 10px; border-radius: var(--r-sm); color: var(--muted);
  font-size: 13px; font-weight: 700; font-family: inherit;
}
.nav-signout:hover { background: var(--bg); }

/* avatar dropdown — holds Sign Out, away from the main nav links */
.nav-avatar-wrap { position: relative; cursor: pointer; display: flex; align-items: center; }
.nav-avatar-menu {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  min-width: 168px; z-index: 200; overflow: hidden;
}
.nav-avatar-menu.open { display: block; }
.nav-avatar-menu a, .nav-avatar-menu button {
  display: block; width: 100%; padding: 11px 16px; text-align: left;
  border: none; background: none; font: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav-avatar-menu a:hover, .nav-avatar-menu button:hover { background: var(--bg); }
.nav-avatar-menu button { color: var(--red); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow);
}
a.card { text-decoration: none; color: inherit; display: block; transition: box-shadow .15s, transform .15s; }
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.card-tint  { background: var(--indigo-light); border-color: transparent; }
.card-warm  { background: var(--coral-light); border-color: transparent; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-size: 14px;
  font-weight: 800; font-family: inherit; cursor: pointer;
  text-decoration: none; transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-coral   { background: var(--coral);  border-color: var(--coral);  color: #fff; }
.btn-going   { background: var(--green);  border-color: var(--green);  color: #fff; }
.btn-maybe   { background: var(--yellow); border-color: var(--yellow); color: #fff; }
.btn-ghost   { background: var(--surface); border-color: var(--indigo); color: var(--indigo); }
.btn-block   { width: 100%; }
.btn-sm      { padding: 7px 12px; font-size: 13px; }
/* danger = red text link, no fill (per style guide) */
.btn-danger {
  background: none; border: none; color: var(--red);
  text-decoration: underline; padding: 6px 4px;
}
.btn-danger:hover { filter: none; opacity: .8; }

/* ── Forms ───────────────────────────────────────────────────────────── */
label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
input, textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: var(--r-sm); font: inherit; font-size: 14px;
  background: var(--surface); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #9ca3af; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
textarea { resize: vertical; min-height: 84px; }
.field + .field { margin-top: 14px; }

/* ── Badges & pills ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; line-height: 1.5;
  background: #f1f1f3; color: var(--muted);
}
.badge-indigo { background: var(--indigo-light); color: var(--indigo-dark); }
.badge-green  { background: var(--green-light);  color: #166c4a; }
.badge-yellow, .badge-amber { background: var(--yellow-light); color: #92700a; }
.badge-coral  { background: var(--coral-light); color: #b45309; }
.badge-outline-indigo {
  background: transparent; border: 1px solid var(--indigo); color: var(--indigo);
}
.badge-outline-coral {
  background: transparent; border: 1px solid var(--coral); color: var(--coral);
}

/* ── Avatars ─────────────────────────────────────────────────────────── */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; background: var(--indigo-light); color: var(--indigo-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; overflow: hidden;
}
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-lg { width: 84px; height: 84px; font-size: 30px; font-weight: 900; }

/* ── Grid ────────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }

/* ── RSVP buttons ────────────────────────────────────────────────────── */
.rsvp-group { display: flex; gap: 8px; }
.rsvp-group .btn { flex: 1; }
.rsvp-yes.on   { background: var(--green);  border-color: var(--green);  color: #fff; }
.rsvp-maybe.on { background: var(--yellow); border-color: var(--yellow); color: #fff; }
.rsvp-no.on    { background: var(--ink);    border-color: var(--ink);    color: #fff; }

/* ── Poll bars ───────────────────────────────────────────────────────── */
.poll-option {
  position: relative; border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 13px; margin-top: 8px; cursor: pointer; overflow: hidden;
  background: var(--surface);
}
.poll-option:hover { border-color: var(--indigo); }
.poll-option.voted { border-color: var(--indigo); }
.poll-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--indigo-light); z-index: 0; transition: width .35s;
}
.poll-label { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }

/* ── Activity score ──────────────────────────────────────────────────── */
.score-row { display: flex; align-items: center; gap: 16px; }
.score-num { font-size: 46px; font-weight: 900; color: var(--indigo); line-height: 1; }
.score-body { flex: 1; }
.score-track {
  height: 12px; background: var(--indigo-light); border-radius: 999px;
  overflow: hidden; margin: 8px 0 4px;
}
.score-fill { height: 100%; background: var(--indigo); border-radius: 999px; transition: width .4s; }

/* achievement badges */
.achievements { display: flex; flex-wrap: wrap; gap: 8px; }
.achievement {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--coral-light); color: #b45309;
}
.achievement.locked { background: #f1f1f3; color: #b3b3b3; }

/* ── My RSVPs / list rows ────────────────────────────────────────────── */
.list-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 2px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit;
}
.list-row:last-child { border-bottom: 0; }

/* ── Discover category dot ───────────────────────────────────────────── */
.cat-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-pill {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 800;
  cursor: pointer; font-family: inherit;
}
.filter-pill.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ── Login (Warm Welcome) ────────────────────────────────────────────── */
.login-bg {
  min-height: 100%;
  background: linear-gradient(135deg, var(--indigo-light), var(--coral-light));
  display: flex; align-items: center; justify-content: center; padding: 24px 16px;
}
.login-card {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 32px 26px; max-width: 420px; width: 100%;
}
.member-strip { display: flex; justify-content: center; margin-bottom: 18px; }
.member-strip .avatar { margin-left: -10px; border: 3px solid var(--surface); }
.member-strip .avatar:first-child { margin-left: 0; }

/* 16px inputs stop iOS Safari zooming in on focus; taller controls give a
   comfortable 44px+ tap target on phones. */
.login-card input { font-size: 16px; padding: 13px; }
.login-card .btn  { padding: 14px 16px; font-size: 15px; }

/* Admin sign-in — a quiet fallback tucked below the magic-link form. */
.admin-area { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 14px; }
.admin-area summary {
  list-style: none; cursor: pointer; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 6px; border-radius: var(--r-sm);
}
.admin-area summary::-webkit-details-marker { display: none; }
.admin-area summary:hover { color: var(--indigo); }
.admin-area[open] summary { color: var(--indigo); margin-bottom: 2px; }

/* ── Rating scale (Activity Review) ──────────────────────────────────── */
.rating-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.rating-btn {
  width: 40px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-weight: 800; font-size: 15px; cursor: pointer;
  font-family: inherit; color: var(--ink);
}
.rating-btn.sel-low  { background: var(--coral);  border-color: var(--coral);  color: #fff; }
.rating-btn.sel-mid  { background: var(--yellow); border-color: var(--yellow); color: #fff; }
.rating-btn.sel-high { background: var(--green);  border-color: var(--green);  color: #fff; }
.tag-chip {
  display: inline-block; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--ink);
}
.tag-chip.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ── Stat tiles ──────────────────────────────────────────────────────── */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 12px; }
.stat-tile { background: var(--indigo-light); border-radius: var(--r-md); padding: 14px; }
.stat-tile .stat-v { font-size: 26px; font-weight: 900; color: var(--indigo); line-height: 1.1; }

/* ── Toast ───────────────────────────────────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200;
  max-width: 90vw;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--red); }

/* ── Misc ────────────────────────────────────────────────────────────── */
.empty {
  text-align: center; color: var(--muted); padding: 40px 20px;
  border: 1px dashed var(--border); border-radius: var(--r-lg); background: var(--surface);
}
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* FullCalendar tweaks */
.fc { font-size: 13px; }
.fc .fc-button-primary { background: var(--indigo); border-color: var(--indigo); font-weight: 700; }
.fc .fc-button-primary:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); }
.fc .fc-button-primary:disabled { background: var(--muted); border-color: var(--muted); }
.fc .fc-toolbar-title { font-size: 17px; font-weight: 800; }
.fc-event { cursor: pointer; border: none; font-weight: 700; }
.fc-daygrid-event { padding: 1px 4px; }

/* ───────────────────────────────────────────────────────────────────────
   Brand header + login experience (added 2026-05-22)
   ─────────────────────────────────────────────────────────────────────── */
.brand-screen {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 20px 32px;
  background: linear-gradient(180deg, #f0f7ff 0%, #fafafa 60%);
}
.brand-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 14px;
  opacity: 0;
  animation: brand-pop 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 80ms forwards;
}
.brand-mark {
  width: 72px; height: 72px;
  filter: drop-shadow(0 6px 16px rgba(30, 91, 184, 0.18));
  transform-origin: center;
  animation: brand-wobble 6s ease-in-out 900ms infinite;
}
.brand-wordmark {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.05; letter-spacing: -0.01em;
}
.brand-wordmark .word-primary {
  color: var(--brand-primary); font-weight: 700; font-size: 26px;
  opacity: 0; transform: translateY(8px);
  animation: brand-rise 520ms ease-out 420ms forwards;
}
.brand-wordmark .word-accent {
  color: var(--brand-accent); font-weight: 700; font-size: 26px;
  text-transform: uppercase; letter-spacing: 0.04em;
  opacity: 0; transform: translateY(8px);
  animation: brand-rise 520ms ease-out 560ms forwards;
}
.brand-tagline {
  text-align: center; color: var(--muted);
  font-size: 15px; line-height: 1.5; max-width: 380px;
  margin: 4px 0 28px;
  opacity: 0; transform: translateY(6px);
  animation: brand-rise 520ms ease-out 780ms forwards;
}
.sign-in-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px -20px rgba(30, 91, 184, 0.18),
              0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 28px 24px 24px;
  opacity: 0; transform: translateY(18px);
  animation: brand-rise 640ms cubic-bezier(0.22, 1, 0.36, 1) 980ms forwards;
}
.sign-in-card h1 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  margin: 0 0 18px; color: var(--ink);
}
.sign-in-card .field-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--ink); margin-bottom: 6px;
}
.sign-in-card input[type="email"],
.sign-in-card input[type="password"] {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: #f8fafc; font-size: 15px; font-family: inherit;
  margin-bottom: 16px; transition: border-color .15s, background .15s;
}
.sign-in-card input:focus {
  outline: none; border-color: var(--brand-cta);
  background: #fff; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.sign-in-card .btn-cta {
  width: 100%; padding: 13px 20px;
  background: var(--brand-cta); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border: none; border-radius: var(--r-md); cursor: pointer;
  transition: background .15s, transform .1s;
}
.sign-in-card .btn-cta:hover { background: var(--brand-cta-dark); }
.sign-in-card .btn-cta:active { transform: translateY(1px); }
.sign-in-card .btn-cta:disabled { opacity: .6; cursor: not-allowed; }
.sign-in-card .btn-secondary {
  width: 100%; padding: 13px 20px;
  background: #f1f5f9; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border: none; border-radius: var(--r-md); cursor: pointer;
  transition: background .15s;
}
.sign-in-card .btn-secondary:hover { background: #e2e8f0; }
.divider-or {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-subtle, #a8a29e); text-transform: uppercase;
}
.divider-or::before, .divider-or::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.status-msg {
  margin-top: 14px; padding: 12px 14px;
  background: var(--brand-primary-light); color: var(--brand-primary-dark);
  border-radius: var(--r-md); font-size: 14px; text-align: center;
}
.status-msg.error {
  background: #fef2f2; color: var(--red);
}
.status-msg.success {
  background: var(--brand-accent-light); color: var(--brand-accent-dark);
}
.members-note {
  text-align: center; color: var(--muted);
  font-size: 12.5px; margin-top: 20px;
}

@keyframes brand-pop {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes brand-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes brand-wobble {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-2deg); }
  75%      { transform: rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-header, .brand-mark, .brand-wordmark .word-primary,
  .brand-wordmark .word-accent, .brand-tagline, .sign-in-card {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

@media (max-width: 480px) {
  .brand-mark { width: 60px; height: 60px; }
  .brand-wordmark .word-primary,
  .brand-wordmark .word-accent { font-size: 22px; }
  .brand-tagline { font-size: 14px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SEASONAL THEMES
   Set automatically by /js/season-theme.js based on current month.
   Summer = baseline brand (no overrides needed).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 🌸 Spring (March – May) ─────────────────────────────────────────────── */
[data-season="spring"] {
  --indigo-cta:        #22A06B;   /* sage green — fresh growth */
  --indigo-soft:       #E8FDF0;
  --brand-blue:        #1A9E68;
  --brand-blue-deep:   #127A4F;
  --brand-cyan:        #34D399;
  --brand-orange:      #F9A8D4;   /* blossom pink as the warm accent */
  --brand-orange-soft: #FDF2F8;
  --bg:                #F0FDF7;
  --bg-soft:           #F6FEFB;
}

/* ── ☀️  Summer (June – August) — current brand, no overrides needed ──────── */
[data-season="summer"] { }

/* ── 🍂 Fall (September – November) ─────────────────────────────────────── */
[data-season="fall"] {
  --indigo-cta:        #C2690C;   /* amber oak */
  --indigo-soft:       #FFF4E6;
  --brand-blue:        #B45309;
  --brand-blue-deep:   #92400E;
  --brand-cyan:        #F59E0B;
  --brand-orange:      #DC2626;   /* harvest red */
  --brand-orange-soft: #FEF2F2;
  --bg:                #FFFBF5;
  --bg-soft:           #FFF7EE;
}

/* ── ❄️  Winter (December – February) ───────────────────────────────────── */
[data-season="winter"] {
  --indigo-cta:        #2B59D8;   /* midnight blue */
  --indigo-soft:       #EEF2FF;
  --brand-blue:        #1D4ED8;
  --brand-blue-deep:   #1E3A8A;
  --brand-cyan:        #60A5FA;
  --brand-orange:      #7C3AED;   /* plum-berry */
  --brand-orange-soft: #F5F3FF;
  --bg:                #F2F6FE;
  --bg-soft:           #F8FAFF;
}

/* Subtle seasonal nav accent stripe ---------------------------------------- */
[data-season="spring"] nav  { border-bottom-color: #22A06B22; }
[data-season="fall"]   nav  { border-bottom-color: #C2690C22; }
[data-season="winter"] nav  { border-bottom-color: #2B59D822; }

/* ── Season picker (nav bar) ──────────────────────────────────────────────── */
.season-picker { position: relative; }

.season-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--indigo-soft); color: var(--indigo-cta);
  border: 1px solid color-mix(in srgb, var(--indigo-cta) 25%, transparent);
  border-radius: 999px; padding: 5px 12px;
  font-size: 13px; font-weight: 800; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.season-btn:hover { filter: brightness(0.94); }

.season-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 100;
  min-width: 140px;
}
.season-menu.open { display: block; }

.season-menu button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; border-radius: 8px;
  padding: 9px 12px; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer; color: var(--ink);
  transition: background 0.12s;
}
.season-menu button:hover { background: var(--bg); }
.season-menu button.active {
  background: var(--indigo-soft); color: var(--indigo-cta);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EVENT LOCATION — media block, access chips, nav buttons, bring checklist
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 16:9 media slot ───────────────────────────────────────────────────── */
.media-block { margin: 14px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }

.media-slot { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }

.media-photo { position: absolute; inset: 0; transition: opacity .35s ease; }
.media-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.media-map { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.media-map-active { opacity: 1 !important; pointer-events: auto; }

.media-toggle-btn {
  position: absolute; bottom: 10px; right: 10px; z-index: 10;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; backdrop-filter: blur(4px); font-family: inherit;
  transition: background .15s;
}
.media-toggle-btn:hover { background: rgba(0,0,0,.8); }
.media-toggle-photo { right: auto; left: 10px; }

.map-loading {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 13px;
  background: var(--indigo-cta); opacity: .85;
}

/* ── Access notes chips ────────────────────────────────────────────────── */
.access-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--indigo-soft) 60%, white);
}
.access-chip {
  background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--ink); border-radius: 8px;
  padding: 5px 10px; font-size: 12px; font-weight: 600;
}

/* ── Navigation buttons ────────────────────────────────────────────────── */
.nav-row { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.nav-btn {
  flex: 1; padding: 10px; border-radius: 10px;
  font-size: 13px; font-weight: 700; text-align: center;
  text-decoration: none; display: flex; align-items: center;
  justify-content: center; gap: 5px; transition: opacity .15s;
}
.nav-btn:active { opacity: .75; }
.nav-btn-primary  { background: #4285F4; color: #fff; }
.nav-btn-secondary { background: var(--ink); color: #fff; }

/* ── What to bring checklist ───────────────────────────────────────────── */
.bring-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
  cursor: pointer; user-select: none; position: relative;
  transition: opacity .2s;
}
.bring-item:last-child { border-bottom: none; }
.bring-item:active { opacity: .7; }

.bring-checkbox {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid var(--line); display: flex; align-items: center;
  justify-content: center; transition: background .2s, border-color .2s;
}
.bring-item.bring-checked .bring-checkbox { background: var(--indigo-cta); border-color: var(--indigo-cta); }
.bring-checkbox svg { opacity: 0; transform: scale(0); transition: all .2s cubic-bezier(.34,1.7,.46,1); }
.bring-item.bring-checked .bring-checkbox svg { opacity: 1; transform: scale(1); }

.bring-label { font-size: 14px; flex: 1; position: relative; transition: color .25s; }
.bring-label::after {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 0; height: 1.5px; background: var(--muted); border-radius: 2px;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.bring-item.bring-checked .bring-label { color: var(--muted); }
.bring-item.bring-checked .bring-label::after { width: 100%; }

.bring-emoji { font-size: 16px; opacity: 0; position: absolute; right: 0; pointer-events: none; }
@keyframes bring-emoji-fly {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  60%  { opacity: 1; transform: translateY(-18px) scale(1.3); }
  100% { opacity: 0; transform: translateY(-28px) scale(.8); }
}
.bring-emoji.bring-emoji-pop { animation: bring-emoji-fly .65s ease forwards; }

@keyframes bring-bounce {
  0% { transform: scale(.85); } 55% { transform: scale(1.2); } 100% { transform: scale(1); }
}
.bring-item.bring-bounce .bring-checkbox { animation: bring-bounce .3s ease; }

.bring-alldone {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 10px; padding: 12px; text-align: center;
  font-size: 14px; font-weight: 700; color: #065f46;
  margin-top: 6px; animation: bring-bounce .4s ease;
}

/* ── Gear / Settings dropdown (replaces season pill + admin nav link) ──────── */
.gear-wrap { position: relative; }

.gear-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo-soft); color: var(--indigo-cta);
  border: 1px solid color-mix(in srgb, var(--indigo-cta) 20%, transparent);
  cursor: pointer; transition: background 0.18s, transform 0.18s;
  flex-shrink: 0;
}
.gear-btn:hover { background: color-mix(in srgb, var(--indigo-cta) 18%, white); transform: rotate(30deg); }

.gear-menu {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; min-width: 170px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12); z-index: 200;
}
.gear-menu.open { display: block; }

.gear-section-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 10px 6px;
}
.gear-item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; border-radius: 8px;
  padding: 8px 10px; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer; color: var(--ink);
  text-decoration: none; transition: background 0.12s;
}
.gear-item:hover { background: var(--bg); }
.gear-item.active { background: var(--indigo-soft); color: var(--indigo-cta); }

.gear-divider { height: 1px; background: var(--line); margin: 6px 0; }

/* ── Family face strip (directory cards) ──────────────────────────────────── */
.face-strip {
  display: flex;
  align-items: center;
  justify-content: center;
}
.face-item {
  border: 2.5px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
  flex-shrink: 0;
}
.face-item + .face-item { margin-left: -10px; }

/* Sizes used in the strip */
.avatar-md  { width: 52px; height: 52px; border-radius: 50%; font-size: 18px; }
.avatar-sm  { width: 36px; height: 36px; border-radius: 50%; font-size: 13px; }

/* ── Gear menu: Theme submenu + current-season label ──────────────────────── */
.gear-item-toggle {
  display: flex; align-items: center; gap: 8px;
}
.gear-current {
  margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted);
}
.gear-caret { font-size: 10px; color: var(--muted); transition: transform .15s; }

.gear-submenu {
  display: none;
  padding: 2px 0 4px 8px;
  margin: 2px 0 2px 6px;
  border-left: 2px solid var(--line);
}
.gear-submenu.open { display: block; }
.gear-sub { font-size: 12.5px; padding: 7px 10px; }

.gear-item-admin { color: var(--indigo-cta); font-weight: 800; }
