/* Examly – public site styles.
   Modern-classic: serif display headings (Fraunces), clean sans body (Inter), Bangla via Hind Siliguri.
   Palette tokens below are the single source of truth for colours. */

:root {
  --navy: #102347;
  --navy-2: #1b3668;
  --navy-3: #2a4a86;
  --amber: #f5a623;
  --amber-2: #e09412;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #1d2433;
  --muted: #5b6578;
  --line: #e6e1d6;
  --green: #23935e;
  --green-bg: #e7f6ee;
  --red: #c9483e;
  --red-bg: #fcecea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 35, 71, .06), 0 8px 24px rgba(16, 35, 71, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-light { color: #b8c4db; }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--navy); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.inline { display: inline; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--amber-2); margin-bottom: .6rem; }
.eyebrow a { color: inherit; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.pad-xl { padding: 96px 20px; }
.pt-0 { padding-top: 0 !important; }
.pt-sm { padding-top: 32px !important; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .72em 1.3em; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .option input:focus-visible + .olabel { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-amber { background: var(--amber); color: var(--navy); box-shadow: 0 6px 16px rgba(245, 166, 35, .35); }
.btn-amber:hover { background: var(--amber-2); color: var(--navy); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .45em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand img { display: block; height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.site-nav > a, .site-nav .linklike { color: var(--ink); text-decoration: none; }
.site-nav > a[aria-current] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--amber); }
.site-nav .btn-amber { color: var(--navy); box-shadow: none; }
.nav-search input { width: 200px; padding: .5em .9em; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); font: inherit; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 16px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 12px; }
  .site-nav.open { display: flex; }
  .nav-search input { width: 100%; }
}

/* ------------------------------------------------------------------ messages */
.messages { margin-top: 16px; }
.msg { padding: 12px 16px; border-radius: var(--radius-sm); background: #eef3fb; border-left: 4px solid var(--navy-3); margin-bottom: 8px; }
.msg-success { background: var(--green-bg); border-color: var(--green); }
.msg-error, .msg-warning { background: var(--red-bg); border-color: var(--red); }

/* ------------------------------------------------------------------ hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2a4a86 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #142c59 100%); color: #fff; padding: 72px 0 84px; overflow: hidden; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero .lead { color: #cdd7ea; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 0; color: #b8c4db; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: #fff; }
.mock-paper { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(1.5deg); max-width: 440px; margin-left: auto; }
.mock-head { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.mock-timer { font-weight: 700; color: var(--navy); background: #fff; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); }
.mock-q { font-weight: 500; }
.mock-opts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.mock-opts li { background: #fff; border: 1px solid var(--line); padding: 8px 12px; border-radius: 10px; display: flex; gap: 10px; align-items: center; }
.mock-opts li span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.mock-opts li.picked { border-color: var(--navy); background: #eef2fa; }
.mock-opts li.picked span { background: var(--navy); border-color: var(--navy); color: #fff; }
.mock-score { display: flex; gap: 14px; align-items: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 14px; }
.mock-score .ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: radial-gradient(var(--navy) 62%, transparent 63%), conic-gradient(var(--amber) 90%, #2a4a86 0); }
.mock-score small { color: #b8c4db; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } .hero { padding: 48px 0 56px; } }

/* ------------------------------------------------------------------ sections & grids */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { margin: 0; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cats { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.page-head { padding: 44px 0 28px; background: linear-gradient(180deg, var(--cream), #fff); border-bottom: 1px solid var(--line); margin-bottom: 0; }
.page-head + .section.pt-0 { padding-top: 28px !important; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* quiz cards */
.quiz-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; }
.quiz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8d1c0; color: var(--ink); }
.quiz-card h3 { font-size: 1.18rem; margin: .35rem 0 .8rem; }
.quiz-card-cat { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--amber-2); }
.quiz-meta { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.quiz-meta li { font-size: .82rem; background: var(--cream); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; color: var(--muted); }
.quiz-card-cta { margin-top: auto; font-weight: 700; color: var(--navy); }

/* categories */
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cat-card-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--navy); text-decoration: none; display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: .95rem; }
.cat-icon { font-size: 1.3em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip:hover, .chip-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-lg { padding: 8px 16px; font-size: .98rem; background: #fff; }
.cat-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.cat-block:first-child { padding-top: 0; }
.cat-block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cat-block-head h2 { margin: 0; font-size: 1.6rem; }
.cat-block-head h2 a { color: inherit; text-decoration: none; }
.big-search { display: flex; gap: 10px; max-width: 640px; margin-top: 18px; }
.big-search input { flex: 1; padding: .85em 1.2em; border-radius: 999px; border: 1px solid var(--line); font: inherit; background: #fff; }
.sort { font-size: .92rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.sort a { text-decoration: none; color: var(--muted); }
.sort a[aria-current] { color: var(--navy); font-weight: 700; }
.pagination { display: flex; justify-content: center; gap: 18px; align-items: center; margin-top: 32px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: var(--cream); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps li span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--amber); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.cta-band { background: var(--navy); color: #fff; padding: 52px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd7ea; margin: 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ exam detail */
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-top: 4px; }
.facts { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.facts li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.facts span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts b { font-size: 1.15rem; color: var(--navy); }
.instructions { background: #fff; border-left: 4px solid var(--amber); padding: 6px 20px; }
.start-card { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.start-card h2 { font-size: 1.5rem; }
.stack { display: grid; gap: 14px; }
.stack label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
input[type=text], input[type=email], input[type=password], input[type=search], textarea, select { width: 100%; padding: .75em .95em; border: 1px solid #d7d1c3; border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.challenge-banner { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 18px; padding: 24px 26px; margin-bottom: 26px; position: relative; overflow: hidden; }
.challenge-banner h2 { color: #fff; font-family: var(--sans); font-weight: 500; font-size: 1.35rem; }
.challenge-banner p { color: #cdd7ea; margin: 0; }
.challenge-badge { display: inline-block; background: var(--amber); color: var(--navy); font-weight: 800; padding: 3px 12px; border-radius: 999px; font-size: .82rem; letter-spacing: .05em; margin-bottom: 10px; }
.big-score { display: inline-block; font-family: var(--serif); font-weight: 700; color: var(--amber); font-size: 1.6em; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .start-card { position: static; } }

/* ------------------------------------------------------------------ taking the exam */
.page-take .site-header { position: static; }
.exam-bar { position: sticky; top: 0; z-index: 25; background: var(--navy); color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); }
.exam-bar-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.exam-title { flex: 1; min-width: 0; display: grid; }
.exam-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-title small { color: #b8c4db; }
.exam-progress { font-size: .9rem; color: #cdd7ea; white-space: nowrap; }
.exam-progress span { color: #fff; font-weight: 700; }
.exam-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.2rem; background: rgba(255, 255, 255, .1); padding: 4px 14px; border-radius: 999px; }
.exam-timer.warn { background: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.exam-progressbar { height: 4px; background: rgba(255, 255, 255, .12); }
.exam-progressbar span { display: block; height: 100%; width: 0; background: var(--amber); transition: width .25s; }
.exam-layout { display: grid; grid-template-columns: 1fr 240px; gap: 32px; padding-top: 28px; padding-bottom: 60px; }
.exam-nav { position: sticky; top: 96px; align-self: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.qgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qgrid a { display: grid; place-items: center; height: 34px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .85rem; font-weight: 600; }
.qgrid a.done { background: var(--navy); color: #fff; border-color: var(--navy); }
.legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
.dot-done { background: var(--navy); border-color: var(--navy); }
.notice { background: #fff8e8; border: 1px solid #f3dca8; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .95rem; }
.challenge-mini { background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.challenge-mini b { color: var(--amber); }
.question { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 18px; background: #fff; transition: border-color .2s; }
.question.answered { border-color: #b9c6e0; }
.question legend { display: flex; gap: 12px; padding: 0; font-weight: 600; font-size: 1.06rem; color: var(--ink); float: left; width: 100%; margin-bottom: 14px; }
.question legend + * { clear: both; }
.qnum { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 9px; background: var(--cream); border: 1px solid var(--line); font-family: var(--serif); color: var(--navy); font-weight: 700; }
.qtext { padding-top: 4px; }
.q-image { display: block; max-height: 360px; margin: 0 0 14px 46px; border-radius: 8px; border: 1px solid var(--line); clear: both; }
.options { display: grid; gap: 8px; padding-left: 46px; clear: both; }
.option { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer; transition: border-color .12s, background .12s; }
.option:hover { border-color: #b9c6e0; background: #f8faff; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.olabel { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #cfc8b8; font-weight: 700; text-transform: lowercase; color: var(--muted); }
.option:has(input:checked) { border-color: var(--navy); background: #eef2fa; }
.option input:checked + .olabel { background: var(--navy); border-color: var(--navy); color: #fff; }
.clear-answer { margin: 10px 0 0 46px; background: none; border: 0; color: var(--muted); font-size: .85rem; cursor: pointer; text-decoration: underline; padding: 0; visibility: hidden; }
.question.answered .clear-answer { visibility: visible; }
.exam-end { text-align: center; padding: 18px 0; }
dialog.confirm { border: 0; border-radius: 18px; padding: 28px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
dialog.confirm::backdrop { background: rgba(16, 35, 71, .55); }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 900px) {
  .exam-layout { grid-template-columns: 1fr; }
  .exam-nav { position: static; order: -1; }
  .qgrid { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
  .exam-progress { display: none; }
  .options, .clear-answer { padding-left: 0; margin-left: 0; }
  .q-image { margin-left: 0; }
}

/* ------------------------------------------------------------------ result */
.result-hero { background: linear-gradient(160deg, var(--navy), #183463); color: #fff; padding: 52px 0; }
.result-hero h1 { color: #fff; margin-bottom: .1em; }
.result-hero .eyebrow a { color: inherit; }
.lead-light { color: #cdd7ea; font-size: 1.1rem; }
.verdict { font-family: var(--serif); font-size: 1.5rem; color: var(--amber); margin: 14px 0 18px; }
.result-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.result-stats { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.result-stats li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 8px 14px; color: #cdd7ea; }
.result-stats b { color: #fff; font-size: 1.2rem; margin-right: 4px; }
.result-stats .ok b { color: #6fe0a6; }
.result-stats .bad b { color: #ff9c92; }
.percentile { color: #e7ecf6; }
.percentile b { color: var(--amber); }
.score-ring { --p: 0; --ring: var(--amber); width: 230px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--ring) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); display: grid; place-items: center; }
.score-ring > div { width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--navy); display: grid; place-content: center; text-align: center; }
.score-ring b { font-family: var(--serif); font-size: 2.6rem; color: #fff; line-height: 1; }
.score-ring b small { font-size: .5em; color: #b8c4db; }
.score-ring span { color: var(--amber); font-weight: 700; font-size: 1.1rem; margin-top: 6px; }
.score-ring-sm { width: 150px; background: conic-gradient(var(--ring) calc(var(--p) * 1%), #ece7dc 0); }
.score-ring-sm > div { background: #fff; }
.score-ring-sm b { color: var(--navy); }
.score-ring-sm span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
@media (max-width: 760px) { .result-grid { grid-template-columns: 1fr; } .score-ring:not(.score-ring-sm) { width: 190px; margin: 0 auto; grid-row: 1; } }

.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.vs-player { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 26px 18px 20px; text-align: center; display: grid; gap: 4px; }
.vs-player.winner { border-color: var(--amber); box-shadow: 0 10px 30px rgba(245, 166, 35, .25); }
.crown { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em; padding: 3px 12px; border-radius: 999px; }
.vs-name { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.vs-score { font-family: var(--serif); font-size: 2.3rem; color: var(--navy); font-weight: 700; }
.vs-sub { color: var(--muted); font-size: .88rem; }
.vs-mid { font-family: var(--serif); font-weight: 700; font-size: 1.8rem; color: var(--amber-2); }
.vs-verdict { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); margin-top: 18px; }
@media (max-width: 600px) { .versus { grid-template-columns: 1fr; } .vs-mid { text-align: center; } }

.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.panel-challenge { background: var(--cream); border-color: #eadfc6; }
@media (max-width: 800px) { .share-grid { grid-template-columns: 1fr; } }
.share-heading { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { --brand: var(--navy); display: inline-flex; align-items: center; gap: 6px; padding: .55em 1em; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; border: 0; cursor: pointer; font-family: var(--sans); }
.share-btn:hover { filter: brightness(1.08); color: #fff; }
.share-btn svg { width: 16px; height: 16px; }
.share-copy { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.share-copy:hover { color: var(--navy); }
.share-copy.copied { background: var(--green); color: #fff; border-color: var(--green); }
.share-native { background: var(--amber); color: var(--navy); }
.share-native:hover { color: var(--navy); }
.save-prompt { display: flex; gap: 18px; align-items: center; justify-content: space-between; background: #eef3fb; border: 1px solid #d3def2; border-radius: var(--radius); padding: 18px 22px; flex-wrap: wrap; }

.review { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.review-correct { border-left-color: var(--green); }
.review-wrong { border-left-color: var(--red); }
.review header { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.review header .qtext { flex: 1; }
.review-options { list-style: none; padding: 0 0 0 46px; margin: 12px 0 0; display: grid; gap: 6px; }
.review-options li { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.review-options .olabel { width: 26px; height: 26px; font-size: .85rem; }
.review-options em { margin-left: auto; font-style: normal; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.review-options .is-correct { background: var(--green-bg); border-color: #b5e2c9; }
.review-options .is-correct em { color: var(--green); }
.review-options .is-wrong { background: var(--red-bg); border-color: #f1c2bd; }
.review-options .is-wrong em { color: var(--red); }
.explanation { margin: 12px 0 0 46px; background: var(--cream); padding: 10px 14px; border-radius: 9px; font-size: .95rem; }
.review-filter { display: flex; gap: 6px; }
.review-filter button { border: 1px solid var(--line); background: #fff; padding: 6px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; }
.review-filter button[aria-pressed=true] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 600px) { .review-options, .explanation { padding-left: 0; margin-left: 0; } }

.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--cream); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag-green { background: var(--green-bg); color: var(--green); border-color: #b5e2c9; }
.tag-red { background: var(--red-bg); color: var(--red); border-color: #f1c2bd; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--cream); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ------------------------------------------------------------------ accounts */
.auth { padding: 56px 20px 80px; background: linear-gradient(180deg, var(--cream), #fff); }
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.field-check input { width: auto; margin-top: 4px; }
.help { color: var(--muted); font-size: .82rem; }
.help ul { margin: 4px 0 0; padding-left: 18px; }
.error { color: var(--red); font-size: .85rem; }
.has-error input { border-color: var(--red); }
.dash-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin-bottom: 32px; }
@media (max-width: 800px) { .dash-grid { grid-template-columns: 1fr; } }
.score-panel { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.level { --level: var(--navy); display: inline-block; background: var(--level); color: #fff; font-weight: 800; padding: 4px 14px; border-radius: 999px; letter-spacing: .04em; }
.score-facts { list-style: none; padding: 0; margin: 12px 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.score-facts b { color: var(--navy); font-size: 1.2rem; }
.empty { text-align: center; padding: 40px; background: var(--cream); border-radius: var(--radius); }
.recent { list-style: none; padding: 0; display: grid; gap: 8px; }
.recent li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }

/* ------------------------------------------------------------------ news */
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.news-card img, .news-cover-fallback { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-cover-fallback { background: linear-gradient(135deg, var(--navy), var(--navy-3)); display: grid; place-items: center; }
.news-cover-fallback span { color: var(--amber); font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.news-body { padding: 18px 20px 22px; }
.news-body h3 { font-size: 1.15rem; margin: .3rem 0 .5rem; }
.news-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.news-meta { font-size: .8rem; color: var(--amber-2); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.article { padding: 44px 0 40px; }
.article-cover { border-radius: var(--radius); margin: 10px 0 24px; width: 100%; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { border-left: 4px solid var(--amber); margin: 1.4em 0; padding: .2em 1.2em; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose img { border-radius: 10px; }
.article .share { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: #0c1a36; color: #cdd7ea; padding: 52px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { display: block; color: #cdd7ea; text-decoration: none; margin-bottom: 6px; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #8392b0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
.review-options em + em { margin-left: 10px; }
.jump-start { display: none; margin-top: 16px; }
@media (max-width: 900px) { .jump-start { display: inline-flex; } }
