:root {
  --bg: #f2f8fe;
  --panel: #ffffff;
  --panel-soft: #e9f4ff;
  --text: #27353d;
  --muted: #607187;
  --soft-muted: #64748b;
  --faint: #dbe8f5;
  --blue: #0065e4;
  --dark: #27353d;
  --green: #34ed94;
  --red: #d84141;
  --shadow: 0 18px 38px rgba(39, 53, 61, 0.08);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-toggle {
  width: 48px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--faint);
  border-radius: 999px;
  color: var(--blue);
  background: #f9fcff;
}

.theme-toggle-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #e6f3fb;
  box-shadow: inset 0 0 0 1px rgba(0, 101, 228, 0.12);
}

.theme-toggle-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 5px rgba(39, 53, 61, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}

html.theme-dark .theme-toggle {
  color: var(--green);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(143, 201, 244, 0.22);
}

html.theme-dark .theme-toggle-track {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(52, 237, 148, 0.28);
}

html.theme-dark .theme-toggle-track::before {
  background: var(--green);
  transform: translateX(14px);
}

h1, h2, h3, p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 80px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(194, 213, 232, 0.7);
  backdrop-filter: blur(10px);
}

.header-inner,
.footer-inner {
  width: min(1440px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header-inner {
  justify-content: space-between;
  gap: 42px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 145px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 700;
}

.main-nav a {
  padding: 30px 0 24px;
  border-bottom: 2px solid transparent;
}

.main-nav .active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  gap: 3px;
  padding: 0;
  border: 1px solid var(--faint);
  border-radius: 8px;
  color: var(--blue);
  background: #f9fcff;
}

.mobile-menu-toggle span {
  width: 17px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.is-menu-open .mobile-menu-toggle span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.site-header.is-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .mobile-menu-toggle span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.flags { display: flex; gap: 13px; }

.flag {
  position: relative;
  width: 32px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.flag::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #d7e2ed;
}

.flag.active::after { background: var(--blue); }

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e8f8;
  border-radius: 50%;
  background: #f9fcff;
  color: var(--blue);
}

.icon-button svg { width: 18px; height: 18px; }

main { padding-top: 16px; }

.program-shell {
  width: min(1184px, calc(100% - 48px));
  margin: 0 auto 50px;
}

.breadcrumbs {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 36px;
  background: var(--panel);
  border-radius: 6px 6px 0 0;
  color: #7f8fa3;
  font-size: 12px;
  box-shadow: 0 1px 0 rgba(216, 231, 245, 0.7);
}

.breadcrumbs svg { width: 16px; height: 16px; }
.breadcrumbs strong { color: var(--text); font-weight: 500; }

.hero-card {
  min-height: 133px;
  display: grid;
  grid-template-columns: 96px 1fr 245px;
  gap: 22px;
  align-items: center;
  padding: 22px 24px 24px 36px;
  background: linear-gradient(90deg, #fff 0%, #fff 66%, #f0f7ff 100%);
  border-radius: 0 0 6px 6px;
}

.program-logo,
.mini-logo {
  display: grid;
  place-items: center;
  background: var(--dark);
  border: 1px solid #d9e8f5;
  box-shadow: 0 14px 25px rgba(39, 53, 61, 0.14);
}

.program-logo { width: 82px; height: 82px; border-radius: 6px; }

.bolt {
  width: 36px;
  height: 44px;
  display: block;
  background: linear-gradient(135deg, var(--green), var(--blue));
  clip-path: polygon(44% 0, 88% 0, 57% 42%, 92% 42%, 23% 100%, 45% 52%, 14% 52%);
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--soft-muted);
  font-size: 11px;
  font-weight: 600;
}

.status {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--dark);
  background: #d9fff0;
  font-size: 10px;
  font-weight: 800;
}

h1 { margin-bottom: 7px; font-size: 31px; line-height: 1.05; font-weight: 800; }
h2 { margin-bottom: 22px; font-size: 18px; line-height: 1.24; font-weight: 800; }

.hero-copy p {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.primary-button,
.secondary-button,
.secondary-dark {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 5px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.primary-button {
  min-width: 220px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(0, 101, 228, 0.24);
}

.primary-button:hover { color: var(--dark); background: var(--green); }
.secondary-button { min-width: 178px; color: var(--blue); background: #fff; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin: 48px 31px 40px;
}

.metric-card {
  min-height: 110px;
  padding: 20px 22px 16px;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card.highlighted { border-left: 3px solid var(--blue); }

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.metric-label svg { width: 17px; height: 17px; color: var(--blue); }
.metric-card:nth-child(3) .metric-label svg { color: var(--green); }
.metric-card strong { display: block; margin-top: 12px; font-size: 25px; line-height: 1; }
.metric-card small { display: block; margin-top: 13px; color: #6d7f94; font-size: 10px; }
.metric-card.highlighted small { color: var(--dark); font-weight: 800; }

.market-tags { display: flex; gap: 8px; margin-top: 12px; }

.market-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: #f1f7fd;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 0.96fr;
  gap: 28px;
  align-items: start;
  padding: 0 41px;
}

.section-heading { display: flex; align-items: center; gap: 26px; margin-bottom: 26px; }
.section-heading::after { content: ""; flex: 1; height: 1px; background: var(--faint); }
.section-heading h2 { margin-bottom: 0; }

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

.promo-card {
  position: relative;
  min-height: 122px;
  padding: 22px 66px 20px 22px;
  background: var(--panel);
  border: 3px solid var(--blue);
  border-radius: 8px;
}

.promo-card.green { border-color: var(--green); }
.promo-card span { display: block; margin-bottom: 8px; color: var(--blue); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.promo-card.green span { color: var(--dark); }
.promo-card h3 { margin-bottom: 9px; font-size: 13px; }
.promo-card p { margin-bottom: 0; color: #53677d; font-size: 12px; line-height: 1.45; }

.promo-card svg {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 34px;
  height: 34px;
  padding: 8px;
  color: var(--blue);
  background: #eaf4ff;
  border-radius: 50%;
  transform: translateY(-50%);
}

.promo-card.green svg { color: var(--dark); background: #e9fbf4; }
.text-section { margin-bottom: 28px; }
.text-section h2 { margin-bottom: 15px; font-size: 19px; }
.text-section p { margin-bottom: 16px; color: #405165; line-height: 1.72; }
.commission { padding-top: 2px; margin-bottom: 27px; }

.commission h2,
.rules h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.commission h2 svg,
.rules h2 svg { width: 16px; height: 16px; color: var(--blue); }

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

.commission-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 15px;
  background: var(--panel-soft);
  border: 1px solid #d9e8f8;
  border-radius: 4px;
  color: #516477;
  font-size: 12px;
}

.commission-grid div:last-child { grid-column: 1 / -1; }
.commission-grid strong { color: var(--blue); }

.rules {
  padding: 25px 26px 28px;
  background: var(--panel-soft);
  border: 1px solid #cfe2f5;
  border-radius: 7px;
}

.rules-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.rules h3 { margin-bottom: 12px; color: var(--dark); font-size: 11px; text-transform: uppercase; }
.rules h3, .rules li { font-weight: 700; }
.rules ul { margin: 0; padding: 0; list-style: none; color: #4b6178; font-size: 12px; }
.rules li { position: relative; padding-left: 14px; margin-bottom: 8px; }
.rules li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.rules .negative li::before { content: "×"; color: var(--red); }
.rules .negative h3 { color: var(--red); }

.sidebar { padding-top: 177px; }
.side-card { background: var(--panel); border-radius: 7px; box-shadow: var(--shadow); }
.stats-card { padding: 24px 22px; margin-bottom: 20px; }
.stats-card h2 { margin-bottom: 18px; font-size: 14px; }
.stats-card dl { margin: 0; }
.stats-card div { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid #e6edf5; }
.stats-card dt { color: #66778c; font-size: 12px; }
.stats-card dd { margin: 0; color: #17263a; font-size: 12px; font-weight: 800; }
.green-text, .check { color: var(--dark); }

.support-card { padding: 21px 19px; background: #e8f2fc; }
.support-card p { margin-bottom: 14px; color: #74859b; font-size: 11px; line-height: 1.5; }

.support-card a {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  color: var(--blue);
  background: #f8fcff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 50px;
  min-height: 250px;
  margin: 45px 41px 65px;
  padding: 58px 43px 44px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(39, 53, 61, 0.98), rgba(39, 53, 61, 0.92)),
    repeating-linear-gradient(125deg, rgba(52, 237, 148, 0.14) 0 1px, transparent 1px 30px);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 35%, rgba(52, 237, 148, 0.2), transparent 24%);
  pointer-events: none;
}

.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 20px; font-size: 29px; }
.cta-band p { max-width: 545px; margin-bottom: 24px; color: rgba(255, 255, 255, 0.72); line-height: 1.62; }
.cta-actions { display: flex; gap: 15px; }
.primary-button.mint { width: 196px; min-width: 196px; color: var(--dark); background: var(--green); box-shadow: none; }
.secondary-dark { width: 130px; color: #fff; background: rgba(255, 255, 255, 0.14); }
.cta-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 50px; align-content: center; }
.cta-stats strong { display: block; margin-bottom: 4px; color: var(--green); font-size: 19px; }
.cta-stats span { color: rgba(255, 255, 255, 0.65); font-size: 10px; font-weight: 800; text-transform: uppercase; }

.related { padding: 0 41px; }
.related h2 { margin-bottom: 30px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 19px; }

.related-card {
  min-height: 168px;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--panel-soft);
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(198, 219, 239, 0.55);
  text-align: center;
}

.mini-logo { width: 61px; height: 46px; margin-bottom: 13px; border-radius: 3px; }
.mini-logo .bolt { width: 23px; height: 28px; }
.related-card h3 { margin-bottom: 5px; font-size: 13px; }
.related-card p { min-height: 22px; margin-bottom: 12px; color: #65758a; font-size: 10px; }
.related-card strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 11px; }
.program-link { color: var(--blue); font-size: 10px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(0, 101, 228, 0.28); text-underline-offset: 3px; }

.site-footer {
  min-height: 116px;
  margin-top: 44px;
  background: var(--dark);
  color: #fff;
}

.footer-inner {
  min-height: 116px;
  justify-content: space-between;
  gap: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.footer-brand img { filter: brightness(0) invert(1); }
.footer-inner > nav { display: flex; justify-content: center; gap: 28px; flex: 1 1 auto; font-weight: 600; }
.footer-sitemap { position: relative; flex: 0 0 auto; }
.footer-sitemap-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.footer-sitemap-button::after { content: "v"; font-size: 10px; transition: transform 160ms ease; }
.footer-sitemap.is-open .footer-sitemap-button::after { transform: rotate(180deg); }
.footer-sitemap-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 5;
  width: min(330px, calc(100vw - 32px));
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(207, 229, 245, 0.95);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow);
}
.footer-sitemap-panel[hidden] { display: none; }
.footer-sitemap-panel a { display: block; padding: 9px 10px; border-radius: 6px; color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.25; }
.footer-sitemap-panel a:hover,
.footer-sitemap-panel a:focus-visible,
.footer-sitemap-panel a[aria-current="page"] { color: var(--blue); background: #eef7ff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; color: #fff; }
.socials svg { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .site-header { height: auto; }
  .header-inner { min-height: 80px; flex-wrap: wrap; padding: 12px 0; gap: 16px 24px; }
  html.has-mobile-menu .mobile-menu-toggle { order: 2; display: inline-grid; flex: 0 0 auto; }
  html.has-mobile-menu .main-nav {
    order: 3;
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 0 solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: max-height 220ms ease, opacity 160ms ease, padding 160ms ease, border-color 160ms ease;
  }
  html.has-mobile-menu .main-nav a { padding: 14px 2px; border-bottom: 1px solid #d8e8f8; white-space: nowrap; }
  html.has-mobile-menu .main-nav .active { border-bottom-color: rgba(0, 101, 228, 0.3); }
  html.has-mobile-menu .site-header.is-menu-open .main-nav {
    max-height: 340px;
    padding: 10px 0 4px;
    border-top-width: 1px;
    border-top-color: #d8e8f8;
    opacity: 1;
    visibility: visible;
  }
  .header-actions { order: 2; margin-left: auto; }
  .hero-card { grid-template-columns: 84px 1fr; }
  .hero-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .content-grid, .cta-band { grid-template-columns: 1fr; }
  .sidebar { padding-top: 0; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-wrap: wrap; justify-content: center; padding: 24px 0; text-align: center; }
  .footer-sitemap { order: 3; }
  .footer-sitemap-panel { right: 50%; transform: translateX(50%); }
  .footer-inner > nav { order: 4; flex-basis: 100%; flex-wrap: wrap; justify-content: center; gap: 16px; }
}

@media (max-width: 700px) {
  .header-inner, .footer-inner, .program-shell { width: min(100% - 28px, 1184px); }
  .header-actions { width: auto; justify-content: flex-end; }
  .flags { gap: 8px; }
  .breadcrumbs { min-height: 58px; padding: 16px; flex-wrap: wrap; gap: 10px; }
  .hero-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 18px; }
  h1 { font-size: 27px; }
  .hero-actions { width: 100%; align-items: stretch; }
  .primary-button, .secondary-button, .secondary-dark { width: 100%; min-width: 0; white-space: normal; }
  .metrics, .promo-grid, .commission-grid, .rules-columns, .related-grid { grid-template-columns: 1fr; }
  .metrics, .content-grid, .cta-band, .related { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .content-grid { padding: 0; }
  .cta-band { padding: 34px 24px; }
  .cta-stats { grid-template-columns: 1fr; gap: 18px; }
  .cta-actions { flex-direction: column; }
  .primary-button.mint, .secondary-dark { width: 100%; }
  .site-footer { height: auto; }
}

/* Dark mode variant for the standalone program detail page */
html.theme-dark {
  --bg: #02070c;
  --panel: #0a1824;
  --panel-soft: #102334;
  --text: #f5fbff;
  --muted: rgba(224, 238, 248, 0.78);
  --soft-muted: rgba(203, 222, 236, 0.62);
  --faint: rgba(143, 201, 244, 0.22);
  --dark: #02070c;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

html.theme-dark,
html.theme-dark body {
  background:
    radial-gradient(circle at 80% 0%, rgba(52, 237, 148, 0.16), transparent 30%),
    radial-gradient(circle at 14% 20%, rgba(0, 101, 228, 0.2), transparent 34%),
    linear-gradient(180deg, #02070c 0%, #06111d 48%, #07121b 100%);
  color: var(--text);
}

html.theme-dark .site-header {
  background: rgba(2, 7, 12, 0.9);
  box-shadow: 0 1px 0 rgba(52, 237, 148, 0.16);
  color: var(--text);
}

html.theme-dark .main-nav a {
  color: rgba(245, 251, 255, 0.78);
}

html.theme-dark .main-nav .active {
  color: var(--green);
  border-bottom-color: var(--green);
}

html.theme-dark .flag::after {
  background: rgba(245, 251, 255, 0.24);
}

html.theme-dark .flag.active::after {
  background: var(--green);
}

html.theme-dark .mobile-menu-toggle {
  color: var(--green);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--faint);
}

html.theme-dark .icon-button {
  color: var(--green);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--faint);
}

@media (max-width: 980px) {
  html.theme-dark.has-mobile-menu .main-nav a {
    border-bottom-color: var(--faint);
  }

  html.theme-dark.has-mobile-menu .site-header.is-menu-open .main-nav {
    border-top-color: var(--faint);
  }
}

html.theme-dark .breadcrumbs,
html.theme-dark .hero-card,
html.theme-dark .metric-card,
html.theme-dark .promo-card,
html.theme-dark .rules,
html.theme-dark .side-card,
html.theme-dark .support-card,
html.theme-dark .related-card {
  color: var(--text);
  background: linear-gradient(145deg, rgba(10, 24, 36, 0.96), rgba(15, 36, 52, 0.9));
  border-color: var(--faint);
  box-shadow: var(--shadow);
}

html.theme-dark .hero-card {
  background:
    radial-gradient(circle at 82% 20%, rgba(52, 237, 148, 0.16), transparent 30%),
    linear-gradient(135deg, #06111d 0%, #0a1824 58%, #0a2230 100%);
}

html.theme-dark .breadcrumbs {
  border-radius: 6px;
  color: var(--soft-muted);
}

html.theme-dark .breadcrumbs strong,
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark .metric-card strong,
html.theme-dark .related-card strong,
html.theme-dark .rules h3,
html.theme-dark .stats-card dd,
html.theme-dark .related-card h3 {
  color: var(--text);
}

html.theme-dark .hero-copy p,
html.theme-dark .metric-label,
html.theme-dark .metric-card small,
html.theme-dark .promo-card p,
html.theme-dark .text-section p,
html.theme-dark .commission-grid div,
html.theme-dark .rules ul,
html.theme-dark .stats-card dt,
html.theme-dark .support-card p,
html.theme-dark .related-card p,
html.theme-dark .eyebrow-row {
  color: var(--muted);
}

html.theme-dark .secondary-button,
html.theme-dark .secondary-dark,
html.theme-dark .support-card a {
  color: var(--green);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(52, 237, 148, 0.36);
}

html.theme-dark .secondary-button:hover,
html.theme-dark .secondary-button:focus-visible,
html.theme-dark .support-card a:hover,
html.theme-dark .support-card a:focus-visible {
  color: #06111d;
  background: var(--green);
}

html.theme-dark .market-tags span,
html.theme-dark .promo-card svg,
html.theme-dark .promo-card.green svg,
html.theme-dark .commission-grid div {
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--faint);
}

html.theme-dark .status,
html.theme-dark .primary-button.mint {
  color: #05141c;
}

html.theme-dark .metric-card.highlighted {
  border-left-color: var(--green);
}

html.theme-dark .promo-card {
  border-color: rgba(0, 101, 228, 0.55);
}

html.theme-dark .promo-card.green {
  border-color: rgba(52, 237, 148, 0.64);
}

html.theme-dark .section-heading::after {
  background: var(--faint);
}

html.theme-dark .stats-card div {
  border-color: var(--faint);
}

html.theme-dark .cta-band {
  background:
    radial-gradient(circle at 82% 35%, rgba(52, 237, 148, 0.22), transparent 26%),
    linear-gradient(135deg, #02070c 0%, #07121b 58%, #0a2230 100%);
  box-shadow: var(--shadow);
}

html.theme-dark .site-footer {
  background: #02070c;
  box-shadow: inset 0 1px 0 rgba(52, 237, 148, 0.16);
}

html.theme-dark .footer-sitemap-button {
  color: var(--green);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(52, 237, 148, 0.36);
}

html.theme-dark .footer-sitemap-panel {
  color: var(--text);
  background: var(--panel);
  border-color: var(--faint);
  box-shadow: var(--shadow);
}

html.theme-dark .footer-sitemap-panel a {
  color: var(--muted);
}

html.theme-dark .footer-sitemap-panel a:hover,
html.theme-dark .footer-sitemap-panel a:focus-visible,
html.theme-dark .footer-sitemap-panel a[aria-current="page"] {
  color: var(--green);
  background: rgba(52, 237, 148, 0.08);
}

/* Compact alignment for the standalone program detail */
:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ap-blue: var(--blue);
  --ap-green: var(--green);
  --ap-dark: var(--text);
  --ap-ice: var(--bg);
  --line: var(--faint);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --control-sm: 40px;
  --control-md: 48px;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

.main-nav {
  letter-spacing: 0;
  text-transform: none;
}

.main-nav a {
  color: var(--text);
  transition: color 160ms ease, border-color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
}

:is(.icon-button, .theme-toggle) {
  border-color: var(--line);
  color: var(--blue);
  background: #f9fcff;
  box-shadow: none;
}

.breadcrumbs {
  min-height: 40px;
  gap: 12px;
  margin: 0 auto 24px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.breadcrumbs a {
  color: var(--blue);
}

.breadcrumbs strong {
  color: var(--text);
  font-weight: 700;
}

main {
  padding-top: 0;
}

.site-breadcrumbs {
  width: min(1216px, calc(100% - 96px));
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px auto 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.site-breadcrumbs a {
  color: var(--blue);
}

.site-breadcrumbs span {
  color: var(--soft-muted);
}

.site-breadcrumbs strong {
  color: var(--text);
  font-weight: 800;
}

.site-breadcrumb-home {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: none;
}

.site-breadcrumb-home svg {
  width: 16px;
  height: 16px;
}

.site-breadcrumbs + .program-shell {
  margin-top: 24px;
}

.hero-card {
  border-radius: var(--radius-md);
}

:is(.primary-button, .secondary-button, .secondary-dark, .primary-button.mint) {
  min-height: var(--control-md);
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

:is(.primary-button:hover, .primary-button:focus-visible, .secondary-button:hover, .secondary-button:focus-visible, .secondary-dark:hover, .secondary-dark:focus-visible) {
  transform: translateY(-1px);
}

.primary-button {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 6px rgba(39, 53, 61, 0.1);
}

.primary-button:hover,
.primary-button:focus-visible,
.primary-button.mint {
  color: var(--text);
  background: var(--green);
  border-color: var(--green);
}

:is(.secondary-button, .secondary-dark) {
  color: var(--blue);
  background: #fff;
  border-color: var(--line);
}

:is(.status, .market-tags span) {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status {
  color: #087f58;
  background: #ddfaec;
}

.market-tags span {
  color: #516477;
  background: #eef4fa;
}

:is(.metric-card, .promo-card, .rules, .side-card, .support-card, .cta-band, .related-card, .footer-sitemap-panel) {
  border-radius: var(--radius-md);
}

.program-logo,
.mini-logo {
  border-radius: var(--radius-sm);
}

html.theme-dark .main-nav a {
  color: rgba(245, 251, 255, 0.78);
}

html.theme-dark :is(.icon-button, .theme-toggle) {
  color: var(--green);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--faint);
}

html.theme-dark .breadcrumbs {
  color: var(--soft-muted);
  background: transparent;
  border: 0;
  box-shadow: none;
}

html.theme-dark .breadcrumbs a {
  color: var(--green);
}

html.theme-dark .breadcrumbs strong {
  color: var(--text);
}

html.theme-dark .site-breadcrumbs {
  color: var(--soft-muted);
}

html.theme-dark .site-breadcrumbs a {
  color: var(--green);
}

html.theme-dark .site-breadcrumbs span {
  color: var(--soft-muted);
}

html.theme-dark .site-breadcrumbs strong {
  color: var(--text);
}

html.theme-dark .site-breadcrumb-home {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--faint);
}

html.theme-dark :is(.secondary-button, .secondary-dark) {
  color: var(--green);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(52, 237, 148, 0.36);
}

html.theme-dark :is(.primary-button:hover, .primary-button:focus-visible, .primary-button.mint, .status) {
  color: #05141c;
  background: var(--green);
  border-color: var(--green);
}

html.theme-dark .market-tags span {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--faint);
}

@media (max-width: 700px) {
  .breadcrumbs {
    padding: 0;
  }

  .site-breadcrumbs {
    width: min(100% - 32px, 1216px);
    min-height: 36px;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 18px;
  }

  .site-breadcrumb-home {
    width: 32px;
    height: 32px;
  }

  :is(.primary-button, .secondary-button, .secondary-dark, .primary-button.mint) {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  html.has-mobile-menu .site-header {
    height: auto;
  }

  html.has-mobile-menu .header-inner {
    min-height: 80px;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 0;
  }

  html.has-mobile-menu .mobile-menu-toggle {
    order: 2;
    display: inline-grid;
    flex: 0 0 auto;
  }

  html.has-mobile-menu .header-actions {
    order: 2;
    margin-left: auto;
    gap: 8px;
  }

  html.has-mobile-menu .main-nav {
    order: 3;
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-top: 0 solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: max-height 220ms ease, opacity 160ms ease, padding 160ms ease, border-color 160ms ease;
  }

  html.has-mobile-menu .main-nav a {
    padding: 14px 2px;
    border-bottom: 1px solid #d8e8f8;
    white-space: nowrap;
  }

  html.has-mobile-menu .main-nav .active {
    border-bottom-color: rgba(0, 101, 228, 0.3);
  }

  html.has-mobile-menu .site-header.is-menu-open .main-nav {
    max-height: 340px;
    padding: 10px 0 4px;
    border-top-width: 1px;
    border-top-color: #d8e8f8;
    opacity: 1;
    visibility: visible;
  }

  html.theme-dark.has-mobile-menu .main-nav a {
    border-bottom-color: var(--faint);
  }

  html.theme-dark.has-mobile-menu .site-header.is-menu-open .main-nav {
    border-top-color: var(--faint);
  }

  html.has-mobile-menu .flags.language-switcher {
    position: relative;
    z-index: 12;
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: grid;
    align-self: center;
    gap: 5px;
    overflow: visible;
  }

  html.has-mobile-menu .flags.language-switcher .flag {
    width: 40px;
    height: 40px;
    display: none;
    place-items: center;
    padding: 0;
    border: 1px solid var(--faint);
    border-radius: 8px;
    background: #f9fcff;
    box-shadow: none;
  }

  html.has-mobile-menu .flags.language-switcher .flag::after {
    display: none;
  }

  html.has-mobile-menu .flags.language-switcher .flag.active {
    display: grid;
  }

  html.has-mobile-menu .flags.language-switcher.is-open {
    height: auto;
    padding: 4px;
    border: 1px solid var(--faint);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  html.has-mobile-menu .flags.language-switcher.is-open .flag {
    display: grid;
    border-color: transparent;
    background: transparent;
  }

  html.has-mobile-menu .flags.language-switcher.is-open .flag.active {
    color: var(--blue);
    background: #eef7ff;
  }

  html.theme-dark.has-mobile-menu .flags.language-switcher .flag {
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--faint);
  }

  html.theme-dark.has-mobile-menu .flags.language-switcher.is-open {
    background: var(--panel);
    border-color: var(--faint);
    box-shadow: var(--shadow);
  }

  html.theme-dark.has-mobile-menu .flags.language-switcher.is-open .flag.active {
    color: var(--green);
    background: rgba(52, 237, 148, 0.08);
  }
}
