/* jpl-parent-feel.css, the "at home on an iPhone" layer for the parent lane.
   Andy, 17 Nov 2026: parents are our main users, so the family dashboard gets
   the same feel the league office got (soft depth, concentric corners, things
   that rise and settle, numbers that count up) without losing what makes it
   safe: LIGHT, calm, large, one clear action. Parents must never panic.

   Rules this file keeps:
   - Colour, type and layout belong to jpl-light.css and jpl-parent-dashboard.css.
     This file only adds depth, corners and motion on top. Nothing is hidden,
     moved or renamed, so every handler and the Arabic layout are untouched.
   - Glass only on the floating bars, and near opaque (88 percent) so scrolling
     text can never blur into a smudge beside the crest.
   - Logical properties only, so right to left mirrors without extra rules.
   - Every animation stops under prefers-reduced-motion; every glass surface has
     a solid fallback for no backdrop-filter and for prefers-reduced-transparency.
   - Transform and opacity only, nothing per cell.
   Loaded LAST in portal-parent.html. Remove the link to undo it. */

html[data-theme="light"]{
  --pf-shadow-1:0 1px 2px rgba(23,34,37,.05),0 8px 24px rgba(23,34,37,.05);
  --pf-shadow-2:0 1px 2px rgba(23,34,37,.06),0 14px 36px rgba(0,111,105,.10);
  --pf-edge:rgba(255,255,255,.9);
  --pf-ease:cubic-bezier(.22,.8,.3,1);
  --pf-r-card:24px; --pf-r-tile:20px; --pf-r-chip:14px;
}

/* ---- the ground: a very light teal wash, fixed, so cards have something to sit on ---- */
html[data-theme="light"] body.lt{
  background:
    radial-gradient(900px 420px at 85% -80px,rgba(0,238,226,.16),transparent 70%),
    radial-gradient(700px 380px at 5% 0,rgba(0,111,105,.07),transparent 70%),
    var(--lt-bg);
  background-attachment:fixed;
}

/* ---- the bar: navy, frosted a little, hairline under it ---- */
html[data-theme="light"] .topbar{
  background:rgba(21,33,37,.9)!important;
  -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 1px 0 rgba(0,0,0,.2),0 10px 28px rgba(11,26,51,.12);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html[data-theme="light"] .topbar{background:#152125!important}}
@media (prefers-reduced-transparency:reduce){html[data-theme="light"] .topbar{-webkit-backdrop-filter:none;backdrop-filter:none;background:#152125!important}}

/* ---- the family card ---- */
html[data-theme="light"] .parent-dashboard .dash-hero{
  border-radius:var(--pf-r-card);
  border:1px solid rgba(217,227,226,.9)!important;
  box-shadow:var(--pf-shadow-1),inset 0 1px 0 var(--pf-edge)!important;
}
html[data-theme="light"] .parent-dashboard .logo-circle{
  background:linear-gradient(145deg,#f4fffd,#dff5f1)!important;
  border:1px solid #b9d9d3!important;
  box-shadow:0 0 0 4px rgba(0,238,226,.12)!important;
}
html[data-theme="light"] .parent-dashboard .dash-stat .v{
  font-variant-numeric:tabular-nums;font-size:30px!important;line-height:1.1;letter-spacing:-.02em;
}
html[data-theme="light"] .parent-dashboard .dash-stat .l{font-size:11px!important}

/* ---- the one thing to do (or "all up to date") ---- */
html[data-theme="light"] .parent-dashboard .dash-alert{
  border-radius:20px;
  box-shadow:var(--pf-shadow-1),inset 0 1px 0 var(--pf-edge);
}
html[data-theme="light"] .parent-dashboard .dash-alert.calm{
  background:linear-gradient(160deg,#f3fcfa,#e4f6f2)!important;
}
html[data-theme="light"] .parent-dashboard .dash-alert:not(.calm){
  background:linear-gradient(160deg,#fffaf0,#fff2d9)!important;
}
html[data-theme="light"] .parent-dashboard .ns-go{
  border-radius:14px;
  box-shadow:0 6px 16px rgba(21,33,37,.22),inset 0 1px 0 rgba(255,255,255,.14);
  transition:transform .18s var(--pf-ease),box-shadow .18s var(--pf-ease);
}
html[data-theme="light"] .parent-dashboard .ns-go:active{transform:scale(.97);box-shadow:0 2px 6px rgba(21,33,37,.2)}

/* ---- tiles ---- */
html[data-theme="light"] .parent-dashboard .dash-tile{
  border-radius:var(--pf-r-tile);
  border:1px solid rgba(214,226,223,.95)!important;
  box-shadow:var(--pf-shadow-1),inset 0 1px 0 var(--pf-edge)!important;
  transition:transform .22s var(--pf-ease),box-shadow .22s var(--pf-ease),border-color .22s var(--pf-ease)!important;
}
html[data-theme="light"] .parent-dashboard .dash-tile.primary{
  background:linear-gradient(160deg,#f3fffd,#dff5f1)!important;
  border-color:#8ccac1!important;
  box-shadow:var(--pf-shadow-2),inset 0 1px 0 var(--pf-edge)!important;
}
@media (hover:hover){
  html[data-theme="light"] .parent-dashboard .dash-tile:hover{
    transform:translateY(-2px);
    box-shadow:var(--pf-shadow-2),inset 0 1px 0 var(--pf-edge)!important;
  }
}
html[data-theme="light"] .parent-dashboard .dash-tile:active{transform:scale(.975)}
/* the icon sits in a tinted rounded square, the way an app icon does (concentric: 20px tile, 18px pad, 12px icon) */
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile .ic{
  box-sizing:content-box;width:24px;height:24px;padding:10px;border-radius:14px;
  background:linear-gradient(145deg,#f1fbf9,#dcf3ef);
  box-shadow:inset 0 0 0 1px rgba(0,111,105,.12);
}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile.primary .ic{
  background:linear-gradient(145deg,#00eee2,#00bfb4);color:#0b2a28!important;box-shadow:0 4px 12px rgba(0,191,180,.35);
}

/* ---- each child ---- */
html[data-theme="light"] .parent-dashboard #children-grid .dash-tile{border-radius:var(--pf-r-tile)}
html[data-theme="light"] .parent-dashboard .kid-pic{border-radius:16px;box-shadow:0 0 0 3px #fff,0 4px 14px rgba(23,34,37,.12)}
/* the journey bar: rounded, a little thicker, and it fills in once when the card appears */
.parent-dashboard .kid-steps{gap:5px!important}
.parent-dashboard .kid-steps span{height:7px!important;border-radius:999px!important;transform-origin:left center;animation:pfFill .5s var(--pf-ease) both}
[dir="rtl"] .parent-dashboard .kid-steps span{transform-origin:right center}
.parent-dashboard .kid-steps span:nth-child(2){animation-delay:.07s}
.parent-dashboard .kid-steps span:nth-child(3){animation-delay:.14s}
.parent-dashboard .kid-steps span:nth-child(4){animation-delay:.21s}
.parent-dashboard .kid-steps span:nth-child(5){animation-delay:.28s}
@keyframes pfFill{from{transform:scaleX(0);opacity:.2}to{transform:scaleX(1);opacity:1}}

/* ---- the folding sections ---- */
html[data-theme="light"] .parent-dashboard .parent-section{
  border-radius:var(--pf-r-tile);
  border:1px solid rgba(214,226,223,.95);
  box-shadow:var(--pf-shadow-1),inset 0 1px 0 var(--pf-edge);
}
html[data-theme="light"] .parent-dashboard .parent-chevron{transition:transform .28s var(--pf-ease)}
html[data-theme="light"] .parent-dashboard .parent-section[open] .parent-section-body{animation:pfDrop .28s var(--pf-ease) both}
@keyframes pfDrop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
html[data-theme="light"] .parent-dashboard .parent-section>summary{transition:background .18s var(--pf-ease)}
html[data-theme="light"] .parent-dashboard .parent-section>summary:active{background:#f1f8f6}
html[data-theme="light"] .parent-dashboard .parent-section-meta:not(:empty){border-radius:999px;padding:6px 12px}

html[data-theme="light"] .parent-dashboard .parent-help{border-radius:var(--pf-r-chip);box-shadow:inset 0 1px 0 var(--pf-edge)}

/* ---- the first thing on the page settles in once, in order ---- */
@media (prefers-reduced-motion:no-preference){
  .parent-dashboard .parent-pagehead,
  .parent-dashboard .dash-hero,
  .parent-dashboard .dash-alert,
  .parent-dashboard .parent-quick,
  .parent-dashboard .parent-sections{animation:pfRise .5s var(--pf-ease) both}
  .parent-dashboard .dash-hero{animation-delay:.04s}
  .parent-dashboard .dash-alert{animation-delay:.1s}
  .parent-dashboard .parent-quick{animation-delay:.16s}
  .parent-dashboard .parent-sections{animation-delay:.22s}
  @keyframes pfRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
}

/* ---- squircle corners where the browser can draw them ---- */
@supports (corner-shape:squircle){
  html[data-theme="light"] .parent-dashboard :is(.dash-hero,.parent-section,.dash-tile,.dash-alert){corner-shape:squircle;border-radius:34px}
  html[data-theme="light"] .parent-dashboard .dash-tile{border-radius:28px}
}

@media (prefers-reduced-motion:reduce){
  .parent-dashboard *,.parent-dashboard *::before,.parent-dashboard *::after{animation:none!important;transition:none!important}
}

/* =====================================================================
   THE REST OF THE PARENT LANE (17 Nov 2026, second half)
   Add a player, child profile, join an academy, payments, sign in and
   register. Two families of page share this file:
   - pages built on jpl-light.css (.lt-card, .lt-btn, .lt-field ...)
   - older pages the light sheet repaints (.card, .section, .btn, .field ...)
   Money screens (checkout, pay invoice) get depth and press feedback only.
   Nothing about a price, a total or a button's meaning is touched.
   ===================================================================== */

/* ---- the jpl-light.css family ---- */
html[data-theme="light"] .lt-bar{
  background:rgba(11,26,51,.9);
  -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 28px rgba(11,26,51,.12);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html[data-theme="light"] .lt-bar{background:#0b1a33}}
@media (prefers-reduced-transparency:reduce){html[data-theme="light"] .lt-bar{-webkit-backdrop-filter:none;backdrop-filter:none;background:#0b1a33}}

html[data-theme="light"] .lt-card{
  border-radius:var(--pf-r-card);
  border-color:rgba(217,225,236,.9);
  box-shadow:var(--pf-shadow-1),inset 0 1px 0 var(--pf-edge);
}
html[data-theme="light"] .lt-btn{
  box-shadow:0 8px 20px rgba(10,124,138,.2),inset 0 1px 0 rgba(255,255,255,.55);
  transition:transform .18s var(--pf-ease),box-shadow .18s var(--pf-ease),filter .18s var(--pf-ease);
}
html[data-theme="light"] .lt-btn:active{transform:scale(.98);box-shadow:0 2px 8px rgba(10,124,138,.2)}
html[data-theme="light"] .lt-btn.ghost,html[data-theme="light"] .lt-btn.outline{box-shadow:none}
html[data-theme="light"] .lt-btn.navy{box-shadow:0 8px 20px rgba(11,26,51,.22),inset 0 1px 0 rgba(255,255,255,.12)}
html[data-theme="light"] .lt-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-theme="light"] .lt-field select,html[data-theme="light"] .lt-field textarea,html[data-theme="light"] .lt-input{
  border-radius:16px;transition:border-color .18s var(--pf-ease),box-shadow .18s var(--pf-ease);
}
html[data-theme="light"] :is(.lt-alert,.lt-note,.lt-box,.lt-switchline){border-radius:16px}
html[data-theme="light"] .lt-tile{border-radius:var(--pf-r-tile);box-shadow:var(--pf-shadow-1),inset 0 1px 0 var(--pf-edge);transition:transform .22s var(--pf-ease),box-shadow .22s var(--pf-ease)}
html[data-theme="light"] .lt-tile:active{transform:scale(.975)}
html[data-theme="light"] .lt-tile .lt-ico{border-radius:14px;background:linear-gradient(145deg,#f1fbf9,#dcf3ef)}
html[data-theme="light"] .lt-pill{border-radius:999px}
.lt-progress span{border-radius:999px;transform-origin:left center;animation:pfFill .5s var(--pf-ease) both}
[dir="rtl"] .lt-progress span{transform-origin:right center}
.lt-progress span:nth-child(2){animation-delay:.07s}.lt-progress span:nth-child(3){animation-delay:.14s}.lt-progress span:nth-child(4){animation-delay:.21s}

/* ---- the older pages the light sheet repaints ---- */
html[data-theme="light"] :is(.card,.section,.summary,.pay-area){
  border-radius:var(--pf-r-card)!important;
  border-color:rgba(217,225,236,.9)!important;
  box-shadow:var(--pf-shadow-1),inset 0 1px 0 var(--pf-edge)!important;
}
html[data-theme="light"] :is(.btn-primary,.submit-btn,.btn:not(.ghost):not(.btn-ghost):not(.btn-secondary):not(.btn-danger):not(.btn-reject):not(.btn-approve):not(.btn-view)){
  box-shadow:0 8px 20px rgba(10,124,138,.2),inset 0 1px 0 rgba(255,255,255,.55)!important;
  transition:transform .18s var(--pf-ease),box-shadow .18s var(--pf-ease),filter .18s var(--pf-ease);
}
html[data-theme="light"] :is(.btn,.btn-primary,.submit-btn):not(:disabled):active{transform:scale(.98)}
html[data-theme="light"] .field :is(input,select,textarea){border-radius:16px!important;transition:border-color .18s var(--pf-ease),box-shadow .18s var(--pf-ease)}
html[data-theme="light"] .tick-row{border-radius:16px}
/* the three step markers at the top of Add a player */
html[data-theme="light"] .progress-step .num{box-shadow:0 2px 8px rgba(11,26,51,.12);transition:background .25s var(--pf-ease),transform .25s var(--pf-ease)}
html[data-theme="light"] .progress-step.active .num{transform:scale(1.08)}

/* ---- the bar that runs off a phone (Add a player, profile, join): crest, dashboard icon, cancel ---- */
@media (max-width:600px){
  html[data-theme="light"] .topbar .topbar-logo>span{display:none}
  html[data-theme="light"] .topbar .nav-links{gap:4px}
  html[data-theme="light"] .topbar .nav-links .nav-link{font-size:0;gap:0;padding:0;min-width:44px;min-height:44px;justify-content:center}
  html[data-theme="light"] .topbar .nav-links .nav-link svg{width:22px;height:22px}
  html[data-theme="light"] .topbar .nav-links .back-link{font-size:12.5px;white-space:nowrap;padding:8px 12px;letter-spacing:.04em}
  html[data-theme="light"] .topbar .nav-links .arabic-toggle{padding:2px 4px;gap:4px}
  /* join an academy: the brand word goes, links stay on one line, the bar keeps a small margin */
  html[data-theme="light"] .topbar .topbar-left .brand{display:none}
  html[data-theme="light"] .topbar:has(.topbar-left){padding-inline:12px;gap:8px}
  html[data-theme="light"] .topbar .topbar-left{gap:8px;white-space:nowrap}
  html[data-theme="light"] .topbar .topbar-left .linkish{white-space:nowrap}
}

/* checkout: the bar sits inside the page column, so it is a rounded bar and the brand stays on one line */
html[data-theme="light"] .wrap>.topbar{border-radius:20px;min-height:64px;height:auto;padding:10px 14px}
html[data-theme="light"] .wrap>.topbar .brand{display:flex;align-items:center;gap:10px;white-space:nowrap;line-height:1.1}
html[data-theme="light"] .wrap>.topbar .brand .jpl-crest-link{margin-inline-end:0!important}
html[data-theme="light"] .wrap>.topbar .brand b{color:var(--lt-cyan)}

@media (prefers-reduced-motion:reduce){
  .lt-progress span,.lt-btn,.lt-tile,.progress-step .num,:is(.btn,.btn-primary,.submit-btn){animation:none!important;transition:none!important}
}

/* =====================================================================
   BOLDER (17 Nov 2026, evening). The first pass was too gentle to notice, so
   the family dashboard now has a dark hero card, colour-coded tiles and a
   filled primary action. Still light and calm underneath, still one clear next
   step. To dial it back, delete this block (everything above it stands alone).
   ===================================================================== */
html[data-theme="light"] body.lt{
  background:
    radial-gradient(900px 460px at 90% -100px,rgba(0,238,226,.30),transparent 68%),
    radial-gradient(700px 420px at -10% 0,rgba(0,111,105,.12),transparent 70%),
    var(--lt-bg);
  background-attachment:fixed;
}
html[data-theme="light"] .parent-pagehead h1{font-size:44px!important;line-height:1.05;letter-spacing:.005em}

/* the family card: a dark hero, the way a banking app opens */
html[data-theme="light"] .parent-dashboard .dash-hero{
  background:
    radial-gradient(420px 240px at 92% -40px,rgba(0,238,226,.38),transparent 70%),
    linear-gradient(155deg,#10303a 0%,#0b1f27 58%,#0a4b53 140%)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 26px 54px rgba(8,40,44,.32),0 2px 4px rgba(8,40,44,.2),inset 0 1px 0 rgba(255,255,255,.18)!important;
  color:#fff;
}
html[data-theme="light"] .parent-dashboard .dash-name{color:#fff!important}
html[data-theme="light"] .parent-dashboard .identity-pills span{color:rgba(255,255,255,.78)!important}
html[data-theme="light"] .parent-dashboard .logo-circle{
  background:linear-gradient(145deg,#5cffff,#00bfb4)!important;border:0!important;
  box-shadow:0 0 0 4px rgba(0,238,226,.18),0 10px 28px rgba(0,238,226,.35)!important;
}
html[data-theme="light"] .parent-dashboard .logo-placeholder{color:#04262a!important}
.parent-dashboard .dash-stats{border-top-color:rgba(255,255,255,.16)}
html[data-theme="light"] .parent-dashboard .dash-stat+.dash-stat{border-inline-start-color:rgba(255,255,255,.16)!important}
html[data-theme="light"] .parent-dashboard .dash-stat .v{
  color:#5cffff!important;font-family:JPLParentTitle,Anton,sans-serif!important;font-size:42px!important;font-weight:400!important;
  letter-spacing:.01em;text-shadow:0 0 28px rgba(0,238,226,.45);
}
html[data-theme="light"] .parent-dashboard .dash-stat .l{color:rgba(255,255,255,.78)!important;font-size:11px!important;letter-spacing:.06em}

/* the quick actions: each one its own colour, the main one filled */
html[data-theme="light"] .parent-dashboard .parent-quick-grid{gap:14px}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile{min-height:156px;padding:20px;border-radius:28px}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile .ic{
  width:26px;height:26px;padding:13px;border-radius:18px;color:#fff!important;
  box-shadow:0 8px 18px rgba(23,34,37,.22),inset 0 1px 0 rgba(255,255,255,.3);
}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile:nth-child(1) .ic{background:linear-gradient(145deg,#2bd48a,#0f9a5e)}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile:nth-child(2) .ic{background:linear-gradient(145deg,#5aa0ff,#2563eb)}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile:nth-child(4) .ic{background:linear-gradient(145deg,#6f84a6,#3f5373)}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile .lab{font-size:17px}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile.primary{
  background:linear-gradient(150deg,#5cffff,#00d6cb 60%,#00b3a8)!important;
  border:0!important;
  box-shadow:0 22px 44px rgba(0,190,180,.38),inset 0 1px 0 rgba(255,255,255,.6)!important;
}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile.primary .ic{
  background:rgba(4,38,42,.9);color:#5cffff!important;box-shadow:0 8px 18px rgba(4,38,42,.35);
}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile.primary .lab{color:#04262a!important}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile.primary .desc{color:rgba(4,38,42,.78)!important}

/* each child: a proper card */
html[data-theme="light"] .parent-dashboard #children-grid .dash-tile{
  background:linear-gradient(160deg,#ffffff,#eefaf8)!important;
  border:1px solid #cde8e3!important;border-inline-start:5px solid #00c2b6!important;
  border-radius:28px;padding:20px;
  box-shadow:var(--pf-shadow-2),inset 0 1px 0 var(--pf-edge)!important;
}
html[data-theme="light"] .parent-dashboard .kid-pic{width:64px;height:64px;border-radius:20px}
html[data-theme="light"] .parent-dashboard #children-grid .kid-body .lab{font-size:19px}

html[data-theme="light"] .parent-dashboard .parent-section{border-radius:26px}
html[data-theme="light"] .parent-dashboard .parent-section>summary{min-height:88px}
html[data-theme="light"] .parent-dashboard .parent-section summary strong{font-size:17px}

@supports (corner-shape:squircle){
  html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile{border-radius:44px}
  html[data-theme="light"] .parent-dashboard #children-grid .dash-tile{border-radius:44px}
}

/* =====================================================================
   THE CHILD PAGE (portal-parent-child.html): the same dark hero as the
   dashboard, chips you can actually read, and bigger stat tiles.
   Before this the hero was a washed-out grey gradient and the VERIFIED and
   ACTIVE PLAYER chips were light yellow on light yellow.
   ===================================================================== */
html[data-theme="light"] .hero-wrap{
  background:
    radial-gradient(520px 280px at 85% -60px,rgba(0,238,226,.40),transparent 70%),
    linear-gradient(160deg,#10303a 0%,#0b1f27 60%,#0a4b53 140%)!important;
  border-radius:0 0 38px 38px;
  box-shadow:0 26px 54px rgba(8,40,44,.30);
  padding-bottom:26px;
}
html[data-theme="light"] .hero-wrap .child-photo{
  box-shadow:0 0 0 4px rgba(0,238,226,.55),0 0 0 10px rgba(0,238,226,.12),0 18px 44px rgba(0,238,226,.32)!important;
}
html[data-theme="light"] .hero-wrap .pretitle{color:#5cffff!important}
html[data-theme="light"] .hero-wrap .child-name-display{
  color:#fff!important;font-family:JPLParentTitle,Anton,sans-serif!important;font-weight:400!important;letter-spacing:.01em;
  font-size:clamp(34px,9vw,48px)!important;text-shadow:0 6px 28px rgba(0,238,226,.25);
}
html[data-theme="light"] .hero-wrap .tag{
  background:rgba(255,255,255,.12)!important;color:#fff!important;
  border:1px solid rgba(255,255,255,.26)!important;border-radius:999px!important;
  font-weight:800;letter-spacing:.08em;
}
html[data-theme="light"] .hero-wrap .tag.green{background:rgba(27,219,160,.26)!important;color:#9dffdc!important;border-color:rgba(27,219,160,.55)!important}
html[data-theme="light"] .hero-wrap .photo-edit{box-shadow:0 8px 20px rgba(0,0,0,.35)}

html[data-theme="light"] .jpl-team-picker{border-radius:24px;box-shadow:var(--pf-shadow-1),inset 0 1px 0 var(--pf-edge)}
html[data-theme="light"] .tab.active{border-bottom-width:4px}
html[data-theme="light"] .stat-box{
  border-radius:22px!important;background:linear-gradient(180deg,#fff,#eefaf8)!important;border:1px solid #cde8e3!important;
  box-shadow:var(--pf-shadow-1),inset 0 1px 0 var(--pf-edge)!important;
}
html[data-theme="light"] .stat-box .stat-num{
  font-family:JPLParentTitle,Anton,sans-serif!important;font-weight:400!important;font-size:38px!important;color:#00867f!important;
}
html[data-theme="light"] .panel>.card,html[data-theme="light"] .panel .card{border-radius:28px!important}

/* the Back button and the language labels in the navy bar were dark on dark */
html[data-theme="light"] .topbar .back-link{color:#fff!important;border-color:rgba(255,255,255,.5)!important}
html[data-theme="light"] .topbar .arabic-label{color:rgba(255,255,255,.9)!important}
html[data-theme="light"] .topbar .nav-link{color:#fff}

/* =====================================================================
   FROSTED GLASS, ALL THE PARENT LANE (17 Nov 2026, night).
   Andy: the tiles did not have the frosted 3D glass the league office has, some
   things were centred and some pushed to the side, and the child page was long.
   So: the ground now has colour in it (teal, blue, violet) so glass has something
   to blur; every card, tile and folding section is frosted white glass with a lit
   top edge, a darker lower edge and a soft deep shadow; headings and tiles are
   centred; the child page's player card is a dropdown.
   Phones: Safari draws a plain rounded corner where it cannot draw a squircle
   (corner-shape), so the radius is generous (34px) to read as one.
   Solid fallbacks for no backdrop-filter and for reduced transparency.
   ===================================================================== */
html[data-theme="light"]{
  --pg-glass:linear-gradient(160deg,rgba(255,255,255,.82),rgba(255,255,255,.50));
  --pg-edge:rgba(255,255,255,.85);
  --pg-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(110,135,170,.16),0 30px 60px rgba(38,70,115,.18),0 6px 14px rgba(38,70,115,.09);
  --pg-r:34px;
}
html[data-theme="light"] body,html[data-theme="light"] body.lt{
  background:
    radial-gradient(720px 520px at 8% -4%,rgba(0,238,226,.42),transparent 66%),
    radial-gradient(660px 500px at 98% 10%,rgba(96,140,255,.36),transparent 66%),
    radial-gradient(760px 560px at 50% 106%,rgba(176,128,255,.28),transparent 66%),
    #e8f0f8 !important;
  background-attachment:fixed !important;
}

/* the glass itself */
html[data-theme="light"] :is(
  .parent-dashboard .dash-tile:not(.primary),
  .parent-dashboard .parent-section,
  .parent-dashboard #children-grid .dash-tile,
  .lt-card,.lt-tile,
  .card,.section,.summary,.pay-area,
  .jpl-team-picker,.stat-box,.pcard-fold
){
  background:var(--pg-glass)!important;
  border:1px solid var(--pg-edge)!important;
  border-radius:var(--pg-r)!important;
  box-shadow:var(--pg-shadow)!important;
  -webkit-backdrop-filter:blur(26px) saturate(180%);backdrop-filter:blur(26px) saturate(180%);
}
html[data-theme="light"] .parent-dashboard #children-grid .dash-tile{border-inline-start:1px solid var(--pg-edge)!important}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html[data-theme="light"] :is(.parent-dashboard .dash-tile:not(.primary),.parent-dashboard .parent-section,.lt-card,.lt-tile,.card,.section,.summary,.pay-area,.jpl-team-picker,.stat-box,.pcard-fold){background:#f7fafd!important}
}
@media (prefers-reduced-transparency:reduce){
  html[data-theme="light"] :is(.parent-dashboard .dash-tile:not(.primary),.parent-dashboard .parent-section,.lt-card,.lt-tile,.card,.section,.summary,.pay-area,.jpl-team-picker,.stat-box,.pcard-fold){-webkit-backdrop-filter:none;backdrop-filter:none;background:#f7fafd!important}
}
@supports (corner-shape:squircle){
  html[data-theme="light"] :is(.parent-dashboard .dash-tile,.parent-dashboard .parent-section,.lt-card,.card,.section,.pay-area,.jpl-team-picker,.stat-box,.pcard-fold){corner-shape:squircle;border-radius:56px!important}
}
/* the filled main tile keeps its colour but gets the same lit edge and depth */
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile.primary{
  border-radius:var(--pg-r)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 -2px 0 rgba(0,120,115,.25),0 28px 50px rgba(0,190,180,.38)!important;
}
/* the dark family card matches: lit top edge */
html[data-theme="light"] .parent-dashboard .dash-hero{border-radius:var(--pg-r)}

/* ---- everything centred, the way the league office reads ---- */
html[data-theme="light"] .parent-pagehead{justify-content:center;text-align:center}
html[data-theme="light"] .parent-pagehead>*{width:100%;text-align:center}
html[data-theme="light"] :is(.parent-quick h2,.parent-players-title,.card-title,.panel-title,.section-title,.pretitle){text-align:center!important}
html[data-theme="light"] .parent-dashboard .dash-tile{align-items:center;justify-content:center;text-align:center!important}
html[data-theme="light"] .parent-dashboard .parent-quick-grid .dash-tile{gap:12px}
html[data-theme="light"] .parent-dashboard .parent-section>summary strong,
html[data-theme="light"] .parent-dashboard .parent-section>summary small{text-align:center}
html[data-theme="light"] .parent-dashboard .dash-alert{text-align:center;justify-content:center}
html[data-theme="light"] .parent-dashboard .dash-alert :is(.ns-t,.ns-b){text-align:center!important}
html[data-theme="light"] .parent-dashboard .parent-help{justify-content:center;text-align:center}

/* ---- the player card on the child page: a dropdown ---- */
.pcard>summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;
  cursor:pointer;min-height:64px;padding:4px 2px;
}
.pcard>summary::-webkit-details-marker{display:none}
.pcard-sum-t{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0;text-align:center}
.pcard-sum-t .pcard-title{font-size:19px!important;line-height:1.2}
.pcard-chev{font-size:24px;line-height:1;color:#0a8f73;transition:transform .28s var(--pf-ease);flex:0 0 28px;text-align:center}
.pcard[open] .pcard-chev{transform:rotate(180deg)}
.pcard-body{flex-direction:column!important;align-items:center!important;gap:14px!important;margin-top:12px!important}
.pcard-qr{margin:0 auto!important}
.pcard-words{width:100%;min-width:0!important;flex:none!important}
.pcard-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.pcard-btns .btn{min-height:46px;padding:10px 6px;font-size:12px;letter-spacing:.04em;white-space:normal;line-height:1.2}
html[data-theme="light"] .pcard-btns .pcard-replace{background:rgba(232,52,78,.10)!important;color:#b3261e!important;border:1px solid rgba(232,52,78,.4)!important;box-shadow:none!important}
.pcard-fold{margin-top:10px;padding:0 16px;border-radius:22px!important}
.pcard-fold>summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;
  cursor:pointer;min-height:52px;padding:12px 0;font-size:12px!important;margin:0!important;
}
.pcard-fold>summary::-webkit-details-marker{display:none}
.pcard-fold>summary::after{content:"\2304";font-size:20px;line-height:1;color:#0a8f73;transition:transform .28s var(--pf-ease)}
.pcard-fold[open]>summary::after{transform:rotate(180deg)}
.pcard-fold[open]{padding-bottom:12px}
.pcard-fold.pcard-app{border-top:0!important;margin-top:10px;padding-top:0}
.pcard-fold .pcard-lead{font-size:14px;margin:0 0 10px}
.pcard-fold[open]>:not(summary){animation:pfDrop .28s var(--pf-ease) both}

/* ---- Next Fixture and the result rows: crest over name, the time in the middle ---- */
.fxr{padding:4px 0}
.fxr+.fxr{margin-top:16px;padding-top:16px;border-top:1px solid rgba(120,140,170,.2)}
.fxr-meta{text-align:center;font-size:11.5px;font-weight:700;letter-spacing:.03em;color:#5b6d82;margin-bottom:14px;line-height:1.4}
.fxr-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px}
.fxr-side{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;min-width:0}
.fxr-crest{width:52px;height:52px;border-radius:18px;background:#fff;box-shadow:0 10px 22px rgba(38,70,115,.2),0 0 0 1px rgba(255,255,255,.9)}
.fxr-initial{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#e9fbf9,#c9ece8);color:#0a6f7c;font-weight:800;font-size:22px}
.fxr-name{font-size:14px;font-weight:700;line-height:1.25;color:#33475b;overflow-wrap:normal;word-break:normal;hyphens:none}
.fxr-side.mine .fxr-name{font-weight:800;color:#0b1a33}
.fxr-mid{min-width:84px;text-align:center;padding:10px 12px;border-radius:20px;background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.95);box-shadow:inset 0 1px 0 #fff,0 10px 22px rgba(38,70,115,.14)}
.fxr-time{font-size:12.5px;font-weight:800;color:#0b1a33;line-height:1.4}

/* the three card buttons read as one set, and an odd last stat tile spans the row */
html[data-theme="light"] .pcard-btns .btn:not(.pcard-replace){
  background:linear-gradient(180deg,#ffffff,#eef4fa)!important;color:#0b1a33!important;
  border:1px solid rgba(255,255,255,.95)!important;border-radius:18px!important;
  box-shadow:inset 0 1px 0 #fff,0 8px 18px rgba(38,70,115,.14)!important;text-decoration:none;
}
html[data-theme="light"] .pcard-btns .btn{border-radius:18px!important}
html[data-theme="light"] .stat-grid .stat-box:last-child:nth-child(odd){grid-column:1/-1}
.fxr-teams{align-items:start}
.fxr-mid{align-self:center}
