/* Navastha public website.
   Look: an exam hall, not a brochure. Ledger-green paper, forest ink, ruled tables, and one live
   piece: the CBT exam window on the home page. Mukta (Ek Type) for English and Hindi alike.
   Colours are the app's and the logo's: forest, leaf, marigold. Answer colours (green / red) are
   used only where they mean answered / not answered, as in a real computer-based test. */

@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap; src: url("/assets/fonts/mukta-Regular-latin.woff") format("woff"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-weight: 600; font-display: swap; src: url("/assets/fonts/mukta-SemiBold-latin.woff") format("woff"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-weight: 800; font-display: swap; src: url("/assets/fonts/mukta-ExtraBold-latin.woff") format("woff"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap; src: url("/assets/fonts/mukta-Regular-deva.woff") format("woff"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-weight: 600; font-display: swap; src: url("/assets/fonts/mukta-SemiBold-deva.woff") format("woff"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-weight: 800; font-display: swap; src: url("/assets/fonts/mukta-ExtraBold-deva.woff") format("woff"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --ledger: #F1F5EF;
  --sheet: #FBFCF8;
  --forest: #0F4A2E;
  --leaf: #175D3D;
  --leaf-soft: #DCEBDD;
  --marigold: #F0C86E;
  --marigold-ink: #7A5512;
  --answered: #1E8A4C;
  --unanswered: #C2412D;
  --unvisited: #DDE3DA;
  --ink: #13261C;
  --muted: #4F6457;
  --rule: #CBD8CC;
  --on-dark: #F1F5EF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ledger: #0F1714;
    --sheet: #16211C;
    --forest: #0B2E1E;
    --leaf: #57C08A;
    --leaf-soft: #1C3328;
    --marigold: #E3B656;
    --marigold-ink: #F0C86E;
    --answered: #3FA868;
    --unanswered: #E0644F;
    --unvisited: #2B3A33;
    --ink: #E6EFE9;
    --muted: #A3B6AB;
    --rule: #2A3A32;
    --on-dark: #E6EFE9;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ledger); color: var(--ink);
  font-family: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px; line-height: 1.6; font-variant-numeric: tabular-nums;
}
a { color: var(--leaf); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--leaf); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 40; }
[hidden] { display: none !important; }
html.is-android .not-android { display: none !important; }
html:not(.is-android) .only-android { display: none !important; }

/* Type scale: 15 / 18 / 22 / 28 / 36 / 50 */
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.012em; color: var(--ink); }
h1 { font-size: clamp(34px, 5.4vw, 50px); margin: 10px 0 12px; max-width: 18em; }
h2 { font-size: clamp(25px, 3vw, 30px); margin: 52px 0 12px; }
h3 { font-size: 22px; margin: 28px 0 8px; }
p, li { max-width: 40em; }
.lead { font-size: 21px; line-height: 1.5; color: var(--muted); margin: 0 0 6px; max-width: 34em; }
.hi { font-size: 22px; font-weight: 600; color: var(--leaf); margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.tiny { font-size: 15px; color: var(--muted); }
.note { border-left: 4px solid var(--marigold); background: var(--sheet); padding: 12px 16px; font-size: 16px; max-width: 46em; }

/* Header */
.top { background: var(--ledger); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1160px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.nav { display: flex; gap: 2px 22px; flex-wrap: wrap; font-size: 17px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--marigold); }
.top-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.lang { font-weight: 600; font-size: 16px; text-decoration: none; color: var(--muted); border: 1px solid var(--rule); border-radius: 6px; padding: 4px 10px; }
.lang:hover { color: var(--ink); border-color: var(--leaf); }
@media (max-width: 860px) {
  .top { position: static; }
  .top-in { flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px; }
  .nav { order: 3; width: 100%; gap: 0 16px; font-size: 16px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  background: var(--leaf); color: #fff; border: 1px solid var(--leaf); border-radius: 6px;
  padding: 8px 20px; font: inherit; font-weight: 800; font-size: 18px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--forest); border-color: var(--forest); text-decoration: none; }
@media (prefers-color-scheme: dark) { .btn { color: #0B1F15; } .btn:hover { background: #7ED3A6; border-color: #7ED3A6; } }
.btn.ghost { background: transparent; color: var(--leaf); }
.btn.ghost:hover { background: var(--leaf-soft); }
.btn.small { min-height: 38px; padding: 4px 14px; font-size: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; align-items: center; }

/* Page frame */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
main { display: block; padding-bottom: 24px; }
.crumbs { font-size: 15px; color: var(--muted); margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--muted); }
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 16px; border-left: 2px solid var(--rule); padding: 4px 0 4px 16px; margin-top: 30px; }
.toc p { margin: 0 0 6px; font-weight: 800; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 5px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 960px) { .with-toc { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

/* Home hero: text on the left, the CBT window on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: center; padding: 40px 0 20px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 60px); }
.signin-line { font-size: 16px; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; } }

/* The CBT window: modelled on the NTA / TCS exam screen students will sit */
.cbt { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; font-size: 16px; }
.cbt-bar { background: var(--forest); color: var(--on-dark); display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.cbt-bar b { font-weight: 800; }
.cbt-time { margin-left: auto; font-weight: 800; font-size: 17px; }
.cbt-time span { font-weight: 400; opacity: .8; margin-right: 6px; }
.cbt-lang { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; overflow: hidden; }
.cbt-lang button { font: inherit; font-size: 14px; font-weight: 600; background: transparent; color: var(--on-dark); border: 0; padding: 2px 10px; cursor: pointer; }
.cbt-lang button[aria-pressed="true"] { background: var(--marigold); color: #2A1E05; }
.cbt-body { display: grid; grid-template-columns: minmax(0, 1fr) 150px; }
.cbt-q { padding: 16px 18px 14px; border-right: 1px solid var(--rule); min-height: 330px; display: flex; flex-direction: column; }
.cbt-qno { font-weight: 800; color: var(--muted); margin: 0 0 6px; font-size: 15px; }
.cbt-stem { font-size: 18px; font-weight: 600; margin: 0 0 12px; line-height: 1.45; }
.cbt-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cbt-opts label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--rule); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.cbt-opts input { accent-color: var(--leaf); width: 18px; height: 18px; margin: 0; }
.cbt-opts label.right { border-color: var(--answered); background: color-mix(in srgb, var(--answered) 14%, transparent); font-weight: 600; }
.cbt-opts label.wrong { border-color: var(--unanswered); background: color-mix(in srgb, var(--unanswered) 12%, transparent); }
.cbt-why { margin: 10px 0 0; font-size: 15px; color: var(--muted); min-height: 1.5em; }
.cbt-actions { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.cbt-actions button { font: inherit; font-size: 15px; font-weight: 800; border-radius: 5px; padding: 6px 12px; cursor: pointer; border: 1px solid var(--rule); background: var(--ledger); color: var(--ink); }
.cbt-actions .save { background: var(--leaf); border-color: var(--leaf); color: #fff; margin-left: auto; }
@media (prefers-color-scheme: dark) { .cbt-actions .save { color: #0B1F15; } }
.cbt-side { padding: 12px; background: var(--ledger); }
.cbt-side p { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; list-style: none; margin: 0; padding: 0; }
.palette li { aspect-ratio: 1; display: grid; place-content: center; font-size: 13px; font-weight: 800; border-radius: 4px; background: var(--unvisited); color: var(--ink); }
.palette li.ans { background: var(--answered); color: #fff; border-radius: 4px 4px 12px 12px; }
.palette li.not { background: var(--unanswered); color: #fff; border-radius: 12px 12px 4px 4px; }
.palette li.mark { background: var(--marigold); color: #2A1E05; border-radius: 50%; }
.palette li.now { outline: 2px solid var(--ink); outline-offset: 1px; }
.legend { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--muted); display: grid; gap: 3px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 560px) {
  .cbt-body { grid-template-columns: 1fr; }
  .cbt-q { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 0; }
  .palette { grid-template-columns: repeat(10, 1fr); }
  .legend { grid-template-columns: 1fr 1fr; }
}

/* Contents-style lists (exam index, subjects): name, dotted leader, detail */
.contents { list-style: none; margin: 8px 0 0; padding: 0; max-width: 760px; }
.contents li { max-width: none; }
.contents a, .contents .row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; text-decoration: none; color: var(--ink); }
.contents a::after, .contents .row::after { content: none; }
.contents .name { font-weight: 600; font-size: 19px; }
.contents .dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-5px); min-width: 24px; }
.contents .info { color: var(--muted); font-size: 16px; white-space: nowrap; }
.contents a:hover .name { color: var(--leaf); text-decoration: underline; text-underline-offset: 3px; }
.contents .row .name { color: var(--muted); font-weight: 400; }
.group { margin-top: 30px; }
.group h2, .group h3 { margin: 0 0 4px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } .contents .info { white-space: normal; text-align: right; } }

/* Exam spec: the pattern as a ruled sheet */
.spec { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 22px 0 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec div { padding: 12px 14px 12px 0; }
.spec div + div { border-left: 1px solid var(--rule); padding-left: 16px; }
.spec b { display: block; font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.05; }
.spec span { color: var(--muted); font-size: 16px; }
@media (max-width: 640px) { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spec div:nth-child(3) { border-left: 0; padding-left: 0; } .spec div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
.facts { margin: 0; border-bottom: 1px solid var(--rule); max-width: 760px; }
.facts div { display: grid; grid-template-columns: 210px 1fr; gap: 14px; padding: 9px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 0; } }
.split { margin: 14px 0 6px; max-width: 760px; }
.split svg { display: block; width: 100%; height: 30px; border-radius: 4px; }
.split .k1, .key.k1 { fill: var(--leaf); background: var(--leaf); }
.split .k2, .key.k2 { fill: var(--marigold); background: var(--marigold); }
.split .k3, .key.k3 { fill: #6E9C7F; background: #6E9C7F; }
.split .k4, .key.k4 { fill: #B9C9BD; background: #B9C9BD; }
.legend i.ans { background: var(--answered); } .legend i.not { background: var(--unanswered); }
.legend i.mark { background: var(--marigold); } .legend i.unv { background: var(--unvisited); }
table { border-collapse: collapse; width: 100%; max-width: 760px; margin: 10px 0; font-size: 17px; }
th, td { border-bottom: 1px solid var(--rule); padding: 8px 12px 8px 0; text-align: left; vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); }
td.num, th.num { text-align: right; padding-right: 0; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.scroll { overflow-x: auto; }
.byline { font-size: 15px; color: var(--muted); margin: 4px 0 0; }

/* Questions and answers */
details { border-top: 1px solid var(--rule); max-width: 760px; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style-position: outside; }
details > :not(summary) { margin-top: 0; }
details[open] summary { color: var(--leaf); }

/* Chips for subjects */
.tags { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; border: 1px solid var(--rule); background: var(--sheet); border-radius: 6px; padding: 3px 12px; text-decoration: none; font-weight: 600; }
.tags a:hover { border-color: var(--leaf); }
.chapters { columns: 2 300px; column-gap: 40px; padding-left: 20px; margin: 4px 0 0; }
.chapters li { break-inside: avoid; margin: 2px 0; }

/* Home sections */
.band { border-top: 1px solid var(--rule); margin-top: 40px; }
.steps { padding-left: 22px; }
.steps li { margin: 6px 0; padding-left: 4px; }
.steps li::marker { font-weight: 800; color: var(--leaf); }

/* Libraries */
.libs { list-style: none; margin: 10px 0; padding: 0; max-width: 860px; }
.libs > li { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); max-width: none; }
.libs > li:last-child { border-bottom: 1px solid var(--rule); }
.libs img { width: 132px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--leaf-soft); }
.libs h3 { margin: 0 0 2px; font-size: 21px; }
.libs h3 a { color: var(--ink); }
.libs p { margin: 0; font-size: 16px; color: var(--muted); }
.dist { font-weight: 800; color: var(--leaf) !important; }
@media (max-width: 520px) { .libs > li { grid-template-columns: 96px 1fr; } .libs img { width: 96px; height: 76px; } }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 14px 0; }
.photos img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; }
.cities { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 19px; font-weight: 600; }

/* Prose pages (policies, about) */
.prose { max-width: 760px; }
.prose h2 { font-size: 25px; margin-top: 36px; }

/* Forms */
form.contact { display: grid; gap: 14px; max-width: 560px; }
form.contact label { font-weight: 600; font-size: 16px; display: grid; gap: 6px; }
form.contact input, form.contact select, form.contact textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 9px 12px; width: 100%;
}
form.contact textarea { min-height: 140px; resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#status { min-height: 1.6em; margin: 0; font-weight: 600; }
#status.ok { color: var(--answered); }
#status.err { color: var(--unanswered); }
.contact-box { border-left: 4px solid var(--leaf); padding: 6px 0 6px 16px; margin: 18px 0; }
.contact-box p { margin: 2px 0; }

/* Footer */
.foot { background: var(--forest); color: var(--on-dark); margin-top: 72px; }
@media (prefers-color-scheme: dark) { .foot { background: #0A120F; border-top: 1px solid var(--rule); } }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 36px 20px 100px; display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 24px; font-size: 16px; }
.foot h2 { font-size: 16px; margin: 0 0 8px; color: var(--on-dark); letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 5px 0; }
.foot a { color: #C9DCCF; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .about { color: #C9DCCF; }
.foot .about b { color: #fff; font-size: 20px; display: block; margin-bottom: 4px; }
.foot .legal { grid-column: 1 / -1; color: #A9C2B4; font-size: 14px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; max-width: none; }
@media (max-width: 900px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .about { grid-column: 1 / -1; } }

/* Android: a bar that offers the app */
.appbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--sheet); border-top: 2px solid var(--leaf); padding: 10px 12px; }
.appbar-in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.appbar img { width: 38px; height: 38px; border-radius: 8px; }
.appbar p { margin: 0; flex: 1; font-size: 15px; line-height: 1.3; }
.appbar .x { border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; padding: 4px 8px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (max-width: 560px) {
  .cbt-bar { gap: 8px; padding: 8px 10px; }
  .cbt-bar > b { display: none; }
  .cbt-time span { display: none; }
}

/* Quick answer at the top of exam pages: the sentence assistants and search engines quote */
.answer { font-size: 19px; font-weight: 600; border-left: 4px solid var(--leaf); padding: 4px 0 4px 14px; margin: 6px 0 14px; max-width: 40em; }

/* Marks calculator */
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)) minmax(0, 1fr); gap: 12px 16px; align-items: end; max-width: 760px;
        border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 14px 0 16px; margin: 12px 0; }
.calc label { display: grid; gap: 4px; font-weight: 600; font-size: 16px; }
.calc input { font: inherit; font-size: 22px; font-weight: 800; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 10px; width: 100%; }
.calc-out { font-size: 17px; color: var(--muted); padding-bottom: 6px; }
.calc-out b { display: block; font-size: 30px; color: var(--ink); line-height: 1.1; }
.calc-out.err { color: var(--unanswered); }
@media (max-width: 560px) { .calc { grid-template-columns: 1fr 1fr; } .calc-out { grid-column: 1 / -1; } }
.pick { display: grid; gap: 4px; font-weight: 600; max-width: 420px; margin-top: 14px; }
.pick select { font: inherit; font-size: 18px; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px; }
