
:root{--bg:#f6f8fb;--card:#fff;--ink:#172033;--muted:#637083;--line:#dfe5ec;--brand:#2356d8;--brand2:#163b9d;--good:#147d47;--bad:#b3261e;--soft:#edf3ff}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.55}.wrap{width:min(1140px,92%);margin:auto}.topbar{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line)}.nav{min-height:68px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:800;font-size:1.18rem;text-decoration:none;color:var(--ink)}.brand span{color:var(--brand)}.navlinks{display:flex;align-items:center;gap:20px}.navlinks a{text-decoration:none;color:var(--ink);font-weight:600}.menu-btn{display:none;border:0;background:transparent;font-size:1.5rem}.btn{display:inline-block;background:var(--brand);color:#fff!important;padding:11px 18px;border-radius:10px;text-decoration:none;border:0;font-weight:700;cursor:pointer}.btn:hover{background:var(--brand2)}.btn.small{padding:8px 12px}.btn.ghost{background:#fff;color:var(--brand)!important;border:1px solid var(--brand)}.hero{padding:72px 0;background:linear-gradient(180deg,#eef4ff 0,#f6f8fb 100%)}.hero-grid,.two{display:grid;grid-template-columns:1.4fr 1fr;gap:36px;align-items:center}.hero h1,.pagehead h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.05;margin:.35rem 0 1rem}.lead{font-size:1.18rem;color:var(--muted);max-width:720px}.eyebrow,.chip{display:inline-block;background:var(--soft);color:var(--brand2);padding:5px 9px;border-radius:999px;font-size:.82rem;font-weight:800}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.notice{font-size:.9rem;color:var(--muted);margin-top:16px}.section{padding:52px 0}.section.alt{background:#eef2f7}.pagehead{padding:48px 0 26px;background:#eef4ff}.grid{display:grid;gap:18px}.cards{grid-template-columns:repeat(3,1fr)}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 8px 28px rgba(23,32,51,.05)}.card h3{margin-top:.7rem}.muted{color:var(--muted)}.method-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.auth{min-height:70vh;display:grid;place-items:center;padding:40px}.auth-card{width:min(430px,94vw)}label{display:block;font-weight:700;margin:14px 0}input{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;margin-top:6px}.stats{grid-template-columns:repeat(5,1fr)}.stats strong{display:block;font-size:2rem;margin-top:6px}.practice-wrap{max-width:860px}.question-card h2{font-size:1.25rem}.option{display:block;width:100%;text-align:left;padding:14px 16px;margin:10px 0;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}.option.selected{outline:2px solid var(--brand)}.option.correct{border-color:var(--good);background:#eefaf3}.option.wrong{border-color:var(--bad);background:#fff0ef}.feedback{margin-top:20px}.feedback .why{border-top:1px solid var(--line);padding:12px 0}.feedback .ok{color:var(--good);font-weight:800}.feedback .bad{color:var(--bad);font-weight:800}.nudge{background:#fff8e8;border:1px solid #edd9a6;padding:12px;border-radius:10px;margin:14px 0}.progress{color:var(--muted);font-size:.9rem;margin-bottom:10px}.flashwrap{padding-top:12px}.flash{padding:10px 14px;border-radius:10px}.flash.success{background:#eefaf3}.flash.danger{background:#fff0ef}footer{padding:28px 0;border-top:1px solid var(--line);color:var(--muted);background:#fff}
@media(max-width:1180px){.menu-btn{display:block}.navlinks{display:none;position:absolute;top:68px;left:0;right:0;background:#fff;padding:18px 4%;flex-direction:column;align-items:flex-start;border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(23,32,51,.08)}.navlinks.open{display:flex}.navlinks a{width:100%;padding:8px 0}.navlinks .btn.small{width:auto;padding:8px 12px}}@media(max-width:800px){.hero-grid,.two,.method-grid{grid-template-columns:1fr}.cards{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.hero{padding:44px 0}.hero-card{order:-1}}

.brand-logo{display:flex;align-items:center;text-decoration:none}
.brand-logo img{display:block;width:auto;height:50px;max-width:250px;object-fit:contain}
@media(max-width:800px){
  .brand-logo img{height:42px;max-width:210px}
}

.language-switch{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.lang-btn{border:1px solid var(--brand);background:#fff;color:var(--brand);font-weight:800;padding:8px 14px;border-radius:999px;cursor:pointer}
.lang-btn.active{background:var(--brand);color:#fff}
.kn-text{margin-top:6px;font-size:.98em;line-height:1.55}
.option .kn-text{margin-left:1.2rem}


/* v0.5 Computer Literacy consolidated practice */
.practice-controls{
  display:grid;
  grid-template-columns:minmax(280px,1.3fr) minmax(240px,.7fr);
  gap:24px;
  align-items:end;
  margin-top:22px;
}
.topic-form label,.control-label{
  display:block;
  font-weight:800;
  margin:0 0 7px;
  color:var(--ink);
}
.topic-form select{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  font:inherit;
}
.practice-controls .language-switch{margin-top:0}
.progress-row{margin-bottom:12px}
.progress-track{
  height:6px;
  border-radius:999px;
  overflow:hidden;
  background:#e6ebf2;
  margin-top:8px;
}
.progress-track span{
  display:block;
  height:100%;
  background:var(--brand);
  border-radius:inherit;
}
.answer-line{
  padding:10px 12px;
  margin:12px 0;
  background:var(--soft);
  border-radius:10px;
}
.why-text{margin-top:6px}
.option:disabled{cursor:default}
@media(max-width:800px){
  .practice-controls{grid-template-columns:1fr}
}

.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:700px){.filter-grid{grid-template-columns:1fr}}

.language-fixed{
  min-height:44px;
  display:flex;
  align-items:center;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--soft);
  font-weight:800;
  color:var(--ink);
}


/* v0.8 topic-first practice navigation */
.section-picker{
  max-width:520px;
  margin-top:20px;
}
.section-picker label,
.mobile-topic-picker label{
  display:block;
  font-weight:800;
  margin-bottom:7px;
}
.section-picker select,
.mobile-topic-picker select{
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font:inherit;
}
.practice-layout{
  display:grid;
  grid-template-columns:minmax(220px,280px) minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.topic-sidebar{
  position:sticky;
  top:84px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  max-height:calc(100vh - 110px);
  overflow-y:auto;
}
.topic-sidebar-head{
  padding:15px 16px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:900;
}
.topic-sidebar-head small{
  font-weight:700;
  opacity:.65;
}
.topic-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  border-bottom:1px solid var(--line);
  color:var(--ink);
  text-decoration:none;
  font-weight:700;
}
.topic-link:last-child{border-bottom:0}
.topic-link:hover{background:var(--soft)}
.topic-link.active{
  background:var(--soft);
  box-shadow:inset 4px 0 0 var(--brand);
}
.topic-link b{
  min-width:30px;
  text-align:center;
  padding:2px 7px;
  border-radius:999px;
  background:#eef2f7;
  font-size:.82rem;
}
.practice-main{min-width:0}
.practice-topline{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.practice-topline h2{
  margin:.2rem 0 0;
}
.mobile-topic-picker{
  display:none;
  max-width:520px;
  margin-top:14px;
}
@media(max-width:850px){
  .practice-layout{grid-template-columns:1fr}
  .topic-sidebar{display:none}
  .mobile-topic-picker{display:block}
  .practice-topline{align-items:flex-start;flex-direction:column}
}

/* v0.35: passage-based reading comprehension */
.passage-box{
  margin:0 0 1.25rem;
  padding:1rem 1.1rem;
  border:1px solid rgba(148,163,184,.35);
  border-radius:14px;
  background:rgba(148,163,184,.08);
  line-height:1.7;
}
.passage-box h3{margin:0 0 .6rem;font-size:1.02rem;}
.passage-box p{margin:0;max-width:78ch;}

/* v0.38 Mental Ability SVG visuals */
.ma-question-visual{margin:0 0 1rem;padding:.8rem;border:1px solid rgba(148,163,184,.3);border-radius:14px;overflow-x:auto}
.ma-row{display:flex;align-items:center;justify-content:center;gap:.45rem;flex-wrap:wrap}
.ma-svg{width:150px;max-width:100%;height:auto;display:block}
.ma-option-visual{display:flex;justify-content:center;margin-bottom:.35rem}
.ma-matrix{display:grid;grid-template-columns:repeat(2,150px);gap:.4rem;justify-content:center}
.ma-matrix>div{display:flex;align-items:center;justify-content:center;min-height:110px;border:1px solid rgba(148,163,184,.25)}
@media(max-width:640px){.ma-svg{width:110px}.ma-matrix{grid-template-columns:repeat(2,110px)}}


/* v0.66 Worksheet Generator + Online Test */
.limit-note{
  margin-top:18px;
  padding:10px 14px;
  display:inline-block;
  border-radius:10px;
  background:#fff;
  border:1px solid var(--line);
}
.worksheet-shell{
  display:grid;
  grid-template-columns:minmax(220px,290px) minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.worksheet-help{position:sticky;top:86px}
.worksheet-help ol{padding-left:1.25rem}
.worksheet-help li{margin:.6rem 0}
.worksheet-form-card label{margin-top:0}
.section-switch-form select,
.worksheet-form-card select{
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  font:inherit;
}
.generator-block{margin-top:28px}
.generator-block-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px
}
.generator-block-head label{margin:0}
.text-btn{
  border:0;background:transparent;color:var(--brand);font:inherit;font-weight:800;cursor:pointer
}
.topic-check-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  max-height:390px;
  overflow:auto;
  padding:3px;
}
.topic-check{
  margin:0;
  display:flex;
  align-items:flex-start;
  gap:10px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:11px 12px;
  background:#fff;
  cursor:pointer;
}
.topic-check input{
  width:auto;
  margin:4px 0 0;
  flex:0 0 auto;
}
.topic-check span{display:flex;flex-direction:column;min-width:0}
.topic-check small{color:var(--muted);font-weight:600}
.generator-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:26px;
}
.generator-grid input{margin-top:0}
.field-help{display:block;color:var(--muted);margin-top:5px}
.generator-submit{
  margin-top:24px;
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}
.generated-actions-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.action-card{display:flex;flex-direction:column;align-items:flex-start}
.action-card .btn{margin-top:auto}
.action-icon{
  width:46px;height:46px;border-radius:12px;background:var(--soft);color:var(--brand2);
  display:grid;place-items:center;font-weight:900;margin-bottom:8px
}
.generated-summary{margin-top:22px}
.summary-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
.summary-list div{border-bottom:1px solid var(--line);padding-bottom:9px}
.summary-list dt{font-size:.8rem;color:var(--muted);font-weight:800;text-transform:uppercase}
.summary-list dd{margin:3px 0 0;font-weight:700}
.test-head-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.test-score-box{
  min-width:120px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 18px;
  text-align:center
}
.test-score-box strong{display:block;font-size:1.8rem;color:var(--brand2)}
.test-score-box span{font-weight:800;color:var(--muted)}
.test-layout{
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.test-nav-card{position:sticky;top:84px}
.test-nav-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:7px
}
.test-nav-grid button{
  aspect-ratio:1;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  cursor:pointer;
  font-weight:800
}
.test-nav-grid button.answered{background:#eefaf3;border-color:#9ed4b7;color:var(--good)}
.test-nav-grid button.current{outline:2px solid var(--brand)}
.test-legend{margin-top:15px;color:var(--muted);font-size:.82rem;display:grid;gap:6px}
.test-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}
.answered-dot{background:#9ed4b7}
.current-dot{background:var(--brand)}
.test-question-card h2{font-size:1.2rem;margin-top:18px}
.progress-row{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:.9rem}
.test-controls{display:flex;justify-content:space-between;gap:12px;margin-top:22px}
.test-controls .btn:disabled{opacity:.45;cursor:not-allowed}
.test-review{margin-top:18px;padding:14px;border-radius:12px;border:1px solid var(--line)}
.review-correct{background:#eefaf3;border-color:#b8dfc9}
.review-wrong{background:#fff0ef;border-color:#efc0bc}
.review-explanation{margin-top:8px}
.result-notice{margin-bottom:16px}

/* Printable worksheet / browser Save as PDF */
.print-toolbar{padding:18px 0;background:#eef4ff;border-bottom:1px solid var(--line)}
.print-toolbar .wrap{display:flex;justify-content:space-between;gap:12px}
.worksheet-paper{
  width:min(900px,94%);
  margin:28px auto;
  background:#fff;
  color:#111;
  padding:34px 42px;
  border:1px solid #ddd;
  box-shadow:0 8px 28px rgba(0,0,0,.06)
}
.worksheet-paper-head{
  display:flex;
  align-items:center;
  gap:22px;
  border-bottom:2px solid #222;
  padding-bottom:16px
}
.worksheet-paper-head img{width:auto;height:62px;max-width:250px;object-fit:contain}
.worksheet-paper-head h1{margin:.2rem 0;font-size:1.6rem}
.worksheet-paper-head p{margin:0;color:#444}
.paper-kicker{text-transform:uppercase;font-size:.75rem;font-weight:800;letter-spacing:.04em}
.paper-meta{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:14px 0;border-bottom:1px solid #ccc;font-size:.9rem
}
.paper-instructions{padding:12px 0 4px;font-size:.9rem}
.print-question-list{padding-left:1.5rem}
.print-question{
  padding:12px 0 16px 4px;
  break-inside:avoid;
  page-break-inside:avoid;
}
.print-stem{font-weight:650;white-space:pre-line}
.print-kn{margin-top:4px}
.print-passage{
  margin:9px 0;padding:10px 12px;border:1px solid #bbb;border-radius:6px;
  white-space:pre-line;font-size:.92rem
}
.print-visual{margin:10px 0;max-width:380px}
.print-options{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;margin-top:9px}
.print-options div{break-inside:avoid}
.answer-key{border-top:2px solid #222;margin-top:24px;padding-top:15px;page-break-before:always}
.answer-key-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.paper-footer{text-align:center;border-top:1px solid #aaa;margin-top:28px;padding-top:10px;font-size:.8rem}

@media(max-width:800px){
  .worksheet-shell,.test-layout{grid-template-columns:1fr}
  .worksheet-help,.test-nav-card{position:static}
  .topic-check-grid,.generator-grid,.generated-actions-grid{grid-template-columns:1fr}
  .summary-list{grid-template-columns:1fr}
  .test-nav-grid{grid-template-columns:repeat(8,1fr)}
  .worksheet-paper{padding:24px 20px}
  .worksheet-paper-head{align-items:flex-start;flex-direction:column}
  .print-options{grid-template-columns:1fr}
}
@media print{
  body{background:#fff}
  .topbar,footer,.no-print{display:none!important}
  main{margin:0}
  .worksheet-paper{
    width:100%;margin:0;padding:12mm 10mm;border:0;box-shadow:none
  }
  .worksheet-paper-head img{height:18mm}
  @page{size:A4;margin:10mm}
}

.topic-link-unavailable{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  background:#f7f8fa;
  cursor:not-allowed;
  font-size:.93rem;
}
.topic-link-unavailable b{font-weight:800;opacity:.55}


/* v0.71 100-Mark HSTR Paper-I Generator */
.paper-generator-layout{
  display:grid;
  grid-template-columns:minmax(270px,340px) minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.allocation-list{display:grid;gap:9px}
.allocation-list div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:3px 12px;
  border-bottom:1px solid var(--line);
  padding:8px 0
}
.allocation-list small{grid-column:1/-1;color:var(--muted)}
.allocation-list strong{font-size:1.15rem;color:var(--brand2)}
.allocation-total{display:flex;justify-content:space-between;gap:16px;padding:14px 0;font-size:1.1rem}
.profile-help-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:12px
}
.profile-help-grid div{
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
  display:flex;
  flex-direction:column
}
.profile-help-grid span{font-size:.84rem;color:var(--muted);margin-top:3px}
.paper-generation-rules{margin:26px 0 20px;padding:15px;border-radius:12px;background:var(--soft)}
.paper-generation-rules ul{margin-bottom:0;padding-left:1.2rem}
.paper-generation-rules li{margin:.38rem 0}
.paper-generate-btn{min-width:240px}
.paper-section-summary{display:grid;gap:8px;margin:12px 0 22px}
.paper-section-summary div{
  display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:12px;
  align-items:center;padding:9px 0;border-bottom:1px solid var(--line)
}
.paper-section-summary span{color:var(--muted);font-weight:700}
.full-paper-test-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:24px;
  align-items:start
}
.paper-test-nav{position:sticky;top:84px;max-height:calc(100vh - 104px);overflow:auto}
.paper-section-tabs{display:grid;gap:5px;margin-bottom:12px}
.paper-section-tabs button{
  border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 8px;
  display:flex;justify-content:space-between;gap:8px;text-align:left;cursor:pointer;font:inherit
}
.paper-section-tabs button.active{border-color:var(--brand);outline:1px solid var(--brand)}
.paper-section-tabs span{font-size:.78rem;line-height:1.2}
.paper-section-tabs b{font-size:.8rem}
.paper-nav-grid{grid-template-columns:repeat(5,1fr)}
.paper-question-section{
  display:inline-block;margin-bottom:10px;padding:5px 9px;border-radius:999px;
  background:var(--soft);color:var(--brand2);font-size:.82rem;font-weight:800
}
.paper-result-card{margin-bottom:16px}
.paper-result-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px
}
.paper-result-grid div{
  border:1px solid var(--line);border-radius:10px;padding:10px;
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px
}
.paper-result-grid small{grid-column:1/-1;color:var(--muted)}
.official-paper .print-paper-section>h2{
  display:flex;justify-content:space-between;gap:16px;
  border-bottom:1px solid #888;padding-bottom:6px;margin-top:24px;font-size:1.2rem
}
.official-paper .print-paper-section>h2 span{font-size:.9rem;font-weight:700}
.official-paper .answer-key h3{margin-top:18px}

@media(max-width:900px){
  .paper-generator-layout,.full-paper-test-layout{grid-template-columns:1fr}
  .paper-test-nav{position:static;max-height:none}
  .profile-help-grid,.paper-result-grid{grid-template-columns:1fr}
}

.dashboard-paper-history{padding-top:0}
.paper-history-list{display:grid;gap:8px}
.paper-history-list div{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;
  padding:9px 0;border-bottom:1px solid var(--line);align-items:center
}
.paper-history-list small{color:var(--muted)}
@media(max-width:600px){
  .paper-history-list div{grid-template-columns:1fr auto}
  .paper-history-list small{grid-column:1/-1}
}


/* v0.72 generated-paper visual and pagination repairs */
.visual-option{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  text-align:left;
  gap:8px;
}
.option-content{display:block;min-width:0}
.option-visual{margin-top:8px;max-width:220px}
.option-visual .ma-svg{width:150px;height:auto;max-height:110px}
.ma-number-boxes{max-height:165px !important}

.print-tip{
  font-size:.82rem;
  color:var(--muted);
  margin-left:10px;
}
.print-option-with-visual{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr);
  gap:6px;
  align-items:start;
}
.print-option-visual{
  display:block;
  margin-top:4px;
  width:105px;
}
.print-option-visual .ma-svg{
  width:100px !important;
  height:auto !important;
  max-height:78px;
}
.print-question .ma-number-boxes{
  width:180px !important;
  max-height:160px !important;
}

@media print{
  .print-paper-section > h2{
    break-after:avoid-page;
    page-break-after:avoid;
  }
  .print-paper-section > h2 + .print-question-list{
    break-before:avoid-page;
  }
  .print-question{
    break-inside:avoid-page;
    page-break-inside:avoid;
  }
  .print-option-with-visual{
    break-inside:avoid;
    page-break-inside:avoid;
  }
}

/* v0.74 production footer / error states */
.site-footer{margin-top:36px}
.footer-grid{
  display:grid;
  grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr);
  gap:28px;
  align-items:start;
}
.footer-links{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  gap:5px 14px;
  font-size:.88rem;
}
.footer-links a{font-weight:800}
.footer-links span{opacity:.82}
.error-card{max-width:720px;margin:30px auto;text-align:center;padding:42px}
@media(max-width:760px){
  .footer-grid,.footer-links{grid-template-columns:1fr}
  .footer-links{gap:4px}
  .footer-links span{margin-bottom:10px}
}

/* v0.74.1 navigation hotfix */
@media(min-width:1181px){
  .navlinks{gap:14px}
  .navlinks a{font-size:.93rem;white-space:nowrap}
  .brand-logo img{max-width:220px}
}

/* v0.74.2 — generator visibility hotfix */
.generator-hero-btn{
  background:var(--brand2) !important;
  color:#fff !important;
  border:2px solid var(--brand2) !important;
}
.generator-launch-section{
  padding-top:34px;
  padding-bottom:34px;
  background:#fff;
}
.generator-launch-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-top:18px;
}
.generator-launch-card{
  border:2px solid var(--brand);
  box-shadow:0 10px 28px rgba(23,32,51,.08);
}
.generator-launch-card h3{
  font-size:1.35rem;
  margin:.7rem 0;
}
.generator-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  font-weight:800;
  font-size:.82rem;
}
.generator-launch-btn{
  margin-top:10px;
  width:100%;
  text-align:center;
  font-size:1rem;
}
@media(max-width:800px){
  .generator-launch-grid{grid-template-columns:1fr}
}

/* v0.75 Accounts, subscriptions and single-session foundation */
.subscription-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.subscription-card{display:flex;flex-direction:column;gap:12px;min-height:260px}
.subscription-card .btn{margin-top:auto;align-self:flex-start}
.subscription-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.product-kicker,.eyebrow{font-size:.78rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:var(--brand);margin:0 0 .4rem}
.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:.76rem;font-weight:800;background:#eef2f7;color:#475569;white-space:nowrap}
.status-pill.active{background:#dcfce7;color:#166534}
.status-pill.ready{background:#e0f2fe;color:#075985}
.status-pill.planned{background:#fef3c7;color:#92400e}
.small-copy{font-size:.88rem}
.account-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:22px;align-items:start}
.account-card h2{margin-top:0}
.account-list{margin:0;display:grid;gap:0}
.account-list>div{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.account-list dt{font-weight:800;color:var(--muted)}
.account-list dd{margin:0;overflow-wrap:anywhere}
.security-note{margin:18px 0 0;padding:12px 14px;border-radius:12px;background:rgba(14,165,233,.08);border:1px solid rgba(14,165,233,.2)}
.entitlement-list{display:grid;gap:0;margin:8px 0 18px}
.entitlement-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.entitlement-row small{display:block;color:var(--muted);margin-top:3px;max-width:65ch}
button.btn:disabled{opacity:.7;cursor:not-allowed}
@media(max-width:800px){.subscription-grid,.account-layout{grid-template-columns:1fr}.entitlement-row{align-items:flex-start;flex-direction:column}.subscription-card-top{align-items:flex-start;flex-direction:column}}

/* v0.75.1 — public home + subscriber access redesign */
.public-hero{padding-bottom:52px}
.public-hero h1{max-width:760px}
.hero-trust{margin-top:18px;color:var(--muted);font-size:.94rem;max-width:70ch}
.philosophy-mini{align-self:center;border-top:4px solid var(--brand)}
.philosophy-mini h2{font-size:1.7rem;margin:.45rem 0 .7rem}
.section-intro{max-width:850px;margin-bottom:22px}
.section-intro.centred{text-align:center;margin-left:auto;margin-right:auto}
.section-intro h2{margin:.25rem 0 .5rem}
.philosophy-section{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}
.mcq-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:28px}
.mcq-flow>div{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 14px;min-height:150px;box-shadow:0 8px 24px rgba(23,32,51,.05)}
.mcq-flow b{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--brand);color:#fff;margin-bottom:12px}
.mcq-flow strong,.mcq-flow span{display:block}.mcq-flow strong{font-size:1.02rem}.mcq-flow span{color:var(--muted);font-size:.88rem;margin-top:6px;line-height:1.45}
.feature-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.feature-cards .card h3{margin-top:0}
.section-cta{margin-top:22px}
.syllabus-tabs{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(23,32,51,.05)}
.syllabus-tablist{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#f5f7fb;border-bottom:1px solid var(--line)}
.syllabus-tab{border:0;border-right:1px solid var(--line);background:transparent;padding:16px 12px;font:inherit;font-weight:800;color:var(--text);cursor:pointer}
.syllabus-tab:last-child{border-right:0}.syllabus-tab small{display:block;font-weight:650;color:var(--muted);font-size:.72rem;margin-top:4px}
.syllabus-tab.active{background:#fff;color:var(--brand);box-shadow:inset 0 -3px 0 var(--brand)}
.syllabus-panel{padding:24px}.syllabus-panel-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.syllabus-panel-head h3{font-size:1.5rem;margin:0 0 5px}.syllabus-panel-head p{margin:0;color:var(--muted)}
.syllabus-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.syllabus-group{border:1px solid var(--line);border-radius:14px;padding:16px}.syllabus-group h4{margin:0 0 10px}.syllabus-group ul{margin:0;padding-left:20px;color:var(--muted)}.syllabus-group li+li{margin-top:5px}
.sample-grid,.home-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sample-card{display:flex;flex-direction:column;align-items:flex-start}.sample-card .btn{margin-top:auto}.home-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.home-product-card{display:flex;flex-direction:column;gap:10px}.home-product-card h3{margin:.2rem 0}.home-product-card .btn{margin-top:auto;align-self:flex-start}.coming-note{font-size:.86rem;color:var(--muted);font-weight:700;margin-top:auto}
.sample-practice-wrap{max-width:880px}.sample-after{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.sample-worksheet-form{max-width:620px;margin:0 auto;display:grid;gap:16px}.sample-worksheet-form label{display:grid;gap:7px;font-weight:750}.sample-worksheet-form select,.sample-worksheet-form input{width:100%;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit}.worksheet-public-list{max-width:900px}.worksheet-public-q{margin-bottom:14px}.worksheet-public-q h3{font-size:1rem}.worksheet-public-q li+li{margin-top:6px}
.subscriber-tools{display:flex;flex-wrap:wrap;gap:10px;padding:14px 0 20px;border-bottom:1px solid var(--line)}
@media(max-width:1000px){.mcq-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.syllabus-tablist{display:block}.syllabus-tab{display:block;width:100%;text-align:left;border-right:0;border-bottom:1px solid var(--line)}.syllabus-tab.active{box-shadow:inset 4px 0 0 var(--brand)}.syllabus-group-grid,.sample-grid,.home-product-grid,.feature-cards{grid-template-columns:1fr}.syllabus-panel{padding:18px}.syllabus-panel-head{flex-direction:column}.mcq-flow{grid-template-columns:1fr}.mcq-flow>div{min-height:auto}}
