/* Site header: brand, navigation, language switcher, compact menu button. */

.website-header {
  background: #fff;
  border-bottom: 1px solid #f1f5f3;
}
.website-header-inner {
  min-height: 110px;
  width: min(1360px, calc(100% - 64px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
}
.website-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}
.website-brand img {
  width: 72px;
  height: 76px;
  object-fit: contain;
}
.website-brand strong {
  display: block;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.website-brand small {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
}
.website-header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.website-header nav a {
  font-size: 14px;
  white-space: nowrap;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
}
.website-header nav a.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 700;
}
.website-nav-logout {
  margin: 0;
}
.website-header .website-nav-logout button {
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  padding: 14px 0;
}
.website-account {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
}
.website-account > button {
  background: none;
  border: 0;
  padding: 5px 0;
  font-size: 12px;
}
.website-account .selected {
  color: var(--green);
  font-weight: 700;
}
.website-account .website-button {
  font-size: 12px;
  padding: 10px 18px;
  margin-inline-start: 8px;
}
/* The hamburger. Hidden until the breakpoint in responsive.css asks for it;
   the bars inherit currentColor so the dark header themes get a white icon
   without redrawing them. */
.website-menu {
  display: none;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.website-menu-bars,
.website-menu-bars::before,
.website-menu-bars::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.website-menu-bars::before,
.website-menu-bars::after {
  content: '';
  position: absolute;
}
.website-menu-bars {
  position: relative;
}
.website-menu-bars::before {
  transform: translateY(-6px);
}
.website-menu-bars::after {
  transform: translateY(6px);
}
/* Open: the outer bars meet in the middle and cross, the middle one goes. */
.website-menu[aria-expanded='true'] .website-menu-bars {
  opacity: 0;
}
.website-menu[aria-expanded='true'] .website-menu-bars::before {
  opacity: 1;
  transform: rotate(45deg);
}
.website-menu[aria-expanded='true'] .website-menu-bars::after {
  opacity: 1;
  transform: rotate(-45deg);
}
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 30px; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { background: #f1f5f9; }
.account-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #eaf0ff; color: #174bb9; font-weight: 700; }
.account-name { max-width: 115px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.account-dropdown { position: absolute; inset-inline-end: 0; top: calc(100% + 12px); width: min(280px, calc(100vw - 32px)); padding: 8px; background: #fff; color: #172033; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 14px 40px #0f172a1f; z-index: 100; white-space: normal; }
.account-identity { display: grid; gap: 4px; padding: 12px; margin-bottom: 6px; border-bottom: 1px solid #e2e8f0; overflow-wrap: anywhere; }
.account-identity span { color: #64748b; font-size: 12px; }
.account-dropdown a, .account-dropdown button { display: block; width: 100%; box-sizing: border-box; padding: 12px; border: 0; border-radius: 7px; background: transparent; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.account-dropdown a:hover, .account-dropdown a[aria-current], .account-dropdown button:hover { background: #f1f5f9; }
.account-dropdown form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid #e2e8f0; }
.account-dropdown button { color: #b42318; }
@media (max-width: 1100px) { .account-name { display: none; } }
