/* ==========================================================
   Via Football Academy — styles
   Brand: light blue. Status: green = open, red = no training / full.
========================================================== */

:root {
  --sky-50:  #F0F9FF;
  --sky-100: #E0F2FE;
  --sky-200: #BAE6FD;
  --sky-300: #7DD3FC;
  --sky-400: #38BDF8;   /* primary brand */
  --sky-500: #0EA5E9;
  --sky-700: #0369A1;
  --navy:    #0B2540;
  --navy-2:  #123A5E;

  --text:   #0B2540;
  --muted:  #4B6480;
  --line:   #D5E5F2;
  --bg:     #F4F9FD;
  --card:   #FFFFFF;

  --green:    #15803D;
  --green-bg: #DCFCE7;
  --green-bd: #86EFAC;
  --green-tx: #14532D;
  --red:      #DC2626;
  --red-bg:   #FEE2E2;
  --red-bd:   #FCA5A5;
  --red-tx:   #7F1D1D;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11,37,64,.06), 0 8px 24px rgba(11,37,64,.06);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--sky-700);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--sky-700); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { top: 16px; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn-primary { background: var(--sky-400); color: var(--navy); }
.btn-primary:hover:not(:disabled) { background: var(--sky-300); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: var(--sky-400); background: var(--sky-50); }
.btn-ghost { background: transparent; color: var(--sky-700); }
.btn-ghost:hover { background: var(--sky-50); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); }
.btn-danger-text { color: #B91C1C; }
.btn-danger-text:hover { background: var(--red-bg); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn-xs { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.icon-btn:hover:not(:disabled) { border-color: var(--sky-400); background: var(--sky-50); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

.link-btn { background: none; border: 0; padding: 0; color: var(--sky-700); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------------- Brand ---------------- */

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 800; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky-400); color: var(--navy);
  font-weight: 800; font-size: 18px;
}
.brand-name { letter-spacing: .02em; }

/* ---------------- Hero ---------------- */

.hero { position: relative; color: #fff; overflow: hidden; padding-bottom: 96px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(11,37,64,.93) 0%, rgba(11,37,64,.8) 38%, rgba(11,37,64,.35) 68%, rgba(11,37,64,.12) 100%),
    url("assets/hero-kids.jpg") 60% 45% / cover;
}
.nav .btn { white-space: nowrap; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.nav .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.nav .btn-ghost:hover { background: rgba(255,255,255,.1); }

.hero-content { position: relative; padding-top: 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-300); margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; max-width: 14ch; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: #D8ECFA; max-width: 46ch; margin-top: 16px; }

.stats { list-style: none; padding: 0; margin: 32px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.stats li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px 18px; min-width: 120px; }
.stats strong { display: block; font-size: 26px; font-weight: 800; color: var(--sky-300); }
.stats span { font-size: 14px; color: #D8ECFA; }

/* ---------------- Features ---------------- */

.features { position: relative; margin-top: -56px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.feature-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sky-100); font-size: 20px; margin-bottom: 12px; }
.feature-card h2 { font-size: 18px; margin-bottom: 4px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------------- Booking ---------------- */

.booking { padding-top: 64px; padding-bottom: 80px; scroll-margin-top: 16px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; }

.load-state { text-align: center; padding: 40px 16px; color: var(--muted); }

.booking-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 960px) {
  .booking-grid { grid-template-columns: 1fr 1fr; }
  .step-city, .step-form { grid-column: 1 / -1; }
  .step-form form, .step-form .summary, .step-form .success { max-width: 760px; }
}

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 720px) { .card { padding: 24px; } }

.step-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--sky-100); color: var(--sky-700); display: grid; place-items: center; font-size: 14px; flex: none; }

/* City chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.chip:hover { border-color: var(--sky-400); background: var(--sky-50); }
.chip.is-active { background: var(--sky-400); border-color: var(--sky-400); color: var(--navy); }
.chip-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--green-bg); color: var(--green-tx); font-size: 12px; display: grid; place-items: center; }
.chip-count.is-zero { background: #EEF3F7; color: var(--muted); }
.chip.is-active .chip-count { background: rgba(255,255,255,.7); }

/* Calendar */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cal-title { font-weight: 800; font-size: 17px; }
.calendar { display: grid; gap: 4px; }
.cal-row { display: grid; grid-template-columns: 24px repeat(7, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.cal-head span { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-wk { font-size: 11px; color: #7C93AA; display: grid; place-items: center; font-weight: 700; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1; min-height: 40px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-weight: 700; cursor: pointer; padding: 0;
}
.cal-day:hover:not(:disabled) { border-color: var(--sky-400); }
.cal-day.is-outside { border: 0; background: transparent; cursor: default; }
.cal-day:disabled { cursor: not-allowed; color: #A9B8C6; background: #F7FAFC; }
.cal-day.is-empty { color: var(--muted); }
.cal-day.has-open { background: var(--green-bg); border-color: var(--green-bd); color: var(--green-tx); }
.cal-day.has-full { background: var(--red-bg); border-color: var(--red-bd); color: var(--red-tx); }
.cal-day.is-past-soft { opacity: .6; }
.cal-day.is-today .cal-num { text-decoration: underline; text-underline-offset: 3px; }
.cal-day.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; opacity: 1; }
.cal-num { font-size: 15px; line-height: 1; }
.cal-badge { font-size: 10px; font-weight: 800; line-height: 1; padding: 2px 5px; border-radius: 999px; background: rgba(255,255,255,.75); }
.cal-day.is-selected .cal-badge { background: var(--sky-400); color: var(--navy); }

.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -8px; vertical-align: middle; }
.dot-green { background: var(--green); }
.dot-red { background: var(--red); }

/* Hours */
.day-title { color: var(--muted); margin-bottom: 12px; }
.day-title strong { color: var(--text); }
.notice { background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }

.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 520px) { .times { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.slot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 60px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer;
}
.slot-time { font-weight: 800; font-size: 16px; }
.slot-sub { font-size: 12px; font-weight: 600; }
.slot-note { font-size: 11px; color: var(--muted); }
.slot-open { background: var(--green-bg); border-color: var(--green-bd); color: var(--green-tx); }
.slot-open:hover { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.slot-open.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot-open.is-selected .slot-note { color: var(--sky-200); }
.slot-full, .slot-none { background: var(--red-bg); border-color: var(--red-bd); color: var(--red-tx); cursor: not-allowed; }
.slot-none { background: #FEF2F2; border-color: #FECACA; opacity: .8; }
.slot-past { background: #F1F5F9; color: #64748B; cursor: not-allowed; }

/* Summary + form */
.summary { display: flex; flex-direction: column; gap: 2px; background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.summary-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sky-700); }
.summary strong::first-letter { text-transform: uppercase; }
.summary-meta { font-size: 13px; color: var(--green-tx); font-weight: 700; }

.field-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 520px) { .field-grid { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 700; }
.field em { font-style: normal; font-weight: 500; }
input, select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid #B9CFE0; border-radius: var(--radius-sm); background: #fff;
  font: inherit; font-size: 16px; color: var(--text);
}
input:focus, select:focus { outline: none; border-color: var(--sky-700); box-shadow: 0 0 0 3px var(--sky-200); }
input[aria-invalid="true"] { border-color: var(--red); }

.form-error { background: var(--red-bg); color: var(--red-tx); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }

.success { text-align: center; padding: 16px 8px; }
.success:focus { box-shadow: none; }
.success-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.success h4 { font-size: 20px; margin-bottom: 8px; }
.success p { margin-bottom: 8px; }
.success .btn { margin-top: 8px; }

/* Footer */
.footer { background: var(--navy); color: #fff; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.footer p { color: #B7D3EA; font-size: 14px; }

/* ==========================================================
   ADMIN
========================================================== */

body.is-busy { cursor: progress; }
body.is-busy .admin-main { opacity: .7; pointer-events: none; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, var(--sky-100), var(--bg)); }
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login-card h1 { font-size: 24px; }

.admin-top { background: var(--navy); color: #fff; }
.admin-top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
.admin-tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sky-300); }
.demo-badge { font-size: 12px; font-weight: 700; background: #FEF3C7; color: #78350F; padding: 3px 10px; border-radius: 999px; }
.admin-top-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }

.admin-main { padding-top: 20px; padding-bottom: 60px; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.field-inline { min-width: 220px; }
.field-grow { flex: 1 1 200px; }

.admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 980px) { .admin-grid { grid-template-columns: 380px 1fr; } .admin-grid > .card:first-child { position: sticky; top: 16px; } }
.admin .cal-day { aspect-ratio: auto; min-height: 44px; }

.day-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.day-head h2 { font-size: 22px; font-weight: 800; }
.day-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hint { font-size: 13px; color: var(--muted); background: var(--sky-50); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; }

.slot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.slot-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; }
.slot-row.is-on { border-color: var(--green-bd); background: #F4FDF7; }
.slot-row.is-full { border-color: var(--red-bd); background: #FFF7F7; }
.slot-main { display: grid; grid-template-columns: 64px 52px 1fr; grid-template-areas: "time sw pill" "cap cap cap" "act act act"; align-items: center; gap: 8px 10px; }
@media (min-width: 720px) {
  .slot-main { grid-template-columns: 76px 52px 140px 1fr auto; grid-template-areas: "time sw pill cap act"; }
}
.slot-main .slot-time { grid-area: time; font-size: 17px; }
.slot-main .switch { grid-area: sw; }
.slot-main .pill { grid-area: pill; justify-self: start; }
.slot-cap { grid-area: cap; display: flex; align-items: center; gap: 8px; min-width: 0; }
.slot-actions { grid-area: act; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.custom-tag { display: block; font-style: normal; font-size: 10px; font-weight: 700; color: var(--sky-700); text-transform: uppercase; letter-spacing: .05em; }
.slot-note-admin { font-size: 13px; color: var(--muted); margin-top: 6px; padding-left: 2px; }

.pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-green { background: var(--green-bg); color: var(--green-tx); }
.pill-red { background: var(--red-bg); color: var(--red-tx); }
.pill-muted { background: #FDECEC; color: #9F2A2A; }

/* Switch: green = training, red = no training */
.switch {
  position: relative; width: 52px; height: 30px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: var(--red); transition: background .15s;
}
.switch[aria-checked="true"] { background: var(--green); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); }

.meter { flex: 1; max-width: 160px; height: 8px; border-radius: 999px; background: #E3ECF3; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.is-full .meter span { background: var(--red); }
.meter-text { font-size: 13px; font-weight: 800; }

.edit-form, .add-time, .add-city { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.edit-form { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.edit-form .field:first-child, .add-time .field:first-child { flex: 0 0 130px; }
.add-time { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

.player-list { margin: 10px 0 0; padding: 10px 0 0 0; border-top: 1px dashed var(--line); list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 6px; }
.player-list li { counter-increment: p; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name btn" "meta btn"; gap: 0 8px; align-items: center; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.player-list li > div:first-child { grid-area: name; }
.player-list li > div:first-child::before { content: counter(p) ". "; color: var(--muted); font-weight: 700; }
.player-list li > div:nth-child(2) { grid-area: meta; }
.player-list li > button { grid-area: btn; }

/* Dialogs */
.dialog { border: 0; border-radius: var(--radius); padding: 20px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(11,37,64,.3); color: var(--text); }
.dialog::backdrop { background: rgba(11,37,64,.45); }
.dialog-sm { width: min(420px, calc(100vw - 32px)); }
.dialog h2 { font-size: 20px; margin-bottom: 8px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialog-head h2 { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.add-city { margin-bottom: 12px; }
.city-list { list-style: none; padding: 0; margin: 0; max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.city-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); z-index: 100; max-width: calc(100vw - 32px); }
.toast.is-error { background: #991B1B; }

/* ---------------- Admin: tabs ---------------- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: 44px; padding: 10px 16px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 3px solid transparent;
  font-weight: 800; font-size: 15px; color: var(--muted); cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--sky-400); }
.tab-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--sky-100); color: var(--sky-700); font-size: 12px; display: grid; place-items: center; }
.tab-count:empty { display: none; }

.btn-players { border-color: var(--sky-300); color: var(--sky-700); }

/* ---------------- Admin: players list ---------------- */

.players-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.players-toolbar .field:not(.field-grow) { flex: 0 1 200px; }
.players-summary { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.players-summary:empty { display: none; }

.empty-state { text-align: center; padding: 40px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.empty-state p { margin-top: 4px; }

.p-group { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; }
.p-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; background: var(--sky-50); border-bottom: 1px solid var(--line); }
.p-group-head > div { flex: 1 1 220px; }
.p-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.p-table td { padding: 10px 12px; border-bottom: 1px solid #EEF4F9; vertical-align: middle; }
.p-table tr:last-child td { border-bottom: 0; }
.p-num { color: var(--muted); width: 36px; }
.p-act { text-align: right; width: 1%; white-space: nowrap; }
.p-phone { font-weight: 700; white-space: nowrap; }

@media (max-width: 719px) {
  .p-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .p-table, .p-table tbody, .p-table tr, .p-table td { display: block; }
  .p-table tr { position: relative; padding: 10px 12px; border-bottom: 1px solid #EEF4F9; }
  .p-table td { padding: 2px 0; border: 0; }
  .p-table td[data-label]:not(.p-child):not(.p-num)::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  .p-num { display: none !important; }
  .p-act { position: absolute; top: 6px; right: 6px; width: auto !important; }
  .p-child { padding-right: 100px !important; }
}

/* Logo (client crest) */
.brand-logo { display: block; height: 56px; width: auto; }
.nav .brand-logo-lg { height: 64px; }
@media (min-width: 720px) { .nav .brand-logo-lg { height: 84px; } }
.admin-top .brand-logo { height: 52px; }
.footer .brand-logo { height: 56px; }
/* Horizontal wordmark (header + footer) */
.nav .brand-logo-h, .footer .brand-logo-h { height: 34px; max-width: 100%; }
@media (min-width: 420px) { .nav .brand-logo-h { height: 40px; } }
@media (min-width: 720px) { .nav .brand-logo-h { height: 64px; } .footer .brand-logo-h { height: 44px; } }
.nav .brand { min-width: 0; flex: 0 1 auto; }
.nav { gap: 12px; }
.login-card .brand-logo { height: 120px; align-self: center; }
.login-card h1 { text-align: center; }

/* Badge logo (header + footer) */
.nav .brand-logo-b { height: 56px; }
.footer .brand-logo-b { height: 56px; }
@media (min-width: 720px) { .nav .brand-logo-b { height: 88px; } .footer .brand-logo-b { height: 64px; } }
.nav { padding-top: 16px; padding-bottom: 16px; }

/* Hero photo: lighter file on phones */
@media (max-width: 719px) {
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(11,37,64,.82) 0%, rgba(11,37,64,.78) 55%, rgba(11,37,64,.9) 100%),
      url("assets/hero-kids-mobile.jpg") 55% 40% / cover;
  }
}
