/* Self-hosted fonts — WHY local files instead of Google Fonts:
   the finder is a PWA that must work offline and on slow 2 AM mobile
   data. A Google Fonts stylesheet is an external render dependency:
   when it fails (blocked network, proxy, offline first visit) the page
   falls back to system fonts and the console logs a failed request.
   These woff2 files are the exact Google Fonts files (Hind Siliguri
   400/500/600/700 static per weight; Sora variable wght 400-800, one
   file per subset — verified with fontTools), downloaded 29 Nov 2026
   from fonts.gstatic.com and served from fonts/. The service worker
   precaches them, so offline renders in the real typefaces. The
   unicode-range lines mean a browser downloads only the subsets its
   text needs (bengali glyphs only when Bangla is on screen). */
/* Hind Siliguri 400 — bengali subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hind-siliguri-400-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
/* Hind Siliguri 400 — latin-ext subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hind-siliguri-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Hind Siliguri 400 — latin subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hind-siliguri-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Hind Siliguri 500 — bengali subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/hind-siliguri-500-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
/* Hind Siliguri 500 — latin-ext subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/hind-siliguri-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Hind Siliguri 500 — latin subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/hind-siliguri-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Hind Siliguri 600 — bengali subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/hind-siliguri-600-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
/* Hind Siliguri 600 — latin-ext subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/hind-siliguri-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Hind Siliguri 600 — latin subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/hind-siliguri-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Hind Siliguri 700 — bengali subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hind-siliguri-700-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
/* Hind Siliguri 700 — latin-ext subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hind-siliguri-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Hind Siliguri 700 — latin subset */
@font-face {
  font-family: 'Hind Siliguri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hind-siliguri-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Sora — latin-ext subset, variable font wght 400-800 (one file
   serves 600/700/800; verified: fvar axis wght 400-800) */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Sora — latin subset, variable font wght 400-800 (one file
   serves 600/700/800; verified: fvar axis wght 400-800) */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* RaatPharmacy — premium night-pharmacy system.
   Deep emerald ink + warm mint. Night is the use scene: dark is the
   default; a light theme follows the system setting for daylight use.
   No framework. Touch targets >= 44px. Header stacks on phones. */
:root {
  --bg: #061f1c;
  --bg-soft: #082825;
  --surface: #0d2f2a;
  --surface-2: #123b34;
  --surface-3: #175046;
  --text: #eef7f2;
  --muted: #a9c6bb;
  --muted-2: #7fa79a;
  --accent: #34e5a6;
  --accent-soft: #0e3d2f;
  --accent-ink: #04281c;
  --amber: #ffc857;
  --amber-soft: #33270a;
  --amber-ink: #ffd98a;
  --red: #ff9a9a;
  --red-soft: #3d1d1d;
  --border: #21483f;
  --border-strong: #2f6355;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .28), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .34);
  --radius: 18px;
  --radius-sm: 12px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f6f2;
    --bg-soft: #e8f0ea;
    --surface: #ffffff;
    --surface-2: #eef5ef;
    --surface-3: #dcebe1;
    --text: #0b2b24;
    --muted: #4c6b60;
    --muted-2: #4e6d5c;
    --accent: #0a7a52;
    --accent-soft: #d9f3e6;
    --accent-ink: #ffffff;
    --amber: #8a5d00;
    --amber-soft: #fff3d1;
    --amber-ink: #6b4a00;
    --red: #b3271e;
    --red-soft: #fbe3e1;
    --border: #d3e0d8;
    --border-strong: #b3cbc0;
    --shadow-1: 0 1px 2px rgba(11, 43, 36, .08), 0 8px 24px rgba(11, 43, 36, .1);
    --shadow-2: 0 2px 4px rgba(11, 43, 36, .1), 0 16px 40px rgba(11, 43, 36, .14);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* ---------- Premium night background (restrained, human, not AI-generic) ----------
   No purple-blue gradients, no glass-everywhere, no decoration for its
   own sake. Dark: one deep-emerald gradient (never flat black), one
   soft moon glow top-right, and a few faint stars that fade out below
   the hero. Everything is pure CSS/SVG — no background photo, no
   extra download, no motion (static: nothing animates here, so
   prefers-reduced-motion needs no exception). Light mode gets the same
   idea in warm mint: soft gradient + mint glow, no stars. */
body {
  margin: 0;
  font-family: "Hind Siliguri", "Sora", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  background:
    radial-gradient(680px 420px at 88% -8%, rgba(52, 229, 166, .09), transparent 62%),
    radial-gradient(520px 340px at 6% 0%, rgba(52, 229, 166, .05), transparent 60%),
    linear-gradient(180deg, #0a2a24 0%, #071f1b 26%, #051713 100%);
  background-attachment: scroll;
  color: var(--text);
  line-height: 1.55;
}
/* Faint stars, top of the page only, fading out below the hero. A
   fixed pseudo-element would paint stars over the cards while
   scrolling; this one is absolute, masked, and pointer-transparent. */
body::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 560px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='260'%3E%3Cg fill='%23dff5e9'%3E%3Ccircle cx='30' cy='40' r='1.1' opacity='.5'/%3E%3Ccircle cx='120' cy='90' r='.8' opacity='.35'/%3E%3Ccircle cx='210' cy='30' r='1.3' opacity='.45'/%3E%3Ccircle cx='290' cy='120' r='.9' opacity='.4'/%3E%3Ccircle cx='70' cy='180' r='1' opacity='.3'/%3E%3Ccircle cx='180' cy='200' r='.8' opacity='.35'/%3E%3Ccircle cx='330' cy='210' r='1.1' opacity='.3'/%3E%3Ccircle cx='250' cy='70' r='.7' opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 360px 260px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  opacity: .8;
}
/* Light mode background — MUST come after the base body rule above:
   same specificity, so the later rule wins. (An earlier version put
   this inside the :root media block at the top of the file, where the
   dark body gradient below it overrode it — light-mode visitors got a
   dark background with dark text and an invisible hero title.) */
@media (prefers-color-scheme: light) {
  body {
    background:
      radial-gradient(680px 420px at 88% -8%, rgba(10, 122, 82, .10), transparent 62%),
      linear-gradient(180deg, #f5f9f4 0%, #e9f1ea 34%, #dfece2 100%);
  }
  body::before { display: none; } /* stars belong to the night */
}
/* Bangla script needs taller line-height than Latin (matra + descenders). */
:lang(bn) { line-height: 1.75; }
h1, h2, h3 { line-height: 1.25; }
/* Skip link: first Tab stop, jumps to #main. */
.skip-link {
  position: absolute; left: 16px; top: -72px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
/* Skip target itself is not interactive: no outline when jumped to. */
#main:focus { outline: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hidden { display: none !important; }

/* ---------- Header: stacks on phones, never overlaps ----------
   The ONE frosted surface on the site (deliberate restraint: cards
   stay solid — glass everywhere reads as generic AI output, and 94
   blurred cards would jank scrolling on cheap phones). The header is
   translucent + blurred so the night gradient shows through faintly.
   Sticky only from 640px up: on phones the stacked header is tall
   and would eat the screen. */
.topbar {
  background:
    radial-gradient(720px 260px at 18% -40%, rgba(52, 229, 166, .14), transparent 65%),
    linear-gradient(160deg, rgba(10, 46, 40, .88), rgba(7, 31, 27, .9));
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) {
  .topbar { position: sticky; top: 0; z-index: 30; }
}
@media (prefers-color-scheme: light) {
  .topbar {
    background:
      radial-gradient(720px 260px at 18% -40%, rgba(10, 122, 82, .12), transparent 65%),
      linear-gradient(160deg, rgba(13, 61, 49, .9), rgba(10, 46, 38, .92));
    color: #eef7f2;
  }
  .topbar .brand p { color: #bcd8cb; }
  .topbar .clock { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #d9efe3; }
  .topbar .lang-btn { color: #eef7f2; border-color: rgba(238, 247, 242, .45); }
  .topbar .lang-btn:hover { color: #34e5a6; border-color: #34e5a6; }
}
.topbar-in {
  max-width: 1200px; margin: 0 auto; padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.brand { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.brand-mark {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--border-strong);
  /* Subtle night-theme delight: the moon mark breathes very slowly.
     The prefers-reduced-motion block below disables all animation,
     so this never moves for visitors who asked for stillness. */
  animation: moonGlow 4.5s ease-in-out infinite;
}
@keyframes moonGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 229, 166, 0); }
  50% { box-shadow: 0 0 18px 2px rgba(52, 229, 166, .28); }
}
.brand-text { min-width: 0; }
.brand h1 {
  margin: 0; font-family: "Sora", "Hind Siliguri", sans-serif;
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  overflow-wrap: break-word;
}
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.top-right {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.clock {
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 14px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.lang-btn {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 9px 16px; min-height: 44px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }
.hero { padding: 28px 0 8px; }
.hero-title {
  margin: 0; font-family: "Sora", "Hind Siliguri", sans-serif;
  font-size: clamp(28px, 6vw, 44px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance;
}
.hero-sub { margin: 10px 0 0; color: var(--muted); font-size: 16.5px; max-width: 62ch; text-wrap: pretty; }
/* One-tap action for the 2 AM visitor: the single biggest button on
   the page, directly under the pitch. One tap filters to open
   pharmacies and scrolls to them — no hunting through filters. */
.hero-cta { margin-top: 18px; font-size: 16px; padding: 13px 24px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.hero-cta .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: pulse 2.2s ease-out infinite; }
/* Hero illustration: an editorial frame, not a stock photo. The
   caption says plainly that it is an illustration — honesty is part
   of the craft. Fixed aspect ratio + width/height attributes on the
   <img> mean zero layout shift while it loads. */
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 4px 6px 4px 16px;
  margin-top: 20px; box-shadow: var(--shadow-1);
}
.search-wrap:focus-within { border-color: var(--accent); box-shadow: var(--shadow-1), 0 0 0 3px rgba(52, 229, 166, .22); }
.search-icon { flex-shrink: 0; color: var(--muted-2); }
.search-wrap input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 17px; font-family: inherit;
  padding: 12px 8px 12px 0; min-height: 44px;
}
.search-wrap input::placeholder { color: #93b3a9; }
@media (prefers-color-scheme: light) {
  .search-wrap input::placeholder { color: #4c6b60; }
}
.search-wrap input::-webkit-search-cancel-button { cursor: pointer; }

/* Stats as filter chips */
.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.stat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 16px; min-height: 48px;
  font-size: 15px; font-family: inherit; color: var(--text); cursor: pointer;
  box-shadow: var(--shadow-1);
}
.stat-chip strong { font-size: 19px; font-variant-numeric: tabular-nums; line-height: 1; }
.stat-chip span { color: var(--muted); }
.stat-chip .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 229, 166, .25);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 229, 166, .45); }
  70% { box-shadow: 0 0 0 8px rgba(52, 229, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 229, 166, 0); }
}
.stat-chip[aria-pressed="true"] {
  background: var(--accent-soft); border-color: var(--accent); color: var(--text);
}
.stat-chip[aria-pressed="true"] span { color: var(--muted); }
.stat-chip:hover { border-color: var(--border-strong); }
.stock-note {
  margin: 16px 0 0; font-size: 14px; color: var(--amber-ink);
  background: var(--amber-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  display: flex; gap: 8px; align-items: flex-start;
}
/* One-tap area shortcuts, generated from the data. Same pill language
   as the stat chips, smaller and quieter — they are shortcuts, not
   the main filters. */
.quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.quick-links-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.area-quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.area-quick-links:empty { display: none; }
.area-quick-chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px; min-height: 44px;
  font-size: 14px; font-family: inherit; color: var(--text); cursor: pointer;
}
.area-quick-chip:hover { border-color: var(--accent); }

/* ---------- Emergency strip ----------
   Deliberately plain and urgent-looking, but in the site's own palette
   (deep red-tinted surface, no alarming flashing, no stock imagery).
   It sits between the hero and the results so a visitor in trouble
   sees 999 before any filter. Every number is a tel: link. */
.emergency-strip {
  margin-top: 20px; background: var(--red-soft);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-1);
}
.emergency-strip h2 {
  margin: 0; font-family: "Sora", "Hind Siliguri", sans-serif;
  font-size: 17px; font-weight: 700; color: var(--text);
}
.emergency-strip p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.emergency-numbers {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.emergency-numbers a {
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 8px 16px;
  font-size: 14.5px; font-weight: 700; color: var(--text); text-decoration: none;
}
.emergency-numbers a:hover { border-color: var(--accent); }
.emergency-numbers li:first-child a {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}

/* Tonight at a glance, above the results: one live-computed line.
   text-wrap: pretty keeps the long pharmacy name from stranding a
   single word on the last line at phone widths. */
.tonight-plan { color: var(--text); font-size: 15px; font-weight: 600; margin: 2px 2px 4px; text-wrap: pretty; }
.tonight-plan:empty { display: none; }

/* ---------- Layout ---------- */
.layout { display: grid; gap: 24px; margin-top: 20px; }
.sidebar-title {
  margin: 0 0 12px; font-family: "Sora", "Hind Siliguri", sans-serif;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
}
.controls {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-1);
}
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field select {
  width: 100%; padding: 11px 12px; min-height: 48px; font-size: 15.5px; font-family: inherit;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg-soft); color: var(--text); cursor: pointer;
}
.clear-btn { width: 100%; justify-content: center; min-height: 48px; }
.nearest-btn { width: 100%; justify-content: center; min-height: 48px; margin-bottom: 10px; }
.nearest-note { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.nearest-note:empty { display: none; }
.nearest-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }

/* Offline banner + no-JS fallback */
.offline-note {
  margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--amber-ink);
  background: var(--amber-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
}
.noscript-note {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-top: 20px; box-shadow: var(--shadow-1);
}
.noscript-note p { margin: 0 0 10px; font-size: 15px; }
.noscript-note ul { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.9; }

/* Skeleton loading cards */
.skeleton { pointer-events: none; }
.sk-line { border-radius: 8px; background: var(--surface-2); margin-bottom: 12px; animation: shimmer 1.4s ease-in-out infinite; }
.sk-title { height: 22px; width: 65%; }
.sk-sub { height: 15px; width: 85%; }
.sk-btn { height: 48px; width: 55%; border-radius: 999px; margin-bottom: 0; }
@keyframes shimmer { 0% { opacity: .55; } 50% { opacity: 1; } 100% { opacity: .55; } }

/* Deep-link highlight */
.card-highlight { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Empty / error states */
.empty .btn { margin-top: 14px; }
.error-text { color: var(--red); font-weight: 600; margin: 0; }

.about {
  margin-top: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-1);
}
.about h2 { margin: 0 0 8px; font-family: "Sora", "Hind Siliguri", sans-serif; font-size: 17px; font-weight: 700; }
.about p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.about .sources { font-size: 13px; margin-bottom: 0; }
.about .sources a, footer .footer-links a { color: var(--accent); text-decoration: none; font-weight: 700; }
.about .sources a:hover, footer .footer-links a:hover { text-decoration: underline; }

/* ---------- Guides section (after the results, never in the hero) ----------
   The hero stays clean and focused on one job: finding an open
   pharmacy right now. The guides live here, as proper article cards
   with title, teaser and reading time — easy to find, never in the
   way. Same solid surface + fine border as the pharmacy cards, so
   the whole page reads as one careful system. */
.guides { margin-top: 36px; }
.guides-head h2 {
  margin: 0; font-family: "Sora", "Hind Siliguri", sans-serif;
  font-size: clamp(22px, 4vw, 28px); font-weight: 800; letter-spacing: -0.02em;
}
.guides-head p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.guides-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.guide-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.guide-card h3 { margin: 0 0 6px; font-family: "Sora", "Hind Siliguri", sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; }
.guide-card h3 a { color: var(--text); text-decoration: none; }
.guide-card h3 a:hover { color: var(--accent); }
.guide-card p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.guide-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted-2); }
.guide-meta a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.guide-meta a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .guides-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .guides-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Results / cards ----------
   Cards stay SOLID surfaces on purpose: one frosted header is a
   considered detail; 94 blurred cards would look like generic AI
   glassmorphism and jank scrolling on cheap phones. Fine 1px border
   + layered shadow is the craft here. */
.result-count { color: var(--muted); font-size: 14px; margin: 2px 2px 12px; }
.pharmacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease;
  min-width: 0;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
/* Open cards are scannable at a glance at night: a mint bar down the
   left edge (inset shadow, so it never moves the layout) plus a
   slightly stronger border. Closed cards stay flat. */
.card-open { background: var(--surface); border-color: var(--border-strong); box-shadow: inset 3px 0 0 var(--accent), var(--shadow-1); }
.card-open:hover { box-shadow: inset 3px 0 0 var(--accent), var(--shadow-2); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card-head > div:first-child { flex: 1 1 220px; min-width: 0; }
.card h3 { margin: 0; font-family: "Sora", "Hind Siliguri", sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.card .area { color: var(--muted); font-size: 13.5px; margin: 3px 0 0; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge {
  font-size: 14px; font-weight: 700; line-height: 1.3;
  border-radius: 999px; padding: 8px 13px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.badge-open { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border-strong); font-size: 15px; padding: 9px 14px; }
.badge-open .dot { animation: pulse 2.2s ease-out infinite; }
.badge-closed { background: var(--red-soft); color: var(--red); border: 1px solid var(--border); }
.badge-unknown { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-late { background: var(--amber-soft); color: var(--amber-ink); border: 1px solid var(--border); }
.badge-unverified { background: var(--amber-soft); color: var(--amber-ink); border: 1px solid var(--border); font-size: 13px; padding: 5px 10px; }
.tier-badge {
  font-size: 12.5px; font-weight: 700; line-height: 1.3;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.hours-line { margin: 12px 0 2px; font-size: 15.5px; }
.next-line { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.countdown { margin: 0 0 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Closing soon is the one line a night visitor must not miss: an amber
   pill, not just coloured text, so it reads at a glance. */
.countdown-soon { color: var(--amber-ink); font-weight: 700; background: var(--amber-soft); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; display: inline-block; }
.distance { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.address { margin: 0 0 14px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* ---------- Buttons ---------- */
/* One primary action per card (Call) plus small icon buttons. Every
   button is at least 44px tall so it is easy to tap on a phone. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 18px; min-height: 48px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { flex-shrink: 0; }
.btn-call { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); position: relative; }
.btn-call:hover { transform: translateY(-1px); }
/* "Dialing…" feedback: an overlay, not a label swap — swapping the label
   changes the button's width and shifts the layout underneath the
   visitor's next tap. The overlay covers the button in place. */
.btn-call.is-dialing::after {
  content: attr(data-dialing-text);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: inherit; font-size: 15px; font-weight: 700;
}
.btn-wa { background: var(--accent-soft); color: var(--accent); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: default; }
/* Secondary icon-only buttons (WhatsApp / directions / share): 48px. */
.btn-icon { width: 48px; min-width: 48px; padding: 11px 0; }
.phone-line { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.phone-line .phone-text { color: var(--text); font-weight: 600; }
.unverified-note { margin: 6px 0 0; font-size: 13.5px; color: var(--amber-ink); overflow-wrap: anywhere; }
.meta-line { margin: 6px 0 0; font-size: 13px; color: var(--muted-2); overflow-wrap: anywhere; }
.correction-badge {
  margin-top: 10px; font-size: 13px; color: var(--amber-ink);
  background: var(--amber-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px;
}
.card .notes { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.link-btn {
  background: none; border: none; color: var(--muted-2); font-size: 13.5px; font-family: inherit;
  padding: 12px 0 0; min-height: 44px; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--text); }
.empty { text-align: center; color: var(--muted); padding: 32px 10px; }
.empty-suggest { margin: 14px 0 0; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 28px; }

/* Correction sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; }
/* Correction sheet: cap its height and let it scroll internally, so
   on a short viewport (landscape phone, keyboard open) the input and
   the submit button can always be reached. */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-radius: 20px 20px 0 0;
  border: 1px solid var(--border); border-bottom: 0; padding: 20px 18px 24px;
  max-width: 640px; margin: 0 auto; box-shadow: var(--shadow-2);
  max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain;
}
.sheet h2 { margin: 0 0 4px; font-family: "Sora", "Hind Siliguri", sans-serif; font-size: 19px; }
.sheet-sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.note-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.sheet input {
  width: 100%; padding: 12px 14px; min-height: 48px; font-size: 15px; font-family: inherit;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg-soft); color: var(--text);
}
.sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.sheet-actions .btn { flex: 1; }
.sheet-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14.5px;
  border-radius: 999px; padding: 12px 20px; min-height: 48px; z-index: 60;
  box-shadow: var(--shadow-2); max-width: calc(100vw - 32px);
  display: inline-flex; align-items: center; gap: 10px; text-align: center;
}
.toast a { color: var(--accent-ink); font-weight: 800; white-space: nowrap; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .topbar-in { flex-direction: row; justify-content: space-between; align-items: flex-start; padding: 20px 24px 18px; }
  .top-right { flex-direction: column; align-items: flex-end; }
  .brand h1 { font-size: 28px; }
}
@media (min-width: 768px) {
  .pharmacy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .layout { grid-template-columns: 300px 1fr; align-items: start; }
  .sidebar { position: sticky; top: 16px; }
  .controls { position: static; }
  .hero { padding-top: 36px; }
}
/* Below desktop width the filter panel is STATIC (never sticky, never
   overlapping) and the About section moves after the results, so the
   pharmacy list is reachable within one screen of scrolling. */
@media (max-width: 1023px) {
  .layout { display: flex; flex-direction: column; margin-top: 14px; }
  .sidebar { display: contents; }
  .controls { position: static; order: 1; }
  .results { order: 2; }
  .about { order: 3; }
}
/* Filter/search changes: subtle 120ms fade+rise on the list.
   Disabled under prefers-reduced-motion (see the block below). */
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.pharmacy-list.list-anim .card { animation: cardIn 120ms cubic-bezier(.2,.8,.2,1) both; }
/* ---------- Print: ink-friendly, no dark flood ----------
   A visitor printing the list gets black text on white, no dark
   backgrounds, and none of the interactive chrome (header buttons,
   filters, action buttons, sheet, toast). Cards become plain
   bordered blocks that do not split across pages. */
@media print {
  body { background: #fff !important; color: #111 !important; }
  body::before { display: none !important; }
  .topbar { position: static !important; background: #fff !important; border-bottom: 2px solid #111; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar .brand p, .topbar .clock, .top-right { color: #333 !important; }
  .top-right .lang-btn, .hero-cta, .search-wrap, .stat-chips,
  .sidebar, .sheet, .sheet-backdrop, .toast, .skip-link, .actions,
  .link-btn, .guides, footer .footer-links { display: none !important; }
  .card, .guide-card { background: #fff !important; color: #111 !important; border: 1px solid #999 !important; box-shadow: none !important; break-inside: avoid; }
  .card .area, .address, .meta-line, .phone-line { color: #333 !important; }
  .badge { border: 1px solid #666 !important; background: #fff !important; color: #111 !important; }
  .hero-title, .card h3 { color: #111 !important; }
  .hero-sub, .stock-note { color: #333 !important; }
  main { padding: 0; }
  a { color: #111 !important; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
