@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/public-sans-latin.woff2) format('woff2');
}

:root {
  --ink: #14342B;
  --ink-soft: #3C5E52;
  --ink-mid: #456056;
  --muted: #55685F;
  --label: #6E8478;
  --green: #2F6B53;
  --green-line: #A7C3B6;
  --green-tint: #E2EAE4;
  --paper: #F7F5EF;
  --paper-alt: #EFEBE0;
  --paper-card: #FFFDF8;
  --line: #DCD6C8;
  --line-soft: #EDE8DC;
  --amber: #C08A2E;
  --content: 1560px;
  /* Full-bleed backgrounds; content stays within --content. % resolves against the full-width parent. */
  --pad-x: max(40px, calc((100% - var(--content)) / 2));
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Public Sans', sans-serif; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
img { max-width: 100%; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; color: var(--paper); }

.page { width: 100%; background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

/* Header */
.alertbar { background: var(--ink); color: #F2EFE6; font-size: 14px; padding: 11px var(--pad-x); display: flex; gap: 8px 28px; flex-wrap: wrap; }
.alertbar a, .alertbar a:hover { color: inherit; text-decoration: underline; }
.alertbar strong { font-weight: 600; }

.header { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px var(--pad-x); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.brand span { font-family: 'Newsreader', serif; font-size: 21px; }
.nav { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 15px; }
.menu-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--line); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; padding: 9px 14px; cursor: pointer; }
.menu-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.menu-toggle .bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-toggle .bars::after { content: ''; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.menu-toggle[aria-expanded="true"] .bars { border-color: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before, .menu-toggle[aria-expanded="true"] .bars::after { content: ''; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::before { transform: rotate(-45deg); }
.nav a { color: var(--ink-soft); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--green); padding-bottom: 2px; }

/* Page hero */
.hero { padding: 56px var(--pad-x) 44px; border-bottom: 1px solid var(--line); }
.hero h1 { margin: 0 0 14px; font-family: 'Newsreader', serif; font-weight: 400; font-size: 52px; line-height: 1.06; letter-spacing: -0.01em; text-wrap: pretty; }
.hero h1:last-child { margin-bottom: 0; }
.hero p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; text-wrap: pretty; }
.hero p.note { margin-top: 14px; font-size: 14px; color: var(--label); }

/* Sections and layout */
.section { padding: 48px var(--pad-x); }
.section.alt { background: var(--paper-alt); }
.section.flush-top { padding-top: 0; }
.section.ruled { border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 320px), 100%), 1fr)); gap: var(--gap, 48px); }
.grid.cards { --gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Type */
h2 { margin: 0; font-family: 'Newsreader', serif; font-size: 28px; font-weight: 500; line-height: 1.2; }
h2.lg { font-size: 30px; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.body { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.body a { font-weight: 600; }
.small { font-size: 13px; color: var(--label); margin: 0; }
.link-strong { color: var(--green); font-weight: 600; border-bottom: 1px solid var(--green-line); align-self: flex-start; }
.link-strong.sm { font-size: 15px; }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: var(--paper); padding: 15px 22px; font-size: 16px; font-weight: 600; align-self: flex-start; }
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-outline { display: inline-block; border: 1.5px solid var(--green); color: var(--green); padding: 13.5px 22px; font-size: 16px; font-weight: 600; }
.btn-outline:hover { background: var(--green); color: var(--paper); text-decoration: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cards */
.card { background: #FFFFFF; border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 12px; }

/* Notices */
.notice { border: 1px solid #E3D3AE; background: #FBF4E4; padding: 18px 22px; font-size: 16px; line-height: 1.5; }
.notice .title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }

/* Hours table */
.hours { display: flex; flex-direction: column; gap: 6px; }
.hours h3 { margin: 0; font-weight: 700; font-size: 16px; }
.hours dl + h3 { margin-top: 14px; }
.hours dl { margin: 0; }
.hours .row { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.hours .row:last-child { border-bottom: 0; }
.hours dt, .hours dd { margin: 0; }
.hours dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours .row.today { font-weight: 600; }
.hours.compact { max-width: 440px; }
.hours.compact .row { padding: 5px 0; }

/* Price table */
.price-list { display: flex; flex-direction: column; }
.price-list .row { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.price-list .row:last-child { border-bottom: 0; }
.price-list .row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-list .head { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); padding: 0 0 6px; border-bottom: 1px solid var(--ink); }
.price-list.sm .row { font-size: 15px; padding: 6px 0; }

/* Open/closed status */
.status { display: flex; gap: 10px; }
.status.boxed { background: #FFFFFF; border: 1px solid var(--line); padding: 16px 18px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); margin-top: 7px; flex: none; }
.status.open .dot { background: var(--green); }
.status.closed .dot { background: #A0A89F; }
.status p { margin: 0; }
.status .main { font-size: 16px; font-weight: 600; }
.status .sub { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* Map */
.map { height: 220px; border: 1px solid var(--line); background: #E3E6DC; display: block; width: 100%; }
.map.sm { height: 150px; }

/* Departures */
.departures { background: #FFFFFF; border: 1px solid var(--line); }
.dep-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
.dep-row:last-child { border-bottom: 0; }
.dep-head.dep-row { padding: 10px 18px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); border-bottom: 1px solid var(--ink); }
.line-badge { justify-self: start; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; padding: 2px 8px; }
.dep-time { font-variant-numeric: tabular-nums; text-align: right; }
.dep-time small { font-size: 13px; color: var(--green); margin-left: 4px; }
.dep-time small.cancelled { color: #A33A2A; }
.dep-empty { padding: 16px 18px; font-size: 15px; color: var(--muted); }

/* Front page */
.home-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; padding: 60px var(--pad-x) 52px; }
.home-hero h1 { margin: 16px 0 18px; font-family: 'Newsreader', serif; font-weight: 400; font-size: 58px; line-height: 1.05; letter-spacing: -0.01em; text-wrap: pretty; }
.home-hero .lead { margin: 0 0 26px; font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 40ch; }
.home-hero .fineprint { margin: 20px 0 0; font-size: 14px; color: var(--label); max-width: 46ch; }
.plan-card { background: #FFFFFF; border: 1px solid var(--line); padding: 26px; align-self: start; }
.plan-card h2 { margin: 8px 0 16px; font-size: 27px; }
.plan-card .status { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.plan-card .before { padding-top: 16px; }
.plan-card .before h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.plan-card .before p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }

.quick { padding: 0 var(--pad-x) 52px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quick-grid > div { background: var(--paper-card); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.quick-grid h3 { margin: 0; font-size: 17px; font-weight: 600; }
.quick-grid p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); flex: 1; }
.quick-grid a { font-size: 14px; font-weight: 600; }

.doctors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.doctor { background: #FFFFFF; border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.doctor .who { display: flex; align-items: center; gap: 16px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: 'Newsreader', serif; font-weight: 500; font-size: 26px; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.avatar.muted { background: var(--line-soft); color: var(--label); font-size: 22px; }
.doctor h3 { margin: 0; font-size: 18px; font-weight: 600; }
.doctor .role { font-size: 14px; color: var(--label); }
.pill { align-self: flex-start; font-size: 13px; font-weight: 600; background: #E2EFE5; color: #1F5A41; padding: 4px 10px; border-radius: 99px; }
.pill.wait { background: #F3E9D6; color: #71531A; }
.doctor .stat { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.doctor .stat .num { font-family: 'Newsreader', serif; font-size: 34px; line-height: 1.15; }
.doctor > a { font-size: 14px; font-weight: 600; }

.service-list > div { border-top: 1px solid var(--line); padding: 14px 0; }
.service-list h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.service-list p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Doctors page */
.portrait { background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; }
.portrait .photo { aspect-ratio: 4 / 5; background: var(--green-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.portrait .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .photo span { font-family: 'Newsreader', serif; font-size: 64px; color: var(--green); }
.portrait .info { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.portrait h3 { margin: 0; font-size: 20px; font-weight: 600; }
.portrait .role { font-size: 15px; color: var(--label); }
.cta-band { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 32px; flex-wrap: wrap; }

/* Emergency page */
.emergency { padding: 30px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); background: #FFFFFF; }
.emergency.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.emergency .call { align-self: flex-start; background: var(--green); color: var(--paper); font-size: 30px; font-weight: 700; padding: 12px 24px; letter-spacing: 0.01em; }
.emergency.dark .call { background: var(--paper); color: var(--ink); }
.emergency .call:hover { text-decoration: none; opacity: 0.9; }
.emergency p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.emergency.dark p { color: #DCE6DF; }

/* Footer */
.footer { background: var(--ink); color: #DCE6DF; padding: 44px var(--pad-x) 28px; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px; }
.footer .title { font-family: 'Newsreader', serif; font-size: 22px; color: var(--paper); margin-bottom: 8px; }
.footer .head { font-weight: 600; color: var(--paper); margin-bottom: 10px; }
.footer p { margin: 0 0 6px; line-height: 1.5; }
.footer p.gap { margin-bottom: 12px; }
.footer strong { color: var(--paper); }
.footer a { color: inherit; }
.footer a.u { text-decoration: underline; }
.footer a.more { color: #DCE6DF; border-bottom: 1px solid #4E7565; }
.footer .bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid #2C5245; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #90A79B; }
.footer .bottom nav { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .home-hero { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doctors { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .header { padding-top: 14px; padding-bottom: 14px; }
  .brand img { height: 32px; width: 32px; }
  .brand span { font-size: 19px; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; font-size: 17px; margin: 4px 0 -4px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-top: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom: 0; padding-bottom: 13px; box-shadow: inset 3px 0 0 var(--green); padding-left: 12px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 16px; }
  .alertbar { font-size: 13px; padding-top: 9px; padding-bottom: 9px; }
  .btn-row > a { flex: 1 1 100%; text-align: center; }
  .doctor .stat .num { font-size: 30px; }
  .price-list .row { font-size: 15px; }
  .emergency { padding: 22px; }
  .card { padding: 22px; }
  .footer { padding-top: 36px; }
  .footer .cols { gap: 28px; }
  .hero { padding-top: 36px; padding-bottom: 32px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 17px; }
  .home-hero { padding-top: 36px; padding-bottom: 36px; gap: 32px; }
  .home-hero h1 { font-size: 40px; }
  .home-hero .lead { font-size: 17px; }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .section.flush-top { padding-top: 0; }
  .grid { --gap: 36px; }
  .grid.cards { --gap: 16px; }
  .split { gap: 36px; }
  .quick { padding-bottom: 36px; }
  .quick-grid { grid-template-columns: 1fr; }
  .emergency .call { font-size: 26px; }
}

/* Static map */
.map-figure { margin: 0; position: relative; }
.map-figure img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: center; border: 1px solid var(--line); }
.map-figure.sm img { height: 150px; }
.map-figure figcaption { position: absolute; right: 1px; bottom: 1px; background: rgba(255, 255, 255, 0.85); font-size: 11px; padding: 2px 6px; color: var(--muted); }
.map-figure figcaption a { color: inherit; }

/* Text pages */
.prose { max-width: 62ch; display: flex; flex-direction: column; gap: 12px; }
.prose h2 { margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }

/* Keep portrait cards a sensible height on wide screens */
@media (min-width: 900px) {
  .portraits .portrait .photo { aspect-ratio: 1 / 1; }
  .portraits .portrait .photo img { object-position: center 25%; }
}
@media (max-width: 640px) {
  .portrait { flex-direction: row; align-items: center; }
  .portrait .photo { width: 88px; flex: none; }
  .portrait .photo span { font-size: 30px; }
  .portrait .info { padding: 14px 16px; }
  .portrait h3 { font-size: 18px; }
}
