/* Helper — shared design system. Apple-style, mobile-first, light + dark.
   Home / legal pages use real dark tokens. Tool pages (html.is-tool) keep light tokens and get
   their dark look from one colour-inversion filter, because the tool UIs use fixed light colours. */

:root {
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #fbfbfd;
  --text: #1d1d1f; --text-2: #6e6e73; --text-3: #86868b;
  --sep: rgba(60, 60, 67, 0.14);
  --accent: #0071e3; --accent-press: #0062c4; --accent-soft: #e8f2fe;
  --glass: rgba(251, 251, 253, 0.8);
  --field: rgba(118, 118, 128, 0.12);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --c-photo: #0a84ff; --c-print: #5e5ce6; --c-pdf: #ff3b30; --c-type: #ff9500; --c-video: #af52de; --c-safe: #34c759;
  --radius-l: 22px; --radius-m: 14px; --radius-s: 9px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, "Noto Sans Devanagari", "Noto Sans", sans-serif;
  --tabbar-h: 58px;
  color-scheme: light;
}
:root[data-theme="dark"]:not(.is-tool) {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e;
  --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #8e8e93;
  --sep: rgba(84, 84, 88, 0.55);
  --accent: #2997ff; --accent-press: #0a84ff; --accent-soft: rgba(41, 151, 255, 0.16);
  --glass: rgba(22, 22, 23, 0.8);
  --field: rgba(118, 118, 128, 0.24);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---- language (both languages are in the HTML; this shows one) ---- */
html[lang="hi"] [data-l="en"], html:not([lang="hi"]) [data-l="hi"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 112px); background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.47;
  letter-spacing: -0.022em; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
html[lang="hi"] body { letter-spacing: 0; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(14px, 3.5vw, 32px); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 90; padding-top: env(safe-area-inset-top, 0px);
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--sep);
}
.topbar .wrap-wide { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; min-height: 44px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { display: none; font-size: 12px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-left: 2px; }
.top-actions { display: flex; align-items: center; gap: 8px; }

.nav-links { display: none; align-items: center; gap: 2px; margin-left: 18px; flex: 1; }
.nav-link, .dd > button {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer; color: var(--text);
  font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; min-height: 40px;
}
.nav-link:hover, .dd > button:hover, .dd.open > button { background: var(--field); }
.nav-link[aria-current="page"] { color: var(--accent); }
.dd { position: relative; }
.dd > button svg { width: 15px; height: 15px; transition: transform 0.2s; }
.dd.open > button svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 8px; display: none;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border: 0.5px solid var(--sep); z-index: 100;
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; } /* bridges the gap, so the mouse stays "inside" on its way to the panel */
.dd.open > .dd-panel { display: block; }
/* Explore tools: centred on the screen (not under the button), tools in 4 columns, calculators in a band below.
   Never taller than the screen — it scrolls inside instead. */
.dd-panel.mega { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 62px); left: 50%; transform: translateX(-50%); width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 78px); overflow-y: auto; overscroll-behavior: contain; padding: 14px; }
.dd.open > .dd-panel.mega { display: block; }
.mega-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 14px; }
.mega-band { margin-top: 10px; padding: 12px 10px 6px; border-radius: 14px; background: var(--field); }
.mega-band-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 6px 6px; }
.mega-band-head h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.mega-band-head .count { font-size: 11.5px; font-weight: 700; color: var(--text-2); background: var(--surface); border-radius: 99px; padding: 1px 8px; }
.mega-all { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--accent); padding: 4px 6px; border-radius: 8px; }
.mega-all:hover { background: var(--surface); }
.mega-all svg { width: 15px; height: 15px; }
.mega-band-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 14px; }
.mega-band h5 { margin: 6px 8px 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.dd-item.sm { padding: 6px 8px; font-size: 14px; }
.dd-item.sm .ico { width: 26px; height: 26px; border-radius: 7px; }
.dd-item.sm:hover, .dd-item.sm:focus-visible { background: var(--surface); }
/* smaller laptops: keep all 4 columns, drop the grey second line so the calculators band stays on screen */
@media (max-width: 1180px) { .mega-top .dd-item small { display: none; } .mega-top .dd-item { padding: 7px 8px; } .dd-item.sm { padding: 5px 8px; } .mega-band { margin-top: 8px; padding-top: 10px; } }
.dd-group h4 { margin: 4px 8px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.25; }
.dd-item:hover, .dd-item:focus-visible { background: var(--field); }
.dd-item .ico { width: 28px; height: 28px; border-radius: 8px; }
.dd-item .ico svg { width: 16px; height: 16px; }
.dd-item small { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); }

.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--field); }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; min-height: 32px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--field); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Hero / search ---------- */
.hero { padding: 36px 0 8px; text-align: center; }
.hero h1 { margin: 0 auto; max-width: 15ch; font-size: clamp(34px, 9vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.035em; }
html[lang="hi"] .hero h1 { letter-spacing: -0.01em; line-height: 1.22; max-width: 16ch; }
.hero p { margin: 14px auto 0; max-width: 34ch; color: var(--text-2); font-size: clamp(17px, 4.4vw, 21px); line-height: 1.4; }
.search { position: relative; margin: 24px auto 0; max-width: 560px; }
.search > svg, .search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.search input { width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--field); padding: 0 40px 0 38px; font: inherit; font-size: 17px; color: var(--text); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--text-3); }
.search input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); display: none; place-items: center; cursor: pointer; }
.search.has-text .clear { display: grid; }
.stat-line { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--text-2); min-height: 21px; }
.stat-line b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.sec { margin-top: 36px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 12px; }
.sec-head h2 { margin: 0; font-size: 24px; line-height: 1.17; font-weight: 700; letter-spacing: -0.025em; }

/* ---------- Featured tiles ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; padding: 20px; border-radius: var(--radius-l); color: #fff; overflow: hidden; background: var(--tile, var(--c-photo)); isolation: isolate; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 55%); }
.tile .tile-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; }
.tile .tile-icon svg { width: 24px; height: 24px; }
.tile h3 { margin: 18px 0 4px; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.tile p { margin: 0; font-size: 15px; line-height: 1.35; opacity: 0.9; max-width: 26ch; }
.tile .open { align-self: flex-start; margin-top: 16px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: #1d1d1f; font-size: 15px; font-weight: 600; }
.tile:active { transform: scale(0.98); }
@media (prefers-reduced-motion: no-preference) { .tile { transition: transform 0.18s ease; } }

/* ---------- Filter chips ---------- */
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); margin: 28px -20px 0; padding: 10px 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; cursor: pointer; min-height: 38px; padding: 7px 15px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 500; box-shadow: 0 0 0 0.5px var(--sep); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }

/* ---------- Inset lists ---------- */
.group-title { margin: 26px 16px 8px; font-size: 13px; font-weight: 400; color: var(--text-2); }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius-m); overflow: hidden; }
.row { position: relative; }
.row a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px 10px 16px; color: var(--text); }
.row a:hover { background: var(--field); }
.row + .row a::before { content: ""; position: absolute; top: 0; right: 0; left: 62px; border-top: 0.5px solid var(--sep); }
.ico { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--ic, var(--c-photo)); }
.ico svg { width: 19px; height: 19px; }
.row-text { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 17px; line-height: 1.3; }
.row-sub { display: block; font-size: 14px; line-height: 1.35; color: var(--text-2); margin-top: 1px; }
.chev { flex: none; width: 18px; height: 18px; color: var(--text-3); opacity: 0.7; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; vertical-align: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--c-type); background: color-mix(in srgb, var(--c-type) 15%, transparent); }
.empty { display: none; padding: 40px 20px; text-align: center; color: var(--text-2); }
.empty.show { display: block; }

/* ---------- Privacy panel ---------- */
.panel { background: var(--surface); border-radius: var(--radius-l); padding: 24px 20px; }
.panel h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.025em; }
.panel > p { margin: 0 0 18px; color: var(--text-2); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .ico { --ic: var(--c-safe); }
.facts strong { display: block; font-weight: 600; }
.facts div > span { display: block; color: var(--text-2); font-size: 15px; }

/* ---------- Article pages ---------- */
.doc { max-width: 680px; margin: 0 auto; padding: 32px 20px 24px; }
.doc h1 { font-size: clamp(32px, 8vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 8px; }
.doc h2 { font-size: 21px; letter-spacing: -0.02em; margin: 30px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .note, .note { background: var(--surface); border-radius: var(--radius-m); padding: 16px 18px; color: var(--text-2); font-size: 15px; }

/* ---------- Tool pages ---------- */
.crumbs { max-width: 1200px; margin: 0 auto; padding: 14px clamp(14px, 4vw, 32px) 0; font-size: 13.5px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--text); font-weight: 600; }
.crumbs svg { width: 14px; height: 14px; opacity: 0.6; }

.about { max-width: 1200px; margin: 0 auto; padding: 8px clamp(14px, 4vw, 32px) 40px; }
.about-card { background: var(--surface); border: 1px solid var(--sep); border-radius: 18px; padding: clamp(18px, 3vw, 32px); }
.about h2 { margin: 0 0 10px; font-size: clamp(20px, 3.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.about h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 700; }
.about h4 { margin: 14px 0 4px; font-size: 15px; font-weight: 700; }
.about p, .about li { font-size: 15px; line-height: 1.75; color: var(--text-2); }
.about p { margin: 0 0 14px; }
.about ul { margin: 0 0 16px; padding-left: 22px; }
.about li { margin-bottom: 6px; }
.about strong { color: var(--text); }
.more-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.more-tools a { font-size: 13.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 9px 14px; }
.more-tools a:hover { filter: brightness(0.96); }

#sk { display: none; min-height: 60vh; place-items: center; }
html.sk:not(.ready) #sk { display: grid; }
html.sk:not(.ready) .about, html.sk:not(.ready) .crumbs { visibility: hidden; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--field); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tool UI (inline-styled, generated) — friendlier sizes only; logic untouched */
.is-tool body { font-size: 17px; }
.is-tool #dc-root, .is-tool #dc-root > .sc-host { height: auto !important; min-height: 0 !important; }
.is-tool #dc-root > div { min-height: 0 !important; }
.is-tool main { animation: none !important; }
.is-tool #dc-root main select, .is-tool #dc-root main input[type=text], .is-tool #dc-root main input[type=number] { min-height: 46px; }
.is-tool #dc-root main input[type=range] { min-height: 32px; accent-color: #0071e3; }
.is-tool #dc-root main input[type=checkbox], .is-tool #dc-root main input[type=radio] { accent-color: #0071e3; width: 20px; height: 20px; }
.is-tool #dc-root main h1 { letter-spacing: -0.03em !important; line-height: 1.15 !important; }
html[lang="hi"].is-tool #dc-root main h1 { letter-spacing: 0 !important; line-height: 1.3 !important; }
.is-tool #dc-root main [style*="dashed"] { border-color: #0071e3 !important; background: #f2f7ff !important; }
.is-tool #dc-root main button { touch-action: manipulation; }

/* ---------- Tool skin: Apple-style look for the generated tool UIs (classes added by tool-skin.js) ---------- */
html.is-tool body { font-family: var(--font) !important; background: #f5f5f7 !important; }
.is-tool #dc-root h1 { font-size: clamp(28px, 6vw, 40px) !important; font-weight: 700 !important; letter-spacing: -0.03em !important; line-height: 1.1 !important; }
html[lang="hi"].is-tool #dc-root h1 { line-height: 1.3 !important; letter-spacing: 0 !important; }
.is-tool #dc-root h1 + div { font-size: 16px !important; color: #6e6e73 !important; line-height: 1.5 !important; margin-top: 8px !important; max-width: 70ch; }
.is-tool #dc-root main { gap: 22px !important; padding-top: 18px !important; }
.is-tool #dc-root aside { top: 76px !important; }

.is-tool #dc-root .ui-card { background: #fff !important; border: 0 !important; border-radius: 24px !important; box-shadow: 0 0 0 0.5px rgba(60, 60, 67, 0.14), 0 8px 28px rgba(0, 0, 0, 0.05) !important; }
.is-tool #dc-root .ui-label { font-size: 17px !important; font-weight: 700 !important; letter-spacing: -0.015em !important; text-transform: none !important; color: #1d1d1f !important; }
html[lang="hi"].is-tool #dc-root .ui-label { letter-spacing: 0 !important; }

.is-tool #dc-root .ui-primary { border: 0 !important; border-radius: 14px !important; min-height: 52px !important; font-weight: 600 !important; letter-spacing: -0.01em !important; box-shadow: none !important; transition: filter 0.15s, transform 0.1s !important; }
.is-tool #dc-root .ui-primary:not(:disabled):hover { filter: brightness(1.06); }
.is-tool #dc-root .ui-primary:not(:disabled):active { transform: scale(0.985); }
.is-tool #dc-root .ui-secondary { border: 0 !important; background: #e8f2fe !important; color: #0071e3 !important; border-radius: 12px !important; font-weight: 600 !important; }
.is-tool #dc-root .ui-secondary:hover { background: #dbeafd !important; }
.is-tool #dc-root .ui-choice { border-width: 1px !important; border-radius: 14px !important; box-shadow: none !important; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s !important; }
.is-tool #dc-root .ui-choice:hover { border-color: #0071e3 !important; }
.is-tool #dc-root .ui-choice.on { border-width: 1px !important; box-shadow: 0 0 0 1px #0071e3 inset !important; }
.is-tool #dc-root .ui-tab { border-width: 1px !important; border-radius: 18px !important; box-shadow: 0 0 0 0.5px rgba(60, 60, 67, 0.14) !important; transition: box-shadow 0.15s, transform 0.1s !important; }
.is-tool #dc-root .ui-tab:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important; }
.is-tool #dc-root .ui-tab:active { transform: scale(0.99); }

.is-tool #dc-root .ui-field { background: rgba(118, 118, 128, 0.1) !important; border: 0 !important; border-radius: 12px !important; min-height: 46px; padding-left: 14px !important; padding-right: 14px !important; font-size: 16px !important; color: #1d1d1f !important; }
.is-tool #dc-root textarea.ui-field { padding: 12px 14px !important; }
.is-tool #dc-root .ui-field:focus { outline: 2px solid #0071e3 !important; outline-offset: 0 !important; background: #fff !important; }

.is-tool #dc-root .ui-drop { border: 1.5px dashed rgba(0, 113, 227, 0.5) !important; border-radius: 26px !important; background: linear-gradient(180deg, #f6faff, #eaf3ff) !important; transition: background 0.2s, border-color 0.2s !important; }
.is-tool #dc-root .ui-drop:hover { border-color: #0071e3 !important; background: linear-gradient(180deg, #eef6ff, #dfecff) !important; }

/* ---------- Footer ---------- */
.foot { margin-top: 40px; padding: 36px 0 28px; border-top: 0.5px solid var(--sep); font-size: 14px; color: var(--text-2); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .brand { font-size: 21px; }
.foot-brand .brand img { width: 34px; height: 34px; }
.foot-tag { margin: 6px 0 14px; font-size: 15px; color: var(--text-2); max-width: 36ch; }
.foot-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.foot-trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 0.5px var(--sep); font-size: 13px; font-weight: 500; color: var(--text); }
.foot-trust svg { width: 15px; height: 15px; color: var(--c-safe); }
.foot-col h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--text); }
.foot-col .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: var(--text-2); font-size: 14px; line-height: 1.35; display: inline-block; transition: color 0.15s, transform 0.15s; }
.foot-col a:hover { color: var(--accent); transform: translateX(2px); }
.foot-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 32px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--surface); box-shadow: 0 0 0 0.5px var(--sep); }
.foot-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.foot-note p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); max-width: 90ch; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 20px; font-size: 13px; color: var(--text-3); }
.to-top { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--field); color: var(--text); font-weight: 600; font-size: 13px; }
.to-top:hover { background: var(--accent-soft); color: var(--accent); }
.to-top svg { width: 15px; height: 15px; }
@media (min-width: 700px) {
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .foot-grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px 32px; }
  .foot-brand { grid-column: auto; }
}

/* ---------- Bottom tab bar (phones / small tablets) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0.5px solid var(--sep); }
.tabbar ul { list-style: none; margin: 0; padding: 0; height: var(--tabbar-h); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tabbar a, .tabbar button { height: 100%; width: 100%; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"], .tabbar button[aria-expanded="true"] { color: var(--accent); }

@media (min-width: 700px) {
  .hero { padding-top: 64px; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .tile { min-height: 240px; padding: 26px; }
  .filters { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
  .panel { padding: 32px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { flex-direction: column; }
}
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .nav-links { display: flex; }
  .brand small { display: inline; }
  .rail { grid-template-columns: repeat(4, 1fr); }
  .tile h3 { font-size: 22px; }
}
@media (max-width: 380px) { .seg button { padding: 5px 8px; } }

/* ---------- Dark mode for tool pages ----------
   The tool UIs have fixed light colours, so the whole page is inverted once (the filter sits on <html>, which keeps
   position:fixed popups working). To end up with the same colours as the home page's dark theme, the dark values below
   are written "before inversion": #fff → pure black page, #e3e3e1 → #1c1c1e cards, #d3d3d1 → #2c2c2e inner blocks,
   #0a0a08 → #f5f5f7 text. White shadows turn into normal dark shadows. Pictures are inverted back. */
html.is-tool { transition: none; }
html.is-tool[data-theme="dark"] {
  filter: invert(1) hue-rotate(180deg); background: #fff;
  --bg: #fff; --surface: #e3e3e1; --surface-2: #d3d3d1;
  --text: #0a0a08; --text-2: #5e5e59; --text-3: #71716c;
  --sep: rgba(171, 171, 167, 0.55); --field: rgba(137, 137, 127, 0.24);
  --glass: rgba(233, 233, 232, 0.8); --shadow: 0 8px 30px rgba(255, 255, 255, 0.6);
}
html.is-tool[data-theme="dark"] img, html.is-tool[data-theme="dark"] canvas, html.is-tool[data-theme="dark"] video,
html.is-tool[data-theme="dark"] iframe, html.is-tool[data-theme="dark"] [data-keep], html.is-tool[data-theme="dark"] [style*="url("],
html.is-tool[data-theme="dark"] .ico, html.is-tool[data-theme="dark"] .tile, html.is-tool[data-theme="dark"] .emo { filter: invert(1) hue-rotate(180deg); }
html.is-tool[data-theme="dark"] body { background: #fff !important; }
/* chrome with fixed colours */
html.is-tool[data-theme="dark"] .qn-fab { background: rgba(226, 226, 224, 0.92); color: #000; box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25); }
html.is-tool[data-theme="dark"] .seg button[aria-pressed="true"] { box-shadow: 0 0 0 0.5px var(--sep); }
/* old tool UI (tagged by tool-skin.js) */
html.is-tool[data-theme="dark"] #dc-root .ui-card { background: #e3e3e1 !important; box-shadow: 0 0 0 0.5px rgba(171, 171, 167, 0.55) !important; }
html.is-tool[data-theme="dark"] #dc-root .ui-label { color: #0a0a08 !important; }
html.is-tool[data-theme="dark"] #dc-root h1 + div { color: #5e5e59 !important; }
html.is-tool[data-theme="dark"] #dc-root .ui-field { background: rgba(137, 137, 127, 0.24) !important; color: #0a0a08 !important; }
html.is-tool[data-theme="dark"] #dc-root .ui-field:focus { background: #d3d3d1 !important; }
/* white option buttons inside cards would turn into black holes: give them the inner-block grey instead */
html.is-tool[data-theme="dark"] #dc-root button[style*="background: rgb(255, 255, 255)"]:not(.on),
html.is-tool[data-theme="dark"] #dc-root .ui-choice:not(.on) { background: #d3d3d1 !important; }
html.is-tool[data-theme="dark"] #dc-root .ui-tab { box-shadow: 0 0 0 0.5px rgba(171, 171, 167, 0.55) !important; }
html.is-tool[data-theme="dark"] #dc-root .ui-tab:hover { box-shadow: 0 0 0 0.5px rgba(171, 171, 167, 0.55), 0 6px 18px rgba(255, 255, 255, 0.3) !important; }
/* new tool UI (native.css) */
html.is-tool[data-theme="dark"] .nt-card { background: #e3e3e1; box-shadow: 0 0 0 0.5px rgba(171, 171, 167, 0.55); }
html.is-tool[data-theme="dark"] .nt-drop .big, html.is-tool[data-theme="dark"] .nt-pick .ic { background: #c3c3c1; box-shadow: none; }
html.is-tool[data-theme="dark"] .nt-seg, html.is-tool[data-theme="dark"] .nt-steps { background: #d3d3d1; }
html.is-tool[data-theme="dark"] .nt-seg button[aria-pressed="true"], html.is-tool[data-theme="dark"] .nt-steps span[aria-current="step"] { background: #a9a9a7; color: #0a0a08; box-shadow: none; }
html.is-tool[data-theme="dark"] .nt-note, html.is-tool[data-theme="dark"] .nt-pick, html.is-tool[data-theme="dark"] .nt-file,
html.is-tool[data-theme="dark"] .nt-tbl th, html.is-tool[data-theme="dark"] .nt-compare, html.is-tool[data-theme="dark"] .nt-ib { background: #d3d3d1; }
html.is-tool[data-theme="dark"] .nt-pick:hover, html.is-tool[data-theme="dark"] .nt-ib:hover, html.is-tool[data-theme="dark"] .nt-file .th { background: #c3c3c1; }
html.is-tool[data-theme="dark"] .nt-ib { box-shadow: 0 0 0 0.5px rgba(171, 171, 167, 0.55); }
html.is-tool[data-theme="dark"] .nt-f input:focus, html.is-tool[data-theme="dark"] .nt-f select:focus, html.is-tool[data-theme="dark"] .nt-f textarea:focus, html.is-tool[data-theme="dark"] .nt-input:focus { background: #d3d3d1; }
html.is-tool[data-theme="dark"] .nt-btn { box-shadow: none; } /* coloured glows would turn orange when inverted */

/* ---------- Tool intro: usage + colourful tips ---------- */
.intro { max-width: 1200px; margin: 0 auto; padding: 14px clamp(14px, 4vw, 32px) 0; display: flex; flex-direction: column; gap: 12px; }
.intro-top { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--text); box-shadow: 0 0 0 0.5px var(--sep); }
.intro-pill svg { width: 15px; height: 15px; }
.intro-pill.uses svg { color: #ff9500; }
.intro-pill.safe svg { color: var(--c-safe); }
.uses-tag { display: inline-flex; align-items: center; gap: 3px; color: #c26a00; font-weight: 600; }
.uses-tag svg { width: 12px; height: 12px; }

/* ---------- Feedback card (every page) ---------- */
.fb { margin-top: 36px; }
.fb-card { background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border-radius: 24px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 0 0 0.5px var(--sep); text-align: center; }
.fb h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.fb p { margin: 0 0 18px; color: var(--text-2); font-size: 15px; }
.fb-yesno { display: flex; justify-content: center; gap: 12px; }
.fb-vote { border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 600; color: var(--text); background: var(--surface); border-radius: 999px; min-height: 52px; min-width: 120px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 0 0 0.5px var(--sep); }
.fb-vote .emo { font-size: 24px; line-height: 1; }
.fb-vote[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.fb-vote:disabled { cursor: default; }
.fb-vote:focus-visible, .fb-skip:focus-visible, .fb-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .fb-vote { transition: transform 0.15s; } .fb-vote:active { transform: scale(0.96); } }
.fb .fb-err { margin: 12px 0 0; color: #ff3b30; font-size: 14px; }
.fb-form h3 { margin-bottom: 16px; }
.fb-more { margin: 0 auto; max-width: 480px; display: flex; flex-direction: column; gap: 10px; }
.fb .fb-saved { margin: 0 0 4px; color: var(--text); font-weight: 600; }
.fb-more textarea, .fb-more input { width: 100%; border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 0.5px var(--sep); padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); }
.fb-more textarea { resize: vertical; min-height: 84px; }
.fb-more input { min-height: 48px; }
.fb-more textarea:focus, .fb-more input:focus { outline: 2px solid var(--accent); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-acts { display: flex; gap: 10px; }
.fb-send { flex: 1; border: 0; cursor: pointer; border-radius: 14px; min-height: 48px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 16px; }
.fb-send:disabled { opacity: 0.6; }
.fb-skip { border: 0; cursor: pointer; border-radius: 14px; min-height: 48px; padding: 0 18px; background: none; color: var(--accent); font: inherit; font-weight: 600; font-size: 16px; }
.fb-done .emo { font-size: 40px; }
.fb-done h3 { margin-top: 6px; }

/* ---------- Quick navigation: floating button + panel ---------- */
.qn-fab { position: fixed; right: 14px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; padding: 0 16px 0 13px; height: 48px; border-radius: 999px; background: rgba(29, 29, 31, 0.92); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.qn-fab:active { transform: scale(0.96); }
.qn-fab svg { width: 18px; height: 18px; color: #ff9f0a; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 121; max-height: 84vh; overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0; padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--sep); margin: 4px auto 8px; }
.sheet { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.sheet-head, .sheet-search { flex: none; }
.sheet-head { padding-bottom: 2px; }
#qnList { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px; }
.sheet-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.sheet-search { margin: 12px 0 4px; max-width: none; }
.sheet .qn-row a[aria-current="page"] { background: var(--accent-soft); }
body.sheet-open .sheet { transform: none; }
body.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
body.sheet-open { overflow: hidden; }

@media (min-width: 860px) {
  .qn-fab { right: 24px; bottom: 24px; }
  .sheet { left: auto; right: 24px; bottom: 88px; width: 380px; max-height: min(70vh, 640px); border-radius: 22px; padding: 16px 16px 0; box-shadow: var(--shadow); border: 0.5px solid var(--sep); opacity: 0; pointer-events: none; transform: translateY(14px) scale(0.98); transition: transform 0.2s, opacity 0.2s; }
  .sheet::before { display: none; }
  body.sheet-open .sheet { opacity: 1; pointer-events: auto; transform: none; }
  .sheet-backdrop { background: transparent; }
  body.sheet-open { overflow: auto; }
}

@media print { .topbar, .tabbar, .filters, .search, .sheet, .sheet-backdrop { display: none !important; } body { background: #fff; padding: 0; } }

/* ---------- e-Mitra services (Phase 7) ---------- */
.svc-list .crumbs, .svc .crumbs { padding-left: 0; padding-right: 0; }
.svc-list .hero h1 { max-width: none; font-size: clamp(32px, 8vw, 52px); }
.svc-groups { margin-top: 10px; }
.svc-groups .group-title { margin: 26px 4px 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
/* service cards on the list: plain CSS, no images */
.sv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .sv-list { grid-template-columns: 1fr 1fr; gap: 12px; } }
.sv-item[hidden] { display: none; }
.sv-item a { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 16px 14px 16px 16px; border-radius: 18px; background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); transition: box-shadow 0.15s, transform 0.15s; }
.sv-item a:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 10px 26px rgba(0, 0, 0, 0.08); transform: translateY(-1px); }
.sv-item a:active { transform: scale(0.99); }
.sv-item a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.sv-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
:root[data-theme="dark"] .sv-ic { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 24%, transparent); }
.sv-ic svg { width: 24px; height: 24px; }
.sv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sv-name { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.sv-name .badge { vertical-align: 1px; }
.sv-alt { margin-top: 1px; font-size: 13.5px; color: var(--text-2); }
.sv-sum { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sv-tags:empty { display: none; }
.sv-tags span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; background: var(--field); font-size: 12px; font-weight: 500; color: var(--text-2); }
.sv-tags svg { width: 13px; height: 13px; }
.sv-tags .ok { background: rgba(52, 199, 89, 0.13); color: #1f8a3a; }
:root[data-theme="dark"] .sv-tags .ok { color: #30d158; }
.sv-go { flex: none; align-self: center; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--field); color: var(--text-3); transition: background 0.15s, color 0.15s; }
.sv-go svg { width: 18px; height: 18px; }
.sv-item a:hover .sv-go { background: var(--c); color: #fff; }
@media (prefers-reduced-motion: reduce) { .sv-item a { transition: none; } }
.svc-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-disclaimer { display: flex; gap: 10px; align-items: flex-start; margin: 28px 0 8px; }
.svc-disclaimer svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

.svc { max-width: 760px; padding-bottom: 8px; }
.svc-banner { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-m); background: rgba(255, 149, 0, 0.14); color: var(--text); font-size: 15px; }
.svc-banner svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: #ff9500; }
.svc-banner a { margin-left: 4px; color: var(--accent); font-weight: 600; }
.svc-head { padding: 22px 0 6px; }
.svc-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ic, var(--accent)); background: color-mix(in srgb, var(--ic, var(--accent)) 12%, transparent); padding: 4px 10px 4px 8px; border-radius: 999px; }
.svc-cat svg { width: 15px; height: 15px; }
.svc-head h1 { margin: 12px 0 8px; font-size: clamp(30px, 7.5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
html[lang="hi"] .svc-head h1 { line-height: 1.3; letter-spacing: -0.01em; }
.svc-sum { margin: 0; font-size: clamp(17px, 4.4vw, 19px); color: var(--text-2); line-height: 1.5; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 13.5px; color: var(--text-2); }
.svc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.svc-meta svg { width: 15px; height: 15px; }
.svc-meta a { color: var(--accent); }
.svc-fallback { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.svc-fallback svg { width: 16px; height: 16px; flex: none; }

.svc-actions { display: flex; gap: 8px; overflow-x: auto; margin: 18px -20px 0; padding: 2px 20px 4px; scrollbar-width: none; }
.svc-actions::-webkit-scrollbar { display: none; }
.svc-act { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 0 0 0.5px var(--sep); }
.svc-act:hover { background: var(--field); }
.svc-act svg { width: 18px; height: 18px; color: var(--accent); }
.svc-act.wa svg { color: #25d366; }
.svc-act[aria-pressed="true"] { background: var(--accent); color: #fff; }
.svc-act[aria-pressed="true"] svg { color: #fff; }

.svc-facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
@media (min-width: 600px) { .svc-facts { grid-template-columns: 1fr 1fr; } }
.svc-fact { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: var(--radius-m); padding: 16px; }
.svc-fact h2 { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.svc-fact p { margin: 0; font-size: 16px; font-weight: 500; }

.svc-card { margin-top: 14px; background: var(--surface); border-radius: var(--radius-l); padding: 20px 18px; }
.svc-card h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 20px; letter-spacing: -0.02em; }
.svc-card h2 svg { width: 21px; height: 21px; color: var(--accent); flex: none; }
.svc-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.svc-card-h h2 { margin-bottom: 4px; }
.svc-count { font-size: 13.5px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.svc-count.all { color: #1f8a3a; }
:root[data-theme="dark"] .svc-count.all { color: #30d158; }
.svc-hint { margin: 0 0 12px; font-size: 14.5px; color: var(--text-2); }
.svc-hint.small { font-size: 13px; margin: 8px 0 0; }
.svc-check { list-style: none; margin: 0; padding: 0; }
.svc-check li + li { border-top: 0.5px solid var(--sep); }
.svc-check label { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; min-height: 44px; cursor: pointer; font-size: 16px; line-height: 1.4; }
.svc-check input { flex: none; -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 50%; border: 2px solid var(--text-3); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.svc-check input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.svc-check input:checked { background: #34c759; border-color: #34c759; }
.svc-check input:checked::after { opacity: 1; }
.svc-check input:checked + span { color: var(--text-2); }
.svc-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; }
.svc-steps li { counter-increment: st; position: relative; padding: 0 0 16px 44px; font-size: 16px; line-height: 1.5; }
.svc-steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.svc-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: 4px; width: 1px; background: var(--sep); }
.svc-steps li:last-child { padding-bottom: 0; }
.svc-notes p, .svc-notes li { font-size: 16px; }
.svc-notes > :last-child { margin-bottom: 0; }
.svc-video figure { margin: 0; }
.svc-vnote { margin: -4px 0 12px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.svc-video figure + figure { margin-top: 14px; }
.svc-video .yt, .svc-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-m); overflow: hidden; background: #000; position: relative; padding: 0; cursor: pointer; }
.svc-video .yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #fff; display: grid; place-items: center; }
.yt-play svg { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; }
.svc-video figcaption { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.svc-faq details { border-top: 0.5px solid var(--sep); }
.svc-faq details:first-child { border-top: 0; }
.svc-faq summary { list-style: none; cursor: pointer; padding: 13px 28px 13px 0; font-weight: 600; font-size: 16px; position: relative; min-height: 44px; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: "+"; position: absolute; right: 2px; top: 10px; font-size: 22px; font-weight: 400; color: var(--text-3); }
.svc-faq details[open] summary::after { content: "−"; }
.svc-faq details > div { padding: 0 0 14px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

.svc-ask textarea, .svc-ask input { width: 100%; border: 0; border-radius: 12px; background: var(--field); color: var(--text); font: inherit; font-size: 16px; padding: 12px 14px; -webkit-appearance: none; appearance: none; }
.svc-ask textarea { resize: vertical; min-height: 92px; }
.svc-ask input { min-height: 46px; }
.svc-ask textarea:focus, .svc-ask input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); background: var(--surface); }
.ask-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
@media (min-width: 600px) { .ask-row { grid-template-columns: 1fr 1fr; } }
.ask-err { margin: 10px 0 0; color: #d70015; font-size: 14px; font-weight: 500; }
:root[data-theme="dark"] .ask-err { color: #ff6961; }
.svc-ask .svc-btn { margin-top: 14px; }
.ask-done { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 4px; text-align: center; }
.ask-done[hidden] { display: none; }
.ask-done > span:first-child { font-size: 32px; }
.ask-done > span:last-child { color: var(--text-2); font-size: 15px; }
.svc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.svc-btn:hover { background: var(--accent-press); }
.svc-btn:disabled { opacity: 0.6; cursor: default; }
.svc-btn svg { width: 18px; height: 18px; }
.svc-official { margin-top: 22px; text-align: center; }
.svc-official .svc-btn { width: 100%; max-width: 420px; }
.svc-official p { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 16px 0 0; font-size: 13.5px; color: var(--text-2); }
.svc-official p svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.svc-related { margin-top: 10px; }

/* ---------- service page: article layout, table of contents, sections, tabs ---------- */
.svc-page { padding-bottom: 8px; }
.svc-layout { display: block; }
.svc-main { max-width: 760px; margin: 0 auto; }
.svc-toc { display: none; }
@media (min-width: 1060px) {
  .svc-layout { display: grid; grid-template-columns: minmax(0, 760px) 250px; gap: 48px; justify-content: center; align-items: start; }
  .svc-main { margin: 0; }
  .svc-toc { display: block; position: sticky; top: calc(56px + 24px); margin-top: 120px; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 0.5px var(--sep); }
  .svc-toc-m { display: none; }
}
.svc-toc b { display: block; font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.svc-toc ol { list-style: none; margin: 0 0 14px; padding: 0; border-left: 2px solid var(--sep); }
.svc-toc a { display: block; padding: 6px 0 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); font-size: 14.5px; line-height: 1.35; }
.svc-toc a:hover { color: var(--text); }
.svc-toc a.on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.svc-btn.sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; width: 100%; }
.svc-toc a.svc-btn { display: flex; margin: 0; border: 0; padding: 0 16px; color: #fff; font-weight: 600; }
.svc-toc-m { margin-top: 12px; background: var(--surface); border-radius: var(--radius-m); box-shadow: 0 0 0 0.5px var(--sep); }
.svc-toc-m summary { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; cursor: pointer; font-weight: 600; list-style: none; }
.svc-toc-m summary::-webkit-details-marker { display: none; }
.svc-toc-m summary svg { width: 18px; height: 18px; color: var(--accent); }
.svc-toc-m ol { margin: 0; padding: 0 16px 12px 36px; }
.svc-toc-m li { padding: 5px 0; }
.svc-toc-m a { color: var(--text); }
.svc-byline { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.svc-byline .bot-av { width: 34px; height: 34px; background: linear-gradient(135deg, #34c759, #0a84ff); }
.svc-byline .bot-av svg { width: 18px; height: 18px; }
.svc-byline small { display: block; font-weight: 400; color: var(--text-2); font-size: 12.5px; }

.svc-prose { font-size: 16.5px; line-height: 1.65; }
.svc-prose > :first-child { margin-top: 0; }
.svc-prose > :last-child { margin-bottom: 0; }
.svc-prose p { margin: 0 0 12px; }
.svc-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.svc-prose ul, .svc-prose ol { padding-left: 22px; }
.svc-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-bullets li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.5; }
.svc-bullets li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(52, 199, 89, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334c759' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (min-width: 700px) { .svc-sec-list .svc-bullets { grid-template-columns: 1fr 1fr; gap: 12px 24px; } }
.svc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--field); color: var(--text); font-weight: 600; font-size: 15.5px; }
.svc-links a:hover { background: var(--accent-soft); }
.svc-links svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.svc-links small { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-2); }
.svc-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 149, 0, 0.12); }
.svc-note > svg { flex: none; width: 20px; height: 20px; color: #ff9500; margin-top: 3px; }
.svc-note .svc-prose { font-size: 15.5px; }
.svc-sec-note { background: transparent; padding: 0; }
.svc-sec-note h2 { display: none; }
.svc-fig { margin: 16px 0 0; }
.svc-fig img { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; background: var(--field); box-shadow: 0 0 0 0.5px var(--sep); }
.svc-fig figcaption { margin-top: 8px; font-size: 13.5px; color: var(--text-2); text-align: center; }

.svc-tablist { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 14px; background: var(--field); }
.svc-tablist button { flex: 1 1 auto; min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.svc-tablist button[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.svc-panel-h { display: none; }
.js-tabs .svc-panel[hidden] { display: none; }

/* ---------- Q&A bot (service pages) ---------- */
.bot-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0a84ff, #5e5ce6); }
.bot-av svg { width: 22px; height: 22px; }
.svc-ask-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.svc-ask-cta .grow { flex: 1; min-width: 200px; }
.svc-ask-cta h2 { margin: 0 0 2px; font-size: 18px; }
.svc-ask-cta .svc-hint { margin: 0; }
.chat-fab { position: fixed; right: 14px; bottom: calc(var(--tabbar-h) + 74px + env(safe-area-inset-bottom, 0px)); z-index: 96; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 8px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; background: linear-gradient(135deg, #0a84ff, #5e5ce6); box-shadow: 0 10px 28px rgba(10, 132, 255, 0.4); transition: transform 0.15s; }
.chat-fab svg { width: 22px; height: 22px; padding: 7px; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.chat-fab:active { transform: scale(0.96); }
.chat-fab[aria-expanded="true"] { display: none; }
.chat-backdrop { position: fixed; inset: 0; z-index: 128; background: rgba(0, 0, 0, 0.35); }
.chat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 129; display: flex; flex-direction: column; height: min(78vh, 640px); background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25); padding-bottom: env(safe-area-inset-bottom, 0px); animation: chatIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.chat[hidden], .chat-backdrop[hidden] { display: none; }
@keyframes chatIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 0.5px solid var(--sep); }
.chat-h .grow { flex: 1; min-width: 0; }
.chat-h b { display: block; font-size: 16px; }
.chat-h small { display: block; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; letter-spacing: -0.01em; word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: var(--surface); color: var(--text); border-bottom-left-radius: 6px; box-shadow: 0 0 0 0.5px var(--sep); }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; white-space: pre-line; }
.chat-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.chat-chips button { max-width: 92%; text-align: left; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: transparent; color: var(--accent); font: inherit; font-size: 14.5px; font-weight: 500; padding: 8px 13px; border-radius: 16px; cursor: pointer; }
.chat-chips button:hover { background: var(--accent-soft); }
.chat-note { margin: 0; padding: 8px 16px; font-size: 13px; background: rgba(255, 149, 0, 0.14); color: var(--text); }
.chat-form { padding: 10px 12px 12px; border-top: 0.5px solid var(--sep); background: var(--surface-2); }
:root[data-theme="dark"] .chat-form { background: var(--surface); }
.chat-more summary { cursor: pointer; font-size: 13.5px; color: var(--accent); padding: 2px 4px 8px; list-style: none; }
.chat-more summary::-webkit-details-marker { display: none; }
.chat-more .ask-row { margin: 0 0 10px; }
.chat-form input { width: 100%; min-height: 42px; border: 0; border-radius: 12px; background: var(--field); color: var(--text); font: inherit; font-size: 15px; padding: 0 12px; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; }
.chat-input textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; border: 0; border-radius: 22px; background: var(--field); color: var(--text); font: inherit; font-size: 16px; line-height: 1.35; padding: 11px 16px; }
.chat-input textarea:focus, .chat-form input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-send:disabled { opacity: 0.45; cursor: default; }
.chat-send svg { width: 19px; height: 19px; margin-left: -2px; }
.chat-form .ask-err { margin: 0 4px 8px; }
.chat-privacy { margin: 6px 4px 0; font-size: 12px; color: var(--text-3); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (min-width: 860px) {
  .chat-fab { right: 24px; bottom: 84px; }
  .chat-backdrop { background: transparent; }
  .chat { left: auto; right: 24px; bottom: 24px; width: 390px; height: min(620px, calc(100vh - 110px)); border-radius: 22px; box-shadow: 0 0 0 0.5px var(--sep), 0 20px 60px rgba(0, 0, 0, 0.25); }
}
@media (prefers-reduced-motion: reduce) { .chat { animation: none; } .typing i { animation: none; } }

@media print {
  .crumbs, .svc-actions, .svc-ask, .svc-video, .svc-related, .svc-banner, .fb, .foot, .qn-fab, .svc-hint, .svc-official .svc-btn, .svc-disclaimer, .to-top, .chat-fab, .chat, .chat-backdrop, .svc-ask-cta { display: none !important; }
  .svc { max-width: none; padding: 0; }
  .svc-card, .svc-fact { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .svc-head h1 { font-size: 26pt; }
  .svc-meta a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .svc-faq details > div { display: block !important; }
  .svc-toc, .svc-toc-m, .svc-tablist { display: none !important; }
  .svc-panel { display: block !important; } .svc-panel-h { display: block !important; margin: 14px 0 6px; }
}

/* ---------- calculators on the home page ---------- */
.sec-link { display: inline-flex; align-items: center; gap: 2px; font-size: 16px; font-weight: 600; color: var(--accent); padding: 4px 6px; border-radius: 8px; }
.sec-link svg { width: 18px; height: 18px; }
.calc-pop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.calc-pop a { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface); color: var(--text); box-shadow: 0 0 0 0.5px var(--sep); }
.calc-pop a:hover { box-shadow: 0 0 0 2px var(--accent); }
.calc-pop .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; }
.calc-pop .ico svg { width: 22px; height: 22px; }
.calc-pop .t { min-width: 0; font-size: 17px; font-weight: 600; line-height: 1.25; }
.calc-pop .t small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 400; color: var(--text-2); }
.calc-sub { margin: 14px 16px 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.calc-groups > section:first-child .calc-sub { margin-top: 4px; }
.dd-panel.mega::before { height: 18px; }
@media (min-width: 700px) {
  .groups .group-wide { grid-column: 1 / -1; }
  .calc-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; align-items: start; }
  .calc-groups > section .calc-sub { margin-top: 4px; }
}
@media (min-width: 1000px) {
  .calc-pop { grid-template-columns: repeat(4, 1fr); }
  .calc-groups { grid-template-columns: repeat(3, 1fr); }
}
.foot-col a.foot-all { color: var(--accent); font-weight: 600; }
.qn-sub { margin: 12px 16px 6px; font-size: 13px; font-weight: 600; color: var(--text); }
@media (max-width: 699px) {
  /* phones: icon on top, the name big and clear, no small print */
  .calc-pop a { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px; }
  .calc-pop .t small { display: none; }
}
