/* Vasudev Hospital – public website styles
   Layout concept: a calm clinical page in the hospital's own navy and signal-red,
   anchored by a reception-style "OPD board" that shows who is seeing patients right now. */
:root {
  --paper: #f5f8fc;
  --surface: #ffffff;
  --tint: #e9f0fa;
  --ink: #0f1a46;
  --muted: #56618a;
  --line: #d5deec;
  --navy: #1c2b8f;
  --navy-deep: #0e1758;
  --red: #d42a31;
  --red-soft: #fdecec;
  --ok: #11834f;
  --ok-soft: #e3f5ec;
  --warn: #9a6400;
  --warn-soft: #fbf1dc;
  --board: #0d1550;
  --board-ink: #e9eeff;
  --board-dim: #8e9ad6;
  --shadow: 0 1px 2px rgba(15, 26, 70, .06), 0 8px 24px rgba(15, 26, 70, .07);
  --font-display: "Bricolage Grotesque", "Mukta", system-ui, sans-serif;
  --font-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1022; --surface: #111a35; --tint: #16214a; --ink: #e7ecfb; --muted: #a2acd0; --line: #26325f;
    --navy: #8fa3ff; --navy-deep: #c7d1ff; --red: #ff5f66; --red-soft: #3a1820; --ok: #4fd296; --ok-soft: #12342a;
    --warn: #f0be5c; --warn-soft: #3a2e12; --board: #070c26; --board-ink: #eef1ff; --board-dim: #8691c9;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a1022; --surface: #111a35; --tint: #16214a; --ink: #e7ecfb; --muted: #a2acd0; --line: #26325f;
  --navy: #8fa3ff; --navy-deep: #c7d1ff; --red: #ff5f66; --red-soft: #3a1820; --ok: #4fd296; --ok-soft: #12342a;
  --warn: #f0be5c; --warn-soft: #3a2e12; --board: #070c26; --board-ink: #eef1ff; --board-dim: #8691c9;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--navy) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.hi { font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .6em 1.15em; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
:root:not([data-theme="light"]) .btn-primary { color: var(--surface); }
:root[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(.94); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { min-height: 38px; padding: .35em .9em; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .25em .75em; border-radius: 999px; background: var(--tint); color: var(--ink); font-size: .9rem; font-weight: 500; border: 1px solid transparent; }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--navy); color: var(--surface); }
.pill { display: inline-flex; align-items: center; gap: .4em; padding: .15em .65em; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.open { background: var(--ok-soft); color: var(--ok); }
.pill.later { background: var(--warn-soft); color: var(--warn); }
.pill.done, .pill.off, .pill.call { background: var(--tint); color: var(--muted); }
.pill.open::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- top bar & header ---------- */
.topbar { background: var(--navy-deep); color: #fff; font-size: .92rem; }
:root:not([data-theme="light"]) .topbar { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar { background: #050a1f; } }
:root[data-theme="dark"] .topbar { background: #050a1f; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; padding-block: .45rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar .em { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; }
.topbar .em b { background: var(--red); color: #fff; border-radius: 4px; padding: 0 .4em; font-size: .78rem; letter-spacing: .06em; }
.topbar .note { opacity: .85; margin-left: auto; }
@media (max-width: 760px) { .topbar .note, .topbar .mail { display: none; } }

header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 50px; height: 50px; flex: none; }
.brand strong { display: block; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.2; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
nav.main a { padding: .5em .7em; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--tint); color: var(--navy); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 420px) { .brand small { display: none; } .brand img { width: 42px; height: 42px; } }

/* ---------- sections ---------- */
main { min-height: 60vh; }
section { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.8rem; }
.sec-head > div { display: grid; gap: .45rem; min-width: 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* hero */
.hero { padding-block: clamp(1.8rem, 4vw, 3.2rem) clamp(2.4rem, 5vw, 3.6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.2rem; }
.hero-copy .hi-name { font-size: 1.25rem; font-weight: 600; color: var(--red); }
.nabh-tag { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; padding: .3rem .8rem .3rem .35rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: .9rem; font-weight: 500; }
.nabh-tag i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-style: normal; }
.nabh-tag svg { width: 16px; height: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.search { position: relative; max-width: 520px; }
.search input { width: 100%; min-height: 52px; padding: .7rem 1rem .7rem 2.9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 1rem; }
.search input:focus { border-color: var(--navy); outline: none; }
.search > svg { position: absolute; left: 1rem; top: 15px; width: 20px; height: 20px; color: var(--muted); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 20; max-height: 340px; overflow-y: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a:focus { background: var(--tint); }
.search-results small { color: var(--muted); }
.hero-media { position: relative; }
.hero-media .photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.4; max-width: 100%; background: var(--tint); }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .addr { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; gap: .6rem; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); border-radius: 12px; padding: .6rem .85rem; font-size: .92rem; }
.hero-media .addr svg { width: 20px; height: 20px; color: var(--red); flex: none; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero-media { order: -1; } .hero-media .photo { aspect-ratio: 16 / 10; } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: 1rem 1.1rem; display: grid; gap: .1rem; }
.facts b { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.facts span { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* OPD board */
.board { background: var(--board); color: var(--board-ink); border-radius: 20px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 1rem; padding-bottom: 1rem; border-bottom: 1px dashed color-mix(in srgb, var(--board-dim) 50%, transparent); }
.board-head h2 { color: var(--board-ink); font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.board-head .clock { font-family: var(--font-mono); color: var(--board-dim); font-size: .95rem; }
.board-rows { display: grid; }
.board-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: .4rem 1.2rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid color-mix(in srgb, var(--board-dim) 22%, transparent); color: inherit; text-decoration: none; }
.board-row:hover .bn { text-decoration: underline; }
.board-row:last-child { border-bottom: 0; }
.board-row .bn { font-weight: 600; font-size: 1.05rem; }
.board-row .bd { color: var(--board-dim); font-size: .9rem; display: block; }
.board-row .bt { font-family: var(--font-mono); font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--board-ink); }
.board .pill.open { background: #0f3d2b; color: #5ee3a4; }
.board .pill.later { background: #3d300d; color: #f4c766; }
.board .pill.done, .board .pill.off, .board .pill.call { background: #1c2668; color: var(--board-dim); }
.board-foot { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: space-between; align-items: center; color: var(--board-dim); font-size: .92rem; }
.board-foot a { color: var(--board-ink); }
@media (max-width: 640px) { .board-row { grid-template-columns: 1fr auto; } .board-row .bt { grid-column: 1 / -1; grid-row: 2; } }

/* department grid */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .8rem; }
.dept-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: .25rem .9rem; align-items: start; padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.dept-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.dept-card .ic { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--navy); display: grid; place-items: center; }
.dept-card .ic svg { width: 26px; height: 26px; }
.dept-card b { font-weight: 650; line-height: 1.25; }
.dept-card small { color: var(--muted); font-size: .9rem; line-height: 1.3; }

/* doctors */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.doc-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.doc-card .ph { aspect-ratio: 5 / 4; background: var(--tint); overflow: hidden; position: relative; }
.doc-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.doc-card .ph .pill { position: absolute; left: 12px; top: 12px; box-shadow: var(--shadow); }
.mono-av { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--navy); background: linear-gradient(160deg, var(--tint), var(--surface)); letter-spacing: .02em; }
.doc-card .bd { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .55rem; align-content: start; }
.doc-card h3 a { color: var(--ink); text-decoration: none; }
.doc-card h3 a:hover { color: var(--navy); }
.doc-card .des { color: var(--red); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.doc-card .qual { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.opd { display: grid; gap: .2rem; padding: .6rem .75rem; border-radius: 10px; background: var(--tint); font-size: .92rem; }
.opd div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .8rem; }
.opd span:first-child { color: var(--muted); }
.opd span:last-child { font-family: var(--font-mono); font-size: .85rem; font-variant-numeric: tabular-nums; }
.doc-card .acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.toolbar .search { flex: 1 1 280px; }

/* doctor detail */
.profile { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.profile .ph { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); max-width: 100%; }
.profile .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.profile .info { display: grid; gap: 1rem; }
.week { width: 100%; border-collapse: collapse; font-size: .98rem; }
.week th, .week td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
.week th { font-weight: 600; width: 34%; }
.week td { font-family: var(--font-mono); font-size: .9rem; font-variant-numeric: tabular-nums; }
.week tr.today { background: var(--tint); }
.week tr.today th::after { content: " · today"; color: var(--red); font-family: var(--font-body); font-weight: 500; font-size: .85rem; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile .ph { max-width: 320px; } }

/* department detail */
.dept-hero { display: grid; gap: .8rem; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.dept-hero .ic { width: 58px; height: 58px; border-radius: 14px; background: var(--tint); color: var(--navy); display: grid; place-items: center; }
.dept-hero .ic svg { width: 32px; height: 32px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: grid; gap: .8rem; align-content: start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .6rem; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: .2em; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2b8f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--muted); }

/* facilities */
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.fac { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.fac .im { aspect-ratio: 8 / 6; background: var(--tint); }
.fac .im img { width: 100%; height: 100%; object-fit: cover; }
.fac .bd { padding: .9rem 1rem 1rem; display: grid; gap: .35rem; align-content: start; }
.fac .bd .row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.fac p { color: var(--muted); font-size: .95rem; }
.tag24 { font-family: var(--font-mono); font-size: .75rem; font-weight: 600; color: var(--red); border: 1px solid currentColor; border-radius: 6px; padding: 0 .35em; white-space: nowrap; }
.fac-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .6rem; }
.fac-list div { display: grid; gap: .1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.fac-list small { color: var(--muted); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.strip figure { margin: 0; scroll-snap-align: start; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.strip img { aspect-ratio: 8 / 6; object-fit: cover; width: 100%; }
.strip figcaption { padding: .6rem .8rem; font-weight: 600; display: flex; justify-content: space-between; gap: .5rem; align-items: center; }

/* insurance */
.ins-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.ins { display: inline-grid; gap: 0; padding: .6rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.ins b { font-weight: 650; }
.ins small { color: var(--muted); font-size: .82rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: .8rem; align-items: start; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--surface); font-weight: 700; font-family: var(--font-display); }

/* NABH */
.nabh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.nabh .seal { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.nabh .seal svg { width: 48px; height: 48px; }
.nabh dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem 1.4rem; margin: .7rem 0 0; }
.nabh dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.nabh dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .nabh { grid-template-columns: 1fr; } }

/* patients / documents */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .8rem; }
.svc { display: grid; gap: .4rem; padding: 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); align-content: start; }
.svc:hover { border-color: var(--navy); }
.svc .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.svc .ic svg { width: 22px; height: 22px; }
.svc small { color: var(--muted); }
.docs { display: grid; gap: .6rem; }
.doc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.doc-row .ft { width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }
.doc-row small { color: var(--muted); display: block; }
@media (max-width: 520px) { .doc-row { grid-template-columns: 44px minmax(0, 1fr); } .doc-row .btn { grid-column: 1 / -1; } }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; }
.hours td small { color: var(--muted); display: block; }
.table-scroll { overflow-x: auto; }

/* forms */
.form { display: grid; gap: .9rem; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; }
.field small { color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.msg { padding: .8rem 1rem; border-radius: 10px; font-weight: 500; }
.msg.err { background: var(--red-soft); color: var(--red); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.2rem, 3vw, 2rem); }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1.4rem; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 1rem; }
.contact-list > div:not(.cta-row) { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .8rem; align-items: start; }
.contact-list .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--navy); display: grid; place-items: center; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { color: var(--muted); display: block; }
.contact-list b { font-weight: 600; word-break: break-word; }
.success { display: grid; gap: .8rem; text-align: left; }
.success .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.success .ic svg { width: 30px; height: 30px; }

/* emergency band */
.em-band { background: var(--red); color: #fff; }
.em-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.em-band h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.em-band p { opacity: .92; }
.em-band .btn { background: #fff; color: #b3141b; }
.em-band .nums { display: flex; flex-wrap: wrap; gap: .6rem; }

/* footer */
footer.site { background: var(--navy-deep); color: #dfe5ff; padding-block: 3rem 1.5rem; margin-top: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer.site { background: #050a1f; } }
:root[data-theme="dark"] footer.site { background: #050a1f; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .09em; color: #9aa6e6; margin-bottom: .8rem; font-family: var(--font-body); font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.foot-brand { display: grid; gap: .8rem; }
.foot-brand .row { display: flex; gap: .8rem; align-items: center; }
.foot-brand img { width: 56px; height: 56px; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .9rem; color: #9aa6e6; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* misc */
.demo-bar { background: var(--warn-soft); color: var(--warn); font-size: .9rem; text-align: center; padding: .4rem var(--gutter); }
.empty { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.loading { padding: 4rem 0; text-align: center; color: var(--muted); }
.view-enter { animation: fade .35s ease both; }
@keyframes fade { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.prose { display: grid; gap: 1rem; max-width: 68ch; }
.prose p { color: var(--ink); }
.goal-list { counter-reset: g; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .7rem; }
.goal-list li { padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mt { margin-top: 1.4rem; }
.mt2 { margin-top: 2.4rem; }
.grid-gap { display: grid; gap: 1rem; }
