/* Loaded after styles.css so the shared shell stays consistent on every page. */
@media (min-width: 721px) {
  .topbar .topnav {
    gap: clamp(14px, 1.55vw, 24px);
  }

  .topbar .topnav > a {
    color: #285448;
    font-weight: 450;
    letter-spacing: 0;
  }

  .topbar .topnav > .topnav-service {
    font-weight: 450;
    letter-spacing: .012em;
  }
}

.settings-menu {
  position: relative;
  flex: 0 0 auto;
}

.profile-avatar {
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.navigation-profile-trigger img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-session-profile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 0 !important;
}

.account-body .account-session > .account-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
  justify-content: flex-start;
}

.account-session-copy {
  display: grid;
  gap: 9px;
}

.account-session-copy > span {
  color: #50745f;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .1em;
}

.profile-avatar-editor {
  position: relative;
  flex: 0 0 auto;
}

.profile-avatar-large {
  width: 78px;
  height: 78px;
  padding: 0;
  border: 4px solid rgba(255, 255, 252, .92);
  color: #fff !important;
  font-size: 1.7rem;
  box-shadow: 0 0 0 1px rgba(40, 84, 72, .16), 0 16px 34px rgba(31, 68, 55, .14);
  cursor: pointer;
}

.profile-avatar-pencil {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 3px solid #f5f4f0;
  border-radius: 50%;
  background: #fff;
  color: #285448;
  box-shadow: 0 5px 14px rgba(31, 68, 55, .18);
  cursor: pointer;
}

.profile-avatar-pencil svg,
.profile-avatar-menu svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-avatar-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 12px);
  right: 0;
  width: max-content;
  min-width: 218px;
  padding: 6px;
  border: 1px solid rgba(40, 84, 72, .14);
  border-radius: 14px;
  background: #fffffc;
  box-shadow: 0 18px 42px rgba(31, 68, 55, .16);
}

.profile-avatar-menu button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #28483d;
  font: 550 .88rem "Manrope", sans-serif;
  cursor: pointer;
}

.profile-avatar-menu button:hover {
  background: #edf5e8;
}

.settings-menu-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(40, 84, 72, .14);
  border-radius: 50%;
  background: rgba(255, 255, 252, .72);
  color: #285448;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.settings-menu-button.has-account-avatar {
  overflow: hidden;
  border-color: rgba(40, 84, 72, .18);
  color: #fff !important;
  font: 750 .82rem "Outfit", sans-serif;
  text-transform: uppercase;
  box-shadow: 0 4px 13px rgba(31, 68, 55, .13);
}

.settings-menu-button.has-account-avatar:hover,
.settings-menu.is-open .settings-menu-button.has-account-avatar {
  filter: brightness(.96);
}

.settings-menu-button.has-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.settings-menu-button:hover,
.settings-menu.is-open .settings-menu-button {
  border-color: rgba(40, 84, 72, .3);
  background: #e8f3df;
}

.settings-menu-button:focus-visible {
  outline: 3px solid rgba(80, 116, 95, .2);
  outline-offset: 3px;
}

.settings-menu-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  transform-origin: center;
  transition: transform 180ms ease;
}

.settings-menu.is-open .settings-menu-button .navigation-profile-placeholder {
  transform: none;
}

.settings-menu-panel {
  position: absolute;
  z-index: 45;
  top: calc(100% + 11px);
  right: 0;
  display: none;
  width: 220px;
  padding: 7px;
  border: 1px solid rgba(40, 84, 72, .14);
  border-radius: 15px;
  background: rgba(255, 255, 252, .98);
  box-shadow: 0 18px 46px rgba(31, 68, 55, .14);
}

.settings-menu.is-open .settings-menu-panel {
  display: grid;
}

.topbar .settings-menu-panel > a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 11px;
  border-radius: 9px;
  color: #28483d;
  font-size: .9rem;
  font-weight: 450;
  text-decoration: none;
}

.topbar .settings-menu-panel > a:hover,
.topbar .settings-menu-panel > a[aria-current="page"] {
  background: #edf5e8;
  color: #183c32;
  text-decoration: none;
}

.settings-language-slot {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(40, 84, 72, .1);
}

.settings-language-slot .language-switcher,
.settings-language-slot .language-switcher-button {
  width: 100%;
}

.settings-language-slot .language-switcher-button {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 11px;
  border-radius: 9px;
  color: #28483d;
  font-size: .9rem;
  font-weight: 450;
  text-align: left;
}

.settings-language-slot .language-switcher-button:hover {
  background: #edf5e8;
}

.settings-language-slot .language-switcher-menu {
  top: calc(100% + 8px);
  right: 0;
}

.account-body .account-panel {
  padding: clamp(24px, 3.3vw, 42px);
  border: 1px solid rgba(40, 84, 72, .1);
  border-radius: 22px;
  background: rgba(255, 255, 252, .9);
  box-shadow: 0 22px 60px rgba(31, 68, 55, .09);
  backdrop-filter: blur(16px);
}

.account-body .account-panel::before {
  display: none;
}

.account-body .account-panel-heading {
  margin-bottom: 22px;
  padding: 0;
  border-bottom: 0;
}

.account-body .account-panel-heading h2 {
  font-size: 1.65rem;
  font-weight: 650;
}

.account-auth-tabs {
  display: flex;
  gap: 22px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(40, 84, 72, .12);
}

.account-auth-tabs button {
  position: relative;
  padding: 0 0 11px;
  border: 0;
  background: transparent;
  color: #7a827e;
  font: 600 .9rem "Manrope", sans-serif;
  cursor: pointer;
}

.account-auth-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #285448;
  content: "";
  opacity: 0;
}

.account-auth-tabs button.is-active {
  color: #183c32;
}

.account-auth-tabs button.is-active::after {
  opacity: 1;
}

.account-body .account-forms {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 480px;
}

/* Both tabs share one footprint, so switching cannot resize the background. */
.account-body .account-forms > .account-form {
  grid-area: 1 / 1;
  align-self: start;
}

.account-body .account-forms > .account-form[hidden] {
  display: grid !important;
  visibility: hidden;
  pointer-events: none;
}

.account-body .account-forms[hidden] {
  display: none !important;
}

.account-body .account-session {
  gap: 18px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-body .account-session h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
}

.account-body .account-session > span {
  color: #50745f;
  font-weight: 650;
}

.account-body .account-session > div {
  margin-top: 0;
}

.account-body .account-session .button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  box-shadow: none;
  font-weight: 600;
}

.account-body .account-session-actions .button.primary {
  border-color: #285448;
  background: #285448;
  color: #fff;
}

.account-body .account-session-actions .button.secondary {
  border-color: transparent;
  background: transparent;
  color: #285448;
}

.account-body .account-session-actions .button.danger {
  margin-left: 0;
  border-color: transparent;
  background: transparent;
  color: #a24a3d;
}

.account-body .account-form,
.account-body .account-form:first-child {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-body .account-form:first-child {
  border-right: 0;
}
@media (max-width: 720px) {
  .topbar {
    z-index: 60;
  }

  .topbar .brand {
    padding-left: 0;
  }

  .topbar .topnav {
    gap: 2px;
    z-index: 55;
  }

  .topbar .settings-menu-button {
    display: flex;
    width: 100%;
    height: 44px;
    justify-content: flex-start;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
  }

  .settings-menu.is-open .settings-menu-button {
    transform: none;
  }

  .settings-menu-panel {
    position: static;
    width: 100%;
    margin-top: 2px;
    padding: 4px 4px 4px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .settings-language-slot .language-switcher-menu {
    position: static;
    width: 100%;
    max-height: 220px;
    margin-top: 4px;
    box-shadow: none;
  }
}

@media (max-width: 620px) {
  .account-session-profile {
    align-items: center;
  }

  .profile-avatar-large {
    width: 70px;
    height: 70px;
  }
  .account-body .account-panel {
    padding: 22px;
    border: 1px solid rgba(40, 84, 72, .1);
    border-radius: 17px;
  }

  .account-body .account-panel::before {
    display: none;
  }

  .account-body .account-form,
  .account-body .account-form:first-child {
    padding: 0;
    border-right: 0;
    border-bottom: 0;
  }
}

/* Keep the account background free of decorative shapes. */
.account-body .account-intro::before,
.account-body .account-intro::after,
.account-body.account-has-active-session .account-main::before,
.account-body.account-has-active-session .account-main::after {
  content: none;
}

/* Authentication and profile panels share the page surface. */
.account-body .account-main .account-panel {
  border: 0;
  border-left: 1px solid rgba(40, 84, 72, .18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.account-body:not(.account-has-active-session) .account-main {
  position: relative;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-body:not(.account-has-active-session) .account-intro {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-body {
  overflow-x: clip;
}

.account-body .page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0;
}
.account-body .page-shell > .topbar { flex-shrink: 0; }
.account-surface {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}
.account-surface > .account-main { flex: 1 0 auto; }
.account-surface .site-footer {
  flex-shrink: 0;
  position: relative;
  z-index: 7;
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  background: transparent;
}

.account-body .account-main,
.account-body:not(.account-has-active-session) .account-main {
  position: relative;
  overflow: visible;
}

.account-visual-collage {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  overflow: hidden;
  opacity: .78;
  pointer-events: none;
}

.account-visual-collage::after {
  position: absolute;
  inset: 0;
  z-index: 6;
  background:
    linear-gradient(90deg, rgba(245, 244, 240, .57) 0%, rgba(245, 244, 240, .5) 39%, rgba(245, 244, 240, .88) 59%, rgba(245, 244, 240, .94) 100%),
    linear-gradient(180deg, rgba(245, 244, 240, .7) 0%, transparent 34%, transparent 70%, rgba(245, 244, 240, .55) 100%);
  content: "";
}

.account-visual-collage img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.68) contrast(.92) brightness(1.04);
}

.account-visual-collage img:nth-child(1) { inset: 0; z-index: 1; width: 100%; height: 100%; }
.account-visual-collage img:nth-child(n+2) {
  -webkit-mask-image: radial-gradient(ellipse at center, #000 24%, rgba(0, 0, 0, .92) 39%, transparent 73%);
  mask-image: radial-gradient(ellipse at center, #000 24%, rgba(0, 0, 0, .92) 39%, transparent 73%);
}
.account-visual-collage img:nth-child(2) { top: -19%; right: -8%; z-index: 2; width: 64%; height: 68%; transform: rotate(4deg); }
.account-visual-collage img:nth-child(3) { top: 20%; left: 12%; z-index: 4; width: 62%; height: 68%; transform: rotate(-2deg); }
.account-visual-collage img:nth-child(4) { bottom: -24%; left: -15%; z-index: 3; width: 62%; height: 72%; transform: rotate(5deg); }
.account-visual-collage img:nth-child(5) { right: -9%; bottom: -24%; z-index: 5; width: 65%; height: 72%; transform: rotate(-4deg); }

.account-body .account-main > .account-intro,
.account-body .account-main > .account-panel {
  position: relative;
  z-index: 7;
}

.account-body .account-intro > h1,
.account-body .account-intro > p {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .account-body:not(.account-has-active-session) .account-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .account-body:not(.account-has-active-session) .account-panel {
    border-left: 0;
    border-top: 1px solid rgba(40, 84, 72, .18);
  }

  .account-body .account-intro {
    min-height: 430px;
  }

  .account-visual-collage {
    opacity: .7;
  }

  .account-visual-collage::after {
    background: linear-gradient(180deg, rgba(245, 244, 240, .62), rgba(245, 244, 240, .34) 42%, rgba(245, 244, 240, .88) 73%);
  }

  .account-visual-collage img:nth-child(2) { right: -20%; width: 77%; }
  .account-visual-collage img:nth-child(3) { top: 25%; left: 6%; width: 83%; }
  .account-visual-collage img:nth-child(4) { width: 76%; }
  .account-visual-collage img:nth-child(5) { right: -20%; width: 79%; }
}

@media (max-width: 620px) {
  .account-body .account-main .account-panel {
    border-left: 0;
    border-top: 1px solid rgba(40, 84, 72, .18);
  }

  .account-body .account-intro {
    min-height: 390px;
  }

  .account-visual-collage {
    opacity: .62;
  }

}

.password-input-control {
  position: relative;
  display: block;
}

.account-body .account-form .password-input-control input {
  padding-right: 48px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #50745f;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  background: #edf5e8;
  color: #183c32;
}

.password-visibility-toggle:focus-visible {
  outline: 2px solid rgba(80, 116, 95, .28);
  outline-offset: 1px;
}

.password-visibility-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.password-eye-off,
.password-visibility-toggle.is-visible .password-eye {
  display: none;
}

.password-visibility-toggle.is-visible .password-eye-off {
  display: block;
}
