/* World of Exams: public site stylesheet.
   White and mist surfaces, slate ink, brand crimson for primary actions and the mark only. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --white: #FFFFFF;
  --mist: #F6F7FB;
  --mist-2: #EEF1F7;
  --line: #E6E9F0;
  --line-2: #D5DAE4;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #475569;
  --ink-4: #64748B;
  --crimson: #D82A4E;
  --crimson-hover: #BF2243;
  --crimson-ink: #AE1F3D;
  --crimson-tint: #FDECEF;
  --correct: #16A34A;
  --incorrect: #D97706;
  --skipped: #94A3B8;
  --footer: #0B1222;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 28px -12px rgba(15, 23, 42, .16);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, .04), 0 32px 64px -28px rgba(15, 23, 42, .30);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --pad: clamp(18px, 4.5vw, 80px);
  --max: 1280px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font: 400 1rem/1.6 var(--font); color: var(--ink-2); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--crimson-hover); }
button { font: inherit; }
::selection { background: var(--crimson-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line-2) transparent; }
table, .tnum { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mt-5 { margin-top: var(--s6) !important; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: var(--s4); color: #fff; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--crimson); color: #fff; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(174, 31, 61, .25), 0 6px 16px -8px rgba(216, 42, 78, .55);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--crimson-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 1px 2px rgba(174, 31, 61, .25), 0 10px 22px -10px rgba(216, 42, 78, .6); }
.btn:active { transform: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--mist); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ink { background: var(--ink); box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .6); }
.btn--ink:hover { background: #1E293B; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link:hover { color: var(--crimson-ink); }
.link:hover .icon { transform: translateX(3px); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--crimson-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.notice-bar { background: var(--ink); color: #CBD5E1; font-size: .8125rem; line-height: 1.45; text-align: center; padding: 8px var(--pad); }
.notice-bar strong { color: #fff; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--s6); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1875rem; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--crimson); color: #fff; display: grid; place-items: center; font-size: .8125rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 6px 14px -6px rgba(216, 42, 78, .7); }
.navlist { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.navlist a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-3); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.navlist a:hover { color: var(--ink); background: var(--mist); }
.navlist a[aria-current="page"] { color: var(--ink); background: var(--mist-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-hello { font-size: .875rem; color: var(--ink-4); font-weight: 600; white-space: nowrap; }
.navtoggle { display: none; margin-left: auto; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.navlist__end { display: none; }

@media (max-width: 960px) {
  .site-header__inner { gap: var(--s4); height: 64px; }
  .navtoggle { display: inline-flex; }
  .header-actions { margin-left: 0; }
  .header-actions .btn--ghost, .header-hello { display: none; }
  .navlist {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: var(--s3) var(--pad) var(--s5); box-shadow: var(--shadow);
  }
  .navlist.is-open { display: flex; }
  .navlist a { padding: 12px; font-size: 1rem; }
  .navlist__end { display: block; }
}
.lbl-sm { display: none; }
@media (max-width: 480px) {
  .lbl-lg { display: none; }
  .lbl-sm { display: inline; }
  .site-header__inner { gap: 10px; }
  .brand { font-size: 1.0625rem; gap: 8px; }
  .brand__mark { width: 32px; height: 32px; }
  .navtoggle { padding: 0 10px; }
}

/* ---------- Home hero ---------- */
.hero { background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.hero h1 { font-size: clamp(2.375rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.038em; }
.hero h1 span { color: var(--crimson); }
.hero__dek { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; color: var(--ink-3); margin: var(--s5) 0 0; max-width: 34em; }
.finder { position: relative; margin-top: var(--s6); max-width: 560px; }
.finder__box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 7px 7px 7px 16px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.finder__box:focus-within { border-color: var(--crimson); box-shadow: 0 0 0 4px rgba(216, 42, 78, .12), var(--shadow); }
.finder__box .icon { color: var(--ink-4); }
.finder__box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1.0625rem/1.4 var(--font); color: var(--ink); padding: 10px 0; }
.finder__box input::placeholder { color: #8A94A6; }
.finder__list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); max-height: 340px; overflow: auto; }
.finder__list a { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.finder__list a small { color: var(--ink-4); font-weight: 600; font-size: .8125rem; white-space: nowrap; }
.finder__list a:hover, .finder__list a[aria-selected="true"] { background: var(--mist); }
.finder__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--s4); font-size: .875rem; color: var(--ink-4); font-weight: 600; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--crimson); color: var(--crimson-ink); }
.facts { display: flex; flex-wrap: wrap; gap: clamp(20px, 3.5vw, 44px); margin: var(--s6) 0 0; padding: 0; list-style: none; }
.facts li { font-size: .875rem; color: var(--ink-4); font-weight: 600; }
.facts b { display: block; font-size: 1.625rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* The sample result card: mirrors the real result screen */
.result { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 2.4vw, 30px); position: relative; }
.result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); }
.result__head b { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 800; }
.result__head small { color: var(--ink-4); font-size: .8125rem; font-weight: 600; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--mist-2); color: var(--ink-3); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.result__score { display: flex; align-items: baseline; gap: 10px; margin-top: var(--s5); }
.result__score b { font-size: clamp(2.5rem, 4vw, 3.25rem); line-height: 1; color: var(--ink); font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.result__score span { color: var(--ink-4); font-weight: 600; }
.result__bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--mist-2); margin-top: var(--s4); gap: 2px; }
.result__bar i { display: block; height: 100%; transform-origin: left; animation: grow 1.1s var(--ease) .25s both; }
.result__legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin: var(--s4) 0 0; padding: 0; list-style: none; }
.result__legend li { font-size: .8125rem; color: var(--ink-4); font-weight: 600; }
.result__legend b { display: block; font-size: 1.25rem; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot--c, .result__bar .c { background: var(--correct); }
.dot--i, .result__bar .i { background: var(--incorrect); }
.dot--s, .result__bar .s { background: var(--skipped); }
.review { margin: var(--s5) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.review li { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s3); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.review li:last-child { border-bottom: 0; padding-bottom: 0; }
.review .q { color: var(--ink-4); font-weight: 700; font-variant-numeric: tabular-nums; }
.review .t { color: var(--ink-2); font-weight: 600; }
.status { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.status--c { background: #E8F6EE; color: #0F7A37; }
.status--i { background: #FDF1E2; color: #9A4D00; }
.status--s { background: var(--mist-2); color: var(--ink-3); }
.result__note { margin: var(--s4) 0 0; font-size: .75rem; color: var(--ink-4); }

@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .result { max-width: 560px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--mist { background: var(--mist); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s6); }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.section-head p { margin: var(--s3) 0 0; color: var(--ink-3); font-size: 1.0625rem; max-width: 40em; }

/* ---------- Exam browser (tabs + search + cards) ---------- */
.notices__controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--mist-2); border-radius: var(--r); }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); font-weight: 700; font-size: .9375rem; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tab__n { font-size: .75rem; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.search { display: flex; align-items: center; gap: 10px; min-width: min(100%, 340px); height: 48px; padding: 0 14px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink-4); }
.search:focus-within { border-color: var(--crimson); box-shadow: 0 0 0 4px rgba(216, 42, 78, .12); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1rem var(--font); color: var(--ink); }

.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.exam-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.exam-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.exam-card:focus-within { box-shadow: 0 0 0 3px rgba(216, 42, 78, .25), var(--shadow); }
.exam-card__img { aspect-ratio: 16 / 9; background: var(--mist-2); overflow: hidden; }
.exam-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.exam-card:hover .exam-card__img img { transform: scale(1.03); }
.exam-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.exam-card h3 { font-size: 1.125rem; line-height: 1.3; }
.exam-card h3 a { color: var(--ink); text-decoration: none; }
.exam-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.exam-card h3 a:focus-visible { outline: none; }
.exam-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--ink-4); font-weight: 600; }
.exam-card__meta li { display: inline-flex; align-items: center; gap: 5px; }
.exam-card__meta .icon { width: 15px; height: 15px; }
.exam-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: .75rem; color: var(--ink-4); font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.exam-card__go { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 700; color: var(--crimson-ink); }
.exam-card__go .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.exam-card:hover .exam-card__go .icon { transform: translateX(3px); }
.exam-card[hidden] { display: none; }
.exam-grid.is-refiltering .exam-card:not([hidden]) { animation: rise .45s var(--ease) both; animation-delay: calc(var(--n, 0) * 30ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.level { display: inline-flex; gap: 2px; }
.level i { width: 4px; height: 12px; border-radius: 2px; background: var(--line-2); }
.level i.on { background: var(--ink-3); }

.notices__empty { margin: var(--s5) 0 0; padding: var(--s6); text-align: center; background: var(--mist); border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-3); }

/* compact list variant (exam page "other exams") */
.exam-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.exam-row { position: relative; display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s, border-color .2s; }
.exam-row:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.exam-row img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.exam-row a { color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; }
.exam-row a::after { content: ""; position: absolute; inset: 0; }
.exam-row small { display: block; color: var(--ink-4); font-weight: 600; font-size: .8125rem; margin-top: 2px; }
.exam-row .price { font-size: 1rem; padding-right: 6px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: var(--s6) var(--s5) var(--s5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: var(--s4); }
.steps li:first-child::before { background: var(--crimson); }
.steps h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-3); }
.steps .tag { position: absolute; top: var(--s5); right: var(--s5); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
.split--flip > :first-child { order: 2; }
.split h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.split .lead-p { font-size: 1.0625rem; color: var(--ink-3); margin-top: var(--s4); }
.ticks { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--ink-2); }
.ticks li .icon { width: 22px; height: 22px; color: var(--correct); margin-top: 1px; }
.ticks b { color: var(--ink); }
.types { display: grid; gap: 12px; }
.type { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.type__ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--crimson-tint); color: var(--crimson-ink); }
.type__ic .icon { width: 24px; height: 24px; }
.type h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.type p { margin: 0; color: var(--ink-3); font-size: .9375rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

/* ---------- Honest band & CTA ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.promise div { padding-top: var(--s5); border-top: 2px solid var(--ink); }
.promise h3 { font-size: 1.125rem; margin-bottom: 8px; }
.promise p { margin: 0; color: var(--ink-3); }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; } }

.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #CBD5E1; border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s6); align-items: center; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 42, 78, .45), transparent); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.cta-band p { margin: var(--s3) 0 0; font-size: 1.0625rem; }
.cta-band .btn { position: relative; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Page shells ---------- */
.page-title { padding-block: clamp(36px, 5vw, 64px) var(--s6); }
.page-title h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -.035em; }
.page-title p { margin: var(--s4) 0 0; font-size: 1.125rem; color: var(--ink-3); max-width: 42em; }
.page-band { background: linear-gradient(180deg, var(--mist), #fff); border-bottom: 1px solid var(--line); margin-bottom: var(--s7); }
.page-band .page-title { padding-bottom: var(--s7); }
.lede { font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--s8); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.content, .policy { max-width: 760px; padding-bottom: var(--s8); }
.content h2, .policy h2, .policy-section h2 { font-size: 1.375rem; margin: var(--s7) 0 var(--s3); }
.content h3, .policy h3 { font-size: 1.125rem; margin: var(--s6) 0 var(--s2); }
.content p, .content li, .policy p, .policy li { color: var(--ink-2); line-height: 1.75; }
.policy-section { padding-block: var(--s2); }

/* ---------- Exam page ---------- */
.crumbs { font-size: .875rem; color: var(--ink-4); padding-top: var(--s5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-4); border-top: 1.5px solid var(--ink-4); transform: rotate(45deg); margin-right: 4px; opacity: .7; }
.crumbs a { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.exam-hero { background: linear-gradient(180deg, var(--mist), #fff); border-bottom: 1px solid var(--line); }
.notice { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 56px); padding-block: var(--s6) var(--s8); align-items: start; }
.notice__title, .notice__main { grid-column: 1; min-width: 0; }
.notice__side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 96px; }
.notice__no { margin: 0 0 var(--s3); display: inline-flex; gap: 8px; flex-wrap: wrap; }
.notice__title h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
.notice__ref { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: var(--s4) 0 0; font-size: .9375rem; color: var(--ink-4); font-weight: 600; }
.notice__ref > span { display: inline-block; }
.notice__ref > span > .icon, .notice__ref > span > .stars { vertical-align: -3px; margin-right: 6px; }
.notice__ref b { color: var(--ink); margin-left: 2px; }
.notice__ref .icon { width: 17px; height: 17px; }
.notice__lede { font-size: 1.125rem; line-height: 1.65; color: var(--ink-3); max-width: 44em; margin: 0; }
.notice__plate { margin: var(--s6) 0 var(--s7); }
.notice__plate img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.notice__plate figcaption { margin-top: var(--s3); font-size: .8125rem; color: var(--ink-4); font-weight: 600; }
.article h2 { font-size: 1.5rem; margin: var(--s7) 0 var(--s3); }
.article > h2:first-child { margin-top: 0; }
.article p, .article li { color: var(--ink-2); line-height: 1.75; max-width: 70ch; }
.article ul, .article ol { padding-left: 1.2em; }
.article img { border-radius: var(--r); margin-block: var(--s4); }
.article table { border-collapse: collapse; font-size: .9375rem; margin-block: var(--s4); }
.article th, .article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article h3 { font-size: 1.125rem; margin: var(--s5) 0 var(--s2); }
@media (max-width: 980px) {
  .notice { grid-template-columns: 1fr; }
  .notice__title, .notice__main, .notice__side { grid-column: 1; grid-row: auto; }
  .notice__main { order: 1; }
  .notice__side { position: static; }
}

/* price / info card (exam page, about, contact) */
.feebox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.feebox__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s5) var(--s5) 0; }
.feebox__head span { font-size: .875rem; color: var(--ink-4); font-weight: 700; }
.feebox__head .feebox__price { font-size: 2.25rem; font-weight: 800; color: var(--ink); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.feebox dl { margin: var(--s4) var(--s5) 0; font-size: .9375rem; }
.feebox dl div { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 11px 0; border-top: 1px solid var(--line); }
.feebox dt { color: var(--ink-4); font-weight: 600; }
.feebox dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.feebox__actions { padding: var(--s5); display: grid; gap: var(--s3); }
.feebox__head + .feebox__actions { padding-top: var(--s4); }
.feebox__note { font-size: .8125rem; color: var(--ink-4); margin: 0; line-height: 1.5; }
.feebox__perk { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 12px; background: #E8F6EE; color: #0F7A37; border-radius: var(--r-sm); font-size: .875rem; font-weight: 700; }
.feebox__perk .icon { width: 18px; height: 18px; }
.stars { display: inline-flex; gap: 1px; color: #EAB308; }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars .off { color: var(--line-2); }

.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ink-4); border-bottom: 2px solid var(--ink-4); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateX(-2px); }
.faq details p { margin: 0 0 18px; color: var(--ink-3); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
  font: 500 1rem/1.4 var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--crimson); box-shadow: 0 0 0 4px rgba(216, 42, 78, .12); }
.field input:user-invalid { border-color: #DC2626; }
.hint { font-size: .8125rem; color: var(--ink-4); }
.hp { position: absolute; left: -9999px; }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--mist-2); color: var(--ink-2); font-weight: 700; font-size: .8125rem; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 4px 0 0; padding: 0; font-size: .8125rem; color: var(--ink-4); font-weight: 600; }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); box-sizing: border-box; }
.checks li.ok { color: #0F7A37; }
.checks li.ok::before { border: 0; background: var(--correct) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.alert { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 600; background: var(--mist-2); color: var(--ink-2); }
.alert--error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert--ok { background: #ECFDF3; color: #0F7A37; border: 1px solid #BBF7D0; }
.notebox { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: #ECFDF3; color: #0F7A37; border: 1px solid #BBF7D0; font-weight: 600; font-size: .9375rem; }

/* auth */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.auth__copy h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
.auth__copy > p { margin: var(--s4) 0 0; font-size: 1.125rem; color: var(--ink-3); max-width: 32em; }
.auth__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px); display: grid; gap: var(--s5); }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--mist-2); border-radius: var(--r); }
.auth__tabs button { height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); font-weight: 700; cursor: pointer; }
.auth__tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth__row { display: flex; justify-content: flex-end; margin-top: -4px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } }

.ladder { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: 10px; counter-reset: lad; max-width: 460px; }
.ladder li { counter-increment: lad; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.ladder li::before { content: counter(lad); width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--mist-2); color: var(--ink); font-weight: 800; font-size: .875rem; }
.ladder b { color: var(--ink); font-weight: 700; }
.ladder span { font-size: .8125rem; font-weight: 700; color: var(--ink-4); }

/* dialog */
dialog.sheet { width: min(480px, calc(100% - 32px)); border: 0; border-radius: var(--r-lg); padding: 0; box-shadow: var(--shadow-lg); color: var(--ink-2); }
dialog.sheet::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s5) var(--s5) 0; }
.sheet__head h2 { font-size: 1.25rem; }
.sheet__head button { border: 0; background: var(--mist-2); border-radius: 8px; height: 34px; padding: 0 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.sheet__body { padding: var(--s5); }
.sheet__body [data-step][hidden] { display: none; }

/* ---------- Checkout & receipt ---------- */
.challan { max-width: 620px; margin: clamp(32px, 5vw, 64px) auto var(--s8); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.challan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); padding: var(--s5) var(--s5) var(--s4); }
.challan__head h1 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.challan__head p { margin: 0; font-size: .8125rem; color: var(--ink-4); text-align: right; font-weight: 600; line-height: 1.5; }
.challan__status { margin: 0 var(--s5); padding: 10px 14px; border-radius: var(--r-sm); background: #ECFDF3; color: #0F7A37; font-size: .9375rem; font-weight: 600; }
.challan__status b { font-weight: 800; }
.challan__status--fail { background: #FEF2F2; color: #B91C1C; }
.challan table { width: calc(100% - 2 * var(--s5)); margin: var(--s3) var(--s5) 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.challan th, .challan td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: .9375rem; vertical-align: top; }
.challan th { width: 40%; color: var(--ink-4); font-weight: 600; padding-right: var(--s4); }
.challan td { color: var(--ink); font-weight: 700; word-break: break-word; }
.challan tr.total th, .challan tr.total td { border-bottom: 0; padding-top: 18px; font-size: 1.0625rem; color: var(--ink); }
.challan tr.total td { font-size: 1.875rem; font-weight: 800; letter-spacing: -.03em; }
.challan__foot { padding: var(--s5); display: grid; gap: var(--s3); background: var(--mist); border-top: 1px solid var(--line); }
.challan__foot p { margin: 0; font-size: .8125rem; color: var(--ink-4); line-height: 1.55; }
.challan__foot a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Contributor strip & footer ---------- */
.wanted-wrap { padding-bottom: clamp(56px, 7vw, 96px); }
.wanted { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s5); align-items: center; padding: var(--s5) var(--s6); background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-lg); }
.wanted__head { font-size: 1.125rem; }
.wanted__body { margin: 0; color: var(--ink-3); }
@media (max-width: 820px) { .wanted { grid-template-columns: 1fr; } }

.colophon { background: var(--footer); color: #94A3B8; font-size: .9375rem; }
.colophon a { color: #CBD5E1; text-decoration: none; }
.colophon a:hover { color: #fff; }
.colophon__grid { display: grid; grid-template-columns: minmax(0, 1.4fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s6); padding-block: var(--s8) var(--s7); }
.colophon__brand .brand { color: #fff; }
.colophon__brand p { margin: var(--s4) 0 0; max-width: 30em; }
.colophon__contact { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: 8px; }
.colophon__col h2 { font-size: .875rem; color: #fff; font-weight: 700; letter-spacing: 0; margin-bottom: var(--s4); }
.colophon__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.colophon__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); padding-block: var(--s5); border-top: 1px solid rgba(148, 163, 184, .18); font-size: .8125rem; }
.colophon__base p { margin: 0; }
.colophon__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 820px) { .colophon__grid { grid-auto-flow: row; grid-template-columns: 1fr; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Refinements ---------- */
.result { margin: 0; }
.notice { grid-template-rows: auto 1fr; }
.result__legend li { white-space: nowrap; }
@media (max-width: 560px) {
  .facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; }
  .facts b { font-size: 1.25rem; }
  .facts li { font-size: .75rem; }
  .result__head small { display: block; }
  .result__legend li { font-size: .75rem; }
  .review li { grid-template-columns: 34px 1fr auto; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tab { flex: none; }
  .finder__box .btn { padding: 0 16px; }
  .notices__controls .search { width: 100%; }
}

.exam-card__meta .exam-card__code { flex-basis: 100%; color: var(--ink-3); font-weight: 700; }
.notice { row-gap: var(--s5); }
.feebox__feedback { justify-self: center; font-size: .875rem; }

/* test screen sample */
.testscreen .timer { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.testscreen .timer .icon { width: 15px; height: 15px; }
.ts__q { margin: var(--s5) 0 var(--s4); color: var(--ink); font-weight: 700; font-size: 1.0625rem; line-height: 1.5; }
.ts__opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ts__opts li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; color: var(--ink-2); font-size: .9375rem; }
.ts__opts span { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--mist-2); color: var(--ink-3); font-weight: 800; font-size: .8125rem; }
.ts__opts .is-picked { border-color: var(--ink); background: var(--mist); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ts__opts .is-picked span { background: var(--ink); color: #fff; }
.ts__nav { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: var(--s5); }
.ts__nav i { font-style: normal; display: grid; place-items: center; aspect-ratio: 1; border-radius: 7px; background: var(--mist-2); color: var(--ink-4); font-size: .6875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ts__nav i.done { background: #E8F6EE; color: #0F7A37; }
.ts__nav i.flag { background: #FDF1E2; color: #9A4D00; }
.ts__nav i.now { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.ts__key { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: var(--s3) 0 0; padding: 0; font-size: .75rem; color: var(--ink-4); font-weight: 600; }
.testtypes { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: 14px; }
.testtypes li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-3); font-size: .9375rem; }
.testtypes .icon { color: var(--crimson-ink); margin-top: 2px; }
.testtypes b { color: var(--ink); margin-right: 4px; }

/* home exam browser on phones: compact rows instead of full banners */
@media (max-width: 640px) {
  #exams .exam-grid { gap: 10px; }
  #exams .exam-card { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); }
  #exams .exam-card:hover { transform: none; }
  #exams .exam-card__img { border-radius: 8px; }
  #exams .exam-card__body { padding: 0; gap: 4px; }
  #exams .exam-card h3 { font-size: 1rem; }
  #exams .exam-card__meta li:not(.exam-card__code):not(:nth-child(2)) { display: none; }
  #exams .exam-card__meta .exam-card__code { flex-basis: auto; }
  #exams .exam-card__foot { padding-top: 4px; border-top: 0; }
  #exams .exam-card__foot .price { font-size: 1rem; }
  #exams .exam-card__go { font-size: .8125rem; }
}
@media (max-width: 480px) {
  .tabs { display: flex; width: 100%; overflow: visible; }
  .tab { flex: 1; justify-content: center; padding: 0 8px; }
  .tab__n { display: none; }
}
@media (max-width: 480px) {
  .navtoggle__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .navtoggle { width: 40px; justify-content: center; padding: 0; }
}
.ts__nav i.flag { background: var(--crimson-tint); color: var(--crimson-ink); }
.dot--f { background: var(--crimson); }
.split--top { align-items: start; }
.split--top > :first-child { position: sticky; top: 104px; }
@media (max-width: 900px) { .split--top > :first-child { position: static; } }
.testscreen .result__head .tag { height: 22px; margin-left: 4px; vertical-align: 1px; }

/* ---------- Result screen (real results: dashboard + free test) ---------- */
.rs { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.rs__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); flex-wrap: wrap; padding: var(--s5) var(--s5) 0; }
.rs__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rs__head h1 { font-size: 1.5rem; letter-spacing: -.02em; }
.rs__head p { margin: 6px 0 0; color: var(--ink-4); font-size: .875rem; font-weight: 600; }
.rs__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6); padding: var(--s5); align-items: start; }
.rs__marks { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.rs__marks b { font-size: 3.25rem; line-height: 1; color: var(--ink); font-weight: 800; letter-spacing: -.035em; }
.rs__marks span { color: var(--ink-4); font-weight: 600; }
.rs__calc { margin: 0; padding: var(--s4) var(--s5); background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); font-size: .9375rem; }
.rs__calc div { display: flex; justify-content: space-between; gap: var(--s3); padding: 7px 0; }
.rs__calc dt { color: var(--ink-3); font-weight: 600; }
.rs__calc dt span { color: var(--ink-4); margin-left: 6px; font-weight: 600; }
.rs__calc dd { margin: 0; color: var(--ink); font-weight: 700; }
.rs__calc .rs__total { border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 11px; }
.rs__calc .rs__total dt, .rs__calc .rs__total dd { color: var(--ink); font-weight: 800; font-size: 1.0625rem; }
.rs__calc .rs__acc dt { font-weight: 600; }
.rv { margin-top: var(--s6); }
.rv__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.rv__head h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.rv__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4) var(--s5); }
.rv__top { display: flex; align-items: center; gap: 10px; }
.rv__top b { color: var(--ink); font-size: .9375rem; }
.rv__q { margin: 10px 0 12px; color: var(--ink); font-weight: 600; line-height: 1.55; max-width: 75ch; overflow-wrap: anywhere; }
.rv__ans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; margin: 0; font-size: .9375rem; }
.rv__ans dt { color: var(--ink-4); font-size: .8125rem; font-weight: 600; }
.rv__ans dd { margin: 2px 0 0; color: var(--ink-2); font-weight: 700; overflow-wrap: anywhere; }
.rv__ans dd.is-right { color: var(--correct-ink, #0F7A37); }
.rv__ans dd.is-wrong { color: #9A4D00; }
.rv__none { color: var(--ink-4); font-weight: 600; }
.rv__empty, .rv__note { margin: 0; padding: var(--s4) var(--s5); background: var(--mist); border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-3); font-weight: 600; font-size: .9375rem; }
.rv .tabs { max-width: 100%; }
@media (max-width: 760px) {
  .rs__body { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .rs__marks b { font-size: 2.75rem; }
  .rv__item { padding: var(--s4); }
}
@media (max-width: 560px) {
  .rv .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .rv .tab { justify-content: center; padding: 0 10px; }
  .rv .tab__n { display: inline; }
}

/* Free test result: result beside the plan card */
.freeres { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "score side" "review side"; gap: 0 clamp(24px, 3vw, 40px); align-items: start; padding-block: clamp(24px, 4vw, 48px) var(--s8); }
.freeres__score { grid-area: score; }
.freeres__review { grid-area: review; }
.freeres__side { grid-area: side; position: sticky; top: 96px; }
.freeres__note { margin: var(--s3) 0 0; font-size: .8125rem; color: var(--ink-4); }
@media (max-width: 980px) {
  .freeres { grid-template-columns: minmax(0, 1fr); grid-template-areas: "score" "side" "review"; row-gap: var(--s5); }
  .freeres__side { position: static; }
}
.rs__head--solo { padding-bottom: var(--s5); }
