:root {
      color-scheme: light;
      --blue: #053477;
      --muted: #42638d;
      --sky: #eaf5ff;
      --ice: #edf7ff;
      --border: #dcecf9;
      --hover: #f0f7ff;
      --focus: #0b63ba;
      --ease: cubic-bezier(.2, .7, .25, 1);
      font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      font-synthesis: none;
      color: var(--blue);
      background: #fff;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    *, *::before, *::after { box-sizing: border-box; }
    body { margin: 0; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button { font: inherit; }
    button[hidden] { display: none; }
    svg { display: block; }
    ::selection { color: #fff; background: var(--blue); }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      z-index: 10;
      padding: 12px 18px;
      border-radius: 10px;
      color: #fff;
      background: var(--blue);
      text-decoration: none;
      transform: translateY(-160%);
    }
    .skip-link:focus { transform: translateY(0); }

    .facilities-page {
      min-height: 100vh;
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      overflow: clip;
    }

    .hero {
      position: relative;
      isolation: isolate;
      flex: none;
      overflow: hidden;
      padding: max(22px, env(safe-area-inset-top)) 24px 35px;
      text-align: center;
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0 -18%;
      z-index: -2;
      border-radius: 0 0 50% 50% / 0 0 19% 19%;
      background: linear-gradient(180deg, var(--sky) 0%, var(--ice) 100%);
    }
    .hero::after {
      content: "";
      position: absolute;
      z-index: -1;
      width: 118%;
      height: 650px;
      top: -370px;
      left: -9%;
      border: 2px solid rgb(255 255 255 / 62%);
      border-radius: 50%;
      pointer-events: none;
    }

    .hero-halo {
      position: absolute;
      z-index: -1;
      top: -210px;
      left: calc(50% - 280px);
      width: 560px;
      height: 560px;
      border: 1px solid rgb(255 255 255 / 70%);
      border-radius: 50%;
      pointer-events: none;
    }
    .hero-halo::before, .hero-halo::after {
      content: "";
      position: absolute;
      border: 1px solid rgb(255 255 255 / 85%);
      border-radius: inherit;
    }
    .hero-halo::before { inset: 48px; }
    .hero-halo::after { inset: 96px; }

    .logo-wrap {
      position: relative;
      width: 182px;
      height: 174px;
      margin: 0 auto 9px;
      display: grid;
      place-items: center;
    }
    .logo-wrap::before {
      content: "";
      position: absolute;
      inset: -18px;
      border-radius: 50%;
      background: rgb(255 255 255 / 38%);
      box-shadow: 0 0 0 28px rgb(255 255 255 / 18%);
    }
    .municipality-logo {
      position: relative;
      display: block;
      width: 174px;
      height: auto;
    }

    h1 {
      margin: 14px 0 10px;
      font-size: clamp(42px, 5.1vw, 72px);
      line-height: 1.07;
      font-weight: 800;
      letter-spacing: -2.2px;
      word-spacing: 2px;
    }
    .intro {
      margin: 0;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.6;
      letter-spacing: -.35px;
      text-wrap: balance;
    }

    .facility-directory {
      position: relative;
      z-index: 1;
      width: min(100% - 48px, 1064px);
      margin: 12px auto 24px;
      outline: none;
    }
    .facility-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .facility-list li { min-width: 0; }
    .facility-link {
      position: relative;
      isolation: isolate;
      display: flex;
      align-items: center;
      gap: 18px;
      min-height: 124px;
      height: 100%;
      padding: 18px 22px;
      border: 1px solid var(--border);
      border-radius: 17px;
      color: var(--blue);
      background: #fff;
      box-shadow: 0 4px 18px rgb(5 52 119 / 4%);
      text-decoration: none;
      transition: transform 280ms var(--ease), box-shadow 280ms var(--ease),
        border-color 280ms ease, background-color 280ms ease;
    }
    .facility-link::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset: 0;
      border-radius: inherit;
      opacity: 0;
      background: radial-gradient(320px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), var(--ice), transparent 75%);
      transition: opacity 280ms ease;
      pointer-events: none;
    }
    .facility-icon {
      flex: 0 0 84px;
      display: grid;
      place-items: center;
      width: 84px;
      height: 84px;
      border-radius: 50%;
      background: var(--ice);
      transition: transform 320ms var(--ease), background-color 280ms ease;
    }
    .facility-icon svg { width: 42px; height: 42px; }
    .facility-text { flex: 1; min-width: 0; }
    .facility-name {
      display: block;
      font-size: 24px;
      font-weight: 750;
      line-height: 1.32;
      letter-spacing: -.65px;
    }
    .facility-caption {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 450;
      line-height: 1.4;
    }
    .facility-arrow {
      flex: 0 0 42px;
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border: 1px solid var(--border);
      border-radius: 50%;
      background: var(--hover);
      transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease;
    }
    .facility-arrow svg {
      width: 19px;
      height: 19px;
      transition: transform 280ms var(--ease);
    }
    .facility-link:focus-visible {
      outline: 3px solid var(--focus);
      outline-offset: 4px;
      background: var(--hover);
    }
    .facility-link:active { transform: translateY(0) scale(.985); background: var(--hover); }

    .page-footer {
      position: relative;
      isolation: isolate;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      min-height: 94px;
      margin-top: auto;
      padding: 48px 24px max(20px, env(safe-area-inset-bottom));
    }
    .footer-waves {
      position: absolute;
      z-index: -1;
      inset: 0 auto 0 -5%;
      width: 110%;
      height: 100%;
      pointer-events: none;
    }
    .footer-name { margin: 0; color: var(--muted); font-size: 11px; line-height: 20px; }







    @media (hover: hover) and (pointer: fine) {
      .facility-link:hover {
        transform: translateY(-4px);
        border-color: #dfe9f4;
        box-shadow: 0 12px 26px rgb(5 52 119 / 9%), 0 3px 6px rgb(5 52 119 / 3%);
      }
      .facility-link:hover::before { opacity: 1; }
      .facility-link:hover .facility-icon { transform: rotate(-4deg) scale(1.045); background: #fff; }
      .facility-link:hover .facility-arrow { color: #fff; background: var(--blue); border-color: var(--blue); }
      .facility-link:hover .facility-arrow svg { transform: translateX(2px); }

    }

    @keyframes appear {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes logo-appear {
      from { opacity: 0; transform: translateY(8px) scale(.94); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes halo-breathe {
      from { opacity: .6; transform: translateY(-5px) scale(.97); }
      to { opacity: 1; transform: translateY(8px) scale(1.025); }
    }
    @keyframes wave-drift {
      from { transform: translateX(-1.6%); }
      to { transform: translateX(1.6%); }
    }

    @media (prefers-reduced-motion: no-preference) {
      .logo-wrap { animation: logo-appear 800ms var(--ease) both; }

      h1 { animation: appear 700ms 140ms var(--ease) both; }
      .intro { animation: appear 700ms 200ms var(--ease) both; }
      .facility-list li { animation: appear 650ms calc(170ms + var(--i) * 65ms) var(--ease) both; }
      [data-motion] .hero-halo { animation: halo-breathe 11s ease-in-out infinite alternate; }
      [data-motion] .footer-waves { animation: wave-drift 14s ease-in-out infinite alternate; }
    }
    [data-motion="paused"] *, [data-motion="paused"] *::before, [data-motion="paused"] *::after {
      animation-play-state: paused !important;
    }
    [data-motion="paused"] .logo-wrap,
    [data-motion="paused"] h1, [data-motion="paused"] .intro,
    [data-motion="paused"] .facility-list li { animation: none; }
    [data-motion="paused"] .facility-link,
    [data-motion="paused"] .facility-icon,
    [data-motion="paused"] .facility-arrow svg { transform: none !important; transition: none; }

    @media (max-width: 899px) {
      .facility-directory { max-width: 610px; }
      .facility-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
      .facility-link { min-height: 92px; padding: 14px 20px; }
      .facility-icon { flex-basis: 60px; width: 60px; height: 60px; }
      .facility-name { font-size: 18px; }

      .page-footer { align-items: center; flex-direction: column; gap: 2px; padding-top: 38px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    }
    @media (max-width: 600px) {
      .hero { padding: max(23px, env(safe-area-inset-top)) 18px 32px; }
      .hero::before { inset-inline: -35%; border-bottom-left-radius: 50% 14%; border-bottom-right-radius: 50% 14%; }
      .hero::after { width: 170%; left: -35%; height: 430px; top: -215px; }
      .hero-halo { width: 390px; height: 390px; left: calc(50% - 195px); top: -160px; }
      .hero-halo::before { inset: 34px; }
      .hero-halo::after { inset: 68px; }
      .logo-wrap { width: 116px; height: 112px; margin-bottom: 12px; }
      .logo-wrap::before { inset: -10px; box-shadow: 0 0 0 18px rgb(255 255 255 / 18%); }
      .municipality-logo { width: 112px; }

      h1 { margin-top: 13px; margin-bottom: 9px; font-size: clamp(35px, 10.8vw, 46px); letter-spacing: -1.8px; }
      .intro { max-width: 320px; margin-inline: auto; font-size: 13px; line-height: 1.55; letter-spacing: -.25px; }
      .facility-directory { width: calc(100% - 32px); margin-top: 9px; margin-bottom: 16px; }
      .facility-list { gap: 10px; }
      .facility-link { gap: 13px; min-height: 83px; padding: 13px 14px; border-radius: 15px; }
      .facility-icon { flex-basis: 54px; width: 54px; height: 54px; }
      .facility-icon svg { width: 30px; height: 30px; }
      .facility-name { font-size: 16px; font-weight: 700; letter-spacing: -.48px; }
      .facility-caption { margin-top: 4px; font-size: 11px; }
      .facility-arrow { flex-basis: 32px; width: 32px; height: 32px; }
      .facility-arrow svg { width: 17px; height: 17px; }
    }
    @media (max-width: 359px) {
      .facility-directory { width: calc(100% - 24px); }
      .facility-link { gap: 11px; padding-inline: 12px; }
      .facility-icon { flex-basis: 46px; width: 46px; height: 46px; }
      .facility-name { font-size: 15px; }
      .facility-arrow { flex-basis: 28px; width: 28px; height: 28px; }
      .intro { max-width: 270px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
      .facility-link, .facility-icon, .facility-arrow svg { transform: none !important; }

    }
    @media (forced-colors: active) {
      .facility-link, .facility-icon, .facility-arrow { border: 1px solid CanvasText; }
      .hero-halo, .footer-waves { display: none; }
    }
