/* Keep the next session beside the status and the reception hours separate. */
.today-status > div:last-child { min-width: 0; }
.today-status #today-detail { margin-top: 3px; line-height: 1.6; }
.today-status #today-reception-current { margin-top: 4px; font-size: 12px; }
.today-status .today-reception { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; }
.today-reception span, .floating-reception span { display: inline-block; }
.today-floating { position: fixed; right: max(110px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40; display: none; align-items: center; gap: 18px; max-width: min(620px, calc(100vw - 134px)); padding: 12px 16px; border: 1px solid #c9ddd0; border-radius: 12px; background: #fff; color: #284c39; box-shadow: 0 4px 18px #244b3522; text-decoration: none; font-size: 12px; line-height: 1.6; }
.today-floating.visible { display: flex; }
.floating-status { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.floating-status strong { font-size: 14px; }
.floating-status small { color: #536a5c; font-size: 12px; }
.floating-reception { display: flex; flex-direction: column; flex-shrink: 0; padding-left: 16px; border-left: 1px solid #dce9df; font-size: 12px; }
.today-floating.closed { border-color: #dfd7d1; color: #66564b; }
.today-floating:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }
.mobile-clinic-status { display: none; }
@media (max-width: 820px) {
  .today-floating, .today-floating.visible { display: none; }
  .site-header { color-scheme: only light; background: #fff; }
  .site-header .header-inner, .site-header.is-scrolled .header-inner {
    width: min(680px, calc(100% - 24px)); min-height: 76px; gap: 8px;
  }
  .site-header .brand { flex: 1 1 160px; min-width: 0; }
  .site-header .brand picture { display: block; width: 160px; max-width: 100%; }
  .site-header .brand-logo { width: 160px; max-width: 100%; mix-blend-mode: normal; }
  .site-header .mobile-clinic-status {
    display: flex; flex: 0 0 145px; flex-direction: column; justify-content: center;
    align-items: center; gap: 3px; min-width: 0; min-height: 50px; padding: 6px 5px;
    border: 1.5px solid #427b54; border-radius: 5px; background: #fff; color: #153b25;
    text-align: center; letter-spacing: 0; font-family: var(--sans);
  }
  .mobile-clinic-status strong {
    display: flex; align-items: center; gap: 5px; margin: 0; font-size: 14px;
    line-height: 1.35; font-weight: 700; white-space: nowrap;
    color: #153b25; -webkit-text-fill-color: #153b25;
  }
  .mobile-clinic-status small {
    display: block; margin: 0; font-size: 12px; line-height: 1.4; font-weight: 600;
    white-space: nowrap; font-variant-numeric: tabular-nums;
    color: #1c3024; -webkit-text-fill-color: #1c3024;
  }
  .mobile-clinic-status[data-state="open"] strong::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: #153b25;
  }
  .site-header .mobile-clinic-status:is([data-state="closed"], [data-state="ended"]) {
    background: #fffaf8; border-color: #9c5641;
  }
  .mobile-clinic-status:is([data-state="closed"], [data-state="ended"]) strong {
    color: #692e1d; -webkit-text-fill-color: #692e1d;
  }
  .site-header .mobile-clinic-status:is([data-state="next"], [data-state="unknown"], [data-state="loading"]) {
    border-color: #68776c;
  }
  .site-header .menu-button {
    position: relative; flex: 0 0 32px; width: 32px; height: 44px; margin: 0; padding: 4px;
  }
  .site-header .menu-button::after { content: ""; position: absolute; inset: 0 -6px; }
  .site-header .global-nav { top: 76px; max-height: calc(100dvh - 76px); }
}
@media (max-width: 350px) {
  .site-header .header-inner, .site-header.is-scrolled .header-inner { width: calc(100% - 16px); }
  .site-header .mobile-clinic-status { flex-basis: 140px; }
}
@media print { .today-floating, .mobile-clinic-status { display: none !important; } }

/* Approved larger header logo; let long status messages retain enough space. */
.site-header .brand-logo { width: 280px; }
@media (max-width: 1080px) and (min-width: 821px) {
  .site-header .brand-logo { width: 258px; }
}
@media (max-width: 820px) {
  .site-header .header-inner, .site-header.is-scrolled .header-inner {
    width: min(680px, calc(100% - 20px)); gap: 6px;
  }
  .site-header .brand { flex-basis: 192px; }
  .site-header .brand picture, .site-header .brand-logo { width: 192px; max-width: 100%; }
  .site-header .mobile-clinic-status { flex-basis: 132px; min-width: max-content; }
}
@media (max-width: 350px) {
  .site-header .header-inner, .site-header.is-scrolled .header-inner { width: calc(100% - 16px); }
  .site-header .mobile-clinic-status { flex-basis: 128px; }
}
