/* GP practice website template: styles. Change the colour tokens in :root to rebrand. */

:root {
  --ink: #13223a;
  --brand: #1f4e8c;
  --brand-press: #173c6d;
  --brand-tint: #e7eef8;
  --accent: #6f9ad6;
  --paper: #ffffff;
  --surface: #f2f5f9;
  --line: #d2dbe6;
  --muted: #4a5668;
  --urgent: #b42318;
  --urgent-deep: #8f1b12;
  --urgent-tint: #fcebe9;
  --amber: #8a5a00;
  --amber-line: #d9a441;
  --amber-tint: #fdf3e1;
  --focus: #ffd23f;
  --open: #1d7a4e;

  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; max-width: 66ch; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-press); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
  border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--focus); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Utility bar */
.utility { background: var(--brand-tint); color: var(--ink); font-size: var(--step--1); }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: center; justify-content: space-between; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.utility a { color: var(--ink); }
.utility ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.utility li { margin: 0; }
.utility .phone { font-weight: 700; text-decoration: none; }

/* Notice */
.notice { background: var(--amber-tint); border-bottom: 1px solid #ecd7ad; }
.notice .wrap { display: flex; gap: 0.75rem; align-items: flex-start; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.notice p { margin: 0; max-width: none; }
.notice svg { flex: none; margin-top: 0.15rem; color: var(--amber); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.05; margin-right: auto; }
.brand-name { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand-sub { font-size: var(--step--1); color: var(--muted); margin-top: 0.3rem; padding-top: 0.3rem; border-top: 3px solid var(--accent); width: max-content; }
.brand:hover { color: var(--ink); }

.nav-toggle { display: none; }
.primary-nav ul { list-style: none; display: flex; flex-wrap: nowrap; gap: 0.15rem; margin: 0; padding: 0; }
.primary-nav li { margin: 0; }
.primary-nav a { display: block; padding: 0.5rem 0.6rem; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.primary-nav a:hover { background: var(--surface); color: var(--brand-press); }
.primary-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.25rem; border-radius: var(--radius);
  font-weight: 700; font-size: var(--step-0); text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 3px 0 var(--brand-press); }
.btn-primary:hover { background: var(--brand-press); color: #fff; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--brand-press); }
.btn-secondary { background: var(--paper); color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-press); }
.btn-urgent { background: var(--urgent); color: #fff; box-shadow: 0 3px 0 var(--urgent-deep); }
.btn-urgent:hover { background: var(--urgent-deep); color: #fff; }
.btn svg { flex: none; }

.ext::after {
  content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.3em;
  background: currentColor; vertical-align: 0.05em;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 1.5h6v6M10.5 1.5 1.5 10.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 1.5h6v6M10.5 1.5 1.5 10.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hero */
.hero { padding: clamp(2rem, 1rem + 4vw, 4rem) 0 clamp(2rem, 1rem + 3vw, 3rem); background: linear-gradient(var(--surface), var(--surface)) bottom / 100% 0 no-repeat; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }
.hero-note { font-size: var(--step--1); color: var(--muted); }

.today { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.today-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.today-head h2 { font-size: var(--step-1); margin: 0; }
.today-head time { color: var(--muted); font-size: var(--step--1); }
.today-list { list-style: none; margin: 0; padding: 0; }
.today-list li { margin: 0; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); max-width: none; display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; }
.today-list li:last-child { border-bottom: 0; }
.today-list .site { font-weight: 700; }
.today-list .site a { color: var(--ink); text-decoration: none; }
.today-list .site a:hover { text-decoration: underline; }
.today-list .addr { color: var(--muted); font-size: var(--step--1); grid-column: 1; }
.today-list .status { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: var(--step--1); }
.today-foot { padding: 0.9rem 1.25rem; background: var(--surface); border-top: 1px solid var(--line); font-size: var(--step--1); border-radius: 0 0 var(--radius) var(--radius); }
.today-foot p { margin: 0; }

.status-pill { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; white-space: nowrap; }
.status-pill .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--muted); flex: none; }
.status-pill.is-open { color: var(--open); }
.status-pill.is-open .dot { background: var(--open); box-shadow: 0 0 0 0 rgba(29,122,78,0.45); animation: beat 2.4s ease-out infinite; }
.status-pill.is-closed { color: var(--muted); }
.status-sub { display: block; color: var(--muted); font-weight: 400; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(29,122,78,0.45); } 70% { box-shadow: 0 0 0 0.5rem rgba(29,122,78,0); } 100% { box-shadow: 0 0 0 0 rgba(29,122,78,0); } }

/* Help ladder */
.help-now { background: var(--ink); color: #fff; padding: clamp(2rem, 1rem + 3vw, 3rem) 0; }
.help-now h2 { color: #fff; margin-bottom: 0.25rem; }
.help-now .intro { color: #c5d0e0; margin-bottom: 1.75rem; }
.help-now a:not(.btn) { color: #fff; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid #34445e; }
.ladder > li { margin: 0; max-width: none; padding: 1.5rem 1.5rem 1.25rem 0; position: relative; display: flex; flex-direction: column; }
.ladder > li + li { padding-left: 1.5rem; border-left: 1px solid #34445e; }
.ladder .bar { position: absolute; top: -1px; left: 0; height: 5px; width: 100%; transform-origin: left; }
.ladder > li + li .bar { left: 0; }
.ladder .lvl-1 .bar { background: var(--urgent); }
.ladder .lvl-2 .bar { background: #e2a23b; width: 66%; }
.ladder .lvl-3 .bar { background: #6fb08f; width: 33%; }
.ladder .when { font-size: var(--step--1); color: #c5d0e0; margin-bottom: 0.4rem; }
.ladder h3 { font-size: var(--step-2); margin-bottom: 0.5rem; color: #fff; }
.ladder p { color: #ffffff; font-size: var(--step-0); }
.ladder .act { margin-top: auto; padding-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.ladder .btn-urgent { box-shadow: 0 3px 0 #5e120c; }
.ladder .btn-light { background: #fff; color: var(--ink); }
.ladder .btn-light:hover { background: var(--brand-tint); color: var(--ink); }
.help-now .source { margin: 1.5rem 0 0; font-size: var(--step--1); color: #aab7ca; }
.help-now .source a { color: #dde6f2; }

/* Sections */
.section { padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0.35rem 0 0; color: var(--muted); }

/* Task grid */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tasks > li { margin: 0; max-width: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.task { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; padding: 1.4rem 1.4rem 1.5rem; text-decoration: none; color: var(--ink); height: 100%; position: relative; }
.task:hover { background: var(--surface); color: var(--ink); }
.task .icon { grid-row: 1 / span 3; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.task .t { font-size: var(--step-1); font-weight: 700; color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.task:hover .t { text-decoration-thickness: 2px; color: var(--brand-press); }
.task .d { color: var(--muted); }
.task .more { font-size: var(--step--1); margin-top: 0.4rem; }
.task-wrap { position: relative; height: 100%; }
.task-wrap .sub-link { position: absolute; left: calc(1.4rem + 2.75rem + 1rem); bottom: 1rem; font-size: var(--step--1); }
.task-wrap .task { padding-bottom: 2.75rem; }

/* Surgeries */
.surgeries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 2vw, 2rem); }
.surgery { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.surgery-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.25rem; }
.surgery h3 { font-size: var(--step-2); margin: 0; }
.surgery address { font-style: normal; color: var(--muted); margin-bottom: 1rem; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { width: 45%; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; background: var(--accent); border-radius: 50%; margin: 0 0.5rem 0.12em -0.95rem; }
.surgery .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.closed-note { margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--amber-line); background: var(--paper); }
.closed-note p { margin: 0; }

/* Other help */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.link-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.link-list li { break-inside: avoid; padding: 0.6rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.link-list a { font-weight: 700; }
.link-list span { display: block; color: var(--muted); font-size: var(--step--1); }

.pharmacy { border-left: 4px solid var(--brand); padding: 0.25rem 0 0.25rem 1.25rem; }
.pharmacy p:last-child { margin-bottom: 0; }

/* News */
.news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 2vw, 2rem); }
.news li { margin: 0; max-width: none; border-top: 3px solid var(--ink); padding-top: 1rem; }
.news time { color: var(--muted); font-size: var(--step--1); display: block; margin-bottom: 0.35rem; }
.news h3 { margin-bottom: 0.4rem; }
.news h3 a { color: var(--ink); }
.news p { color: var(--muted); margin: 0; }

/* About strip */
.about-strip { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { margin: 0; max-width: none; padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; }
.facts .k { font-weight: 700; }
.facts .v { color: var(--muted); }
.facts .v a { font-weight: 700; }

/* Inner pages */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding: 0; margin: 0 0 0.75rem; font-size: var(--step--1); }
.crumbs li { margin: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: #8a95a6; }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 0.4rem; max-width: 22ch; }
.page-head .lede { font-size: var(--step-1); color: var(--muted); margin: 0; max-width: 52ch; }
.tag { display: inline-block; background: var(--amber-tint); color: var(--amber); font-weight: 700; font-size: var(--step--1); padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.75rem; }

.page-body { padding: clamp(2rem, 1rem + 3vw, 3.5rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.prose h2 { font-size: var(--step-2); margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose > h2:first-child, .prose > .callout:first-child + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.5rem; }

.aside { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--paper); }
.aside-box h2 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.aside-box p { font-size: var(--step--1); }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { margin: 0; padding: 0.4rem 0; border-top: 1px solid var(--line); font-size: var(--step--1); }
.aside-box li:first-child { border-top: 0; }
.aside-box .btn { width: 100%; justify-content: center; margin-bottom: 0.5rem; }
.aside-urgent { border-color: #f0c2bd; background: var(--urgent-tint); }
.aside-urgent h2 { color: var(--urgent-deep); }
.aside-urgent a { color: var(--urgent-deep); font-weight: 700; }

.callout { border-left: 5px solid var(--brand); background: var(--brand-tint); padding: 1.1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; font-size: var(--step-1); }
.callout-urgent { border-left-color: var(--urgent); background: var(--urgent-tint); }
.callout-urgent h2, .callout-urgent h3 { color: var(--urgent-deep); }
.callout-amber { border-left-color: var(--amber-line); background: var(--amber-tint); }

.steps { list-style: none; padding: 0; counter-reset: s; margin: 0 0 1.5rem; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1rem 3rem; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: var(--step--1); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.1rem; bottom: 0.15rem; width: 2px; background: var(--line); }

.attrib { font-size: var(--step--1); color: var(--muted); border-top: 1px dashed var(--line); padding-top: 0.6rem; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.panel h3 { margin-top: 0; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

.hub-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hub-list li { margin: 0; max-width: none; border-bottom: 1px solid var(--line); padding: 1rem 1rem 1rem 0; }
.hub-list li:nth-child(odd) { padding-right: 2rem; }
.hub-list a { font-weight: 700; font-size: var(--step-1); }
.hub-list span { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 0.15rem; }
.hub-list .soon { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--amber); background: var(--amber-tint); border-radius: 999px; padding: 0.05rem 0.5rem; margin-left: 0.4rem; vertical-align: 0.15em; }

.big-phone { font-size: var(--step-3); font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }

/* Footer */
.site-footer { background: var(--brand-tint); color: var(--ink); padding: 3rem 0 2rem; font-size: var(--step--1); }
.site-footer a { color: var(--brand); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: var(--step-0); color: var(--ink); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.5rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.foot-brand { font-size: var(--step-1); font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.foot-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; color: var(--muted); }
.foot-base p { margin: 0; max-width: none; }

/* Placeholders: every piece of practice-specific text sits in .ph so it is easy to find and replace */
.ph { background: #fff6d6; box-shadow: 0 0 0 2px #fff6d6; border-radius: 2px; color: inherit; }
.help-now .ph { background: rgba(255,246,214,0.16); box-shadow: 0 0 0 2px rgba(255,246,214,0.16); }

/* Entrance: one orchestrated moment on the help ladder */
@media (prefers-reduced-motion: no-preference) {
  .js .ladder .bar { animation: grow 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .js .ladder .lvl-1 .bar { animation-delay: 0.15s; }
  .js .ladder .lvl-2 .bar { animation-delay: 0.35s; }
  .js .ladder .lvl-3 .bar { animation-delay: 0.55s; }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 62rem) {
  .hero .wrap, .split, .about-strip, .page-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Collapse the main navigation before it wraps (7 items) */
@media (max-width: 75rem) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font: inherit; font-weight: 700; padding: 0.45rem 0.8rem; border-radius: var(--radius); }
  .site-header .wrap { flex-wrap: wrap; }
  .primary-nav { width: 100%; display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; border-top: 1px solid var(--line); padding-top: 0.5rem; }
  .primary-nav a { padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brand); padding-left: 0.75rem; }
  .no-js .primary-nav { display: block; }
}

@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font: inherit; font-weight: 700; padding: 0.45rem 0.8rem; border-radius: var(--radius); }
  .site-header .wrap { flex-wrap: wrap; }
  .primary-nav { width: 100%; display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; border-top: 1px solid var(--line); padding-top: 0.5rem; }
  .primary-nav a { padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brand); padding-left: 0.75rem; }
  .no-js .primary-nav { display: block; }
  .ladder { grid-template-columns: 1fr; }
  .ladder > li, .ladder > li + li { padding: 1.4rem 0 1.25rem; border-left: 0; border-top: 1px solid #34445e; }
  .ladder > li:first-child { border-top: 0; }
  .surgeries, .news, .two-col, .hub-list { grid-template-columns: 1fr; }
  .hub-list li:nth-child(odd) { padding-right: 0; }
  .link-list { columns: 1; }
}

@media (max-width: 36rem) {
  .tasks { grid-template-columns: 1fr; }
  .task { padding: 1.1rem 0.25rem 1.2rem; }
  .tasks { border-left: 0; }
  .tasks > li { border-right: 0; }
  .task-wrap .sub-link { left: calc(0.25rem + 2.75rem + 1rem); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .facts li { grid-template-columns: 1fr; gap: 0.15rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.35rem; }
  .utility li.wide { display: none; }
  .today-list li { grid-template-columns: 1fr; }
  .today-list .status { grid-column: 1; grid-row: auto; text-align: left; margin-top: 0.4rem; }
  .today-list .status-sub { display: inline; margin-left: 0.5rem; }
}

@media print {
  .utility, .notice, .nav-toggle, .primary-nav, .site-footer, .aside { display: none !important; }
  .help-now { background: none; color: #000; }
}
