/* Header, brand, navigation, submenu, and account-nav controls. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(218, 223, 216, 0.92);
  backdrop-filter: blur(18px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--green), var(--blue));
  content: "";
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 1.35vw, 18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: 48px;
  object-fit: contain;
  background: transparent;
  border: 0;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.03rem;
  font-weight: 950;
}

.brand small {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1 1 auto;
}

.nav-edit-item {
  position: relative;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-submenu-edit-item {
  position: relative;
  min-width: 0;
  width: max-content;
  min-width: 100%;
  display: grid;
}

.nav-edit-item > a,
.nav-edit-item > .nav-group {
  min-width: 0;
}

.nav-links a,
.nav-group > summary {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 11px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-group > summary:hover,
.nav-group > summary:focus-visible {
  color: var(--navy);
  background: rgba(223, 244, 241, 0.72);
  border-color: rgba(13, 111, 167, 0.16);
  outline: none;
}

.nav-group {
  position: relative;
}

.nav-group[open] > summary,
.nav-group:hover > summary,
.nav-group:focus-within > summary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(13, 111, 167, 0.18);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.nav-group > summary {
  list-style: none;
  cursor: pointer;
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 60;
  min-width: 238px;
  display: none;
  gap: 4px;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 246, 0.94)) padding-box,
    linear-gradient(135deg, rgba(200, 63, 61, 0.55), rgba(201, 151, 53, 0.45), rgba(47, 109, 85, 0.5), rgba(13, 111, 167, 0.55)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 22px 52px rgba(16, 38, 61, 0.16);
  backdrop-filter: blur(18px);
}

.nav-submenu::before {
  position: absolute;
  top: 0;
  right: 10px;
  left: 10px;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--green), var(--blue));
  border-radius: 2px;
  content: "";
}

.nav-group[open] .nav-submenu,
.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
  display: grid;
}

.nav-submenu a {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  white-space: nowrap;
  background: transparent;
}

.nav-submenu a::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: rgba(13, 111, 167, 0.28);
  border-radius: 50%;
  content: "";
  transition: background 160ms ease, transform 160ms ease;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: rgba(223, 244, 241, 0.68);
  border-color: rgba(13, 111, 167, 0.12);
  transform: translateX(2px);
}

.nav-submenu a:hover::before,
.nav-submenu a:focus-visible::before {
  background: var(--coral);
  transform: scale(1.25);
}

.nav-toggle {
  display: none;
}

.account-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 11px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.account-button:hover,
.account-button:focus-visible {
  color: var(--navy);
  background: rgba(223, 244, 241, 0.72);
  border-color: rgba(13, 111, 167, 0.16);
  outline: none;
}

.account-nav-sign-out {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 9px 12px;
  color: var(--coral-dark);
  background: rgba(255, 241, 235, 0.74);
  border: 1px solid rgba(200, 63, 61, 0.2);
  border-radius: var(--radius);
  box-shadow: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.account-nav-sign-out:hover,
.account-nav-sign-out:focus-visible {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
  outline: none;
  transform: translateY(-1px);
}

.account-nav-sign-out[hidden] {
  display: none;
}

.account-nav-sign-out:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.account-button-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  color: currentColor;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(13, 111, 167, 0.14);
}

.account-profile-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-button.is-signed-in .account-profile-icon {
  display: none;
}

.account-button-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
