/* Khub.info — site styles (rebuilt Dec 2026) */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1b1a2e;
  --ink-2: #3a3852;
  --muted: #64627a;
  --line: #e6e3da;
  --brand: #4338ca;
  --brand-d: #312e81;
  --brand-dd: #1e1b4b;
  --brand-l: #eef0ff;
  --saffron: #f59e0b;
  --saffron-l: #fff4dc;
  --ok: #047857;
  --ok-l: #e3f7ee;
  --bad: #c2261d;
  --bad-l: #fdeceb;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(27, 26, 46, .05), 0 4px 16px rgba(27, 26, 46, .06);
  --shadow-h: 0 2px 4px rgba(27, 26, 46, .06), 0 14px 32px rgba(49, 46, 129, .14);
  --font: "Plus Jakarta Sans", "Noto Sans Tamil", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-read: 1.0625rem;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
.lang-ta { --fs-read: 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-d); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
.lang-ta h1, .lang-ta h2 { letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.2em; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(67, 56, 202, .6); }
.btn-primary:hover { background: var(--brand-d); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: .85em 1.5em; font-size: 1rem; }
.btn-sm { padding: .5em .95em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn small { display: block; font-weight: 500; font-size: .75rem; opacity: .8; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; padding: .1em .55em; border-radius: 999px; background: var(--saffron-l); color: #92400e; font-size: .72rem; font-weight: 700; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); }

/* Sale bar */
.salebar { background: var(--brand-dd); color: #e0e7ff; font-size: .84rem; }
.salebar-in { display: flex; align-items: center; gap: .6rem; min-height: 36px; padding: .35rem 0; flex-wrap: wrap; }
.salebar a { color: #fde68a; font-weight: 650; text-decoration: none; white-space: nowrap; }
.salebar a:hover { color: #fff; }
.salebar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(245, 158, 11, .25); flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.brand-name span { color: var(--brand); font-weight: 700; }
.brand-tag { font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: .5em .75em; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.lang-ta .main-nav ul a, .lang-hi .main-nav ul a { font-size: .86rem; }
.main-nav ul a:hover { background: var(--brand-l); color: var(--brand-d); }
.main-nav ul a.active { background: var(--brand-l); color: var(--brand); }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: #f0eee8; border: 1px solid var(--line); }
.lang-switch a { padding: .3em .7em; border-radius: 999px; font-size: .8rem; font-weight: 650; color: var(--muted); text-decoration: none; white-space: nowrap; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: calc(var(--header-h) + 1px) 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .25); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .75rem; display: none; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .nav-open .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: .75em .9em; font-size: 1rem !important; border-radius: 12px; }
  .lang-switch { align-self: flex-start; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 420px at 85% -10%, rgba(99, 102, 241, .22), transparent 60%),
  radial-gradient(700px 380px at -10% 110%, rgba(245, 158, 11, .16), transparent 60%),
  linear-gradient(180deg, #fdfcf9, var(--bg)); padding: clamp(2.5rem, 2rem + 4vw, 5rem) 0 2rem; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-l); padding: .4em .9em; border-radius: 999px; margin-bottom: 1.1rem; }
.lang-ta .kicker, .lang-hi .kicker { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); line-height: 1.08; margin-bottom: .35em; background: linear-gradient(100deg, var(--brand-dd) 10%, var(--brand) 60%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang-ta .hero h1 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.6rem); line-height: 1.3; }
.lang-hi .hero h1 { line-height: 1.25; }
.hero-tamil { font-size: 1.1rem; font-weight: 600; color: #b45309; margin-bottom: 1rem; }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--ink-2); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-art { position: relative; height: 380px; }
.hero-card { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(30, 27, 75, .45); border: 4px solid #fff; }
.hero-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-card.c1 { width: 62%; aspect-ratio: 16/10; top: 0; right: 0; transform: rotate(3deg); }
.hero-card.c2 { width: 44%; aspect-ratio: 16/10; top: 60%; left: 2%; transform: rotate(-5deg); }
.hero-card.c3 { width: 40%; aspect-ratio: 16/10; bottom: 0; right: 6%; transform: rotate(2deg); }
.hero-quiz { position: absolute; left: 0; top: 4%; width: 52%; background: #fff; border-radius: 18px; padding: 1rem 1.1rem; box-shadow: 0 24px 50px -20px rgba(30, 27, 75, .4); border: 1px solid var(--line); font-size: .85rem; animation: float 6s ease-in-out infinite; }
.hq-q { font-weight: 700; margin-bottom: .6rem; line-height: 1.35; }
.hq-o { margin: 0 0 .35rem; padding: .4rem .6rem; border-radius: 9px; background: #f5f4ef; color: var(--ink-2); }
.hq-o.ok { background: var(--ok-l); color: var(--ok); font-weight: 700; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-quiz { animation: none; } html { scroll-behavior: auto; } }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 2.5rem 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stats div { background: var(--surface); padding: 1.1rem 1.2rem; }
.stats dt { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; color: var(--brand-d); letter-spacing: -.02em; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.stats dd { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { height: 300px; max-width: 520px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:first-child { grid-column: span 2; }
}
@media (max-width: 520px) {
  .hero-art { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; }
.section.alt { background: linear-gradient(180deg, transparent, #efede6); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 62ch; }
.search input { width: min(320px, 80vw); padding: .75em 1em .75em 2.6em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2364627a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 1em center; font: inherit; color: var(--ink); box-shadow: var(--shadow); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-l); }

.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.chapter-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.chapter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: #d6d3f5; color: var(--ink); }
.cc-cover { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.cc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.chapter-card:hover .cc-cover img { transform: scale(1.05); }
.cc-num { position: absolute; left: 12px; top: 12px; min-width: 34px; height: 34px; padding: 0 .5em; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .92); color: var(--brand-dd); font-weight: 800; font-size: .9rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.cc-body { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.cc-title { font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.cc-meta { color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: auto; }
.chapter-card[hidden] { display: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.exam-list { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: ex; display: grid; gap: .55rem; }
.exam-list li { counter-increment: ex; display: flex; gap: .8rem; align-items: baseline; font-weight: 600; color: var(--ink-2); }
.exam-list li::before { content: counter(ex); flex: none; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 8px; background: var(--brand-l); color: var(--brand); font-size: .8rem; font-weight: 800; }
.notice { border-color: #f3d9a4; background: linear-gradient(160deg, #fffaf0, #fff); }
.notice h2 { font-size: 1.3rem; }
.notice-icon { font-size: 1.8rem; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 14px; background: var(--saffron-l); margin-bottom: .9rem; }
main.narrow .notice { margin-top: 1.5rem; }

/* Page head */
.page-head { background: radial-gradient(800px 300px at 90% 0, rgba(99, 102, 241, .16), transparent 60%), linear-gradient(180deg, #fdfcf9, var(--bg)); border-bottom: 1px solid var(--line); padding: 2rem 0 1.75rem; margin-bottom: 2rem; }
.page-head-in { display: flex; align-items: center; gap: 2rem; justify-content: space-between; }
.page-head h1 { margin: .2em 0 .25em; }
.page-head .lead { margin: 0; color: var(--muted); font-weight: 600; font-size: 1rem; }
.page-head-cover { width: 220px; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(30, 27, 75, .5); border: 3px solid #fff; transform: rotate(2deg); flex: none; }
@media (max-width: 700px) { .page-head-cover { display: none; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: #b7b4c6; }

/* Layout with sidebar */
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; padding-bottom: 3rem; }
.side-col { position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100vh - var(--header-h) - 2rem); overflow: auto; border-radius: var(--radius); }
.side-card summary { list-style: none; cursor: pointer; padding: 1rem 1.1rem; font-weight: 750; border-bottom: 1px solid var(--line); }
.side-card summary::-webkit-details-marker { display: none; }
.side-list { list-style: none; margin: 0; padding: .4rem; }
.side-list a { display: flex; gap: .6rem; align-items: baseline; padding: .5rem .65rem; border-radius: 10px; color: var(--ink-2); font-size: .9rem; font-weight: 550; text-decoration: none; line-height: 1.35; }
.side-list a:hover { background: #f4f3ee; color: var(--ink); }
.side-list a.on { background: var(--brand); color: #fff; }
.sl-num { flex: none; min-width: 1.4rem; font-weight: 750; color: var(--muted); font-size: .8rem; }
.side-list a.on .sl-num { color: #c7d2fe; }
.side-back { display: block; padding: .8rem .4rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
@media (max-width: 980px) {
  .layout-side { grid-template-columns: 1fr; }
  .side-col { position: static; max-height: none; }
  .side-card:not([open]) summary { border-bottom: 0; }
}

/* Section list */
.section-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.section-item { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.1rem; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.section-item:hover { border-color: #c7c4f0; box-shadow: var(--shadow-h); transform: translateX(3px); color: var(--ink); }
.si-num { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 11px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); font-weight: 800; font-size: .9rem; }
.si-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.si-title { font-weight: 700; line-height: 1.35; }
.si-sub { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.si-count { flex: none; color: var(--muted); font-size: .82rem; font-weight: 600; }
.si-go { flex: none; font-size: 1.5rem; color: #b7b4c6; line-height: 1; }
@media (max-width: 560px) { .si-count { display: none; } }

/* Reader */
.reader-tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .7rem 1rem; margin-bottom: 1rem; position: sticky; top: calc(var(--header-h) + .5rem); z-index: 5; }
.rt-pos { font-weight: 700; font-size: .85rem; color: var(--muted); }
.rt-size { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.rt-size button { border: 0; background: var(--surface); padding: .35em .8em; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--ink-2); }
.rt-size button + button { border-left: 1px solid var(--line); }
.rt-size button:hover { background: var(--brand-l); }
.switch { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { width: 38px; height: 22px; border-radius: 999px; background: #d7d4cc; position: relative; transition: background .2s; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--brand); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--brand-l); }

.qa-list { display: grid; gap: .8rem; font-size: var(--fs-read); }
.qa-heading { margin: 1.2rem 0 .2rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: linear-gradient(100deg, var(--brand-dd), var(--brand)); color: #fff; font-weight: 750; font-size: 1.05em; letter-spacing: .01em; }
.qa-heading:first-child { margin-top: 0; }
.qa-heading .row { display: flex; align-items: center; gap: 1rem; margin: 0; }
.qa-heading img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .6); }
.qa-heading br { display: none; }
.qa-heading [class*="col-"] { padding: 0; width: auto; float: none; }
.qa { padding: 1rem 1.2rem 1.1rem; }
.qa-q { display: flex; gap: .8rem; font-weight: 700; color: var(--ink); line-height: 1.45; }
.qnum { flex: none; min-width: 2rem; height: 2rem; padding: 0 .35rem; display: inline-grid; place-items: center; border-radius: 9px; background: var(--brand-l); color: var(--brand); font-weight: 800; font-size: .82rem; margin-top: -.1rem; }
.qtext { min-width: 0; flex: 1; }
.qtext p:last-child, .qa-a p:last-child { margin-bottom: 0; }
.qa-a { margin-top: .65rem; padding: .75rem 1rem; border-radius: 12px; background: #f6f8f4; border-left: 4px solid #34d399; color: var(--ink-2); overflow-wrap: anywhere; }
.qa-q + .qa-a { margin-left: 2.8rem; }
@media (max-width: 560px) { .qa-q + .qa-a { margin-left: 0; } }
.qa-a img, .qtext img { border-radius: 8px; margin: .3rem 0; }
.qa-a ul, .qa-a ol { padding-left: 1.3rem; margin: .3rem 0; }
.qa-a p { margin: 0 0 .4rem; }
.table-scroll { overflow-x: auto; margin: .5rem 0; -webkit-overflow-scrolling: touch; }
.table-scroll table { border-collapse: collapse; min-width: 100%; font-size: .92em; background: #fff; }
.table-scroll td, .table-scroll th { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.table-scroll tr:nth-child(even) td { background: #fafaf7; }
.quiz .qa-a { filter: blur(6px); cursor: pointer; user-select: none; position: relative; transition: filter .2s; }
.quiz .qa-a.shown { filter: none; cursor: auto; }
.quiz .qa-a:not(.shown)::after { content: attr(data-tap); position: absolute; inset: 0; display: grid; place-items: center; filter: blur(0); }
.step-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.step-nav .btn { flex-direction: column; border-radius: var(--radius-s); padding: .8em 1.3em; align-items: flex-start; }
.step-nav .btn-primary { align-items: flex-end; margin-left: auto; }
.no-copy .qa-list, .no-copy .mcq-list { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* MCQ */
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; padding-bottom: 3rem; }
.subject-card { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.subject-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: #c7c4f0; color: var(--ink); }
.sc-icon { flex: none; width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: linear-gradient(145deg, var(--brand-l), #f6eefe); }
.sc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-title { font-weight: 750; line-height: 1.3; }
.sc-sub { font-size: .8rem; color: var(--muted); font-weight: 600; }
.sc-count { flex: none; font-size: .78rem; font-weight: 700; color: var(--brand); background: var(--brand-l); padding: .25em .65em; border-radius: 999px; }

.mcq-list { display: grid; gap: 1rem; }
.mcq { padding: 1.1rem 1.2rem 1rem; scroll-margin-top: calc(var(--header-h) + 80px); }
.mcq-q { display: flex; gap: .8rem; font-weight: 700; line-height: 1.45; margin-bottom: .85rem; font-size: var(--fs-read); }
.opts { display: grid; gap: .5rem; }
.opt { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .12s, background .12s; background: #fcfcfa; }
.opt:hover { border-color: #c7c4f0; background: #f8f8ff; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-key { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #cfccc3; font-weight: 750; font-size: .82rem; color: var(--muted); background: #fff; transition: all .12s; }
.opt-text { flex: 1; min-width: 0; }
.opt-text p { margin: 0; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.opt:has(input:checked) .opt-key { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt:has(input:focus-visible) { outline: 3px solid var(--brand-l); }
.mcq.locked .opt { cursor: default; }
.mcq .opt.right { border-color: var(--ok); background: var(--ok-l); }
.mcq .opt.right .opt-key { background: var(--ok); border-color: var(--ok); color: #fff; }
.mcq .opt.wrong { border-color: var(--bad); background: var(--bad-l); }
.mcq .opt.wrong .opt-key { background: var(--bad); border-color: var(--bad); color: #fff; }
.mcq-feedback { margin: .6rem 0 0; font-size: .88rem; font-weight: 700; min-height: 0; }
.mcq-feedback:empty { display: none; }
.mcq-feedback.ok { color: var(--ok); }
.mcq-feedback.bad { color: var(--bad); }
.mcq-feedback.na { color: var(--muted); }
.practice { padding-bottom: 1rem; }

.scorebar { position: sticky; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .15); }
.scorebar-in { display: flex; align-items: center; gap: 1rem; min-height: 60px; flex-wrap: wrap; padding: .5rem 0; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.scorebar .ok { color: var(--ok); }
.scorebar b { font-size: 1.1rem; }
.grow { flex: 1; }
@media (max-width: 560px) { .scorebar-in { gap: .5rem; } .grow { flex-basis: 100%; height: 0; } }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 2rem 0 1rem; }
.pg { min-width: 2.5rem; height: 2.5rem; padding: 0 .7rem; display: inline-grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink-2); }
a.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pg.off { opacity: .4; }
.pg.gap { border: 0; background: none; }

/* Mock tests */
.tests-top { grid-template-columns: 1fr; max-width: 760px; }
.rules { padding-left: 1.3rem; margin: .5rem 0 1.25rem; display: grid; gap: .35rem; color: var(--ink-2); font-weight: 550; }
.rules li:last-child { color: #a21caf; font-weight: 750; }
.h-sec { margin: 2.25rem 0 1rem; }
.h-sm { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; padding-bottom: 3rem; }
.test-card { display: flex; flex-direction: column; padding: 1rem; text-decoration: none; color: var(--ink); position: relative; transition: transform .15s, box-shadow .15s, border-color .15s; }
.test-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: #c7c4f0; color: var(--ink); }
.tc-num { position: absolute; right: .8rem; top: .5rem; font-size: 2rem; font-weight: 800; color: #eeedf8; line-height: 1; font-family: "Plus Jakarta Sans", sans-serif; }
.tc-title { font-weight: 750; position: relative; }
.tc-meta { font-size: .8rem; color: var(--muted); font-weight: 600; position: relative; }
.tc-best:not(:empty) { margin-top: .5rem; align-self: flex-start; font-size: .75rem; font-weight: 750; color: var(--ok); background: var(--ok-l); padding: .15em .6em; border-radius: 999px; }

.exam-wrap { padding: 2rem 0 3rem; }
.exam-intro { max-width: 760px; margin: 0 auto; }
.exam-intro h1 { margin-top: .4rem; }
.exam-bar { position: sticky; top: var(--header-h); z-index: 30; margin: 0 0 1.25rem; }
.exam-bar-in { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--brand-dd); color: #fff; border-radius: var(--radius) var(--radius) 0 0; padding: .65rem 1rem; }
.eb-title { font-weight: 750; }
.eb-timer { margin-left: auto; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .12); padding: .3em .8em; border-radius: 999px; }
.eb-timer.low { background: #dc2626; }
.eb-count { font-weight: 650; }
.eb-progress { height: 5px; background: #c7d2fe; border-radius: 0 0 6px 6px; overflow: hidden; }
.eb-progress span { display: block; height: 100%; width: 0; background: var(--saffron); transition: width .3s; }
.exam-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.palette { position: sticky; top: calc(var(--header-h) + 90px); padding: .8rem; max-height: calc(100vh - var(--header-h) - 110px); overflow: auto; }
.palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; }
.palette-grid a { display: grid; place-items: center; height: 2rem; border-radius: 7px; font-size: .75rem; font-weight: 700; text-decoration: none; color: var(--muted); background: #f3f2ed; }
.palette-grid a.done { background: var(--brand); color: #fff; }
.palette-grid a.right { background: var(--ok); color: #fff; }
.palette-grid a.wrong { background: var(--bad); color: #fff; }
.block-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: 1.25rem 0 -.25rem; }
.lang-ta .block-title { text-transform: none; letter-spacing: 0; }
.block-title:first-child { margin-top: 0; }
@media (max-width: 860px) { .exam-body { grid-template-columns: 1fr; } .palette { display: none; } }
.exam-result { margin-bottom: 1.5rem; }
.result-top { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ring { position: relative; width: 130px; height: 130px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring-bg { stroke: #eceaf6; }
.ring-fg { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1s ease; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--brand-d); }
.big { font-size: 1.25rem; font-weight: 750; margin-bottom: .3rem; }
.subject-bars { display: grid; gap: .55rem; }
.sb-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 70px; gap: .8rem; align-items: center; font-size: .88rem; font-weight: 600; }
.sb-track { height: 10px; border-radius: 999px; background: #eceaf6; overflow: hidden; }
.sb-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #7c3aed); border-radius: 999px; }
.sb-row b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .sb-row { grid-template-columns: 1fr 60px; } .sb-track { grid-column: 1 / -1; grid-row: 2; } }

/* Prose, forms, contact */
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.2rem; margin-top: 1.6rem; color: var(--ink); }
.prose .salute { font-size: 1.3rem; font-weight: 750; color: var(--ink); }
.prose blockquote { margin: 1.2rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--saffron); background: var(--saffron-l); border-radius: 0 12px 12px 0; font-weight: 600; color: #78350f; }
.callout { margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: 12px; background: #f4f3ee; font-size: .95rem; }
.form { display: grid; gap: 1rem; margin-bottom: 3rem; }
.form label { display: grid; gap: .35rem; font-weight: 650; font-size: .9rem; color: var(--ink-2); }
.form input, .form textarea { font: inherit; font-weight: 500; padding: .75em .9em; border-radius: 12px; border: 1.5px solid var(--line); background: #fcfcfa; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-l); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 650; }
.alert.ok { background: var(--ok-l); color: var(--ok); }
.alert.err { background: var(--bad-l); color: var(--bad); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { text-align: center; }
.contact-card h2 { font-size: 1rem; color: var(--muted); }
.cc-icon { font-size: 2rem; display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 18px; background: var(--brand-l); margin-bottom: .8rem; }
.empty-state { padding: 4rem 0; }

/* Footer */
.site-footer { margin-top: 2rem; background: var(--brand-dd); color: #c7cbe8; font-size: .92rem; }
.site-footer a { color: #e0e7ff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2rem; }
.footer-grid h3 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-name span { color: #a5b4fc; }
.site-footer .brand-tag { color: #a5b4fc; }
.memory { color: #fde68a; font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.diya { flex: none; }
.digital { margin-top: 1.2rem; display: flex; align-items: center; gap: .5rem; font-weight: 650; color: #e0e7ff; }
.tri { width: 22px; height: 15px; border-radius: 3px; background: linear-gradient(#ff9933 33%, #fff 33% 66%, #138808 66%); flex: none; }
.footer-base { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.1rem 0 1.4rem; font-size: .82rem; color: #a5abd6; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Modal */
.modal { border: 0; border-radius: 22px; padding: 0; width: min(420px, 92vw); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.modal::backdrop { background: rgba(20, 18, 45, .55); backdrop-filter: blur(3px); }
.modal form { padding: 1.75rem; text-align: center; }
.modal-body h2 { margin-bottom: .3rem; }
.modal-body .score-big { font-size: 3rem; font-weight: 800; color: var(--brand); line-height: 1.1; margin: .5rem 0; }
.modal .btn { margin-top: 1rem; }

/* Ads injected by AdSense auto ads should not break the layout */
ins.adsbygoogle { margin: 1rem auto; }
@media print { .site-header, .salebar, .site-footer, .scorebar, .side-col, .reader-tools, .step-nav { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

@media (max-width: 640px) {
  .salebar { font-size: .74rem; }
  .salebar-in { flex-wrap: nowrap; min-height: 30px; gap: .45rem; }
  .salebar-in > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}
.eb-timer svg { vertical-align: -3px; margin-right: 4px; }
