/* 3S Academy component styles (ID card, photo capture, check result, schedule rows, field tree…) on top of am14-base.css */
.brand .logo { color: var(--brand); font-size: 12px; }
.brand .logo img { object-fit: cover !important; transform: scale(1.12); } /* the logo fills its circle */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 99; display: none; max-width: min(560px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: #12301f; border: 1px solid #1f8a66; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.toast.bad { background: #3a1216; border-color: #8b1d26; }
.warn { color: var(--warn); }
.badge.muted, .badge.x { color: var(--muted); }

/* avatars + photo capture */
.av { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; display: inline-grid; place-items: center; background: #1a2430; font-weight: 800; font-size: 13px; color: var(--muted); vertical-align: middle; }
.av.big { width: 120px; height: 160px; border-radius: 14px; font-size: 32px; }
.photoCap { width: 150px; }
.photoPrev { width: 150px; height: 200px; border-radius: 12px; border: 1px dashed #3a4654; display: grid; place-items: center; color: var(--muted); overflow: hidden; background: #070b11; }
.photoPrev img { width: 100%; height: 100%; object-fit: cover; }

dl.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 14px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 13px; } dl.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* ── the ID card: CR80 85.6 × 54 mm ── */
.cardPair { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0; }
.idc { --c: #d21924; width: 85.6mm; height: 54mm; border-radius: 3.2mm; overflow: hidden; position: relative; background: #fff; color: #111; font-family: Arial, "Segoe UI", sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.45); flex: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc .band { height: 11mm; background: var(--c); color: #fff; display: flex; align-items: center; gap: 2mm; padding: 0 3mm; }
.idc .band .lg { width: 8mm; height: 8mm; border-radius: 50%; background: #fff; color: var(--c); display: grid; place-items: center; font-size: 2.2mm; font-weight: 900; overflow: hidden; flex: none; }
.idc .band .lg img { width: 100%; height: 100%; object-fit: contain; }
.idc .band .an { font-weight: 900; font-size: 3.2mm; letter-spacing: .2mm; line-height: 1.05; text-transform: uppercase; }
.idc .tag { position: absolute; right: 3mm; top: 12.5mm; background: #111; color: #fff; font-size: 2mm; font-weight: 800; letter-spacing: .3mm; padding: .7mm 2mm; border-radius: 1mm; }
.idc .body { display: flex; gap: 3mm; padding: 3mm; }
.idc .ph { width: 22mm; height: 29mm; border-radius: 1.5mm; overflow: hidden; background: #e8e8e8; flex: none; border: .3mm solid #ddd; }
.idc .ph img { width: 100%; height: 100%; object-fit: cover; }
.idc .noPhoto { width: 100%; height: 100%; display: grid; place-items: center; color: #999; font-size: 2.4mm; font-weight: 700; }
.idc .info { min-width: 0; padding-top: 4.5mm; }
.idc .nm { font-weight: 800; font-size: 3.4mm; line-height: 1.1; margin-bottom: .8mm; }
.idc .id { font-family: Consolas, ui-monospace, monospace; font-weight: 900; font-size: 4.2mm; color: var(--c); margin-bottom: 1mm; letter-spacing: .1mm; }
.idc .ln { font-size: 2.6mm; line-height: 1.45; } .idc .ln span { color: #666; }
.idc.back { display: flex; gap: 3mm; padding: 4mm 3mm 0; }
.idc .bq { width: 30mm; flex: none; text-align: center; }
.idc .bq .qr { width: 30mm; height: 30mm; } .idc .bq .qr svg { width: 100%; height: 100%; display: block; }
.idc .bq .small { font-size: 2.2mm; color: #555; margin-top: .6mm; }
.idc .bi { min-width: 0; padding-top: 1mm; }
.idc .bi .ln { display: flex; flex-direction: column; margin-bottom: 1.4mm; font-size: 2.3mm; } .idc .bi .ln b { font-size: 2.9mm; color: #111; }
.idc .bi .note { font-size: 1.8mm; color: #777; line-height: 1.3; }
.idc .band2 { position: absolute; left: 0; right: 0; bottom: 0; height: 5mm; background: var(--c); color: #fff; font-size: 2mm; font-weight: 700; display: grid; place-items: center; letter-spacing: .2mm; }

/* print page */
.printPage { display: flex; flex-wrap: wrap; gap: 8mm; align-content: flex-start; }
.printPage .noPrint { flex-basis: 100%; }
.printPage .cut { padding: 2mm; border: .2mm dashed #888; border-radius: 1mm; }
body.printMode .topbar, body.printMode .nav { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; color: #000; }
  .topbar, .nav, .noPrint, .toast, .poweredBy { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .idc { box-shadow: none; }
}

/* public homepage */
body.home section { margin: 34px auto; }
body.home section.hero { margin: 0; padding: 56px 0 46px; background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--brand)) 55%, #05070b), #05070b 75%); border-bottom: 1px solid rgba(255,255,255,.08); }
.heroIn { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding-top: 0 !important; padding-bottom: 0 !important; }
.heroLogo { width: 132px; height: 132px; border-radius: 50%; background: #fff; object-fit: contain; flex: none; box-shadow: 0 0 0 4px rgba(255,255,255,.15), 0 20px 50px rgba(0,0,0,.4); }
.heroLogo.txt { display: grid; place-items: center; color: var(--c, var(--brand)); font-weight: 900; font-size: 34px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); text-transform: uppercase; margin-bottom: 8px; }
.hero .lead { font-size: 18px; color: #dfe5ec; margin: 0 0 20px; }
.btn.big { padding: 13px 20px; font-size: 16px; }
body.home section.wrap { padding-top: 0; padding-bottom: 0; }
.prog .pname { font-size: 20px; }
ul.times { list-style: none; padding: 0; margin: 12px 0 0; }
ul.times li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #1d2733; }
ul.times li span { color: var(--muted); }
.homeFoot { border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 13px; text-align: center; }
.homeFoot .wrap { padding: 20px 16px 30px; }
@media (max-width: 560px) { .heroIn { justify-content: center; text-align: center; } .heroIn .row { justify-content: center; } .heroLogo { width: 104px; height: 104px; } body.home .topbar .act .ghost { display: none; } }

/* homepage — menu, socials, matches, schedule, team, booking, story, gallery */
.homeNav { position: sticky; top: 63px; z-index: 25; background: rgba(5,8,13,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.07); }
.homeNav .wrap { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px !important; align-items: center; scrollbar-width: none; }
.homeNav a { text-decoration: none; white-space: nowrap; padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: #cfd6de; }
.homeNav a:hover { background: #18212c; color: #fff; }
.homeNav button { margin-inline-start: auto; white-space: nowrap; }
body.home section[id] { scroll-margin-top: 120px; }
.socials { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.soc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.soc:hover { background: var(--brand); }
.soc svg { width: 20px; height: 20px; }
.match { border: 1px solid #243040; border-radius: 16px; padding: 14px; background: linear-gradient(180deg, rgba(16,23,33,.96), rgba(8,12,18,.96)); display: grid; gap: 8px; }
.match.isLive { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 10px 30px rgba(200,16,46,.2); }
.mMeta { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.mTeams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.mTeams .tm { font-size: 16px; } .mTeams .tm.r { text-align: end; }
.mTeams .score { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; padding: 2px 12px; border-radius: 10px; background: #0b121b; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour .tourImg { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.week { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.day { border: 1px solid #243040; border-radius: 16px; overflow: hidden; background: rgba(9,14,21,.85); }
.day .dn { background: var(--brand); color: #fff; font-weight: 900; padding: 8px 12px; letter-spacing: .03em; }
.day .slot { display: grid; padding: 9px 12px; border-top: 1px solid #1a2430; } .day .slot b { font-variant-numeric: tabular-nums; }
.people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin-bottom: 14px; }
.tmCard { border: 1px solid #243040; border-radius: 18px; padding: 14px; text-align: center; background: linear-gradient(180deg, rgba(16,23,33,.96), rgba(8,12,18,.96)); }
.tmCard img, .tmCard .ph0 { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: grid; place-items: center; background: #1a2430; font-size: 34px; font-weight: 900; color: var(--muted); box-shadow: 0 0 0 3px var(--brand); }
.tmCard b { display: block; font-size: 17px; } .tmCard .ttl { color: var(--brand); font-weight: 800; font-size: 13.5px; margin: 2px 0 4px; filter: brightness(1.4); }
.slots { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.slotBtn { min-height: 38px; padding: 6px 12px; font-variant-numeric: tabular-nums; }
.slotBtn.on { background: var(--brand); border-color: var(--brand); } .slotBtn.taken { text-decoration: line-through; }
.fieldInfo img { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; margin-bottom: 6px; }
.timeline { position: relative; padding-inline-start: 22px; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), #243040); }
.tl { position: relative; margin-bottom: 18px; }
.tlDot { position: absolute; inset-inline-start: -21px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(200,16,46,.25); }
.tlBody { border: 1px solid #243040; border-radius: 14px; padding: 12px 14px; background: rgba(9,14,21,.85); }
.tlDate { font-weight: 900; color: var(--brand); filter: brightness(1.4); font-size: 13px; letter-spacing: .05em; }
.tlBody img { max-width: 100%; max-height: 260px; border-radius: 10px; margin-top: 8px; }
.gal { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.gi { position: relative; padding: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: #0b121b; border: 1px solid #243040; display: block; min-height: 0; }
.gi img, .gi video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gi .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; text-align: start; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.vthumb { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.vthumb .play { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; font-size: 20px; border: 2px solid #fff; }
.vthumb.link { gap: 6px; } .vthumb.link .play { position: static; }
img.lb, video.lb { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 10px; background: #000; display: block; }
.join { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; border-color: var(--brand); }
.kid { border-top: 1px dashed #2b3744; padding-top: 4px; }
@media (max-width: 560px) { .homeNav { top: 59px; } .mTeams .tm { font-size: 14px; } .mTeams .score { font-size: 22px; } }

/* sign in — clear at first sight */
.authBtns .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.signInBtn { box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 8px 22px rgba(200,16,46,.35); }
.authBand { margin-top: 18px; position: relative; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 18px; border: 1px solid var(--brand); background: linear-gradient(135deg, rgba(200,16,46,.18), rgba(11,17,24,.96) 60%); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.abTxt { display: grid; gap: 2px; } .abTxt b { font-size: 17px; } .abTxt span { color: var(--muted); font-size: 13.5px; }
.abBtns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .authBtns #topJoin { display: none; }
  .authBand { text-align: center; justify-content: center; } .abBtns { width: 100%; } .abBtns > * { flex: 1 1 140px; }
}
.loginBox .lgLogo { width: 110px; height: 110px; border-radius: 50%; background: #fff; object-fit: cover; display: block; margin: 0 auto 10px; box-shadow: 0 0 0 3px var(--brand); clip-path: circle(46%); transform: scale(1.08); }
.loginBox h2 { text-align: center; }
.loginBox .actions button { flex: 1; min-height: 48px; font-size: 16px; }
.loginBox .loginLinks { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }

/* class form: one row per training day */
.schedRows { display: grid; gap: 8px; }
.schedRow { display: grid; grid-template-columns: minmax(110px, 1.3fr) auto 1fr auto 1fr auto; gap: 6px; align-items: center; }
.schedRow input, .schedRow select { min-width: 0; }
.schedRow .fieldSel { grid-column: 1 / -1; }
.schedRow { padding: 8px; border: 1px solid #232d38; border-radius: 12px; }
@media (max-width: 520px) {
  .schedRow { grid-template-columns: 1fr 1fr auto; padding: 8px; border: 1px solid #232d38; border-radius: 12px; }
  .schedRow > select { grid-column: 1 / -1; } .schedRow > span { display: none; }
}
/* fields and their parts (NRA) */
.fieldTree .ftRow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid #232d38; border-radius: 12px; background: #0b1118; margin-top: 8px; }
.fieldTree .ftRow.d1 { margin-inline-start: 26px; border-style: dashed; }
.fieldTree .ftRow.d2 { margin-inline-start: 52px; border-style: dotted; }
.fieldTree .ftName { font-weight: 800; flex: 1 1 160px; min-width: 0; }
.fieldTree .ftMeta { color: var(--muted); font-size: 13px; }

/* field photos (several) */
.photoList { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.photoItem { position: relative; width: 110px; height: 82px; border-radius: 10px; overflow: hidden; border: 1px solid #2b3744; }
.photoItem img { width: 100%; height: 100%; object-fit: cover; }
.photoItem button { position: absolute; top: 3px; min-height: 26px; padding: 2px 7px; background: rgba(0,0,0,.65); }
.photoItem button.danger { right: 3px; } .photoItem button:not(.danger) { left: 3px; }
.photoItem .mainTag { position: absolute; left: 4px; bottom: 4px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; }
.photoList .addPhoto { width: 110px; height: 82px; border-style: dashed; }

/* website admin */
.tabsBar { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding-bottom: 4px; }
.tabsBar a { text-decoration: none; white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid #26313d; background: #101721; font-weight: 700; font-size: 13px; }
.tabsBar a.on { background: var(--brand); border-color: var(--brand); }
.mediaPrev { width: 180px; min-height: 60px; border-radius: 12px; border: 1px dashed #3a4654; display: grid; place-items: center; overflow: hidden; background: #070b11; margin-bottom: 6px; }
.mediaPrev img, .mediaPrev video { width: 100%; max-height: 180px; object-fit: contain; display: block; }
.liveCard { border-color: var(--brand); }
.newMsg { border-color: #1f4e8a; }
.parentKid { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.parentKid .qrBig { width: 200px; height: 200px; background: #fff; padding: 10px; border-radius: 12px; }
.parentKid .qrBig svg { width: 100%; height: 100%; display: block; }

/* check result */
.result { border-radius: 16px; padding: 16px; border: 2px solid; }
.result.good { border-color: #1f8a66; background: rgba(31,138,102,.12); }
.result.bad { border-color: #8b1d26; background: rgba(255,32,43,.1); }
.result .big { font-size: 30px; font-weight: 900; letter-spacing: .5px; }
.result.good .big { color: var(--ok); } .result.bad .big { color: var(--danger); }
.result .why { font-weight: 700; }
.checkPhoto { width: 120px; height: 160px; object-fit: cover; border-radius: 12px; background: #1a2430; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.modal video { display: block; }
