/* Layout: Jodhpur-indigo header & hero band, sandstone-neutral page, saffron (kesariya) reserved for actions.
   Jharokha (arched window) is the recurring motif: logo, category seals, hero pattern. */
:root {
  --bg: #F3F3F7;
  --surface: #FFFFFF;
  --surface-2: #ECEDF4;
  --ink: #15183A;
  --muted: #5B5F7A;
  --line: #DADCE8;
  --brand: #1F2A6B;
  --brand-ink: #1F2A6B;
  --hero-bg: #1A2360;
  --hero-ink: #F4F2EC;
  --hero-muted: #B9BEE0;
  --saffron: #E8740E;
  --saffron-ink: #A9530A;
  --on-saffron: #1A1206;
  --maroon: #8A1F2E;
  --ok: #1D7447; --ok-bg: #E2F2E9;
  --warn: #8E5600; --warn-bg: #FBEFD9;
  --bad: #B42318; --bad-bg: #FBE4E1;
  --focus: #E8740E;

  --f-display: "Rozha One", "Tiro Devanagari Hindi", Georgia, serif;
  --f-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 10px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0F22; --surface: #161935; --surface-2: #1D2142; --ink: #ECEDF6; --muted: #A4A8C6; --line: #2B2F52;
    --brand: #9AA6FF; --brand-ink: #B4BDFF; --hero-bg: #12173F; --hero-ink: #F4F2EC; --hero-muted: #A9AFD8;
    --saffron: #FF8B2D; --saffron-ink: #FFA45A; --on-saffron: #1A1206; --maroon: #E4788A;
    --ok: #6FD6A0; --ok-bg: #12301F; --warn: #F5BE62; --warn-bg: #352610; --bad: #FF8D80; --bad-bg: #3A1512;
    --focus: #FF8B2D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0F22; --surface: #161935; --surface-2: #1D2142; --ink: #ECEDF6; --muted: #A4A8C6; --line: #2B2F52;
  --brand: #9AA6FF; --brand-ink: #B4BDFF; --hero-bg: #12173F; --hero-ink: #F4F2EC; --hero-muted: #A9AFD8;
  --saffron: #FF8B2D; --saffron-ink: #FFA45A; --on-saffron: #1A1206; --maroon: #E4788A;
  --ok: #6FD6A0; --ok-bg: #12301F; --warn: #F5BE62; --warn-bg: #352610; --bad: #FF8D80; --bad-bg: #3A1512;
  --focus: #FF8B2D; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--hero-bg); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0; }
a { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--hero-bg); color: var(--hero-ink); border-bottom: 1px solid rgba(255,255,255,.08); }
.head-row { display: flex; align-items: center; gap: 16px; padding-block: 10px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.brand-logo svg { height: 44px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); }
.brand-sub { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--hero-muted); }
.brand-domain { font-family: var(--f-mono); font-size: 13px; color: #F7A35A; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav a, .main-nav button.linkish { color: var(--hero-ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; font-size: 15px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.main-nav a:hover, .main-nav button.linkish:hover { background: rgba(255,255,255,.08); }
.main-nav a.is-on { background: rgba(255,255,255,.12); }
#authNav { display: flex; gap: 6px; align-items: center; }
.lang-switch { display: flex; flex: 0 0 auto; margin-left: 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: var(--hero-muted); font: 600 14px/1 var(--f-body); padding: 8px 11px; cursor: pointer; }
.lang-switch button + button { border-left: 1px solid rgba(255,255,255,.28); }
.lang-switch button.on { background: rgba(255,255,255,.14); color: var(--hero-ink); }
.lang-switch button:hover { color: var(--hero-ink); }
.menu-btn { display: none; margin-left: 8px; background: rgba(255,255,255,.08); color: var(--hero-ink); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px 14px; font: 600 14px var(--f-body); cursor: pointer; }
@media (max-width: 860px) {
  .brand-sub { display: none; }
  .menu-btn { display: block; }
  .lang-switch { margin-left: auto; }
  .lang-switch button { padding: 8px 9px; font-size: 13px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--hero-bg); flex-direction: column; align-items: stretch; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav.open { display: flex; }
  #authNav { flex-direction: column; align-items: stretch; }
  #authNav .btn { justify-content: center; }
}

.mode-banner { background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.mode-banner .wrap { padding-block: 8px; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 10px 18px; font: 600 15px/1.2 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--saffron); color: var(--on-saffron); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.dark { background: var(--brand); color: var(--surface); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.on-hero { background: transparent; color: var(--hero-ink); border-color: rgba(255,255,255,.3); }
.btn.on-hero:hover { background: rgba(255,255,255,.08); }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.wa { background: #1F8F4E; color: #fff; }
.wa:hover { filter: brightness(1.08); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-weight: 600; font-size: 14px; }
.field .req { color: var(--bad); }
.field .hint { font-size: 13px; color: var(--muted); }
input, select, textarea {
  font: 400 16px/1.4 var(--f-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
input[readonly] { background: var(--surface-2); color: var(--muted); }
textarea { min-height: 96px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font-size: 15px; }
.check input { width: auto; margin-top: 4px; accent-color: var(--saffron); }
.phone-row { display: flex; gap: 8px; }
.phone-row .cc { flex: 0 0 64px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; font-family: var(--f-mono); }
.otp-input { font-family: var(--f-mono); font-size: 24px; letter-spacing: .5em; text-align: center; max-width: 260px; }
.form-err { color: var(--bad); background: var(--bad-bg); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='72' viewBox='0 0 56 72'%3E%3Cpath d='M8 72V34C8 24 15 17 22 15c2.5-4 4.5-6 6-7 1.5 1 3.5 3 6 7 7 2 14 9 14 19v38' fill='none' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3C/svg%3E");
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; padding-block: 64px 72px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding-block: 40px 48px; gap: 32px; } }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #F7A35A; font-weight: 600; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); margin-top: 14px; }
.hero h1 .hi { display: block; font-size: .62em; color: var(--hero-muted); margin-top: 10px; }
.hero-lede { margin-top: 20px; font-size: 18px; color: var(--hero-muted); max-width: 58ch; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.motto { display: flex; gap: 0; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r); overflow: hidden; }
.motto div { flex: 1; padding: 22px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.16); }
.motto div:last-child { border-right: 0; }
.motto b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 30px; color: #F7A35A; line-height: 1.1; }
.motto span { font-size: 13px; color: var(--hero-muted); letter-spacing: .06em; text-transform: uppercase; }
.hero-figures { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.hero-figures div { display: flex; flex-direction: column; }
.hero-figures b { font-family: var(--f-mono); font-size: 26px; font-weight: 500; color: var(--hero-ink); }
.hero-figures span { font-size: 13px; color: var(--hero-muted); }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section.tight { padding-block: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--muted); max-width: 60ch; margin-top: 6px; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-ink); font-weight: 700; }

/* Category boxes */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cat {
  display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.cat:hover { border-color: var(--saffron); transform: translateY(-2px); }
.cat-top { display: flex; align-items: flex-start; gap: 14px; }
.seal { flex: 0 0 auto; width: 46px; height: 56px; display: grid; place-items: end center; padding-bottom: 9px; background: var(--brand); color: var(--surface); font-family: var(--f-display); font-size: 17px; line-height: 1;
  clip-path: path("M0 56V26C0 16 7 9 14 7.5 16.5 3 18.5 1 23 0c4.5 1 6.5 3 9 7.5C39 9 46 16 46 26v30z"); }
.cat h3 { font-size: 21px; }
.cat .hi { color: var(--muted); font-size: 15px; margin-top: 2px; }
.cat-subs { font-size: 14px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cat-foot .go { color: var(--saffron-ink); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.steps > div { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.steps > div:last-child { border-right: 0; }
.steps .n { font-family: var(--f-mono); color: var(--saffron-ink); font-size: 14px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps > div { border-right: 0; border-bottom: 1px solid var(--line); } .steps > div:last-child { border-bottom: 0; } }

.purpose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .purpose { grid-template-columns: 1fr; gap: 24px; } }
.purpose blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--brand-ink); }
.purpose .body { display: flex; flex-direction: column; gap: 14px; color: var(--ink); font-size: 17px; max-width: 62ch; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.pillar { padding: 18px 0 0; border-top: 2px solid var(--brand); }
.pillar h3 { font-size: 20px; }
.pillar p { color: var(--muted); font-size: 15px; margin-top: 6px; }

.band { background: var(--surface-2); }

/* Segment page */
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.seg-hero { display: flex; gap: 20px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.seg-hero .seal { width: 64px; height: 78px; font-size: 24px; padding-bottom: 12px; clip-path: path("M0 78V36C0 22 10 13 19 10.5 23 4 26 1.5 32 0c6 1.5 9 4 13 10.5C54 13 64 22 64 36v42z"); }
.seg-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sub { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sub h3 { font-family: var(--f-body); font-weight: 700; font-size: 17px; }
.sub .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.lock-note { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); flex-wrap: wrap; }
.lock-note p { flex: 1 1 280px; color: var(--muted); }

/* Cards / panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel h2 { font-size: 24px; }
.panel h3 { font-size: 19px; }
.auth-wrap { max-width: 560px; margin: 0 auto; }
.auth-wrap.wide { max-width: 880px; }
.stepper { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.stepper span { font-size: 13px; padding: 4px 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.stepper span.on { background: var(--brand); color: var(--surface); }
.stepper span.done { background: var(--ok-bg); color: var(--ok); }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
legend { font-family: var(--f-display); font-size: 21px; margin-bottom: 4px; padding: 0; }
.fs-sep { border-top: 1px solid var(--line); padding-top: 22px; }
.demo-otp { font-family: var(--f-mono); background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 8px; font-size: 14px; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.brand { background: var(--brand); color: var(--surface); }

/* Dashboard */
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }
.dash-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--saffron); border-radius: 99px; }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 8px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.community { background: var(--hero-bg); color: var(--hero-ink); border-color: transparent; }
.community p { color: var(--hero-muted); }

/* ---------- Admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: 600 15px var(--f-body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--saffron); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 30px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi.attn b { color: var(--saffron-ink); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 14px; }
.bar-row .track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar-row .v { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .bar-row { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 40px; } }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 180px; }
.toolbar .spacer { flex: 1 1 auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); font-weight: 700; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: var(--surface-2); }
td.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }
td .sub-t { display: block; font-size: 12px; color: var(--muted); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 14px; flex-wrap: wrap; }
.link-row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-row.cat-row { background: var(--surface-2); padding: 12px; border-radius: 8px; border: 0; margin-top: 16px; }
.link-row .nm { font-size: 14px; }
@media (max-width: 720px) { .link-row { grid-template-columns: 1fr; gap: 6px; } }
.empty { padding: 32px; text-align: center; color: var(--muted); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(8,10,30,.5); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); overflow-y: auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) 20px; display: flex; flex-direction: column; gap: 16px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head h2 { font-size: 26px; }

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-size: 15px; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0,0,0,.25); }

/* Footer */
.site-foot { background: var(--hero-bg); color: var(--hero-ink); margin-top: 32px; }
.foot-row { display: flex; justify-content: space-between; gap: 32px; padding-block: 40px 24px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; max-width: 520px; }
.foot-brand .muted { color: var(--hero-muted); }
.foot-logo svg { height: 40px; width: auto; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { color: var(--hero-ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 16px 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.foot-base .muted { color: var(--hero-muted); }

/* Narrow phones: logo + language switch + menu only (domain is in the footer) */
@media (max-width: 520px) {
  .brand-text { display: none; }
  .brand-logo svg { height: 38px; }
  .head-row { gap: 8px; }
}
