/* The Scholarship tab (assets/js/ryon-scholar.js): Ryon the Scholar pays for a day of Anki. Loaded after the page's
   inline styles. Its colour is library green, with gold leaf for what pays. */
:root{--sch:#6fd6a0;--sch-hi:#bff0d3;--sch-deep:#0b2219;--sch-line:#1f5a43;--sch-gold:#e9c46a}

.tabs a.tab-scholarship{color:var(--sch)}
.tabs a.tab-scholarship[aria-current]{border-bottom-color:var(--sch)}

/* the tab: a reading room, lamp-lit from the top */
.scholarship{background:radial-gradient(ellipse 70% 360px at 50% 0,#163d2e,transparent 80%),linear-gradient(180deg,#0b2219 0,#0c1a1a 380px,transparent 900px)}
.scholarship .wrap{padding-top:56px;padding-bottom:40px}
.scholarship .eyebrow{color:var(--sch-hi)}
.scholarship .bt-panel{background:linear-gradient(180deg,#0f2c22,#0d1d1b);border-color:var(--sch-line)}
.scholarship .stat{background:#0a1a15}
.scholarship .stat.ok b{color:var(--sch)}
.scholarship .btn.prism{background:linear-gradient(135deg,#d9a93f,var(--sch-gold) 55%,#f6e1a6);animation:none;box-shadow:0 6px 0 #8a6420}
.scholarship .btn.prism:active{box-shadow:0 2px 0 #8a6420}

.sc-top{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:28px;align-items:center;margin-bottom:28px}
.sc-hero{display:grid;place-items:center}
.sc-card{width:100%;max-width:220px}
.sc-head{margin:0}
.sc-streak-line{font-family:var(--mono);color:var(--sch-hi)}
.sc-streak-line b{color:var(--sch-gold)}
@media (max-width:640px){
  .sc-top{grid-template-columns:1fr;gap:18px}
  .sc-card{max-width:160px}
}

.sc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
@media (max-width:820px){.sc-grid{grid-template-columns:1fr}}
.sc-stats{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
.sc-verdict{font-weight:700}
.sc-verdict.ok{color:var(--sch)}
.sc-err{color:#ff9a9a}
.sc-wait{color:var(--sch-hi)}
.sc-paid{font-family:var(--mono);font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#0b2219;background:var(--sch);border-radius:99px;padding:2px 10px}
.sc-big{font-size:34px;font-weight:700;color:var(--sch-gold);line-height:1}
.sc-key{display:flex;gap:10px;flex-wrap:wrap}
.sc-key input{flex:1 1 180px;min-width:0;font:inherit;padding:10px 14px;border-radius:12px;border:1px solid var(--sch-line);background:#0a1a15;color:var(--ink)}

/* this week of the streak: seven days, filled as they're claimed */
.sc-week{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.sc-week li{display:grid;justify-items:center;gap:2px;padding:10px 2px;border-radius:12px;background:#0a1a15;border:1px solid var(--sch-line);opacity:.7}
.sc-week li b{font-size:16px;color:var(--ink)}
.sc-week li small{font-size:11px;color:var(--muted);white-space:nowrap}
.sc-week li.bonus{border-color:var(--sch-gold)}
.sc-week li.done{opacity:1;background:linear-gradient(180deg,#1d5a42,#123a2c);border-color:var(--sch)}
.sc-week li.done b{color:var(--sch-hi)}
.sc-week li.next{opacity:1;box-shadow:0 0 0 2px var(--sch-gold) inset}
.sc-week li em{font-style:normal;font-family:var(--mono);font-size:10px;font-weight:700;line-height:1;padding:2px 5px;border-radius:99px;color:#1a0c22;background:var(--prism)}
.sc-week li.card{border-color:#c88bff}
.sc-cardline{font-size:14px;color:var(--sch-hi)}
.sc-cardline b{color:var(--sch-gold)}
@media (max-width:420px){.sc-week li small{font-size:10px}.sc-week li b{font-size:14px}}

.sc-decks,.sc-how{margin-top:20px}
.sc-decks summary,.sc-how summary{cursor:pointer;list-style-position:outside}
.sc-decks summary h3,.sc-how summary h3{display:inline;font-size:20px}
.sc-decklist{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.sc-decklist li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;border-radius:10px;background:#0a1a15}
.sc-decklist label{display:flex;gap:10px;align-items:center;min-width:0;cursor:pointer}
.sc-decklist label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-decklist input{accent-color:var(--sch);width:18px;height:18px;flex:none}
.sc-left{display:flex;gap:10px;flex:none}
.sc-left i{font-style:normal;min-width:2ch;text-align:right}
.sc-left .n{color:#7fb6ff}.sc-left .l{color:#ff8f8f}.sc-left .r{color:var(--sch)}
.sc-how ol{margin:0;padding-left:22px;display:grid;gap:8px}
.sc-code{color:var(--sch-gold);user-select:all}
