:root {
  --navy: #03162d;
  --navy-2: #071f3f;
  --navy-3: #0b315f;
  --blue: #2f80ed;
  --cyan: #63d5ff;
  --gold: #f5c542;
  --white: #ffffff;
  --text: #102033;
  --muted: #5f7187;
  --panel: rgba(255, 255, 255, .92);
  --panel-strong: rgba(255, 255, 255, .98);
  --line: rgba(3, 22, 45, .12);
  --shadow: 0 20px 55px rgba(3, 22, 45, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 85% 8%, rgba(47,128,237,.16), transparent 28%),
    radial-gradient(circle at 8% 85%, rgba(99,213,255,.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(3, 22, 45, .08);
  backdrop-filter: blur(18px);
}

.nav-brand {
  display: flex;
  align-items: center;
  color: var(--navy);
  min-width: 235px;
}

.site-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--navy-2);
  padding: 10px 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  transition: .2s ease;
}

.nav-btn:hover,
.nav-btn.active {
  background: var(--navy);
  border-color: rgba(3,22,45,.18);
  color: var(--white);
  transform: translateY(-1px);
}

.main-content { padding: 34px; max-width: 1280px; margin: 0 auto; }
.page { display: none; animation: fade .25s ease; }
.active-page { display: block; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.compact-panel { padding: 28px 32px; }

.hero { min-height: calc(100vh - 110px); align-items: center; gap: 24px; }
.hero.active-page { display: flex; }
.hero-copy { padding: 48px; flex: 1.25; border-top: 8px solid var(--navy); }
.hero-copy h1, .section-header h1 {
  margin: 8px 0 18px;
  color: var(--navy);
  font-size: clamp(36px, 5.6vw, 70px);
  line-height: .96;
  letter-spacing: -.055em;
}
.hero-copy p, .section-header p, .about-grid p, article p, .coming-soon p, .tool-card p, .blog-admin p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}
.eyebrow {
  color: var(--blue) !important;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px !important;
  font-weight: 950;
}

.hero-logo { width: 340px; padding: 34px 26px; text-align: center; color: var(--navy); background: linear-gradient(180deg, #ffffff, #f6fbff); }
.floating-logo { position: relative; padding: 22px 8px 18px; }
.floating-star { position: absolute; right: 30px; top: -4px; color: var(--cyan); font-size: 66px; text-shadow: 0 0 26px rgba(99,213,255,.55); }
.floating-logo h2 { margin: 26px 0 0; font-size: 56px; letter-spacing: -.06em; }
.floating-logo p { margin: 4px 0 0; color: var(--muted); font-size: 18px; font-weight: 900; letter-spacing: .52em; text-transform: uppercase; }
.hero-logo h3 { margin: 18px 0 0; color: var(--navy); font-size: 21px; }

.hero-actions, .blog-form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.primary-action, .secondary-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
}
.primary-action { background: linear-gradient(135deg, var(--navy), var(--blue)); color: var(--white); }
.secondary-action { background: rgba(3,22,45,.06); color: var(--navy); }

.section-header { margin-bottom: 20px; border-left: 8px solid var(--navy); }
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; padding: 24px; align-items: center; }
.headshot-wrap {
  min-height: 430px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(99,213,255,.30), rgba(47,128,237,.08) 52%, rgba(3,22,45,.05));
  border: 1px solid rgba(3,22,45,.12);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.headshot-wrap img { width: 118%; max-width: none; display: block; transform: translateY(10px); filter: drop-shadow(0 24px 30px rgba(0,0,0,.22)); }
.about-copy { padding: 8px 8px 8px 0; }

.principles-grid, .article-list, .tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.principles-grid article, .article-list article, .tool-card, .blog-admin { padding: 22px; }
.principles-grid h3, .article-list h3, .tool-card h3, .coming-soon h2, .blog-admin h2 { color: var(--navy); font-size: 22px; margin: 0 0 10px; }
.coming-soon { padding: 34px; }
.tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tools-grid a, .blog-card a { color: var(--blue); font-weight: 900; text-decoration: none; }

.blog-admin { display: none; margin-bottom: 18px; border-top: 6px solid var(--blue); }
.blog-admin.open { display: block; }
.blog-admin-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.blog-form, .blog-form label { display: grid; gap: 8px; }
.blog-form { gap: 14px; margin-top: 16px; }
.blog-form-grid { display: grid; grid-template-columns: 1fr 220px; gap: 12px; }
.blog-form span { color: var(--navy); font-size: .88rem; font-weight: 850; }
.blog-form input, .blog-form textarea, .blog-form select {
  width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; color: var(--text); background: #fff; outline: none; font: inherit;
}
.blog-form input:focus, .blog-form textarea:focus, .blog-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,128,237,.12); }
.blog-note { margin: 0; font-size: 14px !important; }
.content-pill { display: inline-flex; margin-bottom: 12px; padding: 6px 10px; border-radius: 999px; color: var(--white); background: var(--navy); font-size: 12px; font-weight: 900; }
.blog-card { border-top: 4px solid rgba(47,128,237,.28); }

/* Floating request information button and modal */
.info-float-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; border: 1px solid rgba(99, 213, 255, 0.38); border-radius: 999px; padding: 15px 22px; color: #021329; background: linear-gradient(135deg, var(--cyan), var(--gold)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), 0 0 28px rgba(99, 213, 255, 0.22); cursor: pointer; font-weight: 950; letter-spacing: -0.01em;
}
.info-float-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24), 0 0 34px rgba(99, 213, 255, 0.32); }
.info-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 22px; }
.info-modal.open { display: flex; }
.info-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 8, 24, 0.72); backdrop-filter: blur(10px); }
.info-modal-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: calc(100vh - 44px); overflow: auto; border: 1px solid rgba(99, 213, 255, 0.24); border-radius: 26px; padding: 30px; color: #eaf4ff; background: linear-gradient(180deg, rgba(7, 31, 63, 0.98), rgba(2, 13, 29, 0.98)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48); }
.info-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #eaf4ff; background: rgba(255, 255, 255, 0.08); cursor: pointer; font-size: 28px; line-height: 1; }
.info-modal-card h2 { margin: 0 0 10px; color: #fff; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 0.98; letter-spacing: -0.055em; }
.info-modal-copy { margin-bottom: 22px; color: #b8c8dc; line-height: 1.55; }
.info-form, .info-form label { display: grid; gap: 8px; }
.info-form { gap: 14px; }
.info-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-form span { color: #eaf4ff; font-size: 0.88rem; font-weight: 850; }
.info-form input, .info-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 15px; color: #f7fbff; background: rgba(2, 11, 36, 0.62); outline: none; font: inherit; }
.info-form input:focus, .info-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(99, 213, 255, 0.12); }
.info-submit { border: 0; border-radius: 999px; padding: 15px 22px; color: #021329; background: linear-gradient(135deg, var(--cyan), var(--blue)); cursor: pointer; font-weight: 950; }
.info-success { min-height: 22px; margin: 0; color: var(--cyan); font-weight: 800; }
.hidden-field { display: none !important; }
body.info-modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .top-nav { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .hero.active-page { flex-direction: column; }
  .hero-copy, .hero-logo { width: 100%; }
  .about-grid, .principles-grid, .article-list, .tools-grid, .blog-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-content { padding: 18px; }
  .top-nav { padding: 12px 16px; }
  .nav-btn { font-size: 12px; padding: 9px 11px; }
  .hero-copy, .compact-panel { padding: 26px 22px; }
  .info-float-btn { right: 16px; bottom: 16px; padding: 13px 16px; font-size: 0.9rem; }
  .info-modal-card { padding: 26px 20px; }
  .info-form-grid { grid-template-columns: 1fr; }
  .blog-admin-header { flex-direction: column; }
}

/* V7 home page and top navigation refinements */
.top-nav {
  flex-wrap: nowrap;
}

.nav-brand {
  flex: 0 0 auto;
}

.nav-links {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
}

.nav-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex: 1 1 0;
  padding: 10px 12px;
  line-height: 1.1;
  text-align: center;
}

.home-page {
  display: none;
}

.home-page.active-page {
  display: block;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 360px;
  gap: 26px;
  align-items: stretch;
  padding: 34px;
  overflow: hidden;
  border-top: 8px solid var(--navy);
  background:
    radial-gradient(circle at 92% 12%, rgba(99,213,255,.24), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,251,255,.9));
}

.hero-copy-rich h1 {
  margin: 8px 0 18px;
  max-width: 850px;
  color: var(--navy);
  font-size: clamp(44px, 6.2vw, 82px);
  line-height: .92;
  letter-spacing: -.065em;
}

.hero-lead {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-proof-card {
  min-height: 360px;
  padding: 30px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(160deg, var(--navy), #0b356c 68%, var(--blue));
  box-shadow: 0 24px 60px rgba(3,22,45,.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.proof-number {
  font-size: 108px;
  line-height: .8;
  font-weight: 950;
  letter-spacing: -.08em;
  color: var(--cyan);
}

.hero-proof-card p {
  color: rgba(255,255,255,.88);
  font-size: 20px;
  line-height: 1.42;
  margin: 24px 0;
}

.hero-proof-card span {
  color: var(--gold);
  font-weight: 950;
}

.home-section-title {
  max-width: 880px;
  margin: 34px auto 18px;
  text-align: center;
}

.home-section-title h2,
.literacy-banner h2 {
  margin: 6px 0 12px;
  color: var(--navy);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: .98;
  letter-spacing: -.055em;
}

.home-section-title p,
.literacy-banner p,
.value-card p,
.audience-card p,
.principle-stack span {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card,
.audience-card {
  padding: 24px;
}

.value-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  background: var(--navy);
  font-weight: 950;
  margin-bottom: 16px;
}

.value-card h3,
.audience-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -.02em;
}

.literacy-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 34px;
  border-left: 8px solid var(--blue);
}

.principle-stack {
  display: grid;
  gap: 12px;
}

.principle-stack div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(3,22,45,.05);
  border: 1px solid var(--line);
}

.principle-stack strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 4px;
}

.compact-home-title {
  margin-top: 30px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1120px) {
  .top-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-btn {
    flex: 1 1 auto;
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .home-hero,
  .literacy-banner {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .nav-btn {
    flex: 0 0 auto;
  }

  .home-hero,
  .literacy-banner {
    padding: 24px;
  }

  .value-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

/* V8 admin portal, services, and tighter top navigation */
.admin-nav-btn {
  background: rgba(245, 197, 66, .14);
  border-color: rgba(245, 197, 66, .35);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  padding: 24px;
  border-top: 4px solid rgba(47,128,237,.28);
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -.02em;
}

.service-price {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(3,22,45,.08);
  color: var(--navy);
  font-size: 18px;
}

.admin-login,
.admin-dashboard-header {
  padding: 28px;
  margin-bottom: 18px;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
  border-left: 8px solid var(--navy);
}

.admin-login h2,
.admin-dashboard-header h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 34px;
  letter-spacing: -.04em;
}

.admin-login-form,
.admin-login-form label {
  display: grid;
  gap: 8px;
}

.admin-login-form {
  gap: 14px;
}

.admin-login-form span {
  color: var(--navy);
  font-size: .88rem;
  font-weight: 850;
}

.admin-login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  font: inherit;
}

.admin-login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,128,237,.12);
}

.admin-login-message {
  min-height: 22px;
  margin: 0;
  color: #b42318;
  font-weight: 850;
}

.admin-dashboard {
  display: none;
}

.admin-dashboard.open {
  display: block;
}

.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-left: 8px solid var(--blue);
}

.admin-dashboard .blog-admin {
  display: block;
  margin-bottom: 18px;
}

.service-admin-panel {
  border-top-color: var(--gold);
}

@media (max-width: 1180px) {
  .nav-brand { min-width: 190px; }
  .site-logo { width: 178px; }
  .nav-btn { font-size: 11px; padding: 9px 8px; }
}

@media (max-width: 980px) {
  .service-list,
  .admin-login {
    grid-template-columns: 1fr;
  }
  .admin-dashboard-header {
    flex-direction: column;
  }
}

/* V10 admin publishing upgrades */
.active-services-admin {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.active-services-header h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.admin-service-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.admin-service-item strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
}

.admin-service-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.admin-service-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.danger-action {
  border: 1px solid rgba(180, 35, 24, .18);
  border-radius: 999px;
  padding: 13px 20px;
  color: #b42318;
  background: rgba(180, 35, 24, .08);
  cursor: pointer;
  font-weight: 900;
}

.empty-admin-list {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(3,22,45,.03);
}

.blog-card a + a {
  display: inline-block;
  margin-left: 14px;
}

@media (max-width: 720px) {
  .admin-service-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-service-actions {
    justify-content: flex-start;
  }
}

/* V11 published content manager */
.published-content-admin {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.published-content-header h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.admin-content-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-content-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.admin-content-item strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
}

.admin-content-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.admin-content-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.admin-content-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .admin-content-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-content-actions {
    justify-content: flex-start;
  }
}

/* Financial Literacy search and full-content viewer */
.literacy-search {
  margin-bottom: 18px;
}

.literacy-search label {
  display: block;
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 8px;
}

.literacy-search input {
  width: 100%;
  border: 1px solid rgba(9, 35, 64, .14);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.literacy-search input:focus {
  border-color: rgba(47,128,237,.75);
  box-shadow: 0 0 0 4px rgba(47,128,237,.12);
}

.search-help,
.no-search-results {
  color: var(--muted);
  font-weight: 700;
}

.no-search-results {
  text-align: center;
  margin: 20px 0;
}

.clickable-article {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.clickable-article:hover,
.clickable-article:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(9, 35, 64, .12);
  border-color: rgba(47,128,237,.35);
  outline: none;
}

.read-article-btn {
  margin-top: 12px;
  border: 0;
  background: rgba(9, 35, 64, .08);
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.article-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 70;
}

.article-modal.open {
  display: block;
}

.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 35, 64, .68);
  backdrop-filter: blur(4px);
}

.article-modal-card {
  position: relative;
  width: min(860px, calc(100% - 32px));
  max-height: calc(100vh - 60px);
  overflow: auto;
  margin: 30px auto;
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.article-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: rgba(9, 35, 64, .08);
  color: var(--navy);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.article-modal-card h2 {
  color: var(--navy);
  margin: 8px 42px 10px 0;
  font-size: clamp(30px, 5vw, 46px);
}

.article-modal-excerpt {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.article-modal-body {
  margin-top: 18px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  white-space: normal;
}

.article-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.article-modal-links a {
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 900;
}

body.article-modal-open {
  overflow: hidden;
}


/* V15 Core Principles Roadmap refinement */
.core-principles-page .section-header {
  display: none;
}

.principles-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  align-items: center;
  padding: 38px;
  margin-bottom: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 16%, rgba(99, 213, 255, .22), transparent 30%),
    linear-gradient(135deg, var(--navy), #0c3568 72%, var(--blue));
  border: 1px solid rgba(99, 213, 255, .18);
  overflow: hidden;
}

.principles-hero h1 {
  margin: 8px 0 16px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 76px);
  line-height: .94;
  letter-spacing: -.065em;
}

.principles-hero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(234, 244, 255, .86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.journey-badge {
  min-height: 220px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .06);
}

.journey-badge span {
  color: var(--cyan);
  font-size: 94px;
  font-weight: 950;
  line-height: .82;
  letter-spacing: -.08em;
}

.journey-badge strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: 22px;
  letter-spacing: -.02em;
}

.journey-badge small {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.roadmap-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 72px;
  padding: 16px 0 8px;
}

.roadmap-line {
  position: absolute;
  top: 58px;
  bottom: 58px;
  left: 50%;
  width: 0;
  transform: translateX(-50%);
  border-left: 3px dashed rgba(10, 35, 66, .28);
}

.principle-step {
  position: relative;
  min-height: 250px;
  padding: 112px 28px 28px;
  border: 1px solid rgba(10, 35, 66, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(248, 252, 255, .98));
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: visible;
}

.principle-step:nth-of-type(even) {
  margin-top: 50px;
}

.principle-step::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42px;
  border-top: 3px dashed rgba(10, 35, 66, .25);
}

.principle-step:nth-of-type(odd)::after {
  right: -56px;
}

.principle-step:nth-of-type(even)::after {
  left: -56px;
}

.principle-step:hover {
  transform: translateY(-5px);
  border-color: rgba(10, 35, 66, .28);
  box-shadow: 0 24px 58px rgba(3, 22, 45, .13);
}

.principle-icon {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 3px solid var(--navy);
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(10, 35, 66, .12);
}

.principle-icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle-number {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-align: center;
}

.principle-step h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-align: center;
}

.principle-step p {
  margin: 0 auto;
  max-width: 540px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 980px) {
  .principles-hero,
  .roadmap-wrap {
    grid-template-columns: 1fr;
  }

  .journey-badge {
    min-height: 170px;
  }

  .roadmap-line {
    left: 31px;
    top: 76px;
    bottom: 76px;
  }

  .principle-step,
  .principle-step:nth-of-type(even) {
    margin-top: 0;
    margin-left: 44px;
  }

  .principle-step::after,
  .principle-step:nth-of-type(odd)::after,
  .principle-step:nth-of-type(even)::after {
    left: -44px;
    right: auto;
    width: 34px;
    border-top: 3px dashed rgba(10, 35, 66, .25);
  }
}

@media (max-width: 640px) {
  .principles-hero {
    padding: 24px;
  }

  .principle-step {
    padding: 106px 20px 24px;
  }

  .principle-icon {
    width: 108px;
    height: 68px;
  }

  .principle-icon svg {
    width: 36px;
    height: 36px;
  }
}

/* V16 Admin media upload support */
.media-upload-grid {
  grid-template-columns: 1fr 1fr;
}

.media-label {
  display: inline-flex;
  margin-top: 8px;
  color: var(--navy);
  background: rgba(9, 35, 64, .07);
  border: 1px solid rgba(9, 35, 64, .12);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.article-modal-media {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.media-preview-title {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.article-media-image,
.article-media-video {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 35, 64, .04);
}

.article-media-player {
  width: 100%;
}


.article-pdf-viewer {
  width: 100%;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 35, 64, .04);
}

.article-modal-media:first-of-type {
  margin-top: 24px;
}


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