/* YMCA Sports — v1.0.0 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette taken from the association's own site, not invented:
     www.ymcatoledo.org loads headers.branded_1.css?scheme=blue_purple —
     #92278F purple (9 uses), #5C2E91 plum (its gradient partner), #00AEEF cyan (CTAs).
     The navy this replaced (#003DA5 / #002D72) appears nowhere on ymcatoledo.org.

     BRAND carries identity; ACTION carries "do something". Keeping those apart is
     what stops a button competing with the Y's own colour. */
  --brand:       #92278F;
  --brand-deep:  #5C2E91;
  --brand-tint:  #EFE7F3;
  --action:      #00AEEF;
  --action-dark: #0089BC;

  /* Semantic, and deliberately NOT the brand hues. */
  --green:      #1F7A46;
  --red:        #c62828;

  /* Neutrals biased toward the brand rather than pure grey, so they read as chosen. */
  --gray:       #5A4E66;
  --gray-light: #F1ECF5;
  --border:     #DCD3E4;
  --text:       #191320;
  --radius:     6px;
  --shadow:     0 1px 3px rgba(25,19,32,.12);
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       font-size: 15px; color: var(--text); background: #f9fafb; }

/* ── Navbar ── */
.navbar { background: var(--brand-deep); color: #fff; padding: .75rem 1.5rem;
          display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.navbar-brand { font-size: 1.1rem; font-weight: 700; color: #fff;
                text-decoration: none; letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 1rem; margin-left: auto; flex-wrap: wrap; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; }
.nav-links a:hover { color: #fff; }
.nav-user { color: rgba(255,255,255,.6); font-size: .85rem; }
.nav-toggle { display: none; background: none; border: none; color: #fff;
              font-size: 1.3rem; cursor: pointer; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
}

/* ── Layout ── */
.main-content { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem; }
.site-footer { text-align: center; padding: 1rem; color: var(--gray); font-size: .8rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ── Page header ── */
.page-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; flex: 1; }
.page-desc { color: var(--gray); margin-bottom: 1rem; font-size: .9rem; }
.header-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn { display: inline-block; padding: .45rem 1rem; border-radius: var(--radius);
       border: none; cursor: pointer; font-size: .9rem; font-weight: 500;
       text-decoration: none; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn-primary   { background: var(--action); color: #fff; }
.btn-secondary { background: #e5e7eb; color: var(--text); }
.btn-danger    { background: var(--red); color: #fff; }
.btn-sm        { padding: .3rem .7rem; font-size: .82rem; }
.btn-lg        { padding: .6rem 1.4rem; font-size: 1rem; }
.btn-google    { display: flex; align-items: center; gap: .6rem; background: #fff;
                 border: 1px solid var(--border); color: var(--text); width: 100%;
                 justify-content: center; padding: .6rem 1rem; border-radius: var(--radius); }
.btn-icon      { background: none; border: none; cursor: pointer; color: var(--gray);
                 font-size: .8rem; padding: 0 .2rem; }
.btn-icon:hover { color: var(--red); }
/* The ✕ next to a contact is destructive and hovers red; this one sends an email, so it
   must not borrow that colour. */
.btn-icon.send-link:hover { color: var(--action-dark); }
.btn-icon.send-link { font-size: .95rem; }
.w-full        { width: 100%; justify-content: center; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-size: .85rem; font-weight: 500; color: var(--gray); }
.form-group input, .form-group select, .form-group textarea {
  padding: .45rem .7rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; width: 100%; }
/* ROOT FIX (v1.21.3): width:100% above was stretching checkboxes and radio buttons across
   the whole row, crushing the label beside them. It bit three times — the registration
   question list, the director branch grid, and the unsubscribe scope radios — so it is now
   exempted once, here, for every such control rather than per-component. */
.form-group input[type="checkbox"], .form-group input[type="radio"] {
  width: auto; flex: 0 0 auto; padding: 0; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--action); border-color: transparent; }
.form-textarea { resize: vertical; }
.form-hint { font-size: .8rem; color: var(--gray); margin-top: .25rem; }
.form-row  { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.inline-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 150px; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
             padding: 1.25rem; margin-bottom: 1.5rem; }
.form-card summary { cursor: pointer; font-weight: 600; }
.form-card[open] summary { margin-bottom: 1rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .4rem; }
.checkbox-label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; cursor: pointer; }
/* Checkbox/radio sizing is handled once, up in the .form-group block. */
.checkbox-label input { flex: 0 0 auto; }
.copy-input { width: 100%; padding: .4rem .6rem; border: 1px solid var(--border);
              border-radius: var(--radius); font-size: .82rem; background: var(--gray-light); }

/* ── Alerts ── */
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef9c3; color: #854d0e; }
.alert-info    { background: var(--brand-tint); color: var(--brand-deep); }

/* ── Badges ── */
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 99px;
         font-size: .75rem; font-weight: 600; }
.badge-blue  { background: var(--brand-tint); color: var(--brand); }
.badge-green { background: #dcfce7; color: var(--green); }
.badge-gray  { background: #e5e7eb; color: var(--gray); }
.badge-red   { background: #fee2e2; color: var(--red); }
.count-badge { display: inline-flex; align-items: center; justify-content: center;
               width: 1.5rem; height: 1.5rem; border-radius: 50%;
               background: var(--brand-tint); color: var(--brand);
               font-size: .75rem; font-weight: 700; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; background: #fff;
              border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--gray-light); font-size: .82rem; font-weight: 600;
                 text-transform: uppercase; letter-spacing: .04em; padding: .6rem .9rem;
                 text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-light); }
.td-actions { display: flex; gap: .35rem; align-items: center; }
.cancelled-row td { opacity: .5; text-decoration: line-through; }

/* ── Stat cards ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
             gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
             padding: 1.25rem; text-align: center; box-shadow: var(--shadow); }
.stat-num  { font-size: 2rem; font-weight: 700; color: var(--brand); }
.stat-label { font-size: .85rem; color: var(--gray); margin-top: .2rem; }
.admin-links { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── League grid ── */
.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
               gap: 1rem; }
.league-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
               padding: 1.25rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; }
.league-card-header { display: flex; gap: .4rem; }
.league-card h3 { font-size: 1rem; font-weight: 700; }
.league-branch { font-size: .85rem; color: var(--gray); }
.league-stats  { font-size: .85rem; color: var(--gray); display: flex; gap: 1rem; }
.league-dates  { font-size: .82rem; color: var(--gray); }
.league-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .25rem; }

/* ── Roster builder ── */
.roster-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .roster-layout { grid-template-columns: 1fr; } }
.roster-column h2, .teams-header { display: flex; align-items: center; gap: .5rem;
                                    margin-bottom: .75rem; flex-wrap: wrap; }
.teams-header { justify-content: space-between; }
.teams-area h2 { margin-bottom: .25rem; }
.registrant-pool { min-height: 80px; border: 2px dashed var(--border); border-radius: var(--radius);
                   padding: .5rem; display: flex; flex-direction: column; gap: .4rem;
                   background: var(--gray-light); transition: background .15s; }
.registrant-pool.drag-over { background: var(--brand-tint); border-color: var(--brand); }
.registrant-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
                   padding: .6rem; cursor: grab; box-shadow: var(--shadow); }
.registrant-card:active { cursor: grabbing; }
.registrant-card.dragging { opacity: .4; }
.card-top { display: flex; align-items: center; gap: .6rem; }
.card-name strong { font-size: .9rem; display: block; }
.card-age { font-size: .78rem; color: var(--gray); }
.player-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
/* Photo layered over the initial, so a blocked or missing image falls back to the
   initial instead of an empty circle. */
.player-photo-wrap { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
.player-photo-over { position: absolute; inset: 0; }
.player-photo-placeholder { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-tint);
                             color: var(--brand); display: flex; align-items: center; justify-content: center;
                             font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.player-photo-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.answer-pills { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .4rem; }
.answer-pill { background: var(--brand-tint); color: var(--brand); font-size: .72rem; font-weight: 500;
               padding: .1rem .45rem; border-radius: 99px; cursor: help; }

/* Always-visible facts on a registrant card: shirt size, emails, phones. The rest
   of the answers stay as hover pills above. */
.card-facts { margin-top: .45rem; display: grid; grid-template-columns: auto 1fr;
              gap: .1rem .5rem; font-size: .78rem; align-items: baseline; }
.card-facts .fact { display: contents; }
.fact-k { color: var(--gray); text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; }
.fact-v { color: #37475a; word-break: break-word; }
.fact-v a { color: var(--brand-deep); text-decoration: none; }
.fact-v a:hover { text-decoration: underline; }
.fact-none { color: #b9c2cb; font-style: italic; }
.pencil { background: none; border: 0; padding: 0 0 0 .25rem; cursor: pointer;
          color: var(--gray); font-size: .82rem; line-height: 1; }
.pencil:hover { color: var(--brand-deep); }
.corrected { color: #1f7a37; font-style: normal; font-weight: 700; }
/* Inline editor under a fact. display:contents on .fact means this sits in the
   grid as its own full-width row. */
.fact-edit { display: none; grid-column: 1 / -1; padding: .3rem 0 .45rem; }
.fact-edit.open { display: block; }
.card-edit-row { display: flex; gap: 5px; align-items: center; margin-top: .35rem; }
.card-edit-row input, .card-edit-row select { width: auto; flex: 1 1 auto; min-width: 0;
              font-size: .78rem; padding: .18rem .35rem; }
.card-edit-row select { flex: 0 0 auto; }
.card-edit-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: .4rem; }
.added-contact { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem;
                 background: var(--brand-tint); border-radius: 99px; padding: .1rem .3rem .1rem .5rem; }

/* An unsubscribed address stays on the roster on purpose — deleting it would be undone by the
   next Core sync — so it is struck through and tagged rather than hidden. Struck-through AND
   tagged, because colour alone would not carry for anyone who can't distinguish it. */
.is-unsubscribed { text-decoration: line-through; color: var(--gray); }
.added-contact.is-unsubscribed { background: var(--gray-light); text-decoration: none; }
.added-contact.is-unsubscribed > :first-child { text-decoration: line-through; }
.unsub-tag { display: inline-block; font-size: .68rem; font-weight: 600; text-transform: uppercase;
             letter-spacing: .03em; background: #fee2e2; color: #991b1b;
             border-radius: 99px; padding: .05rem .4rem; margin-left: .3rem;
             cursor: help; vertical-align: middle; text-decoration: none; }
.team-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
              padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.team-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.team-header strong { flex: 1; }
.team-actions { display: flex; gap: .3rem; align-items: center; margin-left: auto; }
.coach-label { font-size: .82rem; color: var(--gray); }
.coach-invite-form { margin-bottom: .75rem; }

/* ── Schedule ── */
.schedule-table td { vertical-align: top; }
.schedule-list { display: flex; flex-direction: column; gap: .75rem; }
.schedule-row  { display: flex; gap: .75rem; align-items: flex-start; }
.schedule-date { font-size: .82rem; color: var(--gray); min-width: 70px; }
.schedule-detail { font-size: .9rem; }
.public-link-box { margin-top: 1.5rem; padding: 1rem; background: var(--gray-light);
                   border-radius: var(--radius); }

/* ── Locations ── */
.location-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
                  padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.location-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.location-header h3 { margin: 0; }
.courts-list { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.court-tag { display: flex; align-items: center; gap: .3rem; background: var(--brand-tint);
             color: var(--brand); border-radius: 99px; padding: .2rem .7rem; font-size: .85rem; }

/* ── Teams preview (publish page) ── */
.teams-preview { background: var(--gray-light); border-radius: var(--radius);
                 padding: 1rem; margin: 1rem 0; }
.teams-preview h3 { font-size: .9rem; margin-bottom: .75rem; }
.team-preview-row { display: flex; gap: .75rem; align-items: center; margin-bottom: .5rem;
                    font-size: .85rem; flex-wrap: wrap; }
.team-preview-row code { font-size: .78rem; color: var(--gray); }

/* ── Roster list (coach) ── */
.roster-list { display: flex; flex-direction: column; gap: .6rem; }
.roster-row  { display: flex; align-items: center; gap: .6rem; }

/* ── Login ── */
/* ── Sign in ────────────────────────────────────────────────────────────────
   Mobile first: a hero band above the card, then side by side from 900px where
   there is room for it. The artwork is drawn, not photographed — chalk pitch
   markings and the sport marks over the association's gradient — so there are no
   image files, nothing for the content policy to block, and it stays sharp at any
   size. Everything decorative is aria-hidden; the card is the whole interface. */
.login-page { min-height: 100vh; background: var(--brand-deep); }
.login-page .navbar, .login-page .site-footer { display: none; }
.login-page .main-content { width: 100%; max-width: none; padding: 0; }

.login-split { display: flex; flex-direction: column; min-height: 100vh; }

.login-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--brand);
  background-image: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 70%,
                                    #3F2168 100%);
  padding: 2.25rem 1.5rem 2.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 44vh;
}
/* Mow stripes. Barely there — you notice it as "grass", not as a pattern. */
.login-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(100deg,
    rgba(255,255,255,.035) 0 34px, transparent 34px 68px);
}
.login-pitch {
  position: absolute; right: -12%; top: -6%; height: 118%; width: auto;
  opacity: .22; pointer-events: none;
}
.login-marks { position: absolute; inset: 0; pointer-events: none; }
.login-marks svg { position: absolute; color: #fff; }
.login-hero-inner { position: relative; }
.login-logo { display: block; height: 46px; width: auto; margin-bottom: 1.1rem; }
.login-wordmark {
  font-size: clamp(2rem, 11vw, 3.25rem); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.025em; line-height: .92; margin: 0;
  transform: scaleX(.94); transform-origin: left center;
}
.login-tagline {
  margin-top: .7rem; font-size: 1rem; color: rgba(255,255,255,.85);
  max-width: 30ch; line-height: 1.45;
}
.login-sports { display: flex; gap: .55rem; margin-top: 1.4rem; color: rgba(255,255,255,.65); }
.login-sports svg { flex: 0 0 auto; }

.login-panel { flex: 1; display: flex; align-items: center; justify-content: center;
               background: #FBF9FC; padding: 2rem 1.25rem 2.5rem; }
.login-card { background: #fff; border: 1px solid var(--border); border-radius: 12px;
              padding: 1.75rem; width: 100%; max-width: 380px;
              box-shadow: 0 10px 30px rgba(92,46,145,.10);
              display: flex; flex-direction: column; gap: 1rem; }
.login-card h1 { color: var(--text); font-size: 1.25rem; font-weight: 750; }

@media (min-width: 900px) {
  .login-split { flex-direction: row; }
  .login-hero { flex: 1.15; min-height: 100vh; padding: 3rem 3.5rem 3.5rem; }
  .login-panel { flex: 1; min-height: 100vh; padding: 3rem 2rem; }
  .login-logo { height: 56px; }
  .login-tagline { font-size: 1.1rem; }
}

/* One orchestrated entrance rather than scattered effects. */
@media (prefers-reduced-motion: no-preference) {
  .login-hero-inner > * { animation: login-rise .55s cubic-bezier(.2,.7,.3,1) both; }
  .login-logo     { animation-delay: .04s; }
  .login-wordmark { animation-delay: .12s; }
  .login-tagline  { animation-delay: .20s; }
  .login-sports   { animation-delay: .28s; }
  .login-marks svg { animation: login-fade 1.1s ease both; }
  .login-card { animation: login-rise .55s cubic-bezier(.2,.7,.3,1) .16s both; }
}
@keyframes login-rise { from { opacity: 0; transform: translateY(14px); }
                        to   { opacity: 1; transform: none; } }
@keyframes login-fade { from { opacity: 0; } }
.login-subtitle { color: var(--gray); font-size: .875rem; line-height: 1.5;
                  margin-top: -.4rem; }
.login-divider { display: flex; align-items: center; gap: .75rem; }
.login-divider::before, .login-divider::after { content: ''; flex: 1;
  height: 1px; background: var(--border); }
.login-divider span { color: var(--gray); font-size: .8rem; }
/* For the parent who typed the domain instead of using their link. Quiet — it is
   not the job of this page — but it must not be a dead end for them. */
.login-parent { margin-top: .25rem; padding-top: 1rem; border-top: 1px solid var(--border);
                font-size: .82rem; color: var(--gray); line-height: 1.5; }
.login-parent strong { display: block; color: var(--text); font-weight: 650; }

/* ── Public schedule ── */
.public-page { background: #FBF9FC; }
/* The association's own page-header treatment — purple graduating to plum, as on
   ymcatoledo.org. Left-aligned rather than centred: a logo, a name and a line of detail
   read faster ranged left, and it matches the staff side. */
.public-header {
  background: var(--brand);
  background-image: linear-gradient(105deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; padding: 1.25rem 1rem 1.6rem; }
.public-header-inner { max-width: 700px; margin: 0 auto; }
.public-logo { display: block; height: 44px; width: auto; margin-bottom: .9rem; }
.public-kicker { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
                 color: rgba(255,255,255,.75); margin-bottom: .3rem; }
.public-header h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.public-sport { display: flex; align-items: center; gap: .4rem; margin-top: .35rem;
                color: rgba(255,255,255,.88); font-size: .9rem; }
.sport-mark { flex: 0 0 auto; }

/* Next up: overlaps the header so it reads as the headline fact, not a list item. */
.next-up-wrap { max-width: 700px; margin: 0 auto; padding: 0 1rem; }
.next-up { background: #fff; border-radius: 10px; padding: .9rem 1.1rem;
           margin-top: -1rem; box-shadow: 0 6px 20px rgba(92,46,145,.18); }
.next-up-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
                 color: var(--gray); margin-bottom: .3rem; }
.next-up-time { font-size: 1.65rem; font-weight: 800; color: var(--brand);
                line-height: 1; letter-spacing: -.02em;
                font-variant-numeric: tabular-nums; }
.next-up-who { font-size: 1rem; font-weight: 700; margin-top: .35rem; }
.next-up-where { font-size: .85rem; color: var(--gray); }
@media (min-width: 560px) {
  .public-header { padding: 1.6rem 1rem 2rem; }
  .public-logo { height: 52px; }
  .public-header h1 { font-size: 2.2rem; }
}
.public-main { max-width: 700px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.public-section { background: #fff; border-radius: var(--radius); padding: 1.25rem;
                  margin-bottom: 1rem; box-shadow: var(--shadow); }
.public-section h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.public-schedule { display: flex; flex-direction: column; gap: .75rem; }
.public-event { display: flex; gap: 1rem; padding: .75rem;
                border-radius: var(--radius); background: var(--gray-light); }
.public-event.event-cancelled { opacity: .5; }
.event-date-block { text-align: center; min-width: 44px; }
.event-month { display: block; font-size: .7rem; text-transform: uppercase;
               color: var(--brand); font-weight: 700; }
.event-day   { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-dow   { display: block; font-size: .72rem; color: var(--gray); }
.event-detail { flex: 1; font-size: .9rem; display: flex; flex-direction: column; gap: .25rem; }
.event-location { font-size: .85rem; color: var(--gray); }
.event-time     { font-weight: 500; }
.event-notes    { font-size: .82rem; color: var(--gray); font-style: italic; }
.notify-section { margin-top: 1rem; }
.notify-form    { display: flex; flex-direction: column; gap: .75rem; margin-top: .75rem; }
.public-footer  { text-align: center; padding: 1.5rem; color: var(--gray); font-size: .8rem; }

/* ── Error pages ── */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page h1 { font-size: 5rem; color: var(--brand); font-weight: 900; }
.error-page p  { color: var(--gray); margin: 1rem 0 2rem; }

/* ── Utilities ── */
.text-muted { color: var(--gray); }
.empty-state { text-align: center; padding: 3rem; color: var(--gray); }
.empty-state p { margin-bottom: 1rem; }


/* ── Text conversation with a parent ────────────────────────────────────────
   Mobile first: a coach reads this standing on a field, on a phone. Bubbles are
   percentage-width so they reflow, the reply box stacks under the thread on a narrow
   screen and sits inline once there is room, and every tap target is finger-sized. */
.text-thread-box { background: #fff; border: 1px solid var(--border);
                   border-radius: var(--radius); padding: 1rem; margin-top: 1.5rem;
                   box-shadow: var(--shadow); }
.thread-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
               margin-bottom: .75rem; }
.thread-head h3 { font-size: 1rem; font-weight: 700; flex: 1; }

.thread { border-top: 1px solid var(--border); padding: .85rem 0; }
.thread:first-of-type { border-top: none; }
.thread-unread { background: #FAF6FC; margin: 0 -1rem; padding: .85rem 1rem; }
.thread-who { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
              font-size: .9rem; margin-bottom: .6rem; }
.thread-who a { color: var(--brand); text-decoration: none; font-size: .85rem; }

.bubble { max-width: 85%; padding: .5rem .75rem; border-radius: 14px; margin-bottom: .45rem;
          font-size: .9rem; overflow-wrap: anywhere; }
.bubble-in  { background: var(--gray-light); border-bottom-left-radius: 4px; }
.bubble-out { background: var(--brand-tint); border-bottom-right-radius: 4px;
              margin-left: auto; }
.bubble-body { white-space: pre-wrap; }
.bubble-meta { font-size: .7rem; color: var(--gray); margin-top: .2rem; }
.bubble-warn { font-size: .72rem; color: #854d0e; background: #fef9c3;
               border-radius: 4px; padding: .2rem .4rem; margin-top: .3rem; }

/* Stacked by default — thumbs, not cursors. Inline from 480px up. */
.thread-reply { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.thread-reply input[type="text"] { width: 100%; padding: .55rem .7rem; font-size: .95rem;
                                   border: 1px solid var(--border);
                                   border-radius: var(--radius); }
.thread-reply button { min-height: 40px; }
@media (min-width: 480px) {
  .thread-reply { flex-direction: row; align-items: center; }
  .thread-reply input[type="text"] { flex: 1; min-width: 0; }
  .thread-reply button { min-height: 0; }
}


/* ── Changelog ──────────────────────────────────────────────────────────────
   Long and dense, so it reads as a document rather than a settings panel. */
.site-footer a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.site-footer a:hover { color: var(--brand); }
.changelog h1 { font-size: 1.15rem; margin-bottom: .75rem; }
.changelog h2 { font-size: .95rem; font-weight: 700; color: var(--brand-deep);
                margin: 1.4rem 0 .5rem; padding-top: 1rem;
                border-top: 1px solid var(--border); }
.changelog h2:first-of-type { border-top: none; padding-top: 0; margin-top: .5rem; }
.changelog ul { margin: .3rem 0 .3rem 1.1rem; }
.changelog ul ul { margin-left: 1rem; }
.changelog li { font-size: .88rem; line-height: 1.55; margin-bottom: .3rem;
                overflow-wrap: anywhere; }
.changelog p  { font-size: .88rem; line-height: 1.55; margin: .4rem 0; }
.changelog code { background: var(--gray-light); border-radius: 3px; padding: .05rem .3rem;
                  font-size: .82rem; }
@media (max-width: 600px) { .changelog ul { margin-left: .9rem; } }
