/*
  Normativity global visual system.
  Loaded last on each page to keep the entire site aligned with the
  Forethought-inspired editorial style used on the home page.
*/
:root {
  --nm-bg: #efefea;
  --nm-surface: #f7f7f4;
  --nm-surface-soft: #f1f2ef;
  --nm-line: #dfe2de;
  --nm-line-strong: #d2d8d3;
  --nm-ink: #2f2d2b;
  --nm-muted: #5d615f;
  --nm-primary: #2f3d53;
  --nm-primary-hover: #263247;
  --nm-signal: #ff5f35;
  --nm-success: #2d7a56;
  --nm-danger: #b14d5d;
  --nm-danger-soft: #f8eeef;
  --nm-success-soft: #edf6f1;
  --nm-radius-sm: 8px;
  --nm-radius-md: 12px;
  --nm-radius-lg: 16px;
}

:root {
  --bg: var(--nm-bg);
  --surface: var(--nm-surface);
  --surface-soft: var(--nm-surface-soft);
  --panel: var(--nm-surface);
  --line: var(--nm-line);
  --line-strong: var(--nm-line-strong);
  --ink: var(--nm-ink);
  --ink-soft: var(--nm-muted);
  --text: var(--nm-ink);
  --muted: var(--nm-muted);
  --primary: var(--nm-primary);
  --primary-soft: #eef1f7;
  --accent: var(--nm-primary);
  --signal: var(--nm-signal);
  --ok: var(--nm-success);
  --warn: var(--nm-danger);
  --warning: var(--nm-danger);
  --support: var(--nm-success);
  --conflict: var(--nm-danger);
  --neutral: #6a706d;
  --yes-soft: var(--nm-success-soft);
  --no-soft: var(--nm-danger-soft);
  --judgment-bg: #eef1f7;
  --principle-bg: #eff4ee;
  --theory-bg: #f7f2e9;

  --ft-bg: var(--nm-bg);
  --ft-ink: var(--nm-ink);
  --ft-line: var(--nm-line);
  --ft-line-strong: var(--nm-line-strong);
  --ft-primary: var(--nm-primary);
  --ft-primary-hover: var(--nm-primary-hover);
  --ft-surface-soft: var(--nm-surface-soft);

  --home-bg: var(--nm-bg);
  --home-surface: var(--nm-surface);
  --home-line: var(--nm-line);
  --home-line-strong: var(--nm-line-strong);
  --home-ink: var(--nm-ink);
  --home-muted: var(--nm-muted);
  --home-accent: var(--nm-primary);
  --home-accent-hover: var(--nm-primary-hover);
}

html,
body {
  background: var(--nm-bg);
  color: var(--nm-ink);
}

html {
  scroll-padding-top: 118px;
}

body,
button,
input,
textarea,
select {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.wre-title,
.auth-title,
.signup-onboarding-title,
.forethought-podcast-link,
.forethought-footer-nav a {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Garamond, serif;
  color: var(--nm-ink);
  font-weight: 500;
}

p,
li,
label,
.hint,
.lead,
.subtitle,
.auth-subtitle,
.wre-label,
.empty-note {
  color: var(--nm-muted);
}

a {
  color: var(--nm-primary);
}

a:hover,
a:focus-visible {
  color: var(--nm-signal);
}

.site-header,
.wre-topbar,
.wre-topbar-inner {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--nm-line);
  backdrop-filter: saturate(120%) blur(4px);
}

.main-nav a,
.top-nav a,
.wre-nav a {
  border: 1px solid transparent;
  border-radius: var(--nm-radius-sm);
  color: #4d5350;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"],
.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"],
.wre-nav a:hover,
.wre-nav a:focus-visible,
.wre-nav a[aria-current="page"] {
  border-color: var(--nm-line-strong);
  background: #f5f5f2;
  color: var(--nm-ink);
}

.panel,
.card,
.auth-card,
.auth-panel,
.profile-card,
.profile-metric,
.publication-card,
.market-card,
.ticket,
.choice-item,
.feed-item,
.positions-item,
.market-detail-main,
.detail-context-block,
.detail-activity-block,
.detail-overview-card,
.detail-outcome-card,
.detail-theory-item,
.normative-hero,
.comparison-card-mini,
.diagram-card,
.strategy-row,
.mind-card,
.protocol-card,
.guardrail-tool,
.guardrail-result,
.normative-toc,
.wre-hero,
.wre-panel,
.wre-workspace-board,
.summary-row,
.recommendation-card,
.case-actions,
.confidence-wrap,
.reflection-timer,
.choice-option,
.progress-card,
.graph-card,
.gauge-card,
.explanation-card,
.lesson-card,
.lesson-case,
.answer-summary,
.inspect-hover,
.inspect-list,
.edge-rank-item {
  background: var(--nm-surface);
  border-color: var(--nm-line);
  box-shadow: none;
}

.auth-chip,
.hero-pills span,
.chip-filter,
.category-tag,
.multi-pill,
.choice-share,
.detail-share,
.article-prop-tag,
.normative-source-strip a {
  background: var(--nm-surface-soft);
  border-color: var(--nm-line-strong);
  color: #4b5150;
}

button,
.btn,
.auth-btn {
  border-radius: var(--nm-radius-sm);
  font-weight: 600;
}

.btn-primary,
.auth-btn:not(.ghost),
button[type="submit"] {
  border-color: var(--nm-primary);
  background: var(--nm-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.auth-btn:not(.ghost):hover,
.auth-btn:not(.ghost):focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  border-color: var(--nm-primary-hover);
  background: var(--nm-primary-hover);
}

.btn-secondary,
.btn-ghost,
.auth-btn.ghost {
  background: #ffffff;
  border-color: var(--nm-line-strong);
  color: #4b5150;
}

input,
textarea,
select,
.auth-field input,
.auth-field textarea,
.auth-field select,
.search-wrap input {
  border: 1px solid var(--nm-line-strong);
  border-radius: var(--nm-radius-sm);
  background: #ffffff;
  color: var(--nm-ink);
}

input::placeholder,
textarea::placeholder {
  color: #8a8f8d;
}

hr,
.divider,
.soft-divider {
  border-color: var(--nm-line);
}

.bg-orb {
  display: none !important;
}

/* Keep the sign-up screen in the same visual language as the rest of the site. */
body.auth-page.auth-signup-mode,
body.auth-page.auth-signup-mode .auth-shell {
  background: var(--nm-bg);
  color: var(--nm-ink);
}

body.auth-page.auth-signup-mode .auth-card {
  border-color: var(--nm-line);
  border-radius: var(--nm-radius-lg);
  background: var(--nm-surface);
  box-shadow: none;
}

body.auth-page.auth-signup-mode .auth-panel {
  border-color: var(--nm-line);
  background: var(--nm-surface);
}

body.auth-page.auth-signup-mode .auth-tab-btn {
  border-color: var(--nm-line-strong);
  background: #ffffff;
  color: #4d5350;
}

body.auth-page.auth-signup-mode .auth-tab-btn.active {
  border-color: var(--nm-primary);
  background: #eef1f7;
  color: var(--nm-primary);
}

body.auth-page.auth-signup-mode .signup-onboarding-icon {
  border-color: #d5966b;
  background: #a85d34;
}

body.auth-page.auth-signup-mode .signup-onboarding-icon span::before,
body.auth-page.auth-signup-mode .signup-onboarding-icon span::after {
  background: #fff7f1;
  box-shadow: none;
}

body.auth-page.auth-signup-mode .signup-onboarding-subtitle,
body.auth-page.auth-signup-mode .auth-checkbox {
  color: var(--nm-muted);
}

body.auth-page.auth-signup-mode .signup-avatar {
  border-color: var(--nm-line-strong);
  background: radial-gradient(circle at 24% 20%, #e6e9f9 0%, #cab39b 56%, #e89d64 78%, #f1b145 100%);
  color: #ffffff;
}

body.auth-page.auth-signup-mode .signup-avatar-edit {
  border-color: var(--nm-line-strong);
  background: #ffffff;
  color: var(--nm-primary);
}

body.auth-page.auth-signup-mode .auth-field,
body.auth-page.auth-signup-mode .auth-status,
body.auth-page.auth-signup-mode .auth-commitment h3,
body.auth-page.auth-signup-mode .auth-commitment pre {
  color: var(--nm-muted);
}

body.auth-page.auth-signup-mode .auth-field input,
body.auth-page.auth-signup-mode .auth-field textarea {
  border-color: var(--nm-line-strong);
  background: #ffffff;
  color: var(--nm-ink);
}

body.auth-page.auth-signup-mode .auth-commitment {
  border-color: var(--nm-line);
  background: var(--nm-surface-soft);
}

/*
  Forethought-style visual unification layer.
  Applied to pages that set body.forethought-site.
*/
body.forethought-site {
  --nm-bg: #efefea;
  --nm-surface: #f7f7f4;
  --nm-surface-soft: #f1f2ef;
  --nm-line: #dfe2de;
  --nm-line-strong: #d2d8d3;
  --nm-ink: #2f2d2b;
  --nm-muted: #5d615f;
  --nm-primary: #2f3d53;
  --nm-primary-hover: #263247;
  --nm-signal: #ff5f35;
  --nm-success: #2d7a56;
  --nm-danger: #b14d5d;
  background-color: var(--nm-bg);
  background-image:
    linear-gradient(rgba(145, 150, 152, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 150, 152, 0.18) 1px, transparent 1px);
  background-size: 52px 52px;
}

body.forethought-site main,
body.forethought-site .publication-main,
body.forethought-site .profile-main,
body.forethought-site .wre-page,
body.forethought-site .wre-main,
body.forethought-site .wre-module-main {
  position: relative;
  z-index: 1;
}

body.forethought-site .site-header,
body.forethought-site .wre-topbar,
body.forethought-site .wre-topbar-inner {
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--nm-line);
  backdrop-filter: saturate(130%) blur(5px);
}

body.forethought-site .brand,
body.forethought-site .wre-brand,
body.forethought-site .wre-title,
body.forethought-site .auth-title,
body.forethought-site h1,
body.forethought-site h2,
body.forethought-site h3,
body.forethought-site h4 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Garamond, serif;
  font-weight: 500;
  color: var(--nm-ink);
  letter-spacing: 0.003em;
}

body.forethought-site .section-head {
  border-left: 2px solid var(--nm-signal);
  padding-left: 0.85rem;
  margin-bottom: 0.95rem;
}

body.forethought-site .section-head .eyebrow {
  color: #cc5a3f;
}

body.forethought-site p,
body.forethought-site li,
body.forethought-site label,
body.forethought-site .hint,
body.forethought-site .subtitle,
body.forethought-site .lead {
  color: var(--nm-muted);
}

body.forethought-site a {
  color: var(--nm-primary);
}

body.forethought-site a:hover,
body.forethought-site a:focus-visible {
  color: var(--nm-signal);
}

body.forethought-site a:focus-visible,
body.forethought-site button:focus-visible,
body.forethought-site input:focus-visible,
body.forethought-site select:focus-visible,
body.forethought-site textarea:focus-visible,
body.forethought-site summary:focus-visible,
body.forethought-site [tabindex]:focus-visible {
  outline: 2px solid rgba(255, 95, 53, 0.88);
  outline-offset: 3px;
}

body.forethought-site .panel,
body.forethought-site .card,
body.forethought-site .auth-card,
body.forethought-site .auth-panel,
body.forethought-site .profile-card,
body.forethought-site .profile-metric,
body.forethought-site .publication-card,
body.forethought-site .market-card,
body.forethought-site .wre-hero,
body.forethought-site .wre-panel,
body.forethought-site .wre-workspace-board,
body.forethought-site .progress-card,
body.forethought-site .graph-card,
body.forethought-site .gauge-card,
body.forethought-site .explanation-card,
body.forethought-site .lesson-card,
body.forethought-site .lesson-case,
body.forethought-site .answer-summary,
body.forethought-site .inspect-hover,
body.forethought-site .inspect-list,
body.forethought-site .edge-rank-item,
body.forethought-site .recommendation-card,
body.forethought-site .summary-row,
body.forethought-site .case-actions,
body.forethought-site .confidence-wrap,
body.forethought-site .reflection-timer,
body.forethought-site .choice-option {
  background: var(--nm-surface);
  border: 1px solid var(--nm-line);
  box-shadow: none;
}

body.forethought-site .panel:hover,
body.forethought-site .card:hover,
body.forethought-site .publication-card:hover,
body.forethought-site .market-card:hover,
body.forethought-site .profile-card:hover {
  border-color: var(--nm-line-strong);
}

body.forethought-site .main-nav a,
body.forethought-site .top-nav a,
body.forethought-site .wre-nav a {
  color: #4d5350;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 500;
}

body.forethought-site .main-nav a:hover,
body.forethought-site .main-nav a:focus-visible,
body.forethought-site .main-nav a[aria-current="page"],
body.forethought-site .top-nav a:hover,
body.forethought-site .top-nav a:focus-visible,
body.forethought-site .top-nav a[aria-current="page"],
body.forethought-site .wre-nav a:hover,
body.forethought-site .wre-nav a:focus-visible,
body.forethought-site .wre-nav a[aria-current="page"] {
  border-color: var(--nm-line-strong);
  background: #f5f5f2;
  color: var(--nm-ink);
}

body.forethought-site .btn,
body.forethought-site .auth-btn,
body.forethought-site button {
  border-radius: 8px;
  font-weight: 600;
}

body.forethought-site .btn-primary,
body.forethought-site .auth-btn:not(.ghost),
body.forethought-site button[type="submit"] {
  background: var(--nm-primary);
  border-color: var(--nm-primary);
  color: #ffffff;
}

body.forethought-site .btn-primary:hover,
body.forethought-site .btn-primary:focus-visible,
body.forethought-site .auth-btn:not(.ghost):hover,
body.forethought-site .auth-btn:not(.ghost):focus-visible,
body.forethought-site button[type="submit"]:hover,
body.forethought-site button[type="submit"]:focus-visible {
  background: var(--nm-primary-hover);
  border-color: var(--nm-primary-hover);
}

body.forethought-site .btn-secondary,
body.forethought-site .btn-ghost,
body.forethought-site .auth-btn.ghost {
  background: #ffffff;
  border-color: var(--nm-line-strong);
  color: #4b5150;
}

body.forethought-site .featured-market-chart,
body.forethought-site #featuredMarketChart,
body.forethought-site #deliberationChart,
body.forethought-site #progressChart,
body.forethought-site #mathProgressChart,
body.forethought-site #ethicsProgressChart,
body.forethought-site #insightsTrendChart,
body.forethought-site #marketDetailChart,
body.forethought-site .mini-graph-svg {
  border: 1px solid var(--nm-line);
  border-radius: 12px;
  background-color: #f5f5f2;
  background-image:
    linear-gradient(rgba(149, 152, 152, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 152, 152, 0.18) 1px, transparent 1px);
  background-size: 52px 52px;
}

body.forethought-site .forethought-intro-lines path,
body.forethought-site .parfit-route-line,
body.forethought-site .parfit-lattice-line {
  stroke: var(--nm-signal);
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.forethought-site .forethought-intro-lines path {
  stroke-dasharray: 14 10;
  animation: forethoughtLineSweep 12s linear 1 forwards;
}

body.forethought-site .forethought-intro-lines path:nth-child(2) { animation-duration: 13.5s; }
body.forethought-site .forethought-intro-lines path:nth-child(3) { animation-duration: 11.2s; }
body.forethought-site .forethought-intro-lines path:nth-child(4) { animation-duration: 14.6s; }
body.forethought-site .forethought-intro-lines path:nth-child(5) { animation-duration: 10.4s; }

body.forethought-site .layout-cluster,
body.forethought-site .sep-foundation-card,
body.forethought-site .wre-sep-grid article {
  background: #f4f4f1;
  border-color: var(--nm-line);
}

@keyframes forethoughtLineSweep {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -240;
  }
}

@media (max-width: 860px) {
  body.forethought-site .section-head {
    padding-left: 0.65rem;
    margin-bottom: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.forethought-site .forethought-intro-lines path {
    animation: none !important;
  }
}

/*
  Global consistency pass:
  unify typography + secondary color surfaces/text across all pages/components.
*/
body.forethought-site {
  --nm-font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nm-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Garamond, serif;
  --nm-secondary-bg: #f2f4f1;
  --nm-secondary-bg-hover: #e7ebe6;
  --nm-secondary-border: #cbd3cc;
  --nm-secondary-text: #4f5754;
}

body.forethought-site,
body.forethought-site button,
body.forethought-site input,
body.forethought-site textarea,
body.forethought-site select,
body.forethought-site option {
  font-family: var(--nm-font-sans);
}

body.forethought-site h1,
body.forethought-site h2,
body.forethought-site h3,
body.forethought-site h4,
body.forethought-site h5,
body.forethought-site h6,
body.forethought-site .brand,
body.forethought-site .wre-title,
body.forethought-site .auth-title,
body.forethought-site .signup-onboarding-title,
body.forethought-site .forethought-podcast-link,
body.forethought-site .forethought-footer-nav a,
body.forethought-site .layout-cluster h3 {
  font-family: var(--nm-font-display);
}

body.forethought-site .hint,
body.forethought-site .status-line,
body.forethought-site .metric-label,
body.forethought-site .field-label,
body.forethought-site .auth-subtitle,
body.forethought-site .subtitle,
body.forethought-site .empty-note,
body.forethought-site .counterpart-meta .chip,
body.forethought-site .score-grid span,
body.forethought-site .pledge-registry-meta,
body.forethought-site .featured-top-market-stats {
  color: var(--nm-muted) !important;
}

body.forethought-site .btn-secondary,
body.forethought-site .btn-ghost,
body.forethought-site .auth-btn.ghost,
body.forethought-site .auth-chip,
body.forethought-site .hero-pills span,
body.forethought-site .chip,
body.forethought-site .chip-filter,
body.forethought-site .category-tag,
body.forethought-site .multi-pill,
body.forethought-site .choice-share,
body.forethought-site .detail-share,
body.forethought-site .article-prop-tag,
body.forethought-site .normative-source-strip a,
body.forethought-site .featured-market-chip,
body.forethought-site .featured-top-button,
body.forethought-site .featured-range-controls button,
body.forethought-site .score-pill,
body.forethought-site .attendance-policy-copy {
  background: var(--nm-secondary-bg) !important;
  border-color: var(--nm-secondary-border) !important;
  color: var(--nm-secondary-text) !important;
}

body.forethought-site .btn-secondary:hover,
body.forethought-site .btn-secondary:focus-visible,
body.forethought-site .btn-ghost:hover,
body.forethought-site .btn-ghost:focus-visible,
body.forethought-site .auth-btn.ghost:hover,
body.forethought-site .auth-btn.ghost:focus-visible,
body.forethought-site .featured-top-button:hover,
body.forethought-site .featured-top-button:focus-visible,
body.forethought-site .featured-range-controls button:hover,
body.forethought-site .featured-range-controls button:focus-visible {
  background: var(--nm-secondary-bg-hover) !important;
  border-color: var(--nm-secondary-border) !important;
  color: var(--nm-ink) !important;
}

body.forethought-site .field-row input,
body.forethought-site .field-row textarea,
body.forethought-site .field-row select,
body.forethought-site .auth-field input,
body.forethought-site .auth-field textarea,
body.forethought-site .auth-field select,
body.forethought-site .search-wrap input,
body.forethought-site .attendance-modal-dialog input,
body.forethought-site .attendance-modal-dialog textarea,
body.forethought-site .attendance-modal-dialog select {
  border-color: var(--nm-secondary-border) !important;
  color: var(--nm-ink) !important;
}

body.forethought-site .field-row input::placeholder,
body.forethought-site .field-row textarea::placeholder,
body.forethought-site .auth-field input::placeholder,
body.forethought-site .auth-field textarea::placeholder,
body.forethought-site .attendance-modal-dialog input::placeholder {
  color: #8b918d !important;
}

body.forethought-site .featured-range-controls button.is-active {
  background: var(--nm-primary) !important;
  border-color: var(--nm-primary) !important;
  color: #ffffff !important;
}

/*
  Forethought-inspired visual refresh (site-wide):
  - cleaner editorial navigation rhythm
  - unified panel/card surfaces
  - consistent typography hierarchy
  - coherent chart + graphic treatment
*/
body.forethought-site {
  --nm-bg: #ffffff;
  --nm-surface: #f6f5f0;
  --nm-surface-soft: #efeee8;
  --nm-line: #d5d3c9;
  --nm-line-strong: #c3c1b8;
  --nm-ink: #2a2826;
  --nm-muted: #5f615b;
  --nm-primary: #222a33;
  --nm-primary-hover: #141a21;
  --nm-signal: #ff6235;
  --nm-success: #2e7555;
  --nm-danger: #ab4758;
  background: var(--nm-bg);
  color: var(--nm-ink);
}

body.forethought-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(130, 132, 127, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 132, 127, 0.3) 1px, transparent 1px);
  background-size: 52px 52px;
}

body.forethought-site .container,
body.forethought-site main,
body.forethought-site footer {
  position: relative;
  z-index: 1;
}

body.forethought-site .site-header,
body.forethought-site .wre-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 10px 26px rgba(31, 36, 39, 0.05);
}

body.forethought-site .site-header,
body.forethought-site .wre-topbar,
body.forethought-site .wre-topbar-inner {
  border-bottom: 1px solid var(--nm-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(120%) blur(4px);
}

body.forethought-site main [id],
body.forethought-site section[id],
body.forethought-site article[id],
body.forethought-site aside[id],
body.forethought-site .panel[id] {
  scroll-margin-top: 118px;
}

body.forethought-site .header-inner {
  min-height: 88px;
}

body.forethought-site h1,
body.forethought-site h2,
body.forethought-site h3,
body.forethought-site h4,
body.forethought-site h5,
body.forethought-site h6,
body.forethought-site .brand,
body.forethought-site .wre-brand,
body.forethought-site .wre-title,
body.forethought-site .auth-title,
body.forethought-site .forethought-podcast-link,
body.forethought-site .forethought-footer-nav a {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Garamond, serif;
  font-weight: 500;
  letter-spacing: -0.003em;
  color: var(--nm-ink);
}

body.forethought-site p,
body.forethought-site li,
body.forethought-site label,
body.forethought-site .hint,
body.forethought-site .lead,
body.forethought-site .subtitle,
body.forethought-site .auth-subtitle {
  color: var(--nm-muted);
}

body.forethought-site .section-head {
  border-left: 2px solid var(--nm-signal);
  padding-left: 0.92rem;
  margin-bottom: 1.1rem;
}

body.forethought-site .section-head .eyebrow,
body.forethought-site .eyebrow {
  color: #d66545;
  letter-spacing: 0.14em;
}

body.forethought-site .section-head h2 {
  font-size: clamp(1.8rem, 3.45vw, 3rem);
  line-height: 1.08;
}

body.forethought-site main#main-content {
  padding-top: 2.4rem;
}

body.forethought-site .panel,
body.forethought-site .card,
body.forethought-site .hero-main,
body.forethought-site .hero-card,
body.forethought-site .auth-card,
body.forethought-site .auth-panel,
body.forethought-site .profile-card,
body.forethought-site .profile-metric,
body.forethought-site .publication-card,
body.forethought-site .market-card,
body.forethought-site .ticket,
body.forethought-site .detail-overview-card,
body.forethought-site .detail-outcome-card,
body.forethought-site .detail-theory-item,
body.forethought-site .detail-context-block,
body.forethought-site .detail-activity-block,
body.forethought-site .wre-hero,
body.forethought-site .wre-panel,
body.forethought-site .wre-workspace-board,
body.forethought-site .wre-module-hero,
body.forethought-site .summary-row,
body.forethought-site .recommendation-card,
body.forethought-site .case-actions,
body.forethought-site .confidence-wrap,
body.forethought-site .reflection-timer,
body.forethought-site .choice-option,
body.forethought-site .prop-group,
body.forethought-site .prop-overall,
body.forethought-site .prop-picker-group,
body.forethought-site .comparison-card-mini,
body.forethought-site .diagram-card,
body.forethought-site .normative-hero,
body.forethought-site .normative-toc,
body.forethought-site .guardrail-tool,
body.forethought-site .guardrail-result {
  background: var(--nm-surface);
  border: 1px solid var(--nm-line);
  box-shadow: none;
  border-radius: 14px;
}

body.forethought-site .publication-hero,
body.forethought-site .wre-hero,
body.forethought-site .wre-module-hero,
body.forethought-site .normative-hero,
body.forethought-site .forethought-intro-card {
  position: relative;
  overflow: hidden;
}

body.forethought-site .publication-hero::after,
body.forethought-site .wre-hero::after,
body.forethought-site .wre-module-hero::after,
body.forethought-site .normative-hero::after,
body.forethought-site .forethought-intro-card::after {
  content: "";
  position: absolute;
  left: 56%;
  right: -18%;
  bottom: -38%;
  height: 60%;
  pointer-events: none;
  opacity: 0.2;
  transform: skewY(-14deg);
  background:
    repeating-linear-gradient(
      100deg,
      rgba(255, 98, 53, 0.48) 0 2px,
      transparent 2px 24px
    );
}

body.forethought-site .main-nav a,
body.forethought-site .top-nav a,
body.forethought-site .wre-nav a {
  color: #4f524d;
  font-weight: 500;
}

body.forethought-site .nav-dropdown {
  position: relative;
}

body.forethought-site .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

body.forethought-site .nav-dropdown-menu {
  display: grid;
  gap: 0.3rem;
}

@media (min-width: 940px) {
  body.forethought-site .header-inner {
    align-items: center;
    gap: 1.4rem;
  }

  body.forethought-site .brand {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    line-height: 0;
    white-space: nowrap;
    transform: none;
  }

  body.forethought-site .header-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.9rem;
  }

  body.forethought-site .main-nav,
  body.forethought-site .top-nav,
  body.forethought-site .wre-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.2rem;
  }

  body.forethought-site .main-nav a:not(.nav-pill),
  body.forethought-site .main-nav .nav-dropdown > .nav-dropdown-trigger,
  body.forethought-site .top-nav a,
  body.forethought-site .top-nav .nav-dropdown > .nav-dropdown-trigger,
  body.forethought-site .wre-nav .nav-dropdown > .nav-dropdown-trigger,
  body.forethought-site .wre-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    padding: 0.2rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #4b4f4a;
    font-size: 1.02rem;
  }

  body.forethought-site .main-nav a:not(.nav-pill)::after,
  body.forethought-site .main-nav .nav-dropdown > .nav-dropdown-trigger::after,
  body.forethought-site .top-nav a::after,
  body.forethought-site .top-nav .nav-dropdown > .nav-dropdown-trigger::after,
  body.forethought-site .wre-nav .nav-dropdown > .nav-dropdown-trigger::after,
  body.forethought-site .wre-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.18rem;
    height: 1px;
    background: var(--nm-signal);
    transform: scaleX(0);
    transform-origin: 50% 50%;
    transition: transform 0.2s ease;
  }

  body.forethought-site .main-nav a:not(.nav-pill):hover::after,
  body.forethought-site .main-nav a:not(.nav-pill):focus-visible::after,
  body.forethought-site .main-nav a:not(.nav-pill)[aria-current="page"]::after,
  body.forethought-site .main-nav .nav-dropdown:hover > .nav-dropdown-trigger::after,
  body.forethought-site .main-nav .nav-dropdown:focus-within > .nav-dropdown-trigger::after,
  body.forethought-site .top-nav a:hover::after,
  body.forethought-site .top-nav a:focus-visible::after,
  body.forethought-site .top-nav a[aria-current="page"]::after,
  body.forethought-site .top-nav .nav-dropdown:hover > .nav-dropdown-trigger::after,
  body.forethought-site .top-nav .nav-dropdown:focus-within > .nav-dropdown-trigger::after,
  body.forethought-site .wre-nav a:hover::after,
  body.forethought-site .wre-nav a:focus-visible::after,
  body.forethought-site .wre-nav a[aria-current="page"]::after,
  body.forethought-site .wre-nav .nav-dropdown:hover > .nav-dropdown-trigger::after,
  body.forethought-site .wre-nav .nav-dropdown:focus-within > .nav-dropdown-trigger::after {
    transform: scaleX(1);
  }

  body.forethought-site .main-nav a:not(.nav-pill):hover,
  body.forethought-site .main-nav a:not(.nav-pill):focus-visible,
  body.forethought-site .main-nav a:not(.nav-pill)[aria-current="page"],
  body.forethought-site .main-nav .nav-dropdown:hover > .nav-dropdown-trigger,
  body.forethought-site .main-nav .nav-dropdown:focus-within > .nav-dropdown-trigger,
  body.forethought-site .top-nav a:hover,
  body.forethought-site .top-nav a:focus-visible,
  body.forethought-site .top-nav a[aria-current="page"],
  body.forethought-site .top-nav .nav-dropdown:hover > .nav-dropdown-trigger,
  body.forethought-site .top-nav .nav-dropdown:focus-within > .nav-dropdown-trigger,
  body.forethought-site .wre-nav a:hover,
  body.forethought-site .wre-nav a:focus-visible,
  body.forethought-site .wre-nav a[aria-current="page"],
  body.forethought-site .wre-nav .nav-dropdown:hover > .nav-dropdown-trigger,
  body.forethought-site .wre-nav .nav-dropdown:focus-within > .nav-dropdown-trigger {
    color: var(--nm-ink) !important;
  }

  body.forethought-site .main-nav .nav-dropdown,
  body.forethought-site .top-nav .nav-dropdown,
  body.forethought-site .wre-nav .nav-dropdown {
    display: inline-flex;
    align-items: center;
  }

  body.forethought-site .main-nav .nav-dropdown-menu,
  body.forethought-site .top-nav .nav-dropdown-menu,
  body.forethought-site .wre-nav .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.18rem);
    left: 50%;
    z-index: 90;
    min-width: 214px;
    padding: 0.48rem;
    border: 1px solid var(--nm-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(25, 31, 38, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  }

  body.forethought-site .main-nav .nav-dropdown:hover .nav-dropdown-menu,
  body.forethought-site .main-nav .nav-dropdown:focus-within .nav-dropdown-menu,
  body.forethought-site .top-nav .nav-dropdown:hover .nav-dropdown-menu,
  body.forethought-site .top-nav .nav-dropdown:focus-within .nav-dropdown-menu,
  body.forethought-site .wre-nav .nav-dropdown:hover .nav-dropdown-menu,
  body.forethought-site .wre-nav .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  body.forethought-site .main-nav .nav-dropdown-menu a,
  body.forethought-site .top-nav .nav-dropdown-menu a,
  body.forethought-site .wre-nav .nav-dropdown-menu a {
    min-height: auto;
    justify-content: flex-start;
    padding: 0.62rem 0.72rem !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: transparent !important;
    font-size: 0.96rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.forethought-site .main-nav .nav-dropdown-menu a::after,
  body.forethought-site .top-nav .nav-dropdown-menu a::after,
  body.forethought-site .wre-nav .nav-dropdown-menu a::after {
    display: none;
  }

  body.forethought-site .main-nav .nav-dropdown-menu a:hover,
  body.forethought-site .main-nav .nav-dropdown-menu a:focus-visible,
  body.forethought-site .top-nav .nav-dropdown-menu a:hover,
  body.forethought-site .top-nav .nav-dropdown-menu a:focus-visible,
  body.forethought-site .wre-nav .nav-dropdown-menu a:hover,
  body.forethought-site .wre-nav .nav-dropdown-menu a:focus-visible {
    border-color: var(--nm-line) !important;
    background: #f4f3ee !important;
    color: var(--nm-ink) !important;
  }

  body.forethought-site .auth-controls {
    display: flex;
    align-items: center;
    align-self: center;
    flex-wrap: nowrap;
    gap: 0.66rem;
    margin-left: 0.2rem;
  }

  body.forethought-site .auth-link,
  body.forethought-site .auth-signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    line-height: 1;
    white-space: nowrap;
    padding: 0 0.94rem;
    font-size: 0.98rem;
    font-weight: 600;
  }

  body.forethought-site .auth-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    line-height: 1;
    white-space: nowrap;
    padding: 0 0.72rem;
  }

  body.forethought-site .main-nav a.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    line-height: 1;
    white-space: nowrap;
    padding: 0 0.86rem !important;
  }
}

@media (max-width: 939px) {
  body.forethought-site .main-nav .nav-dropdown,
  body.forethought-site .top-nav .nav-dropdown,
  body.forethought-site .wre-nav .nav-dropdown {
    display: grid;
    gap: 0.28rem;
    width: 100%;
  }

  body.forethought-site .main-nav .nav-dropdown > .nav-dropdown-trigger,
  body.forethought-site .top-nav .nav-dropdown > .nav-dropdown-trigger,
  body.forethought-site .wre-nav .nav-dropdown > .nav-dropdown-trigger {
    justify-content: flex-start;
  }

  body.forethought-site .main-nav .nav-dropdown-menu,
  body.forethought-site .top-nav .nav-dropdown-menu,
  body.forethought-site .wre-nav .nav-dropdown-menu {
    gap: 0.18rem;
    padding-left: 0.9rem;
  }
}

body.forethought-site .brand,
body.forethought-site .wre-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-width: min(21vw, 244px);
}

body.forethought-site .brand img,
body.forethought-site .wre-brand img {
  display: block;
  width: auto;
  max-width: min(21vw, 244px);
  height: clamp(30px, 2.95vw, 42px);
  object-fit: contain;
}

body.forethought-site .main-nav a.nav-pill {
  border: 1px solid var(--nm-line-strong) !important;
  border-radius: 14px !important;
  padding: 0.55rem 0.86rem !important;
  background: #f3f2ec !important;
  color: #434741 !important;
}

body.forethought-site .main-nav a.nav-pill:hover,
body.forethought-site .main-nav a.nav-pill:focus-visible {
  background: #ecebe4 !important;
  border-color: #b9b7ad !important;
  color: var(--nm-ink) !important;
}

body.forethought-site .btn,
body.forethought-site .auth-btn,
body.forethought-site button {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.004em;
}

body.forethought-site .btn-primary,
body.forethought-site .auth-btn:not(.ghost),
body.forethought-site button[type="submit"] {
  background: var(--nm-primary);
  border-color: var(--nm-primary);
  color: #ffffff;
}

body.forethought-site .btn-primary:hover,
body.forethought-site .btn-primary:focus-visible,
body.forethought-site .auth-btn:not(.ghost):hover,
body.forethought-site .auth-btn:not(.ghost):focus-visible,
body.forethought-site button[type="submit"]:hover,
body.forethought-site button[type="submit"]:focus-visible {
  background: var(--nm-primary-hover);
  border-color: var(--nm-primary-hover);
}

body.forethought-site .btn-secondary,
body.forethought-site .btn-ghost,
body.forethought-site .auth-btn.ghost {
  background: var(--nm-surface-soft);
  border-color: var(--nm-line-strong);
  color: #494d48;
}

body.forethought-site .btn-secondary:hover,
body.forethought-site .btn-secondary:focus-visible,
body.forethought-site .btn-ghost:hover,
body.forethought-site .btn-ghost:focus-visible,
body.forethought-site .auth-btn.ghost:hover,
body.forethought-site .auth-btn.ghost:focus-visible {
  background: #e8e7e0;
  border-color: #b7b5ac;
  color: var(--nm-ink);
}

body.forethought-site input,
body.forethought-site textarea,
body.forethought-site select {
  background: #ffffff;
  border: 1px solid var(--nm-line-strong);
  color: var(--nm-ink);
}

body.forethought-site input::placeholder,
body.forethought-site textarea::placeholder {
  color: #8d9088;
}

body.forethought-site .forethought-newsletter-row input {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0.2rem 0;
}

body.forethought-site .forethought-newsletter-row input:focus-visible {
  outline: none;
}

body.forethought-site .featured-market-chart,
body.forethought-site #featuredMarketChart,
body.forethought-site #deliberationChart,
body.forethought-site #progressChart,
body.forethought-site #mathProgressChart,
body.forethought-site #ethicsProgressChart,
body.forethought-site #insightsTrendChart,
body.forethought-site #detailTrendChart,
body.forethought-site .comparison-chart,
body.forethought-site .progress-chart,
body.forethought-site .deliberation-chart,
body.forethought-site .mini-graph-svg {
  background-color: #f8f7f2;
  background-image:
    linear-gradient(rgba(143, 145, 139, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 145, 139, 0.24) 1px, transparent 1px);
  background-size: 48px 48px;
  border: 1px solid var(--nm-line);
  border-radius: 12px;
}

body.forethought-site .prop-copy .prop-title,
body.forethought-site .prop-picker-title,
body.forethought-site .market-title,
body.forethought-site .detail-question,
body.forethought-site .profile-metric .value,
body.forethought-site .stat-value {
  color: var(--nm-ink) !important;
}

body.forethought-site .market-label,
body.forethought-site .market-sub,
body.forethought-site .prop-note,
body.forethought-site .insights-filter-label,
body.forethought-site .trend-meta,
body.forethought-site .comparison-note,
body.forethought-site .profile-metric .label {
  color: var(--nm-muted) !important;
}

body.forethought-site .article-prop-tag,
body.forethought-site .hero-pills span,
body.forethought-site .chip-filter,
body.forethought-site .category-tag,
body.forethought-site .multi-pill,
body.forethought-site .choice-share,
body.forethought-site .detail-share,
body.forethought-site .normative-source-strip a {
  background: var(--nm-surface-soft) !important;
  border-color: var(--nm-line-strong) !important;
  color: #4f534e !important;
}

body.forethought-site .forethought-footer,
body.forethought-site .site-footer {
  background: #eeede8;
  border-top: 1px solid var(--nm-line);
}

@media (max-width: 900px) {
  body.forethought-site::before {
    opacity: 0.12;
    background-size: 40px 40px;
  }

  body.forethought-site .section-head h2 {
    font-size: clamp(1.5rem, 6vw, 2.15rem);
  }

  body.forethought-site .publication-hero::after,
  body.forethought-site .wre-hero::after,
  body.forethought-site .wre-module-hero::after,
  body.forethought-site .normative-hero::after,
  body.forethought-site .forethought-intro-card::after {
    left: 40%;
    right: -30%;
    bottom: -42%;
    opacity: 0.16;
  }
}

/*
  Secondary palette normalization:
  keep all secondary UI tones in a muted editorial range and avoid saturated
  semantic colors that clash with the site's core Forethought-like language.
*/
body.forethought-site {
  --nm-secondary-bg: #f3f2ec;
  --nm-secondary-bg-hover: #ebe9e1;
  --nm-secondary-border: #c8c4b8;
  --nm-secondary-text: #4d524c;
  --nm-yes: #4f6a5e;
  --nm-yes-soft: #eef2ef;
  --nm-no: #725860;
  --nm-no-soft: #f2ecee;
}

body.forethought-site .featured-price.yes {
  border-color: #bccac3 !important;
  background: var(--nm-yes-soft) !important;
  color: var(--nm-yes) !important;
}

body.forethought-site .featured-price.no {
  border-color: #cdbec2 !important;
  background: var(--nm-no-soft) !important;
  color: var(--nm-no) !important;
}

body.forethought-site .fmc-yes-line,
body.forethought-site .fmc-yes-dot,
body.forethought-site .fmc-yes-hover-dot {
  stroke: var(--nm-yes) !important;
  fill: var(--nm-yes) !important;
}

body.forethought-site .fmc-no-line,
body.forethought-site .fmc-no-dot,
body.forethought-site .fmc-no-hover-dot {
  stroke: var(--nm-no) !important;
  fill: var(--nm-no) !important;
}

body.forethought-site .fmc-grid {
  stroke: rgba(110, 112, 106, 0.26) !important;
}

body.forethought-site .fmc-axis-label,
body.forethought-site .fmc-legend,
body.forethought-site .fmc-hover-label {
  fill: var(--nm-muted) !important;
}

body.forethought-site .fmc-latest-guide,
body.forethought-site .fmc-hover-guide {
  stroke: rgba(87, 91, 84, 0.48) !important;
}

body.forethought-site .sep-link,
body.forethought-site .featured-top-market-link {
  color: var(--nm-muted) !important;
  border-bottom-color: rgba(120, 124, 116, 0.54) !important;
}

body.forethought-site .sep-link:hover,
body.forethought-site .sep-link:focus-visible,
body.forethought-site .featured-top-market-link:hover,
body.forethought-site .featured-top-market-link:focus-visible {
  color: var(--nm-primary) !important;
  border-bottom-color: rgba(47, 61, 83, 0.62) !important;
}

body.forethought-site .featured-market-prompt,
body.forethought-site .featured-market-snapshot,
body.forethought-site .featured-top-label,
body.forethought-site #featuredMarketMeta {
  color: var(--nm-muted) !important;
}

body.forethought-site .bar-yes {
  background: linear-gradient(90deg, #5f7a6e 0%, #4f6a5e 100%) !important;
}

body.forethought-site .bar-no {
  background: linear-gradient(90deg, #83666d 0%, #725860 100%) !important;
}

body.forethought-site .wre-banner {
  background: var(--nm-surface-soft) !important;
  border-color: var(--nm-line-strong) !important;
}

body.forethought-site .wre-banner a {
  color: var(--nm-primary) !important;
}

body.forethought-site .quote-btn.yes strong,
body.forethought-site .feed-side.yes,
body.forethought-site .positions-side.yes,
body.forethought-site .detail-outcome-card.yes h3,
body.forethought-site .detail-outcome-card.yes .detail-share {
  color: var(--nm-yes) !important;
}

body.forethought-site .quote-btn.no strong,
body.forethought-site .feed-side.no,
body.forethought-site .positions-side.no,
body.forethought-site .detail-outcome-card.no h3,
body.forethought-site .detail-outcome-card.no .detail-share {
  color: var(--nm-no) !important;
}

body.forethought-site .detail-outcome-card.yes {
  border-color: #bccac3 !important;
  background: var(--nm-yes-soft) !important;
}

body.forethought-site .detail-outcome-card.no {
  border-color: #cdbec2 !important;
  background: var(--nm-no-soft) !important;
}
