/* MeeSeva Portal design system — blue · white · green, mobile-first.
   The same tokens are used by the installable Android (PWA) app. */
:root {
  --blue-900: #083b74;
  --blue-700: #0b57a4;
  --blue-500: #1a73d9;
  --blue-50: #eaf2fd;
  --green-700: #0b7a4b;
  --green-500: #12a05f;
  --green-50: #e6f6ee;

  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #0e1b2c;
  --muted: #546378;
  --border: #dde5ef;
  --primary: var(--blue-700);
  --primary-2: var(--blue-500);
  --primary-soft: var(--blue-50);
  --green: var(--green-700);
  --green-2: var(--green-500);
  --green-soft: var(--green-50);
  --shadow: 0 1px 2px rgba(14, 27, 44, .05), 0 4px 16px rgba(14, 27, 44, .06);
  --shadow-lg: 0 12px 36px rgba(11, 87, 164, .16);
  --radius: 16px;
  --header-h: 62px;
  --font: "Plus Jakarta Sans", "Noto Sans Telugu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1220; --surface: #111b2d; --surface-2: #19253b; --text: #e8eef7; --muted: #9eabc0; --border: #233149;
    --primary: #5aa2f2; --primary-2: #86bcff; --primary-soft: #14294a;
    --green: #3fcf8e; --green-2: #5ee0a3; --green-soft: #0f2d22;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); --shadow-lg: 0 12px 36px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1220; --surface: #111b2d; --surface-2: #19253b; --text: #e8eef7; --muted: #9eabc0; --border: #233149;
  --primary: #5aa2f2; --primary-2: #86bcff; --primary-soft: #14294a;
  --green: #3fcf8e; --green-2: #5ee0a3; --green-soft: #0f2d22;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); --shadow-lg: 0 12px 36px rgba(0,0,0,.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
/* Telugu: dedicated font, larger size and taller lines so vowel signs never clip. */
html[lang="te"] body { font-family: "Noto Sans Telugu", "Plus Jakarta Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.8; }
html[lang="te"] h1, html[lang="te"] h2, html[lang="te"] h3 { line-height: 1.5; letter-spacing: 0; }
html[lang="te"] .brand, html[lang="te"] .brand-light { font-family: "Plus Jakarta Sans", sans-serif; }

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.55rem, 5vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.2rem, 3.4vw, 1.55rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 56px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: .95rem; border: 1.5px solid transparent;
  padding: 11px 18px; border-radius: 12px; cursor: pointer; transition: .18s ease; min-height: 48px;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--blue-900); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-light { background: #fff; color: var(--blue-700); }
.btn-light:hover { color: var(--green-700); }
.btn-block { width: 100%; margin-bottom: 10px; text-align: center; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; width: 100%; }
.link { font-weight: 700; font-size: .92rem; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.08rem; min-width: 0; }
.brand:hover { color: var(--text); }
.brand strong { color: var(--primary); font-weight: 800; }
.brand span { line-height: 1.2; white-space: nowrap; }
.brand small { display: none; font-size: .7rem; color: var(--green); font-weight: 600; margin-top: 1px; }
.main-nav { display: none; }
.header-actions { display: flex; gap: 6px; margin-left: auto; align-items: center; }
/* Segmented language switch: తెలుగు | English */
.lang-toggle { display: inline-flex; align-items: center; padding: 3px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow); }
.lang-toggle a {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 13px; border-radius: 99px;
  font-size: .86rem; font-weight: 600; color: var(--text); white-space: nowrap; transition: background .18s, color .18s;
  font-family: "Plus Jakarta Sans", sans-serif; line-height: 1;
}
.lang-toggle a[lang="te"] { font-family: "Noto Sans Telugu", sans-serif; }
.lang-toggle a:hover { color: var(--primary); }
.lang-toggle a.on { background: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(11, 87, 164, .3); }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.hide-sm { display: none; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
.saved-count { background: var(--green); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 99px; margin-left: 2px; }
.search-drawer { border-top: 1px solid var(--border); padding: 12px 0; background: var(--surface); }

/* ---------- Search ---------- */
.search-box {
  position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 14px; padding: 5px 5px 5px 14px;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-box > svg { color: var(--muted); flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); padding: 10px 2px; }
.search-box .btn { min-height: 44px; padding: 10px 16px; }
.search-box.narrow { max-width: 480px; margin: 24px auto; }
.filter-box { max-width: 520px; margin-bottom: 20px; padding: 4px 14px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; text-align: left;
}
.suggest a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.hl { background: var(--primary-soft); }
.suggest small { color: var(--muted); font-size: .78rem; text-align: right; }
.suggest .s-type { font-size: .7rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .05em; display: block; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 55%, #0f6f8f 100%); color: #fff; padding: 36px 0 76px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 160, 95, .45), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; color: #d6f5e6; background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 99px; margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 6.5vw, 3.2rem); margin-bottom: 14px; }
.grad { color: #7ee2b0; display: inline-block; }
.lead { font-size: clamp(1rem, 2.4vw, 1.12rem); color: #d7e5f7; max-width: 680px; margin: 0 auto 24px; }
.hero-search { max-width: 680px; margin: 0 auto; border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.hero-search > svg { display: none; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hero-chips a { background: rgba(255,255,255,.12); color: #fff; padding: 8px 14px; border-radius: 99px; font-size: .9rem; font-weight: 600; border: 1px solid rgba(255,255,255,.18); }
.hero-chips a:hover { background: #fff; color: var(--blue-700); }

/* ---------- Quick tiles ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -48px; position: relative; z-index: 2; }
.quick-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); color: var(--text); transition: .2s;
}
.quick-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.quick-tile strong { display: block; line-height: 1.3; }
.quick-tile small { color: var(--muted); font-size: .8rem; line-height: 1.35; display: block; margin-top: 2px; }
.q-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; }
.q-blue { background: var(--primary-soft); }
.q-green { background: var(--green-soft); }

/* ---------- Sections ---------- */
.section { padding-top: 36px; padding-bottom: 4px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }

/* Service tiles (Aadhaar, PAN, voter ID…) */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: .2s; position: relative;
}
.service-tile::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--green); opacity: 0; transition: .2s; }
.service-tile:hover { border-color: var(--green); color: var(--text); box-shadow: var(--shadow); }
.service-tile:hover::before { opacity: 1; }
.service-tile strong { font-size: .97rem; line-height: 1.35; }
.service-tile small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.svc-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); font-size: 1.35rem; flex-shrink: 0; }
.svc-icon.big { width: 56px; height: 56px; font-size: 1.6rem; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: .2s; }
.cat-tile:hover { border-color: var(--primary); color: var(--text); box-shadow: var(--shadow); }
.cat-icon { font-size: 1.6rem; margin-bottom: 4px; }
.cat-tile strong { font-size: .95rem; line-height: 1.35; }
.cat-tile small { color: var(--green); font-weight: 650; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.scheme-card { padding: 18px; display: flex; flex-direction: column; border-top: 4px solid var(--primary); transition: .2s; }
.scheme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.scheme-card h3 { margin: 10px 0 6px; }
.scheme-card h3 a { color: var(--text); }
.scheme-card h3 a:hover { color: var(--primary); }
.scheme-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.card-top { display: flex; align-items: center; gap: 8px; }
.cat-badge { font-size: .78rem; color: var(--green); background: var(--green-soft); font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.card-link { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; }
.chip-blue { background: var(--primary-soft); color: var(--primary); }
.chip-green { background: var(--green-soft); color: var(--green); }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.save-btn { margin-left: auto; background: none; border: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; color: var(--muted); }
.save-btn:hover { background: var(--surface-2); color: var(--primary); }
.save-btn svg, [data-save] svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
[data-save].saved svg { fill: var(--green); stroke: var(--green); }
.save-btn.saved { color: var(--green); }

/* ---------- Band ---------- */
.band { margin-top: 44px; background: linear-gradient(120deg, var(--green-700), var(--green-500)); color: #fff; }
.band-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px 16px; }
.band h2 { color: #fff; }
.band p { margin: 0; color: #e3f7ec; max-width: 640px; }

/* ---------- Certificates ---------- */
.cert-card { padding: 18px; color: var(--text); transition: .2s; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--green); }
.cert-card:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cert-card h3 { margin: 0; }
.cert-card p { color: var(--muted); font-size: .92rem; flex: 1; margin: 0; }
.meta-row { font-size: .82rem; color: var(--primary); font-weight: 650; }
.title-row { display: flex; align-items: center; gap: 14px; }
.title-row h1 { margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
.steps span { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.steps strong { font-size: 1.02rem; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Page head ---------- */
.page-head { padding: 24px 0 22px; background: linear-gradient(180deg, var(--primary-soft), var(--bg)); border-bottom: 1px solid var(--border); }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.lead-sm { color: var(--muted); font-size: 1.02rem; max-width: 760px; }

/* ---------- Listing & filters ---------- */
.listing { padding-top: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: calc(50% - 6px); flex: 1; }
.field.grow { min-width: 100%; }
.field.actions { flex-direction: row; min-width: 100%; }
.field.actions .btn { flex: 1; }
.field label, .field legend { font-size: .84rem; font-weight: 700; color: var(--muted); }
.field input, .field select {
  font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.pill-row { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pill-row::-webkit-scrollbar { display: none; }
.pill { flex-shrink: 0; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.result-count { margin: 14px 0 12px; color: var(--muted); }
.empty { padding: 32px 20px; text-align: center; }

/* ---------- Detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
.detail-side { order: -1; }
.block { padding: 18px; margin-bottom: 14px; }
.block h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.block-head h2 { margin: 0; }
.progress-pill { font-size: .8rem; font-weight: 700; background: var(--green-soft); color: var(--green); padding: 4px 10px; border-radius: 99px; }
.progress-pill:empty { display: none; }
.b-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.ticks, .numbered { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px dashed var(--border); }
.ticks li:last-child { border: 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: .78rem; font-weight: 800; display: grid; place-items: center; }
.numbered { counter-reset: n; }
.numbered li { counter-increment: n; position: relative; padding: 10px 0 10px 44px; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: .15s; min-height: 48px; }
.checklist label:hover { background: var(--surface-2); }
.checklist label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.checklist input { width: 22px; height: 22px; accent-color: var(--green); margin: 2px 0 0; flex-shrink: 0; }
.checklist input:checked + span { color: var(--muted); }
.notice { background: var(--primary-soft); border-left: 4px solid var(--primary); padding: 14px 16px; border-radius: 10px; font-size: .92rem; margin: 14px 0; }
.side-card { padding: 18px; }
.side-card h3 { margin-bottom: 12px; }
.sticky { position: static; }
.helpline { display: block; margin: 12px 0; padding: 12px; background: var(--green-soft); border-radius: 12px; text-align: center; font-size: .9rem; color: var(--text); }
.helpline strong { font-size: 1.1rem; color: var(--green); }
.side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.side-actions .btn { padding: 10px; }
.toc { display: none; }
.facts { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.fact { padding: 14px 16px; }
.fact small { display: block; color: var(--green); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Required documents / PDF ---------- */
.btn-pdf { width: 100%; margin: 12px 0 4px; }
.btn-pdf svg, .pdf-btn svg, .all-pdf .btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.side-card .btn-pdf { margin: 0 0 10px; }
.docs-tile { grid-column: 1 / -1; flex-direction: row; align-items: center; border-style: dashed; border-color: var(--green); background: var(--green-soft); }
.docs-tile strong { display: block; }
.docs-tile .docs-arrow { margin-left: auto; font-weight: 800; color: var(--green); font-size: 1.2rem; }
.all-pdf { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 20px; color: var(--text); border: 1.5px solid var(--green); }
.all-pdf:hover { color: var(--text); box-shadow: var(--shadow-lg); }
.pdf-badge { width: 48px; height: 56px; flex-shrink: 0; border-radius: 8px; background: #d93b3b; color: #fff; font: 800 .8rem "Plus Jakarta Sans", sans-serif; display: grid; place-items: center; letter-spacing: .04em; }
.doc-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.doc-row .s-body { color: var(--text); }
.doc-row .s-body:hover strong { color: var(--primary); }
.pdf-btn { min-height: 44px; padding: 8px 14px; flex-shrink: 0; }
@media (min-width: 1000px) { .doc-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Status ---------- */
.status-group { margin-bottom: 28px; }
.status-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.status-item { display: flex; align-items: center; gap: 14px; padding: 14px; color: var(--text); transition: .2s; }
.status-item:hover { border-color: var(--green); color: var(--text); }
.s-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.s-body { flex: 1; min-width: 0; }
.s-body strong { display: block; font-size: .96rem; line-height: 1.4; }
.s-body small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.s-body em { font-style: normal; font-size: .76rem; color: var(--primary); font-weight: 600; }
.s-arrow { color: var(--muted); font-size: 1.1rem; }

/* ---------- Eligibility ---------- */
.elig-layout { padding-top: 20px; }
.elig-form { padding: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
.form-grid .field { min-width: 0; }
.toggles { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.toggles legend { margin-bottom: 8px; }
.toggles label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .94rem; min-height: 48px; }
.toggles label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.toggles input { accent-color: var(--green); width: 20px; height: 20px; }

/* ---------- Prose ---------- */
.prose { padding: 22px; margin-top: 20px; max-width: 860px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin-top: 1.4em; }
.notfound { padding-top: 64px; padding-bottom: 64px; }
.big-emoji { font-size: 4rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--blue-900); color: #c9d8ec; padding: 40px 0 20px; border-top: 4px solid var(--green-500); }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer a { color: #c9d8ec; display: block; padding: 4px 0; font-size: .92rem; }
.site-footer a:hover { color: #7ee2b0; }
.site-footer .muted { color: #9fb5d3; font-size: .92rem; margin-top: 12px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.brand-light, .brand-light:hover { color: #fff; display: flex !important; }
.brand-light strong { color: #7ee2b0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; }
.footer-bottom p { font-size: .82rem; color: #9fb5d3; margin: 0; }

/* ---------- Bottom nav (mobile app bar) ---------- */
.bottom-nav {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(14, 27, 44, .08);
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 650; color: var(--muted); padding: 6px 0; border-radius: 10px; min-height: 52px; justify-content: center; text-align: center; line-height: 1.2; }
.bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active svg { stroke: var(--green); }
.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translate(-50%, 200%); background: var(--blue-900); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-size: .92rem; font-weight: 600; z-index: 90; transition: transform .25s ease, opacity .25s ease; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .brand small { display: block; }
  .hide-sm { display: grid; }
  .hero { padding: 52px 0 88px; }
  .hero-search { padding: 7px 7px 7px 18px; }
  .hero-search > svg { display: block; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .quick-tile { flex-direction: row; align-items: center; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .status-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .toggles { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .toggles legend { width: 100%; }
  .btn-lg { width: auto; }
  .field { min-width: 180px; }
  .field.grow { min-width: 240px; flex: 2; }
  .field.actions { min-width: auto; flex: 0; }
  .block, .elig-form { padding: 24px; }
  .prose { padding: 32px; }
  .band-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 16px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
  :root { --header-h: 70px; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .toast { bottom: 24px; }
  .header-row { gap: 20px; }
  .main-nav { display: flex; gap: 2px; margin-left: auto; }
  .main-nav a { color: var(--muted); font-weight: 600; font-size: .94rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
  .main-nav a:hover { color: var(--text); background: var(--surface-2); }
  .main-nav a.active { color: var(--primary); background: var(--primary-soft); }
  .header-actions { margin-left: 8px; }
  .hero { padding: 68px 0 100px; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { display: block; padding: 22px; }
  .steps span { margin-bottom: 12px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-top: 28px; }
  .detail-side { order: 0; }
  .sticky { position: sticky; top: calc(var(--header-h) + 16px); }
  .toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
  .toc a { font-size: .8rem; padding: 5px 10px; background: var(--surface-2); border-radius: 99px; color: var(--muted); font-weight: 600; }
  .form-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding-top: 48px; }
  .page-head { padding: 32px 0 28px; }
}
/* ---------- Large / full-HD screens ---------- */
@media (min-width: 1400px) {
  body { font-size: 17px; }
  html[lang="te"] body { font-size: 18px; }
  .hero { padding: 84px 0 116px; }
  .hero-inner { max-width: 1000px; }
  .hero-search { max-width: 780px; }
  .lead { max-width: 780px; }
  .quick-tile { padding: 20px 22px; }
  .q-icon { width: 54px; height: 54px; font-size: 1.55rem; }
  .service-tile { padding: 20px; }
  .cat-grid { grid-template-columns: repeat(7, 1fr); }
  .status-list, .doc-list { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
  .scheme-card, .cert-card { padding: 22px; }
  .card-grid { gap: 18px; }
  .lead-sm { max-width: 900px; }
  .prose { max-width: 1000px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
