/* Sports and devotional-calendar tools: Diya brand palette (Midnight #0B0A1A, Saffron #FF8A1F,
   Light saffron #FFB766, Ivory #F7F5F0), Sora headlines and Inter text. No green. Fonts are self-hosted (OFL). */
@font-face{font-family:'Sora';font-style:normal;font-weight:100 800;font-display:swap;src:url(/fonts/sora-latin-wght.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+20B9,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-latin-400.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+20B9,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:600 800;font-display:swap;src:url(/fonts/inter-latin-600.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+20B9,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD}
.tool-page:has(.sp-root){--accent:#FF8A1F;--accent-dark:#E5730A;--accent-ink:#0B0A1A;--accent-soft:rgba(255,138,31,.14)}
.tool-page:has(.sp-root) h1{font-family:'Sora',var(--display),sans-serif}
.sp-answer{font-size:1.08rem}
.sp-root{display:flex;flex-direction:column;gap:14px;font-family:'Inter',var(--sans,system-ui),sans-serif}
.sp-root h3{margin:10px 0 0;font-family:'Sora',var(--display),sans-serif;font-size:1.15rem}
.sp-root h4{margin:12px 0 6px}
.sp-root .btn-dark{background:#0B0A1A;color:#fff}
.sp-root .btn-dark:hover{background:#26243d}
.sp-root .btn{min-height:44px}
.sp-root input[type=checkbox],.sp-root input[type=radio]{accent-color:#FF8A1F;width:22px;height:22px;flex:none}
.sp-root select,.sp-root input:not([type=checkbox]):not([type=radio]),.sp-root textarea{min-height:44px;font-size:16px}
.sp-root label small,.sp-root .tool-grid small{display:block;font-weight:400;color:var(--muted);font-size:.8rem;margin-top:2px}
.sp-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:end;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:12px}
.sp-lang{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600}
.sp-result{background:#FFF6EC;border:1px solid #FFB766;border-radius:14px;padding:14px 16px}
.sp-result:empty{display:none}
.sp-big{font-size:2rem;font-weight:800;font-family:'Sora',var(--display),sans-serif;color:#0B0A1A;margin:4px 0;line-height:1.15;overflow-wrap:anywhere}
.sp-work{padding-left:20px;font-size:.92rem}
.sp-seg{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.sp-seg legend{font-weight:600;font-size:.9rem;margin-bottom:6px;padding:0}
.sp-seg label{display:flex;flex-direction:row;align-items:center;gap:8px;border:1.5px solid var(--line);border-radius:12px;padding:10px 14px;background:#fff;cursor:pointer;font-weight:600}
.sp-seg label:has(input:checked){border-color:#FF8A1F;background:#FFF6EC}
.sp-more{border:1.5px solid var(--line);border-radius:12px;padding:10px 14px;background:#fff}
.sp-more summary{cursor:pointer;font-weight:700;min-height:28px}
.sp-teams{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin:10px 0}
.sp-row{display:flex;gap:6px}
.sp-row input{flex:1;min-width:0}
.sp-x{min-width:44px;padding:0 10px;font-size:1.2rem;line-height:1}
.sp-matches{display:flex;flex-direction:column;gap:8px}
.sp-match{display:grid;grid-template-columns:1fr auto;gap:6px 8px;align-items:center;border:1.5px solid var(--line);border-left:5px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff}
.sp-match.done{border-left-color:#FF8A1F;background:#FFFBF5}
.sp-mhead{display:flex;flex-wrap:wrap;align-items:center;gap:6px;grid-column:1/-1}
.sp-mhead select{flex:1 1 120px;min-width:0}
.sp-mhead small{color:var(--muted);font-size:.8rem}
.sp-match .m-res{grid-column:1}
.sp-match .m-del{grid-column:2;grid-row:2}
.sp-nrr{grid-column:1/-1}
.sp-nrr summary{cursor:pointer;font-size:.85rem;color:var(--muted);min-height:28px}
.sp-nrr-grid{display:grid;grid-template-columns:minmax(80px,1.2fr) 1fr 1fr auto;gap:6px;align-items:center;margin-top:6px}
.sp-nrr-grid input{min-width:0;width:100%}
.sp-nrr-grid .check{display:flex;flex-direction:row;gap:6px;align-items:center;font-size:.8rem;white-space:nowrap}
.sp-mn{display:inline-grid;place-items:center;min-width:28px;height:28px;border-radius:8px;background:#0B0A1A;color:#fff;font-size:.78rem;font-weight:700;padding:0 6px}
.sp-root input.bad{border-color:#c2410c;background:#fff4ed}
.sp-tbl td,.sp-tbl th{text-align:center;white-space:nowrap}
.sp-tbl td:nth-child(2),.sp-tbl th:nth-child(2){text-align:left;white-space:normal}
.sp-tbl tr.z1 td{background:#FFF0DE}
.sp-tbl tr.z2 td{background:#FFF8EF}
.sp-tbl tr.cut td{border-bottom:3px solid #FF8A1F}
.sp-stat{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px}
.sp-stat li{display:flex;gap:10px;align-items:baseline;padding:8px 12px;border-radius:10px;background:#fff;border:1px solid var(--line)}
.sp-stat b{font-size:1.25rem;font-family:'Sora',var(--display),sans-serif;min-width:4.5em}
.sp-stat .ok{border-left:5px solid #0B0A1A}.sp-stat .mid{border-left:5px solid #FFB766}.sp-stat .no{border-left:5px solid #9a9aa6}
.sp-own{list-style:none;padding:0;display:grid;gap:6px}
.sp-own li{display:flex;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.sp-own b{font-size:.85rem;border-radius:999px;padding:2px 10px}
.sp-own b.no{background:#0B0A1A;color:#fff}.sp-own b.mid{background:#FFB766;color:#0B0A1A}.sp-own b.ok{background:#F7F5F0;color:#0B0A1A;border:1px solid var(--line)}
.sp-fixlist{display:flex;flex-direction:column;gap:8px}
.sp-fix{display:flex;gap:12px;align-items:flex-start;border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff}
.sp-fix small{display:block;color:var(--muted);font-size:.85rem}
.sp-fix small b{color:#0B0A1A}
.sp-canvas{background:#F7F5F0;border:1px solid var(--line);border-radius:14px;padding:10px;display:flex;justify-content:center}
.sp-canvas canvas{width:100%;max-width:420px;height:auto;border-radius:8px;box-shadow:0 2px 12px rgba(11,10,26,.15)}
.sp-plist{display:flex;flex-direction:column;gap:6px}
.sp-prow{display:flex;gap:6px}
.sp-prow input{min-width:0}
.sp-prow .w3{flex:3}.sp-prow .w1{flex:1}
.sp-rounds,.sp-teamsout{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.sp-bracket{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px}
.sp-bracket .sp-round{min-width:220px}
.sp-round{border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff}
.sp-round h4{margin:0 0 8px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.sp-round h4 small{color:var(--muted);font-weight:500}
.sp-round ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.sp-round li{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:6px 8px;border-radius:8px;background:#F7F5F0}
.sp-round li.bye{color:var(--muted);font-style:italic}
.sp-teamsout li{justify-content:space-between}
.sp-skill{font-weight:800;min-width:24px;text-align:center;border-radius:6px;background:#FFB766;color:#0B0A1A}
.sp-pill{display:inline-block;font-size:.72rem;font-weight:700;border-radius:999px;padding:1px 8px;background:#0B0A1A;color:#fff}
.sp-notice{border-color:#FFB766;background:#FFF6EC;color:#3a2a10}
.sp-chk{color:var(--muted);font-size:.85em}
.tool-page:has(.sp-root) .src a,.sp-root a{color:#0B0A1A;text-decoration:underline;text-decoration-color:#FF8A1F;text-underline-offset:2px}
/* devotional calendar tools */
.sp-tt{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.sp-tt th,.sp-tt td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:center}
.sp-tt th{background:#0B0A1A;color:#F7F5F0;font-weight:700;position:sticky;top:0}
.sp-tt td.big{font-weight:800;font-size:1.05rem}
.sp-tt tr.today td{background:#FFF0DE}
.sp-tt tr.maybe td{color:var(--muted);font-style:italic}
.sp-counter{display:flex;flex-direction:column;align-items:center;gap:12px;padding:10px 0}
.sp-tap{width:min(78vw,320px);height:min(78vw,320px);border-radius:50%;border:0;background:radial-gradient(circle at 50% 40%,#FFB766,#FF8A1F 70%);color:#0B0A1A;font:800 4rem/1 'Sora',var(--display),sans-serif;box-shadow:0 8px 30px rgba(255,138,31,.35),inset 0 -6px 0 rgba(11,10,26,.12);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.sp-tap:active{transform:scale(.97)}
.sp-tap small{display:block;font:600 1rem/1.4 'Inter',sans-serif;margin-top:8px}
.sp-ring{width:min(78vw,320px);height:10px;border-radius:999px;background:#F7F5F0;border:1px solid var(--line);overflow:hidden}
.sp-ring i{display:block;height:100%;width:0;background:#0B0A1A;transition:width .15s}
.sp-meth{font-size:.9rem;background:#F7F5F0;border-radius:12px;padding:10px 14px}
@media (max-width:600px){.sp-big{font-size:1.6rem}.sp-nrr-grid{grid-template-columns:1fr 1fr}.sp-nrr-grid b{grid-column:1/-1}.sp-tt th,.sp-tt td{padding:6px 3px;font-size:.88rem}}
@media print{
  header,footer,nav,.crumbs,.lang-switch,.site-header,.site-footer,.sp-bar,.sp-status,.tool-actions,.sp-more,.sp-nrr{display:none !important}
  body{background:#fff !important}
  body.sp-printing main .tool-page>*:not(.tool-box){display:none !important}
  .tool-box .sp-root.tool-form{display:flex !important}
  .sp-root .sp-matches,.sp-root .tool-grid,.sp-root .sp-seg,.sp-root .sp-counter,.sp-root .sp-canvas,.sp-root details,.sp-root .sp-teams{display:none !important}
  .sp-root .sp-tt td,.sp-root .sp-tt th{padding:4px 6px;font-size:11pt}
  .tool-box{border:0 !important;box-shadow:none !important;padding:0 !important}
  .sp-tt th{background:#fff !important;color:#000 !important;border-bottom:2px solid #000}
  .sp-round,.sp-fix,.sp-match{break-inside:avoid}
  .sp-root a,.src a{color:#000 !important}
}
