/* AfterBCom - site styles
   Brand: navy #0B2C5D, gold #F4C430 (from the AfterBCom logo and mockup) */
:root {
  --navy: #0B2C5D;
  --navy-deep: #071D3F;
  --navy-soft: #E8EEF7;
  --gold: #F4C430;
  --gold-deep: #D9A900;
  --paper: #F5F7FA;
  --ink: #1A2333;
  --ink-soft: #4A5568;
  --rule: #D9E1EC;
  --white: #FFFFFF;
  --good: #1E7E34;
  --good-bg: #E3F4E8;
  --bad: #B83227;
  --bad-bg: #FBE9E7;
  --warn-bg: #FFF4CC;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 44, 93, .06), 0 6px 18px rgba(11, 44, 93, .07);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-kn: "Noto Sans Kannada", "Figtree", sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.kn { font-family: var(--font-kn); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy-deep); padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font: 700 1rem var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-deep); color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy-soft); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 10px; white-space: nowrap; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--navy-soft); color: var(--navy); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }
.nav .mobile-only { display: none; }
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav, .nav-actions { display: none; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 12px 20px 18px; border-bottom: 1px solid var(--rule); gap: 2px; box-shadow: var(--shadow); }
  .site-header.open .nav .mobile-only { display: block; }
}

/* Hero */
.hero { background: var(--navy-deep); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: var(--white); }
.hero h1 .line2 { display: block; color: var(--gold); }
.hero .lead { color: #C9D6EA; }
.hero .kn-note { color: var(--gold); font-weight: 600; margin-top: -6px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: #C9D6EA; font-size: .95rem; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; } }

/* The one memorable element: a live practice question in the hero */
.try-card { position: relative; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 26px 24px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.try-card .photo { position: absolute; inset: -70px -120px auto auto; width: 300px; opacity: .14; pointer-events: none; display: none; }
.try-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.try-head strong { color: var(--navy); font-size: .95rem; }
.try-head span { font-size: .85rem; color: var(--ink-soft); }
.try-card .q { font-size: 1.12rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 14px; }
.invoice { border: 1px dashed var(--rule); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: .92rem; background: var(--paper); }
.invoice div { display: flex; justify-content: space-between; }
.opt { display: flex; width: 100%; text-align: left; gap: 12px; align-items: center; padding: 11px 14px; margin-bottom: 8px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--white); font: 600 .98rem var(--font); color: var(--ink); cursor: pointer; }
.opt:hover { border-color: var(--navy); }
.opt .key { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-size: .85rem; font-weight: 800; }
.opt.correct { border-color: var(--good); background: var(--good-bg); }
.opt.correct .key { background: var(--good); color: var(--white); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .key { background: var(--bad); color: var(--white); }
.try-feedback { min-height: 1.5em; font-size: .95rem; margin: 6px 0 0; }
.try-feedback a { font-weight: 700; }

/* Strip */
.strip { background: var(--white); border-bottom: 1px solid var(--rule); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip div { padding: 22px 18px; border-left: 1px solid var(--rule); }
.strip div:first-child { border-left: 0; }
.strip strong { display: block; color: var(--navy); font-size: 1.05rem; }
.strip span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 780px) { .strip .wrap { grid-template-columns: 1fr 1fr; } .strip div:nth-child(3) { border-left: 0; } .strip div { border-top: 1px solid var(--rule); } }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.page-hero { background: var(--navy-deep); color: var(--white); padding: 52px 0 44px; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #C9D6EA; }
.crumbs { font-size: .88rem; color: #9FB3D1; margin-bottom: 10px; }
.crumbs a { color: #C9D6EA; }

/* Tabs */
.tabs { display: inline-flex; gap: 6px; background: var(--navy-soft); padding: 5px; border-radius: 10px; margin-bottom: 22px; }
.tab { border: 0; background: transparent; font: 700 .95rem var(--font); color: var(--navy); padding: 9px 16px; border-radius: 7px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1050px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .course-grid { grid-template-columns: 1fr; } }
.course { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.course:hover { border-color: var(--navy); }
.course img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.course .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.course h3 { margin-bottom: 4px; }
.course p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 12px; }
.course .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 10px; }
.course .price { font-weight: 800; color: var(--navy); font-size: 1rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); }
.badge.gold { background: var(--warn-bg); color: #7A5A00; }
.badge.green { background: var(--good-bg); color: var(--good); }
.badge.lock { background: #EEF0F4; color: var(--ink-soft); }
.course .badge { align-self: flex-start; margin-bottom: 8px; }

/* Simulators: presented as a practice ledger, not identical cards */
.ledger { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.ledger-row { display: grid; grid-template-columns: 56px 1.1fr 1.6fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--rule); }
.ledger-row:first-child { border-top: 0; }
.ledger-row .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-weight: 800; }
.ledger-row h3 { margin: 0; }
.ledger-row p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .ledger-row { grid-template-columns: 44px 1fr; } .ledger-row p, .ledger-row .btn { grid-column: 2; } .ledger-row .btn { justify-self: start; } }

/* Tests list */
.test-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .test-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .test-list { grid-template-columns: 1fr; } }
.test { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.test h3 { margin: 0; }
.test .row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--ink-soft); }
.test .btn { margin-top: 6px; }

/* Webinars */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .events { grid-template-columns: 1fr; } }
.event { display: grid; grid-template-columns: 74px 1fr; gap: 16px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
.event .date { align-self: start; background: var(--navy); color: var(--white); border-radius: 8px; text-align: center; padding: 10px 4px; font-weight: 800; line-height: 1.1; }
.event .date small { display: block; font-size: .72rem; font-weight: 600; color: var(--gold); margin-top: 4px; }
.event h3 { margin-bottom: 4px; }
.event p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 10px; }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius-lg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--good-bg); border: 2px solid var(--good); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 10px; width: 5px; height: 8px; border: solid var(--good); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Career + generic cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards-3, .cards-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: .95rem; }

/* Founder note */
.founder { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 36px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.founder .mono { width: 92px; height: 92px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; font-weight: 800; font-size: 1.8rem; }
.founder h2, .founder h3 { color: var(--white); }
.founder p { color: #C9D6EA; margin: 0; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-deep); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--navy); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); max-width: 75ch; }

/* CTA band */
.cta-band { background: var(--gold); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 4px 0 0; color: #3D3000; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9D6EA; padding: 56px 0 24px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer img { height: 46px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #C9D6EA; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #9FB3D1; }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy-deep); }
.input, select.input, textarea.input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--rule); border-radius: 8px; font: 500 1rem var(--font); color: var(--ink); background: var(--white); }
.input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(11,44,93,.15); }
.phone { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.notice { background: var(--warn-bg); border: 1px solid #F0D98A; border-radius: 8px; padding: 12px 14px; font-size: .93rem; color: #5A4500; }
.notice.info { background: var(--navy-soft); border-color: #C7D4E8; color: var(--navy-deep); }

/* Course detail */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.buybox { position: sticky; top: 92px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.buybox img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.buybox .in { padding: 20px; }
.buybox .price { font-size: 2rem; font-weight: 800; color: var(--navy); }
.buybox ul { padding-left: 18px; color: var(--ink-soft); font-size: .95rem; }
.modules { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.modules details { border-top: 1px solid var(--rule); }
.modules details:first-child { border-top: 0; }
.modules summary { cursor: pointer; padding: 14px 18px; font-weight: 700; background: var(--paper); display: flex; justify-content: space-between; gap: 12px; }
.modules ul { margin: 0; padding: 12px 18px 14px 38px; color: var(--ink-soft); }

/* Test engine */
.quiz-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .quiz-wrap { grid-template-columns: 1fr; } }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.timer { font-weight: 800; font-size: 1.1rem; color: var(--navy); background: var(--navy-soft); padding: 6px 12px; border-radius: 8px; }
.timer.low { background: var(--bad-bg); color: var(--bad); }
.progress { height: 6px; background: var(--rule); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.progress span { display: block; height: 100%; background: var(--navy); width: 0; transition: width .2s; }
.qcard { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; }
.qcard .qtext { font-size: 1.15rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 18px; }
.qcard .opt.selected { border-color: var(--navy); background: var(--navy-soft); }
.qcard .opt.selected .key { background: var(--navy); color: var(--white); }
.quiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.palette { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 92px; }
.palette .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 14px; }
.palette .grid button { aspect-ratio: 1; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--white); font: 700 .9rem var(--font); cursor: pointer; color: var(--ink); }
.palette .grid button.answered { background: var(--good); border-color: var(--good); color: var(--white); }
.palette .grid button.marked { background: var(--gold); border-color: var(--gold-deep); color: var(--navy-deep); }
.palette .grid button.current { outline: 3px solid var(--navy); outline-offset: 1px; }
.legend { font-size: .85rem; color: var(--ink-soft); display: grid; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 8px; border: 1.5px solid var(--rule); }
.result-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 24px; }
.score-ring { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.result-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.result-stats div strong { display: block; font-size: 1.3rem; color: var(--navy-deep); }
.review { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.review .ans { font-size: .95rem; margin: 6px 0; }
.review .ok { color: var(--good); font-weight: 700; }
.review .no { color: var(--bad); font-weight: 700; }
.explain { background: var(--paper); border-left: 3px solid var(--navy); padding: 10px 12px; border-radius: 0 6px 6px 0; font-size: .93rem; margin-top: 8px; }
.explain.locked { color: var(--ink-soft); border-left-color: var(--gold); }

/* Simulator */
.sim { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .sim { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 92px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps button { width: 100%; text-align: left; border: 0; border-top: 1px solid var(--rule); background: var(--white); padding: 13px 16px; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; display: flex; gap: 10px; align-items: center; }
.steps li:first-child button { border-top: 0; }
.steps button::before { content: counter(step); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-size: .8rem; font-weight: 800; flex: none; }
.steps button[aria-current="step"] { background: var(--navy-soft); color: var(--navy); font-weight: 800; }
.steps button[aria-current="step"]::before { background: var(--navy); color: var(--white); }
.steps button.done::before { background: var(--good); color: var(--white); }
.panel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; }
.table-scroll { overflow-x: auto; margin: 14px 0; border: 1px solid var(--rule); border-radius: 8px; }
table.grid { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
table.grid th, table.grid td { padding: 8px 8px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
table.grid th { background: var(--paper); color: var(--navy-deep); font-weight: 700; white-space: nowrap; }
table.grid td.num, table.grid th.num { text-align: right; }
table.grid input[type="number"] { width: 84px; padding: 7px 8px; border: 1.5px solid var(--rule); border-radius: 6px; font: 600 .93rem var(--font); text-align: right; }
table.grid input[type="number"]:focus { border-color: var(--navy); outline: none; }
table.grid input.right { border-color: var(--good); background: var(--good-bg); }
table.grid input.miss { border-color: var(--bad); background: var(--bad-bg); }
table.grid tfoot td { font-weight: 800; background: var(--paper); }
.sim-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.errors li { margin-bottom: 8px; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.side { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 10px; align-self: start; }
.side a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.side a[aria-current="page"] { background: var(--navy); color: var(--white); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; }
.kpi strong { display: block; font-size: 1.6rem; color: var(--navy); }
.kpi span { font-size: .88rem; color: var(--ink-soft); }
.empty { text-align: center; padding: 36px 20px; border: 1.5px dashed var(--rule); border-radius: var(--radius); color: var(--ink-soft); }

/* Policies */
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.6em; }
.toc { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.sim > *, .quiz-wrap > *, .detail > *, .dash > *, .split > * { min-width: 0; }

/* ---------- v2: accounts, tests, certificates, admin ---------- */
.btn-google { background: var(--white); color: var(--ink); border: 1.5px solid var(--rule); gap: 10px; }
.btn-google:hover { border-color: var(--navy); background: var(--paper); }
.gate { max-width: 560px; }
.gate-wrap { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.gate-err { color: var(--bad); font-weight: 600; min-height: 1.2em; margin: 8px 0; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 4px 0 6px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; font: inherit; cursor: pointer; }
.panel.narrow { max-width: 640px; margin: 0 auto; }
.page-hero.slim { padding: 34px 0 28px; }
.center { text-align: center; }

.buy-expl { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--warn-bg); border: 1px solid #F0D98A; border-radius: var(--radius); padding: 16px 18px; margin: 0 0 22px; flex-wrap: wrap; }
.buy-expl p { color: #5A4500; }
.cert-note { margin: 12px 0 0; color: var(--good); }

.tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tnum { font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }

.imgbox { position: relative; }
.imgbox .serial { position: absolute; left: 10px; top: 10px; background: var(--navy); color: var(--gold); font-weight: 800; font-size: .85rem; padding: 3px 8px; border-radius: 6px; }
.imgbox .lang { position: absolute; right: 10px; top: 10px; background: var(--gold); color: var(--navy-deep); font-weight: 600; font-size: .85rem; padding: 2px 8px; border-radius: 6px; }
.head-links { display: flex; gap: 8px; flex-wrap: wrap; }

.case { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 16px; }
.case summary { cursor: pointer; font-weight: 700; color: var(--navy-deep); padding: 12px 16px; }
.case-body { padding: 0 16px 14px; font-size: .95rem; }
.case-body p { margin-bottom: .7em; }
.save-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--navy-soft); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; }
.save-box .gate { max-width: none; }

.career-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; background: var(--navy); color: #C9D6EA; border-radius: var(--radius-lg); padding: 34px; }
.career-band h2 { color: var(--white); margin-top: 10px; }
.career-band p { margin: 0; }
.career-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 760px) { .career-band { grid-template-columns: 1fr; padding: 26px; } }

.community { background: var(--navy-deep); color: #C9D6EA; padding: 48px 0; }
.community .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.community h2 { color: var(--white); }
.community p { margin: 0; max-width: 60ch; }
.community-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.event .btn[disabled] { opacity: 1; background: var(--good-bg); color: var(--good); border-color: var(--good-bg); cursor: default; }
.reg-note { margin-top: 6px; }
.modal { position: fixed; inset: 0; background: rgba(7, 29, 63, .55); display: grid; place-items: center; padding: 16px; z-index: 100; }
.modal-card { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 28px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-x { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 4px 8px; }

.profile-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 18px; }
.profile-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cert-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .cert-list { grid-template-columns: 1fr; } }
.cert-item { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); background: var(--white); }
.cert-item:hover { border-color: var(--navy); border-left-color: var(--gold); }

/* Certificate (A4 landscape) */
.cert-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cert-sheet { background: var(--white); aspect-ratio: 297 / 210; max-width: 1000px; margin: 0 auto; padding: 2.2%; box-shadow: var(--shadow); border: 1px solid var(--rule); container-type: inline-size; }
.cert-border { height: 100%; border: 3px solid var(--navy); outline: 1px solid var(--gold); outline-offset: -10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3% 6%; position: relative; }
.cert-logo { height: 6.5cqw; width: auto; margin-bottom: 2.2cqw; }
.cert-kicker { font-size: 3.4cqw; font-weight: 800; color: var(--navy-deep); letter-spacing: .02em; margin: 0 0 1.6cqw; }
.cert-small { font-size: 1.6cqw; color: var(--ink-soft); margin: 0 0 .6cqw; }
.cert-name { font-size: 4.4cqw; font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--gold); padding: 0 3cqw .4cqw; margin: .4cqw 0 1.6cqw; line-height: 1.15; }
.cert-title { font-size: 2.5cqw; font-weight: 700; color: var(--navy-deep); margin: .2cqw 0 1cqw; }
.cert-score { font-size: 1.7cqw; color: var(--ink); margin: 0 0 2.4cqw; }
.cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 5cqw; align-items: end; width: 80%; }
.cert-foot > div { display: flex; flex-direction: column; font-size: 1.3cqw; color: var(--ink-soft); }
.cert-line { border-bottom: 1px solid var(--ink-soft); padding-bottom: .4cqw; margin-bottom: .4cqw; font-size: 1.6cqw; color: var(--ink); font-weight: 600; }
.cert-sign { font-style: italic; font-family: Georgia, "Times New Roman", serif; font-size: 2cqw; }
.cert-foot > div.cert-seal { display: grid; }
.cert-seal { width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; font-weight: 800; font-size: 2.6cqw; border: .5cqw double var(--navy); }
.cert-id { position: absolute; bottom: 2.2cqw; left: 0; right: 0; font-size: 1.05cqw; color: var(--ink-soft); margin: 0; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .cert-page { padding: 0 !important; }
  .cert-page .wrap { max-width: none; padding: 0; }
  .cert-sheet { box-shadow: none; border: 0; max-width: none; width: 297mm; height: 210mm; aspect-ratio: auto; padding: 8mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Admin */
.admin-bar { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.admin-bar .input { max-width: 360px; }
.mono-text { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
#admin table.grid { font-size: .88rem; }

#social:not([hidden]) + .policies-h { margin-top: 18px; }
