/* Burnett Edgar Medical Centre — public website (test build 2026-10)
   Brand: Lato; blue #0052cc; ink #0b1f3a; yellow bar #ffd100; magenta #d6216b.
   Laws: yellow = brand only (rule + headline bar), never a status.
         blue = clickable. Red = emergency only. No left-accent cards. */

@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/lato-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/lato-900.woff2") format("woff2"); }

:root {
  --blue: #0052cc;
  --blue-dark: #003d99;
  --ink: #0b1f3a;
  --body: #2d3748;
  --muted: #4a5568;
  --faint: #6b7a90;
  --panel: #f0f5ff;
  --panel-line: #cfe0ff;
  --tint: #e4eeff;
  --lavender: #f4f0fc;
  --magenta: #d6216b;
  --magenta-dark: #b0154f;
  --yellow: #ffd100;
  --red: #c8102e;
  --red-soft: #fdecee;
  --green: #0f7b4a;
  --green-soft: #e6f4ec;
  --line: #dfe5ee;
  --surface: #ffffff;
  --page: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .06);
  --gutter: 16px;
  --max: 1160px;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--page); color: var(--body);
  font: 400 17px/1.6 var(--font);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6.4vw, 52px); font-weight: 400; letter-spacing: -.01em; }
h1 b, h2 b { font-weight: 900; }
h2 { font-size: clamp(24px, 4.4vw, 34px); font-weight: 400; }
h3 { font-size: 20px; font-weight: 900; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin: .25em 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 10px 14px; font-weight: 700; z-index: 1000; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Test-build ribbon ---------- */
.testbar { background: var(--lavender); color: var(--ink); font-size: 13px; text-align: center; padding: 6px var(--gutter); border-bottom: 1px solid #e2d9f7; }
.testbar a { font-weight: 700; }

/* ---------- Urgent strip (ink) ---------- */
.urgent { background: var(--ink); color: #fff; font-size: 14px; }
.urgent .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.urgent a { color: #fff; font-weight: 700; text-decoration: none; }
.urgent a:hover { text-decoration: underline; color: #fff; }
.urgent .u-999 { display: inline-flex; align-items: center; gap: 8px; }
.urgent .u-999 i { font-style: normal; background: var(--red); color: #fff; border-radius: 6px; padding: 1px 7px; font-weight: 900; }
.urgent .u-111 i { font-style: normal; background: #fff; color: var(--ink); border-radius: 6px; padding: 1px 7px; font-weight: 900; margin-right: 6px; }
.urgent .u-phone { display: none; }
@media (min-width: 720px) { .urgent .u-phone { display: inline; } }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.masthead::after { content: ""; display: block; height: 3px; background: var(--yellow); }
.masthead .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; flex: 0 0 auto; }
.brand .wm b, .brand .wm span { white-space: nowrap; }
.brand svg { flex: 0 0 auto; width: 34px; height: 34px; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-weight: 900; font-size: 20px; letter-spacing: -.01em; color: var(--ink); }
.brand .wm span { font-size: 10px; letter-spacing: .22em; color: var(--muted); font-weight: 700; margin-top: 4px; }
.status { display: none; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.status.open .dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.status b { color: var(--ink); }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; white-space: nowrap; padding: 10px 11px; border-radius: 8px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.nav a:hover { background: var(--panel); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.btn-mara { display: inline-flex; align-items: center; gap: 8px; background: var(--magenta); color: #fff; border: 0; border-radius: var(--radius-pill); padding: 10px 16px; font: 700 15px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-mara:hover { background: var(--magenta-dark); color: #fff; }
.btn-mara .spark { width: 18px; height: 18px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.masthead .btn-mara .lbl-long { display: none; }
@media (min-width: 420px) { .masthead .btn-mara .lbl-long { display: inline; } .masthead .btn-mara .lbl-short { display: none; } }
@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .masthead .wrap { min-height: 76px; }
}
@media (min-width: 1340px) { .masthead .status { display: inline-flex; } }

/* ---------- Mobile menu sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: none; }
.sheet.open { display: block; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(11, 31, 58, .45); }
.sheet .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet .top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.sheet nav { overflow-y: auto; padding: 8px var(--gutter) 24px; }
.sheet nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.sheet nav a small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.sheet nav a::after { content: "›"; color: var(--blue); font-size: 24px; font-weight: 400; }
.sheet .sheet-foot { margin-top: auto; padding: 16px var(--gutter); background: var(--panel); display: grid; gap: 10px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius-pill); font: 700 16px/1.1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--panel-line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-magenta { background: var(--magenta); color: #fff; }
.btn-magenta:hover { background: var(--magenta-dark); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--yellow); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.btn-row .btn { flex: 1 1 220px; }
@media (min-width: 720px) { .btn-row .btn { flex: 0 0 auto; } }

/* ---------- Kicker + headline bar ---------- */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.bar { display: block; width: 56px; height: 5px; background: var(--yellow); border-radius: 3px; margin: 14px 0 18px; }
.lead { font-size: clamp(18px, 2.6vw, 21px); color: var(--muted); max-width: 46ch; }

/* ---------- Hero (home) ---------- */
.hero { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.6px, transparent 1.7px); background-size: 22px 22px; mask-image: linear-gradient(115deg, transparent 40%, #000 95%); -webkit-mask-image: linear-gradient(115deg, transparent 40%, #000 95%); pointer-events: none; }
.hero .wrap { position: relative; padding-top: 36px; padding-bottom: 36px; display: grid; gap: 28px; }
.hero h1 { color: #fff; }
.hero .kicker { color: #cfe0ff; }
.hero .lead { color: #e4eeff; }
.hero .status-big { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 8px 14px; border-radius: var(--radius-pill); font-size: 15px; }
.hero .status-big .dot { width: 10px; height: 10px; border-radius: 50%; background: #9fb3d1; }
.hero .status-big.open .dot { background: #5ee39b; box-shadow: 0 0 0 4px rgba(94, 227, 155, .25); }
.hero-tiles { display: grid; gap: 12px; }
.tile-glass { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 16px; color: #fff; text-decoration: none; transition: background .15s, transform .15s; }
.tile-glass:hover { background: rgba(255, 255, 255, .22); color: #fff; transform: translateY(-1px); }
.tile-glass .ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); }
.tile-solid { display: flex; gap: 16px; align-items: center; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 20px; text-decoration: none; box-shadow: 0 10px 30px rgba(11, 31, 58, .25); transition: transform .15s, box-shadow .15s; }
.tile-solid:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(11, 31, 58, .3); }
.tile-solid .ico { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.tile-solid .ico svg { width: 28px; height: 28px; }
.tile-solid b { display: block; font-size: 23px; font-weight: 900; line-height: 1.15; }
.tile-solid span span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.tile-solid::after { content: "›"; margin-left: auto; font-size: 32px; color: var(--blue); }
.tile-solid.mara .ico { background: var(--magenta); }
.tile-solid.mara::after { color: var(--magenta); }
.tile-solid.call .ico { background: var(--green); }
.tile-solid.call::after { color: var(--green); }
@media (max-width: 719px) {
  .tile-solid { padding: 16px; gap: 14px; }
  .tile-solid .ico { width: 48px; height: 48px; }
  .tile-solid .ico svg { width: 24px; height: 24px; }
  .tile-solid b { font-size: 20px; }
  .tile-solid span span { font-size: 14px; }
}
@media (max-width: 719px) {
  .hero .wrap { padding-top: 22px; padding-bottom: 24px; gap: 18px; }
  .hero .bar { margin: 10px 0 12px; }
  .hero .lead { margin-bottom: 12px; }
  .hero-tiles { gap: 10px; }
}
/* Home: the header MARA button waits until the big MARA button scrolls away. */
.btn-mara { transition: opacity .2s; }
.btn-mara.is-tucked { opacity: 0; pointer-events: none; }
.tile-glass.mara .ico { background: var(--magenta); color: #fff; }
.tile-glass .ico svg { width: 24px; height: 24px; }
.tile-glass b { display: block; font-size: 18px; font-weight: 900; }
.tile-glass span { display: block; font-size: 14px; color: #e4eeff; }
.tile-glass::after { content: "›"; margin-left: auto; font-size: 28px; opacity: .8; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 64px; gap: 48px; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--panel); border-bottom: 1px solid var(--panel-line); }
.page-head .wrap { padding-top: 26px; padding-bottom: 26px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(30px, 5.6vw, 46px); }
.page-head .lead { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section.alt { background: var(--panel); }
.section-head { margin-bottom: 20px; }
.section-head p { color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .section { padding: 64px 0; } }

/* ---------- Emergency band ---------- */
.help-now { display: grid; gap: 12px; }
.help-card { border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); background: #fff; display: grid; gap: 6px; align-content: start; }
.help-card h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.help-card .num { font-weight: 900; font-size: 15px; border-radius: 8px; padding: 2px 10px; }
.help-card.e999 { background: var(--red-soft); border-color: #f4c3c9; }
.help-card.e999 .num { background: var(--red); color: #fff; }
.help-card.e111 .num { background: var(--ink); color: #fff; }
.help-card.pharm .num { background: var(--green); color: #fff; }
.help-card p { margin: 0; color: var(--body); font-size: 16px; }
.help-card a.more { font-weight: 700; }
@media (min-width: 760px) { .help-now { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Task grid ---------- */
.tasks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.task { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; min-height: 118px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.task:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.task .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.task .ico svg { width: 22px; height: 22px; }
.task b { font-weight: 900; font-size: 17px; line-height: 1.2; }
.task span { font-size: 14px; color: var(--muted); line-height: 1.35; }
@media (min-width: 760px) { .tasks { grid-template-columns: repeat(4, 1fr); gap: 14px; } .task { padding: 20px; min-height: 150px; } }

/* ---------- Generic cards / panels ---------- */
.grid-2, .grid-3 { display: grid; gap: 14px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card.band { padding: 0; overflow: hidden; }
.card.band .band-head { background: var(--ink); color: #fff; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.card.band .band-head h3 { color: #fff; margin: 0; font-size: 18px; }
.card.band .band-head .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: var(--radius-pill); }
.card.band .band-body { padding: 18px 20px; }
.card.band .band-body > :last-child { margin-bottom: 0; }
.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 20px; }
.panel > :last-child { margin-bottom: 0; }
.notice { border-radius: var(--radius); padding: 16px 18px; background: var(--tint); border: 1px solid var(--panel-line); display: flex; gap: 12px; align-items: flex-start; }
.notice svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.notice > div > :last-child { margin-bottom: 0; }
.notice.danger { background: var(--red-soft); border-color: #f4c3c9; }
.notice.danger svg { color: var(--red); }
.notice.quiet { background: #fff; border: 1px dashed var(--panel-line); }

/* ---------- Two-column article layout ---------- */
.article { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 48px; }
.article .toc { display: none; }
.prose { min-width: 0; }
.prose h2 { margin-top: 1.6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose > .card, .prose > .panel, .prose > .notice, .prose > .grid-2, .prose > .grid-3, .prose > .tbl-wrap, .prose > .steps, .prose > .acc, .prose > .chips { margin: 1em 0 1.4em; }
@media (min-width: 1000px) {
  .article { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 44px; }
  .article .toc { display: block; position: sticky; top: 104px; align-self: start; }
  .toc h2 { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
  .toc ol { list-style: none; padding: 0; margin: 0; border-radius: var(--radius); background: var(--panel); padding: 8px; }
  .toc a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.3; }
  .toc a:hover, .toc a.active { background: #fff; color: var(--blue); }
}
.toc-mobile { margin: 0 0 8px; }
.toc-mobile summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 12px 16px; background: var(--panel); border-radius: var(--radius-sm); list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::after { content: "+"; color: var(--blue); font-size: 20px; line-height: 1; }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile ol { margin: 8px 0 0; padding-left: 1.4em; }
@media (min-width: 1000px) { .toc-mobile { display: none; } }

/* ---------- Steps (numbered badges) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; margin: 0; align-items: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 15px; }
.steps li > div > :last-child { margin-bottom: 0; }
.steps b { color: var(--ink); }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel); color: var(--ink); font-weight: 700; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td b { color: var(--ink); }
.hours td:first-child { font-weight: 700; color: var(--ink); width: 1%; white-space: nowrap; padding-right: 24px; }
.hours tr.today td { font-weight: 900; color: var(--ink); }
.hours tr.today td:first-child::after { content: "Today"; display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.foot .hours tr.today td { color: #fff; }
.foot .hours tr.today td:first-child::after { background: #fff; color: var(--ink); }
.hours .closed { color: var(--faint); }

/* ---------- Stack table (mobile cards) ---------- */
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; border: 0; padding: 4px 14px; }
  table.stack td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
}

/* ---------- Accordion ---------- */
.acc { display: grid; gap: 10px; }
.acc details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.acc details[open] { border-color: var(--panel-line); box-shadow: var(--shadow); }
.acc summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 17px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.acc details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.acc .acc-body { padding: 0 18px 16px; }
.acc .acc-body > :last-child { margin-bottom: 0; }

/* ---------- Chips / filter ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--panel-line); background: #fff; color: var(--ink); border-radius: var(--radius-pill); padding: 6px 12px; font-size: 14px; font-weight: 700; text-decoration: none; }
.chip.who-pharm { background: var(--green-soft); border-color: #bfe3cf; color: #0b5c37; }
.chip.who-gp { background: var(--tint); border-color: var(--panel-line); color: var(--blue-dark); }
.chip.who-other { background: #fff7d6; border-color: #f2e19a; color: #6b5300; }
.search { width: 100%; font: 400 17px var(--font); padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--panel-line); }
.search:focus { border-color: var(--blue); outline: none; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.person { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.person .av { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--blue); display: grid; place-items: center; font-weight: 900; }
.person b { display: block; color: var(--ink); line-height: 1.25; }
.person span { display: block; font-size: 14px; color: var(--muted); line-height: 1.3; }

/* ---------- MARA feature ---------- */
.mara-feature { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px 22px; display: grid; gap: 22px; position: relative; overflow: hidden; }
.mara-feature::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 33, 107, .55), transparent 70%); pointer-events: none; }
.mara-feature h2 { color: #fff; }
.mara-feature .kicker { color: #ffd100; }
.mara-feature p { color: #d9e3f5; }
.mara-feature ul { color: #d9e3f5; }
.mara-chat { background: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 10px; color: var(--body); position: relative; z-index: 1; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.bubble.them { background: var(--panel); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.me { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.opts { background: none; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.bubble.opts span { border: 1px solid var(--panel-line); color: var(--blue); border-radius: var(--radius-pill); padding: 6px 12px; font-weight: 700; font-size: 14px; }
@media (min-width: 900px) { .mara-feature { grid-template-columns: 1.1fr 1fr; padding: 44px; align-items: center; gap: 44px; } }

/* ---------- MARA launcher + panel ---------- */
.mara-panel { position: fixed; z-index: 90; inset: 0; display: none; }
.mara-panel.open { display: block; }
.mara-panel .scrim { position: absolute; inset: 0; background: rgba(11, 31, 58, .45); }
.mara-panel .box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; background: #fff; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; animation: rise .22s ease-out; overflow: hidden; }
@keyframes rise { from { transform: translateY(24px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) {
  .mara-panel .box { left: auto; right: 20px; bottom: 20px; width: 420px; height: min(680px, calc(100vh - 40px)); max-height: none; border-radius: 20px; box-shadow: 0 24px 60px rgba(11, 31, 58, .3); }
}
.mara-panel .box-head { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.mara-panel .box-head::after { content: ""; position: absolute; }
.mara-panel .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--magenta); display: grid; place-items: center; flex: 0 0 auto; }
.mara-panel .avatar svg { width: 20px; height: 20px; color: #fff; }
.mara-panel .box-head b { display: block; font-size: 17px; }
.mara-panel .box-head span { display: block; font-size: 13px; color: #cfe0ff; }
.mara-panel .x { margin-left: auto; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 22px; line-height: 1; }
.mara-panel .rule { height: 3px; background: var(--yellow); }
.mara-panel .box-body { padding: 18px 16px; overflow-y: auto; display: grid; gap: 12px; align-content: start; flex: 1; }
.mara-panel iframe { border: 0; width: 100%; flex: 1; min-height: 60vh; }
.mara-panel .safety { background: var(--red-soft); border: 1px solid #f4c3c9; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.mara-panel .safety b { color: var(--red); }
.mara-panel .hours-line { font-size: 14px; color: var(--muted); }
.mara-panel .box-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.mara-panel .box-foot .btn { width: 100%; }
.mara-closed { background: var(--panel); border-radius: 12px; padding: 12px 14px; font-size: 15px; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 12px; }
.news { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.news time { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.news h3 { margin: 0; font-size: 19px; }
.news p { margin: 0; }
.news.archive { background: var(--panel); border-color: var(--panel-line); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; color: var(--ink); }
.field .hint { font-size: 14px; color: var(--muted); margin: 0; }
.field input, .field select, .field textarea { font: 400 17px var(--font); padding: 12px 14px; border: 2px solid #b8c6dc; border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid var(--yellow); outline-offset: 1px; }
.field textarea { min-height: 140px; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.radio { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.radio input { width: 22px; height: 22px; accent-color: var(--blue); }
.form-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } .form-row.three { grid-template-columns: repeat(3, 1fr); } }
.form-result { display: none; }
.form-result.show { display: flex; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #c9d5ea; margin-top: 0; font-size: 15px; }
.foot::before { content: ""; display: block; height: 3px; background: var(--yellow); }
.foot .wrap { padding-top: 36px; padding-bottom: 24px; display: grid; gap: 28px; }
.foot h2 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.foot a { color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 8px; }
.foot .brand { color: #fff; margin: 0 0 12px; }
.foot .brand .wm b { color: #fff; }
.foot .brand .wm span { color: #9fb3d1; }
.foot table { font-size: 14px; }
.foot td { border-color: rgba(255, 255, 255, .1); padding: 6px 0; color: #c9d5ea; }
.foot td:first-child { color: #fff; font-weight: 700; }
.foot .legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; font-size: 13px; color: #9fb3d1; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot .legal a { color: #c9d5ea; }
.cqc { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 14px; text-decoration: none; }
.cqc:hover { color: var(--ink); }
.cqc .r { font-weight: 900; font-size: 18px; color: var(--green); }
.cqc small { display: block; color: var(--muted); font-size: 12px; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } .foot .legal { grid-column: 1 / -1; } }

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.small { font-size: 14px; }
.big-phone { font-size: clamp(26px, 6vw, 34px); font-weight: 900; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.big-phone:hover { color: var(--blue); }
.stack-gap > * + * { margin-top: 14px; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; padding: 20px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .urgent, .masthead, .foot, .testbar, .toc { display: none !important; } body { padding: 0; } }
