/* Tamil Test website v2 — the website's own design, with Tamil accents (gopuram skyline,
   palm-leaf kural). Brand: blue is the action colour, purple the accent, cyan a highlight. */

:root {
    --blue: #1266F1;
    --blue-dark: #0A4FC4;
    --blue-soft: #E8F1FF;
    --purple: #B85CFF;
    --purple-ink: #7B2FD6;
    --purple-soft: #F4EAFF;
    --cyan: #08B8F5;
    --cyan-ink: #0679A3;
    --cyan-soft: #E2F7FE;
    --green: #0E9F6E;
    --green-soft: #E3F7EF;
    --amber: #F59E0B;
    --amber-ink: #A35A00;
    --amber-soft: #FFF3DC;
    --rose: #E5486B;
    --rose-soft: #FDEBF0;
    --red: #DC2626;

    --navy: #172554;
    --ink: #172554;
    --muted: #52627A;
    --line: #DCE7F5;
    --surface: #F0F7FF;
    --bg: #FFFFFF;

    /* Palm-leaf (olai) kural card */
    --leaf: #FAF1DA;
    --leaf-2: #F3E3BC;
    --leaf-line: #E3CF9E;

    /* One calm, learner-friendly family for Tamil and English; the kural keeps its serif. */
    --display: "Mukta Malar", "Noto Sans Tamil", "Latha", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Mukta Malar", "Noto Sans Tamil", "Latha", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body-ta: "Mukta Malar", "Noto Sans Tamil", "Latha", system-ui, sans-serif;
    --serif-ta: "Noto Serif Tamil", "Noto Sans Tamil", serif;

    --r: 16px;
    --shadow: 0 1px 2px rgba(23, 37, 84, .05), 0 12px 32px -16px rgba(23, 37, 84, .24);
    --gutter: 16px;

    /* Tamil accents as patterns */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "ss05" 1; /* Mukta Malar: full-height digits for dates and counts */ }
html[lang="ta"] body { font-family: var(--body-ta); font-size: 15.5px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { overflow-wrap: break-word; font-family: var(--display); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; color: var(--navy); }
html[lang="ta"] h1, html[lang="ta"] h2, html[lang="ta"] h3 { line-height: 1.42; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--play { fill: currentColor; stroke: none; width: 16px !important; height: 16px !important; }
.num { font-family: var(--body); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--navy); color: #fff; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* ── Buttons & links ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid transparent;
    font-family: var(--display); font-weight: 600; font-size: 15.5px; line-height: 1.3; text-align: center;
    transition: background-color .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: 14.5px; border-radius: 10px; white-space: nowrap; }
.btn--lg { min-height: 52px; padding: 12px 22px; font-size: 16.5px; border-radius: 14px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 18px -10px rgba(18, 102, 241, .7); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--text { color: var(--navy); padding-inline: 10px; }
.btn--text:hover { color: var(--blue); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--blue-soft); }
.btn--quiet { width: 100%; color: var(--red); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-family: var(--display); font-weight: 600; font-size: 15.5px; }
.link .ic { width: 18px; height: 18px; transition: transform .15s; }
.link:hover .ic { transform: translateX(3px); }

.icbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; color: var(--navy); transition: background-color .15s; }
.icbtn:hover { background: var(--surface); }
.icbtn .ic { width: 22px; height: 22px; }
.icbtn__badge { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }

/* Eyebrow above section headings */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--blue-dark); font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.eyebrow .ic { width: 18px; height: 18px; color: var(--purple-ink); stroke-width: 1.6; }
.eyebrow--plain { margin-bottom: 6px; padding: 0; border: 0; background: none; color: var(--purple-ink); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ta"] .eyebrow--plain { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* ── Announcement bar (admin → Marquees) ─────────────────────────────── */
.ann { background: var(--navy); color: #fff; font-size: 14px; }
.ann__row { display: flex; align-items: center; gap: 10px; height: 40px; }
.ann__label { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #FDE68A; font-size: 13px; font-weight: 600; }
.ann__label .ic { width: 16px; height: 16px; }
.ann__viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ann__belt { display: flex; width: max-content; animation: ann-scroll 40s linear infinite; }
.ann:hover .ann__belt, .ann:focus-within .ann__belt, .ann.is-paused .ann__belt { animation-play-state: paused; }
@keyframes ann-scroll { to { transform: translateX(-50%); } }
.ann__track { display: flex; flex: none; gap: 36px; margin: 0; padding: 0 36px 0 0; list-style: none; }
.ann__track li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ann__track li + li::before { content: ""; width: 5px; height: 5px; margin-right: 28px; border-radius: 50%; background: var(--amber); }
.ann__track a { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.ann__track a:hover span, .ann__track a:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.ann__track a .ic { width: 15px; height: 15px; opacity: .8; }
.ann__track strong { font-weight: 600; color: #BFDBFE; }
.ann__toggle { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); cursor: pointer; }
.ann__toggle:hover { background: rgba(255, 255, 255, .2); }
.ann__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ann__toggle .ic { width: 15px; height: 15px; }
.ann__ic-play, .ann.is-paused .ann__ic-pause { display: none; }
.ann.is-paused .ann__ic-play { display: block; }
.ann.is-static .ann__belt { animation: none; }
.ann.is-static .ann__viewport { -webkit-mask-image: none; mask-image: none; }
.ann.is-static .ann__track[aria-hidden], .ann.is-static .ann__toggle { display: none; }

/* ── Header ──────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(23, 37, 84, .35); }
.hdr__row { display: flex; align-items: center; gap: 10px; height: 68px; }
.hdr__logo { flex: none; }
.hdr__logo img { height: 35px; width: auto; max-width: none; }
.hdr__nav { display: none; }
.hdr__nav a { position: relative; padding: 8px 11px; border-radius: 9px; font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--navy); white-space: nowrap; transition: color .15s, background-color .15s; }
.hdr__nav a:hover { color: var(--blue); background: var(--surface); }
.hdr__nav a[aria-current] { color: var(--blue); }
.hdr__nav a[aria-current]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.hdr__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hdr__search { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px; border-radius: 12px; color: var(--navy); transition: background-color .15s, border-color .15s; }
.hdr__search:hover { background: var(--surface); }
.hdr__search .ic { width: 22px; height: 22px; }
.hdr__search-text, .hdr__search kbd { display: none; }
.hdr__search kbd { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-family: var(--body); font-size: 11.5px; color: var(--muted); }
.lang { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.lang a { padding: 4px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--muted); }
.lang a[lang="ta"] { font-family: var(--body-ta); }
.lang a[aria-current] { background: #fff; color: var(--blue-dark); box-shadow: 0 1px 3px rgba(23, 37, 84, .15); }
.acct { position: relative; }
.acct summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; cursor: pointer; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; font-family: var(--display); font-weight: 600; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.acct summary::-webkit-details-marker { display: none; }
.acct summary img { width: 100%; height: 100%; object-fit: cover; }
.acct__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 210px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.acct__name { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__menu a, .acct__menu button { display: block; width: 100%; padding: 9px 10px; border-radius: 9px; text-align: left; font-size: 15px; }
.acct__menu a:hover, .acct__menu button:hover { background: var(--surface); }
.acct__menu form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
.acct__menu button { color: var(--red); }

/* Drawer & search dialogs */
dialog { padding: 0; border: 0; color: inherit; }
dialog::backdrop { background: rgba(23, 37, 84, .45); }
.drawer { width: min(340px, 88vw); max-width: none; height: 100%; max-height: none; margin: 0 0 0 auto; background: #fff; }
.drawer[open] { display: flex; flex-direction: column; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.drawer__nav { display: grid; padding: 8px; overflow-y: auto; }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 12px; border-radius: 12px; font-family: var(--display); font-weight: 600; font-size: 16.5px; }
.drawer__nav a:hover, .drawer__nav a[aria-current] { background: var(--surface); color: var(--blue); }
.drawer__nav .ic { width: 18px; height: 18px; color: #9AA9C0; }
.drawer__foot { display: grid; gap: 8px; margin-top: auto; padding: 16px; border-top: 1px solid var(--line); }
.drawer__foot form { margin: 0; }
.search { width: min(640px, calc(100% - 24px)); max-height: min(80vh, 640px); margin: 8vh auto auto; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -20px rgba(23, 37, 84, .45); }
.search__bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.search__bar > .ic { width: 20px; height: 20px; color: var(--muted); }
.search__bar input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.icbtn--plain:hover { background: var(--surface); }
.search__status { padding: 14px 18px; color: var(--muted); font-size: 14px; }
.search__results { display: grid; padding: 6px; overflow-y: auto; max-height: 60vh; }
.search__results:empty { display: none; }
.search__results a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.search__results a:hover { background: var(--surface); }
.search__results strong { display: block; font-weight: 600; }
.search__results small { color: var(--muted); font-size: 13px; }
.search__results em { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-style: normal; font-size: 12px; font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 44px 0 124px; background: linear-gradient(180deg, #EEF5FF 0%, #F6F9FF 58%, #fff 100%); }
.hero__deco { position: absolute; pointer-events: none; z-index: 0; }
.hero__skyline { /* gopuram skyline along the bottom edge */
    left: 0; right: 0; bottom: 0; height: 112px;
    background: url("../images/gopuram-skyline.svg") center bottom / auto 112px repeat-x;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.hero__title { font-size: clamp(1.85rem, 5.6vw, 2.85rem); font-weight: 700; letter-spacing: -.01em; }
html[lang="ta"] .hero__title { font-size: clamp(1.6rem, 4.8vw, 2.35rem); letter-spacing: 0; }
.hl { background: linear-gradient(95deg, var(--blue) 10%, var(--purple) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__text { margin-top: 14px; max-width: 58ch; color: var(--muted); font-size: 17px; }
html[lang="ta"] .hero__text { font-size: 16px; }
.hsearch { display: flex; align-items: center; gap: 8px; max-width: 580px; margin-top: 22px; padding: 6px 6px 6px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 10px 26px -18px rgba(23, 37, 84, .45); transition: border-color .15s; }
.hsearch:focus-within { border-color: var(--blue); }
.hsearch > .ic { width: 20px; height: 20px; color: var(--blue); }
.hsearch input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--navy); }
.hsearch input::placeholder { color: #8796AD; }
.hsearch .btn { flex: none; min-height: 42px; padding: 8px 16px; box-shadow: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__cta .btn { flex: 1 1 auto; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.hero__proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof .ic { width: 17px; height: 17px; color: var(--blue); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* Signed-in stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.stat { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.stat dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat dd { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.15; color: var(--navy); }
.stat__ic { width: 22px; height: 22px; }
.stat__ic--purple { color: var(--purple-ink); }
.stat__ic--green { color: var(--green); }
.stat__ic--amber { color: var(--amber); }
.ring { --p: 0; width: 22px; height: 22px; flex: none; border-radius: 50%; background: conic-gradient(var(--blue) calc(var(--p) * 1%), var(--blue-soft) 0); -webkit-mask: radial-gradient(circle, transparent 6.5px, #000 7px); mask: radial-gradient(circle, transparent 6.5px, #000 7px); }
.xp { max-width: 560px; margin-top: 14px; }
.xp__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.xp__row strong { font-family: var(--display); color: var(--purple-ink); font-size: 15px; }
.xp__bar { height: 8px; margin-top: 6px; border-radius: 99px; background: #E3EBF6; overflow: hidden; }
.xp__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--purple)); }

/* Exam countdown board */
.board { position: relative; align-self: start; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.board__band { height: 4px; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.board__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 0; }
.board__top h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.board__top h2 .ic { width: 20px; height: 20px; color: var(--blue); }
.board__main { padding: 14px 20px 18px; }
.board__main--empty p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.board__label { color: var(--purple-ink); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ta"] .board__label { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.board__exam { margin-top: 4px; font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--navy); }
html[lang="ta"] .board__exam { font-size: 18.5px; line-height: 1.45; }
.board__sub { margin-top: 2px; color: var(--muted); font-size: 14px; }
.board__count { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 14px 0 12px; }
.tiles { display: inline-flex; gap: 6px; }
.tiles span { display: grid; place-items: center; width: 48px; height: 62px; border-radius: 12px; background: linear-gradient(180deg, #1E3A8A 0%, #172554 100%); box-shadow: inset 0 -31px 0 rgba(255, 255, 255, .04), 0 6px 14px -8px rgba(23, 37, 84, .6); color: #fff; font-family: var(--display); font-size: 38px; font-weight: 600; line-height: 1; }
.board__unit { padding-bottom: 6px; color: var(--muted); font-weight: 600; font-size: 15px; }
.board__line { display: flex; align-items: flex-start; gap: 7px; margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.board__line .ic { width: 17px; height: 17px; margin-top: 3px; color: var(--blue); }
.board__line--warn { color: var(--amber-ink); font-weight: 600; }
.board__line--warn .ic { color: var(--amber); }
.board__main .link { margin-top: 12px; }
.board__list { padding: 14px 20px 16px; border-top: 1px dashed var(--line); background: #FBFDFF; }
.board__list ul { margin-top: 6px; }
.board__list a { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.board__list li:last-child a { border-bottom: 0; }
.board__list a:hover .board__item { color: var(--blue); }
.board__date { display: grid; place-items: center; width: 44px; height: 46px; flex: none; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); line-height: 1; }
.board__date .num { font-family: var(--display); font-size: 18px; font-weight: 600; }
.board__date small { margin-top: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.board__item { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; line-height: 1.4; color: var(--navy); transition: color .15s; }
.board__days { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* ── Sections ────────────────────────────────────────────────────────── */
.sec { padding: 52px 0; }
.sec--tint { position: relative; background: var(--surface); }
.sec--tint > .wrap { position: relative; }
.sec.sec--tools { padding-top: 24px; }
.sec--last { padding-bottom: 64px; }
.shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 24px; }
.shead h2 { font-size: clamp(1.4rem, 3.6vw, 1.85rem); font-weight: 600; }
html[lang="ta"] .shead h2 { font-size: clamp(1.3rem, 3.3vw, 1.65rem); }
.shead p:not(.eyebrow) { margin-top: 4px; max-width: 60ch; color: var(--muted); }
.shead--center { justify-content: center; text-align: center; }
.shead--center .eyebrow { justify-content: center; }

/* Practice tools */
.tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tool { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool:hover { border-color: #A9C5F3; box-shadow: var(--shadow); transform: translateY(-2px); }
.tool__ic { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 16px; }
.tool__ic img { width: 44px; height: 44px; object-fit: contain; transition: transform .2s; }
.tool:hover .tool__ic img { transform: scale(1.08) rotate(-3deg); }
.tool--blue .tool__ic { background: var(--blue-soft); }
.tool--purple .tool__ic { background: var(--purple-soft); }
.tool--amber .tool__ic { background: var(--amber-soft); }
.tool--cyan .tool__ic { background: var(--cyan-soft); }
.tool--green .tool__ic { background: var(--green-soft); }
.tool--rose .tool__ic { background: var(--rose-soft); }
.tool__text { flex: 1; min-width: 0; }
.tool__text strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-family: var(--display); font-size: 17.5px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.tool__text em { padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--body); font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.tool__text small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.tool__go { width: 18px; height: 18px; color: #9AA9C0; }

/* Current affairs */
.news { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.news__lead { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.news__lead::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.news__lead:hover { border-color: #A9C5F3; box-shadow: var(--shadow); }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13.5px; }
.news__latest { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 12.5px; font-weight: 600; }
.news__title { font-family: var(--display); font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 600; line-height: 1.3; color: var(--navy); }
html[lang="ta"] .news__title { line-height: 1.5; font-size: clamp(1.1rem, 2.8vw, 1.3rem); }
.news__summary { color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.news__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.news__read { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--blue); font-family: var(--display); font-weight: 600; }
.news__read .ic { width: 16px; height: 16px; }
.news__list { display: grid; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.news__list a { display: grid; gap: 6px; padding: 15px 18px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.news__list li:last-child a { border-bottom: 0; }
.news__list a:hover { background: #FAFCFF; }
.news__list strong { font-weight: 600; line-height: 1.45; color: var(--navy); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.6; }
.chip--blue { background: var(--blue-soft); color: var(--blue-dark); }
.chip--green { background: var(--green-soft); color: #0B7A55; }
.chip--cyan { background: var(--cyan-soft); color: var(--cyan-ink); }
.chip--amber { background: var(--amber-soft); color: var(--amber-ink); }
.chip--purple { background: var(--purple-soft); color: var(--purple-ink); }
.live { position: relative; display: inline-grid; place-items: center; width: 10px; height: 10px; }
.live::before, .live::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.live::after { animation: live 1.4s ease-out infinite; }
@keyframes live { from { transform: scale(1); opacity: .5; } to { transform: scale(2.6); opacity: 0; } }

/* Exams we cover */
/* Exams we cover: exam bodies (tabs) + exam cards */
.xm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.xm__bodies { display: flex; flex-wrap: wrap; gap: 8px; }
.xm__body { --tone: var(--blue); --tone-soft: var(--blue-soft); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.xm__body:hover { border-color: #A9C5F3; }
.xm__body:focus-visible { outline: 3px solid rgba(18, 102, 241, .35); outline-offset: 2px; }
.xm__body[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.xm__abbr { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.2; }
.xm__full { display: none; }
.xm__count { padding: 1px 8px; border-radius: 999px; background: var(--tone-soft); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.xm__body[aria-selected="true"] .xm__count { background: rgba(255, 255, 255, .16); color: #fff; }
.xm__body--purple { --tone: var(--purple); --tone-soft: var(--purple-soft); }
.xm__body--cyan { --tone: var(--cyan); --tone-soft: var(--cyan-soft); }
.xm__body--green { --tone: var(--green); --tone-soft: var(--green-soft); }
.xm__body--amber { --tone: var(--amber); --tone-soft: var(--amber-soft); }
.xm__panel:focus-visible { outline: 3px solid rgba(18, 102, 241, .25); outline-offset: 4px; border-radius: 12px; }
.xm__head { margin-bottom: 12px; }
.xm__head h3 { font-size: 19px; font-weight: 600; }
.xm__head p { color: var(--muted); font-size: 14.5px; }
.xm__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.xcard { --tone: var(--blue); --tone-ink: var(--blue-dark); --tone-soft: var(--blue-soft); position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px 18px 16px 20px; overflow: hidden; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--navy); transition: border-color .15s, box-shadow .15s, transform .15s; }
.xcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); opacity: .85; }
.xcard:hover { border-color: #A9C5F3; box-shadow: var(--shadow); transform: translateY(-2px); }
.xcard--purple { --tone: var(--purple); --tone-ink: var(--purple-ink); --tone-soft: var(--purple-soft); }
.xcard--cyan { --tone: var(--cyan); --tone-ink: var(--cyan-ink); --tone-soft: var(--cyan-soft); }
.xcard--green { --tone: var(--green); --tone-ink: #0B7A55; --tone-soft: var(--green-soft); }
.xcard--amber { --tone: var(--amber); --tone-ink: var(--amber-ink); --tone-soft: var(--amber-soft); }
.xcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 10px; }
.xcard__soon { flex: none; margin-top: 2px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.xcard__soon .ic { width: 13px; height: 13px; }
.xcard__name { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.3; }
html[lang="ta"] .xcard__name { font-size: 17.5px; line-height: 1.45; }
.xcard__meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.xcard__meta .ic { flex: none; width: 15px; height: 15px; color: #8A9AB3; }
.xcard__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--blue); font-size: 14.5px; font-weight: 600; }
.xcard__go .ic { width: 16px; height: 16px; transition: transform .15s; }
.xcard:hover .xcard__go .ic { transform: translateX(3px); }

/* Kural of the day: palm-leaf manuscript */
.sec--kural { position: relative; background: linear-gradient(180deg, #fff, var(--surface)); }
.kural { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.kural__leaf {
    position: relative; padding: 30px 26px 26px; text-align: left; container-type: inline-size;
    background:
        repeating-linear-gradient(180deg, rgba(160, 120, 40, .07) 0 1px, transparent 1px 7px),
        linear-gradient(180deg, var(--leaf) 0%, var(--leaf-2) 100%);
    border-bottom: 1px solid var(--leaf-line);
}
.kural__leaf::before, .kural__leaf::after { /* the two binding holes of an olai */
    content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #C9AE74, #8F7440); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.kural__leaf::before { left: 10px; }
.kural__leaf::after { right: 10px; }
.kural__no { display: inline-block; align-self: flex-start; margin-bottom: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--leaf-line); background: rgba(255, 255, 255, .5); color: #6B5320; font-size: 13px; font-weight: 600; }
.kural__lines { display: grid; gap: 2px; font-family: var(--serif-ta); font-feature-settings: normal; font-weight: 600; line-height: 1.75; color: #24304F; font-size: max(11px, min(21px, calc((100cqi - 8px) / 27))); }
.kural__lines span { display: block; width: max-content; white-space: nowrap; transform-origin: left center; }
.kural__chapter { margin-top: 12px; color: #6B5320; font-size: 14px; font-weight: 600; }
.kural__chapter::before { content: ""; display: inline-block; width: 22px; height: 1.5px; margin-right: 8px; vertical-align: middle; background: #B49557; }
.kural__side { display: flex; flex-direction: column; padding: 22px; }
.kural__label { color: var(--purple-ink); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html[lang="ta"] .kural__label { letter-spacing: 0; text-transform: none; font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tabs button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 600; transition: background-color .15s, color .15s, border-color .15s; }
.tabs button:hover { border-color: var(--blue); color: var(--blue); }
.tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.kural__pane { margin-top: 12px; }
.kural__pane p { color: var(--navy); font-size: 16px; line-height: 1.85; }
.kural__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; }
.kural.is-loading .kural__lines, .kural.is-loading .kural__pane { opacity: .45; transition: opacity .2s; }
.kural__error { color: var(--red); font-size: 13.5px; }
.kural__error:empty { display: none; }

/* Why Tamil Test */
.why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.why__item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.why__item .why__ic { grid-row: span 2; margin-bottom: 0; }
.why__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px; }
.why__ic .ic { width: 23px; height: 23px; }
.why__ic--blue { background: var(--blue-soft); color: var(--blue); }
.why__ic--amber { background: var(--amber-soft); color: var(--amber-ink); }
.why__ic--purple { background: var(--purple-soft); color: var(--purple-ink); }
.why__ic--green { background: var(--green-soft); color: var(--green); }
.why__item h3 { font-size: 18px; font-weight: 600; }
.why__item p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* App band */
.sec--app { padding-top: 8px; }
.appband {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 22px;
    border-radius: 24px; color: #fff; background: linear-gradient(120deg, var(--blue) 0%, #5B48E8 55%, var(--purple-ink) 100%);
}
.appband > * { position: relative; }
.appband__badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); font-size: 13px; font-weight: 600; }
.appband__badge .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.appband h2 { margin-top: 12px; color: #fff; font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 700; }
.appband p { max-width: 56ch; margin: 8px 0 20px; color: rgba(255, 255, 255, .9); }
.appband__logo { display: none; width: 128px; height: 128px; justify-self: center; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 10px rgba(255, 255, 255, .08); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .15s; }
.faq details[open] { border-color: #BCD3F5; box-shadow: 0 10px 24px -20px rgba(23, 37, 84, .5); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
html[lang="ta"] .faq summary h3 { line-height: 1.55; font-size: 16px; }
.faq summary .ic { flex: none; width: 18px; height: 18px; color: var(--blue); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); font-size: 15.5px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.ftr { background: #F7FAFF; border-top: 1px solid var(--line); }
.ftr__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 36px; padding-bottom: 28px; }
.ftr__brand { grid-column: 1 / -1; }
.ftr__brand img { height: 35px; width: auto; }
.ftr__brand p { max-width: 42ch; margin-top: 12px; color: var(--muted); font-size: 15px; }
.ftr__social { display: flex; gap: 8px; margin-top: 16px; }
.ftr__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--navy); transition: color .15s, border-color .15s; }
.ftr__social a:hover { color: var(--blue); border-color: var(--blue); }
.ftr__social .ic { width: 19px; height: 19px; }
.ftr nav { display: grid; align-content: start; gap: 9px; }
.ftr nav h2 { margin-bottom: 4px; font-size: 16px; font-weight: 600; }
.ftr nav a { color: var(--muted); font-size: 15px; transition: color .15s; }
.ftr nav a:hover { color: var(--blue); }
.ftr__base { display: grid; gap: 12px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.ftr__partner { display: inline-flex; align-items: center; gap: 10px; }
.ftr__partner a { display: inline-flex; }
.ftr__partner img { height: 22px; width: auto; max-width: 140px; }

/* Quick links: floating "Show menu" button + panel (768px and up) */
.ic--fill { fill: currentColor; stroke: none; }
.qmenu { display: none; }
.qmenu__btn { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 16px 9px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -10px rgba(23, 37, 84, .35); color: var(--navy); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.qmenu__btn:hover { border-color: #A9C5F3; transform: translateY(-1px); }
.qmenu__btn:focus-visible { outline: 3px solid rgba(18, 102, 241, .35); outline-offset: 2px; }
.qmenu__btn .ic { width: 18px; height: 18px; color: var(--purple-ink); }
.qmenu__btn[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.qmenu__btn[aria-expanded="true"] .ic { color: #FBD34D; }
.qmenu__panel { position: fixed; right: 20px; bottom: 76px; z-index: 56; width: min(392px, calc(100vw - 40px)); max-height: calc(100vh - 160px); overflow-y: auto; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 48px -20px rgba(23, 37, 84, .45); transform-origin: bottom right; animation: qmenu-in .16s ease-out; }
@keyframes qmenu-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.qmenu__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.qmenu__title { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--navy); }
.qmenu__text { color: var(--muted); font-size: 14px; }
.qmenu__close { width: 36px; height: 36px; margin: -4px -4px 0 0; border-radius: 50%; background: var(--surface); }
.qmenu__close:hover { background: var(--blue-soft); }
.qmenu__close .ic { width: 18px; height: 18px; }
.qmenu__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qlink { --tone: var(--blue-dark); --tone-soft: var(--blue-soft); position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; padding: 12px 6px 10px; border-radius: 14px; border: 1px solid transparent; text-align: center; color: var(--navy); transition: background-color .15s, border-color .15s; }
.qlink:hover { background: var(--surface); border-color: var(--line); }
.qlink:focus-visible { outline: 3px solid rgba(18, 102, 241, .35); outline-offset: 1px; }
.qlink__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tone-soft); color: var(--tone); }
.qlink__ic .ic { width: 21px; height: 21px; stroke-width: 1.8; }
.qlink__label { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
html[lang="ta"] .qlink__label { font-size: 12.5px; line-height: 1.4; }
.qlink__badge { position: absolute; top: 7px; left: calc(50% + 10px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.qlink--purple { --tone: var(--purple-ink); --tone-soft: var(--purple-soft); }
.qlink--cyan { --tone: var(--cyan-ink); --tone-soft: var(--cyan-soft); }
.qlink--green { --tone: #0B7A55; --tone-soft: var(--green-soft); }
.qlink--amber { --tone: var(--amber-ink); --tone-soft: var(--amber-soft); }
.qlink--rose { --tone: #C2304F; --tone-soft: var(--rose-soft); }
@media (min-width: 768px) {
    .qmenu { display: block; }
    /* Keep clear of the cookie banner while it is showing */
    .cookie:not([hidden]) ~ .qmenu .qmenu__btn { bottom: 116px; }
    .cookie:not([hidden]) ~ .qmenu .qmenu__panel { bottom: 172px; max-height: calc(100vh - 256px); }
}
@media print { .qmenu { display: none !important; } }

/* ── Header extras: Tamil Test Plus ─────────────────────────────────── */
.hdr__plus { display: none; align-items: center; flex: none; padding: 2px 4px; border-radius: 10px; transition: transform .15s, background-color .15s; }
.hdr__plus:hover { background: #FFF8E6; transform: translateY(-1px); }
.hdr__plus img { width: auto; height: 32px; }
.drawer__plus { display: flex; align-items: center; gap: 12px; margin: 10px 10px 0; padding: 10px 12px; border-radius: 14px; background: linear-gradient(120deg, #FFF8E6, #FFF3DC); border: 1px solid #F8E1B4; color: var(--amber-ink); font-weight: 600; font-size: 15px; }
.drawer__plus img { width: auto; height: 30px; }
.drawer__plus .ic { width: 18px; height: 18px; margin-left: auto; }

/* ── Search: suggestions before typing ──────────────────────────────── */
.search[open] { display: flex; flex-direction: column; }
.search__body { flex: 1; min-height: 0; overflow-y: auto; }
.search__results { max-height: none; overflow: visible; }
.search__start { padding: 2px 16px 18px; }
.search__label { display: flex; align-items: center; gap: 7px; margin: 10px 2px 10px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
html[lang="ta"] .search__label { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.search__label .ic { width: 16px; height: 16px; color: var(--purple-ink); }
.search__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.search__popular { display: grid; gap: 4px; }
.search__popular a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; border: 1px solid transparent; }
.search__popular a:hover, .search__popular a:focus-visible { background: var(--surface); border-color: var(--line); }
.search__popular img { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: cover; background: var(--blue-soft); }
.search__popular span { flex: 1; min-width: 0; }
.search__popular strong { display: block; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.search__popular small { display: block; color: var(--muted); font-size: 13px; }
.search__popular em { flex: none; padding: 2px 9px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; }
.search__popular em.is-free { background: var(--green-soft); color: #0B7A55; }
.search__popular em.is-premium { background: var(--amber-soft); color: var(--amber-ink); }

/* ══ Shared components (v2/partials) ═════════════════════════════════ */

/* Page header + breadcrumb */
.phead { position: relative; padding: 22px 0 26px; background: linear-gradient(180deg, #EEF5FF 0%, #F7FAFF 70%, #fff 100%); border-bottom: 1px solid var(--line); }
.phead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.phead h1 { margin-top: 4px; font-size: clamp(1.55rem, 4vw, 2.15rem); font-weight: 600; }
html[lang="ta"] .phead h1 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
.phead__text { max-width: 66ch; margin-top: 6px; color: var(--muted); font-size: 16px; }
.phead__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs { margin-bottom: 12px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.6px solid #9AA9C0; border-right: 1.6px solid #9AA9C0; transform: rotate(45deg); }
.crumbs a { color: var(--blue-dark); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { overflow: hidden; max-width: 46ch; color: var(--navy); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

/* Filter chips */
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.2; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.fchip:hover { border-color: #A9C5F3; color: var(--blue-dark); }
.fchip:focus-visible { outline: 3px solid rgba(18, 102, 241, .3); outline-offset: 2px; }
.fchip[aria-current], .fchip[aria-pressed="true"], .fchip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.fchip__count { padding: 0 7px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fchip[aria-current] .fchip__count, .fchip[aria-pressed="true"] .fchip__count, .fchip.is-active .fchip__count { background: rgba(255, 255, 255, .16); color: #fff; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pager__info { color: var(--muted); font-size: 14px; }
.pager__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pager__list a, .pager__list span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 500; }
.pager__list a:hover { border-color: #A9C5F3; color: var(--blue-dark); }
.pager__list [aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager__list .is-gap { border-color: transparent; background: none; min-width: 24px; padding: 0; color: var(--muted); }
.pager__list .is-disabled { color: #A8B4C7; background: var(--surface); }
.pager__list .pager__step { gap: 6px; display: inline-flex; }
.pager__list .pager__step .ic { width: 16px; height: 16px; }
.pager__num { display: none; }

/* Empty state */
.empty { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; border-radius: 20px; border: 1.5px dashed #C9D8EE; background: #FBFDFF; text-align: center; }
.empty__ic { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 6px; border-radius: 18px; background: var(--blue-soft); color: var(--blue); }
.empty__ic .ic { width: 28px; height: 28px; stroke-width: 1.7; }
.empty h2, .empty h3 { font-size: 19px; font-weight: 600; }
.empty p { max-width: 46ch; color: var(--muted); }
.empty .btn { margin-top: 8px; }

/* Alerts */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid; font-size: 15px; line-height: 1.5; }
.alert > .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.alert__title { display: block; font-weight: 600; }
.alert--info { background: var(--blue-soft); border-color: #C6DAFB; color: #123A8C; }
.alert--success { background: var(--green-soft); border-color: #B9E8D3; color: #0B5E43; }
.alert--warning { background: var(--amber-soft); border-color: #F8E1B4; color: #7A4300; }
.alert--error { background: #FEF0F0; border-color: #F9C9C9; color: #9B1C1C; }

/* Form fields */
.field { display: grid; align-content: start; gap: 6px; }
.field__label { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.field__label .req { color: var(--red); }
.field__hint { color: var(--muted); font-size: 13.5px; }
.field__error { display: flex; align-items: center; gap: 6px; color: var(--red); font-size: 13.5px; font-weight: 500; }
.field__error .ic { width: 15px; height: 15px; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid #C9D8EE; background: #fff; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352627A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.input::placeholder, .textarea::placeholder { color: #8A9AB3; }
.input:hover, .select:hover, .textarea:hover { border-color: #A9C5F3; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18, 102, 241, .14); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 13px; top: 50%; width: 19px; height: 19px; color: #8A9AB3; transform: translateY(-50%); pointer-events: none; }
.input-icon > .input { padding-left: 42px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.form-grid { display: grid; gap: 16px; }

/* Card + stat tile */
.card { padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.card--link { display: block; color: var(--navy); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { border-color: #A9C5F3; box-shadow: var(--shadow); transform: translateY(-2px); }
.card__title { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.35; }
.card__meta { margin-top: 6px; color: var(--muted); font-size: 14px; }
.statcard { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.statcard__ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.statcard__ic .ic { width: 21px; height: 21px; }
.statcard--purple .statcard__ic { background: var(--purple-soft); color: var(--purple-ink); }
.statcard--green .statcard__ic { background: var(--green-soft); color: #0B7A55; }
.statcard--amber .statcard__ic { background: var(--amber-soft); color: var(--amber-ink); }
.statcard__label { display: block; color: var(--muted); font-size: 13.5px; }
.statcard__value { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--navy); font-variant-numeric: tabular-nums; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.6; background: var(--surface); color: var(--muted); }
.tag--free { background: var(--green-soft); color: #0B7A55; }
.tag--premium { background: var(--amber-soft); color: var(--amber-ink); }
.tag--new { background: var(--blue-soft); color: var(--blue-dark); }

/* Modal (dialog) — a bottom sheet on phones */
.modal { width: min(560px, 100%); max-width: 100%; max-height: min(88vh, 760px); margin: auto auto 0; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 30px 60px -20px rgba(23, 37, 84, .5); }
.modal[open] { display: flex; flex-direction: column; animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__head { position: relative; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 20px; font-weight: 600; padding-right: 36px; }
.modal__head p:not(.eyebrow) { margin-top: 4px; color: var(--muted); font-size: 15px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); }
.modal__body { flex: 1; min-height: 0; padding: 16px 20px; overflow-y: auto; }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: #FAFCFF; }
.modal__foot .btn { flex: 1 1 auto; }

/* Exam pop-up after sign-up */
.onboard .modal__body { display: grid; gap: 10px; }
.onboard__list { display: grid; gap: 4px; max-height: 280px; margin: 0; padding: 6px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; }
.onboard__opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-weight: 500; transition: background-color .12s; }
.onboard__opt:hover { background: var(--surface); }
.onboard__opt input { position: absolute; opacity: 0; pointer-events: none; }
.onboard__opt span { flex: 1; }
.onboard__opt .ic { width: 18px; height: 18px; color: var(--blue); visibility: hidden; }
.onboard__opt:has(input:checked) { background: var(--blue-soft); color: var(--blue-dark); box-shadow: inset 0 0 0 1.5px #9CC0F7; }
.onboard__opt:has(input:checked) .ic { visibility: visible; }
.onboard__opt:has(input:focus-visible) { outline: 3px solid rgba(18, 102, 241, .35); outline-offset: 1px; }
.onboard__empty { color: var(--muted); font-size: 14.5px; }

/* Loading placeholders */
.skel { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #EAF1FB 25%, #F5F9FF 50%, #EAF1FB 75%) 0 0 / 200% 100%; animation: skel 1.3s ease-in-out infinite; }
.skel--title { height: 20px; width: 70%; }
.skel--line { width: 100%; }
.skel--short { width: 45%; }
.skel + .skel { margin-top: 10px; }
@keyframes skel { to { background-position: -200% 0; } }

/* Error pages */
.oops { display: grid; place-items: center; min-height: 62vh; padding: 48px 0 64px; text-align: center; }
.oops__code { display: inline-grid; place-items: center; min-width: 132px; height: 92px; margin-bottom: 22px; padding: 0 22px; border-radius: 26px; background: linear-gradient(135deg, var(--blue-soft), var(--purple-soft)); border: 1px solid #D4E2F8; color: var(--blue-dark); font-family: var(--display); font-size: 46px; font-weight: 700; letter-spacing: .02em; }
.oops--amber .oops__code { background: linear-gradient(135deg, #FFF8E6, var(--amber-soft)); border-color: #F8E1B4; color: var(--amber-ink); }
.oops--red .oops__code { background: linear-gradient(135deg, #FEF0F0, #FDE4E4); border-color: #F9C9C9; color: #B42318; }
.oops h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; }
.oops p { max-width: 50ch; margin: 10px auto 0; color: var(--muted); font-size: 16.5px; }
.oops__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.oops__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.oops__note { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 16px; border-radius: 12px; background: var(--amber-soft); border: 1px solid #F8E1B4; color: #7A4300; font-size: 14.5px; font-weight: 500; }
.oops__note .ic { width: 17px; height: 17px; }
.bare { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #EEF5FF 0%, #fff 60%); }
.bare__top { padding: 18px 0; }
.bare__top img { height: 34px; width: auto; }
.bare main { flex: 1; }

/* ══ Exams (phase 1) ═════════════════════════════════════════════════ */
.sec.sec--tight { padding: 28px 0; }
.sec.sec--tight + .sec.sec--tight { padding-top: 0; }
.sec.sec--list { padding-top: 8px; }
.subhead { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 19px; font-weight: 600; }
.subhead .ic { width: 20px; height: 20px; color: var(--purple-ink); }

/* Coming up strip */
.soon { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.soon__card { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--navy); transition: border-color .15s, box-shadow .15s; }
a.soon__card:hover { border-color: #A9C5F3; box-shadow: var(--shadow); }
.soon__date { display: grid; place-items: center; width: 50px; height: 54px; flex: none; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); line-height: 1.05; }
.soon__date .num { font-family: var(--display); font-size: 21px; font-weight: 600; }
.soon__date small { font-size: 11.5px; font-weight: 600; }
.soon__body { min-width: 0; }
.soon__body strong { display: block; font-weight: 600; line-height: 1.35; }
.soon__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 13.5px; }
.soon__days { color: var(--blue-dark); font-weight: 600; }
.soon__apply { color: var(--amber-ink); }

/* Exam list: search + body chips */
.xf { display: grid; gap: 12px; margin-bottom: 18px; }
.xf__search { max-width: 520px; }
.xf__count { color: var(--muted); font-size: 14px; }
.xb { margin-top: 26px; }
.xb__head { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.xb__head h2 { font-size: 22px; font-weight: 600; }
.xb__head p { color: var(--muted); font-size: 14.5px; }
.xm2 { padding: 16px 0 6px; }
.xm2__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; }
.xm2__head h3 { font-size: 17px; font-weight: 600; }
.xm2__link { margin-left: auto; font-size: 14.5px; }
.xm2__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.xcard__desc { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Exam hub */
.sec.sec--hub { padding-top: 28px; }
.hub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; grid-template-areas: "count" "main" "practice"; }
.hub__count { grid-area: count; }
.hub__main { grid-area: main; display: grid; gap: 28px; align-content: start; min-width: 0; }
.hub__practice { grid-area: practice; }
.hub__children { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hub__tools { display: grid; gap: 10px; }
.board__today { margin: 10px 0 6px; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--amber-ink); }
.board__cta { margin-top: 12px; }

/* Notifications */
.notices { display: grid; gap: 14px; }
.notices__divider { margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
html[lang="ta"] .notices__divider { letter-spacing: 0; text-transform: none; }
.notice { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.notice.is-past { background: #FBFCFE; }
.notice.is-past .notice__title { color: #3E4C66; }
.notice__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.notice__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; padding: 16px 18px 18px; }
.notice__top { display: flex; flex-wrap: wrap; gap: 6px; }
.notice__title { font-size: 18.5px; font-weight: 600; line-height: 1.4; }
.notice__path { margin-top: -6px; color: var(--muted); font-size: 14px; }
.notice__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 12px; border-radius: 12px; background: var(--surface); }
.notice__facts dt { color: var(--muted); font-size: 13px; }
.notice__facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
.notice__facts dd small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.notice__facts dd.is-warn { color: var(--amber-ink); }
.notice .btn, .board__cta { justify-self: start; max-width: 100%; white-space: normal; text-align: left; line-height: 1.35; }
.notice__more summary { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; cursor: pointer; list-style: none; }
.notice__more summary::-webkit-details-marker { display: none; }
.notice__more summary .ic { width: 16px; height: 16px; transition: transform .2s; }
.notice__more[open] summary .ic { transform: rotate(180deg); }
.notice__more[open] summary { margin-bottom: 10px; }

/* Admin-written rich text */
.prose { color: #2D3A55; font-size: 15.5px; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: .8em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.2em; font-size: 17px; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--blue); }
.prose li + li { margin-top: .3em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
.prose blockquote { padding-left: 14px; border-left: 3px solid #BCD3F5; color: var(--muted); }

/* Calendar */
.cal-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cal-stats .statcard { padding: 12px; }
.cal-stats .statcard__value { font-size: 18px; }
.cal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.tline { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tline__item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
.tline__item:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 62px; bottom: -14px; width: 2px; background: var(--line); }
.tline__date { display: grid; place-items: center; align-content: center; width: 56px; height: 60px; border-radius: 14px; background: var(--navy); color: #fff; line-height: 1.05; }
.tline__date .num { font-family: var(--display); font-size: 22px; font-weight: 600; }
.tline__date small { font-size: 11.5px; font-weight: 600; opacity: .85; }
.tline__item.is-done .tline__date { background: #E3EBF6; color: var(--muted); }
.tline__card { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.tline__item.is-next .tline__card { border-color: #9CC0F7; box-shadow: 0 0 0 3px rgba(18, 102, 241, .1); }
.tline__item.is-done .tline__card { background: #FBFCFE; }
.tline__top { display: flex; flex-wrap: wrap; gap: 6px; }
.tline__top .tag .ic { width: 13px; height: 13px; }
.tline__card h3 { font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.tline__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.tline__facts dt { color: var(--muted); font-size: 13px; }
.tline__facts dd { margin: 2px 0 0; font-weight: 600; }
.tline__facts dd small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.cal__side { display: grid; gap: 16px; align-content: start; }
.table-wrap { max-width: 100%; overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { border-top: 0; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.table tbody th { font-weight: 600; color: var(--navy); }
.table tr.is-done td, .table tr.is-done th { color: #8A9AB3; }
.cal__cta { padding: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--blue-soft), var(--purple-soft)); border: 1px solid #D4E2F8; }
.cal__cta h3 { font-size: 18px; font-weight: 600; }
.cal__cta p { margin: 6px 0 14px; color: var(--muted); font-size: 15px; }
.cal__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ══ Current affairs (phase 2) ═══════════════════════════════════════ */
.ca-tools { display: grid; gap: 14px; }
.ca-search { display: flex; gap: 8px; max-width: 620px; }
.ca-search .input-icon { flex: 1; min-width: 0; }
.dstrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.dstrip__day { position: relative; display: grid; justify-items: center; flex: none; width: 62px; padding: 8px 4px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--navy); line-height: 1.15; scroll-snap-align: start; transition: border-color .15s; }
.dstrip__day:hover { border-color: #A9C5F3; }
.dstrip__day small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.dstrip__day .num { margin: 2px 0; font-family: var(--display); font-size: 20px; font-weight: 600; }
.dstrip__day[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.dstrip__day[aria-current] small { color: #C7D4EA; }
.dstrip__count { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.ca-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; color: var(--muted); font-size: 14.5px; }
.ca-status strong { color: var(--navy); font-weight: 600; }
.ca { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.ca__main { min-width: 0; }
.ca__side { display: grid; gap: 16px; align-content: start; }
.ca-day + .ca-day { margin-top: 26px; }
.ca-day__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.ca-day__head small { color: var(--muted); font-family: var(--body); font-size: 14px; font-weight: 400; }
.ca-day__list { display: grid; gap: 12px; }
.ca-card { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.ca-card:hover { border-color: #A9C5F3; box-shadow: var(--shadow); }
.ca-card.has-img:not(.ca-card--lead) { grid-template-columns: minmax(0, 1fr) 104px; }
.ca-card.has-img:not(.ca-card--lead) .ca-card__img { order: 2; margin: 14px 14px 14px 0; border-radius: 12px; overflow: hidden; align-self: start; }
.ca-card__img img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.ca-card--lead .ca-card__img img { aspect-ratio: 16 / 9; }
.ca-card__body { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 14px 16px; }
.ca-card__top { display: flex; align-items: center; gap: 8px; }
.ca-card__audio { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--purple-soft); color: var(--purple-ink); }
.ca-card__audio .ic { width: 14px; height: 14px; }
.ca-card__title { font-size: 17px; font-weight: 600; line-height: 1.4; }
html[lang="ta"] .ca-card__title { font-size: 16px; line-height: 1.55; }
.ca-card--lead .ca-card__title { font-size: clamp(1.15rem, 3vw, 1.4rem); }
.ca-card__title a { color: var(--navy); }
.ca-card__title a:hover { color: var(--blue); }
.ca-card__title a::after { content: ""; }
.ca-card__sum { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 14.5px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ca-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13.5px; }
.ca-card__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ca-card__meta .ic { width: 14px; height: 14px; }

/* Save (bookmark) */
.save { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.save:hover { border-color: #A9C5F3; color: var(--blue-dark); }
.save:focus-visible { outline: 3px solid rgba(18, 102, 241, .3); outline-offset: 2px; }
.save .ic { width: 17px; height: 17px; }
.save[aria-pressed="true"] { background: var(--blue-soft); border-color: #BCD3F5; color: var(--blue-dark); }
.save[aria-pressed="true"] .ic { fill: currentColor; }
.save--icon { width: 36px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
.save--icon:hover { background: var(--surface); }

/* Side boxes */
.side-box { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.side-box h2 { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 600; }
.side-box h2 .ic { width: 18px; height: 18px; color: var(--purple-ink); }
.side-box > p { margin-top: -6px; color: var(--muted); font-size: 14px; }
.side-box--quiz { background: linear-gradient(160deg, #F3F8FF, #fff 60%); border-color: #CFE0FA; }
.side-box--app { background: linear-gradient(135deg, var(--blue-soft), var(--purple-soft)); border-color: #D4E2F8; }
.side-box--app .btn { justify-self: start; }
.qlist, .arch, .rel { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.qlist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--navy); }
.qlist a:hover { border-color: #A9C5F3; }
.qlist strong { display: block; font-weight: 600; line-height: 1.35; }
.qlist small { display: block; color: var(--muted); font-size: 13px; }
.qlist .ic { flex: none; width: 17px; height: 17px; color: #9AA9C0; }
.arch a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--navy); }
.arch a:hover { background: var(--surface); }
.arch a[aria-current] { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; }
.arch__n { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rel a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--navy); }
.rel a:hover { background: var(--surface); }
.rel img { width: 64px; height: 48px; flex: none; border-radius: 8px; object-fit: cover; }
.rel strong { display: -webkit-box; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rel small { color: var(--muted); font-size: 12.5px; }

/* Article */
.wrap--read { max-width: 1280px; }
.phead--article { padding-bottom: 22px; }
.art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 14px; }
.art__title { max-width: 44ch; margin-top: 10px; font-size: clamp(1.45rem, 4vw, 2.1rem); font-weight: 600; line-height: 1.3; }
html[lang="ta"] .art__title { max-width: 48ch; font-size: clamp(1.3rem, 3.6vw, 1.8rem); line-height: 1.5; }
.art__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.art__main { display: grid; gap: 20px; align-content: start; min-width: 0; max-width: 760px; }
.art__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--surface); }
.art__audio { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--purple-soft); border: 1px solid #E6D4FB; }
.art__audio p { display: flex; align-items: center; gap: 8px; color: var(--purple-ink); font-weight: 600; font-size: 14.5px; }
.art__audio .ic { width: 18px; height: 18px; }
.art__audio audio { width: 100%; height: 40px; }
.art__points { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.art__points h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16.5px; font-weight: 600; }
.art__points h2 .ic { width: 18px; height: 18px; color: var(--green); }
.art__points ul { display: grid; gap: 6px; margin: 0; padding-left: 1.3em; list-style: disc; }
.art__points li::marker { color: var(--green); }
.art__points li { line-height: 1.6; }
.art__body { font-size: 17px; line-height: 1.8; }
html[lang="ta"] .art__body { font-size: 16.5px; line-height: 1.85; }
.art__tags h2, .art__share h2 { margin-bottom: 10px; color: var(--muted); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
html[lang="ta"] .art__tags h2, html[lang="ta"] .art__share h2 { letter-spacing: 0; text-transform: none; }
.art__share { padding-top: 16px; border-top: 1px solid var(--line); }
.art__share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--navy); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.share-btn:hover { border-color: #A9C5F3; }
.share-btn .ic { width: 17px; height: 17px; }
.share-btn--wa .ic { color: #128C4A; }
.share-btn--tg .ic { color: #1C8ADB; }
.art__side { display: grid; gap: 16px; align-content: start; }

/* UI preview page (/v2/ui) */
.uikit { display: grid; gap: 28px; }
.uikit__block { display: grid; gap: 14px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.uikit__block > h2 { font-size: 15px; font-weight: 600; color: var(--purple-ink); letter-spacing: .04em; text-transform: uppercase; }
html[lang="ta"] .uikit__block > h2 { letter-spacing: 0; text-transform: none; }
.uikit__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.uikit__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 720px; margin-inline: auto; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cookie p { margin-top: 2px; color: var(--muted); font-size: 14px; }
.cookie p a { color: var(--blue); text-decoration: underline; }
.cookie__actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 559.98px) { .hide-xs { display: none !important; } }
@media (max-width: 639.98px) { .hide-sm { display: none !important; } }

/* ── ≥ 640px ─────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
    :root { --gutter: 24px; }
    .modal { margin: auto; border-radius: 22px; max-height: min(84vh, 760px); }
    .modal__foot .btn { flex: 0 0 auto; }
    .pager__num { display: inline; }
    .uikit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phead { padding: 28px 0 32px; }
    .ca-card.has-img:not(.ca-card--lead) { grid-template-columns: minmax(0, 1fr) 168px; }
    .soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xm2__grid, .hub__children { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .notice--img { grid-template-columns: 220px minmax(0, 1fr); }
    /* Fixed-size thumbnail at the top: "Read the full notification" makes the card tall, the image must not stretch with it. */
    .notice__img { align-self: start; width: calc(100% - 18px); height: auto; aspect-ratio: 1 / 1; margin: 18px 0 0 18px; border-radius: 12px; object-fit: contain; }
    .cal-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero { padding: 60px 0 136px; }
        .hero__cta .btn { flex: 0 0 auto; }
    .hdr__search { padding: 0 12px; border: 1px solid var(--line); background: #fff; }
    .hdr__search kbd { display: inline-block; }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why__item { display: block; padding: 20px; }
    .why__item .why__ic { margin-bottom: 14px; }
    .appband { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 36px 40px; }
    .appband__logo { display: block; }
    .ftr__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
    .ftr__brand { grid-column: auto; }
    .ftr__base { grid-template-columns: 1fr auto; align-items: center; }
    .cookie { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .sec { padding: 68px 0; }
    .sec.sec--tools { padding-top: 28px; }
}

/* ── ≥ 960px ─────────────────────────────────────────────────────────── */
@media (min-width: 960px) {
    .ca, .art { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 36px; align-items: start; }
    .ca__side, .art__side { position: sticky; top: 88px; }
    .hub { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; grid-template-areas: "main count" "main practice"; align-items: start; column-gap: 32px; }
    .hub__count .board, .hub__practice { position: relative; }
    .cal { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; column-gap: 32px; }
    .soon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero { padding: 72px 0 148px; }
    .hero__skyline { height: 132px; background-size: auto 132px; }
        .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: 56px; align-items: center; }
    .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .news { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; }
    .xm { grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
    .xm__bodies:not([hidden]) { position: sticky; top: 88px; flex-direction: column; flex-wrap: nowrap; gap: 6px; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
    .xm__bodies[hidden] + .xm__panel, .xm__bodies[hidden] ~ .xm__panel { grid-column: 1 / -1; }
    .xm__body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 10px; padding: 12px 14px 12px 18px; border-radius: 14px; border-color: transparent; background: transparent; }
    .xm__body:hover { background: rgba(255, 255, 255, .7); border-color: transparent; }
    .xm__body[aria-selected="true"] { background: #fff; border-color: var(--line); color: var(--navy); box-shadow: 0 8px 20px -14px rgba(23, 37, 84, .45); }
    .xm__body[aria-selected="true"]::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--blue), var(--purple)); }
    .xm__abbr { grid-column: 1; font-size: 18px; }
    .xm__full { display: block; grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 13px; line-height: 1.45; }
    .xm__count { grid-column: 2; grid-row: 1; }
    .xm__body[aria-selected="true"] .xm__count { background: var(--tone-soft); color: var(--navy); }
    .xm__bodies:not([hidden]) ~ .xm__panel .xm__head { display: none; }
    .why { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kural { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .kural__leaf { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; border-bottom: 0; border-right: 1px solid var(--leaf-line); border-radius: 0; }
    .kural__leaf::before { left: 16px; }
    .kural__leaf::after { right: 16px; }
    .kural__side { padding: 28px; }
}

/* Header navigation: English from 1180px; Tamil labels are longer, so from 1320px. */
@media (min-width: 1180px) {
    .xm2__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    html[lang="en"] .hdr__plus { display: inline-flex; }
    .xm__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    html[lang="en"] .hdr__nav { display: flex; gap: 2px; margin-left: 20px; }
    html[lang="en"] .hdr__menu { display: none; }
    html[lang="en"] .hdr__search kbd { display: none; }
}
@media (min-width: 1320px) {
    html[lang="en"] .hdr__search-text { display: inline; }
    html[lang="en"] .hdr__search kbd { display: inline-block; }
}
@media (min-width: 1320px) {
    html[lang="ta"] .hdr__nav { display: flex; gap: 0; margin-left: 14px; }
    html[lang="ta"] .hdr__nav a { font-size: 14.5px; padding: 8px 8px; }
    html[lang="ta"] .hdr__nav a[aria-current]::after { left: 8px; right: 8px; }
    html[lang="ta"] .hdr__menu { display: none; }
    html[lang="ta"] .hdr__search kbd { display: none; }
    /* Login and sign-up open the same page: keep just the sign-up button when the Tamil menu is shown. */
    html[lang="ta"] .hdr__tools .btn--text { display: none; }
}
@media (min-width: 1440px) {
    html[lang="ta"] .hdr__plus { display: inline-flex; }
}

@media (max-width: 379.98px) {
    :root { --gutter: 14px; }
    .hdr__logo img { height: 30px; }
    .hdr__row { gap: 6px; }
    .hdr__tools { gap: 2px; }
    .lang a { padding: 4px 7px; }
    .icbtn, .hdr__search { width: 36px; height: 36px; padding: 0; justify-content: center; }
    .acct summary { width: 36px; height: 36px; }
    .tiles span { width: 42px; height: 54px; font-size: 32px; }
    .hsearch { padding-left: 10px; }
    .hsearch > .ic { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ann__viewport { overflow-x: auto; scrollbar-width: none; }
    .ann__track[aria-hidden], .ann__toggle { display: none; }
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Practice pages (phase 3): quizzes, mock tests, previous papers ─────────── */
.chip--rose { display: inline-flex; align-items: center; gap: 6px; background: var(--rose-soft); color: #B4234A; }
.btn.is-disabled { background: var(--surface); border-color: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.subhead__aside { margin-left: auto; color: var(--muted); font-family: var(--body); font-size: 13.5px; font-weight: 500; }

.ptools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fchips--scroll { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.fchips--scroll .fchip { flex: none; }
.fchips--sub .fchip { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.fchip__mastery { color: var(--green); font-size: 12.5px; font-weight: 600; }
.fchip[aria-current] .fchip__mastery { color: #A7F3D0; }
.pfilter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.pfilter__field { display: grid; gap: 4px; flex: 1 1 140px; min-width: 0; max-width: 220px; }
.pfilter__field--wide { flex-basis: 260px; max-width: 420px; }
.pfilter__field label { color: var(--muted); font-size: 13px; font-weight: 600; }
.pfilter__field .select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.pfilter__check { align-self: flex-end; min-height: 42px; align-items: center; font-size: 14.5px; }
.pfilter__check input { margin: 0; }
.js .pfilter[data-autosubmit] .pfilter__go { display: none; }

.pme { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pme__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pme__stats .statcard { min-width: 0; padding: 12px 14px; }
.pme__stats .statcard > span:last-child { min-width: 0; }
.pme__stats .statcard__label { overflow-wrap: anywhere; }
.pme__stats .statcard__value { font-size: 20px; }
.cont { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; }
.cont .subhead { margin-bottom: 10px; font-size: 17px; }
.cont__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cont__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #F3F8FF, #fff); border: 1px solid #CFE0FA; }
.cont__ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.cont__ic.is-paused { background: var(--purple-soft); color: var(--purple-ink); }
.cont__ic .ic { width: 20px; height: 20px; }
.cont__text { flex: 1; min-width: 0; }
.cont__text strong { display: block; overflow: hidden; color: var(--navy); font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.cont__text small { display: block; color: var(--muted); font-size: 13px; }
.passband { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(135deg, #FFF8E6, var(--purple-soft)); border: 1px solid #F1DDB5; color: var(--navy); }
.passband img { width: 40px; height: 40px; flex: none; }
.passband span { flex: 1; min-width: 0; }
.passband strong { display: block; font-weight: 600; }
.passband small { display: block; color: var(--muted); font-size: 13.5px; }
.passband .ic { flex: none; width: 18px; height: 18px; color: var(--blue); }

.pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pcard { position: relative; display: grid; gap: 8px; align-content: start; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: #A9C5F3; box-shadow: var(--shadow); }
.pcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding-right: 40px; }
.pcard__save { position: absolute; top: 10px; right: 10px; }
.pcard__title { font-size: 17px; font-weight: 600; line-height: 1.4; }
html[lang="ta"] .pcard__title { font-size: 16px; line-height: 1.55; }
.pcard__title a { color: var(--navy); }
.pcard__title a:hover { color: var(--blue); }
.pcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pcard__save, .pcard__foot .pstate { z-index: 1; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 13.5px; }
.pcard__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.pcard__meta .ic { width: 15px; height: 15px; }
.pcard__sub { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.pcard__when { display: inline-flex; align-items: center; gap: 6px; color: #0B7A55; font-size: 13.5px; font-weight: 500; }
.pcard__when.is-closed { color: var(--muted); }
.pcard__when .ic { width: 15px; height: 15px; }
.pcard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pcard__foot .tag .ic { width: 13px; height: 13px; }
.pcard__taken { margin-left: auto; color: var(--muted); font-size: 13px; }
.pcard__year { display: inline-grid; place-items: center; min-width: 56px; height: 30px; padding: 0 10px; border-radius: 10px; background: var(--navy); color: #fff; font-family: var(--display); font-size: 15px; font-weight: 600; }
.pcard__path { color: var(--muted); font-size: 13px; font-weight: 500; }
.diff { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.diff::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.diff--green { color: #0B7A55; }
.diff--amber { color: var(--amber-ink); }
.diff--rose { color: #B4234A; }
.pstate { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.6; }
.pstate .ic { width: 13px; height: 13px; }
.pstate--open { background: var(--purple-soft); color: var(--purple-ink); }
.pstate--pass { background: var(--green-soft); color: #0B7A55; }
.pstate--fail { background: var(--rose-soft); color: #B4234A; }
.pfile { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 500; }
.pfile .ic { width: 15px; height: 15px; }
.pfile--quiz { color: var(--blue-dark); }

/* Detail pages */
.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pd__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; min-width: 0; }
.pd__main > section .subhead { margin-bottom: 10px; }
.pd__side { display: grid; gap: 16px; align-content: start; }
.pd__card { display: grid; gap: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #F3F8FF, #fff 70%); border: 1px solid #CFE0FA; }
.pd__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.pd__tags .tag .ic { width: 13px; height: 13px; }
.pd__taken { color: var(--muted); font-size: 13.5px; }
.pd__about { color: #2D3A55; white-space: pre-line; overflow-wrap: break-word; }
.pd__nofile { color: var(--muted); font-size: 14.5px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facts__item { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.facts__item dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.facts__item dt .ic { width: 15px; height: 15px; color: var(--blue); }
.facts__item dd { margin-top: 2px; font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--navy); }
.rules { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.rules li { display: flex; gap: 10px; color: #2D3A55; font-size: 15px; line-height: 1.5; }
.rules .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--purple-ink); }
.pinfo { display: grid; gap: 8px; }
.pinfo li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; }
.pinfo li.is-ok { background: var(--green-soft); color: #0B5E43; }
.pinfo li.is-warn { background: var(--rose-soft); color: #9B1C3A; }
.pinfo .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.pdfs { display: flex; flex-wrap: wrap; gap: 8px; }
.pdfs small { font-weight: 400; color: var(--muted); }
.samples { display: grid; gap: 12px; }
.sample { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.sample__q { display: flex; gap: 10px; color: var(--navy); font-weight: 500; white-space: pre-line; overflow-wrap: break-word; }
.sample__n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13.5px; font-weight: 600; }
.sample__opts { display: grid; gap: 6px; margin-top: 10px; padding-left: 36px; }
.sample__opts li { display: flex; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); color: #2D3A55; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.sample__key { flex: none; color: var(--muted); font-weight: 600; }
.mine { display: grid; gap: 8px; }
.mine__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.mine__pct { display: grid; place-items: center; min-width: 64px; height: 40px; padding: 0 8px; border-radius: 12px; font-family: var(--display); font-size: 16px; font-weight: 600; }
.mine__pct.is-pass { background: var(--green-soft); color: #0B7A55; }
.mine__pct.is-fail { background: var(--rose-soft); color: #B4234A; }
.mine__text { flex: 1 1 160px; min-width: 0; }
.mine__text strong { display: block; color: var(--navy); font-weight: 600; }
.mine__text small { display: block; color: var(--muted); font-size: 13px; }
.mine__row .link { font-size: 14.5px; }
.lboard { display: grid; gap: 6px; }
.lboard__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.lboard__row.is-top { background: linear-gradient(135deg, #FFFBEF, #fff); border-color: #F3E2B8; }
.lboard__rank { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface); color: var(--navy); font-size: 14px; font-weight: 600; }
.lboard__row.is-top .lboard__rank { background: var(--amber); color: #fff; }
.lboard__ava { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface); }
.lboard__ava--text { display: grid; place-items: center; background: var(--purple-soft); color: var(--purple-ink); font-weight: 600; }
.lboard__name { flex: 1; min-width: 0; overflow: hidden; color: var(--navy); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lboard__name small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.lboard__score { flex: none; color: var(--navy); font-family: var(--display); font-size: 17px; font-weight: 600; }
.lboard__score small { color: var(--muted); font-size: 13px; font-weight: 400; }
.side-box--start { background: linear-gradient(160deg, #F3F8FF, #fff 70%); border-color: #CFE0FA; }
.side-box--start h2 { align-items: flex-start; line-height: 1.4; }
.side-box--start h2 .ic { margin-top: 2px; }
.side-box__row { display: flex; flex-wrap: wrap; gap: 8px; }
.startbox { display: grid; gap: 8px; }
.startbox form { display: grid; }
.startbox__btn { width: 100%; }
.startbox__note { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.startbox__note--open { display: flex; align-items: center; gap: 6px; color: var(--purple-ink); font-weight: 500; }
.startbox__note--open .ic { width: 16px; height: 16px; }
.startbox__last { display: flex; align-items: center; gap: 10px; }
.startbox__last .mine__pct { min-width: 56px; height: 34px; font-size: 14.5px; }
.tagline { display: flex; flex-wrap: wrap; gap: 6px; }
.tagline__tag { padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--blue-dark); font-size: 13.5px; font-weight: 500; }
.tagline__tag:hover { background: var(--blue-soft); }
.tagline__tag[aria-current] { background: var(--navy); color: #fff; }
.psource { display: flex; align-items: flex-start; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.psource .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.psource a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.pd__main .psource { margin-top: 0; }
.pdfview { border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.pdfview summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--navy); font-weight: 600; cursor: pointer; list-style: none; }
.pdfview summary::-webkit-details-marker { display: none; }
.pdfview summary .ic { width: 18px; height: 18px; color: var(--blue); }
.pdfview__chev { margin-left: auto; transition: transform .15s; }
.pdfview[open] .pdfview__chev { transform: rotate(180deg); }
.pdfview__frame { height: 70vh; min-height: 420px; border-top: 1px solid var(--line); background: var(--surface); }
.pdfview__frame iframe { width: 100%; height: 100%; border: 0; }
.pdfview__hint { padding: 10px 16px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }

@media (min-width: 640px) {
    .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pme__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pme__stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pd__card { padding: 20px; }
}
@media (min-width: 960px) {
    .pd { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 36px; align-items: start; }
    .pd__side { position: sticky; top: 88px; }
    .pme { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 24px; }
    .pme__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pme__stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pme > .passband { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
    .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pme__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lboard, .mine, .samples, .rules, .pinfo, .pd__side, .startbox, .pgrid > * { min-width: 0; }
.lboard, .mine, .samples, .rules, .pinfo, .pd__side, .startbox { grid-template-columns: minmax(0, 1fr); }
.lboard__name small { white-space: normal; }

/* ── Test screen (phase 4) ──────────────────────────────────────────────── */
.tbody { background: var(--surface); }
.tbody.tt-lock { overflow: hidden; }
.tt { min-height: 100vh; display: flex; flex-direction: column; }
.tt__bar { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; box-shadow: 0 6px 18px -12px rgba(0, 0, 0, .5); }
.tt__barrow { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.tt__exit { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14.5px; font-weight: 500; }
.tt__exit:hover { background: rgba(255, 255, 255, .18); }
.tt__exit .ic { width: 17px; height: 17px; }
.tt__title { flex: 1; min-width: 0; line-height: 1.25; }
.tt__title small { display: block; color: #AFC3E6; font-size: 12px; font-weight: 500; }
.tt__title strong { display: block; overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tt__timer { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tt__timer .ic { width: 17px; height: 17px; }
.tt__timer.is-low { background: var(--amber); color: #3B2300; }
.tt__timer.is-out { background: var(--red); color: #fff; animation: tt-pulse 1s ease-in-out infinite; }
@keyframes tt-pulse { 50% { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .tt__timer.is-out { animation: none; } }
.tt__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.tt__lang { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.tt__lang button { min-width: 40px; min-height: 32px; padding: 0 8px; border-radius: 8px; color: #D6E2F6; font-size: 13px; font-weight: 600; }
.tt__lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.tt__lang--light { background: var(--surface); border: 1px solid var(--line); }
.tt__lang--light button { color: var(--muted); }
.tt__lang--light button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.tt__pal-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; }
.tt__pal-btn .ic { width: 19px; height: 19px; }
.tt__submit { box-shadow: none; }
.tt__progress { height: 3px; background: rgba(255, 255, 255, .12); }
.tt__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--purple)); transition: width .25s; }
.tt__noscript { display: grid; gap: 12px; padding-top: 24px; justify-items: start; }
.tt__body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; padding-bottom: 110px; }
.tt__main { min-width: 0; }
.tq { display: grid; gap: 16px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23, 37, 84, .04); }
.tq__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tq__num { font-size: 18px; font-weight: 600; outline: 0; }
.tq__num small { color: var(--muted); font-family: var(--body); font-size: 14px; font-weight: 400; }
.tq__marks { color: var(--muted); font-size: 13px; }
.tq__save { margin-left: auto; }
.tq__text { color: var(--navy); font-size: 17.5px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
html[lang="ta"] .tq__text, .tq[lang="ta"] .tq__text { font-size: 17px; line-height: 1.8; }
.tq__img { max-width: 100%; max-height: 360px; width: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.tq__opts { display: grid; gap: 10px; }
.tq__opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-size: 16px; line-height: 1.55; text-align: left; transition: border-color .12s, background-color .12s; }
.tq__opt:hover { border-color: #A9C5F3; background: #FAFCFF; }
.tq__opt[aria-checked="true"] { border-color: var(--blue); background: var(--blue-soft); }
.tq__key { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; }
.tq__opt[aria-checked="true"] .tq__key { background: var(--blue); color: #fff; }
.tq__otext { min-width: 0; padding-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.tt__status { display: flex; align-items: center; gap: 6px; min-height: 24px; margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.tt__status .ic { width: 15px; height: 15px; }
.tt__status.is-saved { color: #0B7A55; }
.tt__status.is-offline { color: #B4234A; font-weight: 500; }
.tt__palette { position: fixed; inset: 0 0 0 auto; z-index: 40; display: grid; align-content: start; gap: 14px; width: min(340px, 88vw); padding: 18px; overflow-y: auto; background: #fff; box-shadow: -18px 0 40px -20px rgba(23, 37, 84, .45); transform: translateX(105%); visibility: hidden; transition: transform .2s, visibility 0s .2s; }
.tt__palette.is-open { transform: none; visibility: visible; transition: transform .2s; }
@media (prefers-reduced-motion: reduce) { .tt__palette { transition: none; } }
.tp__head { display: flex; align-items: center; justify-content: space-between; }
.tp__head h2 { font-size: 17px; font-weight: 600; }
.tp__close { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); }
.tp__close .ic { width: 18px; height: 18px; }
.tp__counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tp__count { padding: 8px; border-radius: 12px; background: var(--surface); text-align: center; }
.tp__count dt { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.tp__count dd { margin-top: 2px; font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--navy); }
.tp__count.is-answered { background: var(--green-soft); }
.tp__count.is-marked { background: var(--purple-soft); }
.tp__sec { margin: 8px 0 6px; color: var(--purple-ink); font-size: 13.5px; font-weight: 600; }
.tp__nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.tp__n { position: relative; display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; }
.tp__n:hover { border-color: #A9C5F3; }
.tp__n.is-answered { background: var(--green); border-color: var(--green); color: #fff; }
.tp__n.is-marked::after { content: ""; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--purple); border: 2px solid #fff; }
.tp__n.is-current { outline: 3px solid var(--blue); outline-offset: 1px; }
.tp__legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.tp__legend li { display: flex; align-items: center; gap: 6px; }
.tp__dot { position: relative; flex: none; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); background: #fff; }
.tp__dot.is-answered { background: var(--green); border-color: var(--green); }
.tp__dot.is-marked { border-color: var(--purple); background: var(--purple); border-radius: 50%; }
.tp__dot.is-current { outline: 2px solid var(--blue); outline-offset: 1px; }
.tt__nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(23, 37, 84, .35); padding-bottom: env(safe-area-inset-bottom); }
.tt__navrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 68px; }
.tt__navmid { display: flex; gap: 6px; }
.tt__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 14px; font-weight: 500; }
.tt__chip .ic { width: 16px; height: 16px; }
.tt__chip:hover { border-color: #A9C5F3; }
.tt__chip:disabled { opacity: .45; cursor: default; }
.tt__chip[aria-pressed="true"] { background: var(--purple-soft); border-color: #DCC2FA; color: var(--purple-ink); }
.tt__chip[aria-pressed="true"] .ic { fill: currentColor; }
.tt__nav .btn:disabled { opacity: .45; cursor: default; }
.tt__toast { position: fixed; left: 50%; bottom: 84px; z-index: 50; max-width: min(520px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 14.5px; box-shadow: var(--shadow); transform: translateX(-50%); }
.tt__dialog .modal__body p + p { margin-top: 10px; }
.tt__dialog-note { color: var(--muted); font-size: 14px; }
.tt__dialog .modal__foot form { display: contents; }
.tt__overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(23, 37, 84, .55); }
.tt__overlay-box { display: grid; justify-items: center; gap: 8px; max-width: 360px; padding: 28px 24px; border-radius: 22px; background: #fff; text-align: center; }
.tt__overlay-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--rose-soft); color: var(--red); }
.tt__overlay-ic .ic { width: 28px; height: 28px; }
.tt__overlay-box h2 { font-size: 20px; font-weight: 600; }
.tt__overlay-box p { color: var(--muted); }
@media (max-width: 559.98px) {
    .tt__barrow { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
    .tt__title { order: 3; flex-basis: 100%; }
    .tt__exit { padding: 0 10px; }
    .tt__tools { margin-left: auto; }
    .tt__submit span { display: none; }
    .tt__chip span { display: none; }
    .tt__chip { width: 44px; justify-content: center; padding: 0; }
    .tq { padding: 14px; }
}
@media (min-width: 960px) {
    .tt__body { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; column-gap: 28px; }
    .tt__palette { position: sticky; top: 84px; inset: auto; z-index: 1; width: auto; max-height: calc(100vh - 180px); padding: 16px; border-radius: 20px; border: 1px solid var(--line); box-shadow: none; transform: none; visibility: visible; transition: none; }
    .tp__close, .tt__pal-btn { display: none; }
    .tq { padding: 26px 28px; }
}

/* Result */
.rs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 960px; }
.rs__hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; padding: 22px 18px; border-radius: 22px; background: linear-gradient(160deg, #F3F8FF, #fff 70%); border: 1px solid #CFE0FA; text-align: center; }
.rs__hero.is-fail { background: linear-gradient(160deg, #FFF6F8, #fff 70%); border-color: #F6D3DC; }
.rs__ring { --c: var(--green); display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #E6EDF8 0); }
.rs__hero.is-fail .rs__ring { --c: var(--rose); }
.rs__ring span { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: #fff; color: var(--navy); font-family: var(--display); font-size: 25px; font-weight: 600; }
.rs__main { display: grid; gap: 6px; justify-items: center; }
.rs__badge { padding: 3px 12px; border-radius: 999px; background: var(--green-soft); color: #0B7A55; font-size: 13.5px; font-weight: 600; }
.rs__hero.is-fail .rs__badge { background: var(--rose-soft); color: #B4234A; }
.rs__score { color: var(--muted); font-size: 16px; }
.rs__score strong { color: var(--navy); font-family: var(--display); font-size: 26px; font-weight: 600; }
.rs__line { color: var(--muted); font-size: 14.5px; }
.rs__xp { display: inline-flex; align-items: center; gap: 6px; color: var(--amber-ink); font-size: 14.5px; font-weight: 500; }
.rs__xp .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.rs__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rs__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rs__fact { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.rs__fact dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.rs__fact dt .ic { width: 15px; height: 15px; }
.rs__fact dd { margin-top: 2px; color: var(--navy); font-family: var(--display); font-size: 20px; font-weight: 600; }
.rs__fact--green dt .ic { color: var(--green); }
.rs__fact--rose dt .ic { color: var(--rose); }
.rs__fact--blue dt .ic { color: var(--blue); }
.rs__fact--purple dt .ic { color: var(--purple-ink); }
.rs__fact--amber dt .ic { color: var(--amber-ink); }
.rs__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rs__links .link { font-size: 14.5px; }
.rs__secs { display: grid; gap: 10px; }
.rs__sec { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.rs__sec-top { display: flex; justify-content: space-between; gap: 10px; color: var(--navy); }
.rs__sec-top strong { font-weight: 600; }
.rs__sec small { color: var(--muted); font-size: 13px; }
.rs__bar { height: 8px; border-radius: 99px; background: #E6EDF8; overflow: hidden; }
.rs__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.rv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rv__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rv__head .subhead { margin-bottom: 0; }
.rv--en [data-l="ta"], .rv--ta [data-l="en"] { display: none; }
.rv__filters { margin-bottom: 4px; }
.fchip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.fchip .ic { width: 16px; height: 16px; }
.rv__list { display: grid; gap: 12px; }
.rq { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); }
.rq--correct { border-left-color: var(--green); }
.rq--wrong { border-left-color: var(--rose); }
.rq__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rq__n { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; background: var(--surface); color: var(--navy); font-size: 14px; font-weight: 600; }
.rq__badge { padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.rq--correct .rq__badge { background: var(--green-soft); color: #0B7A55; }
.rq--wrong .rq__badge { background: var(--rose-soft); color: #B4234A; }
.rq__sec { color: var(--purple-ink); font-size: 13px; font-weight: 500; }
.rq__marks { color: var(--muted); font-size: 13px; font-weight: 600; }
.rq__flag { color: var(--purple-ink); }
.rq__flag .ic { width: 16px; height: 16px; fill: currentColor; }
.rq__save { margin-left: auto; }
.rq__src { color: var(--blue); font-size: 14px; font-weight: 600; }
.rq__text { color: var(--navy); font-size: 16.5px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.rq__opts { display: grid; gap: 8px; }
.rq__opt { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); color: #2D3A55; font-size: 15px; }
.rq__opt.is-correct { border-color: #9BDDC3; background: var(--green-soft); }
.rq__opt.is-correct .tq__key { background: var(--green); color: #fff; }
.rq__opt.is-wrong { border-color: #F3B9C8; background: var(--rose-soft); }
.rq__opt.is-wrong .tq__key { background: var(--rose); color: #fff; }
.rq__otext { flex: 1 1 180px; min-width: 0; padding-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.rq__tag { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12.5px; font-weight: 600; }
.rq__opt.is-correct .rq__tag { color: #0B7A55; }
.rq__opt.is-wrong .rq__tag { color: #B4234A; }
.rq__tag .ic { width: 14px; height: 14px; }
.rq__note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.rq__note .ic { width: 15px; height: 15px; }
.rq__exp { border-radius: 12px; background: var(--surface); }
.rq__exp summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; color: var(--navy); font-weight: 600; cursor: pointer; list-style: none; }
.rq__exp summary::-webkit-details-marker { display: none; }
.rq__exp summary .ic { width: 18px; height: 18px; transition: transform .15s; }
.rq__exp[open] summary .ic { transform: rotate(180deg); }
.rq__exp p { padding: 0 14px 12px; color: #2D3A55; font-size: 15px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.rv__none { color: var(--muted); }
.hist, .saved { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.hist__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hist__count { color: var(--muted); font-size: 14px; }
@media (min-width: 640px) {
    .rs__hero { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; padding: 26px; }
    .rs__main { justify-items: start; }
    .rs__actions { grid-column: 1 / -1; justify-content: flex-start; }
    .rs__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .rs__hero { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
    .rs__actions { grid-column: auto; flex-direction: column; align-items: stretch; }
    .rs__facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ───────────────────────── Account & sign-in (phase 5) ───────────────────────── */
.btn--danger { background: var(--red); color: #fff; box-shadow: 0 8px 18px -10px rgba(220, 38, 38, .7); }
.btn--danger:hover { background: #B91C1C; }
.btn--danger-ghost { background: #fff; border-color: #F3C4C4; color: var(--red); }
.btn--danger-ghost:hover { border-color: var(--red); background: #FEF4F4; }

/* Sign-in pages */
.auth { padding: 20px 0 56px; background: linear-gradient(180deg, #EEF5FF 0%, #fff 340px); }
.auth__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1040px; }
.auth__card { display: grid; gap: 18px; min-width: 0; padding: 22px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth__head { display: grid; gap: 6px; }
.auth__head h1 { font-size: clamp(1.45rem, 4.4vw, 1.9rem); font-weight: 600; }
.auth__head p { color: var(--muted); font-size: 15.5px; }
.auth__head p .num { white-space: nowrap; color: var(--navy); }
.auth__badge { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.auth__badge .ic { width: 24px; height: 24px; }
.auth__badge--purple { background: var(--purple-soft); color: var(--purple-ink); }
.auth__badge--amber { background: var(--amber-soft); color: var(--amber-ink); }
.auth__badge--green { background: var(--green-soft); color: #0B7A55; }
.auth__email { color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.auth__tabs a { display: grid; place-items: center; min-height: 40px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; }
.auth__tabs a[aria-current] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(23, 37, 84, .12); }
.auth__submit { width: 100%; }
.auth__fine { color: var(--muted); font-size: 13.5px; text-align: center; }
.auth__fine a, .del__muted a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.auth__alt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px dashed #C9D8EE; }
.auth__alt strong { display: block; margin-bottom: 2px; font-size: 15px; color: var(--navy); }
.auth__alt-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: #fff; color: var(--purple-ink); }
.auth__alt-ic .ic { width: 19px; height: 19px; }
.auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.auth__row form { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.auth__muted { color: var(--muted); font-size: 14.5px; }
.auth__resend:disabled { color: var(--muted); cursor: default; }
.auth__notes { display: grid; gap: 6px; color: var(--muted); font-size: 14.5px; }
.auth__notes li { display: flex; gap: 8px; align-items: flex-start; }
.auth__notes .ic { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--green); }
.auth__center { text-align: center; }
.auth__google { width: 100%; gap: 10px; }
.auth__google .ic { width: 20px; height: 20px; }
.auth__or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; }
.auth__facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.auth__facts > div { padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.auth__facts dt { color: var(--muted); font-size: 13px; }
.auth__facts dd { margin-top: 2px; font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--navy); }
.auth__facts dd.is-out, [data-countdown].is-out { color: var(--red); }
.auth__resend-box { display: grid; gap: 6px; justify-items: center; text-align: center; }
.auth__side { position: relative; display: grid; gap: 14px; align-content: start; min-width: 0; padding: 22px 20px; overflow: hidden; border-radius: 22px; background: linear-gradient(150deg, var(--navy) 0%, #1E3A8A 60%, #5B21B6 130%); color: #E6EEFF; }
.auth__side::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .06); }
.auth__side h2 { color: #fff; font-size: 22px; font-weight: 600; }
.auth__kicker { color: #A9C8FF; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.auth__perks { display: grid; gap: 12px; }
.auth__perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.auth__perks span { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .1); color: #fff; }
.auth__perks .ic { width: 19px; height: 19px; }
.auth__exams { margin-top: 4px; color: #A9C8FF; font-size: 13.5px; font-weight: 600; letter-spacing: .06em; }
.field__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.field__aside { color: var(--blue-dark); font-size: 14px; font-weight: 500; }
.phone-in { display: flex; align-items: stretch; }
.phone-in__cc { display: grid; place-items: center; padding: 0 12px; border: 1px solid #C9D8EE; border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface); color: var(--navy); font-weight: 600; }
.phone-in .input { min-width: 0; border-radius: 0 12px 12px 0; letter-spacing: .04em; }
.phone-in.is-invalid .phone-in__cc { border-color: var(--red); }
.otp-in { max-width: calc(var(--len, 4) * 2.1ch + 40px); min-height: 56px; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.pass-in { position: relative; }
.pass-in .input { padding-right: 48px; }
.pass-in__eye { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); transform: translateY(-50%); }
.pass-in__eye:hover, .pass-in__eye[aria-pressed="true"] { color: var(--blue); background: var(--blue-soft); }
.pass-in__eye .ic { width: 19px; height: 19px; }
.pass-meter { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.pass-meter__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 120px; }
.pass-meter__bar i { height: 5px; border-radius: 4px; background: #E3EBF6; }
.pass-meter[data-level="1"] i:nth-child(-n+1) { background: var(--red); }
.pass-meter[data-level="2"] i:nth-child(-n+2) { background: var(--amber); }
.pass-meter[data-level="3"] i:nth-child(-n+3) { background: #65A30D; }
.pass-meter[data-level="4"] i { background: var(--green); }
@media (min-width: 560px) {
    .auth__card { padding: 30px 32px; }
}
@media (min-width: 960px) {
    .auth { padding: 36px 0 72px; }
    .auth__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
    .auth__side { position: sticky; top: 96px; padding: 30px 28px; }
}

/* Delete account */
.del { display: grid; gap: 18px; }
.del__steps { display: flex; flex-wrap: wrap; gap: 8px; counter-reset: s; }
.del__steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500; }
.del__steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.del__steps li.is-current { background: var(--navy); color: #fff; }
.del__steps li.is-current span { background: #fff; color: var(--navy); border-color: #fff; }
.del__steps li.is-done span { background: var(--green); color: #fff; border-color: var(--green); }
.del__card { display: grid; gap: 16px; padding: 22px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.del__card h2 { font-size: 21px; font-weight: 600; }
.del__muted { color: var(--muted); font-size: 14.5px; }
.del__lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; background: #FFF8F8; border: 1px solid #F6DADA; }
.del__lists h3 { margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.del__lists ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; color: #5B3A3A; font-size: 14.5px; }
.del__done { display: grid; gap: 12px; justify-items: center; text-align: center; }
.del__done .alert { text-align: left; }
.del__date { font-family: var(--display); font-weight: 600; color: var(--navy); }
.del__resend { text-align: center; }
@media (min-width: 640px) { .del__card { padding: 28px 30px; } .del__lists { grid-template-columns: 1.4fr 1fr; } }

/* Notifications */
.notif { display: grid; gap: 16px; }
.notif__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.notif__list { display: grid; gap: 8px; }
.notif__day { margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.notif__day:first-child { margin-top: 0; }
.notif__item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.notif__item.is-unread { background: #F5F9FF; border-color: #C6DAFB; }
.notif__ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.notif__ic .ic { width: 20px; height: 20px; }
.notif__ic--purple { background: var(--purple-soft); color: var(--purple-ink); }
.notif__ic--green { background: var(--green-soft); color: #0B7A55; }
.notif__ic--amber { background: var(--amber-soft); color: var(--amber-ink); }
.notif__main { display: grid; gap: 4px; min-width: 0; flex: 1; }
.notif__title { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--navy); overflow-wrap: anywhere; }
.notif__title a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.notif__body { color: #3A4A63; font-size: 14.5px; overflow-wrap: anywhere; }
.notif__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13px; }
.notif__mark { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; }
.notif__mark span { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(18, 102, 241, .15); }
.notif__mark:hover { background: var(--blue-soft); }

/* Public learner profile */
.sp { padding: 20px 0 56px; background: linear-gradient(180deg, #EEF5FF 0%, #fff 300px); }
.sp > .wrap { display: grid; gap: 18px; max-width: 1080px; }
.sp__hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: center; padding: 22px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.sp__ava, .pf__ava { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; font-family: var(--display); font-size: 40px; font-weight: 600; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--blue-soft); }
.sp__ava img, .pf__ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sp__lvl { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #fff; border: 3px solid #fff; font-size: 14px; font-weight: 700; }
.sp__id { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.sp__id h1, .pf__id h1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: clamp(1.45rem, 4.2vw, 1.95rem); font-weight: 600; overflow-wrap: anywhere; }
.sp__handle, .pf__handle { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.sp__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 4px; color: #3A4A63; font-size: 14.5px; }
.sp__facts li { display: inline-flex; align-items: center; gap: 6px; }
.sp__facts .ic { width: 17px; height: 17px; color: var(--purple-ink); }
.sp__actions, .pf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sp__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sp__card, .sp__block { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.sp__card h2, .sp__block h2 { font-size: 16px; font-weight: 600; color: var(--muted); }
.sp__block h2 { color: var(--navy); font-size: 18px; }
.sp__big { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.1; color: var(--navy); }
.sp__big small { font-size: 16px; color: var(--muted); }
.sp__card .xp { margin-top: 2px; }
.sp__note { color: var(--muted); font-size: 14px; }
.sp__mini { display: grid; gap: 6px; margin-top: 4px; }
.sp__mini li { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--muted); }
.sp__mini strong { color: var(--navy); }
.is-up { color: #0B7A55 !important; }
.is-down { color: var(--red) !important; }
.sp__stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sp__stats > div { padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.sp__stats dt { color: var(--muted); font-size: 13px; }
.sp__stats dd { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--navy); }
.sp__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sp__ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sp__badge { display: grid; gap: 2px; justify-items: start; padding: 12px; border-radius: 14px; background: var(--blue-soft); }
.sp__badge span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 10px; background: #fff; color: var(--blue); }
.sp__badge .ic { width: 18px; height: 18px; }
.sp__badge strong { font-size: 14.5px; color: var(--navy); }
.sp__badge small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.sp__badge--green { background: var(--green-soft); } .sp__badge--green span { color: #0B7A55; }
.sp__badge--purple { background: var(--purple-soft); } .sp__badge--purple span { color: var(--purple-ink); }
.sp__badge--amber { background: var(--amber-soft); } .sp__badge--amber span { color: var(--amber-ink); }
.sp__badge--rose { background: var(--rose-soft); } .sp__badge--rose span { color: var(--rose); }
.sp__hidden { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; }
.sp__hidden .ic { width: 17px; height: 17px; }
.sp__recent { display: grid; gap: 6px; }
.sp__recent li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.sp__rtype { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #fff; color: var(--blue); }
.sp__rtype--battle { color: var(--purple-ink); }
.sp__rtype .ic { width: 18px; height: 18px; }
.sp__rmain { display: grid; min-width: 0; flex: 1; }
.sp__rmain strong { overflow: hidden; color: var(--navy); font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sp__rmain small { color: var(--muted); font-size: 13px; }
.sp__rscore { display: grid; justify-items: end; font-family: var(--display); font-weight: 600; color: var(--navy); }
.sp__rscore small { font-family: var(--body); font-size: 12px; font-weight: 600; }
.sp__rscore.is-win small { color: #0B7A55; } .sp__rscore.is-loss small { color: var(--red); } .sp__rscore.is-draw small { color: var(--muted); }
.sp__cta { display: grid; gap: 14px; padding: 22px 20px; border-radius: 22px; background: linear-gradient(135deg, var(--blue), #6D28D9); color: #E9F0FF; }
.sp__cta h2 { color: #fff; font-size: 21px; font-weight: 600; }
@media (min-width: 640px) {
    .sp__hero, .pf__hero { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left; }
    .sp__id, .pf__id { justify-items: start; }
    .sp__id h1, .pf__id h1 { justify-content: flex-start; }
    .sp__facts, .pf__chips { justify-content: flex-start; }
    .sp__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sp__cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 26px 28px; }
}
@media (max-width: 899.98px) and (min-width: 640px) {
    .sp__hero, .pf__hero { grid-template-columns: auto minmax(0, 1fr); }
    .sp__actions, .pf__actions { grid-column: 1 / -1; justify-content: flex-start; }
    .sp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp__grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) { .sp__cols { grid-template-columns: 1.3fr 1fr; } }

/* My profile */
.pf { padding: 20px 0 64px; background: linear-gradient(180deg, #EEF5FF 0%, #fff 300px); }
.pf > .wrap { display: grid; gap: 18px; max-width: 1120px; }
.pf__flash { display: grid; gap: 10px; }
.pf__flash:empty { display: none; }
.pf__del { flex-wrap: wrap; align-items: center; }
.pf__del > div { flex: 1 1 260px; }
.pf__hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: center; padding: 22px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.pf__ava { width: 96px; height: 96px; font-size: 36px; }
.pf__ava-btn { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; border: 3px solid #fff; }
.pf__ava-btn:hover { background: var(--blue); }
.pf__ava-btn .ic { width: 16px; height: 16px; }
.pf__id { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.pf__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.pf__chips .tag { font-size: 13px; }
.pf__chips .ic { width: 14px; height: 14px; }
.pf__nav { position: sticky; top: 72px; z-index: 5; display: flex; gap: 6px; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter); overflow-x: auto; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.pf__nav::-webkit-scrollbar { display: none; }
.pf__nav a { flex: none; padding: 7px 14px; border-radius: 999px; color: var(--navy); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.pf__nav a:hover { background: var(--surface); color: var(--blue-dark); }
.pf__sec { display: grid; gap: 14px; scroll-margin-top: 140px; }
.pf__sec > h2 { font-size: 22px; font-weight: 600; }
.pf__stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pf__stats .statcard { padding: 12px; gap: 10px; min-width: 0; }
.pf__stats .statcard__ic { width: 38px; height: 38px; }
.pf__xp { padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.pf__xp-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.pf__xp-top strong { font-family: var(--display); color: var(--purple-ink); font-size: 17px; }
.pf__xp-top .num { font-family: var(--display); font-weight: 600; color: var(--navy); }
.pf__xp .xp__bar { height: 10px; margin: 8px 0 6px; }
.pf__muted { color: var(--muted); font-size: 14px; }
.pf__links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pf__links .card { display: flex; align-items: center; gap: 10px; padding: 14px; font-weight: 600; font-size: 15px; }
.pf__links .ic { width: 20px; height: 20px; flex: none; color: var(--blue); }
.pf__two, .pf__three { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.pf__card { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 20px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.pf__card h3 { font-size: 18px; font-weight: 600; }
.pf__card > .btn { justify-self: start; }
.pf__card-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.pf__card-ic .ic { width: 21px; height: 21px; }
.pf__card-ic--amber { background: var(--amber-soft); color: var(--amber-ink); }
.pf__card-ic--green { background: var(--green-soft); color: #0B7A55; }
.pf__money { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--navy); line-height: 1.1; }
.pf__danger { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: #FFF8F8; border: 1px solid #F6DADA; }
.pf__danger h3 { font-size: 17px; font-weight: 600; color: #9B1C1C; }
.pf__danger p { color: #6B4A4A; font-size: 14.5px; }
.pf__danger .btn { justify-self: start; }
.pf__preview { display: grid; place-items: center; }
.pf__preview img, .pf__preview span { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.pf__preview span { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; font-family: var(--display); font-size: 44px; font-weight: 600; }
.pf__file { display: grid; gap: 8px; justify-items: center; text-align: center; cursor: pointer; }
.pf__file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pf__file input:focus-visible + .btn { outline: 3px solid var(--blue); outline-offset: 2px; }
.pf__remove { color: var(--red); }
.user-in { display: flex; align-items: stretch; }
.user-in > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid #C9D8EE; border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface); color: var(--muted); font-weight: 600; }
.user-in .input { min-width: 0; border-radius: 0 12px 12px 0; }
.user-in__live { min-height: 1.4em; font-size: 13.5px; font-weight: 500; }
.user-in__live.is-ok { color: #0B7A55; }
.user-in__live.is-bad { color: var(--red); }
.sw-list { display: grid; }
.sw-list li + li { border-top: 1px solid var(--line); }
.sw { display: flex; align-items: center; gap: 14px; padding: 12px 0; cursor: pointer; }
.sw__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.sw__text strong { font-size: 15px; font-weight: 600; color: var(--navy); }
.sw__text small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.sw input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sw__ui { position: relative; width: 46px; height: 28px; flex: none; border-radius: 999px; background: #C9D5E6; transition: background-color .15s; }
.sw__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.sw input:checked + .sw__ui { background: var(--blue); }
.sw input:checked + .sw__ui::after { transform: translateX(18px); }
.sw input:focus-visible + .sw__ui { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .sw__ui, .sw__ui::after { transition: none; } }

/* Progress report */
.rp { display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.rp__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.rp__head h3 { font-size: 19px; font-weight: 600; }
.rp__tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.rp__tiles > div { position: relative; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.rp__tiles dt { color: var(--muted); font-size: 13px; }
.rp__tiles dd { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--navy); }
.rp__chg { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rp__ready { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #F4EAFF, #EEF5FF); }
.rp__ready h4 { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--navy); }
.rp__ready p { font-size: 14.5px; color: #3A4A63; }
.rp__ring { --p: 0; position: relative; display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 50%; background: conic-gradient(var(--purple-ink) calc(var(--p) * 1%), #E2D6F5 0); }
.rp__ring > span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--navy); }
.rp__locked { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px; border-radius: 16px; background: var(--amber-soft); border: 1px solid #F8E1B4; }
.rp__locked > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--amber-ink); }
.rp__locked > div { flex: 1 1 220px; }
.rp__locked p { color: #7A4300; font-size: 14px; }
.rp__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rp__card { display: grid; gap: 10px; align-content: start; min-width: 0; margin: 0; padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.rp__card figcaption { font-family: var(--display); font-size: 15.5px; font-weight: 600; color: var(--navy); }
.rp__bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.rp__bars span { flex: 1; height: var(--h); min-width: 4px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--purple), var(--blue)); }
.rp__subs { display: grid; gap: 8px; }
.rp__subs li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 46px; align-items: center; gap: 10px; font-size: 14px; }
.rp__sname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3A4A63; }
.rp__sbar { height: 8px; border-radius: 99px; background: #E3EBF6; overflow: hidden; }
.rp__sbar span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.rp__sbar span.is-good { background: var(--green); }
.rp__sbar span.is-low { background: var(--rose); }
.rp__subs .num { text-align: right; font-weight: 600; color: var(--navy); }
.rp__topics { display: grid; gap: 12px; }
.rp__topics h5 { margin: 0 0 6px; }
.rp__topics ul { display: grid; gap: 6px; }
.rp__topics li { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.rp__topics a { color: var(--blue-dark); overflow-wrap: anywhere; }
.rp__topics .num { font-weight: 600; color: var(--navy); }
.rp__heat { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; max-width: 420px; }
.rp__heat i, .rp__legend i { display: block; aspect-ratio: 1; border-radius: 3px; background: #E8EEF7; }
.rp__heat i.l1, .rp__legend i.l1 { background: #C6DAFB; }
.rp__heat i.l2, .rp__legend i.l2 { background: #8DB4F7; }
.rp__heat i.l3, .rp__legend i.l3 { background: #4A89F3; }
.rp__heat i.l4, .rp__legend i.l4 { background: var(--blue-dark); }
.rp__legend { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.rp__legend i { width: 12px; }
.rp__legend span:first-child { margin-right: 4px; } .rp__legend span:last-child { margin-left: 4px; }
.rp__mocks { display: grid; gap: 6px; }
.rp__mocks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.rp__mocks strong { display: block; font-size: 14.5px; color: var(--navy); overflow-wrap: anywhere; }
.rp__mocks small { color: var(--muted); font-size: 12.5px; }
.rp__mocks .num { font-family: var(--display); font-weight: 600; color: var(--navy); }
@media (min-width: 640px) {
    .pf__hero { padding: 24px 26px; }
    .pf__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pf__links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rp { padding: 22px 24px; }
    .rp__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf__card { padding: 22px 24px; }
    .pf__danger { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 20px 24px; }
}
@media (min-width: 900px) {
    .pf__two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf__three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rp__tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
    .pf__hero { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left; }
    .pf__id { justify-items: start; }
    .pf__chips { justify-content: flex-start; }
}
@media (max-width: 899.98px) and (min-width: 640px) {
    .pf__hero { grid-template-columns: auto minmax(0, 1fr); }
    .pf__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ───────────────────────── Battle, leaderboard, refer & earn (phase 6) ───────────────────────── */
.bmuted { color: var(--muted); font-size: 14.5px; }
.crumbs--dark a { color: #BFD3FF; }
.crumbs--dark [aria-current], .crumbs--dark ol { color: #E6EEFF; }
.crumbs--dark li + li::before { border-color: #8EA6D8; }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1DA851; }
.bava { display: inline-grid; place-items: center; flex: none; width: var(--s, 40px); height: var(--s, 40px); border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; font-family: var(--display); font-size: calc(var(--s, 40px) * .42); font-weight: 600; line-height: 1; }
.bava img { width: 100%; height: 100%; object-fit: cover; }
.bcard { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.bcard h2 { font-size: 18px; font-weight: 600; }
.bsec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.bsec__title { font-size: 20px; font-weight: 600; }

/* Lobby */
.bhero { position: relative; padding: 20px 0 30px; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #5B21B6 0%, transparent 55%), linear-gradient(150deg, #0B1640 0%, var(--navy) 55%, #1E3A8A 100%); color: #DCE6FF; }
.bhero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .05); }
.bhero .wrap { position: relative; z-index: 1; }
.bhero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
.bhero h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 700; margin: 8px 0 6px; }
.bhero__text { max-width: 56ch; margin-bottom: 14px; color: #C9D6F5; font-size: 16px; }
.bhero__live { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; font-weight: 600; }
.bhero__pulse { width: 9px; height: 9px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: bpulse 1.8s infinite; }
@keyframes bpulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.bhero__me { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.bhero__lvl { --p: 0; display: grid; place-items: center; width: 88px; height: 88px; flex: none; border-radius: 50%; background: conic-gradient(#FBBF24 calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); }
.bhero__lvl > span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #13235A; text-align: center; line-height: 1.1; }
.bhero__lvl small { color: #A9BCEB; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.bhero__lvl strong { color: #fff; font-family: var(--display); font-size: 26px; }
.bhero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; flex: 1; min-width: 0; }
.bhero__stats dt { color: #A9BCEB; font-size: 12.5px; }
.bhero__stats dd { color: #fff; font-family: var(--display); font-size: 19px; font-weight: 600; }
.bhero__stats dd small { color: #A9BCEB; font-size: 13px; }
.blobby { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.blobby__main, .blobby__side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.bexams { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.bexam { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--navy); transition: border-color .15s, box-shadow .15s, transform .15s; }
.bexam:hover { border-color: #A9C5F3; box-shadow: var(--shadow); transform: translateY(-1px); }
.bexam__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: linear-gradient(135deg, var(--purple-soft), var(--blue-soft)); color: var(--purple-ink); }
.bexam__ic .ic { width: 22px; height: 22px; }
.bexam__main { display: grid; flex: 1; min-width: 0; }
.bexam__main strong { font-family: var(--display); font-size: 16.5px; font-weight: 600; }
.bexam__main small { color: var(--muted); font-size: 13.5px; }
.bexam__live { padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: #0B7A55; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.bexam__go { width: 18px; height: 18px; color: var(--muted); }
.bjoin__row { display: flex; gap: 8px; }
.bjoin__in { min-width: 0; font-family: var(--display); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.bboard { display: grid; gap: 4px; }
.bboard li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.bboard li.is-me { background: var(--blue-soft); }
.bboard__rank { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--surface); color: var(--navy); font-size: 13px; font-weight: 700; }
.bboard__rank.rank-1, .xlb__rank.rank-1 { background: #FBBF24; color: #fff; }
.bboard__rank.rank-2, .xlb__rank.rank-2 { background: #94A3B8; color: #fff; }
.bboard__rank.rank-3, .xlb__rank.rank-3 { background: #D97706; color: #fff; }
.bboard__name { flex: 1; min-width: 0; overflow: hidden; color: var(--navy); font-size: 14.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.bboard__name a:hover { color: var(--blue); }
.bboard__xp { color: var(--navy); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.bboard__me { padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.brules ul { display: grid; gap: 8px; }
.brules li { display: flex; gap: 10px; align-items: flex-start; color: #3A4A63; font-size: 14.5px; }
.brules .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--purple-ink); }
@media (min-width: 640px) {
    .bhero { padding: 26px 0 40px; }
    .bexams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bhero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .bhero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .blobby { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
}

/* Leaderboards */
.xlb { display: grid; gap: 14px; padding-bottom: 72px; }
.xlb__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.xlb__reset { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.xlb__reset .ic { width: 16px; height: 16px; }
.xlb__filter .select { min-width: 200px; }
.xlb__filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.xlb__active { color: var(--muted); font-size: 14px; }
.xlb__podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; padding: 12px 0 4px; }
.xlb__pod { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 6px 12px; border-radius: 18px 18px 12px 12px; background: #fff; border: 1px solid var(--line); text-align: center; }
.xlb__pod--1 { padding-top: 22px; background: linear-gradient(180deg, #FFF7E0, #fff); border-color: #F3DFA8; }
.xlb__pod strong { max-width: 100%; overflow: hidden; color: var(--navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.xlb__pod > .num { color: var(--purple-ink); font-size: 13px; font-weight: 600; }
.xlb__pod.is-me { border-color: var(--blue); }
.xlb__medal { position: absolute; top: -12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #94A3B8; color: #fff; font-size: 13px; font-weight: 700; border: 2px solid #fff; }
.xlb__pod--1 .xlb__medal { background: #FBBF24; }
.xlb__pod--3 .xlb__medal { background: #D97706; }
.xlb__list { display: grid; gap: 6px; }
.xlb__row, .xlb__me { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.xlb__row.is-me { background: var(--blue-soft); border-color: #C6DAFB; }
.xlb__row.is-top { background: linear-gradient(135deg, #FFFBEF, #fff); border-color: #F3E2B8; }
.xlb__rank { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; flex: none; border-radius: 999px; background: var(--surface); color: var(--navy); font-size: 13px; font-weight: 700; }
.xlb__main { display: grid; flex: 1; min-width: 0; }
.xlb__main strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow: hidden; color: var(--navy); font-size: 15px; font-weight: 600; }
.xlb__main strong a:hover { color: var(--blue); }
.xlb__main small { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.xlb__trend { font-size: 12.5px; font-weight: 700; }
.xlb__xp { display: grid; justify-items: end; color: var(--navy); font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.1; }
.xlb__xp small { color: var(--muted); font-size: 11px; font-weight: 500; }
.xlb__pager { display: flex; justify-content: space-between; gap: 10px; }
.xlb__pager:empty { display: none; }
.xlb__me { border-color: var(--navy); }
.xlb__me--sticky { position: sticky; bottom: 12px; z-index: 4; box-shadow: 0 16px 40px -16px rgba(23, 37, 84, .45); }
.xlb__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--blue-soft); }
@media (min-width: 640px) {
    .xlb__filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; }
    .xlb__podium { gap: 14px; }
}

/* Refer & earn */
.rf-hero { padding: 20px 0 32px; background: radial-gradient(100% 140% at 100% 0%, #6D28D9 0%, transparent 55%), linear-gradient(150deg, #0B1640, var(--navy) 60%, #1E3A8A); color: #DCE6FF; }
.rf-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
.rf-hero h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 700; margin: 6px 0 8px; }
.rf-hero h1 .hl { background: linear-gradient(95deg, #FDE68A, #FBBF24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rf-hero__kicker { color: #A9C8FF; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rf-hero__text { max-width: 56ch; color: #C9D6F5; font-size: 16px; }
.rf-code { display: grid; gap: 10px; justify-items: start; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.rf-code > p { color: #A9C8FF; font-size: 13.5px; font-weight: 600; }
.rf-code__value { padding: 6px 16px; border-radius: 12px; background: #fff; color: var(--navy); font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: .14em; }
.rf-code__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-code__link { max-width: 100%; color: #C9D6F5; font-size: 13px; overflow-wrap: anywhere; }
.rf-code__login { color: #BFD3FF; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.rf { display: grid; gap: 20px; }
.rf__flash { display: grid; gap: 10px; }
.rf__flash:empty { display: none; }
.rf__steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.rf__steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.rf__steps span { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; font-weight: 700; }
.rf__steps strong { color: var(--navy); font-size: 15.5px; }
.rf__steps small { color: var(--muted); font-size: 13.5px; }
.rf__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rf__stats > div { padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.rf__stats dt { color: var(--muted); font-size: 13px; }
.rf__stats dd { color: var(--navy); font-family: var(--display); font-size: 22px; font-weight: 600; }
.rf__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.rf__main, .rf__side { display: grid; gap: 14px; min-width: 0; }
.rf-wallet__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rf-wallet__nums > div { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.rf-wallet__nums small { color: var(--muted); font-size: 12.5px; }
.rf-wallet__nums strong { color: #0B7A55; font-family: var(--display); font-size: 24px; }
.rf-wallet__nums span { color: var(--navy); font-family: var(--display); font-size: 18px; font-weight: 600; }
.rf-wd { padding-top: 12px; border-top: 1px solid var(--line); }
.rf-wd h3 { font-size: 16px; font-weight: 600; }
.rf-wd__method { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; border: 0; }
.rf-wd__method legend { width: 100%; margin-bottom: 6px; }
.rf-list, .rf-tx { display: grid; gap: 6px; }
.rf-list li, .rf-tx li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); }
.rf-list__main, .rf-tx__main { display: grid; flex: 1; min-width: 0; }
.rf-list__main strong, .rf-tx__main strong { overflow: hidden; color: var(--navy); font-size: 14.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rf-list__main small, .rf-tx__main small { color: var(--muted); font-size: 12.5px; }
.rf-tx__amt { display: grid; justify-items: end; gap: 2px; color: var(--navy); font-weight: 600; font-size: 14.5px; }
.rf-sub { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.rf__faq { display: grid; gap: 12px; }
.rf__faq h2 { font-size: 20px; font-weight: 600; }
@media (min-width: 640px) {
    .rf__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rf__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rf-wallet__nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rf-hero { padding: 26px 0 42px; }
}
@media (min-width: 960px) {
    .rf-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .rf__cols { grid-template-columns: minmax(0, 1fr) 360px; }
}
.xlb__trend.is-up { color: var(--green); }
.xlb__trend.is-down { color: var(--rose); }
.rf-tx__amt.is-up { color: #0B7A55; }
.rf-tx__amt.is-down { color: var(--rose); }
.bexam__main .bexam__live { justify-self: start; margin-top: 4px; }

/* Battle in the app (phase 6, app-only decision 20 Oct) */
.btn--glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn--glass:hover { background: rgba(255, 255, 255, .18); }
.bapp-hero { padding-bottom: 36px; }
.bapp-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bapp-hero__tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(251, 191, 36, .16); border: 1px solid rgba(251, 191, 36, .4); color: #FDE68A; font-size: 13.5px; font-weight: 600; }
.bapp-hero__tag .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.bapp-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.bapp-hero__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; color: #C9D6F5; font-size: 14px; }
.bapp-hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.bapp-hero__facts .ic { width: 15px; height: 15px; color: #34D399; }
.bapp-phone { position: relative; justify-self: center; width: min(300px, 100%); padding: 12px; border-radius: 36px; background: #0A1233; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 0 0 4px #1B2757; }
.bapp-phone__badge { position: absolute; top: -26px; right: -14px; width: 84px; height: 84px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); transform: rotate(8deg); }
.bapp-phone__screen { display: grid; gap: 10px; padding: 16px 14px 18px; border-radius: 26px; background: radial-gradient(90% 60% at 50% 0%, #EEF2FF, #F7F9FF 60%, #fff); color: var(--navy); }
.bapp-phone__round { color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.bapp-phone__vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.bapp-phone__p { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.bapp-phone__p small { color: var(--muted); font-size: 11.5px; }
.bapp-phone__p b { font-family: var(--display); font-size: 20px; line-height: 1; }
.bapp-phone__clock { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(var(--blue) 70%, #E3EBF6 0); }
.bapp-phone__clock span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; font-family: var(--display); font-size: 16px; font-weight: 700; }
.bapp-phone__q { padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-family: var(--display); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.bapp-phone__opts { display: grid; gap: 6px; }
.bapp-phone__opts li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 11px; background: #fff; border: 1.5px solid var(--line); font-size: 13.5px; }
.bapp-phone__opts li span { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 11.5px; font-weight: 700; }
.bapp-phone__opts li.is-right { border-color: var(--green); background: var(--green-soft); }
.bapp-phone__opts li.is-right span { background: var(--green); color: #fff; }
.bapp-phone__toast { justify-self: center; padding: 5px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 600; }
.bapp { display: grid; gap: 28px; }
.bapp-me { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px; border-radius: 22px; background: linear-gradient(140deg, #0B1640, var(--navy) 60%, #1E3A8A); color: #DCE6FF; }
.bapp-me h2 { color: #fff; font-size: 19px; font-weight: 600; }
.bapp-me__main { display: grid; gap: 8px; min-width: 0; }
.bapp-me__main > p { color: #C9D6F5; font-size: 14.5px; }
.bapp-me__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.bapp-note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--blue-soft); color: #123A8C; font-size: 14.5px; }
.bapp-note .ic { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.bapp-note strong { color: var(--navy); }
.bapp-steps { margin-top: 12px; }
.bapp-feats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.bapp-feat { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.bapp-feat__ic { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--purple-soft), var(--blue-soft)); color: var(--purple-ink); }
.bapp-feat__ic .ic { width: 21px; height: 21px; }
.bapp-feat strong { color: var(--navy); font-family: var(--display); font-size: 16px; font-weight: 600; }
.bapp-feat > span:last-child { color: var(--muted); font-size: 14px; }
.bexam--static:hover { border-color: var(--line); box-shadow: none; transform: none; }
.bjoin__note { font-size: 13px; }
.bapp-strip { margin-top: 6px; }
.bapp-strip p { flex: 1 1 260px; color: #123A8C; }
.bapp-strip p strong { color: var(--navy); }
.bapp-strip__acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) {
    .bapp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bapp-me { grid-template-columns: auto minmax(0, 1fr) auto; padding: 22px 24px; }
    .bapp-me__cta { grid-column: auto; flex-direction: column; }
}
@media (min-width: 960px) {
    .bapp-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bapp-hero .bhero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (max-width: 959.98px) {
    .bapp-phone { margin-top: 18px; }
}
@media (max-width: 399.98px) { .bapp-phone__badge { right: 0; width: 70px; height: 70px; } }

/* ───────────────────────── Tamil Pass pricing & checkout (phase 7) ───────────────────────── */
.ps-hero { position: relative; padding: 20px 0 36px; overflow: hidden; background: radial-gradient(110% 140% at 100% 0%, #7C3AED 0%, transparent 55%), linear-gradient(150deg, #0B1640 0%, var(--navy) 55%, #1E3A8A 100%); color: #DCE6FF; }
.ps-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.ps-hero__main { padding-top: 8px; }
.ps-hero__eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(251, 191, 36, .16); border: 1px solid rgba(251, 191, 36, .4); color: #FDE68A; font-size: 13.5px; font-weight: 600; }
.ps-hero__eyebrow .ic { width: 15px; height: 15px; }
.ps-hero h1 { margin: 12px 0 8px; color: #fff; font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 700; line-height: 1.2; }
.ps-hero__text { max-width: 54ch; color: #C9D6F5; font-size: 16px; }
.ps-ticks { display: grid; gap: 8px; margin-top: 16px; }
.ps-ticks li { display: flex; align-items: center; gap: 10px; color: #E6EEFF; font-size: 15px; }
.ps-ticks .ic { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: rgba(52, 211, 153, .2); color: #34D399; }
.ps-buy { display: grid; gap: 12px; padding: 20px; border-radius: 22px; background: #fff; color: var(--navy); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.ps-buy__member { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); color: #0B7A55; font-size: 14px; font-weight: 600; }
.ps-buy__member .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ps-buy__empty h2 { font-size: 19px; font-weight: 600; }
.ps-form { display: grid; gap: 12px; }
.ps-label { margin-bottom: 6px; padding: 0; color: var(--navy); font-size: 14px; font-weight: 600; }
.ps-plans, .ps-modes { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ps-plan, .ps-mode { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .12s, background-color .12s; }
.ps-plan input, .ps-mode input { position: absolute; opacity: 0; pointer-events: none; }
.ps-plan:has(input:checked), .ps-mode:has(input:checked) { border-color: var(--blue); background: #F5F9FF; }
.ps-plan:has(input:focus-visible), .ps-mode:has(input:focus-visible) { outline: 3px solid rgba(18, 102, 241, .35); outline-offset: 2px; }
.ps-mode:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.ps-plan__main, .ps-mode__main { display: grid; flex: 1; min-width: 0; }
.ps-plan__main strong, .ps-mode__main strong { font-size: 15.5px; font-weight: 600; }
.ps-plan__main small, .ps-mode__main small { color: var(--muted); font-size: 13.5px; }
.ps-plan__price { font-family: var(--display); font-size: 20px; font-weight: 700; }
.ps-mode__switch { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #B8C7DD; }
.ps-mode:has(input:checked) .ps-mode__switch { border-color: var(--blue); }
.ps-mode:has(input:checked) .ps-mode__switch::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); }
.ps-price { display: grid; gap: 4px; }
.ps-price__label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ps-price__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.ps-price__row strong { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; }
.ps-price__row span { color: var(--muted); font-size: 16px; font-weight: 500; }
.ps-price__was { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.ps-friend { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--purple-soft); color: var(--purple-ink); font-size: 14px; font-weight: 600; }
.ps-friend .ic { width: 17px; height: 17px; flex: none; }
.ps-terms { padding: 10px 12px; border-radius: 12px; background: var(--surface); color: #3A4A63; font-size: 13.5px; line-height: 1.55; }
.ps-note { color: var(--muted); font-size: 13.5px; }
.ps-form__btn { width: 100%; justify-content: center; }
.btn.is-busy { opacity: .85; cursor: progress; }
.ps-error { padding: 10px 12px; border-radius: 12px; background: var(--rose-soft); color: var(--rose); font-size: 14px; font-weight: 500; }
.ps-error[hidden] { display: none; }
.ps-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; text-align: center; }
.ps-secure .ic { width: 14px; height: 14px; color: #0B7A55; }
.ps-small { color: var(--muted); font-size: 12.5px; text-align: center; }
.ps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.ps__flash:empty { display: none; }
.ps-desc { margin: 8px 0 0; max-width: 72ch; }
.ps-mine__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.ps-card { gap: 8px; }
.ps-card__label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ps-card__big { color: var(--navy); font-family: var(--display); font-size: 19px; font-weight: 600; }
.ps-bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.ps-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #34D399); }
.ps-off summary { list-style: none; width: max-content; }
.ps-off summary::-webkit-details-marker { display: none; }
.ps-off[open] summary { display: none; }
.ps-off__box { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--rose-soft); color: #7A1D35; font-size: 14px; }
.ps-off__box strong { color: var(--rose); }
.ps-table-wrap { margin-top: 12px; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ps-table th, .ps-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.ps-table thead th { background: var(--surface); color: var(--navy); font-size: 13.5px; font-weight: 700; }
.ps-table tbody th { color: #3A4A63; font-weight: 500; text-align: left; }
.ps-table tr:last-child th, .ps-table tr:last-child td { border-bottom: 0; }
.ps-table .is-pass { background: #F7F3FF; color: var(--purple-ink); font-weight: 600; }
.ps-table thead .is-pass { background: var(--purple-soft); }
.ps-yes { width: 20px; height: 20px; color: #0B7A55; }
.ps-no { color: #A3B1C6; }
.ps-st__card { display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: 28px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.ps-st__card h1 { font-size: clamp(1.4rem, 4.6vw, 1.9rem); font-weight: 700; }
.ps-st__card > p { color: #3A4A63; max-width: 48ch; }
.ps-st__note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); color: #123A8C; font-size: 14px; text-align: left; }
.ps-st__note .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ps-st__note[hidden] { display: none; }
.ps-st__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ps-st__spin .ic { animation: psspin 1.4s linear infinite; }
@keyframes psspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ps-st__spin .ic { animation: none; } }
@media (min-width: 640px) {
    .ps-hero { padding: 26px 0 48px; }
    .ps-buy { padding: 24px; }
    .ps-mine__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-card--list { grid-column: 1 / -1; }
    .ps-st__card { padding: 36px 32px; }
}
@media (min-width: 960px) {
    .ps-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px); gap: 40px; }
    .ps-hero__main { padding-top: 28px; }
    .ps-mine__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ps-card--list { grid-column: auto; }
}
@media (max-width: 479.98px) {
    .ps-table { font-size: 13.5px; }
    .ps-table th, .ps-table td { padding: 10px 8px; }
    .ps-table thead th { font-size: 12.5px; }
}

/* ───────────────────────── Info, legal & open-in-app (phase 8) ───────────────────────── */
.lg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.lg__tocbox { border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.lg__tocbox summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; color: var(--navy); font-weight: 600; cursor: pointer; list-style: none; }
.lg__tocbox summary::-webkit-details-marker { display: none; }
.lg__tocbox summary .ic { width: 18px; height: 18px; transition: transform .15s; }
.lg__tocbox[open] summary .ic { transform: rotate(180deg); }
.lg__tocbox ol { display: grid; gap: 2px; padding: 0 8px 10px; }
.lg__tocbox a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; color: #3A4A63; font-size: 14px; line-height: 1.4; }
.lg__tocbox a:hover { background: var(--surface); color: var(--blue); }
.lg__tocbox a .num { min-width: 18px; color: var(--muted); font-weight: 600; }
.lg__body { display: grid; gap: 4px; min-width: 0; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.lg__updated { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.lg__updated .ic { width: 16px; height: 16px; }
.lg__sec { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.lg__sec:first-of-type { border-top: 0; padding-top: 4px; }
.lg__sec h2 { color: var(--navy); font-size: clamp(1.15rem, 3.4vw, 1.35rem); font-weight: 600; line-height: 1.35; }
.lg__sec h2 .num { color: var(--blue); }
.lg__sec p, .lg__sec li { color: #3A4A63; font-size: 15.5px; line-height: 1.7; overflow-wrap: anywhere; }
.lg__sec ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.lg__sec li::marker { color: #9AB0CF; }
.lg__sec strong { color: var(--navy); }
.lg__note { padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: #0B5E43 !important; }
.lg__help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(140deg, #0B1640, var(--navy) 60%, #1E3A8A); color: #DCE6FF; }
.lg__help strong { color: #fff; font-size: 17px; }
.lg__help p { color: #C9D6F5; font-size: 14.5px; }
.lg__more { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; font-size: 14.5px; }
@media (min-width: 960px) {
    .lg { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
    .lg__toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
    .lg__tocbox summary .ic { display: none; }
    .lg__tocbox summary { pointer-events: none; }
    .lg__body { padding: 32px 36px; }
}
.ct { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.ct__main, .ct__side { display: grid; gap: 14px; min-width: 0; }
.ct__form h2, .ct__card h2 { font-size: 18px; font-weight: 600; }
.ct__flash:empty { display: none; }
.ct__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ct__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct__card { gap: 8px; }
.ct__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.ct__ic .ic { width: 22px; height: 22px; }
.ct__mail { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.ct__tips { display: grid; gap: 8px; }
.ct__tips li { display: flex; gap: 8px; color: #3A4A63; font-size: 14px; line-height: 1.5; }
.ct__tips .ic { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #0B7A55; }
.ct__links { display: grid; gap: 2px; }
.ct__links a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; color: var(--navy); font-size: 14.5px; font-weight: 500; }
.ct__links a:hover { background: var(--surface); color: var(--blue); }
.ct__links .ic { width: 18px; height: 18px; color: var(--purple-ink); }
.ct__social { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) { .ct__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ct { grid-template-columns: minmax(0, 1fr) 340px; } }
.ab-hero { padding: 20px 0 40px; background: radial-gradient(100% 140% at 100% 0%, #0E9F6E 0%, transparent 50%), linear-gradient(150deg, #0B1640 0%, var(--navy) 55%, #1E3A8A 100%); color: #DCE6FF; }
.ab-hero__body { max-width: 760px; padding-top: 10px; }
.ab-hero h1 { margin: 12px 0 8px; color: #fff; font-size: clamp(1.8rem, 5.4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
.ab-hero__text { color: #C9D6F5; font-size: 16.5px; max-width: 60ch; }
.ab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.ab-story { display: grid; gap: 10px; max-width: 78ch; }
.ab-story p { color: #3A4A63; font-size: 16px; line-height: 1.75; }
.ab-link { height: 100%; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ab-link:hover { border-color: #A9C5F3; box-shadow: var(--shadow); transform: translateY(-1px); }
.ab-values { margin-top: 12px; }
@media (min-width: 960px) { .ab-values { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.op__card { display: grid; justify-items: center; gap: 10px; max-width: 460px; margin: 8px auto 0; padding: 30px 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.op__logo { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 24px -12px rgba(18, 102, 241, .6); }
.op__kind { padding: 4px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.op__card h1 { color: var(--navy); font-size: clamp(1.3rem, 4.6vw, 1.7rem); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.op__text { color: #3A4A63; max-width: 40ch; }
.op__code { display: grid; gap: 2px; padding: 10px 20px; border-radius: 14px; border: 2px dashed #A9C5F3; }
.op__code small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.op__code strong { color: var(--navy); font-family: var(--display); font-size: 26px; letter-spacing: .14em; }
.op__open { width: 100%; justify-content: center; margin-top: 6px; }
.op__or { color: var(--muted); font-size: 13.5px; }
.op__store { width: 100%; justify-content: center; }
.op__web { font-weight: 600; }

/* ── Exam guide (SEO phase 10) ── */
.guide { display: grid; gap: 26px; min-width: 0; }
.guide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.guide__meta .ic { width: 16px; height: 16px; color: var(--blue); }
.guide .subhead { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.facts > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.facts dt { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.facts dd { margin-top: 3px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.guide__toc { padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.guide__toc h2 { margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.guide__toc ol { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.guide__toc a { color: var(--blue); font-size: 14.5px; font-weight: 500; }
.guide__toc a:hover { text-decoration: underline; }
.guide__sec { display: grid; gap: 12px; scroll-margin-top: 92px; min-width: 0; }
.guide__intro p + p, .guide__sec .prose p + p { margin-top: 10px; }
.prose h3 { margin: 16px 0 6px; color: var(--ink); font-size: 16.5px; font-weight: 600; }
.prose h4 { margin: 12px 0 4px; color: var(--ink); font-size: 15.5px; font-weight: 600; }
.prose li + li { margin-top: 4px; }
.guide__table .table tbody th { color: var(--ink); font-weight: 600; }
.guide__table .table td, .guide__table .table th { min-width: 110px; }
.guide__faq .faq__a { padding: 0 18px 18px; color: var(--muted); }
.guide__links ul { display: grid; gap: 8px; margin: 12px 0 6px; padding: 0; list-style: none; }
.guide__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; }
.guide__links .ic { width: 15px; height: 15px; }
.tline__note { margin-top: 8px; color: var(--muted); font-size: 13px; }
.cal__was { color: var(--muted); font-size: 12px; }
