/*
 * Englixia Academy platform theme
 * Derived from the live home.html visual system: white surfaces, deep navy,
 * electric blue accents, Inter UI text, and DM Serif Display headings.
 * Loaded last so legacy page-specific styles keep their layout and behavior
 * while shared UI primitives stay visually consistent.
 */
:root {
  --platform-navy: #0B1220;
  --platform-navy-2: #1E3A8A;
  --platform-blue: #2563EB;
  --platform-blue-dark: #1D4ED8;
  --platform-blue-soft: #DBEAFE;
  --platform-blue-pale: #EFF6FF;
  --platform-bg: #F8FAFC;
  --platform-surface: #FFFFFF;
  --platform-surface-2: #F1F5F9;
  --platform-text: #0F172A;
  --platform-muted: #64748B;
  --platform-light: #94A3B8;
  --platform-border: #E2E8F0;
  --platform-border-strong: #CBD5E1;
  --platform-success: #16A34A;
  --platform-warning: #D97706;
  --platform-danger: #DC2626;
  --platform-radius-sm: 8px;
  --platform-radius-md: 14px;
  --platform-radius-lg: 20px;
  --platform-shadow-sm: 0 4px 14px rgba(11, 18, 32, 0.05);
  --platform-shadow-md: 0 12px 32px rgba(11, 18, 32, 0.08);
  --platform-shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.12);
  --platform-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--platform-bg);
  color: var(--platform-text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
select,
textarea {
  font-variant-numeric: proportional-nums;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--platform-navy);
  font-family: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
}

p { color: var(--platform-muted); }
a { transition: color 180ms var(--platform-ease), background-color 180ms var(--platform-ease), border-color 180ms var(--platform-ease), box-shadow 180ms var(--platform-ease), transform 180ms var(--platform-ease); }
img,
video,
iframe { max-width: 100%; }

::selection {
  background: rgba(37, 99, 235, 0.18);
  color: var(--platform-navy);
}

:focus-visible {
  outline: 2px solid var(--platform-blue);
  outline-offset: 3px;
}

/* Shared layout and type primitives */
.container,
.enx-container,
.ea-container {
  width: min(100% - 2rem, 1220px);
  margin-inline: auto;
}

.section-kicker,
.section-label,
.academic-rule + .section-kicker {
  color: var(--platform-blue) !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-title,
.ea-title {
  color: var(--platform-navy) !important;
  font-family: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.text-navy,
.text-heading,
.text-dark-900,
.text-gray-900 { color: var(--platform-text) !important; }
.text-blue,
.text-primary-600,
.text-brand-gold,
.text-brand-purple,
.brand-gold,
.brand-purple { color: var(--platform-blue) !important; }
.bg-navy-900,
.bg-dark-900,
.bg-gray-950 { background-color: var(--platform-navy) !important; }
.bg-primary-600,
.bg-brand-gold,
.bg-brand-purple { background-color: var(--platform-blue) !important; }

/* Homepage-style header across public pages */
#main-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: #DBEAFE !important;
  box-shadow: 0 1px 12px rgba(11, 18, 32, 0.06) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Shared homepage shell for legacy public pages. */
.ea-shared-header {
  position: relative;
  z-index: 1500;
  width: 100%;
  background: #FFFFFF;
  color: var(--platform-text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.4;
}
body.ea-mobile-shell-open { overflow: hidden !important; }

.ea-shared-header,
.ea-shared-header *,
.ea-shared-header *::before,
.ea-shared-header *::after { box-sizing: border-box; }
.ea-shared-header a { color: inherit; text-decoration: none; }
.ea-shared-header button,
.ea-shared-header input { font: inherit; }
.ea-shared-header button { cursor: pointer; }

.ea-header-utility {
  min-height: 40px;
  background: #1E3A8A;
  color: #DBEAFE;
}
.ea-header-utility-inner,
.ea-header-nav-inner {
  width: min(100% - 2rem, 1400px);
  margin-inline: auto;
}
.ea-header-utility-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.ea-header-utility-group { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ea-header-utility a,
.ea-header-utility button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #DBEAFE;
  white-space: nowrap;
}
.ea-header-utility a:hover,
.ea-header-utility button:hover { color: #FFFFFF; }
.ea-header-utility i { color: #93C5FD; }
.ea-header-live { display: inline-flex; align-items: center; gap: 7px; color: #DBEAFE; }
.ea-header-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #60A5FA; }
.ea-header-whatsapp i { color: #4ADE80; }

.ea-header-nav {
  position: relative;
  min-height: 72px;
  border-bottom: 1px solid #DBEAFE;
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 12px rgba(11,18,32,.06);
}
.ea-header-nav-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.ea-header-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.ea-header-logo img { display: block; width: auto; height: 58px; max-width: 180px; object-fit: contain; }
.ea-header-nav-list { display: flex; align-items: stretch; justify-content: center; gap: 25px; height: 72px; margin: 0; padding: 0; list-style: none; flex: 1 1 auto; }
.ea-header-nav-item { position: relative; display: flex; align-items: center; }
.ea-header-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--platform-text);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  white-space: nowrap;
}
.ea-header-nav-trigger:hover,
.ea-header-nav-item.is-open > .ea-header-nav-trigger { color: var(--platform-blue); }
.ea-header-nav-trigger i { color: #94A3B8; font-size: 10px; transition: transform 180ms var(--platform-ease); }
.ea-header-nav-item.is-open > .ea-header-nav-trigger i { transform: rotate(180deg); color: var(--platform-blue); }
.ea-header-hot { padding: 3px 6px; border: 1px solid #BFDBFE; border-radius: 5px; background: #EFF6FF; color: var(--platform-blue); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.ea-header-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 230px;
  padding: 12px;
  border: 1px solid #DBEAFE;
  border-radius: 0 0 12px 12px;
  background: #FFFFFF;
  box-shadow: 0 20px 40px rgba(37,99,235,.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms var(--platform-ease), transform 180ms var(--platform-ease), visibility 180ms var(--platform-ease);
}
.ea-header-nav-item:hover .ea-header-dropdown,
.ea-header-nav-item.is-open .ea-header-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.ea-header-dropdown a { padding: 10px 12px; border-radius: 8px; color: #475569; font-size: 12px; font-weight: 700; }
.ea-header-dropdown a:hover { background: #EFF6FF; color: var(--platform-blue); }
.ea-header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.ea-header-search { display: flex; align-items: center; gap: 8px; width: 230px; height: 44px; padding: 0 14px; border: 1px solid #DBE4F0; border-radius: 12px; background: #F8FAFC; color: #94A3B8; }
.ea-header-search input { width: 100%; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; color: var(--platform-text); font-size: 13px; box-shadow: none !important; }
.ea-header-search:focus-within { border-color: #93C5FD; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.ea-header-login,
.ea-header-register,
.ea-header-demo { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 9px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ea-header-login { border-right: 1px solid #E2E8F0; color: #475569 !important; }
.ea-header-login:hover,
.ea-header-register:hover { color: var(--platform-blue) !important; }
.ea-header-register { color: #475569 !important; }
.ea-header-demo { padding-inline: 20px; background: var(--platform-navy); color: #FFFFFF !important; }
.ea-header-demo:hover { background: var(--platform-blue); transform: translateY(-1px); }
.ea-header-menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; border: 1px solid #DBE4F0; border-radius: 10px; background: #0F172A; color: #FFFFFF; }
.ea-header-mobile-overlay,
.ea-header-mobile-panel { display: none; }

body.ea-shared-shell #enx-header-master { height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }
body.ea-shared-shell #enx-header-master .enx-top-bar,
body.ea-shared-shell #enx-header-master .enx-navbar,
body.ea-shared-shell #enx-header-master .enx-mob-overlay,
body.ea-shared-shell #enx-header-master .enx-mob-menu,
body.ea-shared-shell #enx-header-master .enx-soc-wrapper { display: none !important; }
body.ea-shared-shell #main-header.ea-legacy-header-shell,
body.ea-shared-shell #ea-shared-header.ea-legacy-header-shell,
body.ea-shared-shell #enx-header-master.ea-legacy-header-shell,
body.ea-shared-shell header.ea-legacy-header-shell,
body.ea-shared-shell #mobile-menu.ea-legacy-mobile-shell,
body.ea-shared-shell #mobile-overlay.ea-legacy-mobile-shell,
body.ea-shared-shell [aria-label="Quick actions"].ea-legacy-mobile-shell { display: none !important; }

@media (max-width: 1350px) {
  .ea-header-utility { display: none; }
  .ea-header-nav-inner { min-height: 70px; }
  .ea-header-nav-list,
  .ea-header-actions { display: none; }
  .ea-header-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .ea-header-logo img { height: 54px; }
  .ea-header-mobile-overlay { position: fixed; inset: 0; z-index: 1590; display: block; background: rgba(15,23,42,.55); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms ease, visibility 180ms ease; }
  .ea-header-mobile-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .ea-header-mobile-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1600; display: flex; flex-direction: column; width: min(88vw, 390px); padding: 18px; overflow-y: auto; background: #FFFFFF; box-shadow: -16px 0 40px rgba(15,23,42,.18); transform: translateX(100%); transition: transform 220ms var(--platform-ease); }
  .ea-header-mobile-panel.is-open { transform: translateX(0); }
  .ea-header-mobile-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid #E2E8F0; }
  .ea-header-mobile-top img { height: 42px; width: auto; }
  .ea-header-mobile-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F1F5F9; color: #475569; }
  .ea-header-mobile-links { display: grid; gap: 8px; padding: 20px 0; }
  .ea-header-mobile-links a,
  .ea-header-mobile-links button { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border: 1px solid #E2E8F0; border-radius: 10px; background: #F8FAFC; color: #0F172A; font-size: 12px; font-weight: 800; text-align: left; }
  .ea-header-mobile-links a:hover,
  .ea-header-mobile-links button:hover { border-color: #93C5FD; background: #EFF6FF; color: var(--platform-blue); }
  .ea-header-mobile-quick { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid #E2E8F0; }
  .ea-header-mobile-quick a { justify-content: center; background: var(--platform-blue) !important; color: #FFFFFF !important; }
  .ea-header-mobile-quick a:last-child { background: #0F172A !important; }
}

@media (max-width: 640px) {
  .ea-header-utility-inner,
  .ea-header-nav-inner { width: min(100% - 1.25rem, 1400px); }
  .ea-header-nav-inner { min-height: 64px; }
  .ea-header-logo img { height: 48px; max-width: 160px; }
}

#main-header .text-blue-50,
#main-header .bg-\[\#1E3A8A\] {
  background: var(--platform-navy-2) !important;
}

#enx-header-master {
  position: sticky;
  top: 0;
  z-index: 1500;
}

#enx-header-master .enx-top-bar {
  background: var(--platform-navy-2) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.84) !important;
}

#enx-header-master .enx-top-bar a,
#enx-header-master .enx-top-bar button {
  color: rgba(255, 255, 255, 0.84) !important;
}

#enx-header-master .enx-top-bar a:hover,
#enx-header-master .enx-top-bar button:hover {
  color: #FFFFFF !important;
}

#enx-header-master .enx-navbar {
  min-height: 78px;
  height: auto;
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--platform-border) !important;
  box-shadow: 0 4px 18px rgba(11, 18, 32, 0.04) !important;
}

#enx-header-master .enx-brand img {
  max-height: 54px;
  width: auto;
}

#enx-header-master .enx-nav-link {
  color: var(--platform-text) !important;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#enx-header-master .enx-nav-link:hover,
#enx-header-master .enx-nav-link.active,
#enx-header-master .enx-nav-item.enx-open > .enx-nav-link {
  color: var(--platform-blue) !important;
  background: var(--platform-blue-pale) !important;
}

#enx-header-master .enx-btn,
#enx-header-master .enx-btn-primary,
#enx-header-master .enx-btn-primary-action,
#enx-header-master .enx-btn-gold,
#enx-header-master .enx-btn-join,
#main-header a[class*="bg-primary"],
#main-header a[class*="bg-navy"] {
  border-radius: var(--platform-radius-sm) !important;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#enx-header-master .enx-btn-primary,
#enx-header-master .enx-btn-primary-action,
#enx-header-master .enx-btn-gold,
#enx-header-master .enx-btn-join,
#main-header a[class*="bg-primary"] {
  background: linear-gradient(135deg, var(--platform-blue), var(--platform-blue-dark)) !important;
  color: #FFFFFF !important;
  border-color: var(--platform-blue-dark) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

#enx-header-master .enx-btn-primary:hover,
#enx-header-master .enx-btn-primary-action:hover,
#enx-header-master .enx-btn-gold:hover,
#enx-header-master .enx-btn-join:hover,
#main-header a[class*="bg-primary"]:hover {
  background: var(--platform-blue-dark) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}

/* Shared action buttons */
.btn-primary,
.btn-gold,
.btn-purple,
.btn-teal,
.btn-dark,
.ea-btn-primary,
.ea-btn,
.enx-btn-primary,
.enx-btn-gold,
.enx-btn-join,
button[type="submit"],
input[type="submit"] {
  min-height: 42px;
  border: 1px solid var(--platform-blue) !important;
  border-radius: var(--platform-radius-sm) !important;
  background: linear-gradient(135deg, var(--platform-blue), var(--platform-blue-dark)) !important;
  color: #FFFFFF !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.14);
}

.btn-primary:hover,
.btn-gold:hover,
.btn-purple:hover,
.btn-teal:hover,
.btn-dark:hover,
.ea-btn-primary:hover,
.ea-btn:hover,
.enx-btn-primary:hover,
.enx-btn-gold:hover,
.enx-btn-join:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--platform-blue-dark) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.btn-outline,
.btn-ghost,
.ea-btn-ghost,
.enx-btn-ghost {
  min-height: 42px;
  border: 1px solid var(--platform-border-strong) !important;
  border-radius: var(--platform-radius-sm) !important;
  background: var(--platform-surface) !important;
  color: var(--platform-text) !important;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
}

.btn-outline:hover,
.btn-ghost:hover,
.ea-btn-ghost:hover,
.enx-btn-ghost:hover {
  border-color: var(--platform-blue) !important;
  background: var(--platform-blue-pale) !important;
  color: var(--platform-blue) !important;
  transform: translateY(-1px);
}

/* Cards and repeated content blocks */
.lux-card,
.ea-card,
.card,
.feature-card,
.course-card,
.pricing-card,
.resource-card,
.info-card,
.stat-card,
.faq-item,
.testimonial-card {
  border: 1px solid var(--platform-border) !important;
  border-radius: var(--platform-radius-md) !important;
  background: var(--platform-surface) !important;
  box-shadow: var(--platform-shadow-sm);
}

.lux-card:hover,
.ea-card:hover,
.card:hover,
.feature-card:hover,
.course-card:hover,
.pricing-card:hover,
.resource-card:hover,
.info-card:hover,
.testimonial-card:hover {
  border-color: #BFDBFE !important;
  box-shadow: var(--platform-shadow-md);
  transform: translateY(-2px);
}

.badge,
.pill,
.tag,
.status-badge {
  border-radius: 6px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* Forms */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border: 1px solid var(--platform-border-strong);
  border-radius: var(--platform-radius-sm);
  background: var(--platform-surface);
  color: var(--platform-text);
  font-family: Inter, system-ui, sans-serif;
  transition: border-color 180ms var(--platform-ease), box-shadow 180ms var(--platform-ease), background-color 180ms var(--platform-ease);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--platform-blue) !important;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  outline: none;
}

input::placeholder,
textarea::placeholder { color: var(--platform-light); }

label,
.form-label {
  color: var(--platform-text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* Data tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
thead th {
  background: var(--platform-blue-pale);
  border-bottom: 1px solid var(--platform-border);
  color: var(--platform-muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
tbody td {
  border-bottom: 1px solid #EEF2F7;
  color: var(--platform-text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.88rem;
}
tbody tr:hover td { background: #F8FBFF; }

/* Dialogs, popovers, empty/loading states */
.modal-overlay,
.modal-wrap,
.enx-modal-wrap,
.modal-backdrop {
  background: rgba(11, 18, 32, 0.56) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content,
.modal-card,
.enx-modal-card,
.dialog,
.popover {
  border: 1px solid var(--platform-border) !important;
  border-radius: var(--platform-radius-lg) !important;
  background: var(--platform-surface) !important;
  box-shadow: var(--platform-shadow-lg) !important;
}

.empty-state,
.empty,
.loading-state,
.error-state {
  border: 1px dashed var(--platform-border-strong);
  border-radius: var(--platform-radius-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--platform-muted);
}

/* Footer consistency */
.enx-footer-body,
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.enx-footer-body .enx-col-head,
.enx-footer-body .enx-brand-sub {
  color: #93C5FD !important;
}

.enx-footer-body .enx-socials-row a:hover {
  background: var(--platform-blue) !important;
}

/* One public footer for every page. Legacy footer blocks are kept in the DOM
 * for page scripts, then hidden by site-footer.js after the shared footer mounts. */
.ea-legacy-footer-hidden {
  display: none !important;
}

.ea-shared-footer {
  --ea-footer-bg: #050810;
  --ea-footer-surface: #0B1220;
  --ea-footer-line: #1E293B;
  --ea-footer-text: #FFFFFF;
  --ea-footer-muted: #94A3B8;
  --ea-footer-blue: #3B82F6;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 72px 0 32px;
  border-top: 1px solid var(--ea-footer-line);
  background: var(--ea-footer-bg);
  color: var(--ea-footer-text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}

.ea-shared-footer,
.ea-shared-footer *,
.ea-shared-footer *::before,
.ea-shared-footer *::after { box-sizing: border-box; }

.ea-shared-footer a { color: inherit; text-decoration: none; }
.ea-shared-footer ul { list-style: none; margin: 0; padding: 0; }
.ea-shared-footer p,
.ea-shared-footer h2,
.ea-shared-footer h3,
.ea-shared-footer h4 { margin: 0; }
.ea-shared-footer p { color: var(--ea-footer-muted); }

.ea-footer-shell {
  width: min(100% - 2rem, 1300px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.ea-footer-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 56px;
  overflow: hidden;
  border: 1px solid var(--ea-footer-line);
  border-radius: 20px;
  background: var(--ea-footer-line);
}

.ea-footer-trust-item {
  min-width: 0;
  padding: 24px 16px;
  background: var(--ea-footer-surface);
  text-align: center;
}

.ea-footer-rating { color: #C9A96E !important; font-size: 11px; letter-spacing: 2px; }
.ea-footer-trust-value {
  margin-top: 8px !important;
  color: var(--ea-footer-text) !important;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.ea-footer-trust-value span { color: var(--ea-footer-blue); }
.ea-footer-trust-label {
  margin-top: 8px !important;
  color: #64748B !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.ea-footer-brand-row {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ea-footer-line);
}

.ea-footer-brand { max-width: 560px; }
.ea-footer-wordmark {
  color: var(--ea-footer-text);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}
.ea-footer-wordmark span { color: var(--ea-footer-blue); }
.ea-footer-credential {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #CBD5E1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ea-footer-credential i { color: #C9A96E; }
.ea-footer-brand-copy { max-width: 470px; font-size: 14px; font-weight: 500; }

.ea-footer-newsletter { width: min(100%, 420px); flex: 0 0 420px; }
.ea-footer-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ea-footer-line);
  color: var(--ea-footer-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.ea-footer-section-title i { color: var(--ea-footer-blue); }
.ea-footer-newsletter-copy { margin: 14px 0 18px; font-size: 12px; }
.ea-footer-newsletter-form { display: flex; gap: 10px; }
.ea-footer-newsletter-form input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #334155 !important;
  border-radius: 10px !important;
  background: var(--ea-footer-surface) !important;
  color: #FFFFFF !important;
  font-size: 13px;
}
.ea-footer-newsletter-form input::placeholder { color: #64748B; }
.ea-footer-newsletter-form button {
  width: 48px;
  height: 46px;
  flex: 0 0 48px;
  border: 1px solid var(--platform-blue) !important;
  border-radius: 10px !important;
  background: var(--platform-blue) !important;
  color: #FFFFFF !important;
  cursor: pointer;
}
.ea-footer-newsletter-form button:hover { background: var(--platform-blue-dark) !important; }
.ea-footer-newsletter-status { min-height: 16px; margin-top: 8px !important; color: #60A5FA !important; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.ea-footer-links {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr 1.35fr;
  gap: 28px;
  padding: 48px 0;
}
.ea-footer-link-column { min-width: 0; }
.ea-footer-link-list { display: grid; gap: 13px; margin-top: 20px !important; }
.ea-footer-link-list a { color: var(--ea-footer-muted); font-size: 13px; font-weight: 500; }
.ea-footer-link-list a:hover { color: #FFFFFF; padding-left: 6px; }
.ea-footer-link-list a.ea-footer-accent { color: #60A5FA; font-weight: 800; }

.ea-footer-portal-list { display: grid; gap: 10px; margin-top: 20px !important; }
.ea-footer-portal-list a,
.ea-footer-contact-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #CBD5E1 !important;
  font-size: 11px;
  font-weight: 800;
}
.ea-footer-portal-list a:hover,
.ea-footer-contact-link:hover { border-color: rgba(59,130,246,.7); background: rgba(37,99,235,.16); color: #FFFFFF !important; }
.ea-footer-portal-list i,
.ea-footer-contact-link i { color: var(--ea-footer-blue); }
.ea-footer-contact-list { display: grid; gap: 10px; margin-top: 20px; }
.ea-footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ea-footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.04); color: #94A3B8; }
.ea-footer-socials a:hover { border-color: var(--ea-footer-blue); background: var(--platform-blue); color: #FFFFFF; transform: translateY(-2px); }

.ea-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ea-footer-line);
  color: #64748B;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ea-footer-legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }
.ea-footer-legal-links a:hover { color: #FFFFFF; }
.ea-footer-disclaimer { max-width: 900px; margin: 28px auto 0 !important; color: #475569 !important; font-size: 9px; line-height: 1.7; text-align: center; text-transform: uppercase; letter-spacing: .16em; }

@media (max-width: 1100px) {
  .ea-footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ea-footer-link-column:last-child { grid-column: span 2; }
  .ea-footer-newsletter { flex-basis: 360px; }
}

@media (max-width: 760px) {
  .ea-shared-footer { padding: 48px 0 28px; }
  .ea-footer-shell { width: min(100% - 1.25rem, 1300px); }
  .ea-footer-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 40px; }
  .ea-footer-trust-value { font-size: 28px; }
  .ea-footer-brand-row { display: block; padding-bottom: 36px; }
  .ea-footer-newsletter { width: 100%; margin-top: 32px; }
  .ea-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; padding: 36px 0; }
  .ea-footer-link-column:last-child { grid-column: auto; }
  .ea-footer-link-list a { font-size: 12px; }
  .ea-footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; line-height: 1.8; }
  .ea-footer-legal-links { justify-content: flex-start; gap: 10px 16px; }
  .ea-footer-disclaimer { text-align: left; letter-spacing: .1em; }
}

/* Prevent old component layers from causing page-wide overflow. */
.table-wrap,
.table-responsive,
.overflow-x-auto { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 900px) {
  .container,
  .enx-container,
  .ea-container { width: min(100% - 1.5rem, 1220px); }

  #enx-header-master .enx-nav-menu,
  #enx-header-master .enx-nav-actions,
  #enx-header-master .enx-top-bar { display: none !important; }

  #enx-header-master .enx-navbar { min-height: 70px; padding-inline: 16px; }
  #enx-header-master .enx-burger { display: inline-flex !important; }
  .enx-footer-body .enx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  h1 { font-size: clamp(2rem, 9vw, 3rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.35rem); }
  h3 { font-size: clamp(1.25rem, 5vw, 1.65rem); }

  .container,
  .enx-container,
  .ea-container { width: min(100% - 1.25rem, 1220px); }

  .btn-primary,
  .btn-gold,
  .btn-purple,
  .btn-teal,
  .btn-dark,
  .btn-outline,
  .btn-ghost,
  .ea-btn,
  .enx-btn { max-width: 100%; }

  .enx-footer-body .enx-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .enx-footer-body .enx-bottom { flex-direction: column; gap: 14px; text-align: center; }
  table { min-width: 640px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Exact homepage reference shell for every public page. */
body.ea-reference-shell { padding-top: 112px !important; overflow-x: hidden; }
body.ea-reference-shell.ea-mobile-shell-open { overflow: hidden !important; }

#main-header.ea-reference-header {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 2147483000 !important;
  width: 100% !important;
  height: 112px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(255,255,255,.95) !important;
  border-bottom: 1px solid #DBEAFE !important;
  box-shadow: 0 1px 12px rgba(11,18,32,.06) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #0F172A !important;
  font-family: Inter, system-ui, sans-serif !important;
  line-height: 1.4 !important;
}
#main-header.ea-reference-header *,
#main-header.ea-reference-header *::before,
#main-header.ea-reference-header *::after { box-sizing: border-box; }
#main-header.ea-reference-header a { color: inherit; text-decoration: none; }
#main-header.ea-reference-header button { border: 0; cursor: pointer; font: inherit; }
#main-header.ea-reference-header > div:first-child { display: block; height: 40px; background: #1E3A8A; color: #EFF6FF; }
#main-header.ea-reference-header > div:first-child > div,
#main-header.ea-reference-header #nav-inner { width: min(100% - 2rem, 1400px); margin-inline: auto; }
#main-header.ea-reference-header > div:first-child > div { height: 40px; padding-inline: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
#main-header.ea-reference-header > div:first-child > div > div { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
#main-header.ea-reference-header > div:first-child a,
#main-header.ea-reference-header > div:first-child button { color: #DBEAFE; background: transparent; display: inline-flex; align-items: center; gap: .375rem; }
#main-header.ea-reference-header > div:first-child a:hover,
#main-header.ea-reference-header > div:first-child button:hover { color: #FFFFFF; }
#main-header.ea-reference-header > div:first-child i { color: #93C5FD; }
#main-header.ea-reference-header #nav-container { height: 72px; background: #FFFFFF; }
#main-header.ea-reference-header #nav-inner { height: 72px; padding-inline: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; }
#main-header.ea-reference-header #nav-inner > a:first-child { flex: 0 0 auto; display: flex; align-items: center; }
#main-header.ea-reference-header #nav-inner > a:first-child img { display: block; width: auto; height: 56px; object-fit: contain; }
#main-header.ea-reference-header #nav-inner > ul { display: flex; align-items: center; gap: 28px; height: 100%; margin: 0 auto; padding: 0; list-style: none; position: static; z-index: 30; color: #0F172A; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
#main-header.ea-reference-header #nav-inner > ul > li { height: 100%; display: flex; align-items: center; position: static; }
#main-header.ea-reference-header #nav-inner > ul > li > button,
#main-header.ea-reference-header #nav-inner > ul > li > a { height: 100%; padding: 1rem 0; display: flex; align-items: center; gap: 6px; background: transparent; color: #0F172A; white-space: nowrap; }
#main-header.ea-reference-header #nav-inner > ul > li > button:hover,
#main-header.ea-reference-header #nav-inner > ul > li > a:hover { color: #2563EB; }
#main-header.ea-reference-header #nav-inner > ul > li > button > i,
#main-header.ea-reference-header #nav-inner > ul > li > a > i { color: #94A3B8; font-size: 10px; transition: transform .3s ease, color .3s ease; }
#main-header.ea-reference-header #nav-inner > ul > li:hover > button > i { color: #2563EB; transform: rotate(180deg); }
#main-header.ea-reference-header #nav-inner > ul > li > button span { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; border-radius: 4px; padding: 2px 6px; margin-left: 4px; font-size: 9px; line-height: 1; }
#main-header.ea-reference-header #nav-inner > ul > li > div { position: absolute; top: 100%; left: 0; width: 100%; padding: 0; background: #FFFFFF; border-top: 1px solid #DBEAFE; box-shadow: 0 20px 40px rgba(37,99,235,.08); opacity: 0; visibility: hidden; pointer-events: none; overflow: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 50; }
#main-header.ea-reference-header #nav-inner > ul > li:hover > div { opacity: 1; visibility: visible; pointer-events: auto; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child { width: min(100% - 2rem, 1400px); margin-inline: auto; display: grid; grid-template-columns: 25% 75%; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:first-child { padding: 40px; border-right: 1px solid #EFF6FF; background: linear-gradient(135deg, rgba(239,246,255,.65), #FFFFFF); }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:nth-child(2) { padding: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
#main-header.ea-reference-header #nav-inner > ul > li > div h3 { margin: 0 0 12px; color: #0F172A; font: 700 30px/1.15 Georgia, 'DM Serif Display', serif; }
#main-header.ea-reference-header #nav-inner > ul > li > div h4 { margin: 0 0 20px; padding-bottom: 8px; border-bottom: 1px solid #DBEAFE; color: #94A3B8; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
#main-header.ea-reference-header #nav-inner > ul > li > div p { margin: 0 0 28px; color: #64748B; font-size: 12px; line-height: 1.5; }
#main-header.ea-reference-header #nav-inner > ul > li > div a { color: #475569; }
#main-header.ea-reference-header #nav-inner > ul > li > div a:hover { color: #2563EB; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:nth-child(2) a { display: block; padding: 12px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 700; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:nth-child(2) a:hover { border-color: #DBEAFE; background: #EFF6FF; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:first-child > a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 12px; background: #2563EB; color: #FFFFFF; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:first-child > a:hover { background: #1D4ED8; color: #FFFFFF; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:last-child { display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; background: #F8FAFC; border-top: 1px solid #E2E8F0; color: #64748B; font-size: 10px; }
#main-header.ea-reference-header #nav-inner > div[class*="xl:flex"] { display: flex; align-items: center; gap: 12px; position: relative; z-index: 30; }
#main-header.ea-reference-header #nav-inner > div[class*="xl:flex"] > div { width: 192px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; }
#main-header.ea-reference-header #nav-inner > div[class*="xl:flex"] input { width: 100%; border: 0; outline: 0; background: transparent; color: #0F172A; font-size: 12px; font-weight: 700; }
#main-header.ea-reference-header #nav-inner > div[class*="xl:flex"] > a { padding: 8px; color: #475569; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
#main-header.ea-reference-header #nav-inner > div[class*="xl:flex"] > a:hover { color: #2563EB; }
#main-header.ea-reference-header #nav-inner > div[class*="xl:flex"] > a:last-child { padding: 10px 20px; border: 1px solid #0F172A; border-radius: 12px; background: #0F172A; color: #FFFFFF; font-size: 10px; letter-spacing: .15em; }
#main-header.ea-reference-header #nav-inner > div[class*="xl:flex"] > a:last-child:hover { border-color: #2563EB; background: #2563EB; }
#main-header.ea-reference-header #nav-inner > div[class*="lg:hidden"] { display: none; }
#main-header.ea-reference-header.scrolled #nav-inner { padding-top: 0 !important; padding-bottom: 0 !important; background: transparent !important; }

/* Reference mobile menu */
#mobile-overlay { display: block; position: fixed; inset: 0; z-index: 2147483001; background: rgba(15,23,42,.5); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s ease, visibility .4s ease; }
#mobile-overlay.hidden { display: block; }
#mobile-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
#mobile-menu { display: flex; position: fixed; top: 0; right: 0; bottom: 0; z-index: 2147483002; width: 90vw; max-width: 420px; flex-direction: column; overflow: hidden; background: #FFFFFF; box-shadow: -20px 0 50px rgba(0,0,0,.1); transform: translateX(100%); transition: transform .4s cubic-bezier(.16,1,.3,1); }
#mobile-menu.open { transform: translateX(0); }
#mobile-menu .mobile-accordion-content.hidden { display: none; }
#mobile-menu .mobile-accordion-content:not(.hidden) { display: block; }
#mobile-menu .mobile-accordion.open .accordion-icon { transform: rotate(180deg); color: #2563EB; }
#mobile-menu > div:first-child { min-height: 128px; padding: 32px 24px; display: flex; align-items: flex-start; justify-content: space-between; position: relative; overflow: hidden; background: #0F172A; color: #FFFFFF; border-bottom-left-radius: 24px; }
#mobile-menu > div:first-child::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(37,99,235,.3); filter: blur(34px); pointer-events: none; }
#mobile-menu > div:first-child > div { position: relative; z-index: 1; }
#mobile-menu > div:first-child > div > span { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; padding: 4px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.1); color: #BFDBFE; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#mobile-menu > div:first-child > div > span span { width: 6px; height: 6px; border-radius: 50%; background: #60A5FA; }
#mobile-menu > div:first-child img { display: block; width: auto; height: 36px; filter: brightness(0) invert(1); }
#mobile-menu > div:first-child button { position: relative; z-index: 1; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); color: #FFFFFF; }
#mobile-menu > div:nth-child(2) { flex: 1; overflow-y: auto; padding: 24px 24px 128px; background: #FFFFFF; }
#mobile-menu > div:nth-child(2) > div:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
#mobile-menu > div:nth-child(2) > div:first-child a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px; border: 1px solid #DBEAFE; border-radius: 16px; background: #EFF6FF; color: #2563EB; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#mobile-menu > div:nth-child(2) > div:first-child a:last-child { border-color: rgba(37,211,102,.3); background: rgba(37,211,102,.1); color: #16A34A; }
#mobile-menu .mobile-accordion { margin-bottom: 8px; overflow: hidden; border: 1px solid #F1F5F9; border-radius: 16px; background: #F8FAFC; }
#mobile-menu .accordion-trigger { display: flex; align-items: center; justify-content: space-between; padding: 16px; cursor: pointer; }
#mobile-menu .accordion-title { color: #0F172A; font: 700 18px/1.2 Georgia, 'DM Serif Display', serif; }
#mobile-menu .accordion-title span { margin-left: 4px; padding: 2px 6px; border-radius: 4px; background: #DBEAFE; color: #2563EB; font: 700 8px/1 Inter, sans-serif; vertical-align: middle; }
#mobile-menu .accordion-icon { color: #94A3B8; transition: transform .3s ease, color .3s ease; }
#mobile-menu .mobile-accordion-content { border-top: 1px solid #F1F5F9; background: #FFFFFF; }
#mobile-menu .mobile-accordion-content > div { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
#mobile-menu .mobile-accordion-content > div.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#mobile-menu .mobile-accordion-content a { display: block; padding: 12px; border: 1px solid transparent; border-radius: 12px; color: #475569; font-size: 13px; font-weight: 700; }
#mobile-menu .mobile-accordion-content a:hover { border-color: #E2E8F0; background: #F8FAFC; color: #0F172A; }
#mobile-menu > div:nth-child(2) > div:last-child { margin-top: 24px; padding-inline: 8px; }
#mobile-menu > div:nth-child(2) > div:last-child a,
#mobile-menu > div:nth-child(2) > div:last-child button { display: block; width: 100%; padding: 8px 0; border: 0; background: transparent; color: #475569; font: 700 18px/1.3 Georgia, 'DM Serif Display', serif; text-align: left; }
#mobile-menu > div:nth-child(2) > div:last-child button { color: #2563EB; }
#mobile-menu > div:last-child { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; display: flex; gap: 8px; padding: 16px; border-top: 1px solid #F1F5F9; background: #FFFFFF; box-shadow: 0 -15px 30px rgba(0,0,0,.03); }
#mobile-menu > div:last-child a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
#mobile-menu > div:last-child a:first-child { border: 1px solid #E2E8F0; background: #F8FAFC; color: #475569; }
#mobile-menu > div:last-child a:last-child { flex: 1.5; background: #0F172A; color: #FFFFFF; box-shadow: 0 8px 20px rgba(15,23,42,.25); }

/* Page-specific mobile-menu rules must not be able to break the reference shell. */
body.ea-reference-shell #mobile-menu { transform: translateX(100%) !important; }
body.ea-reference-shell #mobile-menu.open { transform: translateX(0) !important; }
body.ea-reference-shell #mobile-overlay { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
body.ea-reference-shell #mobile-overlay.open { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }

/* The homepage quick-action dock is part of the shared header experience. */
body.ea-reference-shell [aria-label="Quick actions"]:not(.ea-legacy-mobile-shell) {
  display: block !important;
  position: fixed !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 2147482990 !important;
  width: 100% !important;
}
body.ea-reference-shell [aria-label="Quick actions"]:not(.ea-legacy-mobile-shell) > div {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
@media (min-width: 1024px) {
  body.ea-reference-shell [aria-label="Quick actions"]:not(.ea-legacy-mobile-shell) { display: none !important; }
}

/* Reference footer, matching home.html dimensions and grid. */
footer.ea-reference-footer { display: block !important; width: 100%; margin: 0 !important; padding: 96px 0 48px; background: #050810 !important; border-top: 1px solid #1E293B; color: #FFFFFF !important; font-family: Inter, system-ui, sans-serif; }
footer.ea-reference-footer > div { width: min(100% - 3rem, 1300px); margin-inline: auto; }
footer.ea-reference-footer .footer-trust-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 80px; overflow: hidden; border: 1px solid #1E293B; border-radius: 32px; background: #1E293B; }
footer.ea-reference-footer .footer-trust-box > div { min-height: 124px; padding: 32px; background: #0B1220; text-align: center; }
footer.ea-reference-footer .footer-trust-box > div:hover { background: #0F172A; }
footer.ea-reference-footer .footer-trust-box p { margin: 0; }
footer.ea-reference-footer .footer-trust-box .text-3xl { color: #FFFFFF; font: 700 36px/1 Georgia, 'DM Serif Display', serif; letter-spacing: -.02em; }
footer.ea-reference-footer .footer-trust-box .text-\[8px\] { color: #64748B; font-size: 8px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
footer.ea-reference-footer .footer-trust-box .text-\[\#3B82F6\] { color: #3B82F6; }
footer.ea-reference-footer .footer-trust-box .fa-star { color: #C9A96E; }
footer.ea-reference-footer > div > div:nth-child(2) { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid #1E293B; }
footer.ea-reference-footer > div > div:nth-child(2) > div:first-child { max-width: 520px; }
footer.ea-reference-footer > div > div:nth-child(2) h4 { margin: 0 0 24px; color: #FFFFFF; font: 700 36px/1 Georgia, 'DM Serif Display', serif; }
footer.ea-reference-footer > div > div:nth-child(2) h4 span { color: #3B82F6; }
footer.ea-reference-footer > div > div:nth-child(2) p { margin: 0; max-width: 420px; color: #94A3B8; font-size: 14px; line-height: 1.6; font-weight: 500; }
footer.ea-reference-footer > div > div:nth-child(2) > div:last-child { width: 420px; flex: 0 0 420px; }
footer.ea-reference-footer > div > div:nth-child(2) > div:last-child h4,
footer.ea-reference-footer > div > div:nth-child(3) h4 { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid #1E293B; color: #FFFFFF; font: 700 10px/1.4 Inter, sans-serif; letter-spacing: .25em; text-transform: uppercase; }
footer.ea-reference-footer > div > div:nth-child(2) > div:last-child p { margin-bottom: 20px; color: #64748B; font-size: 12px; }
footer.ea-reference-footer #newsletter-form { display: flex; gap: 12px; }
footer.ea-reference-footer #newsletter-form input { min-width: 0; flex: 1; padding: 14px 20px; border: 1px solid #334155; border-radius: 12px; outline: 0; background: #0B1220; color: #FFFFFF; font-size: 14px; }
footer.ea-reference-footer #newsletter-form button { width: 60px; border: 0; border-radius: 12px; background: #2563EB; color: #FFFFFF; }
footer.ea-reference-footer #newsletter-status { margin-top: 12px; color: #60A5FA; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
footer.ea-reference-footer > div > div:nth-child(3) { display: grid; grid-template-columns: 3fr 2fr 2fr 2fr 3fr; gap: 32px; margin-bottom: 80px; }
footer.ea-reference-footer > div > div:nth-child(3) ul { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; color: #94A3B8; font-size: 14px; }
footer.ea-reference-footer > div > div:nth-child(3) a { color: #94A3B8; }
footer.ea-reference-footer > div > div:nth-child(3) a:hover { color: #60A5FA; }
footer.ea-reference-footer > div > div:nth-child(3) .footer-link::before { content: ''; display: inline-block; width: 0; height: 1px; margin-right: 0; vertical-align: middle; background: #60A5FA; transition: width .25s ease, margin .25s ease; }
footer.ea-reference-footer > div > div:nth-child(3) .footer-link:hover::before { width: 12px; margin-right: 6px; }
footer.ea-reference-footer > div > div:nth-child(3) .flex.items-center { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.05); color: #CBD5E1; font-weight: 700; }
footer.ea-reference-footer > div > div:nth-child(3) .flex.items-center:hover { background: rgba(255,255,255,.1); color: #FFFFFF; }
footer.ea-reference-footer > div > div:nth-child(3) .bg-\[\#2563EB\] { background: #2563EB; color: #FFFFFF !important; }
footer.ea-reference-footer > div > div:nth-child(3) > div:last-child > div { display: flex; flex-direction: column; gap: 12px; }
footer.ea-reference-footer > div > div:nth-child(3) > div:last-child > div > a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; border: 1px solid #334155; border-radius: 12px; background: #0B1220; color: #94A3B8; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
footer.ea-reference-footer > div > div:nth-child(3) > div:last-child > div > a:hover { color: #FFFFFF; border-color: #3B82F6; }
footer.ea-reference-footer > div > div:nth-child(3) > div:last-child > div + div { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
footer.ea-reference-footer > div > div:nth-child(3) > div:last-child > div + div a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.05); }
footer.ea-reference-footer > div > div:last-child { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; border-top: 1px solid #1E293B; color: #64748B; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
footer.ea-reference-footer > div > div:last-child > div:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
footer.ea-reference-footer > div > div:last-child a:hover { color: #FFFFFF; }
footer.ea-reference-footer > div > p:last-child { max-width: 900px; margin: 40px auto 0; padding-bottom: 0; color: #475569; font-size: 8px; line-height: 1.7; text-align: center; text-transform: uppercase; letter-spacing: .25em; }

@media (max-width: 1180px) {
  #main-header.ea-reference-header #nav-inner > ul { gap: 16px; }
  #main-header.ea-reference-header #nav-inner > div[class*="xl:flex"] { gap: 6px; }
  #main-header.ea-reference-header #nav-inner > div[class*="xl:flex"] > div { width: 150px; }
}
@media (max-width: 1023px) {
  #main-header.ea-reference-header #nav-inner > ul,
  #main-header.ea-reference-header #nav-inner > div[class*="xl:flex"] { display: none; }
  #main-header.ea-reference-header #nav-inner > div[class*="lg:hidden"] { display: flex; align-items: center; gap: 12px; position: relative; z-index: 30; }
  #main-header.ea-reference-header #nav-inner > div[class*="lg:hidden"] a,
  #main-header.ea-reference-header #nav-inner > div[class*="lg:hidden"] button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
  #main-header.ea-reference-header #nav-inner > div[class*="lg:hidden"] a { background: #EFF6FF; border: 1px solid #DBEAFE; color: #2563EB; }
  #main-header.ea-reference-header #nav-inner > div[class*="lg:hidden"] button { background: #0F172A; color: #FFFFFF; }
  #main-header.ea-reference-header > div:first-child > div > div:last-child { display: none; }
  #main-header.ea-reference-header > div:first-child > div > div:first-child > a:nth-of-type(2),
  #main-header.ea-reference-header > div:first-child > div > div:first-child > span { display: none; }
}
@media (max-width: 760px) {
  body.ea-reference-shell { padding-top: 112px !important; }
  #main-header.ea-reference-header > div:first-child > div { width: 100%; padding-inline: 12px; }
  #main-header.ea-reference-header > div:first-child > div > div:first-child { gap: 10px; }
  #main-header.ea-reference-header > div:first-child > div > div:first-child a { font-size: 11px; }
  #main-header.ea-reference-header #nav-inner { width: 100%; padding-inline: 12px; }
  #main-header.ea-reference-header #nav-inner > a:first-child img { height: 52px; }
  footer.ea-reference-footer { padding: 64px 0 32px; }
  footer.ea-reference-footer > div { width: min(100% - 1.5rem, 1300px); }
  footer.ea-reference-footer .footer-trust-box { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 48px; border-radius: 24px; }
  footer.ea-reference-footer .footer-trust-box > div { min-height: 104px; padding: 24px 12px; }
  footer.ea-reference-footer .footer-trust-box .text-3xl { font-size: 28px; }
  footer.ea-reference-footer > div > div:nth-child(2) { display: block; margin-bottom: 36px; padding-bottom: 36px; }
  footer.ea-reference-footer > div > div:nth-child(2) > div:last-child { width: 100%; margin-top: 32px; }
  footer.ea-reference-footer > div > div:nth-child(3) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; margin-bottom: 44px; }
  footer.ea-reference-footer > div > div:last-child { align-items: flex-start; flex-direction: column; line-height: 1.8; }
  footer.ea-reference-footer > div > div:last-child > div:last-child { justify-content: flex-start; gap: 10px 16px; }
  footer.ea-reference-footer > div > p:last-child { text-align: left; letter-spacing: .1em; }
}

/* The homepage footer has an ambient layer before its content shell. */
footer.ea-reference-footer > div:first-child { position: absolute; inset: 0; width: 100%; margin: 0; pointer-events: none; }
footer.ea-reference-footer > div:last-child { position: relative; z-index: 10; width: min(100% - 3rem, 1300px); margin-inline: auto; }
footer.ea-reference-footer > div:last-child > div:nth-child(4) { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; border-top: 1px solid #1E293B; color: #64748B; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
footer.ea-reference-footer > div:last-child > div:nth-child(4) > div:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
footer.ea-reference-footer > div:last-child > div:nth-child(4) a:hover { color: #FFFFFF; }
footer.ea-reference-footer > div:last-child > div:nth-child(5) { max-width: 900px; margin: 40px auto 0; padding-bottom: 0; color: #475569; font-size: 8px; line-height: 1.7; text-align: center; text-transform: uppercase; letter-spacing: .25em; }

/* Keep the reference shell stable when page-level Tailwind or legacy CSS loads after it. */
footer.ea-reference-footer > div:last-child > .footer-trust-box { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
footer.ea-reference-footer > div:last-child > div:nth-child(2) { display: flex !important; }
footer.ea-reference-footer > div:last-child > div:nth-child(3) { display: grid !important; grid-template-columns: 3fr 2fr 2fr 2fr 3fr !important; }
@media (max-width: 760px) {
  footer.ea-reference-footer > div:last-child { width: min(100% - 1.5rem, 1300px); }
  footer.ea-reference-footer > div:last-child > div:nth-child(4) { align-items: flex-start; flex-direction: column; line-height: 1.8; }
  footer.ea-reference-footer > div:last-child > div:nth-child(4) > div:last-child { justify-content: flex-start; gap: 10px 16px; }
  footer.ea-reference-footer > div:last-child > div:nth-child(5) { text-align: left; letter-spacing: .1em; }
  footer.ea-reference-footer > div:last-child > .footer-trust-box { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  footer.ea-reference-footer > div:last-child > div:nth-child(2) { display: block !important; }
  footer.ea-reference-footer > div:last-child > div:nth-child(3) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Final reference-shell lock: these hooks are added by site-footer.js so page
 * styles cannot change the footer's five-column desktop composition. */
footer.ea-footer-reference,
footer.ea-footer-reference * { box-sizing: border-box; }
footer.ea-footer-reference > .ea-footer-reference-content {
  position: relative !important;
  z-index: 10 !important;
  width: min(100% - 3rem, 1300px) !important;
  margin-inline: auto !important;
}
footer.ea-footer-reference .ea-footer-reference-trust {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1px !important;
  margin: 0 0 80px !important;
  padding: 0 !important;
  overflow: hidden !important;
}
footer.ea-footer-reference .ea-footer-reference-trust > div:not(.absolute) {
  min-width: 0 !important;
  min-height: 124px !important;
  padding: 32px !important;
}
footer.ea-footer-reference .ea-footer-reference-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 48px !important;
  margin: 0 0 64px !important;
  padding: 0 0 64px !important;
  border-bottom: 1px solid #1E293B !important;
}
footer.ea-footer-reference .ea-footer-reference-brand > div:first-child { max-width: 520px !important; }
footer.ea-footer-reference .ea-footer-reference-brand > div:last-child { width: 420px !important; flex: 0 0 420px !important; }
footer.ea-footer-reference .ea-footer-reference-links {
  display: grid !important;
  grid-template-columns: 3fr 2fr 2fr 2fr 3fr !important;
  gap: 32px !important;
  margin: 0 0 80px !important;
  padding: 0 !important;
}
footer.ea-footer-reference .ea-footer-reference-links > div { min-width: 0 !important; }
footer.ea-footer-reference .ea-footer-reference-bottom {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 32px 0 0 !important;
  border-top: 1px solid #1E293B !important;
}
footer.ea-footer-reference .ea-footer-reference-disclaimer {
  max-width: 900px !important;
  margin: 40px auto 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

/* Compact desktop navigation: the large menu remains full-width but no longer
 * consumes most of the viewport when Academy or another menu is hovered. */
#main-header.ea-reference-header #nav-inner > a:first-child img { height: 50px !important; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:first-child { padding: 28px !important; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:nth-child(2) { padding: 28px !important; gap: 24px !important; }
#main-header.ea-reference-header #nav-inner > ul > li > div h3 { font-size: 24px !important; line-height: 1.12 !important; margin-bottom: 10px !important; }
#main-header.ea-reference-header #nav-inner > ul > li > div p { margin-bottom: 18px !important; font-size: 11px !important; }
#main-header.ea-reference-header #nav-inner > ul > li > div h4 { margin-bottom: 12px !important; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:nth-child(2) a { padding: 9px !important; border-radius: 9px !important; font-size: 12px !important; }
#main-header.ea-reference-header #nav-inner > ul > li > div > div:last-child { padding: 12px 28px !important; }

@media (max-width: 1023px) {
  #main-header.ea-reference-header #nav-inner > a:first-child img { height: 46px !important; }
  body.ea-reference-shell #mobile-menu { width: min(88vw, 390px) !important; max-width: 390px !important; }
  body.ea-reference-shell #mobile-menu > div:first-child { min-height: 112px !important; padding: 24px 20px !important; }
  body.ea-reference-shell #mobile-menu > div:first-child > div > span { margin-bottom: 14px !important; }
  body.ea-reference-shell #mobile-menu > div:first-child img { height: 32px !important; }
  body.ea-reference-shell #mobile-menu > div:nth-child(2) { padding: 18px 16px 112px !important; }
  body.ea-reference-shell #mobile-menu > div:nth-child(2) > div:first-child { gap: 8px !important; margin-bottom: 18px !important; }
  body.ea-reference-shell #mobile-menu > div:nth-child(2) > div:first-child a { padding: 11px 4px !important; border-radius: 12px !important; }
  body.ea-reference-shell #mobile-menu .mobile-accordion { border-radius: 12px !important; }
  body.ea-reference-shell #mobile-menu .accordion-trigger { padding: 14px !important; }
  body.ea-reference-shell #mobile-menu .accordion-title { font-size: 16px !important; }
  body.ea-reference-shell #mobile-menu .mobile-accordion-content > div { padding: 12px !important; gap: 6px !important; }
  body.ea-reference-shell #mobile-menu .mobile-accordion-content a { padding: 10px !important; font-size: 12px !important; }
  body.ea-reference-shell #mobile-menu > div:nth-child(2) > div:last-child { margin-top: 18px !important; padding-inline: 4px !important; }
  body.ea-reference-shell #mobile-menu > div:nth-child(2) > div:last-child a,
  body.ea-reference-shell #mobile-menu > div:nth-child(2) > div:last-child button { font-size: 16px !important; }
  body.ea-reference-shell #mobile-menu > div:last-child { padding: 12px !important; }
  body.ea-reference-shell #mobile-menu > div:last-child a { padding: 12px 6px !important; }
}

@media (max-width: 760px) {
  footer.ea-footer-reference > .ea-footer-reference-content { width: min(100% - 1.5rem, 1300px) !important; }
  footer.ea-footer-reference .ea-footer-reference-trust { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin-bottom: 48px !important; }
  footer.ea-footer-reference .ea-footer-reference-trust > div:not(.absolute) { min-height: 104px !important; padding: 24px 12px !important; }
  footer.ea-footer-reference .ea-footer-reference-brand { display: block !important; margin-bottom: 36px !important; padding-bottom: 36px !important; }
  footer.ea-footer-reference .ea-footer-reference-brand > div:last-child { width: 100% !important; margin-top: 32px !important; }
  footer.ea-footer-reference .ea-footer-reference-links { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 18px !important; margin-bottom: 44px !important; }
  footer.ea-footer-reference .ea-footer-reference-bottom { align-items: flex-start !important; flex-direction: column !important; line-height: 1.8 !important; }
  footer.ea-footer-reference .ea-footer-reference-bottom > div:last-child { justify-content: flex-start !important; gap: 10px 16px !important; }
  footer.ea-footer-reference .ea-footer-reference-disclaimer { text-align: left !important; letter-spacing: .1em !important; }
}

/* The reference pages already reserve their header space inside #content.
 * Keeping the offset there prevents a second blank band below the fixed header. */
body.ea-reference-shell { padding-top: 0 !important; }
body.ea-reference-shell > main#content { padding-top: 112px !important; }

/* Keep the mobile header's decorative glow out of document flow. Without this
 * override, the injected shell can treat the glow layer as a normal flex item
 * and create the oversized dark gap shown above the menu links. */
body.ea-reference-shell #mobile-menu > div:first-child > div:first-child {
  position: absolute !important;
  right: -80px !important;
  bottom: -80px !important;
  width: 240px !important;
  height: 240px !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
body.ea-reference-shell #mobile-menu > div:first-child > div:nth-child(2) {
  position: relative !important;
  z-index: 1 !important;
}

/* The original homepage script toggles only the accordion parent. Keep its
 * existing `hidden` utility from suppressing the content when that parent is
 * open, while retaining the closed state for every other accordion. */
body.ea-reference-shell #mobile-menu .mobile-accordion.open .mobile-accordion-content.hidden {
  display: block !important;
  max-height: 500px !important;
}

/* Final desktop reference dimensions: restore the original homepage header
 * and mega-menu proportions used by the live reference screenshots. */
@media (min-width: 1024px) {
  #main-header.ea-reference-header #nav-inner > a:first-child img {
    height: 64px !important;
  }
  #main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:first-child {
    padding: 40px !important;
  }
  #main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:nth-child(2) {
    padding: 40px !important;
    gap: 40px !important;
  }
  #main-header.ea-reference-header #nav-inner > ul > li > div h3 {
    font-size: 30px !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
  }
  #main-header.ea-reference-header #nav-inner > ul > li > div p {
    margin-bottom: 28px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  #main-header.ea-reference-header #nav-inner > ul > li > div h4 {
    margin-bottom: 20px !important;
  }
  #main-header.ea-reference-header #nav-inner > ul > li > div > div:first-child > div:nth-child(2) a {
    padding: 12px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }
  #main-header.ea-reference-header #nav-inner > ul > li > div > div:last-child {
    padding: 16px 40px !important;
  }
}

@media (max-width: 1023px) {
  #main-header.ea-reference-header #nav-inner > a:first-child img {
    height: 56px !important;
  }
}
