/* Mock Tests — shared tokens and components.
   White & blue like the exam screen; dark theme follows the device unless the
   student picks one (data-theme on <html>, set before paint). Mobile-first. */

/* ── TOKENS ── */
:root{
  --bg:#f4f7fb;--surface:#ffffff;--surface2:#eef3fa;
  --border:#d3deec;--border2:#e4ebf5;
  --text:#1b2638;--text-soft:#44536a;--muted:#5f6f86;
  --blue:#1d5fbf;--blue-dk:#164b98;--blue-lt:#e8f0fb;--on-blue:#ffffff;
  --header:#1d5fbf;--on-header:#ffffff;--header-soft:rgba(255,255,255,0.16);
  --ok:#1f8a3b;--bad:#c9302c;--mark:#6b3fb4;--on-status:#ffffff;--idle:#e3e8ef;--idle-text:#44536a;
  --radius:10px;--shadow:0 1px 3px rgba(20,40,80,0.08);
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0d1420;--surface:#141d2c;--surface2:#1a2537;
    --border:#2b3b56;--border2:#223047;
    --text:#e7edf6;--text-soft:#b4c1d6;--muted:#8d9cb4;
    --blue:#6aa5f5;--blue-dk:#8bb9f8;--blue-lt:#182a45;--on-blue:#0a1220;
    --header:#12233f;--on-header:#e7edf6;--header-soft:rgba(255,255,255,0.10);
    --ok:#4cc26d;--bad:#f07470;--mark:#a782ee;--on-status:#0a1220;--idle:#2b3b56;--idle-text:#c9d4e5;
    --shadow:none;color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0d1420;--surface:#141d2c;--surface2:#1a2537;
  --border:#2b3b56;--border2:#223047;
  --text:#e7edf6;--text-soft:#b4c1d6;--muted:#8d9cb4;
  --blue:#6aa5f5;--blue-dk:#8bb9f8;--blue-lt:#182a45;--on-blue:#0a1220;
  --header:#12233f;--on-header:#e7edf6;--header-soft:rgba(255,255,255,0.10);
  --ok:#4cc26d;--bad:#f07470;--mark:#a782ee;--on-status:#0a1220;--idle:#2b3b56;--idle-text:#c9d4e5;
  --shadow:none;color-scheme:dark;
}

/* ── BASE ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{-webkit-text-size-adjust:100%;}
body{background:var(--bg);color:var(--text);font-family:'DM Sans',system-ui,sans-serif;font-size:16px;line-height:1.55;min-height:100vh;display:flex;flex-direction:column;}
a{color:var(--blue);text-underline-offset:3px;}
img,svg{display:block;max-width:100%;}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:4px;}
.wrap{width:100%;max-width:1080px;margin:0 auto;padding:0 16px;}
.skip-link{position:absolute;left:8px;top:-60px;z-index:100;background:var(--surface);color:var(--text);padding:10px 14px;border-radius:8px;box-shadow:var(--shadow);}
.skip-link:focus{top:8px;}

/* ── HEADER ── */
.mt-header{background:var(--header);color:var(--on-header);position:sticky;top:0;z-index:20;}
.mt-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;}
.mt-header :focus-visible{outline-color:var(--on-header);}
.mt-brand{display:flex;align-items:center;gap:10px;color:var(--on-header);text-decoration:none;min-width:0;}
.mt-brand-name{font-weight:600;font-size:18px;letter-spacing:-0.2px;white-space:nowrap;}
.mt-chip{font-size:12px;font-weight:600;letter-spacing:0.02em;background:var(--header-soft);border-radius:999px;padding:3px 10px;white-space:nowrap;}
.mt-chip:empty{display:none;}
/* "Mock Tests" goes to the exam list, the chip to the exam's own page */
.mt-brand a{color:inherit;text-decoration:none;}
.mt-brand a.mt-brand-name:hover{text-decoration:underline;}
.mt-brand a.mt-chip:hover{filter:brightness(1.15);}
.mt-header-right{display:flex;align-items:center;gap:6px;}
.mt-header-link{color:var(--on-header);font-size:13px;text-decoration:none;opacity:0.9;padding:12px 6px;white-space:nowrap;}
.mt-header-link:hover{opacity:1;text-decoration:underline;}
.mt-header-link .long{display:none;}
@media(min-width:600px){.mt-header-link .long{display:inline;}}
.icon-btn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;border-radius:10px;color:inherit;cursor:pointer;}
.icon-btn:hover{background:var(--header-soft);}

/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border-radius:var(--radius);font:inherit;font-size:16px;font-weight:600;text-decoration:none;cursor:pointer;border:1px solid transparent;transition:background 0.15s,border-color 0.15s;}
.btn-primary{background:var(--blue);color:var(--on-blue);}
.btn-primary:hover{background:var(--blue-dk);}
.btn-secondary{background:var(--surface);color:var(--blue);border-color:var(--border);}
.btn-secondary:hover{border-color:var(--blue);}
.btn[aria-disabled="true"]{opacity:0.55;cursor:not-allowed;pointer-events:none;}
.pill{display:inline-block;font-size:12px;font-weight:600;color:var(--blue);background:var(--blue-lt);border-radius:999px;padding:4px 10px;}

/* ── SECTIONS ── */
main{flex:1;}
.section{padding:40px 0;}
.section + .section{border-top:1px solid var(--border2);}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;color:var(--blue);margin-bottom:8px;}
h1{font-size:clamp(30px,8vw,46px);line-height:1.1;letter-spacing:-0.6px;font-weight:600;}
h2{font-size:clamp(22px,5vw,28px);line-height:1.2;letter-spacing:-0.3px;font-weight:600;margin-bottom:14px;}
h3{font-size:17px;font-weight:600;margin-bottom:6px;}
.lede{font-size:17px;color:var(--text-soft);margin-top:14px;max-width:560px;}
.muted{color:var(--muted);}
.small{font-size:13px;}

/* ── HERO ── */
.hero{display:grid;grid-template-columns:1fr;gap:28px;align-items:center;padding:36px 0 40px;}
@media(min-width:880px){.hero{grid-template-columns:1.15fr 1fr;gap:48px;padding:56px 0;}}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:24px;}

/* ── EXAM-STYLE PALETTE (decorative preview of the test screen) ── */
.demo{width:100%;max-width:420px;justify-self:center;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;}
.demo-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--header);color:var(--on-header);font-size:13px;font-weight:600;padding:10px 14px;}
.demo-timer{font-variant-numeric:tabular-nums;background:var(--header-soft);border-radius:6px;padding:2px 8px;}
.demo-body{padding:16px;}
.demo-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;}
.q-status{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;border-radius:6px;background:var(--idle);color:var(--idle-text);}
.q-status.na{background:var(--bad);color:var(--on-status);border-radius:6px 6px 14px 14px;}
.q-status.an{background:var(--ok);color:var(--on-status);border-radius:14px 14px 6px 6px;}
.q-status.mr{background:var(--mark);color:var(--on-status);border-radius:50%;}
.q-status.amr{background:var(--mark);color:var(--on-status);border-radius:50%;position:relative;}
.q-status.amr::after{content:"";position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;background:var(--ok);border:2px solid var(--surface);}
.legend{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin-top:14px;font-size:12.5px;color:var(--text-soft);}
.legend span{display:flex;align-items:center;gap:8px;}
.legend .q-status{width:22px;height:22px;font-size:0;flex-shrink:0;}

/* ── PATTERN TABLE ── */
.table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);}
table{width:100%;border-collapse:collapse;font-size:15px;}
th,td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--border2);}
th{font-size:12px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:var(--muted);background:var(--surface2);}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
tr:last-child td{border-bottom:none;}
tfoot td{font-weight:600;background:var(--surface2);}
.facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.fact{background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:6px 14px;font-size:14px;}
.fact strong{font-weight:600;}

/* ── CARDS ── */
.cards{display:grid;grid-template-columns:1fr;gap:12px;}
@media(min-width:600px){.cards{grid-template-columns:1fr 1fr;gap:16px;}}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);}
.card p{color:var(--text-soft);font-size:15px;}
.steps{list-style:none;display:grid;grid-template-columns:1fr;gap:12px;counter-reset:step;}
@media(min-width:760px){.steps{grid-template-columns:repeat(3,1fr);gap:16px;}}
.steps li{counter-increment:step;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 18px 18px 64px;position:relative;color:var(--text-soft);font-size:15px;}
.steps li::before{content:counter(step);position:absolute;left:18px;top:16px;width:32px;height:32px;border-radius:50%;background:var(--blue-lt);color:var(--blue);font-weight:600;display:flex;align-items:center;justify-content:center;}
.steps strong{display:block;color:var(--text);font-size:16px;margin-bottom:2px;}

/* ── FOOTER ── */
.mt-footer{border-top:1px solid var(--border);background:var(--surface);padding:24px 0 28px;font-size:13px;color:var(--muted);}
.mt-footer p + p{margin-top:10px;}
.mt-footer nav{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:12px;}
.mt-footer nav a{color:var(--text-soft);padding:6px 0;}

/* Narrow phones: header links need the room; the page title already says SSC CGL 2026. */
@media(max-width:439px){.mt-header:has(.mt-header-right .mt-header-link) .mt-chip{display:none;}}
