/* ==========================================================================
   Vande Bharat design system
   Type: Marcellus (inscriptional display) + Mukta (body, Latin and Devanagari)
   Colour: chakra navy, saffron, India green on a cool stone-white canvas
   Light theme is the default. Dark theme via [data-theme="dark"].
   ========================================================================== */

:root {
  --canvas: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --ink: #131a33;
  --ink-2: #2b3350;
  --muted: #5c657a;
  --faint: #8a92a6;
  --line: #e2e6ee;
  --line-2: #eef1f6;
  --navy: #1b2f7a;
  --navy-600: #24399a;
  --navy-50: #eef1fb;
  --saffron: #ee7f1f;
  --saffron-600: #d96d10;
  --saffron-50: #fff3e8;
  --green: #17803d;
  --green-50: #e9f6ee;
  --red: #c73434;
  --red-50: #fdeeee;
  --amber: #b7791f;
  --amber-50: #fdf6e7;
  --shadow-1: 0 1px 2px rgba(19, 26, 51, .05), 0 1px 1px rgba(19, 26, 51, .03);
  --shadow-2: 0 10px 30px -12px rgba(19, 26, 51, .18), 0 2px 6px rgba(19, 26, 51, .05);
  --shadow-3: 0 24px 60px -20px rgba(19, 26, 51, .35);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --font-display: "Marcellus", "Tiro Devanagari Hindi", Georgia, serif;
  --font-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --canvas: #0e1325;
  --surface: #151b31;
  --surface-2: #1a2139;
  --ink: #eef1f8;
  --ink-2: #d3d8e6;
  --muted: #a1a9be;
  --faint: #7c859c;
  --line: #262e4a;
  --line-2: #20283f;
  --navy: #8ea2f2;
  --navy-600: #a9baff;
  --navy-50: #1d2648;
  --saffron: #f59a45;
  --saffron-600: #ffae62;
  --saffron-50: #2d2116;
  --green: #4cc27a;
  --green-50: #15291f;
  --red: #f07070;
  --red-50: #2e1717;
  --amber: #e6b34f;
  --amber-50: #2b2414;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 12px 30px -12px rgba(0, 0, 0, .6);
  --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: .005em; }
h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
::selection { background: var(--saffron); color: #fff; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.i-xl { width: 32px; height: 32px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- layout utilities ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-top { align-items: flex-start; }
.row-between { justify-content: space-between; }
.row-wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-sm { gap: 8px; } .gap-lg { gap: 28px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide { display: none !important; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .hide-sm { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--surface); --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 500 .95rem/1 var(--font-body);
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { color: var(--fg); border-color: color-mix(in srgb, var(--bd) 70%, var(--ink)); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { --bg: var(--navy); --fg: #fff; --bd: var(--navy); }
.btn-primary:hover { --bg: var(--navy-600); --bd: var(--navy-600); }
:root[data-theme="dark"] .btn-primary { --fg: #0e1325; }
.btn-saffron { --bg: var(--saffron); --fg: #fff; --bd: var(--saffron); }
.btn-saffron:hover { --bg: var(--saffron-600); --bd: var(--saffron-600); }
.btn-green { --bg: var(--green); --fg: #fff; --bd: var(--green); }
.btn-danger { --bg: var(--red); --fg: #fff; --bd: var(--red); }
.btn-ghost { --bg: transparent; --bd: transparent; }
.btn-ghost:hover { --bg: var(--surface-2); }
.btn-soft { --bg: var(--navy-50); --fg: var(--navy); --bd: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: .875rem; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); cursor: pointer; font: inherit; }

/* ---------- forms ---------- */
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.field-hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field-error { font-size: .82rem; color: var(--red); margin: 4px 0 0; }
.input, select.input, textarea.input {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 400 .97rem/1.4 var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 16%, transparent); }
.input::placeholder { color: var(--faint); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235c657a' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.input-group { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.input-group .input { border: 0; box-shadow: none; }
.input-group .addon { padding: 0 12px; color: var(--muted); display: flex; align-items: center; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 400; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 22px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-1); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.otp-input { letter-spacing: .5em; font-size: 1.4rem; text-align: center; font-weight: 600; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 12px; padding: 0; }

/* ---------- cards and surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h3, .card-head h2 { margin: 0; font-size: 1.1rem; }
.card-body { padding: 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); }
.panel-title { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 12px; }
.divider-list > * + * { border-top: 1px solid var(--line-2); }

/* ---------- chips, badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; white-space: nowrap; }
a.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active, .chip-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .chip.is-active { color: #0e1325; }
.chip-check input { display: none; }
.chip-check input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-check span { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge-green { background: var(--green-50); color: var(--green); border-color: transparent; }
.badge-saffron { background: var(--saffron-50); color: var(--saffron-600); border-color: transparent; }
.badge-navy { background: var(--navy-50); color: var(--navy); border-color: transparent; }
.badge-red { background: var(--red-50); color: var(--red); border-color: transparent; }
.badge-amber { background: var(--amber-50); color: var(--amber); border-color: transparent; }
.badge-verified { display: inline-flex; color: var(--saffron); vertical-align: -2px; }
.badge-verified .icon { fill: color-mix(in srgb, var(--saffron) 18%, transparent); }
.stakeholder-tag { font-size: .78rem; color: var(--green); font-weight: 500; }

/* ---------- avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: hsl(var(--h) 45% 30%); background: hsl(var(--h) 60% 92%); letter-spacing: .02em; }
:root[data-theme="dark"] .avatar-initials { color: hsl(var(--h) 70% 85%); background: hsl(var(--h) 30% 25%); }
.avatar-xs { width: 24px; height: 24px; font-size: .65rem; }
.avatar-sm { width: 32px; height: 32px; font-size: .78rem; }
.avatar-md { width: 42px; height: 42px; font-size: .9rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar-xl { width: 120px; height: 120px; font-size: 2.4rem; border: 4px solid var(--surface); }
.avatar-sq { border-radius: 12px; }
.avatar-stack { display: flex; } .avatar-stack > * { margin-left: -8px; border: 2px solid var(--surface); } .avatar-stack > *:first-child { margin-left: 0; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 16px; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.topsearch { flex: 1; max-width: 520px; position: relative; }
.topsearch .input { padding-left: 40px; background: var(--surface-2); border-color: transparent; border-radius: 999px; height: 42px; }
.topsearch .input:focus { background: var(--surface); border-color: var(--navy); }
.topsearch .icon { position: absolute; left: 14px; top: 11px; color: var(--faint); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.dot-count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--saffron); color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.menu-toggle { display: none; }
@media (max-width: 1080px) { .menu-toggle { display: inline-flex; } }
@media (max-width: 700px) { .topsearch { display: none; } .brand img { height: 36px; } }

/* ---------- dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3); padding: 6px; z-index: 60; display: none; }
.dropdown.is-open > .dropdown-menu { display: block; animation: pop .14s ease-out; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); font: inherit; font-size: .94rem; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); color: var(--ink); }
.dropdown-menu .sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.dropdown-menu .danger { color: var(--red); }
.dropdown-head { padding: 10px; display: flex; gap: 10px; align-items: center; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- app shell (social) ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 28px; max-width: 1440px; margin: 0 auto; padding: 24px 20px 60px; align-items: start; }
.shell.no-right { grid-template-columns: 250px minmax(0, 1fr); }
.shell-main { min-width: 0; }
.shell-main.narrow { max-width: 680px; width: 100%; margin: 0 auto; }
.sidenav { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.rightrail { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
.nav-list a:hover { background: var(--surface); color: var(--ink); }
.nav-list a.is-active { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-1); }
.nav-list a.is-active .icon { color: var(--saffron); }
.nav-group { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.nav-group-title { font-size: .8rem; color: var(--faint); padding: 0 12px 6px; }
.nav-cta { margin-top: 18px; }
@media (max-width: 1280px) { .shell { grid-template-columns: 230px minmax(0, 1fr) 290px; gap: 20px; } }
@media (max-width: 1080px) {
  .shell, .shell.no-right { grid-template-columns: minmax(0, 1fr); }
  .rightrail { position: static; }
  .sidenav { position: fixed; top: var(--header-h); left: 0; bottom: 0; width: 280px; max-height: none; background: var(--canvas); padding: 18px; z-index: 45; transform: translateX(-100%); transition: transform .2s ease; border-right: 1px solid var(--line); }
  body.nav-open .sidenav { transform: none; box-shadow: var(--shadow-3); }
  body.nav-open::after { content: ""; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(10, 14, 30, .35); z-index: 44; }
}
@media (max-width: 1080px) { .shell > .rightrail { order: 3; } }

/* ---------- page headers ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; color: var(--muted); font-weight: 500; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font: inherit; font-weight: 500; }
.tabs a:hover { color: var(--ink); }
.tabs .is-active { color: var(--navy); border-bottom-color: var(--saffron); }
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented a { padding: 6px 12px; border-radius: 7px; color: var(--muted); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.segmented a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- composer ---------- */
.composer { padding: 16px; }
.composer textarea { border: 0; resize: none; width: 100%; min-height: 56px; font: 400 1.05rem/1.5 var(--font-body); background: transparent; color: var(--ink); padding: 8px 0; }
.composer textarea:focus { outline: none; }
.composer-tools { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 6px; flex-wrap: wrap; }
.composer-tools .tool { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: .9rem; cursor: pointer; background: none; border: 0; font-family: inherit; }
.composer-tools .tool:hover { background: var(--surface-2); color: var(--ink); }
.composer-tools select.input { width: auto; min-height: 34px; height: 34px; padding-top: 4px; padding-bottom: 4px; font-size: .88rem; }
.preview-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.preview-grid img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }

/* ---------- posts ---------- */
.post { padding: 18px 20px 8px; margin-bottom: 16px; }
.post-head { display: flex; gap: 12px; align-items: flex-start; }
.post-author { font-weight: 600; color: var(--ink); }
.post-author:hover { color: var(--navy); }
.post-meta { font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--navy); }
.post-body { margin: 12px 0 10px; font-size: 1.02rem; overflow-wrap: anywhere; }
.post-body p:last-child { margin-bottom: 0; }
.post-body .hashtag, .post-body .mention { font-weight: 500; }
.post-media { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; margin: 10px 0; }
.post-media.n1 { grid-template-columns: 1fr; }
.post-media.n2, .post-media.n4 { grid-template-columns: 1fr 1fr; }
.post-media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-media.n3 a:first-child { grid-row: span 2; }
.post-media a { display: block; background: var(--surface-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; aspect-ratio: auto; }
.post-media.n2 img, .post-media.n3 img, .post-media.n4 img { aspect-ratio: 1 / 1; }
.post-embed { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; margin: 10px 0; background: #000; }
.post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-stats { display: flex; gap: 14px; font-size: .84rem; color: var(--muted); padding: 4px 0 8px; }
.post-actions { display: flex; border-top: 1px solid var(--line-2); padding-top: 4px; }
.post-actions .act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: 8px; color: var(--muted); background: none; border: 0; font: 500 .92rem var(--font-body); cursor: pointer; }
.post-actions .act:hover { background: var(--surface-2); color: var(--ink); }
.act.is-on { color: var(--saffron); }
.act.is-on .icon { fill: currentColor; }
.act.like.is-on { color: #d4384a; }
.pinned-flag { font-size: .8rem; color: var(--saffron-600); display: inline-flex; gap: 4px; align-items: center; margin-bottom: 6px; }

/* comments */
.comments { border-top: 1px solid var(--line-2); padding: 12px 0 6px; }
.comment { display: flex; gap: 10px; margin-bottom: 12px; }
.comment-bubble { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; font-size: .95rem; }
.comment-bubble p { margin: 0; }
.comment-meta { font-size: .78rem; color: var(--muted); display: flex; gap: 10px; margin-top: 3px; padding-left: 4px; }
.comment-meta button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.comment-meta button:hover { color: var(--navy); }
.replies { margin-left: 44px; }
.comment-form { display: flex; gap: 10px; align-items: flex-start; }
.comment-form .input { min-height: 38px; border-radius: 20px; padding: 8px 14px; }

/* ---------- side widgets ---------- */
.widget { padding: 18px; }
.widget h3 { font-size: 1.02rem; margin-bottom: 12px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.mini-list li + li { border-top: 1px solid var(--line-2); }
.mini-list .name { font-weight: 600; font-size: .93rem; color: var(--ink); line-height: 1.25; }
.mini-list .sub { font-size: .8rem; color: var(--muted); }
.trend-tag { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); }
.trend-tag:hover { color: var(--navy); }
.footer-mini { font-size: .8rem; color: var(--faint); line-height: 1.9; padding: 0 4px; }
.footer-mini a { color: var(--faint); margin-right: 10px; }

/* ---------- ad slot ---------- */
.ad-card { position: relative; overflow: hidden; display: block; color: var(--ink); }
.ad-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ad-card .ad-body { padding: 12px 14px; }
.ad-label { font-size: .72rem; color: var(--faint); display: flex; justify-content: space-between; padding: 8px 14px 0; }

/* ---------- content cards (community, event, resource, site, listing, org) ---------- */
.tile { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; color: inherit; }
a.tile:hover { box-shadow: var(--shadow-2); color: inherit; border-color: color-mix(in srgb, var(--line) 50%, var(--navy)); }
.tile-cover { aspect-ratio: 16 / 9; background-size: cover; background-position: center; position: relative; }
.tile-cover.short { aspect-ratio: 3 / 1; }
.pattern { background-color: hsl(var(--h) 45% 88%); background-image: radial-gradient(circle at 0 0, hsl(var(--h) 70% 70% / .55) 0 22%, transparent 23%), radial-gradient(circle at 100% 100%, hsl(calc(var(--h) + 40) 70% 60% / .4) 0 30%, transparent 31%), repeating-conic-gradient(from 0deg at 50% 50%, hsl(var(--h) 50% 80% / .45) 0 7.5deg, transparent 7.5deg 15deg); }
:root[data-theme="dark"] .pattern { background-color: hsl(var(--h) 30% 20%); }
.tile-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.tile-title { font-family: var(--font-display); font-size: 1.12rem; margin: 0 0 4px; color: var(--ink); line-height: 1.25; }
.tile-text { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); }
.tile-flag { position: absolute; top: 10px; left: 10px; }
.tile-avatar { margin-top: -28px; position: relative; }
.date-block { position: absolute; bottom: -18px; left: 16px; width: 54px; background: var(--surface); border-radius: 10px; text-align: center; box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid var(--line); }
.date-block .m { background: var(--saffron); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 0; }
.date-block .d { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; color: var(--ink); }
.event-tile .tile-body { padding-top: 26px; }
.list-item { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; }
.list-item + .list-item { border-top: 1px solid var(--line-2); }
.file-ico { width: 46px; height: 56px; border-radius: 8px; background: var(--navy-50); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; font-size: .7rem; font-weight: 700; flex-direction: column; gap: 2px; }

/* ---------- rating ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--saffron); vertical-align: -3px; }
.stars .icon { width: 16px; height: 16px; }
.stars .on { fill: currentColor; }
.stars .off { color: var(--line); }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate-input input { display: none; }
.rate-input label { cursor: pointer; color: var(--line); margin: 0; }
.rate-input label .icon { width: 28px; height: 28px; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: var(--saffron); }
.rate-input input:checked ~ label .icon, .rate-input label:hover .icon, .rate-input label:hover ~ label .icon { fill: currentColor; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.bar { flex: 1; height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--saffron); border-radius: 4px; }
.progress { height: 10px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), var(--green)); border-radius: 6px; }

/* ---------- profile / entity header ---------- */
.hero-banner { height: 240px; border-radius: var(--r-lg) var(--r-lg) 0 0; background-size: cover; background-position: center; }
.entity-head { padding: 0 24px 20px; position: relative; }
.entity-head .avatar-xl { margin-top: -60px; }
.entity-row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.entity-title { font-family: var(--font-display); font-size: 1.85rem; margin: 10px 0 2px; display: flex; align-items: center; gap: 8px; }
.entity-stats { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.entity-stats b { font-size: 1.05rem; color: var(--ink); }
.entity-stats span { color: var(--muted); font-size: .9rem; }
.entity-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
@media (max-width: 600px) { .hero-banner { height: 150px; } .entity-actions { margin-left: 0; width: 100%; } }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 10px; padding: 7px 0; color: var(--ink-2); font-size: .94rem; align-items: flex-start; }
.info-list .icon { color: var(--faint); margin-top: 2px; }

/* ---------- empty, alerts, toasts ---------- */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--faint); }
.empty h3 { color: var(--ink); }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .94rem; border: 1px solid transparent; align-items: flex-start; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--navy-50); color: var(--navy); }
.alert-success { background: var(--green-50); color: var(--green); }
.alert-warning { background: var(--amber-50); color: var(--amber); }
.alert-error { background: var(--red-50); color: var(--red); }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: var(--surface); padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-3); font-size: .93rem; display: flex; gap: 10px; align-items: center; animation: toastIn .2s ease-out; }
.toast.error { background: var(--red); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 14, 30, .5); }
.modal.is-open { display: flex; }
.modal-box { background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-3); animation: pop .16s ease-out; }
.modal-box.wide { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 20px; }
.lightbox { background: rgba(5, 8, 18, .92); }
.lightbox img { max-height: 90vh; border-radius: 8px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }

/* ---------- stats ---------- */
.stat { padding: 18px 20px; }
.stat-label { font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat-value { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; margin-top: 6px; color: var(--ink); }
.stat-delta { font-size: .8rem; font-weight: 600; margin-top: 2px; }
.stat-delta.up { color: var(--green); } .stat-delta.down { color: var(--red); } .stat-delta.flat { color: var(--faint); }
.stat-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-50); color: var(--navy); }
.stat-ico.saffron { background: var(--saffron-50); color: var(--saffron-600); }
.stat-ico.green { background: var(--green-50); color: var(--green); }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 220px; }
.vbchart { position: relative; width: 100%; height: 100%; }
.vbchart-svg { display: block; overflow: visible; }
.vbchart-tick { font-size: 11px; font-family: var(--font-body, system-ui, sans-serif); }
.vbchart-total { font-size: 15px; font-weight: 600; font-family: var(--font-body, system-ui, sans-serif); }
.vbchart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; height: 26px; align-items: center; font-size: .8rem; color: var(--muted); }
.vbchart-legend span, .vbchart-keys li, .vbchart-tip div { display: inline-flex; align-items: center; gap: 6px; }
.vbchart-legend i, .vbchart-keys i, .vbchart-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.vbchart-tip { position: absolute; display: none; pointer-events: none; z-index: 5; background: var(--ink); color: var(--surface); padding: 8px 10px; border-radius: 8px; font-size: .78rem; line-height: 1.5; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.vbchart-tip div { display: flex; }
.vbchart-tip-title { font-weight: 600; margin-bottom: 2px; }
.vbchart-donut { display: flex; align-items: center; gap: 24px; height: 100%; }
.vbchart-keys { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; font-size: .88rem; }
.vbchart-keys li { display: flex; padding: 5px 0; }
.vbchart-keys li + li { border-top: 1px solid var(--line-2); }
.vbchart-keys span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbchart-keys b { font-weight: 600; color: var(--ink); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; font-size: .92rem; }
.rank-list li + li { border-top: 1px solid var(--line-2); }
.rank-list .meter { grid-column: 1 / -1; height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.rank-list .meter span { display: block; height: 100%; background: var(--navy); opacity: .7; }

/* ---------- pager, load more ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .9rem; }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.load-more { display: flex; justify-content: center; padding: 12px 0 30px; }

/* chakra spinner: the 24 spokes of the Ashoka Chakra */
.chakra-spin { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--navy); position: relative; animation: spin 1.6s linear infinite; background: repeating-conic-gradient(var(--navy) 0 2deg, transparent 2deg 15deg); -webkit-mask: radial-gradient(circle, transparent 0 3px, #000 3.5px 12px, transparent 12.5px), radial-gradient(circle, #000 0 2.2px, transparent 2.6px); mask: radial-gradient(circle, transparent 0 3px, #000 3.5px 12px, transparent 12.5px), radial-gradient(circle, #000 0 2.2px, transparent 2.6px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - var(--header-h) - 48px); min-height: 480px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list a { display: flex; gap: 12px; padding: 12px 16px; color: var(--ink); align-items: center; }
.chat-list a:hover, .chat-list a.is-active { background: var(--surface-2); }
.chat-list .unread { width: 9px; height: 9px; border-radius: 50%; background: var(--saffron); }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.msg { max-width: 72%; display: flex; flex-direction: column; align-items: flex-start; }
.msg .bubble { padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bubble { background: var(--navy); color: #fff; border-color: var(--navy); border-radius: 14px 14px 4px 14px; }
:root[data-theme="dark"] .msg.me .bubble { color: #0e1325; }
.msg .who { font-size: .75rem; color: var(--muted); margin: 6px 0 2px 4px; }
.msg .time { font-size: .7rem; color: var(--faint); margin: 2px 4px; }
.chat-form { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; } .chat.has-active .chat-list { display: none; } .chat:not(.has-active) .chat-main { display: none; } }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 12px; padding: 14px 18px; align-items: flex-start; color: var(--ink-2); }
.notif + .notif { border-top: 1px solid var(--line-2); }
.notif.unread { background: color-mix(in srgb, var(--saffron-50) 60%, transparent); }
.notif:hover { color: var(--ink); background: var(--surface-2); }
.notif-ico { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--navy-50); color: var(--navy); flex: none; }

/* ---------- prose (CMS pages) ---------- */
.prose { font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); max-width: 72ch; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--saffron); color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }

/* ---------- maps ---------- */
.map { height: 560px; border-radius: var(--r); overflow: hidden; z-index: 1; }
.map-sm { height: 260px; }
.leaflet-popup-content { font-family: var(--font-body); }
.leaflet-popup-content a { font-weight: 600; }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background-size: cover; background-position: center; position: relative; color: #fff; display: flex; align-items: flex-end; padding: 48px; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 40, .1) 30%, rgba(10, 16, 40, .85)); }
.auth-art blockquote { position: relative; margin: 0; max-width: 460px; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.35; }
.auth-art cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .95rem; opacity: .8; margin-top: 12px; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 6vw, 80px); background: var(--surface); }
.auth-box { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-box .brand img { height: 46px; margin-bottom: 28px; }
.auth-box h1 { font-size: 2rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .85rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- landing ---------- */
.landing-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.landing-top .topbar-inner { max-width: 1240px; height: 76px; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.landing-nav { display: flex; gap: 26px; margin-left: 40px; }
.landing-nav a { color: rgba(255, 255, 255, .88); font-weight: 500; }
.landing-nav a:hover { color: #fff; }
@media (max-width: 900px) { .landing-nav { display: none; } }
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; background: #0b1230 center 30% / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 14, 38, .9) 0%, rgba(8, 14, 38, .6) 45%, rgba(8, 14, 38, .15) 100%), linear-gradient(0deg, rgba(8, 14, 38, .7), transparent 40%); }
.hero-inner { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: 140px 20px 64px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.9rem); line-height: 1.02; margin: 0 0 22px; max-width: 13ch; }
.hero-lead { font-size: 1.2rem; max-width: 52ch; color: rgba(255, 255, 255, .86); margin-bottom: 30px; }
.hero .btn-ghost { --fg: #fff; --bd: rgba(255, 255, 255, .4); }
.hero .btn-ghost:hover { --bg: rgba(255, 255, 255, .1); --bd: #fff; }
.hero-tricolour { display: flex; height: 4px; width: 140px; margin-bottom: 26px; border-radius: 2px; overflow: hidden; }
.hero-tricolour span { flex: 1; }
.hero-tricolour span:nth-child(1) { background: var(--saffron); } .hero-tricolour span:nth-child(2) { background: #fff; } .hero-tricolour span:nth-child(3) { background: #2aa357; }
.hero-panel { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); border-radius: var(--r-lg); padding: 22px; }
.hero-panel h3 { color: #fff; font-size: 1.1rem; }
.hero-panel .mini-list .name { color: #fff; }
.hero-panel .mini-list .sub { color: rgba(255, 255, 255, .7); }
.hero-panel .mini-list li + li { border-color: rgba(255, 255, 255, .14); }
.hero-stats { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 400; }
.hero-stats span { color: rgba(255, 255, 255, .72); font-size: .92rem; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding-top: 120px; } .hero-panel { display: none; } }

.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; max-width: 20ch; }
.section-head p { color: var(--muted); max-width: 54ch; margin: 10px 0 0; font-size: 1.05rem; }

/* stakeholder wheel: the 7 groups placed around a chakra */
.wheel-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.wheel { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; margin: 0 auto; }
.wheel-ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--navy) 35%, transparent); }
.wheel-core { position: absolute; inset: 33%; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-2); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.wheel-core .spokes { width: 70%; height: 70%; border-radius: 50%; border: 3px solid var(--navy); background: repeating-conic-gradient(var(--navy) 0 1.2deg, transparent 1.2deg 15deg); -webkit-mask: radial-gradient(circle, #000 0 9%, transparent 9.5% 13%, #000 13.5%); mask: radial-gradient(circle, #000 0 9%, transparent 9.5% 13%, #000 13.5%); animation: spin 60s linear infinite; }
.wheel-node { position: absolute; width: 120px; margin: -46px 0 0 -60px; text-align: center; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.wheel-node .dot { width: 54px; height: 54px; margin: 0 auto 6px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: flex; align-items: center; justify-content: center; color: var(--saffron-600); }
@media (max-width: 900px) { .wheel-wrap { grid-template-columns: 1fr; } .wheel-node { width: 90px; margin-left: -45px; font-size: .78rem; } .wheel-node .dot { width: 42px; height: 42px; } }

.feature { padding: 26px; }
.feature .stat-ico { width: 44px; height: 44px; margin-bottom: 16px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }
.quote-band { background: var(--navy); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
:root[data-theme="dark"] .quote-band { background: #121a3d; }
.quote-band blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.3; margin: 0; max-width: 28ch; }
.quote-band cite { display: block; margin-top: 18px; font-style: normal; color: rgba(255, 255, 255, .7); }
.quote-band .big-chakra { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 420px; height: 420px; opacity: .12; }
.cta-band { text-align: center; padding: 90px 20px; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .94rem; }
.site-footer h4 { font-family: var(--font-body); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 16px; color: var(--faint); font-size: .86rem; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.announce { background: var(--saffron); color: #fff; text-align: center; font-size: .9rem; padding: 8px 16px; }
.announce a { color: #fff; text-decoration: underline; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: #0f1838; color: #c9d0e6; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px 30px; scrollbar-width: thin; }
.admin-side .brand { padding: 4px 10px 18px; }
.admin-side .brand img { height: 36px; }
.admin-side .nav-group-title { color: #6f7aa0; padding: 14px 10px 6px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #c9d0e6; font-size: .93rem; }
.admin-side a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-side a.is-active { background: rgba(238, 127, 31, .16); color: #fff; }
.admin-side a.is-active .icon { color: var(--saffron); }
.admin-side .count { margin-left: auto; background: var(--saffron); color: #fff; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 9px; }
.admin-main { min-width: 0; }
.admin-top { height: 60px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 30; }
.admin-content { padding: 26px 24px 60px; max-width: 1400px; }
.admin-content .page-head h1 { font-size: 1.8rem; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; min-width: 160px; }
.thumb { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: .94rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; z-index: 70; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .admin-side { transform: none; }
}
.editor-wrap .ql-toolbar { border-radius: 10px 10px 0 0; border-color: var(--line) !important; background: var(--surface-2); }
.editor-wrap .ql-container { border-radius: 0 0 10px 10px; border-color: var(--line) !important; min-height: 280px; font-family: var(--font-body); font-size: 1rem; background: var(--surface); color: var(--ink); }
.repeater-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }

/* ---------- misc ---------- */
.kbd { font-size: .78rem; padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); color: var(--muted); }
.locked { filter: blur(4px); user-select: none; }
.ribbon { position: absolute; top: 12px; right: 12px; }
.qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--saffron); }
.skeleton { background: linear-gradient(90deg, var(--line-2), var(--surface-2), var(--line-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.price { font-family: var(--font-display); font-size: 2.2rem; color: var(--ink); }
.plan.is-current { border-color: var(--saffron); box-shadow: 0 0 0 1px var(--saffron); }
.plan ul { padding-left: 0; list-style: none; }
.plan li { display: flex; gap: 8px; padding: 4px 0; font-size: .94rem; }
.plan li .icon { color: var(--green); }

/* inline icons sit on the text baseline */
svg.icon { display: inline-block; vertical-align: -0.22em; }
.tile-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.quote-band cite { font-family: var(--font-body); font-size: 1rem; }
[hidden] { display: none !important; }
.composer-tools select.input { max-width: 150px; }
.composer-send { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.badge { font-family: var(--font-body); letter-spacing: 0; vertical-align: middle; }

/* control panel header on small screens */
.panel-head .grow { min-width: 0; }
@media (max-width: 600px) { .panel-head { flex-direction: column; align-items: flex-start; } .panel-head .btn { width: 100%; justify-content: center; } }

/* native file picker button */
input[type="file"] { font: inherit; font-size: .9rem; color: var(--muted); max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 500; font-size: .88rem; margin-right: 12px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--surface); border-color: var(--navy); }
