:root {
  --wm-height: 72px;
  --wm-ink: #172033;
  --wm-muted: #637083;
  --wm-plum: #4a2e6f;
  --wm-plum-dark: #35204f;
  --wm-gold: #c79b34;
  --wm-gold-soft: #f5ead0;
  --wm-surface: rgba(255, 255, 255, 0.97);
  --wm-line: #e7e9ef;
  --wm-shadow: 0 16px 44px rgba(25, 31, 45, 0.16);
}

html {
  scroll-padding-top: calc(var(--wm-height) + 18px);
}

body.website-manager-active {
  padding-top: var(--wm-height) !important;
  overflow-x: hidden;
}

body.website-manager-active.wm-appraisal {
  padding-top: calc(var(--wm-height) + var(--topbar, 46px)) !important;
}

body.website-manager-active header.site#hd,
body.website-manager-active > nav#nav {
  display: none !important;
}

body.website-manager-active.wm-appraisal .top-bar {
  top: var(--wm-height) !important;
}

body.website-manager-active.wm-appraisal .sidebar {
  top: calc(var(--wm-height) + var(--topbar, 46px)) !important;
  height: calc(100vh - var(--wm-height) - var(--topbar, 46px)) !important;
  max-height: calc(100vh - var(--wm-height) - var(--topbar, 46px)) !important;
}

.wm-skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 2147483647;
  transform: translateY(-160%);
  border-radius: 10px;
  background: #ffffff;
  color: var(--wm-plum-dark);
  padding: 10px 14px;
  font: 700 14px/1.2 Inter, system-ui, sans-serif;
  box-shadow: var(--wm-shadow);
}

.wm-skip-link:focus {
  transform: translateY(0);
}

#website-manager {
  box-sizing: border-box;
  position: fixed;
  inset: 0 0 auto;
  z-index: 2147483000;
  height: var(--wm-height);
  border-bottom: 1px solid var(--wm-line);
  background: var(--wm-surface);
  color: var(--wm-ink);
  font-family: Inter, Mulish, Arial, sans-serif;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 5px 20px rgba(25, 31, 45, 0.07);
  transition: transform 260ms ease, opacity 220ms ease;
}

body.website-manager-active.wm-appraisal-auto-hide,
body.website-manager-active.wm-appraisal-auto-hide .top-bar,
body.website-manager-active.wm-appraisal-auto-hide .sidebar {
  transition: padding-top 260ms ease, top 260ms ease, height 260ms ease, max-height 260ms ease;
}

body.website-manager-active.wm-appraisal-auto-hide.wm-nav-hidden {
  padding-top: var(--topbar, 46px) !important;
}

body.website-manager-active.wm-appraisal-auto-hide.wm-nav-hidden #website-manager {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-1 * var(--wm-height)));
}

body.website-manager-active.wm-appraisal-auto-hide.wm-nav-hidden .top-bar {
  top: 0 !important;
}

body.website-manager-active.wm-appraisal-auto-hide.wm-nav-hidden .sidebar {
  top: var(--topbar, 46px) !important;
  height: calc(100vh - var(--topbar, 46px)) !important;
  max-height: calc(100vh - var(--topbar, 46px)) !important;
}

#website-manager *,
#website-manager *::before,
#website-manager *::after {
  box-sizing: border-box;
}

.wm-bar {
  width: min(100% - 32px, 1380px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.wm-brand {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wm-ink) !important;
  text-decoration: none !important;
}

.wm-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 155, 52, 0.65);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, var(--wm-gold-soft));
  color: var(--wm-plum);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 800;
}

.wm-brand-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.wm-brand-copy strong {
  color: var(--wm-ink);
  font-size: 14px;
  line-height: 1.15;
  white-space: nowrap;
}

.wm-brand-copy small {
  max-width: 175px;
  overflow: hidden;
  color: var(--wm-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.wm-nav > a,
.wm-dropdown > button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #3f4859 !important;
  padding: 0 11px;
  font: 700 13px/1 Inter, system-ui, sans-serif;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.wm-nav > a:hover,
.wm-nav > a:focus-visible,
.wm-dropdown > button:hover,
.wm-dropdown > button:focus-visible,
.wm-dropdown.is-open > button {
  background: #f4f1f8;
  color: var(--wm-plum) !important;
  outline: none;
}

.wm-nav > a[aria-current="page"],
.wm-dropdown > button[data-group-active="true"] {
  background: rgba(74, 46, 111, 0.035);
  color: #465064 !important;
  outline: none;
}

.wm-nav > a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 rgba(199, 155, 52, 0.38);
}

.wm-dropdown {
  position: relative;
}

.wm-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.wm-dropdown.is-open > button > .wm-chevron,
.wm-subfolder.is-open > .wm-subfolder-toggle > .wm-chevron {
  transform: translateY(2px) rotate(225deg);
}

.wm-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 28px));
  max-height: calc(100vh - var(--wm-height) - 22px);
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--wm-line);
  border-radius: 16px;
  background: #ffffff;
  padding: 7px;
  box-shadow: var(--wm-shadow);
}

.wm-dropdown.is-open .wm-menu {
  display: grid;
  animation: wm-menu-in 150ms ease-out;
}

@keyframes wm-menu-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.wm-menu a {
  display: grid;
  gap: 3px;
  border-radius: 11px;
  padding: 11px 12px;
  color: var(--wm-ink) !important;
  text-decoration: none !important;
}

.wm-menu a:hover,
.wm-menu a:focus-visible {
  background: #f6f3f8;
  outline: none;
}

.wm-menu a[aria-current="page"] {
  background: rgba(74, 46, 111, 0.025);
  box-shadow: inset 2px 0 0 rgba(199, 155, 52, 0.34);
}

.wm-menu a strong {
  color: inherit;
  font-size: 13px;
  line-height: 1.25;
}

.wm-menu a span {
  color: var(--wm-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.wm-subfolder {
  margin-top: 4px;
  border-top: 1px solid #ece8f1;
  padding-top: 4px;
}

.wm-subfolder-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: #faf9fc;
  color: var(--wm-plum);
  padding: 9px 12px;
  font: 750 12px/1.2 Inter, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.wm-subfolder-toggle:hover,
.wm-subfolder-toggle:focus-visible {
  background: #f1edf5;
  outline: none;
}

.wm-subfolder.has-current > .wm-subfolder-toggle {
  background: rgba(74, 46, 111, 0.035);
  color: #5b4b6f;
}

.wm-submenu {
  display: none;
  margin: 3px 0 4px 9px;
  border-left: 2px solid var(--wm-gold-soft);
  padding-left: 7px;
}

.wm-subfolder.is-open > .wm-submenu {
  display: grid;
}

.wm-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--wm-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--wm-plum);
  cursor: pointer;
}

.wm-menu-toggle span,
.wm-menu-toggle::before,
.wm-menu-toggle::after {
  width: 19px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: 170ms ease;
}

.wm-menu-toggle span {
  margin-block: 4px;
}

.wm-menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.wm-menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.wm-menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.wm-contact {
  margin-left: 4px;
  background: var(--wm-plum) !important;
  color: #ffffff !important;
  padding-inline: 15px !important;
}

.wm-contact:hover,
.wm-contact:focus-visible {
  background: var(--wm-plum-dark) !important;
  color: #ffffff !important;
}

.wm-back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482000;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 155, 52, 0.48);
  border-radius: 50%;
  background: var(--wm-plum);
  color: #ffffff;
  font: 800 20px/1 Inter, sans-serif;
  box-shadow: 0 9px 24px rgba(53, 32, 79, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 160ms ease;
}

.wm-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wm-back-top:focus-visible {
  outline: 3px solid var(--wm-gold-soft);
  outline-offset: 3px;
}


/* Shared legal/privacy footer links. These are intentionally separate from
   the primary navigation so reserved pages never appear in the menu. */
.wm-footer-links {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(127, 127, 127, 0.24);
  font-family: Inter, Mulish, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.wm-footer-links a {
  color: inherit !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-decoration-color: rgba(199, 155, 52, 0.75) !important;
  text-underline-offset: 3px;
}

.wm-footer-links a:hover,
.wm-footer-links a:focus-visible,
.wm-footer-links a[aria-current="page"] {
  color: var(--wm-gold) !important;
  outline: none;
}

.wm-site-footer {
  border-top: 1px solid var(--wm-line);
  background: #172033;
  color: #ffffff;
  padding: 22px 16px;
  text-align: center;
}

.wm-site-footer__inner {
  width: min(100%, 1180px);
  margin-inline: auto;
}

@media (max-width: 1280px) {
  .wm-bar { gap: 12px; }
  .wm-brand { min-width: 178px; }
  .wm-nav > a,
  .wm-dropdown > button { padding-inline: 9px; }
}

@media (max-width: 1180px) {
  .wm-menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .wm-nav {
    position: fixed;
    inset: var(--wm-height) 0 auto;
    max-height: calc(100vh - var(--wm-height));
    display: none;
    overflow-y: auto;
    border-bottom: 1px solid var(--wm-line);
    background: #ffffff;
    padding: 12px 16px 20px;
    box-shadow: var(--wm-shadow);
  }

  .wm-nav.is-open {
    display: grid;
    align-items: stretch;
    justify-content: stretch;
    gap: 5px;
  }

  .wm-nav > a,
  .wm-dropdown > button {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    border-radius: 10px;
    padding-inline: 13px;
    font-size: 14px;
  }

  .wm-dropdown {
    width: 100%;
  }

  .wm-menu {
    position: static;
    width: auto;
    margin: 2px 0 6px 14px;
    border: 0;
    border-left: 2px solid var(--wm-gold-soft);
    border-radius: 0;
    padding: 3px 0 3px 9px;
    box-shadow: none;
  }

  .wm-dropdown.is-open .wm-menu {
    animation: none;
  }
}

@media (max-width: 560px) {
  :root { --wm-height: 66px; }
  .wm-bar { width: calc(100% - 22px); }
  .wm-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; }
  .wm-brand-copy strong { font-size: 13px; }
  .wm-brand-copy small { max-width: 150px; font-size: 10px; }
  .wm-menu-toggle { width: 42px; height: 42px; }
  .wm-back-top { right: 13px; bottom: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  body.website-manager-active.wm-appraisal-auto-hide,
  body.website-manager-active.wm-appraisal-auto-hide .top-bar,
  body.website-manager-active.wm-appraisal-auto-hide .sidebar,
  #website-manager,
  #website-manager *,
  .wm-back-top { animation: none !important; transition: none !important; }
}

@media print {
  #website-manager,
  .wm-skip-link,
  .wm-back-top {
    display: none !important;
  }

  body.website-manager-active,
  body.website-manager-active.wm-appraisal {
    padding-top: 0 !important;
  }
}
