/* ==========================================================================
   The frame every page shares: the header, the menus, the search, the
   phone's action bar, the footer
   ========================================================================== */

/* ---- header: the logo hard left, the way in hard right; everything urgent inside it ---- */
.hdr { position: sticky; top: 0; z-index: 60; height: var(--hdr); background: rgba(251, 250, 246, 0.93); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: inset 0 -1px 0 transparent; transition: box-shadow var(--d-base) var(--e-out), background var(--d-base) var(--e-out); }
.hdr.is-stuck { box-shadow: inset 0 -1px 0 var(--line), 0 12px 30px -24px rgba(16, 36, 34, 0.4); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: clamp(1rem, 0.4rem + 1.6vw, 2.4rem); padding-inline: var(--pad); }
.brand { display: flex; align-items: center; flex: none; margin-inline-end: auto; }
.brand img { height: clamp(44px, 38px + 0.8vw, 56px); width: auto; }
.nav { display: flex; align-items: center; gap: clamp(0.2rem, 0.1rem + 0.5vw, 0.8rem); }
.nav__a { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; height: 2.6rem; padding: 0 0.7rem; border-radius: 999px; font: 600 0.94rem/1 var(--f-body); color: var(--ink-2);
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out); }
.nav__a:hover, .nav__a[aria-expanded="true"] { color: var(--ink); background: rgba(16, 36, 34, 0.05); }
.nav__a[aria-current="page"] { color: var(--teal-700); }
.nav__a[aria-current="page"]::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.32rem; height: 2px; border-radius: 2px; background: var(--teal); }
.nav__a .chev { width: 0.9rem; height: 0.9rem; transition: transform var(--d-base) var(--e-out); }
.nav__a[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tools { display: flex; align-items: center; gap: 0.5rem; }
.tool { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: var(--ink-2); transition: background var(--d-fast), color var(--d-fast); }
.tool:hover { background: rgba(16, 36, 34, 0.06); color: var(--ink); }
.tool--kbd { display: inline-flex; align-items: center; width: auto; gap: 0.55rem; padding: 0 0.55rem 0 0.8rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 0.88rem/1 var(--f-body); }
.tool--kbd kbd { padding: 0.18rem 0.42rem; border-radius: 6px; background: var(--paper-2); font: 600 0.72rem/1 var(--f-body); color: var(--ink-3); }
/* the language switch: one quiet pill (the current language); the three languages open beneath it */
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; gap: 0.3rem; height: 2.6rem; padding: 0 0.7rem 0 0.85rem; border-radius: 999px; list-style: none; cursor: pointer;
  font: 700 0.78rem/1 var(--f-body); letter-spacing: 0.06em; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: background var(--d-fast), color var(--d-fast); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgba(16, 36, 34, 0.06); color: var(--ink); }
.lang summary .chev { width: 0.85rem; height: 0.85rem; transition: transform var(--d-base) var(--e-out); }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang__menu { position: absolute; z-index: 40; top: calc(100% + 0.5rem); inset-inline-end: 0; min-width: 11rem; display: grid; gap: 2px; padding: 0.4rem; border-radius: 16px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgba(16, 36, 34, 0.35); }
.lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.75rem; border-radius: 10px; font-size: 0.92rem; color: var(--ink-2); }
.lang__menu a b { font: 700 0.74rem/1 var(--f-body); letter-spacing: 0.08em; color: var(--ink-3); }
.lang__menu a:hover { background: var(--paper-2); color: var(--ink); }
.lang__menu a[aria-current="true"] { background: var(--mint); color: var(--teal-800); }
.lang__menu a[aria-current="true"] b { color: var(--teal-700); }
.er { display: inline-flex; align-items: center; gap: 0.6rem; height: 2.6rem; padding: 0 0.9rem 0 0.75rem; border-radius: 999px; background: var(--red-soft); color: #a3292b; font: 700 0.88rem/1 var(--f-body); white-space: nowrap;
  transition: background var(--d-fast), color var(--d-fast); }
.er:hover { background: var(--red); color: var(--white); }
.er small { font-weight: 600; opacity: 0.8; }
.pulse { position: relative; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--red); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: pulse 2.4s var(--e-out) infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.er:hover .pulse { background: var(--white); }
.burger { display: none; }
@media (max-width: 1240px) { .tool--kbd span, .tool--kbd kbd { display: none; } .tool--kbd { width: 2.6rem; padding: 0; justify-content: center; } .er small { display: none; } }
@media (max-width: 1240px) { .nav, .tools .lang, .tools .btn--appt { display: none; } .burger { display: inline-grid; } }
@media (max-width: 760px) { .tools { gap: 0.35rem; } .er { height: 2.4rem; padding: 0 0.75rem 0 0.65rem; gap: 0.45rem; font-size: 0.82rem; } }

/* ---- the departments menu (a panel under the header) ---- */
.mega { position: absolute; left: 0; right: 0; top: var(--hdr); background: var(--paper); box-shadow: inset 0 1px 0 var(--line), 0 40px 60px -40px rgba(11, 57, 54, 0.4);
  opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity var(--d-base) var(--e-out), transform var(--d-base) var(--e-out), visibility 0s linear var(--d-base); }
.mega.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mega__in { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 1rem + 3vw, 4rem); padding: 2.2rem var(--pad) 2.6rem; }
.mega__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.6rem; list-style: none; margin: 0; padding: 0; align-content: start; }
.mega__list a { display: flex; align-items: center; gap: 0.8rem; padding: 0.72rem 0.6rem; border-radius: var(--r-sm); font-weight: 600; color: var(--ink-2); transition: background var(--d-fast), color var(--d-fast); }
.mega__list a:hover { background: var(--mint); color: var(--teal-800); }
.mega__list .di { width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--mint); color: var(--teal-700); display: grid; place-items: center; flex: none; }
.mega__list .di svg { width: 1.3rem; height: 1.3rem; }
/* the side panel has one size whichever department it shows: its two faces are laid over each other
   inside it and never push the menu taller (the menu used to jump when a longer card came in) */
.mega__aside { position: relative; min-height: 21rem; border-radius: var(--r-lg); background: var(--teal-900); color: #e8f4f1; overflow: hidden; }
.mega__aside > .mega__default, .mega__aside > .mega__peek { position: absolute; inset: 0; padding: 1.4rem; }
.mega__aside p { color: rgba(232, 244, 241, 0.72); font-size: var(--t-small); }
.mega__aside .h3 { color: var(--white); }

/* ---- the search (⌘K): one box for departments, doctors, complaints and pages ---- */
.finder { position: fixed; inset: 0; z-index: 120; display: grid; justify-items: center; align-items: start; padding: clamp(4rem, 12vh, 9rem) var(--pad) 2rem; background: rgba(11, 30, 28, 0.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity var(--d-base) var(--e-out), visibility 0s linear var(--d-base); }
.finder.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.finder__box { width: min(100%, 44rem); max-height: min(80vh, 44rem); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: var(--r-xl); background: var(--white); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.55); overflow: hidden;
  transform: translateY(14px) scale(0.985); transition: transform var(--d-slow) var(--e-out); }
.finder.is-open .finder__box { transform: none; }
.finder__field { display: flex; align-items: center; gap: 0.8rem; padding: 0 1.2rem; box-shadow: inset 0 -1px 0 var(--line); }
.finder__field .icon { width: 1.4rem; height: 1.4rem; color: var(--teal-700); }
.finder__field input { flex: 1; min-width: 0; height: 4.2rem; border: 0; outline: 0; background: none; font: 500 1.15rem/1 var(--f-body); }
.finder__field input::placeholder { color: var(--ink-3); }
.finder__esc { padding: 0.3rem 0.55rem; border-radius: 6px; background: var(--paper-2); font: 600 0.72rem/1 var(--f-body); color: var(--ink-3); }
.finder__out { overflow: auto; overscroll-behavior: contain; padding: 0.6rem 0.6rem 1rem; }
.finder__group { padding: 0.9rem 0.8rem 0.35rem; font: 700 0.7rem/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.hit { display: flex; align-items: center; gap: 0.9rem; padding: 0.65rem 0.8rem; border-radius: 14px; color: var(--ink); }
.hit[aria-selected="true"], .hit:hover { background: var(--mint); }
.hit__pic { width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden; background: var(--mint-2); flex: none; display: grid; place-items: center; color: var(--teal-700); }
.hit__pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hit__pic svg { width: 1.3rem; height: 1.3rem; }
.hit__t { display: grid; gap: 0.15rem; min-width: 0; }
.hit__t b { font-weight: 650; }
.hit__t small { color: var(--ink-3); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit__go { margin-inline-start: auto; color: var(--ink-3); opacity: 0; transition: opacity var(--d-fast); }
.hit[aria-selected="true"] .hit__go { opacity: 1; }
.hit mark { background: none; color: var(--teal-700); font-weight: 750; }
.finder__empty { padding: 2rem 1rem; text-align: center; color: var(--ink-3); }
.finder__foot { display: flex; gap: 1.2rem; flex-wrap: wrap; padding: 0.8rem 1.2rem; box-shadow: inset 0 1px 0 var(--line); font-size: 0.8rem; color: var(--ink-3); }
.finder__foot b { color: var(--red); }
.finder__note { margin: 0.4rem 0.8rem 0; padding: 0.8rem 1rem; border-radius: 14px; background: var(--red-soft); color: #8c2426; font-size: 0.86rem; }

/* ---- the menu sheet (narrow screens) ---- */
.sheet { position: fixed; inset: 0; z-index: 110; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--paper); transform: translateY(-2%); opacity: 0; visibility: hidden;
  transition: opacity var(--d-base) var(--e-out), transform var(--d-slow) var(--e-out), visibility 0s linear var(--d-base); }
.sheet.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.sheet__top { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--pad); box-shadow: inset 0 -1px 0 var(--line); }
.sheet__top img { height: 44px; width: auto; }
.sheet__body { overflow: auto; padding: 1.2rem var(--pad) 2rem; display: grid; gap: 1.4rem; align-content: start; }
.sheet__nav { display: grid; }
.sheet__nav a { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; font: 450 1.55rem/1.1 var(--f-display); box-shadow: inset 0 -1px 0 var(--line); }
.sheet__nav a svg { width: 1.2rem; height: 1.2rem; color: var(--ink-3); }
.sheet__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.sheet__foot { display: flex; gap: 0.8rem; align-items: center; justify-content: space-between; padding: 1rem var(--pad) calc(1rem + env(safe-area-inset-bottom)); box-shadow: inset 0 1px 0 var(--line); }

/* ---- a phone's action bar: call, book, find us — always under the thumb ---- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { position: fixed; z-index: 70; left: 0.6rem; right: 0.6rem; bottom: calc(0.6rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 0.4rem; padding: 0.4rem;
    border-radius: 22px; background: rgba(11, 57, 54, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    transform: translateY(150%); transition: transform var(--d-slow) var(--e-out); }
  .dock.is-on { transform: none; }
  .dock a { display: grid; justify-items: center; gap: 0.25rem; padding: 0.55rem 0.2rem; border-radius: 16px; color: #e4f2ef; font: 650 0.74rem/1 var(--f-body); }
  .dock a .icon { width: 1.3rem; height: 1.3rem; }
  .dock .dock__main { background: var(--teal); color: var(--white); }
  .dock .dock__er { color: #ffb4b2; }
  .site-foot { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* ---- footer ---- */
.site-foot { background: var(--teal-900); color: rgba(232, 244, 241, 0.84); padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0 2rem; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 2.4rem clamp(1.5rem, 1rem + 2vw, 3.5rem); }
.foot__brand { display: grid; gap: 1.1rem; align-content: start; }
.foot__brand img { width: 10.5rem; height: auto; padding: 0.7rem 0.95rem; border-radius: 18px; background: var(--white); box-sizing: content-box; }
.foot__brand p { font: 400 1.35rem/1.3 var(--f-display); color: var(--white); max-width: 18rem; }
.foot__col h3 { margin-bottom: 1rem; font: 700 0.72rem/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(232, 244, 241, 0.68); }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.foot__col a { transition: color var(--d-fast); }
.foot__col a:hover { color: var(--white); }
.foot__contact { display: grid; gap: 0.75rem; }
.foot__contact a { display: flex; gap: 0.7rem; align-items: flex-start; }
.foot__contact a > span { display: block; }
.foot__contact a:hover { color: var(--white); }
.foot__contact .icon { margin-top: 0.2rem; color: #7fd3c8; }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: 1.5rem; box-shadow: inset 0 1px 0 rgba(232, 244, 241, 0.12); font-size: 0.86rem; color: rgba(232, 244, 241, 0.55); }
.foot__bottom nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot__bottom a:hover { color: var(--white); }
@media (max-width: 960px) { .foot__top { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot__top { grid-template-columns: 1fr; } }

/* ---- the departments menu's side panel: what it says by default, and the department under the pointer ---- */
.mega__default, .mega__card { display: grid; gap: 0.8rem; align-content: start; }
.mega__sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega__card .h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega__default[hidden], .mega__peek[hidden] { display: none; }
.mega__i { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #8fd6cd; }
.mega__i .icon { width: 1.5rem; height: 1.5rem; }
.mega__peek p:not(.h3) { color: rgba(232, 244, 241, 0.72); font-size: var(--t-small); }
.mega__peek .h3 { font-size: var(--t-h3); color: var(--white); }
.faces--night img { box-shadow: 0 0 0 2.5px var(--teal-900); }
.faces--night span { color: rgba(232, 244, 241, 0.72); }
.mega__acts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mega__list a[data-slug]:hover .di { background: var(--teal-700); color: var(--white); }
.mega__list .di { transition: background var(--d-fast), color var(--d-fast); }
.finder__field .mic { margin-inline-end: 0.2rem; }

/* ---- what the panel puts on the site (js/live.js) ------------------------ */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.annbar { position: relative; z-index: 61; background: var(--teal-900); color: rgba(255, 255, 255, 0.86); font-size: 0.92rem; animation: annbar-in 420ms var(--e-out); }
.annbar.is-out { opacity: 0; transform: translateY(-100%); transition: opacity 300ms, transform 300ms var(--e-out); }
@keyframes annbar-in { from { opacity: 0; transform: translateY(-100%); } }
.annbar__in { display: flex; align-items: center; gap: 0.85rem; min-height: 52px; padding: 0.6rem var(--pad); }
.annbar__i { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #ffd6a0; }
.annbar__i .icon { width: 1rem; height: 1rem; }
.annbar p { flex: 1; min-width: 0; line-height: 1.45; }
.annbar b { color: var(--white); font-weight: 650; margin-inline-end: 0.35rem; }
.annbar .link { color: #9fe6dd; white-space: nowrap; }
.annbar__x { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, 0.7); transition: background var(--d-fast), color var(--d-fast); }
.annbar__x:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.annbar__x .icon { width: 1.05rem; height: 1.05rem; }
@media (max-width: 640px) { .annbar__in { align-items: flex-start; } .annbar .link { display: block; margin-top: 0.2rem; } }
.anns-live { padding-block: calc(var(--section) * 0.42) 0; }
.anns-live__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.anns-live .head { margin-bottom: 1.2rem; }
.annc { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.25rem 1.35rem; border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.annc__i { width: 2.8rem; height: 2.8rem; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--teal-700); }
.annc h3 { font: 400 1.25rem/1.25 var(--f-display); color: var(--ink); }
.annc p { margin-top: 0.35rem; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.annc .link { margin-top: 0.6rem; }
.ophours { display: grid; gap: 0.1rem; }
.ophours__d { display: flex; gap: 0.5rem; justify-content: space-between; max-width: 22rem; }
.ophours__d b { display: inline; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.note-box.note-box--away { margin-block: 1rem; background: var(--red-soft); color: #7a2224; }
.note-box--away a { font-weight: 650; text-decoration: underline; }
.refcard { display: grid; gap: 0.3rem; justify-items: start; margin: 1.4rem 0 1.2rem; padding: 1.2rem 1.4rem; border-radius: var(--r-md); background: var(--mint); }
.refcard small { font: 700 0.72rem/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-700); }
.refcard b { font: 400 clamp(1.8rem, 1.4rem + 1.2vw, 2.3rem)/1.1 var(--f-display); letter-spacing: 0.08em; color: var(--teal-900); direction: ltr; }
.refcard--sm b { font-size: 1.6rem; }
.senderr { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1.1rem; padding: 0.9rem 1.1rem; border-radius: var(--r-md); font-size: 0.92rem; background: #fdf3e4; color: #7a4a0c; }
.senderr .icon { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
.formsent { display: grid; justify-items: start; gap: 0.5rem; padding: 1.6rem 1.5rem; border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); outline: none; }
.formsent__mark { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--teal-700); }
.form .formsent h3 { font: 400 1.6rem/1.2 var(--f-display); margin: 0.2rem 0 0; }
.formsent p { color: var(--ink-2); }
.btn.is-busy { pointer-events: none; opacity: 0.75; }
