html {
  background: #FFFFFF;
  scroll-behavior: smooth;
}

body {
  color: #1D1D1F;
  background-color: #FFFFFF;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container-fluid {
  max-width: 1180px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Unified header + mega menu styles */
#main-header {
  height: 64px;
}

@media (max-width: 640px) {
  #main-header {
    height: 58px;
  }
}

.platform-header-shell {
  border-radius: 2rem;
  font-family: "Inter", "SF Pro Text", "Segoe UI", system-ui, BlinkMacSystemFont, sans-serif;
  transition: border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.platform-header-shell.is-mega-open {
  border-color: rgba(229, 229, 231, .96);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .10), 0 1px 0 rgba(0, 0, 0, .04);
}

.platform-header-bar {
  position: relative;
  z-index: 2;
  background: transparent;
}

.platform-logo,
.platform-logo img {
  -webkit-user-drag: none;
  user-select: none;
}

.platform-nav-trigger,
.platform-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .58rem 1rem;
  color: #6E6E73;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease;
}

.platform-nav-trigger:hover,
.platform-nav-trigger.is-active,
.platform-nav-link:hover {
  background: #F5F5F7;
  color: #1D1D1F;
}

.platform-nav-trigger.is-active svg {
  transform: rotate(180deg);
}

.platform-nav-trigger svg {
  transition: transform 180ms ease;
}

.platform-mega {
  height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: height 320ms cubic-bezier(.22, .72, 0, 1), border-color 180ms ease;
  will-change: height;
}

.platform-mega-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 310px;
  background: rgba(255, 255, 255, .96);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 210ms ease 70ms, transform 260ms cubic-bezier(.22, .72, 0, 1) 50ms;
}

.platform-header-shell.is-mega-open .platform-mega-inner {
  opacity: 1;
  transform: translateY(0);
}

.platform-mega-left {
  border-right: 1px solid #E5E5E7;
  background: rgba(250, 250, 250, .72);
  padding: 1.25rem;
}

.platform-mega-label {
  margin: 0 0 .75rem .25rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #86868B;
}

.platform-mega-tab {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1rem;
  padding: .82rem 1rem;
  text-align: left;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #6E6E73;
  transition: background 160ms ease, color 160ms ease;
}

.platform-mega-tab:hover,
.platform-mega-tab.is-active {
  background: #F5F5F7;
  color: #0267B2;
}

.platform-mega-tab svg {
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.platform-mega-tab.is-active svg {
  opacity: 1;
  transform: translateX(0);
}

.platform-mega-right {
  min-width: 0;
  padding: 1.45rem 2rem 1.65rem;
}

.platform-mega-panel {
  display: none;
}

.platform-mega-panel.is-active {
  display: block;
  animation: platformPanelIn 180ms ease both;
}

@keyframes platformPanelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.platform-mega-heading {
  margin-bottom: 1.1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #86868B;
}

.platform-mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.25rem;
  row-gap: .3rem;
}

.platform-mega-item {
  display: block;
  border-radius: 1rem;
  padding: .72rem .85rem;
  transition: background 160ms ease;
}

.platform-mega-item:hover {
  background: #F5F5F7;
}

.platform-mega-item-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.018em;
  color: #1D1D1F;
}

.platform-mega-item-desc {
  margin-top: .22rem;
  max-width: 34rem;
  font-size: .84rem;
  line-height: 1.55;
  color: #6E6E73;
}

.platform-mobile {
  display: none;
  height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: height 320ms cubic-bezier(.22, .72, 0, 1), border-color 180ms ease;
  will-change: height;
}

.platform-mobile-inner {
  max-height: calc(100svh - 7rem);
  overflow-y: auto;
  padding: .75rem .85rem 1rem;
  background: rgba(255, 255, 255, .96);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 190ms ease 60ms, transform 240ms cubic-bezier(.22, .72, 0, 1) 40ms;
}

.platform-header-shell.is-mobile-open {
  border-color: rgba(229, 229, 231, .96);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .10), 0 1px 0 rgba(0, 0, 0, .04);
}

.platform-header-shell.is-mobile-open .platform-mobile {
  border-top-color: transparent;
}

.platform-header-shell.is-mobile-open .platform-mobile-inner {
  opacity: 1;
  transform: translateY(0);
}

.platform-mobile-group {
  border-bottom: 1px solid rgba(229, 229, 231, .82);
}

.platform-mobile-group:last-child {
  border-bottom: 0;
}

.platform-mobile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  list-style: none;
  cursor: pointer;
  border-radius: 1rem;
  padding: 0 .9rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #1D1D1F;
  transition: background 160ms ease;
}

.platform-mobile-summary span {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

.platform-mobile-summary::-webkit-details-marker {
  display: none;
}

.platform-mobile-summary:hover {
  background: #F5F5F7;
}

.platform-mobile-summary svg {
  color: #86868B;
  transition: transform 180ms ease;
}

.platform-mobile-group[open] .platform-mobile-summary svg {
  transform: rotate(180deg);
}

.platform-mobile-content {
  padding: .15rem .9rem 1rem;
}

.platform-mobile-block {
  display: grid;
  grid-template-columns: minmax(7.5rem, .42fr) minmax(0, 1fr);
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid rgba(229, 229, 231, .72);
}

.platform-mobile-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.45;
  text-transform: uppercase;
  color: #86868B;
}

.platform-mobile-links {
  display: grid;
  gap: .55rem;
  min-width: 0;
}

.platform-mobile-links a,
.platform-mobile-direct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: .85rem;
  padding: .38rem .45rem;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #3F3F46;
  transition: background 160ms ease, color 160ms ease;
}

.platform-mobile-links a:hover,
.platform-mobile-direct:hover {
  background: #F5F5F7;
  color: #0267B2;
}

.platform-mobile-direct {
  min-height: 3rem;
  padding: 0 .9rem;
  font-weight: 600;
  color: #1D1D1F;
}

/* Account block: no title column - single column links */
.platform-mobile-block--account {
  display: block !important;
  grid-template-columns: unset !important;
}

/* Events / Login direct link: same style as summary */
a.platform-mobile-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  border-radius: 1rem;
  padding: 0 .9rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #1D1D1F;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

a.platform-mobile-login:hover {
  background: #F5F5F7;
  color: #0267B2;
}

@media (max-width: 1023px) {
  .platform-header-shell {
    border-radius: 1.5rem;
  }

  .platform-mega {
    display: none;
  }

  .platform-mobile {
    display: block;
  }
}

@media (max-width: 640px) {
  .platform-header-bar {
    height: 58px;
  }

  .platform-logo img {
    height: 1.55rem;
  }
}

#search-monolith {
  transform-origin: top left;
  will-change: transform, width, height;
}

#mega-menu-content {
  transform: translateY(-10px);
  transform-origin: top;
  will-change: opacity, transform;
  pointer-events: none;
}

#search-target {
  pointer-events: none;
  visibility: hidden;
  position: fixed;
  z-index: 0;
  top: .5rem;
  left: .5rem;
  right: .5rem;
  height: calc(100vh - 1rem);
  height: min(82svh, 640px);
  max-height: calc(100svh - 1rem);
}

@media (min-width: 768px) {
  #search-target {
    top: 1rem;
    left: 50%;
    right: auto;
    width: min(calc(100vw - 2rem), 1300px);
    height: min(72svh, 620px);
    max-height: calc(100svh - 2rem);
    transform: translateX(-50%);
  }
}

#platform-header-shell {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease, -webkit-backdrop-filter 300ms ease !important;
}

#platform-header-shell.is-scrolled,
#platform-header-shell.is-mega-open,
#platform-header-shell.is-mobile-open {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.platform-nav-trigger,
.platform-nav-link {
  color: #6E6E73 !important;
}

.platform-nav-trigger:hover,
.platform-nav-trigger.is-active,
.platform-nav-link:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #1D1D1F !important;
}

.platform-mega-inner {
  background: rgba(255, 255, 255, 0.95) !important;
}

.platform-mega-left {
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(245, 245, 247, 0.72) !important;
}

.platform-mega-tab:hover,
.platform-mega-tab.is-active {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0267B2 !important;
}

.platform-mega-item:hover {
  background: rgba(0, 0, 0, 0.03) !important;
}

.platform-mega-item-title {
  color: #1D1D1F !important;
}

.platform-mega-item-desc {
  color: #6E6E73 !important;
}

.platform-mobile-inner {
  background: rgba(255, 255, 255, 0.96) !important;
}

.platform-mobile-summary:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

.platform-mobile-links a:hover,
.platform-mobile-direct:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0267B2 !important;
}

.platform-mobile-direct,
.platform-mobile-summary {
  color: #1D1D1F !important;
}

.bg-white,
#search-monolith,
#mega-menu-content {
  background-color: #FFFFFF !important;
}


.bg-green-50 {
  background-color: rgba(52, 199, 89, 0.08) !important;
  color: #34C759 !important;
}

.bg-blue-50 {
  background-color: rgba(2, 103, 178, 0.08) !important;
  color: #0267B2 !important;
}

.bg-zinc-100 {
  background-color: rgba(0, 0, 0, 0.04) !important;
  color: #1D1D1F !important;
}

.footer-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 160ms ease;
}

.footer-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer-bg {
  background: #000000;
}

/* Single Post Specific Custom CSS */
.article-body-text {
  color: #1D1D1F;
  font-family: BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
}

.article-body-text h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: #1D1D1F;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.022em;
  line-height: 1.25;
  scroll-margin-top: 100px;
}

.article-body-text h3 {
  font-size: 1.25rem;
  font-weight: 650;
  color: #1D1D1F;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

.article-body-text p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  line-height: 1.75;
  letter-spacing: -0.003em;
}

.article-body-text blockquote {
  border-left: 4px solid #0267B2;
  padding-left: 1.25rem;
  font-style: italic;
  color: #4B5563;
  margin: 1.5rem 0;
}

.article-body-text code {
  background-color: #F3F4F6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  color: #D946EF;
}

.article-body-text pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

.code-block-container {
  position: relative;
  margin: 1.75rem 0;
}

.code-block-copy-btn {
  opacity: 0;
  transition: opacity 200ms ease;
}

.code-block-container:hover .code-block-copy-btn {
  opacity: 1;
}

.toc-item.active {
  color: #0267B2 !important;
  font-weight: 600 !important;
  border-left-color: #0267B2 !important;
  padding-left: 0.75rem !important;
}

/* Toast Notification */
#toast-notification {
  transform: translate3d(-50%, 20px, 0);
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
}

#toast-notification.show {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

/* Focus Mode */
body.focus-mode #main-header,
body.focus-mode aside,
body.focus-mode #comments-section,
body.focus-mode footer {
  display: none !important;
}

body.focus-mode #content-wrapper {
  padding-top: 2rem;
}

body.focus-mode .lg\:col-span-9 {
  grid-column: span 12 / span 12 !important;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

body.focus-mode .grid {
  display: block !important;
}

#focus-mode-exit {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 200;
  display: none;
}

body.focus-mode #focus-mode-exit {
  display: flex;
}

#btn-focus-mode.is-active {
  background: #1D1D1F;
  color: #FFFFFF;
}

/* Dark Mode Styles */
html.dark {
  background: #0F0F11 !important;
}

html.dark body {
  color: #E5E5E7 !important;
  background-color: #0F0F11 !important;
}

/* Override colors */
html.dark .text-ink {
  color: #E5E5E7 !important;
}

html.dark .text-muted {
  color: #A1A1A6 !important;
}

html.dark .text-subtle {
  color: #86868B !important;
}

html.dark .bg-white {
  background-color: #16161A !important;
}

html.dark .bg-surface\/50 {
  background-color: rgba(30, 30, 34, 0.5) !important;
}

html.dark .bg-surface {
  background-color: #1E1E22 !important;
}

html.dark .border-hairline {
  border-color: #2D2D34 !important;
}

html.dark .border-white\/70 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .bg-white\/90 {
  background-color: rgba(22, 22, 26, 0.9) !important;
}

html.dark .article-body-text {
  color: #E5E5E7 !important;
}

html.dark .article-body-text h1,
html.dark .article-body-text h2,
html.dark .article-body-text h3 {
  color: #FFFFFF !important;
}

html.dark .article-body-text p {
  color: #D1D1D6 !important;
}

html.dark .article-body-text blockquote {
  border-left-color: #0267B2 !important;
  color: #A1A1A6 !important;
}

html.dark .article-body-text code {
  background-color: #1E1E22 !important;
  color: #F472B6 !important;
}

html.dark #platform-header-shell.is-scrolled,
html.dark #platform-header-shell.is-mega-open,
html.dark #platform-header-shell.is-mobile-open {
  background: rgba(22, 22, 26, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

html.dark .platform-nav-trigger,
html.dark .platform-nav-link {
  color: #A1A1A6 !important;
}

html.dark .platform-nav-trigger:hover,
html.dark .platform-nav-trigger.is-active,
html.dark .platform-nav-link:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #FFFFFF !important;
}

html.dark .platform-mega-inner {
  background: rgba(22, 22, 26, 0.95) !important;
}

html.dark .platform-mega-left {
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(30, 30, 34, 0.72) !important;
}

html.dark .platform-mega-tab:hover,
html.dark .platform-mega-tab.is-active {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #2d99e4 !important;
}

html.dark .platform-mega-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.dark .platform-mega-item-title {
  color: #FFFFFF !important;
}

html.dark .platform-mega-item-desc {
  color: #A1A1A6 !important;
}

html.dark .platform-mobile-inner {
  background: rgba(22, 22, 26, 0.96) !important;
}

html.dark .platform-mobile-summary:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

html.dark .platform-mobile-links a:hover,
html.dark .platform-mobile-direct:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #2d99e4 !important;
}

html.dark .platform-mobile-direct,
html.dark .platform-mobile-summary,
html.dark a.platform-mobile-login {
  color: #FFFFFF !important;
}

html.dark a.platform-mobile-login:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #2d99e4 !important;
}

html.dark .bg-green-50 {
  background-color: rgba(52, 199, 89, 0.15) !important;
  color: #34C759 !important;
}

html.dark .bg-blue-50 {
  background-color: rgba(45, 153, 228, 0.15) !important;
  color: #2d99e4 !important;
}

html.dark .bg-zinc-100 {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #E5E5E7 !important;
}


html.dark #newsletter-email {
  background-color: #121216 !important;
  border-color: #2D2D34 !important;
  color: #FFFFFF !important;
}

html.dark #comment-input {
  background-color: #121216 !important;
  border-color: #2D2D34 !important;
  color: #FFFFFF !important;
}

html.dark .comment-thread .bg-zinc-100 {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #A1A1A6 !important;
}

html.dark .platform-mobile-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark .platform-mobile-block {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
/**
 * MUI V2 Header hard isolation fixes.
 * This file must be loaded after WordPress/Elementor global styles
 * and after mui-v2-header-raw.css.
 */

/* Reset WordPress / Elementor global button styles inside V2 only */
#mui-v2-root button,
#mui-v2-root input,
#mui-v2-root select,
#mui-v2-root textarea {
    font: inherit !important;
}

#mui-v2-root button {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 0 !important;
    outline: 0;
    box-shadow: none;
    text-transform: none !important;
    letter-spacing: inherit;
    cursor: pointer;
}

/* Reset Elementor link decoration inside V2 only */
#mui-v2-root a,
#mui-v2-root a:hover,
#mui-v2-root a:focus,
#mui-v2-root a:active {
    text-decoration: none !important;
}

/* Desktop top navigation buttons */
#mui-v2-root .platform-nav-trigger,
#mui-v2-root .platform-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: .58rem 1rem !important;
    background: transparent !important;
    color: #6E6E73 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

#mui-v2-root .platform-nav-trigger:hover,
#mui-v2-root .platform-nav-trigger.is-active,
#mui-v2-root .platform-nav-link:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1D1D1F !important;
}

/* Mega menu left tabs */
#mui-v2-root .platform-mega-tab {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    border: 0 !important;
    border-radius: 1rem !important;
    padding: .82rem 1rem !important;
    background: transparent !important;
    color: #6E6E73 !important;
    text-align: left !important;
    font-size: .92rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

#mui-v2-root .platform-mega-tab:hover,
#mui-v2-root .platform-mega-tab.is-active {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #0267B2 !important;
}

/* Mobile toggle button */
/* Mobile toggle button */
#mui-v2-root #platform-mobile-toggle {
    width: 2.5rem !important;
    height: 2.5rem !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 9999px !important;
    padding: 0 !important;
    background: #F5F5F7 !important;
    color: #1D1D1F !important;
    box-shadow: none !important;
}

/* Match Tailwind lg:hidden behavior */
@media (min-width: 1024px) {
    #mui-v2-root #platform-mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    #mui-v2-root #platform-mobile-toggle {
        display: inline-flex !important;
    }
}

/* Prevent Elementor from changing SVG alignment/size */
#mui-v2-root .platform-nav-trigger svg,
#mui-v2-root .platform-mega-tab svg,
#mui-v2-root #platform-mobile-toggle svg {
    display: block !important;
    flex-shrink: 0 !important;
}

/* Keep logo clean */
#mui-v2-root .platform-logo,
#mui-v2-root .platform-logo:hover,
#mui-v2-root .platform-logo:focus {
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Dark mode equivalents */
html.dark #mui-v2-root .platform-nav-trigger,
html.dark #mui-v2-root .platform-nav-link {
    color: #A1A1A6 !important;
}

html.dark #mui-v2-root .platform-nav-trigger:hover,
html.dark #mui-v2-root .platform-nav-trigger.is-active,
html.dark #mui-v2-root .platform-nav-link:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #FFFFFF !important;
}

html.dark #mui-v2-root .platform-mega-tab {
    color: #A1A1A6 !important;
}

html.dark #mui-v2-root .platform-mega-tab:hover,
html.dark #mui-v2-root .platform-mega-tab.is-active {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #2d99e4 !important;
}

html.dark #mui-v2-root #platform-mobile-toggle {
    background: #1E1E22 !important;
    color: #FFFFFF !important;
}

/**
 * Hide existing WordPress / Elementor header only when MUI V2 header is enabled.
 * Do not hide semantic <header> elements inside page content.
 */
body.mui-v2-header-enabled .elementor-location-header,
body.mui-v2-header-enabled header.site-header,
body.mui-v2-header-enabled .site-header,
body.mui-v2-header-enabled #site-header,
body.mui-v2-header-enabled #masthead,
body.mui-v2-header-enabled .site-branding,
body.mui-v2-header-enabled .main-navigation,
body.mui-v2-header-enabled .navbar,
body.mui-v2-header-enabled .nav-primary {
    display: none !important;
}

/**
 * Fallback for classic themes that render the old header as a direct body child.
 * This avoids hiding <article><header>...</header></article>.
 */
body.mui-v2-header-enabled > header:not(#main-header),
body.mui-v2-header-enabled > .site > header:not(#main-header),
body.mui-v2-header-enabled > .elementor > header:not(#main-header) {
    display: none !important;
}

/**
 * Explicitly keep semantic page/article headers visible inside MUI V2 pages.
 */
body.mui-v2-header-enabled #mui-v2-page-root header,
body.mui-v2-header-enabled #mui-v2-page-root article header {
    display: block !important;
}

/**
 * When mounting the V2 header on real WordPress pages,
 * the wrapper must not constrain position: sticky.
 */
body.mui-v2-header-enabled #mui-v2-root.mui-v2-header-mount {
    display: contents !important;
    min-height: 0 !important;
}

/**
 * Restore the original sticky behavior from header.html.
 */
body.mui-v2-header-enabled #main-header {
    position: sticky !important;
    top: 1rem !important;
    z-index: 9999 !important;
    margin: 0 !important;
}

/**
 * Fix Login button against WordPress / Elementor global link styles.
 */
#mui-v2-root .platform-login-button,
#main-header .platform-login-button {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 9999px !important;
    background: #0267B2 !important;
    color: #FFFFFF !important;
    padding: 0.625rem 1.25rem !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    min-height: 41px !important;
}

#mui-v2-root .platform-login-button:hover,
#main-header .platform-login-button:hover {
    background: #2d99e4 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* Guard mobile menu links against WP/Elementor global link colour bleed */
#mui-v2-root .platform-mobile-links a,
#main-header .platform-mobile-links a {
    color: #3F3F46 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

#mui-v2-root .platform-mobile-links a:hover,
#main-header .platform-mobile-links a:hover {
    background: #F5F5F7 !important;
    color: #0267B2 !important;
}

#mui-v2-root .platform-mobile-direct,
#main-header .platform-mobile-direct {
    color: #1D1D1F !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

#mui-v2-root .platform-mobile-direct:hover,
#main-header .platform-mobile-direct:hover {
    background: #F5F5F7 !important;
    color: #0267B2 !important;
}

#mui-v2-root .platform-mobile-summary,
#main-header .platform-mobile-summary {
    color: #1D1D1F !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Dark mode mobile menu link overrides */
html.dark #mui-v2-root .platform-mobile-links a,
html.dark #main-header .platform-mobile-links a {
    color: #A1A1A6 !important;
    text-decoration: none !important;
}

html.dark #mui-v2-root .platform-mobile-links a:hover,
html.dark #main-header .platform-mobile-links a:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #2d99e4 !important;
}

html.dark #mui-v2-root .platform-mobile-direct,
html.dark #main-header .platform-mobile-direct {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

html.dark #mui-v2-root .platform-mobile-direct:hover,
html.dark #main-header .platform-mobile-direct:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #2d99e4 !important;
}

html.dark #mui-v2-root .platform-mobile-summary,
html.dark #main-header .platform-mobile-summary {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* WP scope: Events / Login direct link guard */
#mui-v2-root a.platform-mobile-login,
#main-header a.platform-mobile-login,
#mui-v2-root .platform-mobile-summary,
#main-header .platform-mobile-summary {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    color: #1D1D1F !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

#mui-v2-root .platform-mobile-summary span,
#main-header .platform-mobile-summary span {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

#mui-v2-root a.platform-mobile-login:hover,
#main-header a.platform-mobile-login:hover {
    background: #F5F5F7 !important;
    color: #0267B2 !important;
}

html.dark #mui-v2-root a.platform-mobile-login,
html.dark #main-header a.platform-mobile-login {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

html.dark #mui-v2-root a.platform-mobile-login:hover,
html.dark #main-header a.platform-mobile-login:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #2d99e4 !important;
}

@media (min-width: 768px) {
    #mui-v2-root .platform-login-button,
    #main-header .platform-login-button {
        display: inline-flex !important;
    }
}

/**
 * MUI V2 Header exact-size lock.
 * This block prevents WordPress / Elementor global font-size, rem baseline,
 * link styles and button styles from making the header smaller than header.html.
 */

/* Header root: match header.html */
#mui-v2-root #main-header,
body.mui-v2-header-enabled #main-header {
    height: 64px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    top: 16px !important;
    font-family: "Inter", "SF Pro Text", "Segoe UI", system-ui, BlinkMacSystemFont, sans-serif !important;
    font-size: 16px !important;
    line-height: normal !important;
}

/* Header shell: match max width, radius, font rendering */
#mui-v2-root #platform-header-shell,
body.mui-v2-header-enabled #platform-header-shell {
    max-width: 1180px !important;
    border-radius: 32px !important;
    font-family: "Inter", "SF Pro Text", "Segoe UI", system-ui, BlinkMacSystemFont, sans-serif !important;
}

/* Header bar: match h-16 px-4 md:px-5 gap-4 */
#mui-v2-root #main-header .platform-header-bar,
body.mui-v2-header-enabled #main-header .platform-header-bar {
    height: 64px !important;
    gap: 16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

@media (min-width: 768px) {
    #mui-v2-root #main-header .platform-header-bar,
    body.mui-v2-header-enabled #main-header .platform-header-bar {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Logo image: match h-7 md:h-8 */
#mui-v2-root #main-header .platform-logo img,
body.mui-v2-header-enabled #main-header .platform-logo img {
    height: 28px !important;
    width: auto !important;
}

@media (min-width: 768px) {
    #mui-v2-root #main-header .platform-logo img,
    body.mui-v2-header-enabled #main-header .platform-logo img {
        height: 32px !important;
        width: auto !important;
    }
}

/* Desktop nav wrapper: match text-[14px] font-medium tracking[-0.01em] */
#mui-v2-root #main-header nav[aria-label="Primary navigation"],
body.mui-v2-header-enabled #main-header nav[aria-label="Primary navigation"] {
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    line-height: normal !important;
}

/* Desktop nav items: match .platform-nav-trigger/.platform-nav-link from header.html */
#mui-v2-root #main-header .platform-nav-trigger,
#mui-v2-root #main-header .platform-nav-link,
body.mui-v2-header-enabled #main-header .platform-nav-trigger,
body.mui-v2-header-enabled #main-header .platform-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5.6px !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 9.28px 16px !important;
    background: transparent !important;
    color: #6E6E73 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 14px !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

#mui-v2-root #main-header .platform-nav-trigger:hover,
#mui-v2-root #main-header .platform-nav-trigger.is-active,
#mui-v2-root #main-header .platform-nav-link:hover,
body.mui-v2-header-enabled #main-header .platform-nav-trigger:hover,
body.mui-v2-header-enabled #main-header .platform-nav-trigger.is-active,
body.mui-v2-header-enabled #main-header .platform-nav-link:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1D1D1F !important;
}

/* Login button: match hidden rounded-full bg-primary px-5 py-2.5 text-[14px] font-semibold */
#mui-v2-root #main-header .platform-login-button,
body.mui-v2-header-enabled #main-header .platform-login-button {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 9999px !important;
    background: #0267B2 !important;
    color: #FFFFFF !important;
    padding: 10px 20px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 21px !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
}

#mui-v2-root #main-header .platform-login-button:hover,
body.mui-v2-header-enabled #main-header .platform-login-button:hover {
    background: #2d99e4 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

@media (min-width: 768px) {
    #mui-v2-root #main-header .platform-login-button,
    body.mui-v2-header-enabled #main-header .platform-login-button {
        display: inline-flex !important;
    }
}

/* Mobile toggle: match h-10 w-10 and lg:hidden */
#mui-v2-root #main-header #platform-mobile-toggle,
body.mui-v2-header-enabled #main-header #platform-mobile-toggle {
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 9999px !important;
    padding: 0 !important;
    background: #F5F5F7 !important;
    color: #1D1D1F !important;
    box-shadow: none !important;
}

@media (min-width: 1024px) {
    #mui-v2-root #main-header #platform-mobile-toggle,
    body.mui-v2-header-enabled #main-header #platform-mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    #mui-v2-root #main-header #platform-mobile-toggle,
    body.mui-v2-header-enabled #main-header #platform-mobile-toggle {
        display: inline-flex !important;
    }
}

/* Mega menu shell dimensions from header.html */
#mui-v2-root #main-header .platform-mega-inner,
body.mui-v2-header-enabled #main-header .platform-mega-inner {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    min-height: 310px !important;
}

#mui-v2-root #main-header .platform-mega-left,
body.mui-v2-header-enabled #main-header .platform-mega-left {
    padding: 20px !important;
}

#mui-v2-root #main-header .platform-mega-right,
body.mui-v2-header-enabled #main-header .platform-mega-right {
    padding: 23.2px 32px 26.4px !important;
}

/* Mega tabs: match original rem values converted to px */
#mui-v2-root #main-header .platform-mega-tab,
body.mui-v2-header-enabled #main-header .platform-mega-tab {
    border: 0 !important;
    border-radius: 16px !important;
    padding: 13.12px 16px !important;
    font-size: 14.72px !important;
    font-weight: 600 !important;
    line-height: 17.664px !important;
    letter-spacing: -0.01em !important;
}

/* Mobile small breakpoint from header.html */
@media (max-width: 640px) {
    #mui-v2-root #main-header,
    body.mui-v2-header-enabled #main-header {
        height: 58px !important;
    }

    #mui-v2-root #main-header .platform-header-bar,
    body.mui-v2-header-enabled #main-header .platform-header-bar {
        height: 58px !important;
    }

    #mui-v2-root #main-header .platform-logo img,
    body.mui-v2-header-enabled #main-header .platform-logo img {
        height: 24.8px !important;
    }
}
/**
 * MUI V2 Header final visual lock.
 * Must be loaded after WordPress, Elementor and MUI header fix CSS.
 */

/* Force the same practical font rendering as standalone header.html */
body.mui-v2-header-enabled #main-header,
body.mui-v2-header-enabled #main-header *,
#mui-v2-root #main-header,
#mui-v2-root #main-header * {
    font-family: BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Restore shell font and clipping. */
body.mui-v2-header-enabled #platform-header-shell,
#mui-v2-root #platform-header-shell {
    font-family: BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    overflow: hidden !important;
}

/* Exact desktop nav item sizing */
body.mui-v2-header-enabled #main-header .platform-nav-trigger,
body.mui-v2-header-enabled #main-header .platform-nav-link,
#mui-v2-root #main-header .platform-nav-trigger,
#mui-v2-root #main-header .platform-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5.6px !important;
    padding: 9.28px 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #6E6E73 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 14px !important;
    letter-spacing: -0.14px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

body.mui-v2-header-enabled #main-header .platform-nav-trigger:hover,
body.mui-v2-header-enabled #main-header .platform-nav-trigger.is-active,
body.mui-v2-header-enabled #main-header .platform-nav-link:hover,
#mui-v2-root #main-header .platform-nav-trigger:hover,
#mui-v2-root #main-header .platform-nav-trigger.is-active,
#mui-v2-root #main-header .platform-nav-link:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1D1D1F !important;
}

/* Exact login button from header.html */
body.mui-v2-header-enabled #main-header .platform-login-button,
#mui-v2-root #main-header .platform-login-button {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    height: 41px !important;
    min-height: 41px !important;
    padding: 10px 20px !important;
    border: 0 !important;
    border-radius: 9999px !important;
    background: #0267B2 !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 21px !important;
    letter-spacing: -0.14px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
}

body.mui-v2-header-enabled #main-header .platform-login-button:hover,
#mui-v2-root #main-header .platform-login-button:hover {
    background: #2d99e4 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

@media (min-width: 768px) {
    body.mui-v2-header-enabled #main-header .platform-login-button,
    #mui-v2-root #main-header .platform-login-button {
        display: inline-flex !important;
    }
}

/* Keep mobile toggle behavior identical to header.html */
@media (min-width: 1024px) {
    body.mui-v2-header-enabled #main-header #platform-mobile-toggle,
    #mui-v2-root #main-header #platform-mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    body.mui-v2-header-enabled #main-header #platform-mobile-toggle,
    #mui-v2-root #main-header #platform-mobile-toggle {
        display: inline-flex !important;
    }
}

/* Dark Mode hover state overrides for header navigation menu */
html.dark body.mui-v2-header-enabled #main-header .platform-nav-trigger:hover,
html.dark body.mui-v2-header-enabled #main-header .platform-nav-trigger.is-active,
html.dark body.mui-v2-header-enabled #main-header .platform-nav-link:hover,
html.dark #mui-v2-root #main-header .platform-nav-trigger:hover,
html.dark #mui-v2-root #main-header .platform-nav-trigger.is-active,
html.dark #mui-v2-root #main-header .platform-nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
}
