/* Recall Buddy · "real-app" look (v81)
   Loaded LAST. Two blues + one teal, flat white cards, plain bold section titles, no spaced-out capitals,
   no gradients or rainbow tiles. Remove this file (and its <link>) to return to the previous look. */

:root{
  --ra-navy:#12355b; --ra-sky:#e8f1fb; --ra-teal:#0f9d8f; --ra-link:#1d5fa8;
  --bg:#f4f7fb; --surface:#ffffff; --soft:#f4f7fb; --ink:#13233a; --muted:#5f6f84; --line:#e3eaf3;
  --brand:#12355b; --brand-ink:#ffffff; --hero:#12355b; --hero-ink:#ffffff;
  --accent:#0f9d8f; --rv:#12355b; --ok:#0f9d8f;
  --f-display:var(--f-body); --f-mono:var(--f-body);
  --sh1:none; --sh2:0 1px 2px rgba(18,53,91,.06);
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --ra-navy:#9cc3ee; --ra-sky:#1a2a40; --ra-teal:#2cc4b4; --ra-link:#8fbbea;
  --bg:#0e1522; --surface:#151f30; --soft:#121b2a; --ink:#e6ecf5; --muted:#9aa8bc; --line:#25324a;
  --brand:#9cc3ee; --brand-ink:#0e1522; --hero:#151f30; --hero-ink:#e6ecf5; --accent:#2cc4b4; --rv:#9cc3ee; --ok:#2cc4b4;
  --sh1:none; --sh2:none}}
:root[data-theme="dark"]{
  --ra-navy:#9cc3ee; --ra-sky:#1a2a40; --ra-teal:#2cc4b4; --ra-link:#8fbbea;
  --bg:#0e1522; --surface:#151f30; --soft:#121b2a; --ink:#e6ecf5; --muted:#9aa8bc; --line:#25324a;
  --brand:#9cc3ee; --brand-ink:#0e1522; --hero:#151f30; --hero-ink:#e6ecf5; --accent:#2cc4b4; --rv:#9cc3ee; --ok:#2cc4b4;
  --sh1:none; --sh2:none}

/* ---------- type: one family, plain labels ---------- */
h1,h2,h3{font-family:var(--f-body);letter-spacing:-.01em}
.eyebrow,.hm-quote-e,.hm-mock-e,.hm-promo-rib,.hm-promo-e,h3.hl-h,.hl-h,.mlabel,.sp-lbl,.gt-subj,.gt-l,.gt-tag,.fk-type,.chip,.sec-no,.num,.sp-n,
#home-view small,#home-view h3,.study-view small{letter-spacing:0!important;text-transform:none!important;font-family:var(--f-body)!important}
.eyebrow{font-size:.85rem;font-weight:600;color:var(--muted)!important;margin-bottom:2px}
#home-view h3,.hl-h{font-size:1.02rem!important;font-weight:700!important;color:var(--ink)!important}
.home-top h1{font-size:1.35rem;font-weight:700}
.home-top .sub{color:var(--muted);font-size:.92rem;margin-top:2px}
main h1,.view h1{font-size:clamp(1.35rem,4.6vw,1.7rem);line-height:1.2}

/* ---------- surfaces: flat white, thin border, small radius ---------- */
.card,.hm-opt,.hm-quote,.fk-feat,.fk-deck,.sec-acc,.pr-card,.bx-card,.hm-mock,.hm-promo,.bx-invite,.bx-plan-line,.rm-line,.bx-streak,.bx-goal,.exam-cd,.ex-cd,.hm-card{
  border-radius:10px!important;box-shadow:none!important}
.hm-opt,.hm-quote,.fk-feat,.sec-acc,.hm-mock,.hm-promo,.bx-invite{background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--ink)!important}

/* quote: one quiet card */
.hm-quote{padding:12px 14px!important}
.hm-quote::before{display:none!important}
.hm-quote-e{font-size:.8rem!important;font-weight:600;color:var(--muted)!important}
.hm-quote blockquote{font-size:1rem!important;margin:4px 0 2px!important;color:var(--ink)!important}
.hm-quote figcaption{font-size:.8rem}

/* Daily 20: the one solid navy block on Home */
.hm-opt.hm-daily{background:var(--ra-navy)!important;border-color:var(--ra-navy)!important;color:#fff!important}
:root[data-theme="dark"] .hm-opt.hm-daily{background:#1d3352!important;border-color:#1d3352!important;color:#e6ecf5!important}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .hm-opt.hm-daily{background:#1d3352!important;border-color:#1d3352!important;color:#e6ecf5!important}}
.hm-opt.hm-daily small{color:rgba(255,255,255,.78)!important}
.hm-opt.hm-daily .hm-ic{background:rgba(255,255,255,.14)!important;color:#fff!important}
.hm-tag{background:var(--ra-teal)!important;color:#fff!important;font-size:.72rem!important;letter-spacing:0!important;text-transform:none!important;border-radius:5px!important;padding:3px 8px!important}

/* icon tiles: one tint, navy icons */
.hm-ic,.bx-act b,.pr-ic,.pr-badge,.fk-ic{background:var(--ra-sky)!important;color:var(--ra-navy)!important;border:0!important}

/* Mock GT + offer + invite: same flat card, navy title, teal number */
.hm-mock{border-left:3px solid var(--ra-navy)!important}
.hm-mock b,.hm-promo h2{color:var(--ink)!important}
.hm-mock-e,.hm-promo-e{color:var(--muted)!important;font-weight:600}
.hm-mock-r{background:var(--ra-sky)!important;color:var(--ra-navy)!important;border:0!important}
.hm-mock-r b{color:var(--ra-navy)!important}
.hm-mock small,.hm-promo li,.hm-promo p{color:var(--muted)!important}
.hm-promo-rib{background:var(--ra-sky)!important;color:var(--ra-navy)!important;box-shadow:none!important}
.hm-promo li::before,.hm-promo li::marker{background:var(--ra-teal)!important;color:var(--ra-teal)!important;box-shadow:none!important}
.hm-promo li b{color:var(--ink)!important}
.bx-invite b{color:var(--ra-navy)!important}

/* plan / roadmap rows: solid thin border, no dashes */
.bx-plan-line,.rm-line{border:1px solid var(--line)!important;background:var(--surface)!important}

.lnk{color:var(--ra-link)}

/* Study header: white bar with navy title instead of the gradient poster */
header.hero,.hero{background:var(--surface)!important;color:var(--ink)!important;border-radius:0!important;border-bottom:1px solid var(--line)}
header.hero h1,.hero h1{color:var(--ra-navy)!important}
header.hero p,.hero p,.hero small,.hero .sub{color:var(--muted)!important}
.hero *{text-shadow:none!important}
.hero .eyebrow{color:var(--muted)!important}
.hero{--hero-ink:var(--ink)}
.hero h1{font-size:clamp(1.35rem,5vw,1.8rem)!important;font-weight:700!important;line-height:1.2!important}
.hero-in{padding-block:14px 16px!important}
.sp-cur,.subj{border:1px solid var(--line)!important;background:var(--soft)!important;color:var(--ink)!important}
.sp-g h4{color:var(--muted)!important;font-family:var(--f-body)!important;letter-spacing:0!important;text-transform:none!important}

/* practice badges: one tint for all */
.pr-k,.pr-k.ts,.pr-k.rv,.pr-k.pyt,.pr-k.pyq,.pr-k.gt,.pr-k.list,.pr-k.mle{background:var(--ra-sky)!important;color:var(--ra-navy)!important;border:0!important;letter-spacing:0!important}

/* Flashcards: one look for every deck */
.fk-feat{padding:14px!important}
.fk-feat-t b{color:var(--ink)!important}
.fk-feat-t small{color:var(--muted)!important}
.fk-trick{background:var(--ra-sky)!important;color:var(--ra-navy)!important;border:0!important}
.fk-pbar>i,.fk-pbar>span,.fk-pbar>b{background:var(--ra-teal)!important}

/* chips: neutral; the selected one navy */
.chip,.chipbtn,.fk-kinds button,.fk-chips button{background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:none!important}
.chip.on,.chipbtn.on,.chip[aria-pressed="true"],.chipbtn[aria-pressed="true"],.fk-kinds button.on,.fk-kinds [aria-pressed="true"],.fk-chips .on{background:var(--ra-navy)!important;color:#fff!important;border-color:var(--ra-navy)!important}

/* tabs: underline in navy */
.tabs [role=tab][aria-selected="true"],.tabs .on{color:var(--ra-navy)!important;border-color:var(--ra-navy)!important}

/* bottom bar: navy active item on a light-blue pill */
.ab-nav button[aria-current="page"],.ab-nav .on,.ab-nav [aria-selected="true"]{background:var(--ra-sky)!important;color:var(--ra-navy)!important}

/* line icons used in place of emoji */
.ra-i{display:inline-block;width:1.05em;height:1.05em;vertical-align:-.16em;margin-right:.3em}
.ra-i svg{width:100%;height:100%;display:block}
.ab-tools button{color:var(--ra-navy)}
.ab-tools .ra-i{width:21px;height:21px;margin:0}
.ab-tools button .ra-i svg{stroke-width:2}

/* remaining colourful blocks: flat */
.rb-beta,.rb-cta,.qb-pyqcta,.pyqpanel,.bx-myplan.trial,.bx-streak.on,.cd{background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--ink)!important;box-shadow:none!important}
.rb-cta{background:var(--ra-navy)!important;color:#fff!important;border-color:var(--ra-navy)!important}
.dl-prog i,.qb-tile i{background:var(--ra-teal)!important}
.gt-tag,.gt-tag.mle,.gt-tag.pyq,.dl-bank{background:var(--ra-sky)!important;color:var(--ra-navy)!important;border:0!important}
.bx-myplan.trial b,.bx-myplan b{color:var(--ink)}
.bx-streak.on .ra-i{color:#e0731b}
.brand::before{content:"";width:34px;height:34px;border-radius:0;background:url(../img/brand/mark.png) center/contain no-repeat!important;box-shadow:none!important}
/* opening screen: logo without a box on light sky blue */
#splash{background:#e8f1fb!important;color:#12355b!important}
#splash .sp-img{border-radius:0!important;box-shadow:none!important;background:transparent!important}
#splash span{color:#12355b!important;opacity:.75!important;letter-spacing:.06em!important;text-transform:none!important;font-weight:600!important;font-size:.9rem!important}
.brand small,.group-h span,.hook b{letter-spacing:0!important;text-transform:none!important;font-family:var(--f-body)!important}
.brand small{font-weight:600;color:var(--muted)!important}
.group-h span{color:var(--muted)!important;font-weight:500}
.hook b{color:var(--ra-navy)!important}

/* Flashcards top: one due-today bar + Memory Tricks with a picture */
.fk-top h2{font-size:1.45rem;font-weight:700}
.fk-top .mut{margin:2px 0 0;color:var(--muted);font-size:.9rem}
.fk-duebar{display:flex!important;flex-direction:row!important;text-align:left;align-items:center;gap:12px;background:var(--ra-navy);color:#fff;border-radius:10px;padding:14px 16px;margin:12px 0}
:root[data-theme="dark"] .fk-duebar{background:#1d3352;color:#e6ecf5}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .fk-duebar{background:#1d3352;color:#e6ecf5}}
.fk-duebar>div{flex:1;display:flex;flex-direction:column}
.fk-duebar b{font-size:1.3rem;font-weight:700}
.fk-duebar small{color:rgba(255,255,255,.78);font-size:.82rem}
.fk-duebar .fk-go{flex:none;width:auto;min-height:44px;margin:0;padding:0 18px;border-radius:8px;border:0;background:#fff;color:#12355b;font-weight:700;cursor:pointer}
.fk-feat.fk-feat2{display:flex!important;gap:12px;align-items:stretch;padding:0!important;overflow:hidden}
.fk-feat2 img{width:104px;object-fit:cover;object-position:left center;flex:none;background:#0b1220}
.fk-feat2 .fk-feat-t{flex:1;padding:12px 12px 12px 0;display:flex;flex-direction:column;gap:3px}
.fk-feat2 .fk-feat-b{display:flex;gap:8px;margin-top:8px}
.fk-due,.fk-new{background:transparent!important;color:var(--muted)!important;border:0!important}
.fk-due.on{color:var(--ra-navy)!important;font-weight:700}
.fk-new{color:var(--ra-link)!important}

/* ---------- Subjects (Study tab) and subject page ---------- */
body:not(.view-hub) #hub-view{display:none}
body.view-hub .hero,body.view-hub .tabs,body.view-hub #study-main,body.view-hub #home-view,body.view-hub #gt-view,body.view-hub #qb-view,body.view-hub #daily-view,body.view-hub #practice-view,body.view-hub #flash-view{display:none!important}
#hub-view{padding-block:16px 90px;max-width:720px}
.hb-top h1,.hb-head h1{font-size:1.45rem;font-weight:700;color:var(--ra-navy);margin:0}
.hb-top .mut,.hb-head .mut{margin:2px 0 0;color:var(--muted);font-size:.88rem}
.hb-list{margin-top:14px;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.hb-row{display:flex;align-items:center;gap:14px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer;color:var(--ink)}
.hb-row:last-child{border-bottom:0}
.hb-ic{width:26px;height:26px;flex:none;color:var(--ra-navy)}
.hb-rt{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.hb-rt b{font-size:1rem;font-weight:600}
.hb-rt small,.hb-mt small,.hb-chh small,.hb-qk small{color:var(--muted);font-size:.8rem}
.hb-bar{display:block;height:3px;border-radius:3px;background:var(--ra-sky);margin-top:3px}
.hb-bar>i{display:block;height:3px;border-radius:3px;background:var(--ra-teal)}
.hb-chev{width:16px;height:16px;color:var(--muted);flex:none}
.hb-head{display:flex;align-items:center;gap:6px;margin:0 -6px}
.hb-back{width:44px;height:44px;border:0;background:transparent;color:var(--ra-navy);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.hb-back svg{width:22px;height:22px}
.hb-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:12px 0 14px;overflow-x:auto}
.hb-tabs button{border:0;background:transparent;padding:10px 0 9px;font-size:.95rem;font-weight:500;color:var(--muted);border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}
.hb-tabs button[aria-selected="true"]{color:var(--ra-navy);font-weight:700;border-bottom-color:var(--ra-navy)}
.hb-quick{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.hb-qk{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);cursor:pointer}
.hb-qk .ra-i{width:22px;height:22px;color:var(--ra-navy);margin:0;flex:none}
.hb-qk span{display:flex;flex-direction:column}
.hb-qk b{font-size:.95rem;font-weight:600}
.hb-ch{margin-bottom:16px}
.hb-chh{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 2px 6px}
.hb-chh b{font-size:1rem;font-weight:700;color:var(--ink)}
.hb-box{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.hb-mod{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer;color:var(--ink)}
.hb-mod:last-child{border-bottom:0}
.hb-mt{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.hb-mt b{font-size:.95rem;font-weight:500}
.hb-start{font-size:.82rem;font-weight:600;color:var(--ra-link);flex:none}
.hb-pc{font-size:.82rem;font-weight:700;color:var(--ra-navy);flex:none}
.hb-done svg{width:22px;height:22px;display:block}
.hb-done circle{fill:var(--ra-teal)}
.hb-done path{fill:none;stroke:#fff;stroke-width:2}
.hb-empty{color:var(--muted);padding:12px 2px}
.hb-open{width:100%;min-height:46px;margin-bottom:12px;border:0;border-radius:10px;background:var(--ra-navy);color:#fff;font-weight:600;cursor:pointer}
:root[data-theme="dark"] .hb-open{color:#0e1522}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .hb-open{color:#0e1522}}
.hb-fc{cursor:default}
.hb-fcb{display:flex;gap:8px;flex:none}
/* Home subject grid */

/* ---------- chart colours: app theme everywhere, real colours only where the colour IS the fact ----------
   kept: IMNCI red / yellow / green bands (.band, .lvl, .danger-banner), the NACO STI kit card ("sti") and the IFA tablet-colour card ("ifa") */
article.card:not([data-id$="sti"]):not([data-id$="ifa"]) [class*="c-"]{--tc:#1f4b7a}
article.card:not([data-id$="sti"]):not([data-id$="ifa"]) .vcap.c-wh{background:var(--ra-sky);color:var(--ra-navy)}
.vnew{background:var(--ra-teal)!important;font-family:var(--f-body)!important;letter-spacing:0!important}
.vlnew{background:var(--ra-sky)!important;color:var(--ra-navy)!important;border:1px solid var(--line)!important}
.vs.isnew{background:var(--ra-sky)!important;box-shadow:0 0 0 2px var(--ra-teal) inset!important}
.vhc{background:var(--ra-navy)!important;color:#fff!important}
:root[data-theme="dark"] .vhc{background:#1d3352!important}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .vhc{background:#1d3352!important}}
.vlh b,.vcap b,.vs b,.vhc{font-family:var(--f-body)!important}

/* picture frame: thin light border instead of the black mat */
.q-fig-img{background:var(--soft)!important;padding:3px!important;border:1px solid var(--line)!important;border-radius:10px!important}
/* subject pictures (Wikimedia Commons, public domain / CC0) */
.hb-pic{position:relative;width:44px;height:44px;flex:none;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:#fff;display:grid;place-items:center}
.hb-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hb-pic .hb-ic{width:24px;height:24px}
.hb-pic.big{width:52px;height:52px;margin-right:6px}
.hb-head .hb-pic{margin-left:2px}
html.dark .hb-pic img,[data-theme="dark"] .hb-pic img{filter:brightness(.88)}
.hb-credit{margin:10px 2px 0;font-size:.74rem;color:var(--muted)}
/* numbered picture grid in questions */
.q-grid-in{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.q-tile{position:relative;display:block;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;aspect-ratio:4/3}
.q-tile img{width:100%;height:100%;object-fit:contain;display:block}
.q-tile-n{position:absolute;left:6px;top:6px;min-width:24px;height:24px;padding:0 6px;border-radius:12px;background:#12355b;color:#fff;font:700 .85rem/24px system-ui;text-align:center}
.q-vid video{display:block;width:100%;max-height:60vh;border-radius:10px;background:#000}
