/*
 * Shared current BIOS header for legacy self-contained pages.
 * Values mirror the header on index.html (site.css + mature-system.css).
 */
body[data-page="patients"].concept-life [data-site-header] {
  position: sticky;
  z-index: 1000;
  top: 0;
}

body[data-page="patients"].concept-life .site-header {
  position: relative;
  border-bottom: 1px solid rgba(17, 17, 20, .055);
  background: rgba(255, 255, 255, .76);
  box-shadow: none;
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
}

body[data-page="patients"].concept-life .site-header.is-scrolled {
  border-bottom-color: rgba(17, 17, 20, .08);
  box-shadow: 0 8px 28px rgba(20, 32, 56, .05);
}

body[data-page="patients"].concept-life .header-inner {
  grid-template-columns: auto 1fr auto;
  min-height: 68px;
  gap: 30px;
}

body[data-page="patients"].concept-life .site-header .brand {
  position: static;
  display: inline-flex;
  width: auto;
  height: auto;
  align-items: center;
  gap: 9px;
  overflow: visible;
}

body[data-page="patients"].concept-life .site-header .brand img.brand-lockup {
  position: static;
  width: 112px;
  height: auto;
  max-width: 112px;
  object-fit: contain;
}

body[data-page="patients"].concept-life .main-nav {
  justify-content: center;
  gap: clamp(18px, 2vw, 30px);
}

body[data-page="patients"].concept-life .main-nav > a {
  padding: 24px 0 22px;
  color: #3f3f44;
  font-size: 13px;
  font-weight: 500;
}

body[data-page="patients"].concept-life .main-nav > a::after {
  bottom: 14px;
  height: 1px;
  background: #101114;
}

body[data-page="patients"].concept-life .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-page="patients"].concept-life .language-switcher {
  position: relative;
  flex: 0 0 auto;
}

body[data-page="patients"].concept-life .language-switcher summary {
  display: flex;
  min-width: 56px;
  min-height: 42px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(18, 28, 55, .11);
  border-radius: 999px;
  color: #586273;
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .06em;
  list-style: none;
}

body[data-page="patients"].concept-life .language-switcher summary::-webkit-details-marker { display: none; }

body[data-page="patients"].concept-life .language-switcher summary::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

body[data-page="patients"].concept-life .language-switcher-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 72px;
  padding: 6px;
  border: 1px solid rgba(215, 223, 233, .94);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(31, 48, 80, .12);
}

body[data-page="patients"].concept-life .language-switcher-menu button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: #8a93a1;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .06em;
  text-align: left;
}

body[data-page="patients"].concept-life .language-switcher-menu button.is-current {
  color: #0071e3;
  background: #edf6ff;
}

body[data-page="patients"].concept-life .header-actions .btn-primary {
  min-height: 40px;
  padding-inline: 17px;
  border-color: #0071e3;
  border-radius: 999px;
  color: #fff;
  background: #0071e3;
  box-shadow: none;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: -.01em;
}

body[data-page="patients"].concept-life .header-actions .btn-primary:hover {
  background: #0077ed;
  box-shadow: none;
  transform: none;
}

body[data-page="patients"].concept-life .main-nav-languages { display: none; }

@media (max-width: 860px) {
  body[data-page="patients"].concept-life .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }

  body[data-page="patients"].concept-life .header-actions { display: none; }

  body[data-page="patients"].concept-life .main-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    align-items: stretch;
    padding: 18px;
    border-top: 1px solid rgba(18, 28, 55, .11);
    background: #fff;
    box-shadow: 0 24px 40px rgba(24, 36, 65, .10);
  }

  body[data-page="patients"].concept-life .main-nav.is-open { display: grid; }
  body[data-page="patients"].concept-life .main-nav > a { padding: 12px 10px; font-size: 16px; }
  body[data-page="patients"].concept-life .main-nav > a::after { display: none; }

  body[data-page="patients"].concept-life .main-nav-languages {
    display: flex;
    gap: 7px;
    margin-top: 8px;
    padding: 16px 10px 4px;
    border-top: 1px solid rgba(18, 28, 55, .11);
  }
}
