@font-face {
  font-family: "Open Sans";
  src: url("fonts/seniorhq/opensans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0d395a;
  --navy-deep: #0a2e49;
  --sea: #55968a;
  --sea-deep: #467f76;
  --mist: #e8f1ef;
  --mist-soft: #f3f8f7;
  --paper: #ffffff;
  --ink: #1c2b33;
  --body: #44565f;
  --muted: #5d6f77;
  --line: #cfdcd9;
  --line-strong: #a9bfbb;
  --focus: #0d395a;
  --danger: #8c1d18;
  --radius: 16px;
  --pill: 999px;
  --shadow: 0 18px 40px rgba(13, 57, 90, 0.10);
  --shadow-soft: 0 6px 18px rgba(13, 57, 90, 0.07);
  --fs: 1;
  --wrap: 1120px;
}

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

html {
  font-size: calc(18px * var(--fs));
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 3.4vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mist); color: var(--navy); }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 16px; color: #fff; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--navy);
  text-decoration: none;
  border-radius: 8px;
}
.brand img { height: 64px; width: auto; }
.brand:hover { opacity: 0.9; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}
.site-nav a:hover { color: var(--navy); background: var(--mist-soft); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 26px;
  border-radius: var(--pill);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn-primary {
  border: 0;
  background: linear-gradient(to right, var(--navy), var(--sea));
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(to right, var(--navy-deep), var(--sea-deep));
  color: #fff;
  box-shadow: 0 8px 22px rgba(13, 57, 90, 0.22);
}
.btn-secondary {
  border: 4px solid transparent;
  background-color: var(--paper);
  background-image: linear-gradient(var(--paper), var(--paper)),
    linear-gradient(to right, var(--navy), var(--sea));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--navy);
}
.btn-secondary:hover {
  background-image: linear-gradient(var(--mist-soft), var(--mist-soft)),
    linear-gradient(to right, var(--navy-deep), var(--sea-deep));
  color: var(--navy-deep);
}
.text-link { font-weight: 700; color: var(--navy); }

/* ---------- Home ---------- */

.home-main {
  min-height: calc(100svh - 89px);
  display: flex;
  flex-direction: column;
  background: var(--mist);
}
.search-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vh, 96px) 0 clamp(32px, 6vh, 72px);
}
.search-hero h1 {
  max-width: 15ch;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}
.search-hero .intro {
  max-width: 50ch;
  margin: 0 auto clamp(24px, 4vh, 40px);
  text-align: center;
  font-size: 1.14rem;
  color: var(--body);
}
.search-shell { max-width: 860px; margin-inline: auto; position: relative; }
.search-form { margin: 0; }
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 22px;
  background-color: var(--paper);
  background-image: linear-gradient(var(--paper), var(--paper)),
    linear-gradient(to right, var(--navy), var(--sea));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 4px solid transparent;
  border-radius: var(--pill);
  box-shadow: var(--shadow);
}
.search-field:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.search-icon { flex: none; color: var(--navy); display: grid; place-items: center; }
.search-input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.18rem;
}
.search-input::placeholder { color: #6b7b80; opacity: 1; }
.search-input:focus { outline: none; }
.search-form .btn-primary { flex: none; min-height: 54px; padding-inline: 28px; }
.search-hint {
  margin: 12px 4px 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
}
.quick-links a:hover { background: var(--paper); border-color: var(--navy); }

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
}
.search-results[hidden] { display: none; }
.result-status {
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--muted);
}
.result-group { padding: 6px 0; }
.result-group + .result-group { border-top: 1px solid var(--line); }
.result-group h2 {
  margin: 0;
  padding: 6px 12px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.result-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.result-item strong { display: block; font-weight: 600; font-size: 1rem; color: var(--ink); }
.result-item span { display: block; font-size: 0.86rem; color: var(--muted); }
.result-item:hover,
.result-item.is-active { background: var(--mist); color: var(--navy); }
.result-item:hover strong,
.result-item.is-active strong { color: var(--navy); }
.result-empty { padding: 16px 12px; color: var(--body); }
.result-empty strong { color: var(--ink); }

/* ---------- Interior pages ---------- */

.page-hero { background: var(--mist); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { color: var(--navy); max-width: 20ch; }
.page-hero .intro { max-width: 62ch; font-size: 1.1rem; margin-top: 14px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { margin: 0; }
.band { background: var(--mist-soft); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { margin: 0; }
.card p { margin: 0; }
.card .meta { font-size: 0.86rem; color: var(--muted); }
.card:hover { border-color: var(--navy); box-shadow: var(--shadow-soft); }
.card-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--navy);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.5em; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--paper);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}
.chip.is-featured { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-free { background: var(--mist); border-color: var(--line-strong); color: var(--navy); }

.callout {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  background: var(--mist);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.callout h3 { margin: 0; }
.callout p { margin: 0; }

/* ---------- Events ---------- */

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 6px 18px;
  border: 4px solid transparent;
  border-radius: var(--pill);
  background-color: var(--paper);
  background-image: linear-gradient(var(--paper), var(--paper)),
    linear-gradient(to right, var(--navy), var(--sea));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
}
.field input:focus,
.field select:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 26px 0 14px;
}
.results-bar p { margin: 0; font-size: 0.94rem; color: var(--muted); }
.results-bar strong { color: var(--ink); }
.month-head {
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.event-list { display: grid; gap: 14px; }
.event {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.event:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.event-media { display: grid; gap: 8px; align-content: start; min-width: 0; }
.event-poster {
  margin: 0;
  padding: 5px;
  background: var(--mist-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.event-poster img { display: block; width: 100%; height: auto; border-radius: 8px; }
.event-poster--fallback {
  aspect-ratio: 3 / 4;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 2px;
  text-align: center;
  color: var(--navy);
  background: var(--mist);
}
.event-poster--fallback span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.event-poster--fallback span:last-child { color: var(--muted); letter-spacing: 0.04em; }
.event-poster--fallback strong { font-size: 2.6rem; line-height: 1; }
.event-date-strip { margin: 0; padding-left: 4px; font-size: 0.8rem; font-weight: 700; color: var(--navy); }
.event-date-strip span { text-transform: uppercase; letter-spacing: 0.06em; }
.poster-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 8px;
  cursor: zoom-in;
}
.poster-button img { transition: transform 0.18s ease; }
.poster-button:hover img { transform: scale(1.015); }
.poster-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.event:target { outline: 3px solid var(--navy); outline-offset: 4px; }

/* Poster lightbox */
html.dialog-open { overflow: hidden; }
.poster-dialog {
  width: fit-content;
  max-width: 94vw;
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.poster-dialog::backdrop { background: rgba(6, 16, 22, 0.86); }
.poster-dialog__inner { display: grid; justify-items: center; gap: 10px; }
.poster-dialog__inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(86vw, 780px);
  max-height: 80vh;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
.poster-dialog__title {
  margin: 0;
  max-width: 70ch;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.poster-dialog__close {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  z-index: 2;
}
.poster-dialog__close:hover { background: var(--mist); }
.poster-dialog__close:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.event-body { min-width: 0; }
.event-body h3 { margin: 0 0 6px; }
.event-body h3 a { color: var(--ink); text-decoration: none; }
.event-body h3 a:hover { color: var(--navy); text-decoration: underline; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 0.9rem; color: var(--body); }
.event-meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.event-meta svg { flex: none; color: var(--sea-deep); }
.event-excerpt { margin: 0 0 12px; max-width: 70ch; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.event-actions a { font-weight: 700; font-size: 0.94rem; }
.event-source { font-size: 0.82rem; color: var(--muted); }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--mist-soft), #fff, var(--mist-soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; height: 132px; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
.state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.state h3 { margin-bottom: 6px; }

/* ---------- Care options ---------- */

.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}
.jump-nav a:hover { background: var(--mist); border-color: var(--navy); }
.option {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.option-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
.option h2 { color: var(--navy); }
.option .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.option ul { margin: 0; }
.option .sidebar {
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 20px;
  background: var(--mist-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.option .sidebar h3 { margin: 0 0 4px; font-size: 1rem; }
.option .sidebar p { margin: 0; font-size: 0.92rem; }

/* ---------- Resources ---------- */

.helplines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.helpline {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.helpline h3 { margin: 0 0 4px; }
.helpline p { margin: 0 0 8px; font-size: 0.94rem; }
.helpline a.phone { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.12rem; font-weight: 700; color: var(--navy); }
.helpline .small { font-size: 0.84rem; color: var(--muted); }
details.guide {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details.guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
details.guide summary::-webkit-details-marker { display: none; }
details.guide summary::after { content: "+"; font-size: 1.4rem; color: var(--sea-deep); line-height: 1; }
details.guide[open] summary::after { content: "–"; }
details.guide .guide-body { padding: 0 0 18px; max-width: 68ch; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-form { display: grid; gap: 16px; padding: 26px; background: var(--mist-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 8px 18px;
  border: 4px solid transparent;
  border-radius: var(--pill);
  background-color: var(--paper);
  background-image: linear-gradient(var(--paper), var(--paper)),
    linear-gradient(to right, var(--navy), var(--sea));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { min-height: 150px; padding: 14px 18px; border-radius: 24px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.contact-form .error { color: var(--danger); font-size: 0.86rem; font-weight: 600; }
.contact-form .note { font-size: 0.84rem; color: var(--muted); margin: 0; }
.contact-form .success { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 44px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand p { margin: 0; font-size: 0.9rem; max-width: 34ch; }
.footer-col h2 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.92rem; color: var(--navy); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-bottom a { color: #aa1212; font-weight: 700; }

/* ---------- Accessibility widget ---------- */

.a11y {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.a11y-launcher {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.a11y-launcher:hover { background: var(--navy-deep); }
.a11y-panel {
  width: min(320px, calc(100vw - 36px));
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.a11y-group { display: grid; gap: 6px; margin-bottom: 16px; }
.a11y-group > span { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.size-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size-row button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.size-row button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.switch-row { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 0.92rem; color: var(--ink); }
.switch-row input { width: 22px; height: 22px; accent-color: var(--navy); }
.a11y-reset {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--mist);
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.a11y-reset:hover { background: #dcebe8; }

/* ---------- High contrast ---------- */

html.hc {
  --navy: #ffe14d;
  --navy-deep: #fff27a;
  --sea: #ffe14d;
  --sea-deep: #fff27a;
  --mist: #000000;
  --mist-soft: #0b0b0b;
  --paper: #000000;
  --ink: #ffffff;
  --body: #ffffff;
  --muted: #f2f2f2;
  --line: #ffffff;
  --line-strong: #ffffff;
  --focus: #ffe14d;
  --shadow: none;
  --shadow-soft: none;
}
html.hc body { background: #000; color: #fff; }
html.hc .site-header,
html.hc .site-footer { background: #000; border-color: #fff; }
html.hc .brand img,
html.hc .footer-brand img { filter: brightness(0) invert(1); }
html.hc .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #ffe14d; }
html.hc .btn-primary { background: #ffe14d; color: #000; border: 2px solid #ffe14d; }
html.hc .btn-primary:hover { background: #fff27a; color: #000; }
html.hc .btn-secondary { background-image: none; background: #000; border: 2px solid #fff; color: #ffe14d; }
html.hc .btn-secondary:hover { background: #111; color: #fff; }
html.hc .card,
html.hc .event,
html.hc .helpline,
html.hc .filters,
html.hc .search-field,
html.hc .contact-form,
html.hc .option .sidebar,
html.hc .state { border-width: 2px; border-color: #fff; background: #000; }
html.hc .search-field { border: 2px solid #fff; background: #000; box-shadow: none; }
html.hc .search-input { color: #fff; }
html.hc .search-input::placeholder { color: #e6e6e6; }
html.hc .search-results { background: #000; border: 2px solid #fff; }
html.hc .result-item strong,
html.hc .result-item span { color: #fff; }
html.hc .result-item:hover,
html.hc .result-item.is-active { background: #1a1a1a; }
html.hc .event-poster { background: #111; border: 2px solid #fff; }
html.hc .event-poster--fallback { background: #111; color: #ffe14d; }
html.hc .poster-dialog::backdrop { background: #000; }
html.hc .poster-dialog__inner img { border: 2px solid #fff; }
html.hc .poster-dialog__title { color: #fff; }
html.hc .poster-dialog__close { background: #ffe14d; color: #000; border-color: #000; }
html.hc .event-date .month,
html.hc .event-date .day { color: #ffe14d; }
html.hc .chip { background: #000; border-color: #fff; color: #fff; }
html.hc .chip.is-featured { background: #ffe14d; color: #000; border-color: #ffe14d; }
html.hc .jump-nav a,
html.hc .quick-links a { background: #000; border-color: #fff; color: #ffe14d; }
html.hc .callout { background: #111; border: 2px solid #fff; }
html.hc .field input,
html.hc .field select,
html.hc .contact-form input,
html.hc .contact-form select,
html.hc .contact-form textarea { background: #000; border: 2px solid #fff; color: #fff; }
html.hc .field input::placeholder,
html.hc .contact-form input::placeholder,
html.hc .contact-form textarea::placeholder { color: #e6e6e6; opacity: 1; }
html.hc .page-hero { border-bottom: 1px solid #fff; }
html.hc .footer-bottom a { color: #ffe14d; }
html.hc .skeleton { background: #111; }
html.hc .a11y-launcher { background: #ffe14d; color: #000; border-color: #000; }
html.hc .a11y-panel { background: #000; border: 2px solid #fff; }
html.hc .a11y-panel h2 { color: #fff; }
html.hc .size-row button { background: #000; border-color: #fff; color: #ffe14d; }
html.hc .size-row button[aria-pressed="true"] { background: #ffe14d; color: #000; border-color: #ffe14d; }
html.hc .switch-row { color: #fff; }
html.hc .a11y-reset { background: #111; color: #fff; }
html.hc a { color: #ffe14d; }
html.hc a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .brand img { height: 58px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 4vw 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 52px; padding-inline: 12px; font-size: 1rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--navy); background: var(--mist-soft); }
  .home-main { min-height: calc(100svh - 83px); }
  .search-field { flex-wrap: wrap; padding: 10px 12px 12px 16px; border-radius: 28px; }
  .search-input { height: 46px; font-size: 1.08rem; flex-basis: calc(100% - 40px); }
  .search-form .btn-primary { width: 100%; margin-top: 4px; }
  .search-hero h1 { max-width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .helplines { grid-template-columns: 1fr; }
  .event { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .event-date-strip { font-size: 0.74rem; padding-left: 2px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 540px) {
  .filters { grid-template-columns: 1fr; padding: 14px; }
  .event { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .event .chip-row { display: none; }
  .poster-dialog__inner img { max-width: 92vw; max-height: 72vh; padding: 5px; }
  .poster-dialog__title { font-size: 0.92rem; }
  .event-meta { font-size: 0.86rem; gap: 4px 10px; }
  .event-date-strip { font-size: 0.72rem; }
  .header-inner { min-height: 80px; }
  .brand img { height: 52px; }
  .home-main { min-height: calc(100svh - 81px); }
  .quick-links { gap: 8px; }
  .quick-links a { padding-inline: 14px; font-size: 0.88rem; }
  .a11y { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
