@import url('styles-v2.css');

/* =====================================================================
   Scordemy v3 — mobile-first pass
   Base styles target a 360–430px phone. Desktop is a min-width layer.
   Goal: fewer objects per screen, one clear action per section, images
   that always resolve, nothing overlapping the bottom bar.
   ===================================================================== */

:root {
  --cta: #E8590C;
  --cta-d: #C9480A;
  --cta-50: #FFF3EB;
  --counsel: #0B1A33;
  --tap: 46px;
  --gap: 14px;
}

html { scroll-padding-top: 64px; }
body { font-size: 15px; padding-bottom: 0; }
.tabbar + * { }
@media (max-width: 919px) { body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); } }

/* ---------- reveal: never hide content on small screens ---------- */
@media (max-width: 640px) {
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------- type scale ---------- */
.d1 { font-size: 32px; line-height: 1.12; letter-spacing: -.03em; }
.d2 { font-size: 25px; line-height: 1.18; letter-spacing: -.024em; }
.d3 { font-size: 19px; }
.lead { font-size: 15.5px; line-height: 1.6; }
.micro { font-size: 12px; color: var(--faint); line-height: 1.5; }
@media (min-width: 640px) {
  .d1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.05; }
  .d2 { font-size: clamp(26px, 3.1vw, 38px); }
  .d3 { font-size: clamp(20px, 2vw, 24px); }
  .lead { font-size: 17px; }
}

/* ---------- layout helpers ---------- */
.nav-act.m-only { display: flex; }
.d-only { display: none; }
@media (min-width: 920px) {
  .nav-act.m-only { display: none; }
  .ubar.d-only, .xstrip.d-only { display: block; }
  .nav .srch.d-only { display: flex; }
  .b.d-only { display: inline-flex; }
}
.sec { padding: 44px 0; }
.sec.t { padding: 32px 0; }
@media (min-width: 640px) { .sec { padding: 64px 0; } .sec.t { padding: 44px 0; } }
@media (min-width: 920px) { .sec { padding: 88px 0; } .sec.t { padding: 56px 0; } }
.stack-8 { display: grid; gap: 8px; }
.stack-12 { display: grid; gap: 12px; }
.stack-16 { display: grid; gap: 16px; }

/* ---------- utility bar (desktop only) ---------- */

/* ---------- header ---------- */
.nav .wrap { height: 58px; gap: 10px; }
.nav .logo img { height: 30px; }
.nav .links { display: none; }
.nav-act { gap: 2px; margin-left: auto; align-items: center; }
.nic { width: var(--tap); height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); }
.nic:active { background: var(--bg-3); }
@media (min-width: 640px) { .nav .logo img { height: 32px; } }
@media (min-width: 920px) {
  .nav .wrap { height: 68px; gap: 24px; }
  .nav .links { display: flex; }
  .nav .logo img { height: 34px; }
  .nav .srch { display: flex; }
}

/* ---------- drawer ---------- */
.drawer { position: fixed; z-index: 95; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 48px rgba(16,24,40,.2); animation: slidein .24s cubic-bezier(.2,.7,.2,1); overflow-y: auto; }
@keyframes slidein { from { transform: translateX(100%); } }
.drawer .dh { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.drawer .x { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--mute); }
.dcard { display: grid; grid-template-columns: 36px 1fr 16px; gap: 10px; align-items: center; margin: 14px 16px 6px; padding: 14px; border-radius: 12px; background: var(--counsel); color: #fff; }
.dcard .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: #9FD0F3; }
.dcard b { display: block; font: 700 14.5px var(--f); }
.dcard span span { font-size: 12px; color: #A9B4C6; }
.dlinks { display: grid; padding: 8px; }
.dlinks a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 10px; border-radius: 9px; font: 600 14.5px var(--f); color: var(--ink-2); }
.dlinks a:active { background: var(--bg-2); }
.dlinks a i { margin-left: auto; font: 500 12px var(--mono); color: var(--faint); font-style: normal; }
.dlinks a .cd { font: 600 10.5px var(--mono); color: var(--brand-d); background: var(--brand-50); padding: 3px 6px; border-radius: 5px; min-width: 46px; text-align: center; }
.dlinks a svg { color: var(--mute); }
.dfoot { margin-top: auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drow > a { display: inline-flex; align-items: center; gap: 7px; font: 600 14px var(--f); }
.drow .seg { border-color: var(--line); }
.drow .seg button { color: var(--mute); height: 30px; }
.drow .seg button.on { background: var(--ink); color: #fff; }

/* ---------- bottom nav ---------- */
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.6) blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 10.5px var(--f); color: var(--mute); padding: 5px 0 3px; border-radius: 10px; min-height: 50px; justify-content: center; }
.tabbar .ico { display: grid; place-items: center; height: 22px; }
.tabbar .on { color: var(--brand); }
.tabbar .ctr .ico { width: 44px; height: 30px; border-radius: 9px; background: var(--counsel); color: #fff; }
.tabbar .ctr { color: var(--ink); }
.tabbar .ctr .ico::after { content: ''; }
.tabbar .ctr.on .ico { background: var(--cta); }
@media (min-width: 920px) { .tabbar { display: none; } }

/* =====================================================================
   HERO — one message, one primary action, one secondary
   ===================================================================== */
.hero { padding: 22px 0 30px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hero::before { display: none; }
.hero .grid { display: grid; gap: 20px; }
.hero .kick { height: auto; padding: 5px 10px 5px 5px; font-size: 12px; }
.hero .kick .tag { height: 20px; font-size: 11px; }
.hero h1 { margin: 14px 0 10px; }
.hero h1 .rot { color: var(--brand); }
.hero .lead { max-width: 46ch; }
.hero .hcta { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
.hero .hcta .b { height: 48px; font-size: 15px; border-radius: 11px; }
.hero .hcta .b.pri { background: var(--counsel); }
.hero .hcta .b.pri:hover { background: #14294c; }
.hero .hmeta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--mute); }
.hero .hmeta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.hero .hproof { display: none; }
.hero .hsearch { display: none; }
@media (min-width: 640px) {
  .hero { padding: 36px 0 44px; }
  .hero h1 { margin: 18px 0 14px; }
  .hero .hcta { display: flex; gap: 10px; margin-top: 24px; }
  .hero .hcta .b { height: 46px; padding: 0 22px; }
  .hero .hproof { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
  .hero .hproof div b { display: block; font: 800 22px/1 var(--f); letter-spacing: -.02em; }
  .hero .hproof div span { font-size: 12.5px; color: var(--mute); }
}
@media (min-width: 920px) {
  .hero { padding: 56px 0 64px; }
  .hero::before { display: block; }
  .hero .grid { grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
  .hero .lead { font-size: 17px; }
  .hero .hcta { grid-template-columns: none; }
  .hero .hcta .b { height: 52px; font-size: 15.5px; padding: 0 26px; }
  .hero .hproof div b { font-size: 24px; }
  .hero .hsearch { display: flex; }
}

/* ---------- featured single card (replaces the auto-rotating carousel) ---------- */
.fcard { border-radius: 16px; box-shadow: var(--sh-2); }
.fcard .bd { padding: 14px 15px 15px; }
.fcard h3 { font-size: 16.5px; margin: 8px 0 10px; }
.fcard .meta { font-size: 12px; gap: 4px 12px; }
.fcard .foot { margin-top: 14px; padding-top: 14px; flex-wrap: wrap; }
.fcard .pr b { font-size: 21px; }
.fcard .foot .row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fcard .foot .row .b { height: 42px; }
@media (min-width: 640px) {
  .fcard h3 { font-size: 20px; }
  .fcard .meta { font-size: 13px; }
  .fcard .foot { flex-wrap: nowrap; }
  .fcard .foot .row { width: auto; margin-top: 0; }
}

/* =====================================================================
   TWO WAYS IN — counselling + courses, given equal weight near the top
   ===================================================================== */
.ways { display: grid; gap: 12px; }
@media (min-width: 760px) { .ways { grid-template-columns: 1fr 1fr; gap: 16px; } }
.way { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.way .nb { display: inline-flex; align-items: center; gap: 7px; font: 700 11px var(--f); letter-spacing: .07em; text-transform: uppercase; }
.way h3 { font: 700 18px/1.25 var(--f); letter-spacing: -.015em; margin: 2px 0 0; }
.way p { font-size: 13.5px; color: var(--mute); line-height: 1.5; }
.way .b { margin-top: 8px; height: 44px; }
.way .tick { display: grid; gap: 6px; margin: 2px 0 4px; }
.way .tick span { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.way .tick svg { flex: 0 0 auto; margin-top: 2px; color: var(--ok); }
.way.help { background: var(--counsel); border-color: var(--counsel); color: #fff; order: -1; }
.way.help h3 { color: #fff; }
.way.help p { color: #A9B4C6; }
.way.help .tick span { color: #D5DCE8; }
.way.help .tick svg { color: #6FD3A6; }
.way.help .nb { color: #F2B33D; }
.way.learn .nb { color: var(--brand); }
@media (min-width: 760px) { .way.help { order: 0; } .way { padding: 24px; } .way h3 { font-size: 20px; } .way p { font-size: 14px; } }

/* =====================================================================
   COURSE RAIL — horizontal snap on phones, grid on desktop
   ===================================================================== */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 560px) { .rail { grid-auto-columns: 46%; } }
@media (min-width: 920px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 20px; overflow: visible; padding: 0; margin: 0; }
}

/* compact course card on phones */
.cc { border-radius: 14px; }
.cc .bd { padding: 13px 14px; gap: 8px; }
.cc h4 { font-size: 14.5px; }
.cc .ft { display: none; }
.cc .bt { padding-top: 11px; }
.cc .pr b { font-size: 18px; }
.cc .im { aspect-ratio: 16/10; }
.cc .acts { padding: 0 14px 14px; gap: 8px; }
.cc .acts .b { height: 40px; }
@media (min-width: 560px) {
  .cc .im { aspect-ratio: 16/9; }
  .cc .ft { display: grid; }
  .cc h4 { font-size: 15.5px; }
}
.railhint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); margin-top: 2px; }
@media (min-width: 920px) { .railhint { display: none; } }

/* section headers */
.shead { margin-bottom: 18px; gap: 12px; }
.shead .over { margin-bottom: 8px; }
.shead p { margin-top: 6px; font-size: 14px; }
.shead .b { height: 42px; width: 100%; }
@media (min-width: 640px) { .shead { margin-bottom: 26px; } .shead p { font-size: 16px; } .shead .b { width: auto; } }

/* =====================================================================
   EXAMS — small, scannable tiles
   ===================================================================== */
.xgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
.xt { min-height: 0; padding: 14px; gap: 8px; border-radius: 12px; }
.xt .code-lg { font-size: 11px; padding: 3px 6px; }
.xt h3 { font-size: 14px; line-height: 1.3; }
.xt p { display: none; }
.xt .bt { font-size: 11.5px; gap: 6px; }
.xt .go { width: 26px; height: 26px; }
@media (min-width: 640px) {
  .xgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .xt { padding: 18px; gap: 10px; }
  .xt h3 { font-size: 17px; }
  .xt p { display: block; font-size: 13px; }
  .xt .bt { font-size: 13px; }
}
@media (min-width: 1000px) { .xgrid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .xt { padding: 20px; min-height: 196px; } }

/* =====================================================================
   COUNSELLING — how it works
   ===================================================================== */
.steps3 { display: grid; gap: 10px; }
.step3 { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.step3 .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-d); font: 700 12px var(--mono); }
.step3 b { display: block; font: 700 14.5px var(--f); }
.step3 span { font-size: 13px; color: var(--mute); line-height: 1.5; }
@media (min-width: 760px) {
  .steps3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .step3 { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .step3 b { font-size: 16px; }
  .step3 span { font-size: 13.5px; }
}

/* counsellor strip */
.mrail { display: grid; grid-auto-flow: column; grid-auto-columns: 142px; gap: 10px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mrail::-webkit-scrollbar { display: none; }
.mrail > * { scroll-snap-align: start; }
.mgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
.mc { border-radius: 12px; }
.mc .ph { aspect-ratio: 1; }
.mc .bd { padding: 10px 11px 12px; }
.mc h4 { font-size: 13.5px; }
.mc .sj { font-size: 11.5px; }
.mc .cr { display: none; }
@media (min-width: 640px) {
  .mrail { grid-auto-columns: 180px; gap: 14px; }
  .mc .ph { aspect-ratio: 4/4.2; }
  .mc .bd { padding: 14px 16px 16px; }
  .mc h4 { font-size: 15.5px; }
  .mc .sj { font-size: 13px; }
  .mc .cr { display: flex; }
}
@media (min-width: 920px) { .mrail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 20px; } }

/* =====================================================================
   COUNSELLING PAGE
   ===================================================================== */
.cpage { background: var(--bg-2); }
.chead { background: var(--counsel); color: #fff; padding: 26px 0 30px; }
.chead .over { color: #F2B33D; }
.chead h1 { margin: 10px 0 10px; }
.chead .lead { color: #B9C3D2; font-size: 15px; }
.chead .row { margin-top: 18px; }
.chead .b { height: 46px; }
@media (min-width: 640px) { .chead { padding: 40px 0 48px; } .chead .lead { font-size: 17px; } }
.cform { display: grid; gap: 12px; margin-top: 4px; }
.cform .b { height: 46px; }
.cform .field label { font-size: 12.5px; color: var(--ink-2); }
.sheet .cform { margin-top: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 0; }
.two .b { height: 46px; }
.b.wa { background: #1FA855; color: #fff; }
.b.wa:hover { background: #188C46; }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 12px; color: var(--faint); }
.or::before, .or::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.cbox { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.cbox h2 { font: 700 17px var(--f); margin-bottom: 4px; }
.cbox .sub { font-size: 13px; color: var(--mute); margin-bottom: 14px; }
@media (min-width: 640px) { .cbox { padding: 24px; } .cbox h2 { font-size: 20px; } }
.cgrid2 { display: grid; gap: 12px; }
@media (min-width: 760px) { .cgrid2 { grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; } }

.faq { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 16px; font: 600 14px var(--f); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 18px var(--f); color: var(--mute); flex: 0 0 auto; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 16px 15px; font-size: 13.5px; color: var(--mute); line-height: 1.6; }

/* =====================================================================
   PHONE SHEET (talk to a counsellor)
   ===================================================================== */
.sheet { position: fixed; z-index: 96; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px rgba(16,24,40,.24); max-height: 92vh; overflow-y: auto; animation: sheetup .26s cubic-bezier(.2,.7,.2,1); }
@keyframes sheetup { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: -8px auto 14px; }
.sheet .x { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--mute); }
.sheet .x:active { background: var(--bg-3); }
.sheet h3 { font-size: 20px; }
.sheet .micro { margin-top: 12px; text-align: center; }
@media (min-width: 640px) {
  .sheet { left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 460px; border-radius: 18px; padding: 26px; animation: pop2 .2s; right: auto; }
  @keyframes pop2 { from { opacity: 0; transform: translate(-50%, -46%); } }
}

/* =====================================================================
   PAGE HEADS
   ===================================================================== */
.phd { padding: 20px 0 22px; }
.phd h1 { margin: 0; }
.phd .lead { margin-top: 8px; font-size: 14px; }
.crumb { font-size: 12px; margin-bottom: 10px; }
@media (min-width: 640px) { .phd { padding: 34px 0 32px; } .phd .lead { font-size: 17px; margin-top: 10px; } .crumb { font-size: 13px; margin-bottom: 16px; } }

/* =====================================================================
   MOBILE CATALOGUE — filters become a sheet
   ===================================================================== */
.cat { grid-template-columns: 1fr; gap: 0; }
.cat aside { display: none; }
.fsheet { position: fixed; z-index: 96; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 86vh; overflow-y: auto; animation: sheetup .24s cubic-bezier(.2,.7,.2,1); box-shadow: 0 -20px 50px rgba(16,24,40,.24); }
.fsheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: -4px auto 16px; }
.fsheet h6 { font-size: 12px; margin: 16px 0 6px; }
.fsheet .chk { min-height: 44px; }
.cbar { gap: 8px; margin-bottom: 14px; position: sticky; top: 58px; z-index: 20; background: var(--bg); padding: 8px 0; }
.cbar .b { height: 40px; }
.cbar .sel { height: 40px; }
.chiprail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
.chiprail::-webkit-scrollbar { display: none; }
.chiprail a { flex: 0 0 auto; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 12.5px var(--f); color: var(--ink-2); }
.chiprail a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 920px) { .chiprail { display: none; } .cbar { position: static; padding: 0; } }

/* course grid on phones: list rows are calmer than 1-column image cards */
@media (max-width: 559px) { .cgrid.listmob { grid-template-columns: 1fr; gap: 10px; } }

/* =====================================================================
   COURSE DETAIL — sticky buy bar must clear the tab bar
   ===================================================================== */
.buybar { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 55; background: #fff; border-top: 1px solid var(--line); padding: 9px 16px; box-shadow: 0 -8px 20px -12px rgba(16,24,40,.16); }
.buybar .pr { flex: 1; min-width: 0; }
.buybar .pr b { font-size: 19px; }
.buybar .pr s { font-size: 12px; }
.buybar .b { height: 40px; }
.ch { padding: 18px 0 24px; }
.ch h1 { font-size: 25px; margin: 10px 0 10px; }
.ch .lead { font-size: 14px; }
.chips { gap: 6px; margin-top: 12px; }
.chips .tag { height: 26px; font-size: 11.5px; }
.cd-grid { grid-template-columns: 1fr; gap: 20px; }
.cd-grid .buyc { margin-top: 0; position: static; order: -1; }
.buy .im { display: none; }
.buy .bd { padding: 16px; gap: 12px; }
.buy .pr b { font-size: 24px; }
.buy .b.lg { height: 48px; }
.buy ul { font-size: 13px; }
@media (min-width: 640px) { .ch { padding: 28px 0 36px; } .ch h1 { font-size: clamp(28px, 4vw, 44px); } .ch .lead { font-size: 17px; } .buy .im { display: block; } .buy .bd { padding: 22px; } }
@media (min-width: 981px) { .cd-grid { grid-template-columns: 1fr 380px; gap: 48px; } .cd-grid .buyc { margin-top: -260px; position: sticky; top: 132px; } .buybar { display: none; } }
@media (min-width: 920px) { .buybar { display: none; } }

/* =====================================================================
   EXAM HUB
   ===================================================================== */
.xh { padding: 22px 0 0; }
.xh h1 { margin: 6px 0 10px !important; }
.xh .lead { font-size: 14.5px; }
.xh .tp { grid-template-columns: 1fr; gap: 18px; }
.xh .row.wrapf { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xh .row.wrapf .b { height: 44px; }
.xh .facts { grid-template-columns: 1fr 1fr; margin-top: 20px; }
.xh .facts > div { margin: 0 !important; padding: 12px 0 !important; border: 0 !important; }
.xh .facts b { font-size: 13.5px; }
.xh .utabs { margin-top: 4px; }
.xh .utabs button { font-size: 13.5px; }
@media (min-width: 860px) {
  .xh { padding: 36px 0 0; }
  .xh .tp { grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
  .xh .row.wrapf { display: flex; gap: 10px; }
  .xh .facts { grid-template-columns: repeat(4, auto); }
  .xh .facts > div { padding: 16px 28px 16px 0 !important; margin-right: 28px !important; }
  .xh .facts > div + div { border-left: 1px solid rgba(255,255,255,.12) !important; padding-left: 28px !important; }
  .xh .facts b { font-size: 15px; }
}

/* =====================================================================
   PATHS / MISC PAGE FIXES
   ===================================================================== */
.pf { padding: 24px 0 40px; min-height: 0; }
.pf .box .card { padding: 20px !important; }
.pf h1 { font-size: 22px !important; }
.pf .opt { min-height: 58px; padding: 12px 13px; gap: 11px; }
.pf .opt .k { min-width: 42px; height: 38px; font-size: 12px; }
.pf .opt .lb { font-size: 14px; }
.pf .opt .sb { font-size: 12px; }
.opt { min-height: 56px; }
.opt .lb { font-size: 14.5px; }
.opt .sb { font-size: 12.5px; }

.split, .split.lf, .split.art { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.split.lf { gap: 32px; }
.vgrid { grid-template-columns: 1fr; gap: 16px; }
.vgrid.v2c { grid-template-columns: 1fr; }
.vc h4 { font-size: 14px; margin-top: 9px; }
.agrid { grid-template-columns: 1fr; gap: 12px; }
.ac { padding: 16px; gap: 9px; }
.ac h3 { font-size: 15.5px; }
.ac p { font-size: 13px; }
.comm { grid-template-columns: 1fr; gap: 12px; }
.sc { padding: 18px; min-height: 0; gap: 12px; }
.fr { min-height: 0; padding: 16px; gap: 8px; }
.fgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
.fr .ic { width: 34px; height: 34px; }
.fr h4 { font-size: 14px; }
.fr p { font-size: 12px; display: none; }
.fr .lnk { font-size: 12.5px; }
@media (min-width: 640px) { .fgrid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .fr { padding: 22px; } .fr h4 { font-size: 16px; } .fr p { display: block; font-size: 13.5px; } .ac { padding: 22px; } .ac h3 { font-size: 17px; } }
@media (min-width: 900px) { .fgrid { grid-template-columns: repeat(4, 1fr); } .vgrid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .agrid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .comm { grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; } .split.lf { grid-template-columns: 1.5fr 1fr; gap: 48px; } .split.art { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; } }

/* stats / why */
.stats { grid-template-columns: 1fr 1fr; }
.stats > div { padding: 18px 14px; }
.stats b { font-size: 27px; }
.stats span { font-size: 12.5px; margin-top: 7px; }
.stats small { font-size: 11.5px; }
.why { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
.why h4 { font-size: 15px; margin: 8px 0 4px; }
.why p { font-size: 13px; }
.awards { margin-top: 24px; gap: 6px; }
.awards span { height: 30px; font-size: 11.5px; padding: 0 10px; }
.sec.dk h2.d2 { font-size: 23px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } .why { grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; } }
@media (min-width: 900px) { .why { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; } }

/* app band */
.appb { padding: 24px 18px; border-radius: 16px; gap: 20px; grid-template-columns: 1fr; }
.appb .feats { grid-template-columns: 1fr; gap: 8px; font-size: 13px; margin-top: 16px; }
.appb .row.wrapf { display: grid; gap: 8px; margin-top: 20px !important; }
.appb .row.wrapf .b { height: 46px; }
.phone { display: none; }
@media (min-width: 640px) { .appb { padding: 36px 30px; } .appb .feats { grid-template-columns: 1fr 1fr; } .appb .row.wrapf { display: flex; } }
@media (min-width: 860px) { .appb { grid-template-columns: 1.3fr 1fr; padding: 48px; gap: 40px; } .phone { display: block; } }

/* pteaser */
.pteaser { grid-template-columns: 1fr; padding: 20px; gap: 20px; border-radius: 16px; }
.pteaser .pq { padding: 15px; }
.pq .pbar { margin-bottom: 14px; }
.pq h3 { font-size: 16px !important; }
.pteaser .row.wrapf { display: grid; gap: 8px; margin-top: 18px !important; }
.pteaser .row.wrapf .b { height: 46px; }
@media (min-width: 900px) { .pteaser { grid-template-columns: 1fr 1.1fr; padding: 48px; gap: 48px; } .pteaser .pq { padding: 20px; } .pq h3 { font-size: 17px !important; } .pteaser .row.wrapf { display: flex; margin-top: 24px !important; } }

/* cards / tables */
.card.pad { padding: 16px; }
@media (min-width: 640px) { .card.pad { padding: 24px; } }
.card.pad h3.d4, .card.pad h2.d3 { font-size: 16px; }
@media (min-width: 640px) { .card.pad h3.d4, .card.pad h2.d3 { font-size: 18px; } }
.tbl { font-size: 13px; }
.tbl th, .tbl td { padding: 10px 9px; }
.steps > div { padding-bottom: 15px; }
.steps b { font-size: 14px; }
.steps span { font-size: 13px; }
.chklist li { font-size: 13.5px; }
.prose { font-size: 16px; line-height: 1.7; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }

/* course row */
.crow { grid-template-columns: 92px 1fr auto; gap: 10px; padding: 10px; border-radius: 11px; }
.crow img { width: 92px; }
.crow h5 { font-size: 13px; }
.crow .small { font-size: 11.5px; }
.crow .p { font-size: 13.5px; }
@media (min-width: 640px) { .crow { grid-template-columns: 120px 1fr auto; gap: 14px; padding: 12px; } .crow img { width: 120px; } .crow h5 { font-size: 14px; } }

/* footer */
.foot { padding: 36px 0 24px; font-size: 13.5px; }
.foot .ftop { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.foot .fbrand { grid-column: 1 / -1; }
.foot .fbrand p { margin-top: 12px; max-width: 40ch; font-size: 13px; }
.foot .fbrand img { height: 28px; width: auto; }
.foot .addr { margin-top: 6px; font-size: 12.5px; color: #7A879C; max-width: 26ch; }
.foot h5 { margin-bottom: 8px; font-size: 11px; }
.foot a { padding: 3px 0; }
.foot .bot { margin-top: 26px; padding-top: 16px; flex-direction: column; gap: 6px; font-size: 11.5px; }
@media (min-width: 900px) { .foot { padding: 64px 0 28px; font-size: 14px; } .foot .ftop { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; } .foot .bot { flex-direction: row; justify-content: space-between; margin-top: 48px; } .foot .fbrand p { font-size: 14px; } }

/* misc */
.tabs { margin-bottom: 16px !important; }
.tabs button { height: 34px; font-size: 12.5px; padding: 0 12px; }
.hide-mob { display: none; }
@media (min-width: 920px) { .hide-mob { display: initial; } }
.hide-d { display: initial; }
@media (min-width: 920px) { .hide-d { display: none; } }
.utabs button { font-size: 13px; }
.pal { top: 8vh; width: calc(100vw - 20px); }
.pal .in { height: 54px; padding: 0 14px; }
.pal .res { max-height: 62vh; }
.ovl { background: rgba(11,26,51,.55); }

/* section CTA that spans full width on phones */
.cta-band { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--counsel); color: #fff; }
.cta-band h3 { font: 700 17px/1.3 var(--f); }
.cta-band p { font-size: 13px; color: #A9B4C6; }
.cta-band .b { height: 46px; }
@media (min-width: 760px) {
  .cta-band { grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 26px 28px; }
  .cta-band h3 { font-size: 20px; }
  .cta-band p { font-size: 14px; }
  .cta-band .b { height: 46px; }
}
