/* Strong Start brand theme.
   Official palette and fonts as design tokens; components reference only these
   variables. Fonts are self-hosted (see /static/fonts/FONT-LICENSES.txt). */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/barlow-condensed-800.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 200 1000; font-style: normal; font-display: swap; src: url(fonts/nunito-sans-variable.woff2) format("woff2"); }
:root {
  /* Official palette */
  --deep-teal: #17646A;
  --viking-teal: #157A83;
  --navy: #092B39;
  --graphite: #30383C;
  --copper: #B77B55;
  --orange: #E47C35;
  --ivory: #E5E3DD;
  --ivory-soft: #F3F1EC;     /* lighter tint of Warm Ivory for page backgrounds */
  /* Roles */
  --brand: var(--deep-teal);  /* primary actions, links */
  --brand-ink: #ffffff;
  --accent: var(--orange);    /* important calls to action (Register, Book) */
  --bg: var(--ivory-soft);
  --surface: #ffffff;
  --ink: var(--graphite);
  --muted: #5d6870;
  --line: #e1ddd4;
  --ok: #1e7b4a; --ok-bg: #e5f4ec;
  --warn: #8a5a00; --warn-bg: #fdf3dc;
  --bad: #a32020; --bad-bg: #fbe7e7;
  --info: var(--deep-teal); --info-bg: #e3f0f0;
  --radius: 12px;
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --shadow: 0 1px 2px rgba(9,43,57,.06), 0 6px 18px rgba(9,43,57,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.shell { flex: 1 0 auto; width: 100%; align-content: start; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1.1; margin: 0 0 .5rem; letter-spacing: .01em; }
h1 { font-size: 2.1rem; font-weight: 800; text-transform: uppercase; } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* Header & navigation */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 1.25rem; padding: .55rem 24px; max-width: 1280px; margin: 0 auto; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; display: block; }
.top-nav ul, .menu ul, .side ul { list-style: none; margin: 0; padding: 0; }
.top-nav ul { display: flex; gap: .25rem; }
.top-nav a, .side a, .menu a { display: block; padding: .45rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; }
.top-nav a:hover, .side a:hover, .menu a:hover { color: var(--brand); }
.top-nav a[aria-current] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.side a[aria-current], .menu a[aria-current] { background: var(--info-bg); color: var(--brand); }
.account { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.notif { font-weight: 700; }
.notif .count { background: var(--accent); color: var(--navy); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; font-weight: 800; }
.menu { display: none; }
.menu summary, .side-menu summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: .4rem .9rem; border: 2px solid var(--navy); border-radius: 999px; list-style: none; }
.menu summary::-webkit-details-marker, .side-menu summary::-webkit-details-marker { display: none; }

.shell { display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; max-width: 1280px; margin: 0 auto; padding: 1.5rem 24px 3rem; }
.shell-public { grid-template-columns: 1fr; max-width: 1080px; }
.side-menu summary { display: none; }
.side { position: sticky; top: 84px; align-self: start; }
main { min-width: 0; }
.site-footer { background: var(--navy); color: #cfdade; padding: 2rem 24px; border-top: 6px solid var(--deep-teal); font-size: .95rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-logo { height: 72px; width: auto; display: block; }
.site-footer p { margin: .2rem 0; text-align: right; }
.site-footer a { color: #ffffff; }

/* Components */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stat { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 42px; padding: .45rem 1.1rem; border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--viking-teal); border-color: var(--viking-teal); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: var(--brand-ink); }
/* Orange call to action with navy text (white on orange is not legible enough) */
.btn-cta { background: var(--accent); border-color: var(--accent); color: var(--navy); box-shadow: 0 3px 0 #b9581c; }
.btn-cta:hover { background: #ec8b48; border-color: #ec8b48; color: var(--navy); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: #8a1a1a; border-color: #8a1a1a; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #17633b; border-color: #17633b; }
.btn-warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.btn-warn:hover { background: #f8e7bd; border-color: var(--warn); color: var(--warn); }
.btn-small { min-height: 36px; padding: .25rem .85rem; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); } .badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #eef0f3; color: var(--muted); }
.alert { padding: .7rem .9rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.alert-ok { background: var(--ok-bg); color: var(--ok); } .alert-error, .alert-bad { background: var(--bad-bg); color: var(--bad); }
.alert-warn { background: var(--warn-bg); color: var(--warn); } .alert-info { background: var(--info-bg); color: var(--info); }
.empty { color: var(--muted); font-style: italic; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .3rem 0; } .checklist .done::before { content: "✓ "; color: var(--ok); font-weight: 700; } .checklist .todo::before { content: "○ "; color: var(--bad); font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; } .kv dt { color: var(--muted); }
.pager { margin-top: .75rem; display: flex; gap: 1rem; }

/* Forms */
.form { max-width: 640px; }
.field { margin-bottom: .9rem; display: flex; flex-direction: column; gap: .25rem; }
.field label { font-weight: 700; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], input[type=number], select, textarea {
  font: inherit; padding: .5rem .6rem; border: 1px solid #b9c2cd; border-radius: 8px; background: #fff; width: 100%; min-height: 42px; }
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; border-color: var(--brand); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hint { color: var(--muted); }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; margin-bottom: .5rem; }
.check input { margin-top: .3rem; width: 18px; height: 18px; }
.row { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.dob-picker { display: flex; gap: .4rem; } .dob-picker select { width: auto; flex: 1; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; margin: 0 0 1rem; }
legend { font-weight: 700; color: var(--navy); padding: 0 .3rem; }

/* Calendar */
.week-nav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: .5rem 0 1rem; flex-wrap: wrap; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; min-height: 120px; }
.day h3 { font-size: 1rem; text-transform: uppercase; color: var(--navy); } .day h3 span { text-transform: none; }
.session { border-left: 4px solid var(--brand); background: var(--bg); border-radius: 6px; padding: .4rem .5rem; margin-bottom: .45rem; font-size: .85rem; }
.session strong { display: block; } .session.is-canceled { border-color: var(--muted); opacity: .7; text-decoration: line-through; }
.session.is-full { border-color: var(--warn); }
.session a { text-decoration: none; }

/* Roster (tablet-first) */
.roster-item { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.roster-item .who { min-width: 200px; }
.roster-item .att { display: flex; gap: .4rem; flex-wrap: wrap; }
.roster-item .att .btn { min-height: 46px; min-width: 92px; }
.flag { color: var(--bad); font-weight: 600; font-size: .85rem; }

/* Public */
.program-card h2 { margin-bottom: .25rem; }
.messages .msg { padding: .6rem .8rem; border-radius: 8px; margin-bottom: .5rem; background: var(--bg); }
.messages .msg.mine { background: var(--info-bg); }
.waiver-text { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; max-height: 420px; overflow: auto; }

@media (max-width: 980px) {
  .week { grid-template-columns: 1fr; } .day { min-height: 0; }
  .top-nav { display: none; } .menu { display: block; margin-left: auto; }
  .menu[open] ul { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .4rem; margin-top: .3rem; box-shadow: var(--shadow); z-index: 6; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; gap: .75rem; }
  .side { position: static; }
  .side-menu summary { display: block; }
  .side-menu:not([open]) nav { display: none; }
  table.stack thead, .table-wrap thead { display: none; }
  .table-wrap tr { display: block; border-bottom: 1px solid var(--line); padding: .4rem 0; }
  .table-wrap td { display: flex; gap: .75rem; border: 0; padding: .2rem 0; }
  .table-wrap td::before { content: attr(data-label); font-weight: 600; color: var(--muted); min-width: 110px; font-size: .8rem; text-transform: uppercase; }
  .account { margin-left: 0; width: 100%; }
  .bar { padding: .5rem 16px; gap: .75rem; }
  .brand img { height: 42px; }
  .shell { padding: 1rem 16px 2.5rem; }
  h1 { font-size: 1.75rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .site-footer p { text-align: center; }
  .footer-logo { height: 56px; }
}
.pre-line { white-space: pre-line; }
.narrow { max-width: 520px; }
.hp { position: absolute; left: -5000px; }
.qr-box { display: grid; place-items: center; padding: .5rem; }
.qr-box svg { width: min(100%, 260px); height: auto; border-radius: 8px; }
ul.tight { margin: .3rem 0 0; padding-left: 1.2rem; }
.card-warn { border-color: var(--warn); background: var(--warn-bg); }
.search-bar { display: flex; gap: .6rem; align-items: flex-end; max-width: 640px; margin-bottom: 1rem; }
.search-bar .field { flex: 1; margin-bottom: 0; }
.search-bar .btn { min-height: 42px; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .5rem .8rem; text-decoration: none; color: var(--ink); font-weight: 700; border-radius: 8px 8px 0 0; }
.tabs a[aria-current] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); }
.step-row { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .75rem; align-items: start; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.step-num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step-form { margin-top: .5rem; }
.step-actions { display: flex; gap: .3rem; flex-wrap: wrap; }
.email-preview { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; background: #fff; }
.sms-preview .bubble { background: #e9ecef; border-radius: 18px 18px 18px 4px; padding: .7rem .9rem; max-width: 22rem; }
.outbox-item { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.outbox-item summary { cursor: pointer; }
@media (max-width: 760px) { .step-row { grid-template-columns: 2.2rem 1fr; } .step-actions { grid-column: 2; } }
details.invoice { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin-bottom: .6rem; background: #fff; }
details.invoice > summary { cursor: pointer; display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; list-style: none; }
details.invoice > summary::-webkit-details-marker { display: none; }
table.lines { width: 100%; margin: .4rem 0; }
table.lines td { border: 0; padding: .2rem 0; }
table.lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.lines tr.neg td { color: var(--ok); }
table.lines tr.total td { border-top: 1px solid var(--line); font-weight: 800; padding-top: .4rem; }
table.lines tr.due td { font-weight: 800; color: var(--navy); }
.pay-row { border-bottom: 1px solid var(--line); padding: .5rem 0; }
.line-entry td { border: 0; padding: .2rem .3rem .2rem 0; }
.btn-danger-outline { color: var(--bad); border-color: var(--bad); }
.btn-danger-outline:hover { background: var(--bad); color: #fff; border-color: var(--bad); }

/* Master facility calendar (Admin → Weekly Schedule): one color per activity type */
.session .cal-label { display: block; font: 700 .68rem/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.session.cal-class { border-left-color: var(--deep-teal); }
.session.cal-party { border-left-color: var(--orange); background: #fdf0e6; }
.session.cal-playdate { border-left-color: var(--copper); background: #f7efe8; }
.session.cal-camp { border-left-color: #2f7d4f; background: #eaf5ee; }
.session.cal-parents_night_out { border-left-color: #5b4b8a; background: #efecf7; }
.session.cal-special_event { border-left-color: var(--viking-teal); background: #e3f1f2; }
.session.cal-maintenance, .session.cal-other { border-left-color: var(--graphite); background: #eceef0; }
.session.cal-closure { border-left-color: var(--navy); background: var(--navy); color: #fff; }
.session.cal-closure a, .session.cal-closure .cal-label { color: #fff; }
.session.is-tentative { border-left-style: dashed; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .5rem 0 .9rem; padding: 0; font-size: .82rem; }
.cal-legend li { display: flex; align-items: center; gap: .35rem; }
.cal-legend li::before { content: ""; width: .85rem; height: .85rem; border-radius: 3px; background: var(--deep-teal); }
.cal-legend .cal-party::before { background: var(--orange); } .cal-legend .cal-playdate::before { background: var(--copper); }
.cal-legend .cal-camp::before { background: #2f7d4f; } .cal-legend .cal-parents_night_out::before { background: #5b4b8a; }
.cal-legend .cal-special_event::before { background: var(--viking-teal); } .cal-legend .cal-maintenance::before { background: var(--graphite); }
.cal-legend .cal-closure::before { background: var(--navy); }

/* ───── Public preview (SITE_MODE=preview) ─────
   "Opening Soon" labels sit where sign-up and booking buttons normally are:
   the same pill shape and height, but a quiet dashed outline, a clock and a
   normal cursor, so they read as a status, not something to click. */
.soon-pill { display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: .4rem 1.2rem; border-radius: 999px;
  border: 2px dashed color-mix(in srgb, var(--copper) 70%, transparent); background: #fbf4ee; color: #7a4a2c;
  font: 800 1.05rem/1.1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; cursor: default; user-select: none; white-space: nowrap; }
.soon-pill .soon-icon { width: 18px; height: 18px; flex: none; }
.soon-small { min-height: 34px; padding: .2rem .85rem; font-size: .88rem; gap: .35rem; }
.soon-small .soon-icon { width: 15px; height: 15px; }
.soon-large { min-height: 54px; padding: .55rem 1.5rem; font-size: 1.2rem; }
.soon-light { background: rgba(228,124,53,.16); border-color: rgba(242,180,138,.9); color: #ffdcc2; }

.preview-closed { max-width: 560px; margin: 24px auto 40px; text-align: center; }
.preview-closed img { width: 200px; height: auto; margin-bottom: 8px; }
.preview-closed h1 { font-size: clamp(2rem, 4vw, 2.6rem); text-transform: uppercase; }
.preview-closed p { font-size: 1.1rem; color: var(--graphite); }
.preview-closed .actions { justify-content: center; margin-top: 18px; }

.owner-banner { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 6px 16px; background: var(--navy); color: #e9f1f2; font-size: .9rem; }
.owner-banner .btn { color: #fff; border-color: rgba(255,255,255,.6); min-height: 30px; padding: .1rem .7rem; }
.owner-gate { max-width: 560px; margin: 0 auto; }

/* Schedule note and "subject to change" (schedule.css owns the rest) */
.sc-preview-note { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 16px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.sc-preview-note p { margin: 0; font-weight: 700; color: var(--navy); }
.sc-change { display: inline-block; font-size: .82rem; font-weight: 600; font-style: italic; color: var(--muted); }
.contact-soon { display: grid; justify-items: start; gap: 10px; padding: 6px 0 4px; } .contact-soon p { margin: 0; color: var(--graphite); }
.soon-member { width: 100%; min-height: 56px; justify-content: center; margin-top: 14px; font-size: 1.12rem; }
