/* Northfield Regional Hospital
   Layout: full-width colour bands, content on a 72rem measure; a sticky header with a
   permanent emergency strip above it so urgent information is never more than one glance away. */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #e9efed;
  --ink: #15201e;
  --ink-soft: #4a5a57;
  --line: #d3dcd9;
  --brand: #0d5c52;        /* pine: primary actions, links */
  --brand-ink: #ffffff;
  --brand-deep: #083b35;   /* hero and footer bands */
  --brand-tint: #d8ebe6;
  --accent: #c7742b;       /* ochre: highlights, never for status */
  --urgent: #b42318;       /* emergency only */
  --urgent-tint: #fdecea;
  --ok: #217a3c;
  --focus: #2f6fdb;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);

  --radius: 10px;
  --measure: 72rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1615; --surface: #162120; --surface-2: #1d2b29; --ink: #e6eeec; --ink-soft: #a5b6b2;
    --line: #2c3d3a; --brand: #5fc2b2; --brand-ink: #062320; --brand-deep: #0a2421; --brand-tint: #17332f;
    --accent: #e4a25f; --urgent: #ff8a7a; --urgent-tint: #3a1a17; --ok: #6fd08a; --focus: #8fb4ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1615; --surface: #162120; --surface-2: #1d2b29; --ink: #e6eeec; --ink-soft: #a5b6b2;
  --line: #2c3d3a; --brand: #5fc2b2; --brand-ink: #062320; --brand-deep: #0a2421; --brand-tint: #17332f;
  --accent: #e4a25f; --urgent: #ff8a7a; --urgent-tint: #3a1a17; --ok: #6fd08a; --focus: #8fb4ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; max-width: 65ch; }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 16px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bands and wrappers */
.band { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap { max-width: var(--measure); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2rem; }
.eyebrow { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; color: var(--accent); }
.lede { font-size: var(--step-1); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.alt { background: var(--surface-2); }

/* Emergency strip */
.er-strip { background: var(--urgent); color: #fff; font-size: var(--step--1); }
.er-strip .wrap { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: center; padding-block: 0.45rem; }
.er-strip strong { letter-spacing: 0.04em; }
.er-strip a { color: #fff; font-weight: 700; }
:root[data-theme="dark"] .er-strip { background: #8f1d14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .er-strip { background: #8f1d14; } }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; }
.nav a { white-space: nowrap; display: block; padding: 0.5rem 0.7rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 6px 6px 0 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 0.5rem 0.75rem; font: inherit; font-weight: 600; cursor: pointer; }
.header-cta { white-space: nowrap; }
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l); box-shadow: 0 12px 24px rgb(0 0 0 / 0.08); }
  .nav[data-open="false"] { display: none; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 0.75rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); border-radius: 0 6px 6px 0; }
}


/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border-radius: 8px; font: inherit; font-weight: 650; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgb(127 127 127 / 0.12); }
.btn-urgent { background: var(--urgent); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero (home) */
.hero { background: var(--brand-deep); color: #eaf4f1; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); align-items: center; }
.hero h1 { color: #fff; }
.hero .lede { color: #c4dbd5; margin-top: 1rem; }
.hero .btn-row { margin-top: 1.75rem; }
.hero .btn-primary { background: #fff; color: #083b35; }
.hero .btn-ghost { color: #fff; }
.wait-board { background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.16); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.9rem; }
.wait-board h2 { font-size: 1.05rem; color: #fff; font-family: var(--font-body); font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.wait-board h2 span { font-weight: 400; font-size: 0.8rem; color: #a9c6bf; }
.wait-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: baseline; padding-top: 0.8rem; border-top: 1px solid rgb(255 255 255 / 0.12); }
.wait-row:first-of-type { border-top: 0; padding-top: 0; }
.wait-row b { color: #fff; font-weight: 600; }
.wait-row .num { font-size: 1.6rem; color: #fff; font-weight: 600; }
.wait-row .num small { font-size: 0.8rem; color: #a9c6bf; font-weight: 400; }
.wait-row p { grid-column: 1 / -1; font-size: 0.85rem; color: #a9c6bf; }
.wait-note { font-size: 0.8rem; color: #a9c6bf; }

/* Page hero (inner pages) */
.page-hero { background: var(--brand-deep); color: #c4dbd5; }
.page-hero .wrap { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); display: grid; gap: 0.8rem; }
.page-hero h1 { color: #fff; font-size: var(--step-4); }
.page-hero .lede { color: #c4dbd5; }
.crumbs { font-size: var(--step--1); }
.crumbs a { color: #c4dbd5; }

/* Quick links */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: -2.25rem; position: relative; }
.quick a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); display: grid; gap: 0.3rem; box-shadow: 0 8px 22px rgb(8 59 53 / 0.08); }
.quick a:hover { border-color: var(--brand); }
.quick b { font-family: var(--font-display); font-size: 1.1rem; color: var(--brand); }
.quick span { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .quick { grid-template-columns: minmax(0, 1fr); margin-top: 1.5rem; } }

/* Grids */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 1rem; align-content: start; }

/* Department cards */
.dept { display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.6rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dept-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.dept p { color: var(--ink-soft); font-size: 0.95rem; }
.dept .meta { font-size: 0.85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding-top: 0.6rem; border-top: 1px dashed var(--line); }
.dept-full { grid-template-rows: auto; scroll-margin-top: 7rem; }
.dept-full ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.95rem; columns: 2; column-gap: 1.5rem; }
@media (max-width: 520px) { .dept-full ul { columns: 1; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { border-left: 3px solid var(--accent); padding: 0.25rem 0 0.25rem 1rem; }
.stat .num { font-size: var(--step-3); font-weight: 600; color: var(--ink); display: block; line-height: 1.1; }
.stat span:last-child { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; } }

/* Doctor cards */
.doc-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
@media (max-width: 760px) { .doc-tools { grid-template-columns: minmax(0, 1fr); } }
.doctor { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-items: start; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--brand); background: var(--brand-tint); }
.doctor h3 { font-size: 1.1rem; }
.doctor .role { color: var(--brand); font-weight: 600; font-size: 0.92rem; }
.doctor dl { margin: 0.6rem 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 0.75rem; font-size: 0.88rem; }
.doctor dt { color: var(--ink-soft); }
.doctor dd { margin: 0; }
.doctor .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); }
.pill.ok { color: var(--ok); }
.pill.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.empty { padding: 2rem; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Forms */
.form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 1rem + 1.5vw, 2rem); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.form legend { font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); margin-bottom: 0.25rem; padding: 0; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .label { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: 0.82rem; color: var(--ink-soft); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.75rem; width: 100%; min-width: 0; }
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); outline-offset: 0; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--urgent); }
.err { color: var(--urgent); font-size: 0.85rem; font-weight: 600; }
.err:empty { display: none; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.92rem; cursor: pointer; background: var(--bg); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); font-weight: 650; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:disabled + span { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.notice { border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--urgent-tint); border: 1px solid var(--urgent); }
.notice strong { color: var(--urgent); }
.notice.info { background: var(--brand-tint); border-color: var(--brand); }
.notice.info strong { color: var(--brand); }
.confirm { display: grid; gap: 1rem; background: var(--surface); border: 2px solid var(--ok); border-radius: var(--radius); padding: 1.5rem; }
.confirm h2 { color: var(--ok); font-size: var(--step-2); }
.confirm dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1rem; margin: 0; }
.confirm dt { color: var(--ink-soft); }
.confirm dd { margin: 0; font-weight: 600; }

/* Info boxes, tables, accordion */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: grid; gap: 0.6rem; align-content: start; }
.box ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.box li + li { margin-top: 0.3rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 650; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.8rem; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 1.1rem; color: var(--ink-soft); display: grid; gap: 0.6rem; }

/* Triage scale (subject-specific) */
.triage { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.triage div { padding: 0.8rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--lvl); display: grid; gap: 0.2rem; }
.triage b { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }
.triage strong { font-size: 0.95rem; }
.triage span { font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 760px) { .triage { grid-template-columns: minmax(0, 1fr); } }

/* News */
.news-card { display: grid; gap: 0.6rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-content: start; }
.news-card time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--brand); text-decoration: underline; }
.news-card p { color: var(--ink-soft); font-size: 0.95rem; }
.tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature .art { background: var(--brand-deep); min-height: 16rem; }
.feature .body { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); display: grid; gap: 0.8rem; align-content: center; }
@media (max-width: 760px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature .art { min-height: 10rem; } }
.article { display: grid; gap: 1rem; scroll-margin-top: 7rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.article p { color: var(--ink); }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-row button { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter-row button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* Contact */
.contact-list { display: grid; gap: 0; margin: 0; }
.contact-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; display: flex; gap: 0.5rem; align-items: center; }
.copy { font: inherit; font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.55rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.copy:hover { color: var(--brand); border-color: var(--brand); }
.campus-map { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.campus-map svg { width: 100%; height: auto; display: block; }
.campus-map figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* CTA band */
.cta-band { background: var(--brand-tint); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 2.5rem; }

/* Footer */
.site-footer { background: var(--brand-deep); color: #b9d0ca; font-size: 0.92rem; }
.site-footer .wrap { padding-block: 3rem 1.5rem; display: grid; gap: 2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: #fff; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: #dcebe7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: #9fbdb6; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: 0.82rem; }

.toast { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.9rem; z-index: 80; }

/* Phone header: let the name wrap instead of pushing the menu button off-screen */
.brand, .brand-name { min-width: 0; }
.menu-btn { flex: none; }
@media (max-width: 480px) {
  .site-header .wrap { gap: 0.6rem; }
  .brand-name { font-size: 0.98rem; }
  .brand-name small { display: none; }
  .brand svg { width: 34px; height: 34px; }
}

[hidden] { display: none !important; }
@media (max-width: 560px) { .btn.header-cta { display: none; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
