/* ==========================================================================
   Sehat Haq — public-information style
   One sans-serif family (Public Sans), flat colour bands, thin rules,
   no gradients, no shadows, no decorative shapes.
   ========================================================================== */

:root {
  --ink: #17261f;
  --muted: #55605a;
  --rule: #d5d9dc;
--hair: #ffffff;
--band: #f1f2f3;        /* light grey (was cream) */
--paper: #ffffff;       /* white (was cream) */
    
  --slate: #12553f;       /* now forest green: buttons, headings, brand */
  --slate-deep: #0b3b2b;
  --on-slate: #dcebe3;
  --link: #12553f;
  --brick: #c7455a;

  --lilac: #b9b5e6;
  --lilac-soft: #e8e6f8;
  --violet: #6f69c7;
  --sun: #f4b62a;
  --sun-soft: #fbe6a8;
  --coral: #e3646b;
  --coral-soft: #f8d5d2;

  --font: "Open Sans", Arial, Helvetica, sans-serif;
  --radius: 18px;
  --page-width: 1300px;
}
/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
}

main { min-height: 60vh; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-deep);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--slate-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

ul { margin: 0; padding: 0; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.container {  max-width: var(--page-width);  margin: 0 auto;  padding: 0 24px;}

.map-legend .dot { background: var(--pin, var(--muted)); }

.pin {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pin, var(--slate));
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--ink);
  cursor: pointer;
}
.leaflet-marker-icon:focus-visible .pin { outline: 3px solid var(--link); outline-offset: 3px; }


/* Popup content */
.pin-popup { display: flex; flex-direction: column; gap: 4px; font-family: var(--font); }
.pin-popup span { color: var(--muted); font-size: 0.9rem; }
.pin-popup a { font-weight: 600; }


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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  padding: 10px 16px;
  background: var(--slate-deep);
  color: #fff;
  z-index: 1000;
}
.skip-link:focus { top: 8px; }

.icon {
  width: 1.1em; height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

/* Keyboard focus on dark bands */
.page-head :focus-visible,
.hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Buttons and form fields ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 2px solid var(--slate);
  border-radius: 3px;
  background: transparent;
  color: var(--slate);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; background: var(--band); color: var(--slate-deep); }

.btn-primary { background: var(--slate); color: #fff; }
.btn-primary:hover { background: var(--slate-deep); border-color: var(--slate-deep); color: #fff; }

.btn-light { background: #fff; border-color: #fff; color: var(--slate-deep); }
.btn-light:hover { background: var(--band); border-color: var(--band); color: var(--slate-deep); }

.btn-block { display: flex; width: 100%; }
.btn-small { padding: 7px 14px; font-size: 0.95rem; }
.btn-nav { padding: 8px 16px; }

.field {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #6b7a83;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.site-header {
  border-top: 6px solid var(--slate);
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-deep);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.main-nav a:not(.btn) {
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:not(.btn):hover { border-bottom-color: var(--rule); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--brick); }

/* ---------- Page heading band (Browse, Insights, Find, facility) ---------- */

.page-head {
  background: var(--slate);
  color: #fff;
  padding: 44px 0 40px;
}
.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head p { max-width: 62ch; margin: 0; color: var(--on-slate); font-size: 1.125rem; }
.page-head a { color: #fff; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-weight: 600;
}

/* ---------- Generic sections ---------- */

.section { padding: 56px 0; }
.section-band { background: var(--band); }

.section-header { margin-bottom: 28px; }
.section-header h2 { font-size: 1.75rem; margin-bottom: 8px; }
.section-header p { max-width: 65ch; margin: 0; color: var(--muted); }

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

.hero {
  background: var(--slate);
  color: #fff;
  padding: 64px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px 64px;
  align-items: center;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); color: #fff; margin: 0; }
.hero-sub { margin: 16px 0 0; font-size: 1.2rem; color: var(--on-slate); }
.hero-search h2 { font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
.search-form { display: flex; gap: 8px; }
.search-form .field { flex: 1; min-width: 0; }
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--slate-deep); }
.hero .btn-primary:hover { background: var(--band); border-color: var(--band); }

.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  column-gap: 40px;
  list-style: none;
}
.need-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.need-tile:hover { color: var(--link); text-decoration: underline; }
.need-tile-icon { display: inline-flex; color: var(--slate); }
.need-tile-icon .icon { width: 1.75rem; height: 1.75rem; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px 0;
}
.stat {
  padding: 4px 24px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  line-height: 1.35;
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--slate);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px 56px;
}
.two-col h2 { margin: 0; }
.two-col p { max-width: 62ch; }
.two-col p:last-child { margin-bottom: 0; }

.cta {
  background: var(--slate-deep);
  color: #fff;
  padding: 56px 0;
}
.cta h2 { color: #fff; }
.cta p { max-width: 62ch; color: var(--on-slate); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta .btn:not(.btn-light) { border-color: #fff; color: #fff; }
.cta .btn:not(.btn-light):hover { background: #fff; color: var(--slate-deep); }

/* ---------- Map ---------- */

.map-section { padding-top: 28px; padding-bottom: 8px; }

.map-panel {
  height: 420px;
  border: 1px solid var(--rule);
  background: var(--band);
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 10px;
  font-size: 0.925rem;
  color: var(--muted);
}
.map-caption { margin: 0; display: flex; align-items: center; gap: 8px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-legend .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

/* ---------- Browse: filters + results ---------- */

.browse-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 0 48px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 64px;
}

.filter-panel summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--slate);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-deep);
  list-style: none;
  cursor: pointer;
}
.filter-panel summary::-webkit-details-marker { display: none; }

.filter-count {
  min-width: 1.5em;
  padding: 0 6px;
  border-radius: 1em;
  background: var(--brick);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

.filter-panel form { padding-top: 20px; }

.filter-group { margin-bottom: 22px; }
.filter-label { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 0.975rem; }
.filter-option { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; cursor: pointer; }
.filter-option input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--slate); flex: none; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.results-count { margin: 0 0 8px; font-weight: 700; color: var(--muted); }

.results-grid,
.qna-results-list { border-bottom: 1px solid var(--rule); }

.facility-card {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.card-heading { font-size: 1.35rem; margin-bottom: 8px; }
.facility-card p { max-width: 68ch; margin-bottom: 12px; }
.facility-card .btn { margin-top: 4px; }

.facility-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0 0 12px;
  list-style: none;
  color: var(--muted);
  font-size: 0.975rem;
}
.facility-meta li { display: flex; align-items: center; gap: 6px; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 12px;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.tag-row li:not(:last-child)::after { content: ","; margin-right: 0.35em; }

.empty-state { padding: 40px 0; max-width: 60ch; }

/* ---------- Facility page ---------- */

.page-head .facility-meta { margin: 0 0 14px; color: var(--on-slate); font-size: 1.05rem; }
.page-head .tag-row { gap: 8px; margin: 0; }
.page-head .tag-row li {
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  color: #fff;
  font-size: 0.9rem;
}
.page-head .tag-row li::after { content: none; }
.page-head .tag-row .tag-type { background: #fff; border-color: #fff; color: var(--slate-deep); font-weight: 600; }

.facility-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 64px;
}

.lead { max-width: 62ch; margin: 0 0 32px; font-size: 1.25rem; line-height: 1.5; }

.detail { padding: 24px 0; border-top: 1px solid var(--rule); }
.detail h2 { font-size: 1.3rem; margin-bottom: 12px; }
.detail dl { margin: 0; }

.detail-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
}
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { font-weight: 600; color: var(--muted); }
.detail-row dd { margin: 0; }

.chip-list {
  columns: 15rem;
  column-gap: 32px;
  padding-left: 1.1em;
}
.chip-list li { break-inside: avoid; margin-bottom: 4px; }

.sidebar-card {
  padding: 24px;
  border-top: 4px solid var(--slate);
  background: var(--band);
}
.sidebar-card h2 { font-size: 1.2rem; margin-bottom: 8px; }

.sidebar-contact-row { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; }
.sidebar-contact-row .icon { margin-top: 0.25em; color: var(--slate); }
.plain-list { list-style: none; }
.sidebar-card .btn-block { margin: 16px 0; }

.access-badges { list-style: none; }
.access-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}
.access-badge .icon { color: var(--slate); }
.badge-closed { color: var(--brick); font-weight: 600; }
.badge-closed .icon { color: var(--brick); }

.sidebar-source { margin: 12px 0 0; font-size: 0.875rem; color: var(--muted); }

/* ---------- Find support (questionnaire) ---------- */

.qna-results-wrapper { max-width: 780px; }
.results-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.results-header h2 { margin: 0; }
.results-header .back-link { margin: 0; }

.match-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.9rem;
}
.match-excellent { background: #1f6b3a; color: #fff; }
.match-good      { background: #dbe8f0; color: var(--slate-deep); border: 1px solid var(--slate); }
.match-fair      { background: #fff; color: var(--muted); border: 1px dashed var(--muted); }

.qna-results-list .facility-card { padding-left: 20px; border-left: 6px solid var(--rule); }
.qna-results-list .facility-card:has(.match-excellent) { border-left-color: #1f6b3a; }
.qna-results-list .facility-card:has(.match-good)      { border-left-color: var(--slate); }
.qna-results-list .facility-card:has(.match-fair)      { border-left-color: var(--rule); }

/* ---------- Insights ---------- */

.insights { padding-bottom: 32px; }

.insight-section { padding: 48px 0; border-top: 1px solid var(--rule); }
.insight-section:first-child { border-top: 0; }
.insight-section h3 { margin: 32px 0 12px; }
.insight-section .section-header + .map-panel,
.insight-section .map-panel { margin-bottom: 0; }
.insight-section .map-meta { margin-bottom: 28px; }

.bar-list { max-width: 820px; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 240px) 1fr 96px;
  gap: 4px 16px;
  align-items: center;
  padding: 5px 0;
}
.bar-track { height: 14px; background: var(--band); }
.bar-fill { height: 100%; background: var(--slate); }
.bar-fill-accent { background: var(--brick); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* ---------- Shape panel illustration ---------- */
.shape-panel {
  overflow: hidden;
  border-radius: 28px;
  background: var(--slate);          /* forest green */
  aspect-ratio: 5 / 4;               /* matches the 500x400 viewBox */
}
.shape-panel > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fill-sun   { fill: var(--sun); }    /* heart + small circle: mustard */
.fill-coral { fill: var(--coral); }  /* asterisk + house door: coral */
.fill-cream { fill: var(--band); }   /* house + big circle: warm cream */

.callout {
  max-width: 68ch;
  margin: 28px 0 0;
  padding-left: 20px;
  border-left: 4px solid var(--slate);
}

.note { margin: 12px 0 0; max-width: 68ch; font-size: 0.925rem; color: var(--muted); }

.insight-section .stat-strip { margin-top: 28px; }

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

.site-footer {
  background: var(--slate-deep);
  color: var(--on-slate);
  padding: 40px 0;
  font-size: 0.95rem;
}
.footer-inner p { max-width: 72ch; margin-bottom: 20px; }
.site-footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Small screens ---------- */

@media (min-width: 981px) {
  .filter-panel summary { pointer-events: none; }
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .facility-body { grid-template-columns: 1fr; }

  .browse-layout { grid-template-columns: 1fr; }
  .filter-panel { margin-bottom: 24px; }
  .filter-panel summary { padding: 10px 14px; border: 2px solid var(--slate); border-radius: 3px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 18px; }
  .hero, .cta, .section { padding: 40px 0; }
  .search-form { flex-direction: column; }

  .stat { padding: 4px 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }

  .detail-row { grid-template-columns: 1fr; gap: 2px; }
  .map-panel { height: 320px; }

  .bar-row { grid-template-columns: 1fr auto; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
}

@media (min-width: 981px) {
  .filter-panel {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: scroll;              /* always show the scrollbar */
    padding-right: 14px;
    scrollbar-width: auto;           /* Firefox */
    scrollbar-color: var(--slate) var(--band);
  }
  /* Chrome, Safari, Edge: this forces a visible bar even where the OS hides them */
  .filter-panel::-webkit-scrollbar { width: 12px; }
  .filter-panel::-webkit-scrollbar-track { background: var(--band); }
  .filter-panel::-webkit-scrollbar-thumb {
    background: var(--slate);
    border-radius: 6px;
    border: 2px solid var(--band);
  }
}

/* ==========================================================================
   THEME LAYER — warm, colourful, still calm and professional
   ========================================================================== */

/* ---------- Type ---------- */
h1, h2, h3, h4,
.brand,
.stat strong { font-family: var(--display); letter-spacing: -0.01em; }
h1 { line-height: 1.1; }

/* ---------- Facility-type colours (pins, legend dots, card headers) ---------- */
.type-therapy                  { --pin: var(--coral);  --on-pin: var(--ink); }
.type-special-education-school { --pin: var(--violet); --on-pin: #fff; }
.type-vocational-training      { --pin: var(--sun);    --on-pin: var(--ink); }

.map-legend .dot { background: var(--pin, var(--muted)); width: 12px; height: 12px; }

/* ---------- Buttons and fields: soft and rounded ---------- */
.btn { border-radius: 999px; border-width: 2px; padding: 12px 24px; }
.btn-small { padding: 8px 18px; }
.btn-primary:hover { background: var(--slate-deep); }
.field { border: 2px solid var(--rule); border-radius: 12px; padding: 11px 14px; }
.field:hover { border-color: var(--muted); }

/* ---------- Header ---------- */
.site-header { border-top: 0; border-bottom: 0; background: var(--paper); }
.brand { font-size: 1.75rem; }
.main-nav a:not(.btn) { border-bottom-width: 4px; }
.main-nav a:not(.btn):hover { border-bottom-color: var(--lilac); }

/* ---------- Hero + page heading bands: lilac with flat colour shapes ---------- */
.hero,
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--lilac);
  color: var(--slate-deep);
}
.hero > .container,
.page-head > .container { position: relative; z-index: 1; }

.hero::before,
.page-head::before {              /* green circle, top right */
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -90px; top: -120px;
  border-radius: 50%;
  background: var(--slate);
}
.hero::after,
.page-head::after {               /* mustard circle, bottom left */
  content: "";
  position: absolute;
  width: 150px; height: 150px;
  left: -60px; bottom: -80px;
  border-radius: 50%;
  background: var(--sun);
}

.hero h1,
.page-head h1,
.hero-search h2 { color: var(--slate-deep); }
.hero-sub,
.page-head p,
.page-head .facility-meta { color: var(--ink); }
.page-head a { color: var(--slate-deep); }

.hero .btn-primary { background: var(--slate); border-color: var(--slate); color: #fff; }
.hero .btn-primary:hover { background: var(--slate-deep); border-color: var(--slate-deep); }

/* focus rings on the lilac bands need to be dark, not white */
.page-head :focus-visible,
.hero :focus-visible { outline-color: var(--slate-deep); }

/* facility page tags on lilac */
.page-head .tag-row li {
  border: 2px solid var(--slate-deep);
  border-radius: 999px;
  background: transparent;
  color: var(--slate-deep);
}
.page-head .tag-row .tag-type { background: var(--slate); border-color: var(--slate); color: #fff; }

/* ---------- Sections ---------- */
.section-band { background: var(--band); }
.section-header p { color: var(--muted); }

/* ---------- Home: colourful stat tiles ---------- */
.stat-strip { gap: 16px; }
.stat,
.stat:first-child {
  padding: 24px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
}
.stat:nth-child(4n+1) { background: var(--sun-soft); }
.stat:nth-child(4n+2) { background: var(--lilac-soft); }
.stat:nth-child(4n+3) { background: var(--coral-soft); }
.stat:nth-child(4n+4) { background: #d5e8dd; }
.stat strong { color: var(--slate-deep); font-size: 2.75rem; }

/* ---------- Home: need tiles ---------- */
.needs-grid { gap: 12px 16px; }
.need-tile {
  padding: 16px 20px;
  border: 2px solid var(--hair);
  border-radius: var(--radius);
  background: #fff;
}
.need-tile:hover { background: var(--lilac-soft); border-color: var(--lilac); text-decoration: none; color: var(--slate-deep); }
.need-tile-icon {
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--sun-soft);
  color: var(--slate-deep);
}

/* ---------- CTA + footer ---------- */
.cta { position: relative; overflow: hidden; }
.cta > .container { position: relative; z-index: 1; }
.cta::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  right: -80px; bottom: -110px;
  border-radius: 50%;
  background: var(--coral);
}
.site-footer { border-top: 8px solid var(--sun); }

/* ---------- Map ---------- */
.map-panel {
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: 2px solid var(--hair);
  border-radius: var(--radius);
}

/* ---------- Browse: filter panel as a soft card ---------- */
.filter-panel {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--band);
}
.filter-panel summary { border-bottom-color: var(--slate); }
.filter-option:hover { color: var(--slate-deep); }

/* ---------- Facility cards: coloured type header ---------- */
.results-grid,
.qna-results-list { display: grid; gap: 20px; border-bottom: 0; }

.facility-card {
  padding: 0;
  border: 2px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s;
}
.facility-card:hover { border-color: var(--slate); }

.card-band {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
  background: var(--pin, var(--lilac));
  color: var(--on-pin, var(--ink));
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-body { padding: 22px 24px 24px; }
.card-heading { font-family: var(--display); }
.card-title { color: var(--slate-deep); }

.tag-row { gap: 6px; }
.tag-row li:not(:last-child)::after { content: none; }
.tag-row li {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--lilac-soft);
  color: var(--slate-deep);
}

.btn-outline { background: transparent; }

/* ---------- Match badges (find support) ---------- */
.match-score { border-radius: 999px; padding: 4px 14px; }
.match-excellent { background: var(--slate); color: #fff; }
.match-good      { background: var(--sun); color: var(--ink); border: 0; }
.match-fair      { background: #fff; color: var(--muted); border: 2px dashed var(--muted); }

/* ---------- Facility page sidebar ---------- */
.sidebar-card {
  border-top: 0;
  border-radius: var(--radius);
  background: var(--lilac-soft);
}
.access-badge { border-top-color: rgba(11, 59, 43, 0.15); }

/* ---------- Insights ---------- */
.bar-track { border-radius: 999px; overflow: hidden; }
.bar-fill { background: var(--slate); }
.bar-fill-accent { background: var(--coral); }
.callout { border-left: 6px solid var(--sun); }

/* ---------- Small screens: hide decorative circles ---------- */
@media (max-width: 640px) {
  .hero::before, .hero::after,
  .page-head::before, .page-head::after,
  .cta::after { display: none; }
}

/* ==========================================================================
   FLAT CARDS: solid colour per card, single column
   ========================================================================== */

:root {
  --card-blue:   #bcd0e0;
  --card-lilac:  #c9bdea;
  --card-green:  #bfd28f;
  --card-orange: #f4ac82;
}

/* Still one column, just a little breathing room between cards */
.results-grid,
.qna-results-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border: 0;
}

/* The card itself is the colour block: no border, no hover effects */
.facility-card {
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card-blue);
  color: var(--slate-deep);
  transition: none;
}
.facility-card:hover { border: 0; }

.facility-card:nth-child(4n+1) { background: var(--card-blue); }
.facility-card:nth-child(4n+2) { background: var(--card-lilac); }
.facility-card:nth-child(4n+3) { background: var(--card-green); }
.facility-card:nth-child(4n+4) { background: var(--card-orange); }

/* Type and ownership become a plain small label row, not a coloured strip */
.card-band {
  background: none;
  color: var(--slate-deep);
  padding: 24px 28px 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.8;
}
.card-band span + span::before { content: "·"; margin-right: 12px; }
.card-band { justify-content: flex-start; gap: 12px; }

.card-body { padding: 8px 28px 28px; }

/* Typography: big, plain, confident */
.card-heading {
  margin: 0 0 12px;
  font-size: 1.75rem;
  line-height: 1.15;
}
.card-title { color: var(--slate-deep); text-decoration: none; }
.card-title:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.facility-card p { color: var(--ink); }
.facility-meta { color: var(--ink); }

/* Tags: plain white pills, like the inspo */
.tag-row li {
  padding: 3px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
}

/* Button: solid dark green pill */
.facility-card .btn-primary {
  background: var(--slate-deep);
  border-color: var(--slate-deep);
  color: #fff;
}
.facility-card .btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

/* Match badges on the Find Support page, readable on every card colour */
.qna-results-list .match-excellent { background: var(--slate-deep); color: #fff; }
.qna-results-list .match-good      { background: #fff; color: var(--ink); border: 0; }
.qna-results-list .match-fair      { background: transparent; color: var(--ink); border: 2px dashed var(--slate-deep); }

/* ==========================================================================
   FACILITY PAGE: white cards, lilac sidebar, no cream
   ========================================================================== */

/* Hero: the panel is just a wrapper, the lilac band is the colour */
.facility-hero-panel { max-width: 780px; }
.facility-hero-panel h1 { margin-bottom: 14px; }

/* The type tag takes the same colour as that type's map pin */
.page-head .tag-row .tag-type {
  background: var(--pin, var(--slate));
  border-color: var(--pin, var(--slate));
  color: var(--on-pin, #fff);
}

/* Body layout */
.facility-body { gap: 32px 40px; }
.facility-main { display: grid; gap: 16px; }
.lead { margin-bottom: 16px; }

/* Detail cards: plain white, thin lilac-grey outline */
.detail-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
}
.detail-card h2 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.detail-card dl { margin: 0; }

/* Rows inside the cards */
.detail-card .detail-row {
  padding: 12px 0;
  border-bottom: 1px solid #ecebf5;
}
.detail-card .detail-row:first-child { padding-top: 0; }
.detail-card .detail-row:last-child { padding-bottom: 0; border-bottom: 0; }

/* Services / disabilities / amenities as soft lilac pills */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  columns: auto;
  padding: 0;
  list-style: none;
}
.chip-list li {
  margin: 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--lilac-soft);
  color: var(--slate-deep);
  font-size: 0.95rem;
}

/* Sidebar: keeps the lilac card, now stays in view while scrolling */
.sidebar-card {
  padding: 28px;
  border-top: 0;
  border-radius: var(--radius);
  background: var(--lilac-soft);
}
.sidebar-card h2 { font-size: 1.35rem; }
.access-badge { border-top: 1px solid rgba(11, 59, 43, 0.15); }
.badge-closed,
.badge-closed .icon { color: #a12a40; }   /* darker so it reads on lilac */

@media (min-width: 981px) {
  .sidebar-card {
    position: sticky;
    top: 16px;
  }
}

@media (max-width: 640px) {
  .detail-card, .sidebar-card { padding: 22px; }
}
[hidden] { display: none !important; }