/* Limerick Schools Basketball. Tokens carried over from the approved demo:
   light neutral ground, navy ink and shell, orange only as the today marker and focus ring,
   green = a paying school, amber = a funded school. */
@font-face{font-family:'Archivo';src:url('/assets/archivo.woff2') format('woff2');font-weight:100 900;font-stretch:62% 125%;font-display:swap}
:root{
  --ground:#F3F4F7;--surface:#FFFFFF;--ink:#0B1B3F;--ink2:#4A5675;--line:#DDE1EA;--line-in:#ECEEF3;--line-strong:#C5CBD9;--line-hover:#8E98B0;
  --navy:#001645;--navy-hover:#0A2A6B;--on-navy:#A9B4CF;--on-navy-soft:#DCE2F0;--mark:#FE5B00;
  --pay:#0F6B45;--pay-bg:#E3F3EA;--pay-line:#A9D6BD;--pay-deep:#0B3D28;
  --fund:#7A5200;--fund-bg:#FBEFC9;--fund-line:#E6CF86;--fund-deep:#5C3D00;
  --info:#1F4FBF;--info-bg:#E4ECFB;
  --bad:#A3261B;--bad-bg:#FBE6E3;--bad-line:#EDB8B1;
  --off:#4A5675;--off-bg:#E6E9F0;
  --float:0 1px 2px rgba(11,27,63,.06),0 8px 20px rgba(11,27,63,.06);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--ink);font-family:'Archivo',system-ui,sans-serif;font-size:16px;line-height:1.45;font-variant-numeric:tabular-nums}
::selection{background:#FFD9C2;color:var(--ink)}
a{color:#0B3FA8}a:hover{color:var(--navy)}
button{font:inherit;color:inherit;cursor:pointer}
input,select,textarea{font:inherit;color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,label:has(input:focus-visible){outline:3px solid var(--mark);outline-offset:2px}
h1,h2,h3,p{margin:0}
h1,h2,h3,.cond{font-weight:700;font-stretch:88%}
h1{font-size:28px;line-height:1.12;letter-spacing:-.01em;text-wrap:balance}
h2{font-size:19px;line-height:1.25}
h3{font-size:17px}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* layout atoms */
.stack{display:flex;flex-direction:column}
.rowx{display:flex;align-items:center}
.wrapx{display:flex;flex-wrap:wrap}
.between{justify-content:space-between}
.top{align-items:flex-start}
.g2{gap:2px}.g4{gap:4px}.g6{gap:6px}.g8{gap:8px}.g12{gap:12px}.g14{gap:14px}.g16{gap:16px}.g18{gap:18px}.g20{gap:20px}.g28{gap:28px}.g36{gap:36px}
.grow{flex:1 1 auto;min-width:0}
.none{flex:none}
.muted{color:var(--ink2)}
.small{font-size:14px}
.smaller{font-size:13px}
.lead{font-size:17px}
.b{font-weight:600}
.bb{font-weight:700}
.right{text-align:right}
.nowrap{white-space:nowrap}

/* cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:12px}
.pad{padding:18px}
.pad-s{padding:14px}
.float{border-color:var(--line-strong);box-shadow:var(--float)}
.clip{overflow:hidden}
.kv{display:flex;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line-in)}
.kv:last-child{border-bottom:0}
.kv>:last-child{font-weight:600;text-align:right}
.navyhead{display:flex;flex-direction:column;gap:4px;padding:16px 18px;background:var(--navy);color:#fff}
.navyhead .sub{font-size:15px;color:var(--on-navy-soft)}
.codebox{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border:1px dashed var(--line-hover);border-radius:10px}
.codebox b{font-size:18px;letter-spacing:.08em}
.listlink{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:12px 18px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.listlink:last-child{border-bottom:0}
.listlink:hover{background:#F8F9FB;color:var(--ink)}

/* status chips */
.chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap;background:var(--off-bg);color:var(--off)}
.chip-pay{background:var(--pay-bg);color:var(--pay)}
.chip-fund{background:var(--fund-bg);color:var(--fund)}
.chip-info{background:var(--info-bg);color:var(--info)}
.chip-bad{background:var(--bad-bg);color:var(--bad)}
.chip-off{background:var(--off-bg);color:var(--off)}

/* banners */
.ok{padding:18px;background:var(--pay-bg);border:1px solid var(--pay-line);border-radius:12px;color:var(--pay-deep)}
.warn{padding:14px 18px;background:var(--fund-bg);border:1px solid var(--fund-line);border-radius:12px;color:var(--fund-deep)}
.err{padding:14px 18px;background:var(--bad-bg);border:1px solid var(--bad-line);border-radius:12px;color:var(--bad)}
.note{padding:14px;background:var(--ground);border-radius:10px;font-size:15px}
.tick{flex:none;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--pay);color:#fff}

/* buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;padding:12px 16px;border-radius:10px;border:1px solid var(--line-strong);background:var(--surface);font-weight:600;font-size:16px;text-decoration:none;color:var(--ink);transition:background .15s ease,border-color .15s ease,transform .15s ease}
.btn:hover{background:var(--ground);border-color:var(--line-hover);color:var(--ink)}
.btn:active{transform:translateY(1px)}
.btn-solid{background:var(--navy);border-color:var(--navy);color:#fff}
.btn-solid:hover{background:var(--navy-hover);border-color:var(--navy-hover);color:#fff}
.btn-quiet{border-color:transparent;background:transparent;color:var(--ink2)}
.btn-danger{border-color:var(--bad-line);color:var(--bad)}
.btn-sm{width:auto;min-height:36px;padding:7px 14px;font-size:14px;border-radius:8px}
.btn[disabled],.btn[aria-disabled=true]{opacity:.5;cursor:not-allowed}
.linkbtn{padding:0;border:0;background:none;color:#0B3FA8;font-weight:600;text-decoration:underline;font-size:inherit}
.row-btn{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:10px 14px;border-radius:10px;border:1px solid var(--line);background:var(--surface);text-align:left;font-size:16px;transition:border-color .15s ease,background .15s ease;cursor:pointer}
.row-btn:hover{border-color:var(--line-hover)}
.chip-btn{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);font-size:15px;transition:border-color .15s ease,background .15s ease;cursor:pointer}
.chip-btn:hover{border-color:var(--line-hover)}

/* tickable rows and pills: a real checkbox or radio inside a label */
.row-btn input,.chip-btn input{position:absolute;opacity:0;width:1px;height:1px}
.row-btn .box{flex:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;border:2px solid var(--line-hover);background:var(--surface);color:#fff}
.row-btn .box svg{opacity:0}
.row-btn:has(input:checked){background:var(--ground);border-color:var(--navy)}
.row-btn:has(input:checked) .box{background:var(--navy);border-color:var(--navy)}
.row-btn:has(input:checked) .box svg{opacity:1}
.chip-btn:has(input:checked){background:var(--navy);border-color:var(--navy);color:#fff}

/* fields */
.field{display:flex;flex-direction:column;gap:6px}
.field>label,.label{font-size:14px;font-weight:600}
.input,.field input[type=text],.field input[type=email],.field input[type=tel],.field input[type=number],.field input[type=date],.field input[type=time],.field input[type=url],.field select,.field textarea{width:100%;min-height:48px;padding:10px 14px;border-radius:10px;border:1px solid var(--line-hover);font-size:16px;color:var(--ink);background:var(--surface)}
.field textarea{min-height:88px;resize:vertical}
.field .hint{font-size:14px;color:var(--ink2)}
.code-input{font-size:20px!important;letter-spacing:.3em}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}

/* avatars */
.av{flex:none;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:var(--navy);color:#fff;font-weight:700;font-size:16px}
.av-s{width:34px;height:34px;font-size:13px}

/* motion */
.settle{animation:settle .35s cubic-bezier(.16,1,.3,1)}
@keyframes settle{from{opacity:.4;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.settle{animation:none}.btn,.row-btn,.chip-btn,.nav{transition:none}}

/* ---- public pages (schools, families): one calm phone-width column ---- */
.pub-top{display:flex;align-items:center;gap:12px;padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--line)}
.pub-top img{width:52px;height:36px;object-fit:contain}
.pub-top .name{font-weight:700;font-stretch:88%;font-size:17px;line-height:1.2}
.pub-top .sub{font-size:14px;color:var(--ink2);line-height:1.3}
.pub-main{display:flex;flex-direction:column;gap:36px;max-width:520px;margin:0 auto;padding:28px 20px 40px}
.pub-top-in{display:flex;align-items:center;gap:12px;max-width:480px;margin:0 auto;width:100%}
.sec{display:flex;flex-direction:column;gap:12px}
.pub-foot{display:flex;flex-direction:column;gap:6px;padding-top:20px;border-top:1px solid var(--line);font-size:14px;color:var(--ink2)}
.daycells{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.daycell{display:flex;flex-direction:column;gap:2px;min-height:62px;padding:8px 5px;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface)}
.daycell b{font-size:14px;white-space:nowrap}
.daycell span{font-size:12px;line-height:1.25}
.daycell.done{background:var(--pay-bg);border-color:var(--pay-bg);color:var(--pay)}
.daycell.off{background:var(--off-bg);border-color:var(--off-bg);color:var(--off)}
.daycell.off b{text-decoration:line-through}
.daycell.next{border:2px solid var(--mark)}
.classes{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.classes>div{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-right:1px solid var(--line)}
.classes>div:last-child{border-right:0}

/* ---- committee pages: navy shell on the left, page on the right ---- */
.shell{display:flex;flex-wrap:wrap;min-height:100vh;font-size:14.5px}
.side{flex:1 0 220px;display:flex;flex-direction:column;gap:28px;padding:20px 14px;background:var(--navy);color:#fff}
.side .brand{display:flex;align-items:center;gap:10px;padding:0 8px;color:#fff;text-decoration:none}
.side .brand img{width:46px;height:32px;object-fit:contain}
.side .brand span{font-weight:700;font-stretch:88%;font-size:16px;line-height:1.15}
.navs{display:flex;flex-direction:column;gap:2px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:8px 12px;border-radius:8px;color:var(--on-navy-soft);text-decoration:none;font-weight:600;font-size:15px;transition:background .15s ease,color .15s ease}
.nav:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-on,.nav-on:hover{background:rgba(255,255,255,.14);color:#fff}
.nav .dot{width:7px;height:7px;border-radius:50%;background:var(--mark)}
.nav .count{min-width:22px;padding:1px 7px;border-radius:999px;background:#fff;color:var(--navy);font-size:12.5px;font-weight:700;text-align:center}
.side .me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 8px 0;border-top:1px solid rgba(255,255,255,.14)}
.side .me .av{background:#fff;color:var(--navy)}
.side .me a{color:var(--on-navy);font-size:13px}
.main{flex:999 1 560px;min-width:0;padding:28px 36px 48px}
.main-in{display:flex;flex-direction:column;gap:28px;max-width:1160px}
.shell h1{font-size:26px;line-height:1.15}
.shell h2{font-size:18px}
.shell .small{font-size:13.5px}
.head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}
.tblwrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.tbl{border-collapse:collapse;width:100%}
.tbl th{padding:12px 14px;text-align:left;font-size:13px;font-weight:600;color:var(--ink2);border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:12px 14px;border-bottom:1px solid var(--line-in);vertical-align:top}
.tbl tr:last-child td{border-bottom:0}
.tbl .n{text-align:right}
.tbl tr.row:hover{background:#F8F9FB}
.tbl tfoot td{font-weight:700;border-top:1px solid var(--line);border-bottom:0}
.tabsx{display:flex;flex-wrap:wrap;gap:8px}
.tabx{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 14px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);text-decoration:none;font-weight:600;font-size:14px}
.tabx:hover{border-color:var(--line-hover);color:var(--ink)}
.tabx-on,.tabx-on:hover{background:var(--navy);border-color:var(--navy);color:#fff}
.switch{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.state-on{color:var(--pay);font-weight:700}
.state-off{color:var(--ink2);font-weight:700}
@media (max-width:760px){
  .side{flex-basis:100%;gap:12px;padding:12px}
  .navs{flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:2px}
  .nav{white-space:nowrap;min-height:44px}
  .side .me{margin-top:0;padding-top:10px}
  .main{padding:20px 16px 40px}
}

/* ---- coach app: phone first, tab bar at the bottom ---- */
.coach{display:flex;flex-direction:column;min-height:100vh;max-width:520px;margin:0 auto;background:var(--ground)}
.coach-main{flex:1;display:flex;flex-direction:column;gap:28px;padding:24px 20px 110px}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:5;display:flex;justify-content:center;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tabbar-in{display:flex;width:100%;max-width:520px}
.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:60px;padding:9px 4px 8px;color:var(--ink2);text-decoration:none;font-size:13px;font-weight:600;border-top:3px solid transparent}
.tabbar a[aria-current=page]{color:var(--navy);border-top-color:var(--mark)}
.stepper{display:flex;align-items:center;gap:6px}
.stepper button{flex:none;width:44px;height:44px;border-radius:10px;border:1px solid var(--line-strong);background:var(--surface);font-size:22px;font-weight:600;line-height:1}
.stepper input{width:64px;min-height:44px;padding:6px;border-radius:10px;border:1px solid var(--line-hover);background:var(--surface);text-align:center;font-size:18px;font-weight:600}

/* print: invoices, the family card, the board report */
.sheet{max-width:820px;margin:24px auto;padding:44px 48px;background:#fff;border:1px solid var(--line);border-radius:4px}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:0}
.qcard{display:flex;gap:14px;align-items:center;padding:18px;border:1px dashed var(--line-hover);break-inside:avoid}
.qcard svg{flex:none;width:112px;height:112px}
@media print{
  body{background:#fff}
  .noprint{display:none!important}
  .sheet{margin:0;padding:0;border:0;max-width:none}
  a{color:inherit;text-decoration:none}
}

/* ---- committee: this week (timetable grid) ---- */
/* admin_week.ts: the Monday-to-Friday timetable grid on "This week". Linked from that page only. */
.wk-scroll{overflow-x:auto}
.wk{display:grid;column-gap:6px;min-width:720px}
.wk-day{display:flex;align-items:center;flex-wrap:wrap;gap:2px 7px;font-size:13.5px;font-weight:600;color:var(--ink2)}
.wk-day.today{color:var(--ink);font-weight:700}
.wk-day .sm{font-size:12.5px;font-weight:600}
.wk-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--mark)}
.wk-hr{border-top:1px solid var(--line-in)}
.wk-t{align-self:start;padding-top:3px;font-size:12.5px;line-height:1;color:var(--ink2)}
a.wk-v{min-width:0;display:flex;flex-direction:column;gap:1px;padding:6px 8px;border-radius:8px;border:1px solid var(--line-strong);overflow:hidden;line-height:1.25;font-size:12.5px;text-decoration:none;color:var(--ink)}
a.wk-v .nm{font-size:13.5px;font-weight:700;overflow-wrap:anywhere}
a.wk-v .chip{align-self:flex-start;padding:1px 8px;font-size:12px}
a.wk-v:hover{border-color:var(--ink)}
a.wk-pay,a.wk-pay:hover{background:var(--pay-bg);border-color:var(--pay-line);color:var(--pay-deep)}
a.wk-fund,a.wk-fund:hover{background:var(--fund-bg);border-color:var(--fund-line);color:var(--fund-deep)}
a.wk-none,a.wk-none:hover{background:var(--surface);color:var(--ink)}
a.wk-off,a.wk-off:hover{background:var(--off-bg);border-color:var(--line-strong);color:var(--off)}
a.wk-off .nm{text-decoration:line-through}
a.wk-pay:hover,a.wk-fund:hover,a.wk-none:hover,a.wk-off:hover{border-color:var(--ink)}
.wk-flag{font-weight:600;color:var(--bad)}
.wk-st{display:inline-flex;align-items:center;gap:4px;font-weight:600}
.wk-key{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding-top:4px;font-size:13px;color:var(--ink2)}
.wk-key span{display:inline-flex;align-items:center;gap:7px}
.wk-key i{width:10px;height:10px;border-radius:3px;border:1px solid var(--line-strong)}
.wk-key .k-pay{background:var(--pay-bg);border-color:var(--pay-line)}
.wk-key .k-fund{background:var(--fund-bg);border-color:var(--fund-line)}
.wk-key .k-off{background:var(--off-bg)}

/* ---- success check (transitions.dev recipe 10, appear only). Tuned small for a 28px tick in a banner:
   a 10px bob and 6px blur instead of the 40px / 10px defaults. The path "M5 12.5l4.5 4.5L19 7.5" is 17.1 long. ---- */
:root{
  --check-opacity-dur:550ms;--check-rotate-dur:550ms;--check-rotate-from:80deg;--check-bob-dur:450ms;--check-y-amount:10px;
  --check-blur-dur:500ms;--check-blur-from:6px;--check-path-dur:550ms;--check-path-delay:80ms;
  --check-ease-out:cubic-bezier(0.22,1,0.36,1);--check-ease-opacity:cubic-bezier(0.22,1,0.36,1);--check-ease-rotate:cubic-bezier(0.22,1,0.36,1);
  --check-ease-bob:cubic-bezier(0.34,1.35,0.64,1);--check-ease-path:cubic-bezier(0.22,1,0.36,1);
}
.t-success-check {
  display: inline-block;
  transform-origin: center;
  opacity: 0;
  will-change: transform, opacity, filter;
}
.t-success-check svg { display: block; overflow: visible; }
.t-success-check svg path {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
}
.t-success-check[data-state="in"] {
  animation:
    t-check-fade   var(--check-opacity-dur) var(--check-ease-opacity) forwards,
    t-check-rotate var(--check-rotate-dur)  var(--check-ease-rotate)  forwards,
    t-check-blur   var(--check-blur-dur)    var(--check-ease-out)     forwards,
    t-check-bob    var(--check-bob-dur)     var(--check-ease-bob)     forwards;
}
.t-success-check[data-state="in"] svg path {
  animation: t-check-draw var(--check-path-dur) var(--check-ease-path) var(--check-path-delay, 0ms) forwards;
}
@keyframes t-check-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes t-check-rotate {
  from { transform: rotate(var(--check-rotate-from)); }
  to   { transform: rotate(0deg); }
}
@keyframes t-check-blur {
  from { filter: blur(var(--check-blur-from)); }
  to   { filter: blur(0); }
}
@keyframes t-check-bob {
  from { translate: 0 var(--check-y-amount); }
  to   { translate: 0 0; }
}
@keyframes t-check-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .t-success-check { animation: none !important; opacity: 1; }
  .t-success-check svg path { animation: none !important; stroke-dashoffset: 0 !important; }
}
/* Safari: hide the disclosure triangle on a summary styled as a button */
summary.btn::-webkit-details-marker{display:none}
summary.btn{list-style:none}
