/* medigini · self-hosted fonts (subset to the characters the site needs) */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-v1.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+03BC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+2264-2265;
}
@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("/assets/fonts/noto-sans-devanagari-v1.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  --paper: #FFFFFF;
  --blue: #1E5AA8;
  --blue-deep: #17488A;
  --ink: #163C73;
  --wash: #EEF4FB;
  --wash-2: #F5F8FC;
  --line: #E2E8F0;
  --edge: #D3DEEC;
  --slate: #26313F;
  --muted: #5B6878;
  --danger: #B3261E;
  --ring: rgba(30, 90, 168, .16);
  --sans: "Montserrat", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--paper); }
body {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--slate);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.locked { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Top bar: language (left), logo (centre), sign-in (right) ---------- */
.top {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) calc(env(safe-area-inset-right, 0px) + 16px) 0 calc(env(safe-area-inset-left, 0px) + 16px);
}
.icon-btn {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--blue); cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover, .lang[open] > .icon-btn, .steth.is-in { background: var(--wash); border-color: #CADAEE; }
.tip {
  position: absolute; top: calc(100% + 8px); padding: 7px 10px; border-radius: 8px;
  background: #15325E; color: #fff; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
  opacity: 0; transform: translateY(-3px); transition: opacity .15s, transform .15s; pointer-events: none;
}
.tip-l { left: 0; }
.tip-r { right: 0; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover .tip, .icon-btn:focus-visible .tip { opacity: 1; transform: none; }
  .lang[open] .tip { opacity: 0; }
}

.lang { position: relative; }
.lang > summary { list-style: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang-menu {
  position: absolute; left: 0; top: calc(100% + 8px); width: 236px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 44px -20px rgba(16, 40, 80, .38);
}
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 11px 12px; border-radius: 10px; text-decoration: none;
  font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--slate);
}
.lang-opt:hover { background: var(--wash-2); }
.lang-opt small { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.lang-opt .tick { width: 16px; height: 16px; color: var(--blue); visibility: hidden; }
.lang-opt[aria-current="true"] { background: var(--wash); color: var(--blue); }
.lang-opt[aria-current="true"] .tick { visibility: visible; }
.lang-opt:focus-visible { outline-offset: -2px; }
.lang-note {
  margin: 4px 6px 2px; padding: 10px 6px 6px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--muted); text-wrap: balance;
}

.logo {
  justify-self: center; display: inline-flex; align-items: center; height: 42px; padding: 0 20px;
  border: 1.5px solid var(--blue); border-radius: 999px; color: var(--blue); text-decoration: none;
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: .22em; white-space: nowrap; user-select: none;
}
.logo span { margin-right: -.22em; }

.steth .dot {
  position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: #1E9E6A; box-shadow: 0 0 0 2px var(--paper); transform: scale(0); transition: transform .2s;
}
.steth.is-in .dot { transform: scale(1); }
.steth::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid var(--blue); opacity: 0; pointer-events: none;
}
.steth.hint::after { animation: ping 1.7s cubic-bezier(.2, .6, .3, 1) 2; }
@keyframes ping { from { transform: scale(1); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
  flex: 1 0 auto; width: 100%; max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(30px, 6.5vh, 72px) 18px 0;
}
.headline {
  margin: 0 auto; max-width: 680px;
  font-weight: 600; font-size: clamp(1.75rem, .9rem + 3.6vw, 2.75rem); line-height: 1.14; letter-spacing: -.02em;
  color: var(--ink); text-wrap: balance;
}
:lang(hi) .headline, :lang(mr) .headline { font-size: clamp(1.6rem, .85rem + 3.2vw, 2.5rem); line-height: 1.42; letter-spacing: 0; }

.search {
  position: relative; display: flex; align-items: stretch;
  width: min(100%, 620px); height: 56px; margin: clamp(20px, 3vh, 30px) auto 0;
  background: var(--paper); border: 1px solid var(--edge); border-radius: 999px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(30, 90, 168, .06), 0 16px 32px -24px rgba(30, 90, 168, .5);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring), 0 16px 32px -24px rgba(30, 90, 168, .55); }
.s-go { flex: none; display: grid; place-items: center; width: 48px; padding: 0 0 0 6px; border: 0; background: none; color: var(--blue); cursor: pointer; }
.s-go svg { width: 20px; height: 20px; }
.s-go:focus-visible { outline-offset: -4px; border-radius: 999px; }
.search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 10px 0 2px;
  border: 0; outline: 0; background: transparent; -webkit-appearance: none; appearance: none;
  font-size: 16px; font-weight: 500; line-height: 1.2; color: var(--slate);
}
.search input::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
.search input::-webkit-search-decoration, .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.s-cap { flex: none; display: flex; align-items: center; padding: 0 7px 0 6px; background: var(--wash); border-left: 1px solid #D5E2F2; }
.s-btn {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--blue); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.s-btn svg { width: 21px; height: 21px; }
.s-btn:hover { background: rgba(30, 90, 168, .09); }
.s-btn:focus-visible { outline-offset: -2px; }
.s-btn.on { background: var(--blue); color: #fff; }

.modes { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.mode {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: 999px; font-size: 14.5px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
}
.mode svg { width: 18px; height: 18px; }
.mode-search { min-width: 118px; border: 0; background: var(--blue); color: #fff; }
.mode-search:hover { background: var(--blue-deep); }
.mode-deep { border: 1px solid var(--edge); background: var(--paper); color: var(--blue); }
.mode-deep:hover { background: var(--wash); border-color: #CADAEE; }
.mode:disabled { opacity: .55; cursor: progress; }

.sub {
  margin: 16px auto 0; max-width: 34em;
  font-size: clamp(.94rem, .88rem + .3vw, 1.03rem); font-weight: 500; line-height: 1.6; color: var(--muted); text-wrap: balance;
}
:lang(hi) .sub, :lang(mr) .sub { line-height: 1.75; }

.doc { margin: clamp(14px, 2.4vh, 24px) auto 0; width: min(100%, 440px); }
.doc img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }

/* ---------- Answers ---------- */
body.is-results .headline, body.is-results .sub, body.is-results .doc { display: none; }
body.is-results .hero { padding-top: 22px; }
body.is-results .search { margin-top: 0; }

.thread { width: min(100%, 720px); margin: 28px auto 0; padding-bottom: 24px; text-align: left; }
.thread-bar { margin-bottom: 4px; }
.btn-new {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--blue);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-new svg { width: 16px; height: 16px; }
.btn-new:hover { background: var(--wash-2); }

.turn { padding: 18px 0 26px; }
.turn + .turn { border-top: 1px solid var(--line); padding-top: 26px; }
.turn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.turn-q { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.38; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
:lang(hi) .turn-q, :lang(mr) .turn-q { line-height: 1.6; letter-spacing: 0; }
.badge-deep {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; margin-top: 1px;
  border-radius: 999px; background: var(--wash); color: var(--blue); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-deep svg { width: 14px; height: 14px; }
.status { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
.spinner { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #CADAEE; border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.answer { margin-top: 14px; font-size: 15.5px; line-height: 1.72; color: var(--slate); overflow-wrap: anywhere; }
:lang(hi) .answer, :lang(mr) .answer { line-height: 1.9; }
.answer p { margin: 0 0 12px; }
.answer h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.answer h3:first-child { margin-top: 2px; }
.answer ul, .answer ol { margin: 0 0 12px; padding-left: 22px; }
.answer li { margin: 5px 0; padding-left: 2px; }
.answer strong { font-weight: 700; color: #1C2733; }
.answer code { padding: 1px 6px; border-radius: 6px; background: var(--wash-2); font-size: .9em; }
.cite {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin: 0 1px 0 2px;
  border: 1px solid #CADAEE; border-radius: 6px; background: var(--wash); color: var(--blue);
  font-size: 11px; font-weight: 700; line-height: 1; text-decoration: none; vertical-align: 2px;
}
.cite:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.cite-g { white-space: nowrap; }

.sources { margin-top: 18px; }
.sources h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.src-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.src { display: flex; gap: 12px; padding: 12px 14px; }
.src + .src { border-top: 1px solid var(--line); }
.src-n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: var(--wash); color: var(--blue); font-size: 11.5px; font-weight: 700; }
.src-body { min-width: 0; }
.src-t { display: block; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--slate); text-decoration: none; overflow-wrap: anywhere; }
.src-t:hover { color: var(--blue); text-decoration: underline; }
.src-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.src-type { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: #F1F5FA; color: var(--muted); font-size: 11px; font-weight: 600; }
.src-type.strong { background: #E6F0FB; color: var(--blue); }

.src-a { margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--slate); }
.followups { margin-top: 18px; }
.followups h4 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.followups ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.followups li { border-bottom: 1px solid var(--line); }
.fu { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 2px; border: 0; background: none; text-align: left; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--blue); cursor: pointer; }
.fu svg { flex: none; width: 16px; height: 16px; }
.fu:hover span { text-decoration: underline; }
.turn .search.ask-more { width: 100%; height: 50px; margin: 18px 0 0; }
.ask-more input { padding-left: 20px; }
@media (min-width: 768px) { .answer { font-size: 16px; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.act {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--slate);
  font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.act svg { width: 16px; height: 16px; color: var(--blue); }
.act:hover { background: var(--wash-2); }
.act[aria-pressed="true"] { background: var(--wash); border-color: #CADAEE; color: var(--blue); }
.act-icon { width: 34px; padding: 0; justify-content: center; }
.note { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
:lang(hi) .note, :lang(mr) .note { line-height: 1.8; }
.turn-err { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FDF3F2; color: #8C1D18; font-size: 14px; line-height: 1.55; }
.turn-err .act { margin-top: 10px; }

/* ---------- Footer: smallest type on the page ---------- */
.foot {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
}
.foot-link { padding: 4px 2px; border: 0; background: none; cursor: pointer; font-size: 11px; font-weight: 500; line-height: 1.3; color: var(--muted); text-decoration: none; }
.foot-link:hover { color: var(--blue); }

/* ---------- Sheets: bottom sheet on phones, dialog on desktop ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(16, 33, 60, .34); opacity: 0; transition: opacity .22s; }
.scrim.show { opacity: 1; }
.scrim.clear { background: transparent; }
.sheet { position: fixed; z-index: 50; background: var(--paper); text-align: left; outline: none; }
.grip { width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 4px; background: var(--line); }
.x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.x:hover { background: var(--wash-2); }
.x svg { width: 18px; height: 18px; }
.sheet h2 { margin: 2px 44px 0 0; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
:lang(hi) .sheet h2, :lang(mr) .sheet h2 { line-height: 1.5; letter-spacing: 0; }
.lede { margin: 8px 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
:lang(hi) .lede, :lang(mr) .lede { line-height: 1.75; }

@media (max-width: 640px) {
  .sheet {
    left: 0; right: 0; bottom: 0; max-height: min(90vh, 720px); overflow-y: auto;
    padding: 10px 20px calc(env(safe-area-inset-bottom, 0px) + 22px);
    border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px -16px rgba(16, 40, 80, .32);
    transform: translateY(104%); transition: transform .3s cubic-bezier(.22, .8, .24, 1);
  }
  .sheet.show { transform: translateY(0); }
  .x { top: 12px; right: 12px; }
}
@media (min-width: 641px) {
  .sheet {
    top: 50%; left: 50%; width: 420px; max-height: calc(100vh - 48px); overflow-y: auto;
    padding: 30px 30px 26px; border-radius: 20px; box-shadow: 0 32px 80px -28px rgba(16, 40, 80, .42);
    opacity: 0; transform: translate(-50%, -47%); transition: opacity .2s, transform .24s cubic-bezier(.22, .8, .24, 1);
  }
  .sheet.show { opacity: 1; transform: translate(-50%, -50%); }
  .sheet.pop { top: calc(env(safe-area-inset-top, 0px) + 66px); left: auto; right: 16px; width: 364px; transform: translateY(-6px); }
  .sheet.pop.show { transform: none; }
  .grip { display: none; }
  .search { height: 60px; }
  .doc { width: min(100%, 450px); }
  .logo { font-size: 16px; padding: 0 22px; }
}

/* sign-in */
.field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--slate); }
.phone { display: flex; align-items: center; height: 52px; border: 1px solid var(--edge); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.phone:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--ring); }
.cc { display: flex; align-items: center; height: 100%; padding: 0 12px 0 14px; border-right: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--slate); }
.phone input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; outline: 0; background: transparent; font-size: 16.5px; font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.phone input::placeholder, .otp::placeholder { color: #98A4B3; font-weight: 400; opacity: 1; }
.err { margin: 8px 2px 0; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--danger); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 16px;
  border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { margin-top: 14px; border: 0; background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { border: 1px solid var(--edge); background: var(--paper); color: var(--slate); }
.btn-ghost:hover { background: var(--wash-2); }
.btn-ghost svg { color: var(--blue); }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: flex; justify-content: center; min-height: 44px; }
.fine { margin: 18px 0 0; font-size: 12px; font-weight: 500; line-height: 1.55; color: var(--muted); text-align: center; }
:lang(hi) .fine, :lang(mr) .fine { line-height: 1.75; }
.fine-links { display: flex; justify-content: center; gap: 18px; margin: 6px 0 0; }
.fine-links a { font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; }
.otp-info { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--slate); }
.otp-info b { font-weight: 700; white-space: nowrap; }
.otp {
  width: 100%; height: 58px; padding: 0 0 0 .5em; border: 1px solid var(--edge); border-radius: 12px; outline: none;
  font-size: 25px; font-weight: 600; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; color: var(--slate);
  transition: border-color .15s, box-shadow .15s;
}
.otp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--ring); }
.otp-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.link { padding: 6px 2px; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--blue); cursor: pointer; }
.link:disabled { color: var(--muted); font-weight: 500; cursor: default; }
.link.danger { display: block; margin: 14px auto 0; color: var(--danger); font-size: 13px; font-weight: 500; }

/* account */
.acct-id { display: flex; align-items: center; gap: 14px; margin: 0 44px 18px 0; }
.avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--wash); color: var(--blue); overflow: hidden; }
.avatar svg { width: 22px; height: 22px; }
.acct-id h2 { margin: 0; }
.acct-id p { margin: 2px 0 0; font-size: 13.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: #F1F5FA; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 9px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--muted); text-align: center;
}
.tab svg { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--paper); color: var(--blue); box-shadow: 0 1px 2px rgba(16, 40, 80, .1); }
.tab:focus-visible { outline-offset: -2px; }
.items { margin: 8px 0 0; padding: 0; list-style: none; }
.items li + li { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 2px; border: 0; background: none; text-align: left; cursor: pointer; }
.item-t { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--slate); }
.item-m { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--muted); }
.item .go { flex: none; width: 16px; height: 16px; margin-left: auto; color: #A6B1BF; }
.item:hover .item-t { color: var(--blue); }
.empty { margin: 20px 0 8px; font-size: 14px; color: var(--muted); text-align: center; }
.signout { margin-top: 12px; }
.terms-copy { margin: 12px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--slate); }
:lang(hi) .terms-copy, :lang(mr) .terms-copy { line-height: 1.85; }
.terms-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; }
.terms-links a { font-size: 14px; font-weight: 600; color: var(--blue); }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); z-index: 60;
  width: max-content; max-width: min(92vw, 420px); padding: 11px 16px; border-radius: 12px;
  background: #15325E; color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.5; text-align: center;
  box-shadow: 0 14px 30px -14px rgba(16, 40, 80, .55);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- About, legal and 404 pages ---------- */
.page { flex: 1 0 auto; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vh, 64px) 20px 32px; }
.prose { font-size: 16px; line-height: 1.7; color: var(--slate); }
:lang(hi) .prose, :lang(mr) .prose { line-height: 1.9; }
.prose h1 { margin: 0 0 14px; font-size: clamp(1.75rem, 1rem + 3vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
:lang(hi) .prose h1, :lang(mr) .prose h1 { line-height: 1.45; letter-spacing: 0; }
.prose h2 { margin: 30px 0 8px; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--blue); font-weight: 600; }
.prose .lead { font-size: 18px; line-height: 1.65; }
.cta-row { margin-top: 30px; }
.cta { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--blue); color: #fff !important; font-weight: 600; text-decoration: none; }
.cta:hover { background: var(--blue-deep); }
.updated { margin-top: 30px; font-size: 13px; color: var(--muted); }
.notfound { text-align: center; }
.notfound .logo { margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
