/* ============================================
   Payment Economics Institute - Unified Theme
   ============================================ */

/* ================================================== */
/* Design Tokens                                      */
/* ================================================== */

:root, [data-theme="dark"] {
  /* Background scale */
  --bg-deep: #080F1E;
  --bg-primary: #0C1A33;
  --bg-mid: #12254A;
  --bg-light: #1B3460;
  --bg-card: rgba(12,26,51,0.6);
  --bg-card-solid: #0E1F3D;
  --bg-card-hover: rgba(18,37,74,0.8);
  --bg-subtle: rgba(201,152,26,0.06);
  --bg-input: rgba(8,15,30,0.5);

  /* Text scale */
  --text-primary: #FFFFFF;
  --text-secondary: #D0DADA;
  --text-tertiary: #B0C0C0;
  --text-muted: #8AA0A0;
  --text-faint: #6A8080;
  --text-faintest: #4A6060;

  /* Gold */
  --gold: #C9981A;
  --gold-light: #E8B838;
  --gold-pale: rgba(201,152,26,0.12);
  --gold-accent: #C9981A;
  --gold-hover: rgba(201,152,26,0.08);

  /* Borders */
  --border-subtle: rgba(201,152,26,0.1);
  --border-medium: rgba(201,152,26,0.15);
  --border-card: rgba(201,152,26,0.12);
  --border-divider: rgba(255,255,255,0.06);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-elevated: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-btn: 0 4px 24px rgba(201,152,26,0.3);

  /* Surface */
  --header-bg: rgba(8,15,30,0.95);
  --overlay-bg: rgba(8,15,30,0.92);
  --code-bg: rgba(12,26,51,0.8);
  --footer-bg: #060A14;
  --footer-border: rgba(201,152,26,0.08);

  /* Button */
  --btn-gold-text: #080F1E;
  --btn-outline-border: rgba(201,152,26,0.3);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Legacy aliases */
  --navy-deep: #080F1E;
  --navy-primary: #0C1A33;
  --navy-mid: #12254A;
  --navy-light: #1B3460;
  --white: #FFFFFF;
  --gray-100: #D0DADA;
  --gray-200: #B0C0C0;
  --gray-300: #8AA0A0;
  --gray-400: #78908F;
  --gray-500: #4A6060;
}

[data-theme="light"] {
  /* Background scale */
  --bg-deep: #FFFFFF;
  --bg-primary: #F5F6FA;
  --bg-mid: #EBEDF3;
  --bg-light: #E0E3EB;
  --bg-card: rgba(255,255,255,0.9);
  --bg-card-solid: #FFFFFF;
  --bg-card-hover: rgba(245,246,250,0.95);
  --bg-subtle: rgba(201,152,26,0.06);
  --bg-input: rgba(255,255,255,0.8);

  /* Text scale */
  --text-primary: #12254A;
  --text-secondary: #2A3A5C;
  --text-tertiary: #4A5A7A;
  --text-muted: #6A7A9A;
  --text-faint: #8A9AB0;
  --text-faintest: #AAB4C8;

  /* Gold */
  --gold: #B08515;
  --gold-light: #C9981A;
  --gold-pale: rgba(176,133,21,0.10);
  --gold-accent: #B08515;
  --gold-hover: rgba(176,133,21,0.06);

  /* Borders */
  --border-subtle: rgba(18,37,74,0.08);
  --border-medium: rgba(18,37,74,0.12);
  --border-card: rgba(18,37,74,0.10);
  --border-divider: rgba(18,37,74,0.06);

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(18,37,74,0.08);
  --shadow-elevated: 0 4px 24px rgba(18,37,74,0.12);
  --shadow-btn: 0 2px 12px rgba(176,133,21,0.2);

  /* Surface */
  --header-bg: rgba(255,255,255,0.95);
  --overlay-bg: rgba(255,255,255,0.92);
  --code-bg: rgba(245,246,250,0.9);
  --footer-bg: #F0F1F5;
  --footer-border: rgba(18,37,74,0.06);

  /* Button */
  --btn-gold-text: #12254A;
  --btn-outline-border: rgba(176,133,21,0.3);

  /* Legacy aliases */
  --navy-deep: #FFFFFF;
  --navy-primary: #F5F6FA;
  --navy-mid: #EBEDF3;
  --navy-light: #E0E3EB;
  --white: #12254A;
  --gray-100: #1A2E4A;
  --gray-200: #2A3A5C;
  --gray-300: #3A4A6A;
  --gray-400: #4A5A7A;
  --gray-500: #5A6A8A;
}

/* ================================================== */
/* Design Tokens */
/* ================================================== */


[data-theme="dark"] {
  --surface: #152540;
  --surface-2: #1e3454;
  --bg: #0d1b2e;
  --text-body: #e8e0d0;
  --text-muted: #9aabbf;
  --border: rgba(201,168,76,0.2);
  --shadow: 0 4px 32px rgba(0,0,0,0.4);
  --cream: #e8e0d0;
}


[data-theme="light"] .auth-card {
  background: var(--white);
  border: 1px solid rgba(176,133,21,0.15);
  box-shadow: 0 8px 40px rgba(18,37,74,0.08);
}

[data-theme="light"] .auth-consent span { color: #4A5A7A !important; }

[data-theme="light"] .auth-field input, [data-theme="light"] .auth-field select {
  background: #F5F6FA;
  border-color: rgba(176,133,21,0.2);
  color: var(--navy-mid);
}

[data-theme="light"] .auth-field input::placeholder { color: #4A5A7A; }

[data-theme="light"] .auth-field label { color: #4A5A7A; }

[data-theme="light"] .auth-links a { color: #7A5E0E; }

[data-theme="light"] .auth-modal {
  background: var(--white) !important;
  border-color: rgba(176,133,21,0.15) !important;
  box-shadow: 0 8px 40px rgba(18,37,74,0.08) !important;
}

[data-theme="light"] .auth-tab { color: #4A5A7A; }

[data-theme="light"] .auth-tab.active { background: rgba(176,133,21,0.1); color: #7A5E0E; }

[data-theme="light"] .bench-table td { color: #2A3A5C; }

[data-theme="light"] .bench-table th { color: #7A5E0E; }

[data-theme="light"] .bench-table th, [data-theme="light"] .bench-table td { border-bottom-color: rgba(176,133,21,0.15); }

[data-theme="light"] .bench-table tr:hover td { background: rgba(176,133,21,0.06); }

[data-theme="light"] .benchmark-table td { color: #2A3A5C; border-top-color: rgba(176,133,21,0.1); }

[data-theme="light"] .benchmark-table td.highlight { color: #8A6510; }

[data-theme="light"] .benchmark-table td:first-child { color: var(--navy-primary); }

[data-theme="light"] .benchmark-table th { background: rgba(176,133,21,0.1); color: #8A6510; }

[data-theme="light"] .benchmark-table tr:hover td { background: rgba(176,133,21,0.04); }

[data-theme="light"] .calc-field input, [data-theme="light"] .calc-field select {
  background: rgba(240,242,248,0.9);
  color: var(--navy-mid);
  border-color: rgba(176,133,21,0.25);
}

[data-theme="light"] .calc-result-card { background: rgba(240,242,248,0.8); border-color: rgba(176,133,21,0.15); }

[data-theme="light"] .calc-result-card .value { color: #8A6510; }

[data-theme="light"] .cta-box { background: linear-gradient(145deg, rgba(176,133,21,0.08), rgba(176,133,21,0.03)); border-color: rgba(176,133,21,0.2); }

[data-theme="light"] .cta-box h3 {
  font-family: var(--font-display); font-size: 1.1rem; margin-top: 24px; margin-bottom: 12px; color: var(--white);
}

[data-theme="light"] .cta-box p { color: #4A5A7A; }

[data-theme="light"] .eng-card { background: var(--white); border-color: rgba(176,133,21,0.2); }

[data-theme="light"] .eng-card.primary { background: rgba(201,152,26,0.05); border-color: rgba(176,133,21,0.3); }

[data-theme="light"] .footer { border-top-color: rgba(176,133,21,0.15); }

[data-theme="light"] .footer-bottom a { color: #3A4A6A; }

[data-theme="light"] .footer-bottom p { color: #4A5A7A; }

[data-theme="light"] .footer-links a { color: #4A5A7A; }

[data-theme="light"] .footer-tagline { color: #4A5A7A; }

[data-theme="light"] .formula-box { background: rgba(176,133,21,0.08); border-color: rgba(176,133,21,0.25); }

[data-theme="light"] .formula-box .formula { color: var(--navy-mid); }

[data-theme="light"] .formula-box .label { color: #4A5A7A; }

[data-theme="light"] .fw-content a { color: #7A5E0E; }

[data-theme="light"] .fw-content h2 {
  font-family: var(--font-display); font-size: 1.4rem; margin-top: 40px; margin-bottom: 16px; color: var(--gold-accent);
}

[data-theme="light"] .fw-content h3 { color: #7A5E0E; }

[data-theme="light"] .fw-content p { color: #2A3A5C; }

[data-theme="light"] .fw-content strong { color: var(--navy-deep); }

[data-theme="light"] .fw-hero p { color: #4A5A7A; }

[data-theme="light"] .gate-consent { color: #4A5A7A; }

[data-theme="light"] .gate-consent a { color: #7A5E0E; }

[data-theme="light"] .gate-field input {
  width: 100%; padding: 14px 18px; margin-bottom: 12px; background: rgba(201,152,26,0.06); border: 1px solid rgba(201,152,26,0.15); border-radius: 10px; color: var(--white); font-size: 0.95rem; font-family: var(--font-body);
}

[data-theme="light"] .gate-field input::placeholder { color:#4A5A7A; }

[data-theme="light"] .gate-tab { border-color: rgba(176,133,21,0.25); color: #4A5A7A; }

[data-theme="light"] .gate-tab.active {
  background: rgba(176,133,21,0.1);
  border-color: rgba(176,133,21,0.4);
  color: #7A5E0E;
}


[data-theme="light"] .header { background: rgba(245,246,250,0.97); border-bottom-color: rgba(176,133,21,0.15); }

[data-theme="light"] .highlight { background: rgba(176,133,21,0.08); border-left-color: #7A5E0E; }

[data-theme="light"] .highlight p { color: #2A3A5C; }


[data-theme="light"] .logo-text { color: var(--navy-mid); }

[data-theme="light"] .nav-dropdown-menu {
  background: rgba(255,255,255,0.98) !important;
  border-color: rgba(18,37,74,0.1) !important;
  box-shadow: 0 8px 32px rgba(18,37,74,0.12) !important;
}

[data-theme="light"] .nav-dropdown-menu a { color: #4A5A7A !important; }

[data-theme="light"] .nav-dropdown-menu a:hover { color: var(--navy-mid) !important; background: rgba(176,133,21,0.06) !important; }

[data-theme="light"] .partner-bar { background: #EBEDF3; border-top-color: rgba(176,133,21,0.12); }

[data-theme="light"] .partner-bar .label { color: #4A5A7A; }

[data-theme="light"] .partner-bar a:not(.btn) { color: #7A5E0E; }

[data-theme="light"] .partner-bar p { color: #1A2E4A; }


[data-theme="light"] .source-badge {
  background: rgba(176,133,21,0.08);
  border-color: rgba(176,133,21,0.2);
  color: #8A6510;
}

[data-theme="light"] .step { background: rgba(255,255,255,0.8); border-color: rgba(176,133,21,0.15); }

[data-theme="light"] .step h3 { color: var(--navy-mid); }

[data-theme="light"] .step p { color: #2A3A5C; }

[data-theme="light"] .subscribe-strip {
  background: linear-gradient(135deg, #EEF0F7, #F5F6FA);
  border-top-color: rgba(176,133,21,0.2);
  border-bottom-color: rgba(176,133,21,0.2);
  text-align: center;
}

[data-theme="light"] .subscribe-strip::before { background: radial-gradient(circle, rgba(176,133,21,0.07) 0%, transparent 65%); }

[data-theme="light"] .subscribe-strip__copy h3 { color: var(--navy-mid); }

[data-theme="light"] .subscribe-strip__error { color: #cc2222; }

[data-theme="light"] .subscribe-strip__gdpr span { color: #4A5A7A; }

[data-theme="light"] .subscribe-strip__inputs input {
  background: var(--white);
  border-color: rgba(176,133,21,0.3);
  color: var(--navy-mid);
}

[data-theme="light"] .subscribe-strip__inputs input::placeholder { color: #4A5A7A; }

[data-theme="light"] .subscribe-strip__inputs input:focus { border-color: #7A5E0E; }

[data-theme="light"] .subscribe-strip__sub { color: #4A5A7A; }

[data-theme="light"] .tier-card .tier-desc { color: #4A5A7A; }

[data-theme="light"] .tier-card .tier-range { color: var(--navy-primary); }

[data-theme="light"] .tier-card--none { background: rgba(106,128,128,0.05); }

[data-theme="light"] .variable-card { background: rgba(255,255,255,0.8); border-color: rgba(176,133,21,0.2); }

[data-theme="light"] .variable-card h3 { color: #7A5E0E; }

[data-theme="light"] .variable-card p { color: #2A3A5C; }

[data-theme="light"] a:not(.btn):not(.auth-btn):not(.nav-link):not([class*="btn"]) { color: #7A5E0E; }

[data-theme="light"] body {
  font-family: var(--font-body); background: var(--navy-deep); color: var(--white); line-height: 1.7;
}

/* ================================================== */
/* Header and Navigation                              */
/* ================================================== */

.header {
  padding: 18px 0;
  border-bottom: 1px solid rgba(201,152,26,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8,15,30,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}
.logo span { color: var(--gold); }
.logo img { height: 28px; width: 28px; border-radius: 50%; margin-right: 8px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a:not(.btn) {
  font-size: 0.85rem;
  color: var(--gray-200);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.25s;
  white-space: nowrap;
}
.nav a:not(.btn):hover {
  color: var(--white);
  background: rgba(201,152,26,0.08);
}

.nav .btn {
  padding: 10px 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.nav .divider {
  width: 1px;
  height: 20px;
  background: rgba(201,152,26,0.15);
  margin: 0 4px;
}

.nav-signin {
  cursor: pointer;
  color: var(--gold-light);
}

/* Buttons */
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep) !important;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.88rem;
  white-space: nowrap;
}
.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,152,26,0.3);
}

.btn--outline {
  border: 1px solid rgba(201,152,26,0.3);
  color: var(--gold-light);
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 10px 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.btn--outline:hover {
  border-color: var(--gold);
  background: rgba(201,152,26,0.08);
}

/* Button sizes */
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-md { padding: 12px 28px; font-size: 0.9rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding: 8px 0;
  margin-top: 8px;
  background: rgba(12,26,51,0.98);
  border: 1px solid rgba(201,152,26,0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--gray-200);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(201,152,26,0.08);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================== */
/* Mobile Navigation (768px and below)                */
/* ================================================== */

@media (max-width: 768px) {
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--navy-primary);
  }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav .divider { display: none; }

  .nav.open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 75%;
    max-width: 280px;
    flex-direction: column;
    background: linear-gradient(180deg, var(--navy-primary), var(--navy-deep));
    padding: 72px 0 32px;
    z-index: 1001;
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    overflow-y: auto;
  }

  .nav.open a:not(.btn) {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(201,152,26,0.06);
  }

  .nav.open .btn {
    display: block;
    margin: 20px 20px 0;
    width: calc(100% - 40px);
    text-align: center;
  }

  .nav.open .btn.btn--gold {
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
    margin-top: 24px;
  }

  .nav.open .btn.btn--outline {
    margin-top: 10px;
    padding: 11px 16px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .nav.open .nav-dropdown > a {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
  }

  .nav.open .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    background: rgba(8,15,30,0.5);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  .nav.open .nav-dropdown-menu a {
    padding: 12px 40px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
  }

  header .nav { margin-left: 0; }
  .nav-toggle { margin-left: auto; }
}

/* Light mode nav overrides */
[data-theme="light"] .nav-dropdown-menu {
  background: rgba(255,255,255,0.98);
  border-color: rgba(18,37,74,0.1);
  box-shadow: 0 8px 32px rgba(18,37,74,0.12);
}
[data-theme="light"] .nav-dropdown-menu a { color: #4A5A7A; }
[data-theme="light"] .nav-dropdown-menu a:hover { color: var(--navy-mid); background: rgba(176,133,21,0.06); }


.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }


[data-theme="light"] li strong { color: var(--navy-mid); }

[data-theme="light"] strong { color: var(--navy-mid); }


/* ================================================== */
/* Reset and Base Elements */
/* ================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,*::before,*::after {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.7;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 16px;
}


html { scroll-behavior: smooth; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ================================================== */
/* Layout */
/* ================================================== */

.assessment-feature .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.calc > .container > p {
  color: var(--gray-200);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* REMOVED: page-specific .container rule that was incorrectly globalized */

.hidden {
  display: none !important;
}

.partner-bar .container { text-align: center; }

.stat-bar .container {
  display: flex;
  justify-content: center;
  gap: clamp(32px,6vw,80px);
  flex-wrap: wrap;
}

/* ================================================== */
/* Accessibility */
/* ================================================== */

.skip-nav {
  position:absolute;
  top:-100%;
  left:50%;
  transform:translateX(-50%);
  background:var(--gold);
  color:var(--navy-deep);
  padding:12px 24px;
  border-radius:0 0 8px 8px;
  font-family:"DM Sans",sans-serif;
  font-size:0.9rem;
  font-weight:600;
  z-index:9999;
  text-decoration:none;
  transition:top 0.2s;
}

.skip-nav:focus {
  top:0;
  outline:3px solid var(--gold);
  outline-offset:2px;
}


/* ================================================== */
/* Header */
/* ================================================== */

.footer .logo {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--white); letter-spacing: -0.01em; display: flex; align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px; width: 28px; border-radius: 50%; margin-right: 8px;
}

.logo span {
  color: var(--gold);
}

/* ================================================== */
/* Navigation */
/* ================================================== */


.nav }


  }


/* ================================================== */
/* Buttons */
/* ================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  text-decoration: none;
}

.btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.btn--large { padding: 14px 28px; font-size: 0.9rem; }

.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,152,26,0.4); }


.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,152,26,0.3); }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}



/* ================================================== */
/* Hero */
/* ================================================== */

.hero {
  padding: clamp(48px,8vw,96px) 0 clamp(48px,8vw,96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em { color: var(--gold-light); font-style: italic; }

.hero p {
  color: var(--gray-200);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-formula {
  margin: 48px auto 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  padding: 28px 36px;
  background: rgba(201,152,26,0.06);
  border: 1px solid rgba(201,152,26,0.15);
  border-radius: 16px;
}

.hero-formula .formula {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 8px;
}

.hero-formula .formula-label { font-size: 0.8rem; color: var(--gray-300); }

.hero-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
  background: rgba(201,152,26,0.08);
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 16px;
  padding: 20px 32px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-200);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201,152,26,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content { ; }

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.hero__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 16px;
}

.hero__series {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gray-200);
  margin-bottom: 24px;
}


/* ================================================== */
/* Sections and Eyebrow */
/* ================================================== */


.section { padding: clamp(60px,10vw,120px) 0; text-align: center; }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section p.lead {
  font-size: 1.05rem;
  color: var(--gray-200);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}

.section--alt {
  background: var(--navy-primary);
  text-align: center;
}

.faq { text-align: center; }


.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 32px;
  text-align: center;
}

.subscribe-strip__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}


/* ================================================== */
/* Cards and Grid Components */
/* ================================================== */

.eng-card {
  background: linear-gradient(145deg, rgba(12,26,51,0.8), rgba(8,15,30,0.9));
  border: 1px solid rgba(201,152,26,0.12);
  border-radius: 20px;
  padding: 36px 32px;
}

.eng-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.eng-card.primary { border-color: rgba(201,152,26,0.3); background: linear-gradient(145deg, rgba(201,152,26,0.07), rgba(12,26,51,0.9)); }

.eng-cta { margin-top: 28px; }

.eng-desc {
  font-size: 0.92rem;
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 20px;
}

.eng-detail {
  font-size: 0.85rem;
  color: var(--gray-300);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
}

.eng-detail::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.faq-item { padding: 24px 0; border-bottom: 1px solid rgba(201,152,26,0.08); }

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--gray-300);
  line-height: 1.7;
}

.feature {
  background: rgba(201,152,26,0.05);
  border: 1px solid rgba(201,152,26,0.1);
  border-radius: 12px;
  padding: 24px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--gold-light);
}

.feature p { font-size: 0.9rem; color: var(--gray-300); }

.featured-card {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(201,152,26,0.12), rgba(201,152,26,0.04));
  border-color: rgba(201,152,26,0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.featured-card h3 { font-size: 1.5rem; }

.featured-card__contents { margin-top: 16px; }

.featured-card__contents li {
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}

.featured-card__contents li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.featured-card__contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}


.gate-consent {
  margin-bottom:14px;
  font-size:0.75rem;
  color:var(--gray-300);
  line-height:1.5;
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.gate-consent a { color:var(--gold); }

.gate-consent input[type="checkbox"] {
  margin-top:2px;
  flex-shrink:0;
  accent-color:var(--gold);
}

.gate-field { margin-bottom:10px; }

.gate-field input {
  width:100%;
  padding:11px 14px;
  background:rgba(8,15,30,0.8);
  border:1px solid rgba(201,152,26,0.18);
  border-radius:8px;
  color:var(--white);
  font-family:inherit;
  font-size:0.9rem;
}

.gate-field input::placeholder { color:var(--gray-400); }

.gate-field input:focus { outline:none; border-color:var(--gold); }

.gate-message {
  padding:10px 14px;
  border-radius:8px;
  margin-bottom:12px;
  font-size:0.82rem;
  text-align:center;
  display:none;
}

.gate-message.error {
  display:block;
  background:rgba(200,50,50,0.12);
  color:#c0392b;
  border:1px solid rgba(200,50,50,0.2);
}

.gate-message.success {
  display:block;
  background:rgba(201,152,26,0.1);
  color:var(--gold);
  border:1px solid rgba(201,152,26,0.2);
}

.gate-notice {
  background: linear-gradient(145deg, rgba(201,152,26,0.1), rgba(201,152,26,0.03));
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
}

.gate-notice h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.gate-notice p {
  color: var(--gray-300);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.gate-tab {
  flex:1;
  padding:9px;
  background:transparent;
  border:1px solid rgba(201,152,26,0.2);
  border-radius:8px;
  color:var(--gray-300);
  font-family:inherit;
  font-size:0.82rem;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s;
}

.gate-tab.active {
  background:rgba(201,152,26,0.12);
  border-color:rgba(201,152,26,0.35);
  color:var(--gold);
}

.gate-tabs {
  display:flex;
  gap:8px;
  margin-bottom:16px;
}


.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
  margin-top: 36px;
  text-align: left;
}

.impact-item {
  padding: 28px;
  border-left: 3px solid var(--gold);
  background: rgba(201,152,26,0.03);
  border-radius: 0 12px 12px 0;
}

.impact-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.impact-item p {
  font-size: 0.88rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.path-card {
  padding: 36px 32px;
  background: linear-gradient(145deg, rgba(201,152,26,0.06), rgba(12,26,51,0.8));
  border: 1px solid rgba(201,152,26,0.1);
  border-radius: 20px;
  transition: all 0.3s;
}

.path-card .path-icon { font-size: 1.8rem; margin-bottom: 16px; }

.path-card .path-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.path-card .path-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.path-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.path-card p {
  font-size: 0.92rem;
  color: var(--gray-300);
  margin-bottom: 20px;
  line-height: 1.6;
}

.path-card:hover {
  border-color: rgba(201,152,26,0.25); transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,152,26,0.08);
}

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 48px;
}

.stat-bar {
  padding: 32px 0;
  border-top: 1px solid rgba(201,152,26,0.08);
  border-bottom: 1px solid rgba(201,152,26,0.08);
}

.stat-item { text-align: center; }

.stat-item .lbl {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.stat-item .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-light);
  font-weight: 500;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-300);
  margin-top: 6px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: 400;
  line-height: 1.1;
}


.status.error { color: #E74C3C; }

.tier-card.featured { border-color: rgba(201,152,26,0.35); }

.variable-card {
  padding:24px 28px;
  background:rgba(12,26,51,.6);
  border:1px solid rgba(201,152,26,.1);
  border-radius:16px;
  margin:1.5em 0;
}

.variable-card h3 {
  font-family:var(--font-display);
  font-size:1.05rem;
  font-weight:500;
  margin-bottom:8px;
  color:var(--gold-light);
}

.variable-card p { margin-bottom:.75em; font-size:.95rem; }

.variable-card p:last-child { margin-bottom:0; }


/* ================================================== */
/* Article Content (Journal Issues) */
/* ================================================== */

.article-content {
  padding: 40px 0 80px;
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
}

.article-content a { color: var(--gold-accent); text-decoration: underline; }

.article-content a:hover { color: var(--gold-light); }

.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 2em 0;
  font-style: italic;
  color: var(--gray-200);
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 2.5em 0 1em;
  color: var(--white);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 2em 0 0.75em;
  color: var(--white);
}

.article-content li { margin-bottom: 0.5em; }

.article-content p { margin-bottom: 1.5em; color: var(--gray-100); }

.article-content strong { color: var(--white); font-weight: 600; }

.article-content ul, .article-content ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
  color: var(--gray-100);
}

.article-cover { margin: 40px auto; max-width: 700px; }

.article-cover img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(232, 184, 56, 0.15);
}

.article-header { padding: 100px 0 40px; text-align: center; }

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-header h1 em { color: var(--gold-light); font-style: italic; }

.article-header__issue {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.article-header__meta { font-size: 0.85rem; color: var(--gray-400); }

.article-header__subtitle {
  font-size: 1.1rem;
  color: var(--gray-300);
  margin-bottom: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid rgba(232, 184, 56, 0.1);
  margin-top: 40px;
}

.article-nav a {
  font-size: 0.9rem;
  color: var(--gold-light);
  transition: opacity 0.25s;
}

.article-nav a:hover { opacity: 0.8; }

.cta-box {
  background: linear-gradient(145deg, rgba(232, 184, 56, 0.08), rgba(232, 184, 56, 0.02));
  border: 1px solid rgba(232, 184, 56, 0.15);
  border-radius: 16px;
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}

.cta-box .cta-links {
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

.cta-box .cta-links a { padding:12px 28px; font-size:.9rem; }

.cta-box h3 {
  font-family:var(--font-display);
  font-size:1.3rem;
  font-weight:400;
  margin-bottom:12px;
}

.cta-box p {
  font-size:.95rem;
  color:var(--gray-200);
  margin-bottom:24px;
}

/* ================================================== */
/* Article Subscribe Form (journal issue pages)       */
/* ================================================== */

.article-cta-box {
  background: linear-gradient(145deg, rgba(201,152,26,0.06), rgba(201,152,26,0.02));
  border: 1px solid rgba(201,152,26,0.15);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.article-cta-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
}

.article-cta-desc {
  font-size: 0.92rem;
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 20px;
}

.subscribe-form-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.subscribe-input {
  flex: 1;
  min-width: 140px;
  padding: 13px 16px;
  background: rgba(8,15,30,0.7);
  border: 1px solid rgba(201,152,26,0.25);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s;
  outline: none;
}

.subscribe-input::placeholder { color: var(--gray-400); }
.subscribe-input:focus { border-color: var(--gold); }

.subscribe-btn {
  padding: 13px 28px;
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.subscribe-btn:hover { background: var(--gold-hover); }

.subscribe-form-wrap .gdpr-checkbox-row {
  flex-basis: 100%;
  margin-top: 4px;
}

.subscribe-error {
  flex-basis: 100%;
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.text-gold-bold {
  color: var(--gold);
  font-weight: 600;
}

[data-theme="light"] .article-cta-box {
  background: linear-gradient(145deg, rgba(176,133,21,0.08), rgba(176,133,21,0.03));
  border-color: rgba(176,133,21,0.2);
}

[data-theme="light"] .article-cta-title { color: var(--navy-mid); }
[data-theme="light"] .article-cta-desc { color: #4A5A7A; }

[data-theme="light"] .subscribe-input {
  background: #f5f6fa;
  border-color: rgba(18,37,74,0.15);
  color: #1A2E4A;
}
[data-theme="light"] .subscribe-input::placeholder { color: #4A5A7A; }
[data-theme="light"] .subscribe-input:focus { border-color: #7A5E0E; }

@media (max-width: 600px) {
  .subscribe-form-wrap { flex-direction: column; }
  .subscribe-input { min-width: 100%; }
}

.references {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid rgba(201,152,26,0.1);
}

.references h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1.2em;
  color: var(--white);
}

.references li {
  font-size: 0.82rem;
  color: var(--gray-300);
  margin-bottom: 0.75em;
  line-height: 1.6;
}

.references li a { color: var(--gold-accent); word-break: break-all; }

.references ol { padding-left: 1.4em; }


/* ================================================== */
/* Subscribe Strip */
/* ================================================== */

.subscribe-strip {
  padding: clamp(60px,8vw,100px) 0;
  background: linear-gradient(135deg, rgba(12,26,51,0.9), rgba(8,15,30,0.95));
  border-top: 1px solid rgba(201,152,26,0.1);
  border-bottom: 1px solid rgba(201,152,26,0.1);
  position: relative;
  overflow: hidden;
}

.subscribe-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201,152,26,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.subscribe-strip__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--white);
}

.subscribe-strip__error {
  font-size: 0.8rem;
  color: #ff6b6b;
  margin-top: 8px;
  min-height: 18px;
}

.subscribe-strip__gdpr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.subscribe-strip__gdpr a { color: var(--gold); text-decoration: none; }

.subscribe-strip__gdpr a:hover { text-decoration: underline; }

.subscribe-strip__gdpr input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.subscribe-strip__gdpr span {
  font-size: 0.78rem;
  color: var(--gray-400);
  line-height: 1.55;
}

.subscribe-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.subscribe-strip__inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.subscribe-strip__inputs input {
  flex: 1;
  min-width: 120px;
  padding: 13px 16px;
  background: rgba(8,15,30,0.7);
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s;
  outline: none;
}

.subscribe-strip__inputs input::placeholder { color: var(--gray-400); }

.subscribe-strip__inputs input:focus { border-color: var(--gold); }

.subscribe-strip__sub {
  font-size: 0.95rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.subscribe-strip__success {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 500;
}


/* ================================================== */
/* Author Section */
/* ================================================== */

.author {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.author-content .author-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}

.author-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.author-content p {
  font-size: 0.95rem;
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 12px;
}

.author-grid {
  display: flex;
  gap: 48px;
  align-items: center;
}

.author-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,152,26,0.2);
  flex-shrink: 0;
}

.author-section {
  background: var(--navy-primary);
  border-top: 1px solid rgba(201,152,26,0.08);
  border-bottom: 1px solid rgba(201,152,26,0.08);
  text-align: center;
  /* Tighter padding than .section default (60/10vw/120).
     Uses same vw unit but narrower range: 40px floor, 80px ceiling. */
  padding-top: clamp(40px,6vw,80px);
  padding-bottom: clamp(40px,6vw,80px);
}
.author-section .author-grid {
  text-align: left;
  margin-top: 32px;
}
.author-section .author-content h3,
.author-section .author-content p,
.author-section .author-content a {
  text-align: left;
}

.author__bio { font-size: 0.95rem; color: var(--gray-200); }

.author__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.author__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(201,152,26,0.3);
}

.author__title {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 12px;
}


/* ================================================== */
/* Partner Bar */
/* ================================================== */

.partner-bar {
  padding: 40px 0;
  background: rgba(12,26,51,0.5);
  border-top: 1px solid rgba(201,152,26,0.06);
}

.partner-bar .label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.partner-bar a { color: var(--gold-accent); text-decoration: underline; }

.partner-bar p {
  font-size: 0.92rem;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.partner-logo {
  height: 36px;
  margin: 0 auto 20px;
  display: block;
  padding: 10px 24px;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  object-fit: contain;
  width: auto;
  max-width: 200px;
}

[data-theme="light"] .partner-logo {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(18,37,74,0.06);
}



/* ================================================== */
/* Footer */
/* ================================================== */

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(201,152,26,0.08);
  text-align: center;
  margin-top: 60px;
}

.footer a { color: var(--gold-accent); }

.footer p { font-size: 0.78rem; color: var(--gray-500); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(201,152,26,0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--gray-400); }

.footer-bottom p { font-size: 0.72rem; color: var(--gray-500); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-brand span { color: var(--gold); }

.footer-links {
  margin-top: 48px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--gray-300);
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-tagline {
  font-size: 0.82rem;
  color: var(--gray-400);
  max-width: 320px;
  line-height: 1.5;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}


/* ================================================== */
/* Forms and Authentication */
/* ================================================== */


.auth-btn {
  width:100%;
  padding:16px;
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  border:none;
  border-radius:50px;
  color:var(--navy-deep);
  font-family:"DM Sans",sans-serif;
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  display:block;
  margin:0 auto;
  justify-content:center;
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,152,26,0.3); }

.auth-consent { margin-bottom: 20px; }

.auth-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.auth-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--gray-300);
  line-height: 1.5;
  cursor: pointer;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  background: rgba(12,26,51,0.6);
  border: 1px solid rgba(201,152,26,0.15);
  border-radius: 20px;
  padding: 40px;
  margin: 0 auto;
}

/* Standalone auth pages (no header, just centered form) */
body:has(.auth-container) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}




.auth-field { margin-bottom: 16px; }

.auth-field input, .auth-field select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(8,15,30,0.9);
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.auth-field input::placeholder { color:var(--gray-400); }

.auth-field input:focus, .auth-field select:focus { outline: none; border-color: var(--gold); }

.auth-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-200);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-field select { cursor: pointer; }

.auth-field select option { background: var(--navy-deep); }

.auth-form { display:none !important; }

.auth-form.active { display:block !important; }


.auth-links {
  margin-top:20px;
  text-align:center;
  font-size:0.85rem;
  color:var(--gray-400);
}

.auth-links a { color: var(--gold); }

.auth-message {
  padding:14px 16px;
  border-radius:10px;
  margin-bottom:18px;
  font-size:0.88rem;
  display:none;
  text-align:center;
}

.auth-message.error {
  display: block;
  background: rgba(220,53,69,0.12);
  border: 1px solid rgba(220,53,69,0.25);
  color: #ff6b6b;
}

.auth-message.success {
  display: block;
  background: rgba(201,152,26,0.1);
  border: 1px solid rgba(201,152,26,0.2);
  color: var(--gold);
}

.auth-modal {
  width:100%;
  max-width:420px;
  background:linear-gradient(145deg,rgba(12,26,51,0.95),rgba(8,15,30,0.98));
  border:1px solid rgba(201,152,26,0.15);
  border-radius:20px;
  padding:clamp(24px,6vw,40px);
  position:relative;
  box-shadow:0 25px 80px rgba(0,0,0,0.5);
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--gray-300);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.auth-modal__close:hover { background: rgba(255,255,255,0.05); color: var(--white); }

.auth-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8,15,30,0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-overlay.active { display:flex !important; }

.auth-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--gray-300);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.auth-tab.active { background: rgba(201,152,26,0.1); color: var(--gold); }

.auth-tab:hover { color: var(--white); }

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(201,152,26,0.1);
  padding-bottom: 12px;
}

.calc-field input, .calc-field select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(8,15,30,0.7);
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--gold); }

.calc-field select option { background: var(--navy-deep); }

.error-text {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field .hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.field input, .field select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(8,15,30,0.8);
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.field input::placeholder { color: var(--gray-400); }

.field input:focus, .field select:focus { outline: none; border-color: var(--gold-accent); }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-200);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field select { cursor: pointer; }

.field select option { background: var(--navy-primary); color: var(--white); }

.form { display: none; }

.form.active { display: block; }

.formula-bar {
  text-align: center;
  padding: 48px 24px;
  background: rgba(201,152,26,0.04);
  border: 1px solid rgba(201,152,26,0.1);
  border-radius: 20px;
  margin-top: 48px;
}

.formula-bar .formula {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
}

.formula-bar .formula-label {
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-bottom: 24px;
}

.formula-bar .lead { margin: 0 auto 28px; max-width: 600px; }


.formula-box .formula {
  font-family:var(--font-display);
  font-size:1.8rem;
  color:var(--white);
  margin-bottom:8px;
}

.formula-box .label { font-size:.85rem; color:var(--gray-300); }


.formula-display {
  text-align: center;
  margin-bottom: 48px;
  padding: 28px;
  background: rgba(201,152,26,0.06);
  border: 1px solid rgba(201,152,26,0.12);
  border-radius: 16px;
}

.formula-display .formula {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-accent);
}

.formula-display .formula-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 6px;
}

.journal-subscribe-gdpr input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.journal-subscribe-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.journal-subscribe-inputs input {
  flex: 1;
  min-width: 120px;
  padding: 13px 16px;
  background: rgba(8,15,30,0.7);
  border: 1px solid rgba(201,152,26,0.25);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s;
  outline: none;
}

.journal-subscribe-inputs input::placeholder { color: var(--gray-400, var(--gray-300)); }

.journal-subscribe-inputs input:focus { border-color: var(--gold); }

.message {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}

.message.error {
  display: block;
  background: rgba(220,53,69,0.15);
  border: 1px solid rgba(220,53,69,0.3);
  color: #ff6b6b;
}

.message.success {
  display: block;
  background: rgba(201,152,26,0.1);
  border: 1px solid rgba(201,152,26,0.2);
  color: var(--gold-accent);
}

.search-box input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(201,152,26,0.06);
  border: 1px solid rgba(201,152,26,0.15);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}

.search-box input::placeholder { color: var(--gray-500); }

.search-box input:focus { border-color: var(--gold-accent); }

.support-link { color: var(--gold); text-decoration: none; }

/* global input style removed - handled by page-specific forms */

input::placeholder { color: var(--gray-400); }


/* ================================================== */
/* Certification Platform */
/* ================================================== */

.discovery-cta { padding: clamp(60px,8vw,100px) 0; text-align: center; }

.discovery-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem,2.8vw,2rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.discovery-cta p {
  font-size: 0.95rem;
  color: var(--gray-200);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.75;
}


.links {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.links a {
  color: var(--gold-light);
  font-size: 0.88rem;
  text-decoration: underline;
}

.links a:hover { text-decoration: underline; }


.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.price-box {
  background: rgba(201,152,26,0.08);
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: inline-block;
}

.price-note { font-size: 0.85rem; color: var(--gray-400); }

.series__book.coming { opacity: 0.7; }

.tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--gray-300);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.tab.active { background: rgba(201,152,26,0.1); color: var(--gold-accent); }

.tab:hover { color: var(--white); }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(201,152,26,0.1);
  padding-bottom: 16px;
}

.tier-card {
  padding: 40px 36px;
  background: linear-gradient(145deg, rgba(201,152,26,0.06), rgba(12,26,51,0.8));
  border: 1px solid rgba(201,152,26,0.15);
  border-radius: 20px;
}

.tier-card .tier-desc {
  font-size: 0.82rem;
  color: var(--gray-300);
  line-height: 1.5;
}

.tier-card .tier-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.tier-card .tier-range {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}

.tier-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.tier-card p {
  font-size: 0.95rem;
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tier-card--basic { background: rgba(201,152,26,0.05); border-color: rgba(201,152,26,0.15); }

.tier-card--basic .tier-label { color: var(--gold); }

.tier-card--emerging { background: rgba(201,152,26,0.09); border-color: rgba(201,152,26,0.22); }

.tier-card--emerging .tier-label { color: var(--gold-light); }

.tier-card--none { background: rgba(106,128,128,0.08); border-color: rgba(106,128,128,0.2); }

.tier-card--none .tier-label { color: var(--gray-400); }

.tier-card--strategic { background: rgba(201,152,26,0.14); border-color: rgba(201,152,26,0.32); }

.tier-card--strategic .tier-label { color: #F0D060; }


.tier-cta { margin-top: 28px; }

.tier-detail {
  font-size: 0.88rem;
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.tier-detail::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 32px;
  margin-top: 40px;
  text-align: left;
}


.tier-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}


.user-bar {
  background: rgba(201,152,26,0.08);
  border: 1px solid rgba(201,152,26,0.15);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-bar a {
  color: var(--gold-accent);
  font-size: 0.85rem;
  cursor: pointer;
}

.user-bar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-200);
}

.user-bar strong { color: var(--white); }

/* ================================================== */
/* Assessment Instrument */
/* ================================================== */

.assess-card {
  background: linear-gradient(145deg, rgba(12,26,51,0.9), rgba(8,15,30,0.95));
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 20px;
  padding: 32px;
}

.assess-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.assess-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem,2.8vw,2.1rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 20px;
}

.assess-copy p {
  font-size: 0.95rem;
  color: var(--gray-200);
  line-height: 1.75;
  margin-bottom: 16px;
}

.assess-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.assess-dim-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.assess-dim-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.assess-dim-label {
  font-size: 0.82rem;
  color: var(--gray-200);
  width: 140px;
  flex-shrink: 0;
}

.assess-dimension {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.assess-note { font-size: 0.78rem; color: var(--gray-400); }

.assess-tier-pill {
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(201,152,26,0.2);
  color: var(--gray-400);
}

.assess-tier-pill.active {
  background: rgba(201,152,26,0.15);
  border-color: rgba(201,152,26,0.4);
  color: var(--gold-light);
}

.assess-tier-row {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.assessment-feature {
  padding: clamp(60px,8vw,100px) 0; background: linear-gradient(180deg, rgba(12,26,51,0.4) 0%, transparent 100%);
  text-align: center;
}

.calc {
   padding: 120px 0 60px; 
  text-align: center;
}

.calc h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 12px;
  text-align: center;
}

.calc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s;
  margin-top: 4px;
}

.calc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,152,26,0.4); }

.calc-field { flex: 1; min-width: 180px; }

.calc-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.calc-result-card {
  background: rgba(8,15,30,0.5);
  border: 1px solid rgba(201,152,26,0.12);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
}

.calc-result-card .label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.calc-result-card .sub {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.calc-result-card .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  font-weight: 500;
}

.calc-results {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  text-align: left;
}

.calc-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 20px;
}

.calculator-box {
  background: linear-gradient(145deg, rgba(201,152,26,0.08), rgba(201,152,26,0.02));
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 16px;
  padding: 36px;
  margin: 48px 0;
}

.calculator-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--white);
}

.calculator-box p {
  color: var(--gray-300);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.result { display: none; }

.result.active { display: block; }

.result__card {
  background: linear-gradient(145deg, rgba(201,152,26,0.08), rgba(201,152,26,0.02));
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 20px;
  padding: 36px 32px;
}

.result__field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  display: block;
  margin-bottom: 4px;
}

.result__field span { font-size: 1.05rem; color: var(--white); }

.result__fields { display: grid; gap: 16px; }

.result__not-found {
  text-align: center;
  padding: 32px;
  color: var(--gray-400);
}

.result__status { text-align: center; margin-bottom: 24px; }

.result__status-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


.result__status-badge--expired {
  background: rgba(106,128,128,0.15);
  color: var(--gray-300);
  border: 1px solid rgba(106,128,128,0.3);
}


.results { display: none; margin-top: 48px; }


.results.active { display: block; }

.results__card {
  background: linear-gradient(145deg, rgba(201,152,26,0.08), rgba(201,152,26,0.02));
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 20px;
  padding: 40px 36px;
}

.results__cta { text-align: center; margin-top: 32px; }

.results__cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.35s;
}

.results__cta a:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,152,26,0.4); }

.results__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.results__metric {
  background: rgba(8,15,30,0.4);
  border: 1px solid rgba(201,152,26,0.1);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}

.results__metric--gold .results__metric-number { color: var(--gold-light); }

.results__metric--wide { grid-column: span 2; }

.results__metric-label {
  font-size: 0.78rem;
  color: var(--gray-300);
  margin-top: 4px;
}

.results__metric-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-accent);
  font-weight: 500;
}

.results__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 28px;
  text-align: center;
}

.step {
  background: rgba(12,26,51,0.6);
  border: 1px solid rgba(201,152,26,0.1);
  border-radius: 16px;
  padding: 28px 24px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--white);
}

.step p {
  font-size: 0.88rem;
  color: var(--gray-300);
  line-height: 1.65;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(201,152,26,0.4);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
  text-align: left;
}


/* ================================================== */
/* Library and Resource Pages */
/* ================================================== */

.download-btn { padding: 8px 16px; font-size: 0.8rem; }

.download-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(201,152,26,0.06);
  border: 1px solid rgba(201,152,26,0.15);
  border-radius: 12px;
}

.download-item span { font-size: 0.95rem; }

.download-section { display: none; }

.kit-contents {
  background: rgba(201,152,26,0.06);
  border: 1px solid rgba(201,152,26,0.15);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
}

.kit-item { padding: 16px 0; border-bottom: 1px solid rgba(201,152,26,0.1); }

.kit-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.kit-item p {
  font-size: 0.9rem;
  color: var(--gray-300);
  margin: 0;
}

.kit-item:last-child { border-bottom: none; padding-bottom: 0; }

.resource-card {
  background: linear-gradient(145deg, rgba(201,152,26,0.08), rgba(201,152,26,0.02));
  border: 1px solid rgba(201,152,26,0.15);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.resource-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.3;
}

.resource-card p {
  font-size: 0.9rem;
  color: var(--gray-300);
  flex: 1;
  margin-bottom: 20px;
}

.resource-card:hover {
  border-color: rgba(201,152,26,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.resource-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}

.resource-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.resource-card__type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  text-align: left;
}


/* ================================================== */
/* Journal Listing */
/* ================================================== */

.issue-card {
  background: linear-gradient(145deg, rgba(232, 184, 56, 0.06), rgba(232, 184, 56, 0.01));
  border: 1px solid rgba(232, 184, 56, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
}

.issue-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}

.issue-card p {
  color: var(--gray-300);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.issue-card:hover { border-color: rgba(232, 184, 56, 0.25); transform: translateY(-3px); }

.issue-card__content { padding: 24px; }

.issue-card__cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid rgba(232, 184, 56, 0.08);
}

.issue-card__issue {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.issue-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  transition: gap 0.25s;
}

.issue-card__link:hover { gap: 10px; }

.issue-card__meta {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.issues {
  padding: 80px 0;
  text-align: center;
}

.issues__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 28px;
  text-align: left;
}

.journal-subscribe-error {
  font-size: 0.8rem;
  color: #ff6b6b;
  margin-top: 8px;
  min-height: 18px;
}

.journal-subscribe-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 4px;
}

.journal-subscribe-gdpr a { color: var(--gold); text-decoration: none; }

.journal-subscribe-gdpr a:hover { text-decoration: underline; }

.journal-subscribe-gdpr span {
  font-size: 0.78rem;
  color: var(--gray-400, var(--gray-300));
  line-height: 1.55;
}

.journal-subscribe-meta {
  font-size: 0.82rem;
  color: var(--gray-400, var(--gray-300));
  margin-top: 14px;
}

.journal-subscribe-success {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gold-light, var(--gold-light));
  font-weight: 500;
  padding: 16px 0;
}

.journal-subscribe-wrap { margin-top: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }


/* ================================================== */
/* Book Page */
/* ================================================== */

.book-cover {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 10px 30px rgba(201,152,26,0.15);
}

.series { margin-top: 40px; }

.series__badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.series__book {
  background: rgba(201,152,26,0.04);
  border: 1px solid rgba(201,152,26,0.12);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  position: relative;
}

.series__book.current { border-color: var(--gold); background: rgba(201,152,26,0.1); }

.series__desc { font-size: 0.85rem; color: var(--gray-300); }

.series__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.series__number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.series__subtitle {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 12px;
  font-style: italic;
}

.series__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}


/* ================================================== */
/* Content Elements */
/* ================================================== */

.benchmark-table td.highlight { color: var(--gold-light); font-weight: 600; }


.content {
  padding: 40px 0 80px;
}

.content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--white);
}

.content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: var(--gold-light);
}

.content li { margin-bottom: 8px; }

.content p { color: var(--gray-100); margin-bottom: 16px; }

.content ul { margin: 16px 0 24px 24px; color: var(--gray-100); }

.fw-content {
  max-width:760px;
  margin:0 auto;
  padding:0 24px 80px;
}

.fw-content a { color:var(--gold-accent); text-decoration:underline; }

.fw-content h2 {
  font-family:var(--font-display);
  font-size:1.5rem;
  font-weight:500;
  margin:2.5em 0 .75em;
  color:var(--white);
}

.fw-content h3 {
  font-family:var(--font-display);
  font-size:1.2rem;
  font-weight:500;
  margin:2em 0 .5em;
  color:var(--gold-light);
}

.fw-content p {
  font-size:1rem;
  color:var(--gray-100);
  margin-bottom:1.5em;
  line-height:1.8;
}

.fw-content strong { color:var(--white); font-weight:600; }

.fw-hero { padding:clamp(60px,10vw,120px) 0 clamp(40px,6vw,60px); text-align:center; }

.fw-hero h1 {
  font-family:var(--font-display);
  font-size:clamp(2rem,4vw,2.8rem);
  font-weight:400;
  margin-bottom:16px;
}

.fw-hero p {
  font-size:1.05rem;
  color:var(--gray-200);
  max-width:640px;
  margin:0 auto;
  line-height:1.7;
}

.highlight {
  background: rgba(201,152,26,0.1);
  border-left: 3px solid var(--gold-accent);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.highlight p { margin-bottom: 0; }

.toc {
  background: rgba(201,152,26,0.05);
  border: 1px solid rgba(201,152,26,0.1);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc a {
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.9rem;
}

.toc a:hover { color: var(--gold-accent); }

.toc h2 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--gold-accent);
}

.toc li { margin-bottom: 4px; }

.toc ol { margin-bottom: 0; }


/* ================================================== */
/* About Page */
/* ================================================== */

.about-content {
  max-width:720px;
  margin:0 auto;
  padding:0 24px 80px;
}

.about-content .cred-bar {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin:32px 0;
  justify-content:center;
}

.about-content .cred-item {
  padding:12px 20px;
  background:rgba(201,152,26,.06);
  border:1px solid rgba(201,152,26,.12);
  border-radius:12px;
  font-size:.82rem;
  color:var(--gray-200);
  text-align:center;
}

.about-content a { color:var(--gold-accent); text-decoration:underline; }

.about-content h2 {
  font-family:var(--font-display);
  font-size:1.4rem;
  font-weight:500;
  margin:2em 0 .75em;
  color:var(--gold-light);
}

.about-content img {
  width:180px;
  height:180px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(201,152,26,.2);
  display:block;
  margin:0 auto 40px;
}

.about-content p {
  font-size:1rem;
  color:var(--gray-100);
  margin-bottom:1.5em;
  line-height:1.8;
}

.about-hero { padding:clamp(60px,10vw,120px) 0; text-align:center; }

.about-hero h1 {
  font-family:var(--font-display);
  font-size:clamp(2rem,4vw,2.8rem);
  font-weight:400;
  margin-bottom:16px;
}

.about-hero p {
  font-size:1.05rem;
  color:var(--gray-200);
  max-width:640px;
  margin:0 auto;
  line-height:1.7;
}

.timeline { margin-top: 40px; max-width: 680px; }

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201,152,26,0.12);
  border: 1px solid rgba(201,152,26,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-light);
}

.timeline-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}


/* ================================================== */
/* Advisory Page */
/* ================================================== */

.engagement {
  padding: clamp(60px,8vw,100px) 0;
  text-align: center;
}

.engagement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  text-align: left;
}


/* ================================================== */
/* Framework Page */
/* ================================================== */

.pillar-card {
  background: rgba(201,152,26,0.04);
  border: 1px solid rgba(201,152,26,0.1);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.3s;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--gray-200);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pillar-card:hover { border-color: rgba(201,152,26,0.25); background: rgba(201,152,26,0.06); }

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
}

.pillar-link {
  font-size: 0.88rem;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.pillar-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
  margin-top: 40px;
  text-align: left;
}


/* ================================================== */
/* Institute Page */
/* ================================================== */

.sequence {
  background: rgba(12,26,51,0.3);
  text-align: center;
}


/* ================================================== */
/* Benchmarks */
/* ================================================== */

.bench-table {
  width:100%;
  border-collapse:collapse;
  margin:1.5em 0;
}

.bench-table td { color:var(--gray-100); }

.bench-table th {
  color:var(--gold);
  font-weight:600;
  font-size:.75rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.bench-table th,.bench-table td {
  padding:12px 16px;
  text-align:left;
  border-bottom:1px solid rgba(201,152,26,.08);
  font-size:.92rem;
}

.bench-table tr:hover td { background:rgba(201,152,26,.04); }

.benchmark-preview {
  background: rgba(201,152,26,0.06);
  border: 1px solid rgba(201,152,26,0.15);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.benchmark-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201,152,26,0.1);
}

.benchmark-row:last-child { border-bottom: none; }

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.benchmark-table td {
  padding: 13px 16px;
  border-top: 1px solid rgba(201,152,26,0.07);
  color: var(--gray-100);
  white-space: nowrap;
}

.benchmark-table td:first-child { font-weight: 600; color: var(--white); }

.benchmark-table th {
  background: rgba(201,152,26,0.12);
  color: var(--gold-light);
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.benchmark-table tr:hover td { background: rgba(201,152,26,0.04); }

.benchmark-table-wrap {
  overflow-x: auto;
  margin: 2em 0;
  border-radius: 12px;
  border: 1px solid rgba(201,152,26,0.15);
}

.benchmark-tier { font-weight: 600; }

.benchmark-value { color: var(--gold-light); }

.source-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(201,152,26,0.08);
  border: 1px solid rgba(201,152,26,0.18);
  color: var(--gold-light);
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5em 0;
}


/* ================================================== */
/* Animations */
/* ================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible { opacity: 1; transform: translateY(0); }


to { opacity:1;
  transform: translateY(0);
  };
}

; }

; }


/* ================================================== */
/* Utility Pages */
/* ================================================== */

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-accent);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verify {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  text-align: center;
}

.verify__card { width: 100%; }

.verify__card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 12px;
  text-align: center;
}

.verify__card p {
  color: var(--gray-300);
  text-align: center;
  margin-bottom: 32px;
  font-size: 0.95rem;
}


/* ================================================== */
/* CTA Sections */
/* ================================================== */

.cta-section { text-align: center; padding: clamp(60px,8vw,100px) 0; }

.cta-section .lead { margin: 0 auto 36px; }

.cta-section h2 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--gray-300);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 1rem;
  color: var(--gray-200);
  max-width: 680px;
  line-height: 1.7;
}


/* ================================================== */
/* Search */
/* ================================================== */

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.search-box button {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a1a;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
}

.search-box button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,152,26,0.3); }


/* ================================================== */
/* Icons */
/* ================================================== */

.icon {
  width:56px;
  height:56px;
  border-radius:50%;
  margin:0 auto 16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.icon--gold { background: var(--gold); }

.icon--red { background: #E74C3C; }


/* ================================================== */
/* Meta Items */
/* ================================================== */

/* ================================================== */
/* Uncategorized */
/* ================================================== */

.updated {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 48px;
}


/* ================================================== */
/* Responsive */
/* ================================================== */

@media(max-width: 480px) {
  .results__grid { grid-template-columns: 1fr; }
  .results__metric--wide { grid-column: span 1; }
  .search-box { flex-direction: column; }
}

@media(max-width: 520px) {
  }

@media(max-width: 600px) {
  .author { grid-template-columns: 1fr; text-align: center; }
  .author__photo { margin: 0 auto; }
  .journal-subscribe-inputs { flex-direction: column; }
  .journal-subscribe-inputs input, .journal-subscribe-inputs }

@media(max-width: 768px) {
  .article-nav {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .assess-dim-label { width: 120px; }
  .assessment-feature .container { grid-template-columns: 1fr; gap: 36px; }
  .author-grid { flex-direction: column; text-align: center; }
  .calc-row { flex-direction: column; }
  .engagement-grid { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .impact-grid { grid-template-columns: 1fr; }
  .issues__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .report-card-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .steps { grid-template-columns: 1fr; }
  .subscribe-strip__inner { grid-template-columns: 1fr; gap: 32px; }
  .subscribe-strip__inputs { flex-direction: column; }
  .subscribe-strip__inputs input, .subscribe-strip__inputs .tier-grid { grid-template-columns: 1fr; }
  @keyframes slideIn {
    from{transform:translateX(100%);
    } to{transform:translateX(0);
    };
  }
}

@media(max-width: 800px) {
  .book-cover { margin: 0 auto; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .series__grid { grid-template-columns: 1fr; }
}

@media(max-width: 900px) {
  .main { margin-left:0; }
  }


/* ================================================== */
/* Utility Classes (replacing inline styles)          */
/* ================================================== */

/* Navigation link styles */
/* Button sizes */
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-md { padding: 12px 28px; font-size: 0.9rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* Spacing */
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.pt-0 { padding-top: 0; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-gold-accent { color: var(--gold-accent); }
.text-gray-100 { color: var(--gray-100); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-xs { font-size: 0.78rem; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--gray-300); }

/* Width */
.w-full { width: 100%; }

/* Auth form display */
.auth-form-hidden { display: none; }

/* ---- Theme toggle button ---- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-pale);
  background: var(--gold-hover);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---- Global theme overrides ---- */
/* These use high-specificity selectors to override inline/page styles */

[data-theme="light"] body {
  background: var(--bg-deep) !important;
  color: var(--text-primary) !important;
}

[data-theme="light"] .header,
[data-theme="light"] header {
  background: var(--header-bg) !important;
  border-bottom-color: var(--border-subtle) !important;
}

[data-theme="light"] .logo {
  color: var(--text-primary) !important;
}

[data-theme="light"] .logo span {
  color: #8A6510 !important; /* WCAG AA fix: 5.32:1 on white */
}

[data-theme="light"] .nav a:not(.btn) {
  color: var(--text-tertiary) !important;
}

[data-theme="light"] .nav a:not(.btn):hover {
  color: var(--text-primary) !important;
  background: var(--gold-hover) !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
  color: var(--text-primary) !important;
}

[data-theme="light"] p,
[data-theme="light"] li,
[data-theme="light"] td,
[data-theme="light"] span:not(.divider) {
  color: var(--text-secondary);
}

[data-theme="light"] .hero,
[data-theme="light"] [class*="hero"] {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%) !important;
}

[data-theme="light"] .hero-eyebrow,
[data-theme="light"] .eyebrow,
[data-theme="light"] .ey {
  color: var(--gold) !important;
}

/* Cards, boxes, sections */
[data-theme="light"] .card,
[data-theme="light"] [class*="card"],
[data-theme="light"] .cta-box,
[data-theme="light"] .metric-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .resource-card,
[data-theme="light"] .cert-card,
[data-theme="light"] .issue-card,
[data-theme="light"] .chapter-card {
  background: var(--bg-card-solid) !important;
  border-color: var(--border-card) !important;
  box-shadow: var(--shadow-card) !important;
}

[data-theme="light"] .formula-box {
  background: linear-gradient(135deg, rgba(176,133,21,0.08), rgba(176,133,21,0.04)) !important;
  border-color: var(--border-medium) !important;
}

/* Sections with dark backgrounds */
[data-theme="light"] section,
[data-theme="light"] .section {
  background-color: transparent !important;
}

[data-theme="light"] section:nth-child(even) {
  background-color: var(--bg-primary) !important;
}

/* Footer */
[data-theme="light"] footer,
[data-theme="light"] .footer {
  background: var(--footer-bg) !important;
  border-top-color: var(--footer-border) !important;
  color: var(--text-tertiary) !important;
}

[data-theme="light"] footer a,
[data-theme="light"] .footer a {
  color: var(--text-muted) !important;
}

[data-theme="light"] footer a:hover,
[data-theme="light"] .footer a:hover {
  color: var(--gold) !important;
}

/* Buttons */
[data-theme="light"] .btn--gold,
[data-theme="light"] .btn-p,
[data-theme="light"] .btn-g {
  color: var(--btn-gold-text) !important;
  box-shadow: var(--shadow-btn) !important;
}

[data-theme="light"] .btn-o {
  border-color: var(--btn-outline-border) !important;
  color: var(--text-primary) !important;
}

/* Links */
[data-theme="light"] a {
  color: inherit;
}

[data-theme="light"] a[style*="gold"] {
  color: var(--gold) !important;
}

/* Inputs */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: var(--bg-primary) !important;
  border-color: var(--border-medium) !important;
  color: var(--text-primary) !important;
}

[data-theme="light"] input::placeholder {
  color: var(--text-faint) !important;
}

/* Tables */
[data-theme="light"] th {
  background: var(--gold-pale) !important;
  color: var(--gold) !important;
  border-color: var(--border-medium) !important;
}

[data-theme="light"] td {
  border-color: var(--border-subtle) !important;
}

[data-theme="light"] tr:hover td {
  background: var(--gold-hover) !important;
}

/* Code and preformatted */
[data-theme="light"] code,
[data-theme="light"] pre {
  background: var(--bg-primary) !important;
  color: var(--text-secondary) !important;
}

/* Modals and overlays */
[data-theme="light"] .auth-overlay {
  background: var(--overlay-bg) !important;
}

[data-theme="light"] .auth-modal,
[data-theme="light"] .auth-box {
  background: var(--bg-card-solid) !important;
  border-color: var(--border-medium) !important;
  box-shadow: var(--shadow-elevated) !important;
}

[data-theme="light"] .auth-tab {
  color: var(--text-muted) !important;
}

[data-theme="light"] .auth-tab.active {
  background: var(--gold-pale) !important;
  color: var(--gold) !important;
}

[data-theme="light"] .auth-input {
  background: var(--bg-primary) !important;
  border-color: var(--border-medium) !important;
  color: var(--text-primary) !important;
}

/* Dividers and borders */
[data-theme="light"] .divider {
  background: var(--border-subtle) !important;
}

[data-theme="light"] hr {
  border-color: var(--border-subtle) !important;
}

/* Sidebar (certifications) */
[data-theme="light"] .sidebar {
  background: var(--bg-primary) !important;
  border-color: var(--border-subtle) !important;
}

[data-theme="light"] .sb-lesson {
  color: var(--text-muted) !important;
}

[data-theme="light"] .sb-lesson.active {
  background: var(--gold-pale) !important;
  color: var(--gold) !important;
}

[data-theme="light"] .sb-bar {
  background: var(--bg-mid) !important;
}

/* Issue/journal specific */
[data-theme="light"] .article-body,
[data-theme="light"] .article-content,
[data-theme="light"] .journal-content {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .article-meta,
[data-theme="light"] .issue-meta {
  color: var(--text-muted) !important;
}

/* Blockquotes */
[data-theme="light"] blockquote {
  border-left-color: var(--gold) !important;
  background: var(--gold-hover) !important;
  color: var(--text-secondary) !important;
}

/* Nav toggle (hamburger) in light mode */
[data-theme="light"] .nav-toggle span {
  background: var(--gold) !important;
}

/* Mobile nav drawer */
[data-theme="light"] .nav.open {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%) !important;
}

[data-theme="light"] .nav.open a:not(.btn) {
  border-bottom-color: var(--border-subtle) !important;
}

[data-theme="light"] .nav-overlay.open {
  background: rgba(18,37,74,0.3) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Pseudo-elements with dark gradients */
[data-theme="light"] .hero::before,
[data-theme="light"] .cert-card::before,
[data-theme="light"] section::before {
  opacity: 0.3 !important;
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: var(--border-medium) !important;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-primary) !important;
}

/* ---- Page-level style overrides ---- */
/* These catch hardcoded rgba values in page <style> blocks */

/* Auth overlays and modals */
[data-theme="light"] .auth-overlay {
  background: rgba(245,246,250,0.95) !important;
}

[data-theme="light"] .auth-modal {
  background: #FFFFFF !important;
  border: 1px solid rgba(18,37,74,0.12) !important;
  box-shadow: 0 16px 64px rgba(18,37,74,0.15) !important;
}

[data-theme="light"] .auth-field input,
[data-theme="light"] .auth-field select,
[data-theme="light"] .auth-input {
  background: var(--bg-primary) !important;
  border-color: var(--border-medium) !important;
  color: var(--text-primary) !important;
}

[data-theme="light"] .auth-field label {
  color: var(--text-tertiary) !important;
}

[data-theme="light"] .auth-btn {
  color: var(--btn-gold-text) !important;
}

[data-theme="light"] .auth-links a,
[data-theme="light"] .auth-alt a {
  color: var(--gold) !important;
}

[data-theme="light"] .auth-consent label {
  color: var(--text-muted) !important;
}

[data-theme="light"] .auth-message {
  color: var(--text-secondary) !important;
}

/* Header */
[data-theme="light"] .header {
  background: rgba(255,255,255,0.95) !important;
}

/* Gradient backgrounds on heroes and sections */
[data-theme="light"] [style*="linear-gradient"][style*="080F1E"],
[data-theme="light"] [style*="linear-gradient"][style*="0C1A33"] {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-deep)) !important;
}

/* Cert meta items */
[data-theme="light"] .cert-meta-item {
  background: var(--bg-primary) !important;
  border-color: var(--border-subtle) !important;
}

/* Lesson content */
[data-theme="light"] .lesson-body {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .lesson-header {
  border-bottom-color: var(--border-subtle) !important;
}

/* Loading spinner */
[data-theme="light"] .loading-spinner {
  border-color: rgba(176,133,21,0.15) !important;
  border-top-color: var(--gold) !important;
}

/* Nav in certifications */
[data-theme="light"] .nav-logo {
  color: var(--text-primary) !important;
}

[data-theme="light"] .nav-logo b {
  color: var(--gold) !important;
}

[data-theme="light"] .nav-links a {
  color: var(--text-tertiary) !important;
}

[data-theme="light"] .nav-links a:hover {
  color: var(--gold) !important;
}

[data-theme="light"] .user-nav .logout-btn {
  color: var(--text-muted) !important;
  border-color: var(--border-medium) !important;
}

/* Issue cards on journal page */
[data-theme="light"] .issue-card {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-card) !important;
}

[data-theme="light"] .issue-card:hover {
  border-color: var(--gold-pale) !important;
}

/* Resource cards */
[data-theme="light"] .resource-card {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-card) !important;
}

/* Sign-in page */
[data-theme="light"] .signin-box {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-medium) !important;
}

/* Article nav */
[data-theme="light"] .article-nav a {
  color: var(--gold) !important;
}

/* Tags and badges */
[data-theme="light"] .tag,
[data-theme="light"] [class*="badge"],
[data-theme="light"] .hero-badge {
  background: var(--gold-pale) !important;
  color: var(--gold) !important;
}

[data-theme="light"] .hero-badge .num {
  color: var(--gold) !important;
}

/* Progress bars */
[data-theme="light"] .sb-bar {
  background: var(--bg-mid) !important;
}

[data-theme="light"] .sb-pct {
  color: var(--gold) !important;
}

/* Book page specifics */
[data-theme="light"] .chapter-card {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-card) !important;
}

/* Calculator */
[data-theme="light"] .calc-section {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-card) !important;
}

[data-theme="light"] .calc-result {
  background: var(--bg-primary) !important;
}

/* Metric/stat numbers */
[data-theme="light"] .metric-value,
[data-theme="light"] .stat-value,
[data-theme="light"] [class*="metric"] h3,
[data-theme="light"] [class*="stat"] h3 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .metric-label,
[data-theme="light"] .stat-label {
  color: var(--text-muted) !important;
}

/* CTA box */
[data-theme="light"] .cta-box {
  background: var(--bg-primary) !important;
  border: 1px solid var(--border-card) !important;
}

[data-theme="light"] .cta-box h3 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .cta-box p {
  color: var(--text-tertiary) !important;
}

/* ---- Formula boxes, callouts, highlights ---- */

[data-theme="light"] .formula-box,
[data-theme="light"] .formula-bar,
[data-theme="light"] .hero-formula,
[data-theme="light"] .formula-display {
  background: rgba(176,133,21,0.07) !important;
  border-color: rgba(176,133,21,0.18) !important;
}

[data-theme="light"] .formula-box .formula,
[data-theme="light"] .formula-bar .formula,
[data-theme="light"] .hero-formula .formula,
[data-theme="light"] .formula-display .formula,
[data-theme="light"] .formula-box,
[data-theme="light"] .formula {
  color: #12254A !important;
}

[data-theme="light"] .formula-box .label,
[data-theme="light"] .formula-box small,
[data-theme="light"] .formula-bar .formula-label,
[data-theme="light"] .hero-formula .formula-label,
[data-theme="light"] .formula-display .formula-label,
[data-theme="light"] .formula-label {
  color: var(--text-muted) !important;
}

[data-theme="light"] .formula-bar .lead {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .callout {
  background: rgba(176,133,21,0.06) !important;
  border: 1px solid rgba(176,133,21,0.15) !important;
  border-left: 4px solid var(--gold) !important;
  color: var(--text-secondary) !important;
}

[data-theme="light"] .callout strong {
  color: var(--text-primary) !important;
}

[data-theme="light"] .highlight {
  background: var(--bg-primary) !important;
  border-color: var(--border-medium) !important;
  color: var(--text-secondary) !important;
}

/* ---- Comprehensive text contrast ---- */

[data-theme="light"] .hero h1,
[data-theme="light"] .hero h2 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .hero p,
[data-theme="light"] .hero .lead {
  color: var(--text-secondary) !important;
}

[data-theme="light"] section h2,
[data-theme="light"] section h3 {
  color: var(--text-primary) !important;
}

[data-theme="light"] section p,
[data-theme="light"] section li {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .desc,
[data-theme="light"] .description,
[data-theme="light"] .series__desc,
[data-theme="light"] .card p {
  color: var(--text-tertiary) !important;
}

[data-theme="light"] .metric-value,
[data-theme="light"] .stat-value,
[data-theme="light"] [class*="metric"] h3,
[data-theme="light"] [class*="stat"] h3 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .metric-label,
[data-theme="light"] .stat-label,
[data-theme="light"] .metric p,
[data-theme="light"] .stat p {
  color: var(--text-muted) !important;
}

[data-theme="light"] .feature h3,
[data-theme="light"] .feature-card h3,
[data-theme="light"] .benefit h3 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .feature p,
[data-theme="light"] .feature-card p,
[data-theme="light"] .benefit p {
  color: var(--text-tertiary) !important;
}

/* Journal article content */
[data-theme="light"] .article-body p,
[data-theme="light"] .article-body li,
[data-theme="light"] .journal-body p,
[data-theme="light"] .journal-body li,
[data-theme="light"] .content-body p,
[data-theme="light"] .content-body li,
[data-theme="light"] .article-content p,
[data-theme="light"] .article-content li,
[data-theme="light"] .article-content ul,
[data-theme="light"] .article-content ol {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .article-body h2,
[data-theme="light"] .article-body h3,
[data-theme="light"] .article-body h4,
[data-theme="light"] .journal-body h2,
[data-theme="light"] .journal-body h3,
[data-theme="light"] .content-body h2,
[data-theme="light"] .content-body h3,
[data-theme="light"] .article-content h2,
[data-theme="light"] .article-content h3,
[data-theme="light"] .article-content h4 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .article-content strong {
  color: var(--text-primary) !important;
}

[data-theme="light"] .article-content blockquote {
  border-left-color: var(--gold) !important;
  color: var(--text-secondary) !important;
  background: rgba(201,152,26,0.06) !important;
}

[data-theme="light"] .article-content a {
  color: var(--gold) !important;
}

/* Article header sub-elements */
[data-theme="light"] .article-header h1,
[data-theme="light"] .article-header h1 em {
  color: var(--text-primary) !important;
}

[data-theme="light"] .article-header__subtitle {
  color: var(--text-tertiary) !important;
}

[data-theme="light"] .article-header__issue,
[data-theme="light"] .article-header__meta {
  color: var(--text-muted) !important;
}

[data-theme="light"] .article-meta,
[data-theme="light"] .issue-meta,
[data-theme="light"] .pub-date,
[data-theme="light"] time {
  color: var(--text-muted) !important;
}

[data-theme="light"] .article-body a,
[data-theme="light"] .journal-body a,
[data-theme="light"] .content-body a,
[data-theme="light"] .lesson-body a {
  color: var(--gold) !important;
}

/* Article nav links */
[data-theme="light"] .article-nav a {
  color: var(--gold) !important;
}

[data-theme="light"] .references,
[data-theme="light"] .references p,
[data-theme="light"] .references a {
  color: var(--text-muted) !important;
}

/* Book page */
[data-theme="light"] .chapter-card {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-card) !important;
}

[data-theme="light"] .chapter-card h3 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .chapter-card p {
  color: var(--text-tertiary) !important;
}

/* Calculator page */
[data-theme="light"] .calc-section {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-card) !important;
}

[data-theme="light"] .calc-section h3 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .calc-section label {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .calc-result {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* Advisory page */
[data-theme="light"] .service-card,
[data-theme="light"] .approach-card,
[data-theme="light"] .pricing-card {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-card) !important;
}

[data-theme="light"] .service-card h3,
[data-theme="light"] .approach-card h3,
[data-theme="light"] .pricing-card h3 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .service-card p,
[data-theme="light"] .approach-card p,
[data-theme="light"] .pricing-card p {
  color: var(--text-tertiary) !important;
}

/* About page */
[data-theme="light"] .bio-section p,
[data-theme="light"] .about-content p {
  color: var(--text-secondary) !important;
}

/* Footer text */
[data-theme="light"] footer p,
[data-theme="light"] .footer p,
[data-theme="light"] footer small,
[data-theme="light"] .footer small {
  color: #4A5A7A !important; /* WCAG AA fix: 6.13:1 on footer-bg */
}
/* WCAG AA: footer links including logo — #6a7a9a on #f0f1f5 = 3.82 (fail).
   #4A5A7A on #f0f1f5 = 6.13 (pass). Covers all anchor and logo text. */
[data-theme="light"] footer a:not(.btn),
[data-theme="light"] .footer a:not(.btn),
[data-theme="light"] footer .logo,
[data-theme="light"] .footer .logo {
  color: #4A5A7A !important;
}

[data-theme="light"] footer h4,
[data-theme="light"] .footer h4 {
  color: var(--text-secondary) !important;
}

/* Certification lesson content */
[data-theme="light"] .lesson-body p,
[data-theme="light"] .lesson-body li {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .lesson-body h4 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .lesson-body strong {
  color: var(--text-primary) !important;
}

[data-theme="light"] .lesson-body .formula-box {
  background: rgba(176,133,21,0.07) !important;
  border: 1px solid rgba(176,133,21,0.18) !important;
  color: #12254A !important;
}

[data-theme="light"] .lesson-body .callout {
  background: rgba(176,133,21,0.05) !important;
  border: 1px solid rgba(176,133,21,0.12) !important;
  border-left: 4px solid var(--gold) !important;
  color: var(--text-secondary) !important;
}

/* Legal pages */
[data-theme="light"] .legal-content p,
[data-theme="light"] .legal-content li {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .legal-content h2,
[data-theme="light"] .legal-content h3 {
  color: var(--text-primary) !important;
}

/* ---- Catch-all overrides for inline styles ---- */

[data-theme="light"] [style*="color: var(--white)"],
[data-theme="light"] [style*="color:var(--white)"] {
  color: var(--text-primary) !important;
}

[data-theme="light"] [style*="color: #fff"],
[data-theme="light"] [style*="color:#fff"],
[data-theme="light"] [style*="color: #FFF"],
[data-theme="light"] [style*="color:#FFF"],
[data-theme="light"] [style*="color: #FFFFFF"],
[data-theme="light"] [style*="color:#FFFFFF"],
[data-theme="light"] [style*="color: white"],
[data-theme="light"] [style*="color:white"] {
  color: var(--text-primary) !important;
}

[data-theme="light"] [style*="background: rgba(8,15,30"],
[data-theme="light"] [style*="background:rgba(8,15,30"],
[data-theme="light"] [style*="background: rgba(12,26,51"],
[data-theme="light"] [style*="background:rgba(12,26,51"] {
  background: var(--bg-primary) !important;
}

[data-theme="light"] [style*="background: #080F1E"],
[data-theme="light"] [style*="background:#080F1E"],
[data-theme="light"] [style*="background: #0C1A33"],
[data-theme="light"] [style*="background:#0C1A33"] {
  background: var(--bg-primary) !important;
}

[data-theme="light"] [style*="color: var(--gray-300)"],
[data-theme="light"] [style*="color:var(--gray-300)"],
[data-theme="light"] [style*="color: var(--gray-400)"],
[data-theme="light"] [style*="color:var(--gray-400)"] {
  color: var(--text-muted) !important;
}

[data-theme="light"] [style*="border-bottom: 1px solid rgba(255,255,255"],
[data-theme="light"] [style*="border-bottom:1px solid rgba(255,255,255"],
[data-theme="light"] [style*="border: 1px solid rgba(255,255,255"] {
  border-color: var(--border-subtle) !important;
}

/* Legal/Content pages light mode */
[data-theme="light"] .content p,
[data-theme="light"] .content li { color: var(--text-secondary) !important; }
[data-theme="light"] .content h1,
[data-theme="light"] .content h2,
[data-theme="light"] .content h3 { color: var(--text-primary) !important; }
[data-theme="light"] .content strong { color: var(--text-primary) !important; }
[data-theme="light"] .content a:not(.btn) { color: var(--gold) !important; }


/* Transition for smooth theme switching */
body, header, footer, section, .card, .nav, .sidebar,
input, select, textarea, .auth-modal, .auth-box,
.cta-box, .hero, a, h1, h2, h3, h4, p,
.formula-box, .formula-bar, .formula-display, .hero-formula,
.callout, .highlight {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── KILL HEADER BLUR ON MOBILE (causes full-page blur on scroll) ── */
@media (max-width: 768px) {
  .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0C1A33 !important;
  }
}

/* ── MOBILE NAV CLOSE BUTTON ── */
.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid rgba(201,152,26,0.2);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  transition: all 0.2s;
  z-index: 10;
}
.nav-close:hover {
  background: rgba(201,152,26,0.1);
  color: #fff;
  border-color: rgba(201,152,26,0.4);
}
@media (max-width: 768px) {
  .nav-close { display: flex; align-items: center; justify-content: center; }
}

/* Text alignment for content blocks inside centered sections */
.paths { text-align: left; }
.path-card { text-align: left; }
.eng-card { text-align: left; }
.impact-item { text-align: left; }
.feature { text-align: left; }
.step { text-align: left; }
.pillar-card { text-align: left; }
.variable-card { text-align: left; }
.tier-card { text-align: left; }
.about-content { text-align: left; }
.fw-content { text-align: left; }
.article-content { text-align: left; }
.subscribe-strip__gdpr { text-align: left; }

/* Standalone page logo (signin, 404) */
body:has(.auth-container) > .logo {
  margin-bottom: 48px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}
body:has(.auth-container) > .logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

/* 404 page centering */
body:has(.skip-nav + a[href="/"]) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

/* Standalone container pages (no header) */
body:has(.container:first-of-type:not(.header .container)) > .container {
  max-width: 480px;
  margin: 0 auto;
  padding-top: clamp(60px, 10vw, 120px);
}

[data-theme="light"] .auth-container {
  background: var(--bg-card-solid);
  border-color: var(--border-card);
  box-shadow: var(--shadow-elevated);
}
[data-theme="light"] body:has(.auth-container) {
  background: var(--bg-primary);
}
[data-theme="light"] body:has(.auth-container) > .logo {
  color: var(--text-primary);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fade-in.visible { animation: none; }
  .hero-formula.fade-in.visible { animation: none; }
  .section-eyebrow.fade-in::after { width: 40px; transition: none; }
  .path-card { transition: none; }
}

@keyframes formula-glow {
  0% { box-shadow: 0 0 0 0 rgba(201,152,26,0); }
  40% { box-shadow: 0 0 40px 8px rgba(201,152,26,0.12); }
  100% { box-shadow: 0 0 0 0 rgba(201,152,26,0); }
}

.hero-formula.fade-in.visible {
  animation: formula-glow 2.5s ease-in-out 0.8s 1;
}

.fade-in-stagger > .fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger > .fade-in:nth-child(2) { transition-delay: 0.12s; }
.fade-in-stagger > .fade-in:nth-child(3) { transition-delay: 0.24s; }
.fade-in-stagger > .fade-in:nth-child(4) { transition-delay: 0.36s; }
.fade-in-stagger > .fade-in:nth-child(5) { transition-delay: 0.48s; }
