/* BoardPasser - one stylesheet, no framework, no web fonts (speed on mobile data). */
:root {
  --navy: #0d1b3e;
  --navy-2: #1a2b55;
  --gold: #d4a22e;
  --gold-soft: #f4ecd8;
  --gold-text: #7a5a0c;        /* gold that passes contrast on white */
  --bg: #f3f5f9;
  --card: #ffffff;
  --line: #e3e7ef;
  --text: #0d1b3e;
  --muted: #5b6478;
  --pass-bg: #e3f4e8;
  --pass: #1f6b37;
  --radius: 14px;
  --wrap: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- header / footer ---------- */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; color: #fff; }
.logo .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.logo .brand { display: flex; flex-direction: column; line-height: 1.1; }
.logo .tagline { font-size: 12px; font-weight: 500; color: #c6cfe2; margin-top: 3px; letter-spacing: .01em; }
@media (max-width: 380px) { .logo .tagline { font-size: 11px; } }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; color: #fff; opacity: .92; white-space: nowrap; }
.nav { flex: none; }
.logo { min-width: 0; }
.nav a:hover, .nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-more { display: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; text-decoration: none; }
.icon-btn:hover { background: var(--navy-2); }
@media (max-width: 720px) {
  .nav { gap: 16px; }
  .nav .nav-wide { display: none; }
  .nav .nav-more { display: inline; }
}
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 56px; padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- buttons, chips, cards ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-white { background: #fff; color: var(--navy); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.code { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 4px 10px; border-radius: 8px;
  background: var(--gold-soft); color: var(--navy); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kicker { font-size: 13px; font-weight: 700; color: var(--gold-text); }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 24px; }
.section-head a { font-weight: 700; font-size: 15px; white-space: nowrap; }
.badge-new { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--gold-soft); font-size: 13px; font-weight: 800; letter-spacing: .06em; }

/* ---------- search ---------- */
.field-label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.search-row { display: flex; gap: 12px; }
.input, .select { width: 100%; min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 17px; color: var(--text); padding: 0 16px; }
.input-icon { position: relative; flex: 1; }
.input-icon .input { padding-left: 48px; }
.input-icon svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d1b3e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.input:focus, .select:focus, .btn:focus-visible, .chip:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.search-form .field { margin-bottom: 14px; }
.results-list { display: grid; gap: 12px; margin-top: 18px; }
.result-meta { font-size: 15px; color: var(--muted); }
.hit { padding: 18px; }
.pass { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--pass-bg);
  color: var(--pass); font-size: 14px; font-weight: 800; }
.hit-name { font-size: 22px; font-weight: 800; margin: 10px 0 4px; word-break: break-word; }
.hit mark { background: var(--gold-soft); color: inherit; padding: 0 1px; border-radius: 3px; }
.hit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hit-actions .btn { min-height: 44px; }
.help-box { border: 1.5px dashed #c9d0dd; border-radius: var(--radius); padding: 16px 18px; background: transparent; }
.help-box h3 { font-size: 17px; margin-bottom: 6px; }
.help-box ul { margin: 0; padding-left: 20px; color: var(--muted); }
.notice { padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.notice-err { border-color: #f1c0b6; background: #fff6f3; }

/* ---------- home ---------- */
.hero { background: var(--navy); color: #fff; padding: 36px 0 44px; }
.hero h1 { font-size: 40px; font-weight: 800; }
.hero .lede { margin: 10px 0 24px; font-size: 18px; color: #dfe5f2; }
.hero .field-label { color: #fff; }
.hero .results-list { color: var(--text); }
.hero .result-meta { color: #c6cfe2; }
.hero .help-box { border-color: #4b5b85; color: #dfe5f2; }
.hero .help-box ul { color: #c6cfe2; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 64px; text-align: center; }
  .hero h1 { font-size: 56px; }
  .hero .search-form { max-width: 820px; margin: 0 auto; text-align: left; }
  .hero .search-form .fields { display: grid; grid-template-columns: 1.35fr 1.25fr auto; gap: 12px; align-items: end; }
  .hero .search-form { max-width: 920px; }
  .hero .search-form .field { margin: 0; }
  .hero .results-out { max-width: 820px; margin: 0 auto; text-align: left; }
}
.home-top { margin-top: 24px; }
@media (min-width: 900px) { .home-top { margin-top: 36px; } }
.home-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .home-grid { grid-template-columns: 1fr 320px; align-items: start; } }
.latest { padding: 8px 0; }
.latest-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 20px 6px; }
.latest-head h2 { font-size: 22px; }
.exam-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; text-decoration: none; border-top: 1px solid var(--line); }
.exam-row:first-of-type { border-top: 0; }
.exam-row:hover { background: #fafbfd; }
.exam-row .t { font-weight: 700; font-size: 17px; }
.exam-row .d { font-size: 15px; color: var(--muted); }
.exam-row .chev { margin-left: auto; color: #9aa3b5; }
@media (min-width: 900px) {
  .latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 20px 20px; }
  .latest-grid .exam-row { border: 1px solid var(--line); border-radius: 12px; }
  .latest-grid .exam-row .chev { display: none; }
}
.side { display: grid; gap: 16px; }
.side-card { padding: 20px; }
.side-card h3 { font-size: 18px; margin-bottom: 8px; }
.upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.upcoming li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.upcoming .when { color: var(--muted); white-space: nowrap; }
.stat-card { background: var(--navy); color: #fff; padding: 22px; border-radius: var(--radius); }
.stat-card .big { font-size: 34px; font-weight: 800; color: var(--gold); }
.just-released { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.just-released .k { color: var(--gold); font-weight: 800; }
.just-released h2 { font-size: 26px; margin: 6px 0; }

/* ---------- apps + articles ---------- */
.apps { display: grid; gap: 12px; }
@media (min-width: 900px) { .apps { grid-template-columns: 1fr 1fr; gap: 18px; } }
.app { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.app .mark { flex: none; width: 60px; height: 60px; border-radius: 14px; background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; }
.app .name { font-weight: 800; font-size: 18px; }
.app .tag { color: #c9d2e6; font-size: 15px; }
.app .app-text { flex: 1; min-width: 0; }
.app .mark-img { object-fit: cover; padding: 0; background: #fff; }
.app .platform { color: #9fb0d3; font-size: 13px; margin-top: 4px; }
.app .app-btns { display: flex; gap: 8px; flex: none; }
.app .btn { min-height: 44px; padding: 0 18px; }
@media (max-width: 600px) {
  .app { flex-wrap: wrap; }
  .app .app-btns { width: 100%; }
  .app .app-btns .btn { flex: 1; }
}
.app-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .app-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.articles { display: grid; gap: 0; }
.articles.cards { gap: 18px; }
@media (min-width: 900px) { .articles.cards { grid-template-columns: repeat(3, 1fr); } }
.article-card { text-decoration: none; display: block; overflow: hidden; }
.article-card .cover { aspect-ratio: 16 / 7; background: linear-gradient(135deg, #e5e9f1, #f2f4f8); }
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 16px 20px 20px; }
.article-card h3 { font-size: 19px; margin: 6px 0 8px; }
.article-row { display: flex; gap: 14px; padding: 16px; border-top: 1px solid var(--line); text-decoration: none; }
.article-row:first-child { border-top: 0; }
.article-row .thumb { flex: none; width: 76px; height: 76px; border-radius: 10px; background: linear-gradient(135deg, #e5e9f1, #f2f4f8); overflow: hidden; }
.article-row h3 { font-size: 17px; margin: 4px 0; }
.draft-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #fde7c7; color: #7a4a00; font-size: 11px; font-weight: 800; vertical-align: middle; }

/* ---------- page headers ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 24px 0 20px; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.page-head .sub { margin-top: 8px; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
@media (min-width: 900px) { .page-head h1 { font-size: 38px; } }

/* ---------- exam page ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.stat { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 22px; font-weight: 800; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.rate { background: var(--gold-soft); }
@media (min-width: 900px) { .stats { max-width: 640px; } }
.exam-search { margin-top: 18px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.tabpanel { margin-top: 18px; }
.letter { position: sticky; top: 0; z-index: 1; background: #eceff5; padding: 6px 20px; font-weight: 800; font-size: 14px; }
.names { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.names li { padding: 11px 20px; border-top: 1px solid var(--line); font-size: 16px; }
.names li.letter-row { padding: 0; border-top: 0; }
.ranges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.range { display: flex; flex-direction: column; padding: 14px 16px; text-decoration: none; }
.range b { font-size: 18px; }
.range span { font-size: 14px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.table th { background: #eceff5; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 0; }
.source-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- results / schedule lists ---------- */
.filter-bar { margin-top: 16px; display: grid; gap: 12px; }
.month { margin-top: 26px; }
.month h2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.list { overflow: hidden; }
.list a, .list .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; }
.list > :first-child { border-top: 0; }
.list a:hover { background: #fafbfd; }
.list .name { font-weight: 700; }
.list .sub { font-size: 14px; color: var(--muted); }
.list .right { text-align: right; font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.empty { padding: 20px; color: var(--muted); }

/* ---------- article ---------- */
.article-wrap { max-width: 720px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e3e7ef; flex: none; }
.byline .who { font-weight: 700; font-size: 15px; }
.byline .when { font-size: 14px; color: var(--muted); }
.article-cover { margin-top: 20px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e5e9f1, #f2f4f8); }
.prose { font-size: 18px; line-height: 1.65; margin-top: 22px; }
.prose h2 { font-size: 24px; margin: 30px 0 10px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul.checklist { list-style: none; padding: 0; }
.prose ul.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.prose ul.checklist input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--gold); }
.promo { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; margin: 26px 0; }
.promo .eyebrow { color: var(--gold); }
.promo .row { display: flex; gap: 14px; align-items: center; margin: 12px 0 16px; }
.share { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-top: 26px; }
.share .btns { display: flex; gap: 10px; }
.share .btn { min-height: 42px; padding: 0 16px; white-space: nowrap; }
.cta-box { margin-top: 26px; background: #e9edf4; border-radius: var(--radius); padding: 20px; }
.cta-box h3 { font-size: 17px; margin-bottom: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 10; }
