/*
Theme Name: Fundex24 Research
Author: Fundex24
Description: Production editorial blog theme for Fundex24 crypto prop trading research.
Version: 1.0.2
*/

:root {
  --fx-bg: #f4f7fb;
  --fx-ink: #0f172a;
  --fx-muted: #64748b;
  --fx-card: rgba(255,255,255,.96);
  --fx-border: rgba(148,163,184,.24);
  --fx-blue: #2563eb;
  --fx-cyan: #0ea5e9;
  --fx-green: #b8ff6a;
  --fx-dark: #0b1020;
}

* { box-sizing: border-box; }

html, body, .fx-ltr {
  direction: ltr !important;
  text-align: left !important;
}

body {
  margin: 0;
  background: #f4f7fb;
  color: var(--fx-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

.fx-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.fx-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(12,18,32,.82);
  backdrop-filter: blur(22px);
}

.fx-topbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.fx-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
}

.fx-logo-word {
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.05em;
}

.fx-logo-sub {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(255,255,255,.70);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.fx-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 800;
}

.fx-nav a:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}

.fx-start-btn {
  background: linear-gradient(135deg, var(--fx-cyan), var(--fx-blue)) !important;
  color: #fff !important;
  box-shadow: 0 16px 42px rgba(37,99,235,.30);
}

.fx-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 54px;
  background:
    radial-gradient(circle at 14% 8%, rgba(37,99,235,.38), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(184,255,106,.22), transparent 30%),
    linear-gradient(135deg, #07101f 0%, #0d1730 48%, #101f24 100%);
  color: #fff;
}

.fx-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
}

.fx-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 420px;
  gap: 44px;
  align-items: center;
}

.fx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fx-kicker::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fx-green);
  box-shadow: 0 0 22px rgba(184,255,106,.8);
}

.fx-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 950;
}

.fx-hero h1 span {
  display: block;
  background: linear-gradient(90deg, #fff, var(--fx-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-hero p {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 18px;
  line-height: 1.78;
}

.fx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.fx-btn-primary {
  background: linear-gradient(135deg, var(--fx-cyan), var(--fx-blue));
  color: #fff;
  box-shadow: 0 18px 50px rgba(37,99,235,.34);
}

.fx-btn-secondary {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.fx-terminal-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  padding: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 100px rgba(0,0,0,.28);
}

.fx-terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fx-terminal-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.fx-terminal-top span:first-child { background: #ff5f57; }
.fx-terminal-top span:nth-child(2) { background: #ffbd2e; }
.fx-terminal-top span:nth-child(3) { background: #28c840; }
.fx-terminal-top strong { margin-left: auto; }

.fx-terminal-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 800;
}

.fx-terminal-row strong {
  color: #fff;
}

.fx-terminal-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}

.fx-terminal-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fx-cyan), var(--fx-green));
}

.fx-terminal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.fx-terminal-tags b {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  font-size: 11px;
}

.fx-research-nav {
  padding: 18px 0;
  background: #eaf1fb;
  border-bottom: 1px solid rgba(148,163,184,.20);
}

.fx-research-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.fx-research-pill {
  padding: 18px;
  border: 1px solid var(--fx-border);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 50px rgba(15,23,42,.06);
}

.fx-research-pill strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  letter-spacing: -.04em;
}

.fx-research-pill span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.fx-main {
  padding: 38px 0 70px;
  background: #f4f7fb;
}

.fx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.fx-section-head {
  margin-bottom: 20px;
}

.fx-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.fx-section-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--fx-muted);
  line-height: 1.7;
}

.fx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fx-card {
  overflow: hidden;
  border: 1px solid var(--fx-border);
  border-radius: 28px;
  background: var(--fx-card);
  box-shadow: 0 20px 60px rgba(15,23,42,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fx-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.32);
  box-shadow: 0 30px 80px rgba(15,23,42,.13);
}

.fx-card-visual {
  min-height: 178px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 20% 0%, rgba(184,255,106,.30), transparent 36%),
    radial-gradient(circle at 80% 20%, rgba(14,165,233,.34), transparent 34%),
    linear-gradient(135deg, #0b1020, #16213f);
}

.fx-card-badge {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.84);
  font-size: 11px;
  font-weight: 900;
}

.fx-card-body {
  padding: 22px;
}

.fx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--fx-muted);
  font-size: 12px;
  font-weight: 800;
}

.fx-card h3 {
  margin: 12px 0 10px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.fx-card p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
  font-size: 15px;
}

.fx-read {
  display: inline-flex;
  margin-top: 18px;
  color: var(--fx-blue);
  font-size: 14px;
  font-weight: 950;
}

.fx-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.fx-widget {
  border: 1px solid var(--fx-border);
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  padding: 20px;
  box-shadow: 0 20px 60px rgba(15,23,42,.08);
}

.fx-widget-dark {
  background:
    radial-gradient(circle at 10% 0%, rgba(184,255,106,.22), transparent 36%),
    linear-gradient(135deg, #0b1020, #14213f);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

.fx-widget-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--fx-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fx-widget h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -.04em;
}

.fx-widget p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
}

.fx-widget-dark p { color: rgba(255,255,255,.68); }

.fx-cat-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.fx-cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 16px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.fx-cat-list a:hover {
  background: #eef2ff;
  color: var(--fx-blue);
}

.fx-footer {
  padding: 36px 0;
  background: #f4f7fb;
  border-top: 1px solid rgba(148,163,184,.20);
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.fx-article {
  max-width: 980px;
  margin: 34px auto 72px;
  border: 1px solid var(--fx-border);
  border-radius: 34px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 90px rgba(15,23,42,.12);
  overflow: hidden;
}

.fx-article-top {
  padding: 40px;
  background:
    radial-gradient(circle at 10% 0%, rgba(184,255,106,.20), transparent 36%),
    radial-gradient(circle at 90% 10%, rgba(14,165,233,.24), transparent 34%),
    linear-gradient(135deg, #0b1020, #101a33);
  color: #fff;
}

.fx-article-top h1 {
  max-width: 790px;
  margin: 14px 0 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -.065em;
}

.fx-article-top p {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.8;
}

.fx-article-content {
  padding: 36px 40px 46px;
  color: #334155;
}

.fx-article-content h2,
.fx-article-content h3 {
  color: #0f172a;
  letter-spacing: -.045em;
}

.fx-article-content p,
.fx-article-content li {
  font-size: 17px;
  line-height: 1.85;
}

.fx-inline-cta {
  margin: 34px 0;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(184,255,106,.20), transparent 38%),
    linear-gradient(135deg, #101827, #111c34);
  color: #fff;
}

.fx-inline-cta h3 { margin: 0 0 8px; color: #fff; }
.fx-inline-cta p { color: rgba(255,255,255,.70); }

.fx-inline-cta a {
  display: inline-flex;
  margin-top: 8px;
  min-height: 42px;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--fx-cyan), var(--fx-blue));
  color: #fff;
  font-weight: 900;
}

@media (max-width: 960px) {
  .fx-hero-grid { grid-template-columns: 1fr; }
  .fx-layout { grid-template-columns: 1fr; }
  .fx-sidebar { position: static; }
  .fx-research-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .fx-shell { width: min(100% - 24px, 1180px); }
  .fx-topbar-inner { height: 62px; }
  .fx-nav a:not(.fx-start-btn) { display: none; }
  .fx-hero { padding: 48px 0 34px; }
  .fx-hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .fx-hero p { font-size: 15px; }
  .fx-grid { grid-template-columns: 1fr; }
  .fx-research-strip { grid-template-columns: 1fr; }
  .fx-terminal-card { padding: 14px; }
  .fx-article { margin: 18px 12px 54px; border-radius: 24px; }
  .fx-article-top { padding: 26px; }
  .fx-article-content { padding: 26px; }
}

/* Bilingual + readability fixes */
.fx-ltr {
  direction: ltr !important;
  text-align: left !important;
}

.fx-rtl {
  direction: rtl !important;
  text-align: right !important;
  font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
}

.fx-rtl .fx-topbar-inner,
.fx-rtl .fx-hero-grid,
.fx-rtl .fx-layout,
.fx-rtl .fx-article-grid {
  direction: rtl;
}

.fx-rtl .fx-terminal-top strong {
  margin-left: 0;
  margin-right: auto;
}

.fx-lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.fx-lang-switch a {
  padding: 7px 9px !important;
  font-size: 11px !important;
  font-weight: 950 !important;
}

.fx-lang-switch a.is-active {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.fx-article-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.fx-toc {
  position: sticky;
  top: 86px;
  padding: 34px 0 34px 34px;
}

.fx-toc-card {
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 24px;
  background: #f8fafc;
  padding: 18px;
}

.fx-toc-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fx-toc-card h3 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 18px;
  letter-spacing: -.04em;
}

#fxTocList {
  display: grid;
  gap: 7px;
}

#fxTocList a {
  display: block;
  padding: 9px 10px;
  border-radius: 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

#fxTocList a:hover {
  background: #eaf1ff;
  color: #2563eb;
}

#fxTocList a.is-sub {
  margin-left: 10px;
  color: #64748b;
  font-size: 12px;
}

.fx-rtl #fxTocList a.is-sub {
  margin-left: 0;
  margin-right: 10px;
}

.fx-toc-empty {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.fx-article-grid .fx-article-content {
  padding-left: 30px;
}

.fx-rtl .fx-article-grid .fx-article-content {
  padding-left: 40px;
  padding-right: 30px;
}

/* prevent unreadable light-on-light hero issue */
.fx-hero,
.fx-hero * {
  color-scheme: dark;
}

.fx-hero .fx-btn-secondary {
  color: #fff !important;
}

.fx-card h3 a,
.fx-card h3,
.fx-section-head h2,
.fx-widget h3 {
  color: #0f172a !important;
}

@media (max-width: 960px) {
  .fx-article-grid {
    grid-template-columns: 1fr;
  }

  .fx-toc {
    position: static;
    padding: 22px 26px 0;
  }

  .fx-article-grid .fx-article-content,
  .fx-rtl .fx-article-grid .fx-article-content {
    padding-left: 26px;
    padding-right: 26px;
  }
}

@media (max-width: 720px) {
  .fx-lang-switch {
    display: none;
  }
}

/* Fundex24 innovative single article experience */
.fx-single-main {
  background:
    radial-gradient(circle at 16% 4%, rgba(37,99,235,.16), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(184,255,106,.10), transparent 26%),
    #f4f7fb;
}

.fx-article-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 50px;
  background:
    radial-gradient(circle at 12% 8%, rgba(37,99,235,.38), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(184,255,106,.22), transparent 30%),
    linear-gradient(135deg, #07101f 0%, #0d1730 48%, #101f24 100%);
  color: #fff;
}

.fx-article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.fx-intel-breadcrumb {
  position: relative;
  z-index: 1;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(18px);
}

.fx-intel-breadcrumb a {
  color: rgba(255,255,255,.86);
}

.fx-intel-breadcrumb a:hover {
  color: #fff;
}

.fx-bc-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(184,255,106,.18);
  color: #b8ff6a;
}

.fx-bc-sep {
  color: rgba(255,255,255,.34);
}

.fx-article-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: center;
}

.fx-article-hero-copy h1 {
  max-width: 820px;
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: .94;
  letter-spacing: -.07em;
}

.fx-article-hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.74);
  font-size: 18px;
  line-height: 1.8;
}

.fx-article-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
}

.fx-article-signals div {
  padding: 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.fx-article-signals strong {
  display: block;
  color: #fff;
  font-size: 16px;
  letter-spacing: -.03em;
}

.fx-article-signals span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 850;
}

.fx-brief-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  padding: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 100px rgba(0,0,0,.28);
}

.fx-brief-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.fx-brief-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.fx-brief-top span:first-child { background: #ff5f57; }
.fx-brief-top span:nth-child(2) { background: #ffbd2e; }
.fx-brief-top span:nth-child(3) { background: #28c840; }

.fx-brief-top b {
  margin-left: auto;
}

.fx-brief-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.64);
  font-size: 13px;
  font-weight: 850;
}

.fx-brief-row strong {
  color: #fff;
  text-align: right;
}

.fx-brief-meter {
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.fx-brief-meter-head {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
}

.fx-brief-meter i {
  display: block;
  height: 8px;
  overflow: hidden;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}

.fx-brief-meter em {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #b8ff6a);
}

.fx-brief-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.fx-brief-tags span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 900;
}

.fx-article-body-shell {
  padding: 30px 0 80px;
}

.fx-article-body-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.fx-toc-left {
  position: sticky;
  top: 88px;
}

.fx-mobile-toc {
  display: none;
}

.fx-article-content-wrap {
  min-width: 0;
}

.fx-research-note {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(37,99,235,.10), transparent 34%),
    #fff;
  box-shadow: 0 18px 50px rgba(15,23,42,.07);
}

.fx-research-note strong {
  display: block;
  margin-bottom: 6px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.fx-research-note p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.fx-article-content {
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 30px;
  background: rgba(255,255,255,.97);
  padding: 38px;
  box-shadow: 0 24px 80px rgba(15,23,42,.09);
}

.fx-article-content h2 {
  margin-top: 36px;
  color: #0f172a;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.fx-article-content h2:first-child {
  margin-top: 0;
}

.fx-article-content h3 {
  margin-top: 28px;
  color: #0f172a;
  font-size: 23px;
  letter-spacing: -.04em;
}

.fx-article-content p,
.fx-article-content li {
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.fx-article-content blockquote {
  margin: 30px 0;
  padding: 24px;
  border: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(184,255,106,.24), transparent 34%),
    linear-gradient(135deg, #0b1020, #121c35);
  color: #fff;
  box-shadow: 0 20px 60px rgba(15,23,42,.16);
}

.fx-article-content blockquote,
.fx-article-content blockquote p {
  color: rgba(255,255,255,.86);
  font-weight: 800;
}

.fx-side-card {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 60px rgba(15,23,42,.08);
}

.fx-side-card span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fx-side-card h3 {
  margin: 9px 0 8px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.fx-side-card p {
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
}

.fx-side-card a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.fx-side-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.8;
  font-weight: 750;
}

.fx-side-card-dark {
  background:
    radial-gradient(circle at 10% 0%, rgba(184,255,106,.20), transparent 36%),
    linear-gradient(135deg, #0b1020, #132140);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

.fx-side-card-dark h3 {
  color: #fff;
}

.fx-side-card-dark p {
  color: rgba(255,255,255,.68);
}

.fx-side-card-dark span {
  color: #b8ff6a;
}

.fx-rtl .fx-brief-top b {
  margin-left: 0;
  margin-right: auto;
}

.fx-rtl .fx-brief-row strong {
  text-align: left;
}

.fx-rtl .fx-side-card ul {
  padding-left: 0;
  padding-right: 18px;
}

@media (max-width: 1180px) {
  .fx-article-body-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .fx-article-side {
    display: none;
  }
}

@media (max-width: 960px) {
  .fx-article-hero-grid {
    grid-template-columns: 1fr;
  }

  .fx-article-signals {
    grid-template-columns: 1fr;
  }

  .fx-brief-card {
    max-width: 520px;
  }

  .fx-article-body-grid {
    grid-template-columns: 1fr;
  }

  .fx-toc-left {
    display: none;
  }

  .fx-mobile-toc {
    display: block;
    margin-bottom: 18px;
  }

  .fx-article-content {
    padding: 28px;
    border-radius: 24px;
  }
}

@media (max-width: 720px) {
  .fx-article-hero {
    padding: 26px 0 36px;
  }

  .fx-intel-breadcrumb {
    border-radius: 20px;
    align-items: flex-start;
  }

  .fx-article-hero-copy h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .fx-article-hero-copy p {
    font-size: 15px;
  }

  .fx-article-content {
    padding: 24px;
  }

  .fx-article-content h2 {
    font-size: 26px;
  }
}

/* Compact Research Density Mode — more content visible without losing premium UI */
:root {
  --fx-compact-radius-xl: 22px;
  --fx-compact-radius-lg: 18px;
}

.fx-shell {
  width: min(1280px, calc(100% - 28px));
}

.fx-topbar-inner {
  height: 58px;
}

.fx-logo-word {
  font-size: 18px;
}

.fx-logo-sub {
  padding: 4px 8px;
  font-size: 10px;
}

.fx-nav a {
  padding: 8px 11px;
  font-size: 12px;
}

.fx-article-hero {
  padding: 22px 0 32px;
}

.fx-intel-breadcrumb {
  margin-bottom: 18px;
  padding: 7px 10px;
  font-size: 11px;
}

.fx-bc-icon {
  width: 19px;
  height: 19px;
}

.fx-article-hero-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.fx-article-hero-copy h1 {
  max-width: 780px;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: .96;
}

.fx-article-hero-copy p {
  max-width: 680px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
}

.fx-kicker {
  margin-bottom: 12px;
  padding: 6px 11px;
  font-size: 10px;
}

.fx-article-signals {
  max-width: 680px;
  gap: 8px;
  margin-top: 18px;
}

.fx-article-signals div {
  padding: 11px 12px;
  border-radius: var(--fx-compact-radius-lg);
}

.fx-article-signals strong {
  font-size: 14px;
}

.fx-article-signals span {
  font-size: 11px;
}

.fx-brief-card {
  border-radius: var(--fx-compact-radius-xl);
  padding: 14px;
}

.fx-brief-top {
  margin-bottom: 12px;
  font-size: 10px;
}

.fx-brief-row {
  padding: 10px 0;
  font-size: 12px;
}

.fx-brief-tags {
  margin-top: 12px;
}

.fx-brief-tags span {
  padding: 6px 8px;
  font-size: 10px;
}

.fx-article-body-shell {
  padding: 20px 0 56px;
}

.fx-article-body-grid {
  grid-template-columns: 220px minmax(0, 1fr) 250px;
  gap: 16px;
}

.fx-toc-card {
  border-radius: var(--fx-compact-radius-xl);
  padding: 14px;
}

.fx-toc-card h3 {
  margin-bottom: 9px;
  font-size: 16px;
}

.fx-toc-label {
  margin-bottom: 6px;
  font-size: 10px;
}

#fxTocList {
  gap: 5px;
}

#fxTocList a {
  padding: 7px 8px;
  border-radius: 11px;
  font-size: 12px;
}

#fxTocList a.is-sub {
  font-size: 11px;
}

.fx-research-note {
  margin-bottom: 12px;
  padding: 15px 16px;
  border-radius: var(--fx-compact-radius-xl);
}

.fx-research-note strong {
  font-size: 11px;
}

.fx-research-note p {
  font-size: 13px;
  line-height: 1.55;
}

.fx-article-content {
  border-radius: 24px;
  padding: 28px 32px;
}

.fx-article-content h2 {
  margin-top: 28px;
  font-size: 27px;
  line-height: 1.12;
}

.fx-article-content h3 {
  margin-top: 22px;
  font-size: 20px;
}

.fx-article-content p,
.fx-article-content li {
  font-size: 15.5px;
  line-height: 1.78;
}

.fx-article-content blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: var(--fx-compact-radius-xl);
}

.fx-side-card {
  margin-bottom: 12px;
  padding: 15px;
  border-radius: var(--fx-compact-radius-xl);
}

.fx-side-card h3 {
  font-size: 18px;
}

.fx-side-card p {
  font-size: 13px;
  line-height: 1.55;
}

.fx-side-card a {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.fx-inline-cta {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--fx-compact-radius-xl);
}

.fx-inline-cta h3 {
  font-size: 20px;
}

.fx-inline-cta p {
  font-size: 14px;
  line-height: 1.6;
}

/* Blog homepage compactness too */
.fx-hero {
  padding: 54px 0 38px;
}

.fx-hero-grid {
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 30px;
}

.fx-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.fx-hero p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
}

.fx-research-nav {
  padding: 12px 0;
}

.fx-research-strip {
  gap: 10px;
}

.fx-research-pill {
  padding: 14px;
  border-radius: 18px;
}

.fx-research-pill strong {
  font-size: 16px;
}

.fx-research-pill span {
  font-size: 12px;
}

.fx-main {
  padding: 28px 0 54px;
}

.fx-grid {
  gap: 14px;
}

.fx-card {
  border-radius: 22px;
}

.fx-card-visual {
  min-height: 132px;
}

.fx-card-body {
  padding: 17px;
}

.fx-card h3 {
  font-size: 21px;
}

.fx-card p {
  font-size: 14px;
  line-height: 1.6;
}

.fx-widget {
  padding: 16px;
  border-radius: 22px;
}

@media (max-width: 1180px) {
  .fx-article-body-grid {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .fx-article-hero-grid,
  .fx-hero-grid {
    grid-template-columns: 1fr;
  }

  .fx-brief-card,
  .fx-terminal-card {
    max-width: none;
  }

  .fx-article-content {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .fx-shell {
    width: min(100% - 20px, 1280px);
  }

  .fx-article-hero {
    padding: 20px 0 28px;
  }

  .fx-article-hero-copy h1 {
    font-size: clamp(31px, 9.5vw, 46px);
  }

  .fx-article-content {
    padding: 20px;
  }

  .fx-article-content h2 {
    font-size: 23px;
  }

  .fx-article-content p,
  .fx-article-content li {
    font-size: 15px;
  }
}

/* Ultra Compact + Innovation Layer v2 */
:root {
  --fx-density-scale: .92;
}

/* subtle research-grid background */
.fx-single-main,
.fx-main {
  background:
    radial-gradient(circle at 12% 4%, rgba(37,99,235,.10), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(184,255,106,.08), transparent 24%),
    linear-gradient(rgba(15,23,42,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.025) 1px, transparent 1px),
    #f4f7fb;
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
}

/* make whole blog feel slightly zoomed out */
.fx-shell {
  width: min(1380px, calc(100% - 24px));
}

.fx-topbar-inner {
  height: 54px;
}

.fx-logo-word {
  font-size: 17px;
}

.fx-logo-sub {
  transform: scale(.9);
  transform-origin: left center;
}

.fx-nav {
  gap: 5px;
}

.fx-nav a {
  padding: 7px 10px;
  font-size: 11.5px;
}

/* compact homepage */
.fx-hero {
  padding: 42px 0 28px;
}

.fx-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) 330px;
  gap: 24px;
}

.fx-hero h1 {
  max-width: 850px;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: .94;
}

.fx-hero p {
  max-width: 760px;
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.58;
}

.fx-hero-actions {
  margin-top: 18px;
}

.fx-btn {
  min-height: 39px;
  padding: 0 14px;
  font-size: 12px;
}

.fx-terminal-card {
  border-radius: 22px;
  padding: 13px;
}

.fx-terminal-row {
  padding: 9px 0;
  font-size: 11.5px;
}

.fx-terminal-tags {
  margin-top: 12px;
}

.fx-terminal-tags b {
  padding: 6px 8px;
  font-size: 10px;
}

.fx-research-nav {
  padding: 9px 0;
}

.fx-research-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.fx-research-pill {
  padding: 12px;
  border-radius: 16px;
}

.fx-research-pill strong {
  font-size: 15px;
}

.fx-research-pill span {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.35;
}

.fx-main {
  padding: 22px 0 44px;
}

.fx-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.fx-section-head {
  margin-bottom: 14px;
}

.fx-section-head h2 {
  font-size: 28px;
}

.fx-section-head p {
  font-size: 13.5px;
  line-height: 1.55;
}

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

.fx-card {
  border-radius: 18px;
}

.fx-card-visual {
  min-height: 104px;
  padding: 13px;
}

.fx-card-badge {
  padding: 6px 9px;
  font-size: 10px;
}

.fx-card-body {
  padding: 14px;
}

.fx-meta {
  font-size: 10.5px;
}

.fx-card h3 {
  margin: 8px 0 7px;
  font-size: 18px;
  line-height: 1.12;
}

.fx-card p {
  font-size: 12.8px;
  line-height: 1.52;
}

.fx-read {
  margin-top: 12px;
  font-size: 12px;
}

.fx-widget {
  padding: 14px;
  border-radius: 18px;
}

.fx-widget h3 {
  font-size: 17px;
}

.fx-widget p {
  font-size: 12.5px;
  line-height: 1.5;
}

.fx-cat-list {
  gap: 6px;
}

.fx-cat-list a {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11.5px;
}

/* compact article inner page */
.fx-article-hero {
  padding: 16px 0 24px;
}

.fx-intel-breadcrumb {
  margin-bottom: 12px;
  padding: 6px 9px;
  font-size: 10.5px;
  border-radius: 999px;
}

.fx-bc-icon {
  width: 17px;
  height: 17px;
}

.fx-article-hero-grid {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
}

.fx-article-hero-copy h1 {
  max-width: 880px;
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .96;
}

.fx-article-hero-copy p {
  max-width: 780px;
  margin-top: 11px;
  font-size: 14px;
  line-height: 1.55;
}

.fx-kicker {
  margin-bottom: 8px;
  padding: 5px 9px;
  font-size: 9.5px;
}

.fx-article-signals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  gap: 7px;
  margin-top: 14px;
}

.fx-article-signals div {
  padding: 9px 10px;
  border-radius: 14px;
}

.fx-article-signals strong {
  font-size: 12.5px;
}

.fx-article-signals span {
  margin-top: 2px;
  font-size: 10px;
}

.fx-brief-card {
  border-radius: 18px;
  padding: 11px;
}

.fx-brief-top {
  margin-bottom: 8px;
  font-size: 9.5px;
}

.fx-brief-top span {
  width: 7px;
  height: 7px;
}

.fx-brief-row {
  padding: 8px 0;
  font-size: 11px;
}

.fx-brief-meter {
  padding-top: 10px;
}

.fx-brief-meter-head {
  font-size: 10.5px;
}

.fx-brief-tags {
  gap: 6px;
  margin-top: 10px;
}

.fx-brief-tags span {
  padding: 5px 7px;
  font-size: 9.5px;
}

.fx-article-body-shell {
  padding: 14px 0 44px;
}

.fx-article-body-grid {
  grid-template-columns: 205px minmax(0, 1fr) 230px;
  gap: 12px;
}

.fx-toc-left {
  top: 68px;
}

.fx-toc-card {
  padding: 12px;
  border-radius: 16px;
}

.fx-toc-label {
  margin-bottom: 4px;
  font-size: 9.5px;
}

.fx-toc-card h3 {
  margin-bottom: 7px;
  font-size: 14px;
}

#fxTocList,
#fxTocListMobile {
  gap: 4px;
}

#fxTocList a,
#fxTocListMobile a {
  padding: 6px 7px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.28;
}

#fxTocList a.is-sub,
#fxTocListMobile a.is-sub {
  font-size: 10px;
}

.fx-research-note {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 16px;
}

.fx-research-note strong {
  font-size: 10px;
}

.fx-research-note p {
  font-size: 12px;
  line-height: 1.45;
}

.fx-article-content {
  padding: 24px 28px;
  border-radius: 20px;
}

.fx-article-content h2 {
  margin-top: 24px;
  font-size: 24px;
  line-height: 1.12;
}

.fx-article-content h3 {
  margin-top: 18px;
  font-size: 18px;
}

.fx-article-content p,
.fx-article-content li {
  font-size: 14.5px;
  line-height: 1.68;
}

.fx-article-content blockquote {
  margin: 18px 0;
  padding: 15px 17px;
  border-radius: 16px;
}

.fx-inline-cta {
  margin: 20px 0;
  padding: 15px 16px;
  border-radius: 16px;
}

.fx-inline-cta h3 {
  font-size: 18px;
}

.fx-inline-cta p {
  font-size: 13px;
  line-height: 1.48;
}

.fx-side-card {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 16px;
}

.fx-side-card span {
  font-size: 9.5px;
}

.fx-side-card h3 {
  margin: 7px 0 6px;
  font-size: 16px;
}

.fx-side-card p {
  font-size: 12px;
  line-height: 1.45;
}

.fx-side-card a {
  min-height: 32px;
  margin-top: 8px;
  padding: 0 10px;
  font-size: 11px;
}

.fx-side-card ul {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
}

/* reading progress bar */
.fx-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #b8ff6a);
  box-shadow: 0 0 22px rgba(14,165,233,.55);
}

/* floating action dock */
.fx-reading-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.80);
  box-shadow: 0 18px 60px rgba(15,23,42,.16);
  backdrop-filter: blur(18px);
}

.fx-reading-dock a,
.fx-reading-dock button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.fx-reading-dock a:hover,
.fx-reading-dock button:hover {
  background: #2563eb;
}

/* hide dock on listing pages unless article */
body:not(.single-post) .fx-reading-dock,
body:not(.single-post) .fx-read-progress {
  display: none;
}

.fx-rtl .fx-reading-dock {
  right: auto;
  left: 18px;
}

@media (max-width: 1280px) {
  .fx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fx-article-body-grid {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .fx-article-side {
    display: none;
  }
}

@media (max-width: 960px) {
  .fx-article-hero-grid,
  .fx-hero-grid {
    grid-template-columns: 1fr;
  }

  .fx-article-body-grid,
  .fx-layout {
    grid-template-columns: 1fr;
  }

  .fx-toc-left {
    display: none;
  }

  .fx-mobile-toc {
    display: block;
  }

  .fx-article-signals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fx-brief-card {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .fx-shell {
    width: min(100% - 18px, 1380px);
  }

  .fx-article-signals {
    grid-template-columns: 1fr;
  }

  .fx-grid,
  .fx-research-strip {
    grid-template-columns: 1fr;
  }

  .fx-article-content {
    padding: 18px;
  }

  .fx-article-content h2 {
    font-size: 22px;
  }

  .fx-reading-dock {
    right: 10px;
    bottom: 10px;
    transform: scale(.92);
    transform-origin: bottom right;
  }

  .fx-rtl .fx-reading-dock {
    left: 10px;
    right: auto;
    transform-origin: bottom left;
  }
}

/* Article image card replacing old metric card */
.fx-article-image-card {
  display: grid;
  gap: 10px;
}

.fx-image-frame {
  overflow: hidden;
  min-height: 250px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 26px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(24px);
}

.fx-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.fx-generated-cover {
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 18% 8%, rgba(184,255,106,.30), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(14,165,233,.34), transparent 34%),
    linear-gradient(135deg, #07101f, #14213f 58%, #172314);
}

.fx-generated-cover span {
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 900;
}

.fx-generated-cover strong {
  max-width: 260px;
  color: #fff;
  font-size: 30px;
  line-height: .98;
  letter-spacing: -.06em;
}

.fx-generated-cover em {
  margin-top: 10px;
  color: rgba(255,255,255,.62);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.fx-image-caption {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

/* make everything more zoomed out */
.fx-shell {
  width: min(1440px, calc(100% - 22px));
}

.fx-article-hero {
  padding: 12px 0 20px;
}

.fx-article-hero-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.fx-article-hero-copy h1 {
  max-width: 900px;
  font-size: clamp(28px, 3.8vw, 50px);
}

.fx-article-hero-copy p {
  max-width: 820px;
  font-size: 13.5px;
  line-height: 1.5;
}

.fx-article-signals {
  margin-top: 12px;
}

.fx-article-body-grid {
  grid-template-columns: 190px minmax(0, 1fr) 220px;
  gap: 10px;
}

.fx-article-content {
  padding: 22px 26px;
}

.fx-article-content h2 {
  font-size: 22px;
}

.fx-article-content h3 {
  font-size: 17px;
}

.fx-article-content p,
.fx-article-content li {
  font-size: 14px;
  line-height: 1.62;
}

/* progress bar visibility */
.fx-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #b8ff6a);
  box-shadow: 0 0 24px rgba(14,165,233,.65);
}

/* Quiz */
.fx-quiz-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(37,99,235,.10), transparent 34%),
    rgba(255,255,255,.97);
  box-shadow: 0 24px 70px rgba(15,23,42,.09);
}

.fx-quiz-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fx-quiz-head span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fx-quiz-head strong {
  padding: 5px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 950;
}

.fx-quiz-card h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 20px;
  letter-spacing: -.045em;
}

.fx-quiz-options {
  display: grid;
  gap: 8px;
}

.fx-quiz-options button {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 15px;
  background: #fff;
  color: #334155;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.fx-rtl .fx-quiz-options button {
  text-align: right;
}

.fx-quiz-options button:hover {
  border-color: rgba(37,99,235,.34);
  background: #eef6ff;
  color: #1d4ed8;
}

.fx-quiz-options button:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.fx-quiz-result {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
}

.fx-quiz-result.is-correct {
  color: #15803d;
}

.fx-quiz-result.is-wrong {
  color: #dc2626;
}

.fx-points-box {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 13px;
  border-radius: 17px;
  background: #0f172a;
  color: #fff;
}

.fx-points-box span {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 850;
}

.fx-points-box strong {
  color: #b8ff6a;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.05em;
}

.fx-points-box em {
  color: rgba(255,255,255,.68);
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
}

/* floating action dock */
.fx-reading-dock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  display: flex;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 60px rgba(15,23,42,.16);
  backdrop-filter: blur(18px);
}

.fx-reading-dock a,
.fx-reading-dock button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.fx-reading-dock a:hover,
.fx-reading-dock button:hover {
  background: #2563eb;
}

.fx-rtl .fx-reading-dock {
  right: auto;
  left: 14px;
}

@media (max-width: 1180px) {
  .fx-article-body-grid {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .fx-article-side {
    display: none;
  }
}

@media (max-width: 960px) {
  .fx-article-hero-grid {
    grid-template-columns: 1fr;
  }

  .fx-article-body-grid {
    grid-template-columns: 1fr;
  }

  .fx-toc-left {
    display: none;
  }

  .fx-mobile-toc {
    display: block;
  }

  .fx-image-frame,
  .fx-image-frame img,
  .fx-generated-cover {
    min-height: 190px;
  }
}

/* Article image card replacing old metric card */
.fx-article-image-card {
  display: grid;
  gap: 10px;
}

.fx-image-frame {
  overflow: hidden;
  min-height: 250px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 26px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(24px);
}

.fx-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.fx-generated-cover {
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 18% 8%, rgba(184,255,106,.30), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(14,165,233,.34), transparent 34%),
    linear-gradient(135deg, #07101f, #14213f 58%, #172314);
}

.fx-generated-cover span {
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 900;
}

.fx-generated-cover strong {
  max-width: 260px;
  color: #fff;
  font-size: 30px;
  line-height: .98;
  letter-spacing: -.06em;
}

.fx-generated-cover em {
  margin-top: 10px;
  color: rgba(255,255,255,.62);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.fx-image-caption {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

/* make everything more zoomed out */
.fx-shell {
  width: min(1440px, calc(100% - 22px));
}

.fx-article-hero {
  padding: 12px 0 20px;
}

.fx-article-hero-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.fx-article-hero-copy h1 {
  max-width: 900px;
  font-size: clamp(28px, 3.8vw, 50px);
}

.fx-article-hero-copy p {
  max-width: 820px;
  font-size: 13.5px;
  line-height: 1.5;
}

.fx-article-signals {
  margin-top: 12px;
}

.fx-article-body-grid {
  grid-template-columns: 190px minmax(0, 1fr) 220px;
  gap: 10px;
}

.fx-article-content {
  padding: 22px 26px;
}

.fx-article-content h2 {
  font-size: 22px;
}

.fx-article-content h3 {
  font-size: 17px;
}

.fx-article-content p,
.fx-article-content li {
  font-size: 14px;
  line-height: 1.62;
}

/* progress bar visibility */
.fx-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #b8ff6a);
  box-shadow: 0 0 24px rgba(14,165,233,.65);
}

/* Quiz */
.fx-quiz-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(37,99,235,.10), transparent 34%),
    rgba(255,255,255,.97);
  box-shadow: 0 24px 70px rgba(15,23,42,.09);
}

.fx-quiz-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fx-quiz-head span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fx-quiz-head strong {
  padding: 5px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 950;
}

.fx-quiz-card h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 20px;
  letter-spacing: -.045em;
}

.fx-quiz-options {
  display: grid;
  gap: 8px;
}

.fx-quiz-options button {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 15px;
  background: #fff;
  color: #334155;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.fx-rtl .fx-quiz-options button {
  text-align: right;
}

.fx-quiz-options button:hover {
  border-color: rgba(37,99,235,.34);
  background: #eef6ff;
  color: #1d4ed8;
}

.fx-quiz-options button:disabled {
  cursor: not-allowed;
  opacity: .72;
}

.fx-quiz-result {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
}

.fx-quiz-result.is-correct {
  color: #15803d;
}

.fx-quiz-result.is-wrong {
  color: #dc2626;
}

.fx-points-box {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 13px;
  border-radius: 17px;
  background: #0f172a;
  color: #fff;
}

.fx-points-box span {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 850;
}

.fx-points-box strong {
  color: #b8ff6a;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.05em;
}

.fx-points-box em {
  color: rgba(255,255,255,.68);
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
}

/* floating action dock */
.fx-reading-dock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  display: flex;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 60px rgba(15,23,42,.16);
  backdrop-filter: blur(18px);
}

.fx-reading-dock a,
.fx-reading-dock button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.fx-reading-dock a:hover,
.fx-reading-dock button:hover {
  background: #2563eb;
}

.fx-rtl .fx-reading-dock {
  right: auto;
  left: 14px;
}

@media (max-width: 1180px) {
  .fx-article-body-grid {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .fx-article-side {
    display: none;
  }
}

@media (max-width: 960px) {
  .fx-article-hero-grid {
    grid-template-columns: 1fr;
  }

  .fx-article-body-grid {
    grid-template-columns: 1fr;
  }

  .fx-toc-left {
    display: none;
  }

  .fx-mobile-toc {
    display: block;
  }

  .fx-image-frame,
  .fx-image-frame img,
  .fx-generated-cover {
    min-height: 190px;
  }
}

/* Production SVG article covers */
.fx-image-frame {
  background: transparent !important;
}

.fx-image-frame img {
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 1200 / 760;
  object-fit: cover;
  border-radius: inherit;
}

.fx-card-visual-image {
  position: relative;
  min-height: 0 !important;
  aspect-ratio: 1200 / 760;
  padding: 0 !important;
  align-items: stretch !important;
  background: #0b1020 !important;
}

.fx-card-visual-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-card-visual-image .fx-card-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
  backdrop-filter: blur(16px);
}

.fx-rtl .fx-card-visual-image .fx-card-badge {
  left: auto;
  right: 12px;
}

/* compact cover tuning */
.fx-article-image-card {
  max-width: 300px;
}

.fx-image-frame {
  min-height: 0 !important;
  border-radius: 22px;
}

@media (max-width: 960px) {
  .fx-article-image-card {
    max-width: 520px;
  }
}

/* Real Fundex24 logo in blog header */
.fx-logo-image {
  align-items: center;
  gap: 10px;
}

.fx-logo-image img {
  display: block;
  width: 132px;
  height: auto;
  object-fit: contain;
}

.fx-logo-image span {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(255,255,255,.70);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 720px) {
  .fx-logo-image img {
    width: 104px;
  }

  .fx-logo-image span {
    display: none;
  }
}

/* Dynamic dark/light theme + readable text system */
:root[data-fx-theme='dark'] {
  --fx-page-bg: #f4f7fb;
  --fx-card-bg: rgba(255,255,255,.97);
  --fx-card-text: #0f172a;
  --fx-card-muted: #475569;
  --fx-soft-panel: rgba(255,255,255,.10);
  --fx-hero-1: #07101f;
  --fx-hero-2: #0d1730;
  --fx-hero-3: #101f24;
  --fx-topbar-bg: rgba(12,18,32,.82);
  --fx-hero-text: #ffffff;
  --fx-hero-muted: rgba(255,255,255,.76);
  --fx-border-live: rgba(148,163,184,.24);
}

:root[data-fx-theme='light'] {
  --fx-page-bg: #f7fafc;
  --fx-card-bg: rgba(255,255,255,.98);
  --fx-card-text: #0b1220;
  --fx-card-muted: #475569;
  --fx-soft-panel: rgba(15,23,42,.08);
  --fx-hero-1: #eaf4ff;
  --fx-hero-2: #f4fff0;
  --fx-hero-3: #ffffff;
  --fx-topbar-bg: rgba(255,255,255,.82);
  --fx-hero-text: #0f172a;
  --fx-hero-muted: rgba(15,23,42,.72);
  --fx-border-live: rgba(15,23,42,.12);
}

html[data-fx-theme='light'] body {
  background: var(--fx-page-bg) !important;
  color: #0f172a;
}

html[data-fx-theme='light'] .fx-topbar {
  background: var(--fx-topbar-bg);
  border-bottom-color: rgba(15,23,42,.10);
}

html[data-fx-theme='light'] .fx-nav a,
html[data-fx-theme='light'] .fx-logo,
html[data-fx-theme='light'] .fx-logo-image span {
  color: rgba(15,23,42,.72);
}

html[data-fx-theme='light'] .fx-nav a:hover {
  background: rgba(15,23,42,.07);
  color: #0f172a;
}

html[data-fx-theme='light'] .fx-logo-image img {
  filter: invert(1) brightness(.22) saturate(1.4);
}

html[data-fx-theme='light'] .fx-logo-image span,
html[data-fx-theme='light'] .fx-lang-switch,
html[data-fx-theme='light'] .fx-theme-switch {
  border-color: rgba(15,23,42,.12);
  background: rgba(15,23,42,.05);
}

html[data-fx-theme='light'] .fx-lang-switch a.is-active,
html[data-fx-theme='light'] .fx-theme-switch button.is-active {
  background: rgba(15,23,42,.10);
  color: #0f172a;
}

.fx-theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.fx-theme-switch button {
  border: 0;
  padding: 7px 9px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.70);
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.fx-theme-switch button.is-active {
  background: rgba(255,255,255,.16);
  color: #fff;
}

/* Hero readability: text always sits on an adaptive readable panel */
.fx-hero,
.fx-article-hero {
  background:
    radial-gradient(circle at 12% 8%, rgba(37,99,235,.28), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(184,255,106,.18), transparent 30%),
    linear-gradient(135deg, var(--fx-hero-1), var(--fx-hero-2) 52%, var(--fx-hero-3)) !important;
}

.fx-hero-copy,
.fx-article-hero-copy {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 26px;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

html[data-fx-theme='light'] .fx-hero-copy,
html[data-fx-theme='light'] .fx-article-hero-copy {
  background: rgba(255,255,255,.72);
  border-color: rgba(15,23,42,.10);
  box-shadow: 0 20px 70px rgba(15,23,42,.08);
}

.fx-hero h1,
.fx-article-hero-copy h1 {
  color: var(--fx-hero-text) !important;
}

.fx-hero p,
.fx-article-hero-copy p {
  color: var(--fx-hero-muted) !important;
}

html[data-fx-theme='light'] .fx-kicker,
html[data-fx-theme='light'] .fx-intel-breadcrumb,
html[data-fx-theme='light'] .fx-article-signals div,
html[data-fx-theme='light'] .fx-terminal-card,
html[data-fx-theme='light'] .fx-article-image-card .fx-image-caption {
  color: rgba(15,23,42,.72);
  background: rgba(255,255,255,.64);
  border-color: rgba(15,23,42,.12);
}

html[data-fx-theme='light'] .fx-kicker,
html[data-fx-theme='light'] .fx-intel-breadcrumb,
html[data-fx-theme='light'] .fx-intel-breadcrumb a {
  color: rgba(15,23,42,.76);
}

html[data-fx-theme='light'] .fx-article-signals strong,
html[data-fx-theme='light'] .fx-terminal-row strong {
  color: #0f172a;
}

html[data-fx-theme='light'] .fx-article-signals span,
html[data-fx-theme='light'] .fx-terminal-row,
html[data-fx-theme='light'] .fx-terminal-top {
  color: rgba(15,23,42,.62);
}

/* Cards/content adapt cleanly */
.fx-card,
.fx-widget,
.fx-article-content,
.fx-research-note,
.fx-toc-card,
.fx-side-card,
.fx-quiz-card {
  background: var(--fx-card-bg) !important;
  color: var(--fx-card-text);
  border-color: var(--fx-border-live);
}

.fx-card h3,
.fx-card h3 a,
.fx-section-head h2,
.fx-widget h3,
.fx-side-card h3,
.fx-article-content h2,
.fx-article-content h3,
.fx-quiz-card h3 {
  color: var(--fx-card-text) !important;
}

.fx-card p,
.fx-widget p,
.fx-side-card p,
.fx-article-content p,
.fx-article-content li,
.fx-research-note p {
  color: var(--fx-card-muted) !important;
}

/* keep dark CTA cards readable in both themes */
.fx-widget-dark,
.fx-side-card-dark,
.fx-inline-cta,
.fx-article-content blockquote,
.fx-points-box {
  background:
    radial-gradient(circle at 10% 0%, rgba(184,255,106,.20), transparent 36%),
    linear-gradient(135deg, #0b1020, #132140) !important;
  color: #fff !important;
}

.fx-widget-dark h3,
.fx-side-card-dark h3,
.fx-inline-cta h3,
.fx-article-content blockquote,
.fx-article-content blockquote p,
.fx-points-box,
.fx-points-box * {
  color: #fff !important;
}

.fx-inline-cta p,
.fx-widget-dark p,
.fx-side-card-dark p {
  color: rgba(255,255,255,.72) !important;
}

/* Theme switch responsive behavior */
@media (max-width: 860px) {
  .fx-theme-switch button {
    padding: 7px 8px;
    font-size: 10px;
  }
}

@media (max-width: 720px) {
  .fx-theme-switch {
    display: inline-flex;
  }

  .fx-theme-switch button {
    font-size: 0;
    width: 28px;
    height: 28px;
    padding: 0;
  }

  .fx-theme-switch button[data-theme='dark']::after {
    content: "☾";
    font-size: 13px;
  }

  .fx-theme-switch button[data-theme='light']::after {
    content: "☀";
    font-size: 13px;
  }

  .fx-hero-copy,
  .fx-article-hero-copy {
    padding: 14px;
    border-radius: 20px;
  }
}

/* Dynamic dark/light theme + readable text system */
:root[data-fx-theme='dark'] {
  --fx-page-bg: #f4f7fb;
  --fx-card-bg: rgba(255,255,255,.97);
  --fx-card-text: #0f172a;
  --fx-card-muted: #475569;
  --fx-soft-panel: rgba(255,255,255,.10);
  --fx-hero-1: #07101f;
  --fx-hero-2: #0d1730;
  --fx-hero-3: #101f24;
  --fx-topbar-bg: rgba(12,18,32,.82);
  --fx-hero-text: #ffffff;
  --fx-hero-muted: rgba(255,255,255,.76);
  --fx-border-live: rgba(148,163,184,.24);
}

:root[data-fx-theme='light'] {
  --fx-page-bg: #f7fafc;
  --fx-card-bg: rgba(255,255,255,.98);
  --fx-card-text: #0b1220;
  --fx-card-muted: #475569;
  --fx-soft-panel: rgba(15,23,42,.08);
  --fx-hero-1: #eaf4ff;
  --fx-hero-2: #f4fff0;
  --fx-hero-3: #ffffff;
  --fx-topbar-bg: rgba(255,255,255,.82);
  --fx-hero-text: #0f172a;
  --fx-hero-muted: rgba(15,23,42,.72);
  --fx-border-live: rgba(15,23,42,.12);
}

html[data-fx-theme='light'] body {
  background: var(--fx-page-bg) !important;
  color: #0f172a;
}

html[data-fx-theme='light'] .fx-topbar {
  background: var(--fx-topbar-bg);
  border-bottom-color: rgba(15,23,42,.10);
}

html[data-fx-theme='light'] .fx-nav a,
html[data-fx-theme='light'] .fx-logo,
html[data-fx-theme='light'] .fx-logo-image span {
  color: rgba(15,23,42,.72);
}

html[data-fx-theme='light'] .fx-nav a:hover {
  background: rgba(15,23,42,.07);
  color: #0f172a;
}

html[data-fx-theme='light'] .fx-logo-image img {
  filter: invert(1) brightness(.22) saturate(1.4);
}

html[data-fx-theme='light'] .fx-logo-image span,
html[data-fx-theme='light'] .fx-lang-switch,
html[data-fx-theme='light'] .fx-theme-switch {
  border-color: rgba(15,23,42,.12);
  background: rgba(15,23,42,.05);
}

html[data-fx-theme='light'] .fx-lang-switch a.is-active,
html[data-fx-theme='light'] .fx-theme-switch button.is-active {
  background: rgba(15,23,42,.10);
  color: #0f172a;
}

.fx-theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.fx-theme-switch button {
  border: 0;
  padding: 7px 9px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.70);
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.fx-theme-switch button.is-active {
  background: rgba(255,255,255,.16);
  color: #fff;
}

/* Hero readability: text always sits on an adaptive readable panel */
.fx-hero,
.fx-article-hero {
  background:
    radial-gradient(circle at 12% 8%, rgba(37,99,235,.28), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(184,255,106,.18), transparent 30%),
    linear-gradient(135deg, var(--fx-hero-1), var(--fx-hero-2) 52%, var(--fx-hero-3)) !important;
}

.fx-hero-copy,
.fx-article-hero-copy {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 26px;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

html[data-fx-theme='light'] .fx-hero-copy,
html[data-fx-theme='light'] .fx-article-hero-copy {
  background: rgba(255,255,255,.72);
  border-color: rgba(15,23,42,.10);
  box-shadow: 0 20px 70px rgba(15,23,42,.08);
}

.fx-hero h1,
.fx-article-hero-copy h1 {
  color: var(--fx-hero-text) !important;
}

.fx-hero p,
.fx-article-hero-copy p {
  color: var(--fx-hero-muted) !important;
}

html[data-fx-theme='light'] .fx-kicker,
html[data-fx-theme='light'] .fx-intel-breadcrumb,
html[data-fx-theme='light'] .fx-article-signals div,
html[data-fx-theme='light'] .fx-terminal-card,
html[data-fx-theme='light'] .fx-article-image-card .fx-image-caption {
  color: rgba(15,23,42,.72);
  background: rgba(255,255,255,.64);
  border-color: rgba(15,23,42,.12);
}

html[data-fx-theme='light'] .fx-kicker,
html[data-fx-theme='light'] .fx-intel-breadcrumb,
html[data-fx-theme='light'] .fx-intel-breadcrumb a {
  color: rgba(15,23,42,.76);
}

html[data-fx-theme='light'] .fx-article-signals strong,
html[data-fx-theme='light'] .fx-terminal-row strong {
  color: #0f172a;
}

html[data-fx-theme='light'] .fx-article-signals span,
html[data-fx-theme='light'] .fx-terminal-row,
html[data-fx-theme='light'] .fx-terminal-top {
  color: rgba(15,23,42,.62);
}

/* Cards/content adapt cleanly */
.fx-card,
.fx-widget,
.fx-article-content,
.fx-research-note,
.fx-toc-card,
.fx-side-card,
.fx-quiz-card {
  background: var(--fx-card-bg) !important;
  color: var(--fx-card-text);
  border-color: var(--fx-border-live);
}

.fx-card h3,
.fx-card h3 a,
.fx-section-head h2,
.fx-widget h3,
.fx-side-card h3,
.fx-article-content h2,
.fx-article-content h3,
.fx-quiz-card h3 {
  color: var(--fx-card-text) !important;
}

.fx-card p,
.fx-widget p,
.fx-side-card p,
.fx-article-content p,
.fx-article-content li,
.fx-research-note p {
  color: var(--fx-card-muted) !important;
}

/* keep dark CTA cards readable in both themes */
.fx-widget-dark,
.fx-side-card-dark,
.fx-inline-cta,
.fx-article-content blockquote,
.fx-points-box {
  background:
    radial-gradient(circle at 10% 0%, rgba(184,255,106,.20), transparent 36%),
    linear-gradient(135deg, #0b1020, #132140) !important;
  color: #fff !important;
}

.fx-widget-dark h3,
.fx-side-card-dark h3,
.fx-inline-cta h3,
.fx-article-content blockquote,
.fx-article-content blockquote p,
.fx-points-box,
.fx-points-box * {
  color: #fff !important;
}

.fx-inline-cta p,
.fx-widget-dark p,
.fx-side-card-dark p {
  color: rgba(255,255,255,.72) !important;
}

/* Theme switch responsive behavior */
@media (max-width: 860px) {
  .fx-theme-switch button {
    padding: 7px 8px;
    font-size: 10px;
  }
}

@media (max-width: 720px) {
  .fx-theme-switch {
    display: inline-flex;
  }

  .fx-theme-switch button {
    font-size: 0;
    width: 28px;
    height: 28px;
    padding: 0;
  }

  .fx-theme-switch button[data-theme='dark']::after {
    content: "☾";
    font-size: 13px;
  }

  .fx-theme-switch button[data-theme='light']::after {
    content: "☀";
    font-size: 13px;
  }

  .fx-hero-copy,
  .fx-article-hero-copy {
    padding: 14px;
    border-radius: 20px;
  }
}

/* TRUE GLOBAL THEME SYSTEM v2 — applies to whole blog, listings, and article pages */
:root[data-fx-theme='dark'] {
  --fx-global-bg: #080d18;
  --fx-global-bg-2: #0b1220;
  --fx-surface: rgba(15, 23, 42, .96);
  --fx-surface-2: rgba(17, 24, 39, .94);
  --fx-surface-soft: rgba(255,255,255,.06);
  --fx-text-main: #f8fafc;
  --fx-text-soft: rgba(226,232,240,.78);
  --fx-text-muted: rgba(203,213,225,.62);
  --fx-line: rgba(255,255,255,.10);
  --fx-shadow-live: 0 24px 80px rgba(0,0,0,.28);
}

:root[data-fx-theme='light'] {
  --fx-global-bg: #f4f7fb;
  --fx-global-bg-2: #ffffff;
  --fx-surface: rgba(255,255,255,.97);
  --fx-surface-2: rgba(255,255,255,.94);
  --fx-surface-soft: rgba(15,23,42,.05);
  --fx-text-main: #0f172a;
  --fx-text-soft: #334155;
  --fx-text-muted: #64748b;
  --fx-line: rgba(15,23,42,.12);
  --fx-shadow-live: 0 20px 70px rgba(15,23,42,.10);
}

/* page backgrounds */
html[data-fx-theme='dark'] body,
html[data-fx-theme='dark'] .fx-main,
html[data-fx-theme='dark'] .fx-single-main,
html[data-fx-theme='dark'] .fx-article-body-shell,
html[data-fx-theme='dark'] .fx-footer {
  background:
    radial-gradient(circle at 12% 4%, rgba(37,99,235,.13), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(184,255,106,.08), transparent 26%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    var(--fx-global-bg) !important;
  background-size: auto, auto, 34px 34px, 34px 34px, auto !important;
  color: var(--fx-text-main) !important;
}

html[data-fx-theme='light'] body,
html[data-fx-theme='light'] .fx-main,
html[data-fx-theme='light'] .fx-single-main,
html[data-fx-theme='light'] .fx-article-body-shell,
html[data-fx-theme='light'] .fx-footer {
  background:
    radial-gradient(circle at 12% 4%, rgba(37,99,235,.08), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(184,255,106,.08), transparent 26%),
    #f4f7fb !important;
  color: var(--fx-text-main) !important;
}

/* listing/card/article surfaces */
html[data-fx-theme='dark'] .fx-card,
html[data-fx-theme='dark'] .fx-widget,
html[data-fx-theme='dark'] .fx-article-content,
html[data-fx-theme='dark'] .fx-research-note,
html[data-fx-theme='dark'] .fx-toc-card,
html[data-fx-theme='dark'] .fx-side-card,
html[data-fx-theme='dark'] .fx-quiz-card,
html[data-fx-theme='dark'] .fx-cat-list a,
html[data-fx-theme='dark'] .fx-research-pill {
  background: var(--fx-surface) !important;
  border-color: var(--fx-line) !important;
  box-shadow: var(--fx-shadow-live) !important;
}

html[data-fx-theme='light'] .fx-card,
html[data-fx-theme='light'] .fx-widget,
html[data-fx-theme='light'] .fx-article-content,
html[data-fx-theme='light'] .fx-research-note,
html[data-fx-theme='light'] .fx-toc-card,
html[data-fx-theme='light'] .fx-side-card,
html[data-fx-theme='light'] .fx-quiz-card,
html[data-fx-theme='light'] .fx-cat-list a,
html[data-fx-theme='light'] .fx-research-pill {
  background: var(--fx-surface) !important;
  border-color: var(--fx-line) !important;
  box-shadow: var(--fx-shadow-live) !important;
}

/* global text color correction */
html[data-fx-theme='dark'] .fx-card h3,
html[data-fx-theme='dark'] .fx-card h3 a,
html[data-fx-theme='dark'] .fx-section-head h2,
html[data-fx-theme='dark'] .fx-widget h3,
html[data-fx-theme='dark'] .fx-side-card h3,
html[data-fx-theme='dark'] .fx-article-content h2,
html[data-fx-theme='dark'] .fx-article-content h3,
html[data-fx-theme='dark'] .fx-quiz-card h3,
html[data-fx-theme='dark'] .fx-research-pill strong,
html[data-fx-theme='dark'] .fx-toc-card h3 {
  color: var(--fx-text-main) !important;
}

html[data-fx-theme='dark'] .fx-card p,
html[data-fx-theme='dark'] .fx-widget p,
html[data-fx-theme='dark'] .fx-side-card p,
html[data-fx-theme='dark'] .fx-article-content p,
html[data-fx-theme='dark'] .fx-article-content li,
html[data-fx-theme='dark'] .fx-research-note p,
html[data-fx-theme='dark'] .fx-section-head p,
html[data-fx-theme='dark'] .fx-research-pill span,
html[data-fx-theme='dark'] .fx-meta,
html[data-fx-theme='dark'] #fxTocList a,
html[data-fx-theme='dark'] #fxTocListMobile a {
  color: var(--fx-text-soft) !important;
}

html[data-fx-theme='light'] .fx-card h3,
html[data-fx-theme='light'] .fx-card h3 a,
html[data-fx-theme='light'] .fx-section-head h2,
html[data-fx-theme='light'] .fx-widget h3,
html[data-fx-theme='light'] .fx-side-card h3,
html[data-fx-theme='light'] .fx-article-content h2,
html[data-fx-theme='light'] .fx-article-content h3,
html[data-fx-theme='light'] .fx-quiz-card h3,
html[data-fx-theme='light'] .fx-research-pill strong,
html[data-fx-theme='light'] .fx-toc-card h3 {
  color: var(--fx-text-main) !important;
}

html[data-fx-theme='light'] .fx-card p,
html[data-fx-theme='light'] .fx-widget p,
html[data-fx-theme='light'] .fx-side-card p,
html[data-fx-theme='light'] .fx-article-content p,
html[data-fx-theme='light'] .fx-article-content li,
html[data-fx-theme='light'] .fx-research-note p,
html[data-fx-theme='light'] .fx-section-head p,
html[data-fx-theme='light'] .fx-research-pill span,
html[data-fx-theme='light'] .fx-meta,
html[data-fx-theme='light'] #fxTocList a,
html[data-fx-theme='light'] #fxTocListMobile a {
  color: var(--fx-text-soft) !important;
}

/* table of contents active/readability states */
html[data-fx-theme='dark'] #fxTocList a:hover,
html[data-fx-theme='dark'] #fxTocListMobile a:hover {
  background: rgba(37,99,235,.20) !important;
  color: #93c5fd !important;
}

html[data-fx-theme='light'] #fxTocList a:hover,
html[data-fx-theme='light'] #fxTocListMobile a:hover {
  background: #eaf1ff !important;
  color: #2563eb !important;
}

/* quiz buttons */
html[data-fx-theme='dark'] .fx-quiz-options button {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: var(--fx-text-soft) !important;
}

html[data-fx-theme='dark'] .fx-quiz-options button:hover {
  background: rgba(37,99,235,.20) !important;
  color: #fff !important;
}

html[data-fx-theme='light'] .fx-quiz-options button {
  background: #fff !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #334155 !important;
}

/* header theme switch always visible on whole blog */
.fx-theme-switch {
  display: inline-flex !important;
}

/* topbar full dynamic */
html[data-fx-theme='dark'] .fx-topbar {
  background: rgba(8,13,24,.84) !important;
  border-bottom-color: rgba(255,255,255,.10) !important;
}

html[data-fx-theme='light'] .fx-topbar {
  background: rgba(255,255,255,.86) !important;
  border-bottom-color: rgba(15,23,42,.10) !important;
}

html[data-fx-theme='dark'] .fx-nav a,
html[data-fx-theme='dark'] .fx-logo-image span {
  color: rgba(255,255,255,.74) !important;
}

html[data-fx-theme='light'] .fx-nav a,
html[data-fx-theme='light'] .fx-logo-image span {
  color: rgba(15,23,42,.74) !important;
}

/* keep intentionally dark premium blocks readable */
.fx-widget-dark,
.fx-side-card-dark,
.fx-inline-cta,
.fx-article-content blockquote,
.fx-points-box {
  background:
    radial-gradient(circle at 10% 0%, rgba(184,255,106,.20), transparent 36%),
    linear-gradient(135deg, #0b1020, #132140) !important;
  color: #fff !important;
}

.fx-widget-dark *,
.fx-side-card-dark *,
.fx-inline-cta *,
.fx-article-content blockquote *,
.fx-points-box * {
  color: inherit !important;
}

/* fix white text floating without background in hero */
.fx-hero-copy,
.fx-article-hero-copy {
  background: color-mix(in srgb, var(--fx-global-bg) 58%, transparent) !important;
  border-color: var(--fx-line) !important;
}

html[data-fx-theme='light'] .fx-hero-copy,
html[data-fx-theme='light'] .fx-article-hero-copy {
  background: rgba(255,255,255,.76) !important;
  border-color: rgba(15,23,42,.10) !important;
}

html[data-fx-theme='dark'] .fx-hero-copy,
html[data-fx-theme='dark'] .fx-article-hero-copy {
  background: rgba(0,0,0,.22) !important;
  border-color: rgba(255,255,255,.10) !important;
}

/* body/article section transitions */
body,
.fx-main,
.fx-single-main,
.fx-card,
.fx-widget,
.fx-article-content,
.fx-research-note,
.fx-toc-card,
.fx-side-card,
.fx-quiz-card {
  transition:
    background-color .18s ease,
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

/* HARD THEME OVERRIDE v99 — force whole page, article body, TOC, quiz, sidebars */
html[data-fx-theme="dark"],
html[data-fx-theme="dark"] body {
  background: #080d18 !important;
  color: #f8fafc !important;
}

html[data-fx-theme="dark"] .fx-main,
html[data-fx-theme="dark"] .fx-single-main,
html[data-fx-theme="dark"] .fx-article-body-shell,
html[data-fx-theme="dark"] .fx-footer {
  background:
    radial-gradient(circle at 12% 4%, rgba(37,99,235,.14), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(184,255,106,.08), transparent 26%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #080d18 !important;
  background-size: auto, auto, 34px 34px, 34px 34px, auto !important;
}

html[data-fx-theme="dark"] .fx-article-content,
html[data-fx-theme="dark"] .fx-research-note,
html[data-fx-theme="dark"] .fx-toc-card,
html[data-fx-theme="dark"] .fx-side-card,
html[data-fx-theme="dark"] .fx-quiz-card,
html[data-fx-theme="dark"] .fx-card,
html[data-fx-theme="dark"] .fx-widget,
html[data-fx-theme="dark"] .fx-research-pill,
html[data-fx-theme="dark"] .fx-cat-list a {
  background: rgba(15, 23, 42, .96) !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.30) !important;
}

html[data-fx-theme="dark"] .fx-article-content h1,
html[data-fx-theme="dark"] .fx-article-content h2,
html[data-fx-theme="dark"] .fx-article-content h3,
html[data-fx-theme="dark"] .fx-article-content h4,
html[data-fx-theme="dark"] .fx-toc-card h3,
html[data-fx-theme="dark"] .fx-side-card h3,
html[data-fx-theme="dark"] .fx-quiz-card h3,
html[data-fx-theme="dark"] .fx-research-note strong,
html[data-fx-theme="dark"] .fx-section-head h2,
html[data-fx-theme="dark"] .fx-card h3,
html[data-fx-theme="dark"] .fx-card h3 a {
  color: #f8fafc !important;
}

html[data-fx-theme="dark"] .fx-article-content p,
html[data-fx-theme="dark"] .fx-article-content li,
html[data-fx-theme="dark"] .fx-research-note p,
html[data-fx-theme="dark"] .fx-side-card p,
html[data-fx-theme="dark"] .fx-quiz-card p,
html[data-fx-theme="dark"] .fx-section-head p,
html[data-fx-theme="dark"] .fx-card p,
html[data-fx-theme="dark"] .fx-meta,
html[data-fx-theme="dark"] #fxTocList a,
html[data-fx-theme="dark"] #fxTocListMobile a {
  color: rgba(226,232,240,.78) !important;
}

html[data-fx-theme="dark"] .fx-quiz-options button {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: rgba(226,232,240,.86) !important;
}

html[data-fx-theme="dark"] .fx-quiz-options button:hover {
  background: rgba(37,99,235,.22) !important;
  color: #fff !important;
}

/* Light mode hard reset */
html[data-fx-theme="light"],
html[data-fx-theme="light"] body {
  background: #f4f7fb !important;
  color: #0f172a !important;
}

html[data-fx-theme="light"] .fx-main,
html[data-fx-theme="light"] .fx-single-main,
html[data-fx-theme="light"] .fx-article-body-shell,
html[data-fx-theme="light"] .fx-footer {
  background:
    radial-gradient(circle at 12% 4%, rgba(37,99,235,.08), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(184,255,106,.08), transparent 26%),
    #f4f7fb !important;
}

html[data-fx-theme="light"] .fx-article-content,
html[data-fx-theme="light"] .fx-research-note,
html[data-fx-theme="light"] .fx-toc-card,
html[data-fx-theme="light"] .fx-side-card,
html[data-fx-theme="light"] .fx-quiz-card,
html[data-fx-theme="light"] .fx-card,
html[data-fx-theme="light"] .fx-widget,
html[data-fx-theme="light"] .fx-research-pill,
html[data-fx-theme="light"] .fx-cat-list a {
  background: rgba(255,255,255,.97) !important;
  border-color: rgba(15,23,42,.12) !important;
  box-shadow: 0 20px 70px rgba(15,23,42,.10) !important;
}

html[data-fx-theme="light"] .fx-article-content h1,
html[data-fx-theme="light"] .fx-article-content h2,
html[data-fx-theme="light"] .fx-article-content h3,
html[data-fx-theme="light"] .fx-article-content h4,
html[data-fx-theme="light"] .fx-toc-card h3,
html[data-fx-theme="light"] .fx-side-card h3,
html[data-fx-theme="light"] .fx-quiz-card h3,
html[data-fx-theme="light"] .fx-section-head h2,
html[data-fx-theme="light"] .fx-card h3,
html[data-fx-theme="light"] .fx-card h3 a {
  color: #0f172a !important;
}

html[data-fx-theme="light"] .fx-article-content p,
html[data-fx-theme="light"] .fx-article-content li,
html[data-fx-theme="light"] .fx-research-note p,
html[data-fx-theme="light"] .fx-side-card p,
html[data-fx-theme="light"] .fx-quiz-card p,
html[data-fx-theme="light"] .fx-section-head p,
html[data-fx-theme="light"] .fx-card p,
html[data-fx-theme="light"] .fx-meta,
html[data-fx-theme="light"] #fxTocList a,
html[data-fx-theme="light"] #fxTocListMobile a {
  color: #334155 !important;
}

/* Keep premium dark blocks readable in both themes */
html[data-fx-theme] .fx-widget-dark,
html[data-fx-theme] .fx-side-card-dark,
html[data-fx-theme] .fx-inline-cta,
html[data-fx-theme] .fx-article-content blockquote,
html[data-fx-theme] .fx-points-box {
  background:
    radial-gradient(circle at 10% 0%, rgba(184,255,106,.20), transparent 36%),
    linear-gradient(135deg, #0b1020, #132140) !important;
  color: #fff !important;
}

html[data-fx-theme] .fx-widget-dark *,
html[data-fx-theme] .fx-side-card-dark *,
html[data-fx-theme] .fx-inline-cta *,
html[data-fx-theme] .fx-article-content blockquote *,
html[data-fx-theme] .fx-points-box * {
  color: inherit !important;
}

/* Logo theme swap: white logo for dark, colorful logo for light */
.fx-logo-image .fx-logo-light {
  display: none;
}

.fx-logo-image .fx-logo-dark {
  display: block;
}

html[data-fx-theme="light"] .fx-logo-image .fx-logo-dark {
  display: none;
}

html[data-fx-theme="light"] .fx-logo-image .fx-logo-light {
  display: block;
  filter: none !important;
}

html[data-fx-theme="dark"] .fx-logo-image .fx-logo-dark {
  display: block;
  filter: none !important;
}

html[data-fx-theme="dark"] .fx-logo-image .fx-logo-light {
  display: none;
}

/* override older invert rule */
html[data-fx-theme='light'] .fx-logo-image img {
  filter: none !important;
}

/* Bigger article visual side, while keeping title side compact */
.fx-article-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
  gap: 22px !important;
  align-items: center;
}

.fx-article-image-card {
  max-width: 430px !important;
  width: 100%;
}

.fx-image-frame {
  border-radius: 28px !important;
  box-shadow: 0 34px 110px rgba(0,0,0,.30) !important;
}

.fx-image-frame img {
  width: 100%;
  aspect-ratio: 1200 / 760;
  object-fit: cover;
}

.fx-image-caption {
  margin-top: 8px;
  font-size: 12px;
}

/* Keep title side controlled, not too huge */
.fx-article-hero-copy h1 {
  max-width: 820px !important;
  font-size: clamp(30px, 3.45vw, 48px) !important;
  line-height: .98 !important;
}

.fx-article-hero-copy p {
  max-width: 760px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

/* On very large screens, make image even more premium */
@media (min-width: 1440px) {
  .fx-article-hero-grid {
    grid-template-columns: minmax(0, 1fr) 470px !important;
  }

  .fx-article-image-card {
    max-width: 470px !important;
  }
}

/* Tablet/mobile: image becomes wide under title */
@media (max-width: 960px) {
  .fx-article-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .fx-article-image-card {
    max-width: 620px !important;
  }
}

/* More zoomed-out article cockpit + visible right rail */
.fx-shell {
  width: min(1560px, calc(100% - 18px)) !important;
}

.fx-article-hero {
  padding: 8px 0 16px !important;
}

.fx-article-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px) !important;
  gap: 18px !important;
}

.fx-article-image-card {
  max-width: 500px !important;
}

.fx-article-hero-copy {
  padding: 14px !important;
  border-radius: 22px !important;
}

.fx-article-hero-copy h1 {
  font-size: clamp(27px, 3.15vw, 46px) !important;
  line-height: .96 !important;
}

.fx-article-hero-copy p {
  margin-top: 9px !important;
  font-size: 13px !important;
  line-height: 1.48 !important;
}

.fx-article-signals {
  margin-top: 10px !important;
  gap: 7px !important;
}

.fx-article-signals div {
  padding: 8px 10px !important;
  border-radius: 14px !important;
}

.fx-article-body-shell {
  padding: 10px 0 38px !important;
}

.fx-article-body-grid {
  grid-template-columns: 180px minmax(0, 1fr) 190px !important;
  gap: 10px !important;
}

.fx-article-side {
  display: block !important;
  position: sticky;
  top: 68px;
}

.fx-side-card {
  padding: 11px !important;
  border-radius: 15px !important;
}

.fx-side-card h3 {
  font-size: 15px !important;
  line-height: 1.12 !important;
}

.fx-side-card p {
  font-size: 11.5px !important;
  line-height: 1.45 !important;
}

.fx-side-card a {
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
}

.fx-toc-left {
  top: 68px !important;
}

.fx-toc-card {
  padding: 11px !important;
  border-radius: 15px !important;
}

.fx-toc-card h3 {
  font-size: 13.5px !important;
}

#fxTocList a {
  padding: 5px 7px !important;
  font-size: 10.5px !important;
}

.fx-research-note {
  margin-bottom: 9px !important;
  padding: 11px 13px !important;
  border-radius: 15px !important;
}

.fx-article-content {
  padding: 20px 24px !important;
  border-radius: 18px !important;
}

.fx-article-content h2 {
  margin-top: 20px !important;
  font-size: 21px !important;
}

.fx-article-content h3 {
  margin-top: 16px !important;
  font-size: 16.5px !important;
}

.fx-article-content p,
.fx-article-content li {
  font-size: 13.6px !important;
  line-height: 1.58 !important;
}

.fx-quiz-card {
  margin-top: 11px !important;
  padding: 14px !important;
  border-radius: 18px !important;
}

.fx-quiz-card h3 {
  font-size: 17px !important;
}

.fx-quiz-options button {
  padding: 10px 11px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
}

.fx-points-box {
  padding: 11px !important;
  border-radius: 14px !important;
}

.fx-points-box strong {
  font-size: 24px !important;
}

/* Keep right rail visible on laptop widths too */
@media (max-width: 1280px) {
  .fx-article-body-grid {
    grid-template-columns: 165px minmax(0, 1fr) 178px !important;
    gap: 8px !important;
  }

  .fx-article-side {
    display: block !important;
  }

  .fx-side-card h3 {
    font-size: 14px !important;
  }

  .fx-side-card p {
    font-size: 11px !important;
  }
}

/* On smaller tablets, hide right rail but keep quiz inside article */
@media (max-width: 1050px) {
  .fx-article-body-grid {
    grid-template-columns: 165px minmax(0, 1fr) !important;
  }

  .fx-article-side {
    display: none !important;
  }
}

/* Mobile: natural stacked page */
@media (max-width: 960px) {
  .fx-article-body-grid,
  .fx-article-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .fx-toc-left {
    display: none !important;
  }

  .fx-mobile-toc {
    display: block !important;
  }

  .fx-article-side {
    display: none !important;
  }

  .fx-article-image-card {
    max-width: 620px !important;
  }
}

/* Floating dock points */
.fx-dock-points {
  display: inline-flex;
  min-width: 58px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  box-shadow: 0 12px 32px rgba(37,99,235,.28);
}

.fx-dock-points strong {
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.fx-dock-points span {
  font-size: 9px;
  font-weight: 900;
  opacity: .78;
  text-transform: uppercase;
}

/* Better production footer */
.fx-footer-pro {
  padding: 34px 0 18px !important;
  border-top: 1px solid var(--fx-line, rgba(148,163,184,.20));
}

.fx-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) .75fr .75fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.fx-footer-brand,
.fx-footer-col,
.fx-footer-cta {
  border: 1px solid var(--fx-line, rgba(148,163,184,.20));
  border-radius: 22px;
  background: var(--fx-surface, rgba(255,255,255,.94));
  padding: 18px;
  box-shadow: var(--fx-shadow-live, 0 18px 60px rgba(15,23,42,.08));
}

.fx-footer-logo {
  display: inline-flex;
  margin-bottom: 14px;
}

.fx-footer-logo img {
  width: 142px;
  height: auto;
  display: block;
}

.fx-footer-logo-light {
  display: none !important;
}

html[data-fx-theme="light"] .fx-footer-logo-dark {
  display: none !important;
}

html[data-fx-theme="light"] .fx-footer-logo-light {
  display: block !important;
}

.fx-footer-brand p,
.fx-footer-cta p {
  margin: 0;
  color: var(--fx-text-soft, #475569);
  font-size: 13px;
  line-height: 1.65;
}

.fx-footer-col h4 {
  margin: 0 0 12px;
  color: var(--fx-text-main, #0f172a);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.fx-footer-col a {
  display: block;
  margin-top: 9px;
  color: var(--fx-text-soft, #475569);
  font-size: 13px;
  font-weight: 850;
}

.fx-footer-col a:hover {
  color: #2563eb;
}

.fx-footer-cta {
  background:
    radial-gradient(circle at 10% 0%, rgba(184,255,106,.22), transparent 36%),
    linear-gradient(135deg, #0b1020, #132140) !important;
  color: #fff;
}

.fx-footer-cta span {
  display: inline-flex;
  margin-bottom: 9px;
  color: #b8ff6a;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fx-footer-cta strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.fx-footer-cta p {
  color: rgba(255,255,255,.72) !important;
}

.fx-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: var(--fx-text-muted, #64748b);
  font-size: 12px;
  font-weight: 800;
}

.fx-rtl .fx-footer-grid,
.fx-rtl .fx-footer-bottom {
  direction: rtl;
}

@media (max-width: 1050px) {
  .fx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .fx-footer-grid {
    grid-template-columns: 1fr;
  }

  .fx-footer-bottom {
    flex-direction: column;
  }

  .fx-dock-points {
    min-width: 50px;
    padding: 0 8px;
  }
}

/* Fundex24 Academy-style footer */
.fx-academy-footer {
  position: relative;
  overflow: hidden;
  padding: 42px 0 20px !important;
  border-top: 1px solid var(--fx-line, rgba(148,163,184,.20));
}

html[data-fx-theme="dark"] .fx-academy-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.16), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(184,255,106,.10), transparent 26%),
    linear-gradient(135deg, #080d18, #0b1220) !important;
}

html[data-fx-theme="light"] .fx-academy-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.08), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(184,255,106,.12), transparent 26%),
    #f4f7fb !important;
}

.fx-academy-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(148,163,184,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.10) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.fx-academy-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) .75fr .75fr 1.05fr;
  gap: 16px;
  align-items: stretch;
}

.fx-academy-footer-brand,
.fx-footer-col,
.fx-academy-points-card {
  border: 1px solid var(--fx-line, rgba(148,163,184,.20));
  border-radius: 24px;
  background: var(--fx-surface, rgba(255,255,255,.94));
  padding: 18px;
  box-shadow: var(--fx-shadow-live, 0 18px 60px rgba(15,23,42,.08));
}

.fx-footer-logo {
  display: inline-flex;
  margin-bottom: 12px;
}

.fx-footer-logo img {
  width: 150px;
  height: auto;
  display: block;
}

.fx-footer-logo-light {
  display: none !important;
}

html[data-fx-theme="light"] .fx-footer-logo-dark {
  display: none !important;
}

html[data-fx-theme="light"] .fx-footer-logo-light {
  display: block !important;
}

.fx-academy-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,.12);
  color: #2563eb;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

html[data-fx-theme="dark"] .fx-academy-badge {
  background: rgba(184,255,106,.12);
  color: #b8ff6a;
}

.fx-academy-footer-brand p {
  max-width: 560px;
  margin: 0;
  color: var(--fx-text-soft, #475569);
  font-size: 13px;
  line-height: 1.65;
}

.fx-academy-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.fx-academy-footer-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.fx-academy-footer-actions a:first-child {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
}

.fx-academy-footer-actions a:last-child {
  border: 1px solid var(--fx-line, rgba(148,163,184,.20));
  color: var(--fx-text-main, #0f172a);
  background: var(--fx-surface-soft, rgba(15,23,42,.05));
}

.fx-footer-col h4 {
  margin: 0 0 12px;
  color: var(--fx-text-main, #0f172a);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.fx-footer-col a {
  display: block;
  margin-top: 9px;
  color: var(--fx-text-soft, #475569);
  font-size: 13px;
  font-weight: 850;
}

.fx-footer-col a:hover {
  color: #2563eb;
}

.fx-academy-points-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(184,255,106,.22), transparent 36%),
    linear-gradient(135deg, #0b1020, #132140) !important;
  color: #fff;
}

.fx-academy-points-card span {
  display: inline-flex;
  margin-bottom: 9px;
  color: #b8ff6a;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fx-academy-points-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.fx-academy-points-card p {
  margin: 0;
  color: rgba(255,255,255,.72) !important;
  font-size: 13px;
  line-height: 1.6;
}

.fx-footer-progress {
  height: 8px;
  overflow: hidden;
  margin: 16px 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.fx-footer-progress i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #b8ff6a);
}

.fx-academy-points-card small {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 800;
}

.fx-academy-disclaimer {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.fx-academy-disclaimer p {
  margin: 0;
  padding: 15px 18px;
  border: 1px solid var(--fx-line, rgba(148,163,184,.20));
  border-radius: 20px;
  background: var(--fx-surface, rgba(255,255,255,.94));
  color: var(--fx-text-soft, #475569);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
  box-shadow: var(--fx-shadow-live, 0 18px 60px rgba(15,23,42,.08));
}

.fx-academy-disclaimer strong {
  color: var(--fx-text-main, #0f172a);
}

.fx-academy-footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: var(--fx-text-muted, #64748b);
  font-size: 12px;
  font-weight: 800;
}

.fx-rtl .fx-academy-footer-grid,
.fx-rtl .fx-academy-footer-bottom {
  direction: rtl;
}

@media (max-width: 1100px) {
  .fx-academy-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .fx-academy-footer-grid {
    grid-template-columns: 1fr;
  }

  .fx-academy-footer-bottom {
    flex-direction: column;
  }

  .fx-footer-logo img {
    width: 128px;
  }
}

/* Minimal Academy Footer — replace boxy footer feel */
.fx-academy-footer-min {
  position: relative;
  overflow: hidden;
  padding: 22px 0 16px !important;
  border-top: 1px solid var(--fx-line, rgba(148,163,184,.18)) !important;
}

html[data-fx-theme="dark"] .fx-academy-footer-min {
  background:
    radial-gradient(circle at 14% 0%, rgba(37,99,235,.10), transparent 28%),
    linear-gradient(180deg, #080d18, #060a12) !important;
}

html[data-fx-theme="light"] .fx-academy-footer-min {
  background:
    radial-gradient(circle at 14% 0%, rgba(37,99,235,.06), transparent 28%),
    #f4f7fb !important;
}

.fx-footer-min-main {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
}

.fx-footer-min-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fx-footer-min-logo img {
  width: 128px;
  height: auto;
  display: block;
}

.fx-footer-logo-light {
  display: none !important;
}

html[data-fx-theme="light"] .fx-footer-logo-dark {
  display: none !important;
}

html[data-fx-theme="light"] .fx-footer-logo-light {
  display: block !important;
}

.fx-footer-min-logo span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(37,99,235,.12);
  color: #60a5fa;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-fx-theme="light"] .fx-footer-min-logo span {
  color: #2563eb;
}

.fx-footer-min-main p {
  margin: 0;
  color: var(--fx-text-soft, #64748b);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}

.fx-footer-min-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fx-footer-min-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--fx-text-soft, #64748b);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fx-footer-min-links a:hover {
  background: var(--fx-surface-soft, rgba(255,255,255,.06));
  color: #60a5fa;
}

.fx-footer-min-points {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(184,255,106,.18);
  border-radius: 999px;
  background: rgba(184,255,106,.08);
  white-space: nowrap;
}

.fx-footer-min-points strong {
  color: #b8ff6a;
  font-size: 14px;
  font-weight: 950;
}

html[data-fx-theme="light"] .fx-footer-min-points strong {
  color: #15803d;
}

.fx-footer-min-points span {
  color: var(--fx-text-soft, #64748b);
  font-size: 11px;
  font-weight: 850;
}

.fx-footer-min-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--fx-line, rgba(148,163,184,.16));
  color: var(--fx-text-muted, #64748b);
  font-size: 11.5px;
  font-weight: 800;
}

.fx-rtl .fx-footer-min-main,
.fx-rtl .fx-footer-min-bottom {
  direction: rtl;
}

@media (max-width: 980px) {
  .fx-footer-min-main {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .fx-footer-min-links {
    flex-wrap: wrap;
  }

  .fx-footer-min-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .fx-footer-min-logo img {
    width: 112px;
  }

  .fx-footer-min-points {
    width: fit-content;
  }
}

/* Header exit link to main Fundex24 website */
.fx-main-site-link {
  border: 1px solid rgba(184,255,106,.18) !important;
  background: rgba(184,255,106,.08) !important;
  color: #b8ff6a !important;
}

html[data-fx-theme="light"] .fx-main-site-link {
  border-color: rgba(37,99,235,.16) !important;
  background: rgba(37,99,235,.08) !important;
  color: #2563eb !important;
}

.fx-main-site-link:hover {
  background: rgba(184,255,106,.16) !important;
  color: #d9ff9b !important;
}

html[data-fx-theme="light"] .fx-main-site-link:hover {
  background: rgba(37,99,235,.14) !important;
  color: #1d4ed8 !important;
}

@media (max-width: 900px) {
  .fx-main-site-link {
    display: inline-flex !important;
  }
}

@media (max-width: 720px) {
  .fx-main-site-link {
    font-size: 0 !important;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
  }

  .fx-main-site-link::after {
    content: "↗";
    font-size: 15px;
  }
}
