/* Shared by the Vue search pages and the server-rendered clinic profile. */
:root { --portal-header-height: 69px; }
.portal-header {
  --portal-primary: #7367f0;
  --portal-ink: #2f2b3d;
  --portal-tint: #eeecfd;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e7e6f0;
  background: #fff;
  color: var(--portal-ink);
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.portal-header .portal-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 24px;
  box-sizing: border-box;
}
.portal-header .portal-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  color: var(--portal-ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .25px;
  text-decoration: none;
}
.portal-header__brand img { display: block; width: 36px; height: 36px; border-radius: 8px; }
.portal-header__nav { display: flex; align-items: center; gap: 8px; }
.portal-header__nav { margin-inline-start: auto; }
.portal-header .portal-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--portal-primary);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.portal-locale { position: relative; }
.portal-locale__toggle { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding-inline: 10px; border: 0; border-radius: 6px; color: var(--portal-ink); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; box-sizing: border-box; }
.portal-locale__toggle::-webkit-details-marker { display: none; }
.portal-locale__toggle:hover, .portal-locale[open] > .portal-locale__toggle { background: var(--portal-tint); }
.portal-locale__flag { display: block; flex-shrink: 0; width: 22px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(47, 43, 61, .12); }
.portal-locale__code { text-transform: uppercase; }
.portal-locale__chevron, .portal-locale__check { flex-shrink: 0; }
.portal-locale__list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 1; min-width: 196px; padding: 6px; border: 1px solid rgba(115, 103, 240, .12); border-radius: 6px; background: #fff; box-shadow: 0 4px 18px rgba(47, 43, 61, .14); box-sizing: border-box; }
.portal-header .portal-locale__option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--portal-ink); font: inherit; text-align: start; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.portal-header .portal-locale__option[aria-current], .portal-header .portal-locale__option[aria-pressed="true"] { background: var(--portal-tint); color: var(--portal-primary); }
.portal-locale__check { margin-inline-start: auto; }
.portal-header .portal-header__account { flex-shrink: 0; }
.portal-header .portal-header__patient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  min-height: 44px;
  padding: 2px 4px 2px 12px;
  border-radius: 24px;
  color: var(--portal-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.portal-header__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-header__avatar { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--portal-tint); color: var(--portal-primary); }
.portal-header__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portal-header a:hover, .portal-header button:hover { background-color: var(--portal-tint); text-decoration: none; }
.portal-header :is(a, button, summary):focus-visible { outline: 3px solid var(--portal-primary); outline-offset: 3px; }
.portal-header [hidden] { display: none !important; }
@media (max-width: 959px) {
  :root { --portal-header-height: 113px; }
  .portal-header .portal-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 12px 16px 8px; }
  .portal-header .portal-header__brand { gap: 8px; font-size: 20px; }
  .portal-header__nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; margin: 0; }
  .portal-header .portal-header__account { grid-column: 2; grid-row: 1; }
  .portal-header .portal-header__patient { max-width: 160px; padding-inline-start: 4px; }
  .portal-header__avatar { width: 36px; height: 36px; }
  .portal-header .portal-header__link { padding-inline: 8px; font-size: 14px; }
}
@media (max-width: 599px) {
  .portal-locale__toggle { padding-inline: 6px; }
  .portal-locale__code { display: none; }
}
@media (max-width: 359px) {
  .portal-header .portal-header__patient { max-width: 128px; }
}
