/* Colour palettes + top-right theme dock. Not a second WP theme. */

:root,
html {
  --surface-cream: #f7f1e4;
  --font-body: Lato, Inter, system-ui, sans-serif;
  --font-display: Lato, Inter, system-ui, sans-serif;
}

:root {
  --bg: #f8f5ef;
  --bg-soft: #f0ebe1;
  --bg-sage-wash: #e8ebe0;
  --primary: #6e7f57;
  --primary-dark: #5a6946;
  --gold: #b99a5b;
  --gold-soft: #d4c09a;
  --text: #2c2a26;
  --text-muted: #5c574e;
  --white: #f7f1e4;
  --border: rgba(44, 42, 38, 0.1);
  --shadow: 0 8px 28px rgba(44, 42, 38, 0.06);
  --header-bg: rgba(247, 241, 228, 0.92);
  --on-surface: #2c2a26;
  --hero-bg: #2b1650;
  --hero-text: #f6ead8;
}

/* White dot (legacy id ivory). Not grouped with :root — that alias kept the plum hero. */
html[data-mpfy-palette="white"],
html[data-mpfy-palette="ivory"] {
  --bg: #f7f1e4;
  --bg-soft: #f3efe6;
  --bg-sage-wash: #ebe6da;
  --primary: #6e7f57;
  --primary-dark: #5a6946;
  --gold: #8a6a22;
  --gold-soft: #b99a5b;
  --text: #2c2a26;
  --text-muted: #5c574e;
  --white: #ffffff;
  --border: rgba(44, 42, 38, 0.12);
  --shadow: 0 8px 28px rgba(44, 42, 38, 0.06);
  --header-bg: #ffffff;
  --on-surface: #2c2a26;
  --hero-bg: #ffffff;
  --hero-text: #2c2a26;
}

html[data-mpfy-palette="sage"] {
  --bg: #eef1e6;
  --bg-soft: #e4ead8;
  --bg-sage-wash: #dce4d0;
  --primary: #6e7f57;
  --primary-dark: #5a6946;
  --gold: #b99a5b;
  --gold-soft: #d4c09a;
  --text: #2c2a26;
  --text-muted: #5c574e;
  --white: #f7f1e4;
  --border: rgba(44, 42, 38, 0.1);
  --shadow: 0 8px 28px rgba(44, 42, 38, 0.06);
  --header-bg: rgba(247, 241, 228, 0.95);
  --on-surface: #2c2a26;
  --hero-bg: #3d4a32;
  --hero-text: #f4f1e8;
}

html[data-mpfy-palette="plum"],
html[data-mpfy-skin="purple"] {
  --bg: #f7f1e4;
  --bg-soft: #efe6d4;
  --bg-sage-wash: #eadfc8;
  --primary: #c9a14a;
  --primary-dark: #9b6b2a;
  --gold: #d4af37;
  --gold-soft: #e8cf7a;
  --text: #2a1840;
  --text-muted: #5c4a68;
  --white: #f7f1e4;
  --border: rgba(42, 24, 64, 0.12);
  --shadow: 0 8px 28px rgba(42, 24, 64, 0.1);
  --header-bg: rgba(247, 241, 228, 0.96);
  --on-surface: #2a1840;
  --hero-bg: #3b185f;
  --hero-text: #f7f1e4;
}

html[data-mpfy-palette="gold"] {
  --bg: #f8f1e0;
  --bg-soft: #efe3c8;
  --bg-sage-wash: #ead9b0;
  --primary: #c9a14a;
  --primary-dark: #8a6a22;
  --gold: #d4af37;
  --gold-soft: #e8cf7a;
  --text: #3a2a10;
  --text-muted: #6b5a38;
  --white: #f7f1e4;
  --border: rgba(58, 42, 16, 0.12);
  --shadow: 0 8px 28px rgba(58, 42, 16, 0.1);
  --header-bg: rgba(248, 241, 224, 0.96);
  --on-surface: #3a2a10;
  --hero-bg: #5c4318;
  --hero-text: #f8f1e0;
}

html[data-mpfy-palette="sand"] {
  --bg: #f4ebe0;
  --bg-soft: #eadfd0;
  --bg-sage-wash: #e2d4c2;
  --primary: #8b6b4a;
  --primary-dark: #6b5344;
  --gold: #c4a574;
  --gold-soft: #ddc8a4;
  --text: #3a2c22;
  --text-muted: #6b5a4c;
  --white: #f7f1e4;
  --border: rgba(58, 44, 34, 0.12);
  --shadow: 0 8px 28px rgba(58, 44, 34, 0.08);
  --header-bg: rgba(244, 235, 224, 0.96);
  --on-surface: #3a2c22;
  --hero-bg: #6b5344;
  --hero-text: #f4ebe0;
}

html[data-mpfy-palette="rose"] {
  --bg: #f7ecee;
  --bg-soft: #eedfe3;
  --bg-sage-wash: #e6d4d8;
  --primary: #a85c6e;
  --primary-dark: #7a3d4c;
  --gold: #c9a14a;
  --gold-soft: #e0c878;
  --text: #3a1e26;
  --text-muted: #6b4a52;
  --white: #f7f1e4;
  --border: rgba(58, 30, 38, 0.12);
  --shadow: 0 8px 28px rgba(58, 30, 38, 0.08);
  --header-bg: rgba(247, 236, 238, 0.96);
  --on-surface: #3a1e26;
  --hero-bg: #5c2a3a;
  --hero-text: #f7ecee;
}

html[data-mpfy-palette="midnight"] {
  --bg: #eef0f5;
  --bg-soft: #e2e6ef;
  --bg-sage-wash: #d5dbe8;
  --primary: #3d4f7a;
  --primary-dark: #243056;
  --gold: #c9b37a;
  --gold-soft: #ddd0a8;
  --text: #12182b;
  --text-muted: #4a5568;
  --white: #f7f1e4;
  --border: rgba(18, 24, 43, 0.12);
  --shadow: 0 8px 28px rgba(18, 24, 43, 0.1);
  --header-bg: rgba(238, 240, 245, 0.96);
  --on-surface: #12182b;
  --hero-bg: #12182b;
  --hero-text: #eef0f5;
}

html[data-mpfy-palette="terracotta"] {
  --bg: #f6eee6;
  --bg-soft: #eadfd4;
  --bg-sage-wash: #e2d2c4;
  --primary: #b85c38;
  --primary-dark: #8a3e24;
  --gold: #d4a574;
  --gold-soft: #e6c8a0;
  --text: #3a2218;
  --text-muted: #6b4e42;
  --white: #f7f1e4;
  --border: rgba(58, 34, 24, 0.12);
  --shadow: 0 8px 28px rgba(58, 34, 24, 0.08);
  --header-bg: rgba(246, 238, 230, 0.96);
  --on-surface: #3a2218;
  --hero-bg: #6b2e1f;
  --hero-text: #f6eee6;
}

html[data-mpfy-palette="teal"] {
  --bg: #e8f0ee;
  --bg-soft: #d8e6e2;
  --bg-sage-wash: #c8dbd6;
  --primary: #3d7a72;
  --primary-dark: #1a3d3a;
  --gold: #c4a574;
  --gold-soft: #ddc8a4;
  --text: #16302e;
  --text-muted: #4a6460;
  --white: #f7f1e4;
  --border: rgba(22, 48, 46, 0.12);
  --shadow: 0 8px 28px rgba(22, 48, 46, 0.08);
  --header-bg: rgba(232, 240, 238, 0.96);
  --on-surface: #16302e;
  --hero-bg: #1a3d3a;
  --hero-text: #e8f0ee;
}

/* M035 Black. Near-black chrome, cream page. Not the plum/purple tokens. */
html[data-mpfy-palette="black"] {
  --bg: #f6f1e8;
  --bg-soft: #efe8dc;
  --bg-sage-wash: #e8dfd0;
  --primary: #c9a14a;
  --primary-dark: #8a6a22;
  --gold: #d4af37;
  --gold-soft: #e8cf7a;
  --text: #1a1612;
  --text-muted: #5c574e;
  --white: #fffaf0;
  --border: rgba(10, 10, 10, 0.12);
  --shadow: 0 8px 28px rgba(10, 10, 10, 0.12);
  --header-bg: #111111;
  --on-surface: #1a1612;
  --hero-bg: #0a0a0a;
  --hero-text: #f6ead8;
}

html {
  scroll-padding-top: 5.5rem;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  overflow: visible;
}

.site-header .nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-height: 4.25rem;
  gap: 1rem;
  padding-right: 9rem;
}

.site-header .logo {
  background: transparent;
}

.mpfy-logo-spin {
  display: block;
  width: min(15rem, 46vw);
  height: 4.25rem;
  min-height: 4.25rem;
}

.mpfy-logo-spin__card {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 4.25rem;
}

.site-header .mpfy-logo-spin .mpfy-logo-spin__face {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  opacity: 1;
  transform-origin: center center;
  z-index: 2;
  animation: mpfy-logo-front 5s linear infinite;
}

.site-header .mpfy-logo-spin .mpfy-logo-spin__face--back {
  opacity: 0;
  transform-origin: center center;
  z-index: 1;
  animation-name: mpfy-logo-back;
}

@keyframes mpfy-logo-front {
  0%, 40% { opacity: 0; visibility: hidden; transform: translateX(0) scale(1); }
  46% { opacity: 0; visibility: visible; transform: translateX(0) scale(1); }
  50%, 90% { opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
  96% { opacity: 0; visibility: visible; transform: translateX(0) scale(1); }
  100% { opacity: 0; visibility: hidden; transform: translateX(0) scale(1); }
}

@keyframes mpfy-logo-back {
  0%, 40% { opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
  50% { opacity: 0; visibility: visible; transform: translateX(0) scale(1); }
  54%, 88% { opacity: 0; visibility: hidden; transform: translateX(0) scale(1); }
  94% { opacity: 0; visibility: visible; transform: translateX(0) scale(1); }
  100% { opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .mpfy-logo-spin .mpfy-logo-spin__face,
  .site-header .mpfy-logo-spin .mpfy-logo-spin__face--back {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .site-header .mpfy-logo-spin .mpfy-logo-spin__face--back {
    opacity: 0;
  }
}

.site-header .nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  color: var(--on-surface);
}

.site-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.site-header .nav-menu > li {
  list-style: none;
  position: relative;
}

.site-header .nav-menu a,
.site-header .nav-toggle,
.site-header .user-chip__name {
  color: var(--on-surface);
}

.site-header .nav-search-wrap,
.site-header .nav-menu .nav-approvals,
.site-header .nav-menu .nav-auth {
  margin-left: auto;
}

.site-header .nav-menu .nav-approvals {
  position: relative;
}

.site-header .nav-search-wrap + .nav-approvals,
.site-header .nav-search-wrap + .nav-auth,
.site-header .nav-menu .nav-approvals + .nav-auth,
.site-header .nav-menu .nav-auth + .nav-auth {
  margin-left: 0;
}

.site-header .nav-search-wrap {
  list-style: none;
  position: relative;
  flex: 0 1 15rem;
  min-width: 10.5rem;
  max-width: 16.5rem;
}

.site-header .site-search-compact {
  position: relative;
}

.site-header .site-search {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: stretch;
}

.site-header .site-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--on-surface);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.38rem 0.75rem;
}

.site-header .site-search .btn {
  flex-shrink: 0;
  padding: 0.38rem 0.7rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.site-header .site-search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
  width: min(22rem, 80vw);
  z-index: 55;
  display: grid;
  gap: 0.55rem;
  max-height: min(70vh, 28rem);
  overflow: auto;
}

.site-header .site-search-results[hidden] {
  display: none !important;
}

.site-header .site-search-results:not([hidden]) {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.65rem;
}

.site-header .has-dropdown {
  position: relative;
}

.site-header .nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white, #f7f1e4);
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 220;
  pointer-events: auto;
  overflow: hidden;
}

.site-header .nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.site-header .nav-menu > li > a,
.site-header .nav-em__link {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-header .has-dropdown:hover > .nav-dropdown,
.site-header .has-dropdown:focus-within > .nav-dropdown,
.site-header .has-dropdown.is-open > .nav-dropdown {
  display: block;
}

.site-header .nav-dropdown .has-dropdown > .nav-dropdown {
  top: 0;
  left: 100%;
  z-index: 221;
}

.site-header .nav-dropdown .has-dropdown > .nav-dropdown::before {
  top: 0;
  bottom: 0;
  left: -12px;
  right: auto;
  width: 12px;
  height: auto;
}

.site-header .nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: var(--text, #333);
  white-space: nowrap;
  font-family: var(--font-body, sans-serif);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  text-align: left;
}

.site-header .nav-dropdown > li {
  border-bottom: 1px solid #eaeaea;
}

.site-header .nav-dropdown > li:last-child {
  border-bottom: none;
}

.site-header .nav-dropdown > li + li {
  margin-top: 0;
  border-top: none;
}

.site-header .nav-dropdown a:hover,
.site-header .nav-dropdown a:focus {
  background: #f4f5f4;
  color: var(--text, #111);
}

.site-header .user-chip__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--on-surface);
}

.site-header .user-chip__avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.site-header .user-chip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-header .user-chip-wrap {
  flex-shrink: 0;
  position: relative;
}

.site-header .user-chip__name {
  font-size: 0.68rem;
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header .nav-dropdown.user-chip__menu,
.site-header .user-chip__menu {
  left: auto;
  right: 0;
  min-width: 0;
  width: max-content;
  text-align: right;
}

.site-header .user-chip__menu a {
  text-align: right;
}

.user-chip__meta {
  list-style: none;
  padding: 0.35rem 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border, rgba(44, 42, 38, 0.12));
  margin-bottom: 0.15rem;
  pointer-events: none;
}

.user-chip__meta-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text, #2c2a26);
}

.user-chip__meta-email {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted, #5c574e);
  word-break: break-all;
}

.entry-content .arm_logout_form_container,
.entry-content .arm-logged-in-as,
.entry-content .arm_profile_detail_wrapper {
  display: none !important;
}

body.page-healing .mpfy-connect-guide-card,
body.page-counselling .mpfy-connect-guide-card,
body.page-past-life .mpfy-connect-guide-card {
  max-width: min(100%, 28rem);
  box-sizing: border-box;
}

body.page-healing .mpfy-connect-guide-copy,
body.page-counselling .mpfy-connect-guide-copy,
body.page-past-life .mpfy-connect-guide-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
}

body.page-healing .mpfy-connect-guide-copy p,
body.page-counselling .mpfy-connect-guide-copy p,
body.page-past-life .mpfy-connect-guide-copy p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

body.mpfy-look-redesign .site-header,
.rd-page .site-header {
  background: var(--hero-bg);
  border-bottom: 1px solid rgba(247, 241, 228, 0.16);
}

body.mpfy-look-redesign .site-header .nav-menu > li > a,
body.mpfy-look-redesign .site-header .nav-em__link,
body.mpfy-look-redesign .site-header .nav-toggle,
body.mpfy-look-redesign .site-header .user-chip__toggle,
body.mpfy-look-redesign .site-header .user-chip__name,
.rd-page .site-header .nav-menu > li > a,
.rd-page .site-header .nav-em__link,
.rd-page .site-header .nav-toggle,
.rd-page .site-header .user-chip__toggle,
.rd-page .site-header .user-chip__name {
  color: var(--hero-text);
}

body.mpfy-look-redesign .site-header .nav-dropdown a,
.rd-page .site-header .nav-dropdown a {
  color: var(--text, #333);
  background: var(--white, #f7f1e4);
}

body.mpfy-look-redesign .site-header .nav-dropdown a:hover,
body.mpfy-look-redesign .site-header .nav-dropdown a:focus,
.rd-page .site-header .nav-dropdown a:hover,
.rd-page .site-header .nav-dropdown a:focus {
  color: var(--text, #111);
  background: #f4f5f4;
}

body.mpfy-look-redesign .site-header .nav-dropdown > li,
.rd-page .site-header .nav-dropdown > li {
  border-bottom-color: #eaeaea;
}

.mpfy-theme-dock {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  z-index: 230;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.mpfy-theme-dock__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--on-surface);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.mpfy-theme-dock__toggle:hover,
.mpfy-theme-dock__toggle:focus-visible,
.mpfy-theme-dock.is-open .mpfy-theme-dock__toggle {
  background: var(--bg-soft);
  border-color: var(--gold);
  transform: scale(1.05);
}

.mpfy-theme-dock__toggle svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.mpfy-theme-dock__panel {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--white, #f7f1e4);
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mpfy-theme-dock.is-open .mpfy-theme-dock__panel,
.mpfy-theme-dock:hover .mpfy-theme-dock__panel,
.mpfy-theme-dock:focus-within .mpfy-theme-dock__panel {
  display: flex;
}

.mpfy-look-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--on-surface);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mpfy-look-link:hover,
.mpfy-look-link:focus-visible {
  background: var(--bg-soft);
  border-color: var(--gold);
  color: var(--primary-dark);
}

.mpfy-dock-switches {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.mpfy-glass-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--on-surface);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.mpfy-glass-toggle:hover,
.mpfy-glass-toggle:focus-visible {
  background: var(--bg-soft);
  border-color: var(--gold);
  color: var(--primary-dark);
}

.mpfy-glass-toggle[aria-pressed="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.mpfy-palette {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
}

.mpfy-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 1px solid rgba(44, 42, 38, 0.2);
  padding: 0;
  cursor: pointer;
  background: #f8f5ef;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mpfy-swatch:hover,
.mpfy-swatch:focus-visible {
  transform: scale(1.15);
}

.mpfy-swatch--white,
.mpfy-swatch--ivory { background: #ffffff; }
.mpfy-swatch--sage { background: #6e7f57; }
.mpfy-swatch--plum { background: #3b185f; }
.mpfy-swatch--gold { background: #d4af37; }
.mpfy-swatch--sand { background: #c4a574; }
.mpfy-swatch--rose { background: #a85c6e; }
.mpfy-swatch--midnight { background: #12182b; }
.mpfy-swatch--terracotta { background: #b85c38; }
.mpfy-swatch--teal { background: #3d7a72; }
.mpfy-swatch--black { background: #111111; border-color: rgba(255, 250, 240, 0.45); }

.mpfy-swatch[aria-checked="true"] {
  box-shadow: 0 0 0 1.5px var(--white), 0 0 0 3px var(--gold);
  border-color: transparent;
}

.profile-card,
.card,
.detail-panel,
.auth-modal__dialog,
.site-search-results {
  color: var(--on-surface);
}

@media (max-width: 900px) {
  .site-header .nav-toggle {
    display: inline-flex;
  }

  .site-header .nav-menu {
    display: none;
  }

  .site-header.is-open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    position: absolute;
    left: 0;
    right: 0;
    top: 4.25rem;
    max-height: calc(100vh - 4.25rem);
    max-height: calc(100dvh - 4.25rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--hero-bg);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(247, 241, 228, 0.16);
  }

  body.mpfy-look-redesign .site-header.is-open .nav-menu,
  .rd-page .site-header.is-open .nav-menu {
    background: var(--hero-bg);
    border-bottom-color: rgba(247, 241, 228, 0.16);
  }

  .site-header.is-open .nav-menu > li > a,
  .site-header.is-open .nav-menu .nav-em__link,
  .site-header.is-open .nav-menu a.mpfy-approvals-toggle,
  .site-header.is-open .nav-menu .nav-auth a,
  .site-header.is-open .nav-menu .user-chip__name,
  .site-header.is-open .nav-menu .user-chip__toggle,
  body.mpfy-look-redesign .site-header.is-open .nav-menu > li > a,
  body.mpfy-look-redesign .site-header.is-open .nav-menu .nav-em__link,
  .rd-page .site-header.is-open .nav-menu > li > a,
  .rd-page .site-header.is-open .nav-menu .nav-em__link {
    color: var(--hero-text, #f7f1e4);
  }

  .site-header.is-open .nav-menu > li > a:hover,
  .site-header.is-open .nav-menu > li > a:focus,
  .site-header.is-open .nav-menu .nav-em__link:hover,
  .site-header.is-open .nav-menu .nav-em__link:focus,
  .site-header.is-open .nav-menu a.mpfy-approvals-toggle:hover,
  .site-header.is-open .nav-menu a.mpfy-approvals-toggle:focus,
  .site-header.is-open .nav-menu .nav-auth a:hover,
  .site-header.is-open .nav-menu .nav-auth a:focus {
    color: var(--hero-text, #f7f1e4);
    opacity: 0.88;
  }

  .site-header .nav-dropdown {
    position: static;
    width: auto;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0.15rem 0 0 0.75rem;
  }

  .site-header .nav-dropdown > li {
    border-bottom: none;
  }

  .site-header.is-open .nav-dropdown > li {
    border-bottom: 1px solid rgba(247, 241, 228, 0.14);
  }

  .site-header.is-open .nav-dropdown > li:last-child {
    border-bottom: none;
  }

  .site-header .nav-dropdown a,
  body.mpfy-look-redesign .site-header .nav-dropdown a,
  .rd-page .site-header .nav-dropdown a {
    background: transparent;
    padding: 0.14rem 0;
  }

  .site-header.is-open .nav-dropdown a,
  body.mpfy-look-redesign .site-header.is-open .nav-dropdown a,
  .rd-page .site-header.is-open .nav-dropdown a {
    color: var(--hero-text, #f7f1e4);
    background: transparent;
  }

  .site-header.is-open .nav-dropdown a:hover,
  .site-header.is-open .nav-dropdown a:focus,
  body.mpfy-look-redesign .site-header.is-open .nav-dropdown a:hover,
  body.mpfy-look-redesign .site-header.is-open .nav-dropdown a:focus,
  .rd-page .site-header.is-open .nav-dropdown a:hover,
  .rd-page .site-header.is-open .nav-dropdown a:focus {
    color: var(--hero-text, #f7f1e4);
    background: rgba(247, 241, 228, 0.1);
  }

  .site-header .nav-dropdown::before,
  .site-header .nav-dropdown .has-dropdown > .nav-dropdown::before {
    display: none;
  }

  .site-header .nav-bar {
    padding-right: 5.5rem;
  }

  .site-header .nav-search-wrap,
  .site-header .nav-menu .nav-approvals,
  .site-header .nav-menu .nav-auth {
    margin-left: 0;
  }

  .site-header .nav-search-wrap {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }

  .site-header .nav-menu .nav-approvals {
    position: static;
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
  }

  .site-header .nav-menu .nav-approvals .mpfy-approvals {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
  }

  /* M080: grow with the drawer; list scrolls when items exceed leftover viewport. */
  .site-header.is-open .mpfy-approvals-panel {
    max-height: none;
    overflow: visible;
    box-sizing: border-box;
  }

  .site-header.is-open .mpfy-approvals-list {
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .mpfy-theme-dock {
    right: 0.4rem;
    top: 0.4rem;
  }

  .mpfy-theme-dock__panel {
    right: 0;
  }
}

.mpfy-approvals {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
  z-index: 210;
  width: min(22.5rem, calc(100vw - 2rem));
  pointer-events: none;
}

.mpfy-approvals.is-open {
  pointer-events: auto;
}

.site-header .nav-menu a.mpfy-approvals-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  color: var(--on-surface);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  cursor: pointer;
}

.mpfy-approvals-toggle__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.mpfy-approvals-panel {
  margin: 0.35rem 0 0;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--white, #f7f1e4);
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #333333;
  font-family: var(--font-body, Lato, system-ui, sans-serif);
  pointer-events: auto;
}

.mpfy-approvals-panel[hidden] {
  display: none;
}

.mpfy-approvals-heading {
  margin: 0 0 0.55rem;
  font-family: var(--font-display, Lato, system-ui, sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #3b185f;
}

.mpfy-approvals-note,
.mpfy-approvals-empty {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #5c574e;
}

.mpfy-approvals-note--ok {
  color: #3b185f;
}

.mpfy-approvals-note--err {
  color: #8a2a2a;
}

.mpfy-approvals-flash {
  margin: 0 0 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  background: #f4f5f4;
  border: 1px solid #eaeaea;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #333333;
  pointer-events: auto;
}

.mpfy-approvals-flash--ok {
  background: #f7f1e4;
  border-color: rgba(212, 175, 55, 0.45);
  color: #3b185f;
}

.mpfy-approvals-flash--err {
  background: #fff5f5;
  border-color: rgba(138, 42, 42, 0.25);
  color: #8a2a2a;
}

.mpfy-approvals-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.45rem;
  background: rgba(59, 24, 95, 0.035);
  border: 1px solid rgba(234, 234, 234, 0.85);
  border-radius: 4px;
}

.mpfy-approvals-bulk__select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5c574e;
  cursor: pointer;
}

.mpfy-approvals-bulk__select-all input {
  width: 0.82rem;
  height: 0.82rem;
  margin: 0;
  accent-color: #3b185f;
}

.mpfy-approvals-bulk-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  margin-left: auto;
}

.mpfy-approvals-bulk-btn {
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.mpfy-approvals-bulk-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mpfy-approvals-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mpfy-approvals-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #eaeaea;
  margin: 0 -0.5rem;
}

.mpfy-approvals-item__check {
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
  cursor: pointer;
}

.mpfy-approvals-item__checkbox {
  width: 0.82rem;
  height: 0.82rem;
  margin: 0;
  accent-color: #3b185f;
}

.mpfy-approvals-list--solo .mpfy-approvals-item {
  gap: 0;
}

.mpfy-approvals-item--solo {
  padding-left: 0.25rem;
}

.mpfy-approvals-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mpfy-approvals-item:last-child {
  border-bottom: none;
}

.mpfy-approvals-item:first-child {
  padding-top: 0.75rem;
}

.mpfy-approvals-item:hover {
  background: #f4f5f4;
}

.mpfy-approvals-item__title {
  display: block;
  font-weight: 700;
  color: #333333;
  text-decoration: none;
}

a.mpfy-approvals-item__text {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

a.mpfy-approvals-item__text:hover .mpfy-approvals-item__title,
a.mpfy-approvals-item__text:focus-visible .mpfy-approvals-item__title {
  color: #111111;
}

.mpfy-approvals-item__by,
.mpfy-approvals-item__kind {
  display: block;
  font-size: 0.8rem;
  color: #5c574e;
}

.mpfy-approvals-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mpfy-approvals-btn {
  appearance: none;
  cursor: pointer;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-body, Lato, system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.mpfy-approvals-btn--ok {
  border: 1px solid #d4af37;
  background: #3b185f;
  color: #f7f1e4;
}

.mpfy-approvals-btn--ok:hover,
.mpfy-approvals-btn--ok:focus-visible {
  background: #2a1146;
}

.mpfy-approvals-btn--no {
  border: 1px solid rgba(59, 24, 95, 0.28);
  background: transparent;
  color: #3b185f;
}

.mpfy-approvals-btn--no:hover,
.mpfy-approvals-btn--no:focus-visible {
  background: rgba(59, 24, 95, 0.08);
}

@media (max-width: 780px) {
  .site-header:not(.is-open) .mpfy-approvals {
    right: 0;
    left: auto;
    width: min(22.5rem, calc(100vw - 1rem));
  }
}

.mpfy-approval-review {
  width: min(36rem, 100% - 2rem);
  margin: 0.5rem auto 0;
  padding: 1.15rem 1.25rem 1.35rem;
  background: #f7f1e4;
  border: 1px solid rgba(59, 24, 95, 0.14);
  border-radius: 12px;
}

.mpfy-approval-review__kind {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: #5c574e;
}

.mpfy-approval-review__dl {
  margin: 0;
}

.mpfy-approval-review__dl > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(59, 24, 95, 0.08);
}

.mpfy-approval-review__dl > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.mpfy-approval-review__dl dt {
  margin: 0;
  font-size: 0.8rem;
  color: #5c574e;
}

.mpfy-approval-review__dl dd {
  margin: 0;
  font-weight: 600;
}

.mpfy-approval-review__actions {
  margin: 1rem 0 0;
}

.mpfy-approval-review__back {
  margin: 1rem 0 0;
}

.mpfy-approval-review__err {
  color: #8a2a2a;
}

.mpfy-pw-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.live-form .mpfy-pw-wrap input,
.mpfy-pw-wrap input {
  width: 100%;
  margin-top: 0;
  padding-right: 2.5rem;
  box-sizing: border-box;
}

.mpfy-pw-toggle {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold, #b99a5b);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  line-height: 0;
}

.mpfy-pw-toggle:hover,
.mpfy-pw-toggle:focus-visible {
  color: var(--primary-dark, #3b185f);
  outline: 2px solid var(--gold, #b99a5b);
  outline-offset: 1px;
}

.mpfy-pw-wrap input::-ms-reveal,
.mpfy-pw-wrap input::-ms-clear {
  display: none;
}

.mpfy-pw-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.mpfy-pw-toggle__strike {
  opacity: 0;
}

.mpfy-pw-toggle[aria-pressed="true"] .mpfy-pw-toggle__strike {
  opacity: 1;
}

.live-form {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: left;
}

.live-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.live-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.live-form-grid label {
  margin-bottom: 0;
}

.live-form input,
.live-form textarea,
.live-form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  box-sizing: border-box;
}

.live-form input:focus,
.live-form textarea:focus,
.live-form select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.live-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.live-form .btn {
  margin-top: 0.25rem;
}

.form-status {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-status.is-ok {
  color: var(--primary-dark);
}

.form-status.is-err {
  color: #8b3a3a;
}

@media (max-width: 720px) {
  .live-form-grid {
    grid-template-columns: 1fr;
  }
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.mpfy-home-editable {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* White palette: cream-on-plum chrome in redesign.css must flip with the light hero. */
html[data-mpfy-palette="white"] body.mpfy-look-redesign .site-header,
html[data-mpfy-palette="white"] .rd-page .site-header,
html[data-mpfy-palette="white"] .rd-hero {
  background: #ffffff;
  color: #2c2a26;
  border-bottom-color: rgba(44, 42, 38, 0.12);
}

html[data-mpfy-palette="white"] .rd-lead,
html[data-mpfy-palette="white"] .rd-join-box p,
html[data-mpfy-palette="white"] .rd-join-box ul,
html[data-mpfy-palette="white"] .rd-join #article-list .rd-article-item span,
html[data-mpfy-palette="white"] .rd-join #article-list .rd-article-item p {
  color: #5c574e;
}

html[data-mpfy-palette="white"] .rd-search input {
  background: #ffffff;
  border: 1px solid rgba(44, 42, 38, 0.18);
}

html[data-mpfy-palette="white"] .btn--primary,
html[data-mpfy-palette="white"] .rd-page .btn--primary {
  background: #b99a5b;
  color: #2c2a26;
}

html[data-mpfy-palette="white"] .rd-intro article,
html[data-mpfy-palette="white"] .rd-page .rd-intro .wpb_column,
html[data-mpfy-palette="white"] .rd-page .rd-intro .vc_column_container,
html[data-mpfy-palette="white"] .rd-page .rd-intro-card,
html[data-mpfy-palette="white"] .rd-join-box,
html[data-mpfy-palette="white"] .rd-join #article-list .rd-article-item {
  background: #f7f1e4;
  border-color: rgba(44, 42, 38, 0.12);
}

html[data-mpfy-palette="white"] .rd-footer {
  background: #f3efe6;
  color: #5c574e;
}

html[data-mpfy-palette="plum"] body.mpfy-look-redesign .site-header,
html[data-mpfy-palette="plum"] .rd-page .site-header,
html[data-mpfy-skin="purple"] body.mpfy-look-redesign .site-header,
html[data-mpfy-skin="purple"] .rd-page .site-header,
html[data-mpfy-palette="plum"] .rd-hero,
html[data-mpfy-skin="purple"] .rd-hero {
  background: #3b185f;
  color: #f7f1e4;
  border-bottom-color: rgba(247, 241, 228, 0.16);
}

html[data-mpfy-palette="black"] body.mpfy-look-redesign .site-header,
html[data-mpfy-palette="black"] .rd-page .site-header,
html[data-mpfy-palette="black"] .site-header,
html[data-mpfy-palette="black"] .rd-hero {
  background: #0a0a0a;
  color: #f6ead8;
  border-bottom-color: rgba(246, 234, 216, 0.16);
}

html[data-mpfy-palette="black"] .site-header .nav-menu > li > a,
html[data-mpfy-palette="black"] .site-header .nav-em__link,
html[data-mpfy-palette="black"] .site-header .nav-toggle,
html[data-mpfy-palette="black"] .site-header .user-chip__toggle,
html[data-mpfy-palette="black"] .site-header .user-chip__name,
html[data-mpfy-palette="black"] .rd-footer {
  color: #f6ead8;
}

/* Optional glass. Inactive unless html[data-mpfy-glass="on"]. Logo spin rules are unchanged. */
.mpfy-header-glass {
  display: none;
}

html[data-mpfy-glass="on"] .mpfy-header-glass {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: rgba(247, 241, 228, 0.72);
  background-color: color-mix(in srgb, var(--header-bg, #f7f1e4) 72%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 24px rgba(42, 24, 64, 0.12);
}

html[data-mpfy-glass="on"][data-mpfy-palette="plum"] .mpfy-header-glass,
html[data-mpfy-glass="on"][data-mpfy-skin="purple"] .mpfy-header-glass {
  background-color: rgba(59, 24, 95, 0.62);
}

html[data-mpfy-glass="on"][data-mpfy-palette="black"] .mpfy-header-glass {
  background-color: rgba(10, 10, 10, 0.62);
}

html[data-mpfy-glass="on"][data-mpfy-palette="white"] .mpfy-header-glass,
html[data-mpfy-glass="on"][data-mpfy-palette="ivory"] .mpfy-header-glass {
  background-color: rgba(255, 255, 255, 0.68);
}

html[data-mpfy-glass="on"] .rd-intro article,
html[data-mpfy-glass="on"] .rd-page .rd-intro-card,
html[data-mpfy-glass="on"] .rd-join,
html[data-mpfy-glass="on"] .rd-join-box,
html[data-mpfy-glass="on"] .rd-join #article-list .rd-article-item {
  background-color: rgba(255, 250, 240, 0.18);
  background-color: color-mix(in srgb, var(--hero-bg, #3b185f) 48%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 10px 28px rgba(20, 12, 32, 0.12);
}

html[data-mpfy-glass="on"] .rd-offer article,
html[data-mpfy-glass="on"] .rd-page .rd-offer-card,
html[data-mpfy-glass="on"] .rd-program,
html[data-mpfy-glass="on"] .rd-quotes blockquote,
html[data-mpfy-glass="on"] .card,
html[data-mpfy-glass="on"] .profile-card,
html[data-mpfy-glass="on"] .detail-panel,
html[data-mpfy-glass="on"] .mpfy-articles-card,
html[data-mpfy-glass="on"] .auth-modal__dialog,
html[data-mpfy-glass="on"] .mpfy-theme-dock__panel {
  background-color: rgba(255, 250, 240, 0.72);
  background-color: color-mix(in srgb, var(--white, #fffaf0) 72%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(42, 24, 64, 0.1);
}

html[data-mpfy-glass="on"] .site-header.is-open .nav-menu,
html[data-mpfy-glass="on"] body.mpfy-look-redesign .site-header.is-open .nav-menu,
html[data-mpfy-glass="on"] .rd-page .site-header.is-open .nav-menu {
  background-color: rgba(59, 24, 95, 0.78);
  background-color: color-mix(in srgb, var(--hero-bg, #3b185f) 78%, transparent);
}

html[data-mpfy-glass="on"] .mpfy-header-glass,
html[data-mpfy-glass="on"] .site-header.is-open .nav-menu,
html[data-mpfy-glass="on"] .rd-intro article,
html[data-mpfy-glass="on"] .rd-page .rd-intro-card,
html[data-mpfy-glass="on"] .rd-offer article,
html[data-mpfy-glass="on"] .rd-page .rd-offer-card,
html[data-mpfy-glass="on"] .rd-program,
html[data-mpfy-glass="on"] .rd-join,
html[data-mpfy-glass="on"] .rd-join-box,
html[data-mpfy-glass="on"] .rd-join #article-list .rd-article-item,
html[data-mpfy-glass="on"] .rd-quotes blockquote,
html[data-mpfy-glass="on"] .card,
html[data-mpfy-glass="on"] .profile-card,
html[data-mpfy-glass="on"] .detail-panel,
html[data-mpfy-glass="on"] .mpfy-articles-card,
html[data-mpfy-glass="on"] .auth-modal__dialog,
html[data-mpfy-glass="on"] .mpfy-theme-dock__panel {
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}

@media (prefers-reduced-transparency: reduce) {
  html[data-mpfy-glass="on"] .mpfy-header-glass,
  html[data-mpfy-glass="on"] .site-header.is-open .nav-menu,
  html[data-mpfy-glass="on"] .rd-intro article,
  html[data-mpfy-glass="on"] .rd-page .rd-intro-card,
  html[data-mpfy-glass="on"] .rd-offer article,
  html[data-mpfy-glass="on"] .rd-page .rd-offer-card,
  html[data-mpfy-glass="on"] .rd-program,
  html[data-mpfy-glass="on"] .rd-join,
  html[data-mpfy-glass="on"] .rd-join-box,
  html[data-mpfy-glass="on"] .rd-join #article-list .rd-article-item,
  html[data-mpfy-glass="on"] .rd-quotes blockquote,
  html[data-mpfy-glass="on"] .card,
  html[data-mpfy-glass="on"] .profile-card,
  html[data-mpfy-glass="on"] .detail-panel,
  html[data-mpfy-glass="on"] .mpfy-articles-card,
  html[data-mpfy-glass="on"] .auth-modal__dialog,
  html[data-mpfy-glass="on"] .mpfy-theme-dock__panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html[data-mpfy-glass="on"] .mpfy-header-glass,
  html[data-mpfy-glass="on"] .site-header.is-open .nav-menu,
  html[data-mpfy-glass="on"] .rd-intro article,
  html[data-mpfy-glass="on"] .rd-page .rd-intro-card,
  html[data-mpfy-glass="on"] .rd-join,
  html[data-mpfy-glass="on"] .rd-join-box,
  html[data-mpfy-glass="on"] .rd-join #article-list .rd-article-item {
    background-color: color-mix(in srgb, var(--hero-bg, #3b185f) 92%, transparent);
  }

  html[data-mpfy-glass="on"] .rd-offer article,
  html[data-mpfy-glass="on"] .rd-page .rd-offer-card,
  html[data-mpfy-glass="on"] .rd-program,
  html[data-mpfy-glass="on"] .rd-quotes blockquote,
  html[data-mpfy-glass="on"] .card,
  html[data-mpfy-glass="on"] .profile-card,
  html[data-mpfy-glass="on"] .detail-panel,
  html[data-mpfy-glass="on"] .mpfy-articles-card,
  html[data-mpfy-glass="on"] .auth-modal__dialog,
  html[data-mpfy-glass="on"] .mpfy-theme-dock__panel {
    background-color: color-mix(in srgb, var(--white, #fffaf0) 92%, transparent);
  }

  html[data-mpfy-glass="on"][data-mpfy-palette="plum"] .mpfy-header-glass,
  html[data-mpfy-glass="on"][data-mpfy-skin="purple"] .mpfy-header-glass {
    background-color: rgba(59, 24, 95, 0.92);
  }

  html[data-mpfy-glass="on"][data-mpfy-palette="black"] .mpfy-header-glass {
    background-color: rgba(10, 10, 10, 0.92);
  }

  html[data-mpfy-glass="on"][data-mpfy-palette="white"] .mpfy-header-glass,
  html[data-mpfy-glass="on"][data-mpfy-palette="ivory"] .mpfy-header-glass {
    background-color: rgba(255, 255, 255, 0.92);
  }
}

html[data-mpfy-glass="on"] .rd-page .rd-intro-card,
html[data-mpfy-glass="on"] .rd-page .rd-intro .wpb_column,
html[data-mpfy-glass="on"] .rd-page .rd-intro .vc_column_container {
  background-color: rgba(255, 250, 240, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.25) !important;
  backdrop-filter: blur(16px) saturate(1.25) !important;
}

html[data-mpfy-glass="on"] .rd-page .rd-offer-card,
html[data-mpfy-glass="on"] .rd-page .rd-offer .wpb_column,
html[data-mpfy-glass="on"] .rd-program,
html[data-mpfy-glass="on"] .rd-quotes blockquote,
html[data-mpfy-glass="on"] .card,
html[data-mpfy-glass="on"] .profile-card,
html[data-mpfy-glass="on"] .detail-panel,
html[data-mpfy-glass="on"] .mpfy-articles-card,
html[data-mpfy-glass="on"] .mpfy-guide-card {
  background-color: rgba(255, 250, 240, 0.58) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.25) !important;
  backdrop-filter: blur(16px) saturate(1.25) !important;
}

@media (prefers-reduced-transparency: reduce) {
  html[data-mpfy-glass="on"] .rd-page .rd-intro-card,
  html[data-mpfy-glass="on"] .rd-page .rd-intro .wpb_column,
  html[data-mpfy-glass="on"] .rd-page .rd-intro .vc_column_container,
  html[data-mpfy-glass="on"] .rd-page .rd-offer-card,
  html[data-mpfy-glass="on"] .rd-page .rd-offer .wpb_column {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html[data-mpfy-glass="on"] .rd-page .rd-intro-card,
  html[data-mpfy-glass="on"] .rd-page .rd-intro .wpb_column,
  html[data-mpfy-glass="on"] .rd-page .rd-intro .vc_column_container {
    background-color: color-mix(in srgb, var(--hero-bg, #3b185f) 92%, transparent) !important;
  }

  html[data-mpfy-glass="on"] .rd-page .rd-offer-card,
  html[data-mpfy-glass="on"] .rd-page .rd-offer .wpb_column {
    background-color: color-mix(in srgb, var(--white, #fffaf0) 92%, transparent) !important;
  }
}

/* Wider glass. Still inactive unless html[data-mpfy-glass="on"]. No layout, type, or logo changes. */
html[data-mpfy-glass="on"] .site-header .nav-dropdown {
  background-color: rgba(255, 250, 240, 0.62) !important;
  background-color: color-mix(in srgb, var(--white, #fffaf0) 62%, transparent) !important;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 10px 28px rgba(42, 24, 64, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

html[data-mpfy-glass="on"] .site-header .nav-dropdown a,
html[data-mpfy-glass="on"] body.mpfy-look-redesign .site-header .nav-dropdown a,
html[data-mpfy-glass="on"] .rd-page .site-header .nav-dropdown a {
  background-color: transparent;
}

html[data-mpfy-glass="on"] .rd-page .newsletter,
html[data-mpfy-glass="on"] .newsletter,
html[data-mpfy-glass="on"] .rd-page #contact,
html[data-mpfy-glass="on"] .rd-page #contact .live-form,
html[data-mpfy-glass="on"] .live-form {
  background-image: none !important;
  background-color: rgba(255, 250, 240, 0.55) !important;
  background-color: color-mix(in srgb, var(--white, #fffaf0) 58%, transparent) !important;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

html[data-mpfy-glass="on"] .newsletter-form input,
html[data-mpfy-glass="on"] .live-form input,
html[data-mpfy-glass="on"] .live-form textarea,
html[data-mpfy-glass="on"] .site-search input[type="search"] {
  background-color: rgba(255, 250, 240, 0.72);
  border-color: rgba(255, 255, 255, 0.55);
}

html[data-mpfy-glass="on"] .mpfy-bank-details {
  background-color: rgba(45, 40, 40, 0.62) !important;
  color: #fffdf9;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

html[data-mpfy-glass="on"] .mpfy-page__content {
  background-color: rgba(255, 250, 240, 0.62);
  background-color: color-mix(in srgb, var(--white, #fffaf0) 68%, transparent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

html[data-mpfy-glass="on"] body.single-cpt_team .mpfy-page__content img.alignright,
html[data-mpfy-glass="on"] body.single-cpt_team .mpfy-page__content img.alignleft {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(42, 24, 64, 0.16);
}

html[data-mpfy-glass="on"] body.single-post .mpfy-page__content .entry-content img,
html[data-mpfy-glass="on"] body.single-post .page-hero,
html[data-mpfy-glass="on"] body.single-cpt_team .page-hero,
html[data-mpfy-glass="on"] body.single-cpt_team .team_member_featured {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 12px 28px rgba(42, 24, 64, 0.14);
}

@media (prefers-reduced-transparency: reduce) {
  html[data-mpfy-glass="on"] .site-header .nav-dropdown,
  html[data-mpfy-glass="on"] .rd-page .newsletter,
  html[data-mpfy-glass="on"] .newsletter,
  html[data-mpfy-glass="on"] .rd-page #contact,
  html[data-mpfy-glass="on"] .rd-page #contact .live-form,
  html[data-mpfy-glass="on"] .live-form,
  html[data-mpfy-glass="on"] .mpfy-bank-details,
  html[data-mpfy-glass="on"] .mpfy-page__content {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html[data-mpfy-glass="on"] .mpfy-bank-details {
    background-color: rgba(45, 40, 40, 0.92) !important;
  }
}

/* Sanctuary glow. Inactive unless html[data-mpfy-glow="on"]. Sits behind the page. */
html[data-mpfy-glow="on"] body {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-mpfy-glow="on"] body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -18%;
  pointer-events: none;
  background-color: var(--bg, #f7f1e4);
  background-image:
    radial-gradient(ellipse 42% 36% at 22% 28%, rgba(212, 175, 55, 0.55), transparent 68%),
    radial-gradient(ellipse 38% 42% at 78% 72%, rgba(185, 154, 91, 0.42), transparent 70%);
  background-repeat: no-repeat;
  background-size: 150% 150%, 150% 150%;
  animation: mpfy-sanctuary-glow 14s ease-in-out infinite;
}

@keyframes mpfy-sanctuary-glow {
  0%, 100% { background-position: 8% 30%, 92% 70%; }
  50% { background-position: 72% 78%, 12% 22%; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-mpfy-glow="on"] body::before {
    animation: none;
    background-position: 24% 40%, 76% 62%;
  }
}

/* Hero search sits on the hero. No frosted slab behind the field and button. */
html[data-mpfy-glass="on"] .rd-search,
html[data-mpfy-glass="on"] .rd-page .rd-search {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Inner pages inherit a 10px root. Keep this bar on the homepage 16px scale. */
@media (min-width: 901px) {
  .site-header .nav-bar,
  .rd-page .site-header .nav-bar {
    min-height: 68px;
    gap: 16px;
    padding-right: 144px;
  }

  .site-header .mpfy-logo-spin,
  .rd-page .site-header .mpfy-logo-spin {
    width: min(240px, 46vw);
    height: 68px;
    min-height: 68px;
  }

  .site-header .mpfy-logo-spin__card,
  .rd-page .site-header .mpfy-logo-spin__card {
    min-height: 68px;
  }

  .site-header .nav-menu,
  .rd-page .site-header .nav-menu {
    gap: 11px;
  }

  .site-header .nav-menu > li > a,
  .site-header .nav-em__link,
  .rd-page .site-header .nav-menu > li > a,
  .rd-page .site-header .nav-em__link {
    font-size: 13px;
  }

  .site-header .user-chip__avatar {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .site-header .user-chip__name {
    font-size: 11px;
    max-width: 88px;
  }
}

/* Cream bands were opaque, so frosted cards only blurred a flat fill.
   Leave the header, the hero, and the search control solid. */
html[data-mpfy-glass="on"] .rd-section--cream,
html[data-mpfy-glass="on"] .rd-page #contact,
html[data-mpfy-glass="on"] .rd-page #newsletter {
  background-color: transparent !important;
  background-image: none !important;
}

html[data-mpfy-glass="on"] .rd-page .mpfy-page__content {
  background-color: rgba(255, 250, 240, 0.62) !important;
  background-image: none !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
  backdrop-filter: blur(14px) saturate(1.15) !important;
}

html[data-mpfy-glass="on"] .mpfy-guide-card__photo,
html[data-mpfy-glass="on"] .mpfy-guide-card__photo img,
html[data-mpfy-glass="on"] .mpfy-guide-profile__photo,
html[data-mpfy-glass="on"] .mpfy-guide-profile__photo img {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/*
 * Connect to guide (#myModal). The guide plugin opens a Bootstrap 3 dialog
 * inside page content. Glass blur on .mpfy-page__content makes that fixed
 * box stick to the page top, and sb-admin (Bootstrap 4) leaves the dialog
 * at pointer-events:none unless .show is present. skin.js moves the open
 * dialog to the body and adds these classes.
 */
.modal.mpfy-connect-dialog {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  opacity: 1 !important;
  z-index: 100050 !important;
  background: transparent !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.modal-open .modal-backdrop {
  z-index: 100040 !important;
}

body.modal-open .modal-backdrop.show,
body.modal-open .modal-backdrop.in {
  opacity: 0.5 !important;
}

.modal.mpfy-connect-dialog .modal-dialog {
  pointer-events: auto !important;
  position: relative !important;
  transform: none !important;
  top: auto !important;
  width: min(40rem, 100%) !important;
  max-width: calc(100vw - 2rem) !important;
  max-height: calc(100dvh - 2rem) !important;
  height: auto !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal.mpfy-connect-dialog .modal-content {
  pointer-events: auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-height: calc(100dvh - 2rem) !important;
  overflow: hidden !important;
}

.modal.mpfy-connect-dialog .modal-header {
  flex-shrink: 0 !important;
}

.modal.mpfy-connect-dialog .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  max-height: none !important;
}

.modal.mpfy-connect-dialog select,
.modal.mpfy-connect-dialog button,
.modal.mpfy-connect-dialog input,
.modal.mpfy-connect-dialog textarea,
.modal.mpfy-connect-dialog a,
.modal.mpfy-connect-dialog .select2-container {
  pointer-events: auto !important;
}

body.modal-open .select2-container,
body.modal-open .select2-dropdown,
body.modal-open .select2-container--open {
  z-index: 100060 !important;
}

@media (max-width: 480px) {
  .modal.mpfy-connect-dialog {
    align-items: flex-start !important;
    padding: 0.75rem !important;
  }

  .modal.mpfy-connect-dialog .modal-dialog,
  .modal.mpfy-connect-dialog .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 1.5rem) !important;
  }
}
