.normative-main {
  display: grid;
  gap: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(46, 93, 136, 0.28);
  outline-offset: 2px;
}

.normative-hero {
  background:
    radial-gradient(95% 120% at 0% 0%, rgba(143, 34, 54, 0.08), transparent 55%),
    #ffffff;
}

.normative-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 0.52rem;
}

.normative-lead {
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
  max-width: 92ch;
}

.normative-source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.normative-source-strip a {
  text-decoration: none;
  border: 1px solid #d5dce5;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  color: #26476e;
  font-weight: 600;
  font-size: 0.84rem;
  background: #f8fafc;
}

.normative-source-strip a:hover,
.normative-source-strip a:focus-visible {
  border-color: #b6c7d9;
  background: #eff5fb;
}

.normative-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.31fr) minmax(0, 0.69fr);
  gap: 0.9rem;
  align-items: start;
}

.normative-toc {
  position: sticky;
  top: 86px;
}

.normative-toc h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.normative-toc ol {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.35rem;
}

.normative-toc a {
  color: #24486f;
  text-decoration: none;
  font-weight: 600;
}

.normative-toc a:hover,
.normative-toc a:focus-visible {
  color: #173652;
  text-decoration: underline;
}

.normative-content {
  display: grid;
  gap: 0.9rem;
}

.explainer-panel h2 {
  margin-bottom: 0.55rem;
}

.explainer-panel h3 {
  margin-top: 0.15rem;
  margin-bottom: 0.34rem;
  font-size: 1.15rem;
}

.comparison-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.55rem 0 0.45rem;
}

.comparison-card-mini {
  border: 1px solid #d8dfe8;
  border-radius: 12px;
  padding: 0.56rem 0.66rem;
  background: #fafcfe;
}

.comparison-card-mini h3 {
  font-size: 1.05rem;
}

.comparison-card-mini ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
}

.diagram-card {
  margin-top: 0.56rem;
  border: 1px solid #d7dee7;
  border-radius: 12px;
  padding: 0.5rem;
  background: #f9fbfd;
}

.normative-svg {
  width: 100%;
  display: block;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: #ffffff;
}

.svg-node {
  fill: #f0f5fb;
  stroke: #b8cadf;
  stroke-width: 1.5;
}

.svg-primary {
  fill: #f7eef1;
  stroke: #d5a6b0;
}

.svg-secondary {
  fill: #f7fafd;
  stroke: #c4d5e7;
}

.svg-node-title {
  fill: #1f3146;
  font-size: 21px;
  font-weight: 700;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.svg-node-sub {
  fill: #4a5d74;
  font-size: 18px;
  font-weight: 600;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.svg-link {
  stroke: #8f2236;
  stroke-width: 2;
  fill: none;
}

.svg-link.dashed {
  stroke-dasharray: 7 7;
}

.svg-axis {
  stroke: #7d91aa;
  stroke-width: 2;
}

.svg-axis-label {
  fill: #51667f;
  font-size: 16px;
  font-weight: 600;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.svg-note {
  fill: #4c5f76;
  font-size: 16px;
  font-weight: 600;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.svg-point {
  stroke: #ffffff;
  stroke-width: 2;
}

.svg-point.p1 {
  fill: #4c7fb8;
}

.svg-point.p2 {
  fill: #a05b63;
}

.svg-point.p3 {
  fill: #7a6eb2;
}

.svg-point.p4 {
  fill: #37869a;
}

.svg-point.p5 {
  fill: #2d8f62;
}

.theory-filter {
  margin: 0.66rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.theory-filter-btn {
  border: 1px solid #cfd9e5;
  border-radius: 999px;
  background: #ffffff;
  color: #4a5e75;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.18rem 0.52rem;
  cursor: pointer;
}

.theory-filter-btn:hover,
.theory-filter-btn:focus-visible {
  background: #f3f7fb;
  border-color: #b9c9da;
}

.theory-filter-btn.is-active {
  color: #ffffff;
  background: #223246;
  border-color: #223246;
}

.theory-table-wrap {
  overflow-x: auto;
}

.theory-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.theory-table th,
.theory-table td {
  border: 1px solid #d8e0ea;
  padding: 0.42rem 0.48rem;
  vertical-align: top;
  text-align: left;
  font-size: 0.88rem;
}

.theory-table th {
  background: #f4f8fc;
  color: #2a3f58;
  font-weight: 700;
}

.theory-table tbody tr {
  background: #ffffff;
}

.theory-table tbody tr.is-hidden {
  display: none;
}

.strategy-chart {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.52rem;
}

.strategy-row {
  border: 1px solid #d8dfe9;
  border-radius: 10px;
  padding: 0.5rem 0.56rem;
  background: #fbfdff;
}

.strategy-row h3 {
  margin-bottom: 0.16rem;
  font-size: 1rem;
}

.strategy-row p {
  margin-bottom: 0.24rem;
}

.strategy-meter {
  position: relative;
  height: 0.72rem;
  border-radius: 999px;
  background: #e8eff6;
  overflow: hidden;
}

.strategy-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #5b8fcb 0%, #2f5f98 100%);
  border-radius: inherit;
  transition: width 0.8s ease;
}

.strategy-row.is-visible .strategy-meter span {
  width: calc(var(--strategy-intensity, 50) * 1%);
}

.strategy-meta {
  margin-top: 0.18rem;
  font-size: 0.8rem;
  color: #5a6e84;
  font-weight: 600;
}

.mind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.mind-card {
  border: 1px solid #d7dfe9;
  border-radius: 12px;
  background: #fafcfe;
  padding: 0.52rem 0.62rem;
}

.mind-card h3 {
  font-size: 1rem;
}

.mind-card ol {
  margin: 0;
  padding-left: 1.03rem;
  display: grid;
  gap: 0.34rem;
}

.protocol-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.protocol-card {
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  background: #f9fcff;
  padding: 0.55rem 0.62rem;
}

.protocol-card h3 {
  font-size: 1rem;
  margin-bottom: 0.22rem;
}

.protocol-card p {
  margin: 0;
  color: #425a75;
}

.guardrail-tool {
  margin-top: 0.56rem;
  border: 1px solid #d8e1eb;
  border-radius: 12px;
  background: #fbfdff;
  padding: 0.62rem;
}

.guardrail-tool .field-row {
  margin-bottom: 0.62rem;
}

.guardrail-result {
  margin-top: 0.58rem;
  border: 1px solid #d3dde9;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.62rem;
}

.guardrail-result h3 {
  margin-bottom: 0.22rem;
}

.guardrail-result p {
  margin-bottom: 0.35rem;
}

.guardrail-result ul {
  margin: 0;
  padding-left: 1.02rem;
  display: grid;
  gap: 0.25rem;
  color: #405872;
}

.guardrail-result.state-caution {
  border-color: #e1c9cf;
  background: #fff7f8;
}

.guardrail-result.state-balanced {
  border-color: #d6dceb;
  background: #f8fbff;
}

.guardrail-result.state-confident {
  border-color: #d3e4d8;
  background: #f7fdf8;
}

.triage-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.triage-card {
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  background: #f9fcff;
  padding: 0.55rem 0.62rem;
}

.triage-card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.triage-card p {
  margin: 0;
  color: #425a75;
}

.triage-tool {
  margin-top: 0.56rem;
  border: 1px solid #d8e1eb;
  border-radius: 12px;
  background: #fbfdff;
  padding: 0.62rem;
}

.triage-tool .field-row {
  margin-bottom: 0.62rem;
}

.triage-result {
  margin-top: 0.58rem;
  border: 1px solid #d3dde9;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.62rem;
}

.triage-result h3 {
  margin-bottom: 0.22rem;
}

.triage-result p {
  margin-bottom: 0.35rem;
}

.triage-result ul {
  margin: 0;
  padding-left: 1.02rem;
  display: grid;
  gap: 0.25rem;
  color: #405872;
}

.triage-result.state-caution {
  border-color: #e1c9cf;
  background: #fff7f8;
}

.triage-result.state-balanced {
  border-color: #d6dceb;
  background: #f8fbff;
}

.triage-result.state-confident {
  border-color: #d3e4d8;
  background: #f7fdf8;
}

@media (max-width: 1060px) {
  .normative-layout {
    grid-template-columns: 1fr;
  }

  .normative-toc {
    position: static;
  }
}

@media (max-width: 780px) {
  .comparison-grid-2,
  .mind-grid,
  .protocol-grid,
  .triage-grid {
    grid-template-columns: 1fr;
  }

  .theory-filter {
    gap: 0.3rem;
  }

  .theory-filter-btn {
    font-size: 0.74rem;
  }
}

/* Forethought-inspired normative explainer styling */
.normative-hero {
  background: #ffffff;
}

.normative-source-strip a {
  border-color: #d7e0ea;
  background: #f7f9fc;
  color: #3e4f67;
  border-radius: 10px;
  font-weight: 600;
}

.normative-source-strip a:hover,
.normative-source-strip a:focus-visible {
  border-color: #c7d2e0;
  background: #eef3fb;
}

.normative-toc a {
  color: #3e4f67;
}

.normative-toc a:hover,
.normative-toc a:focus-visible {
  color: #1d3557;
}

.comparison-card-mini,
.diagram-card,
.strategy-row,
.mind-card,
.protocol-card,
.triage-card,
.guardrail-tool,
.triage-tool,
.guardrail-result {
  border-color: #dfe6ee;
  background: #f7f9fc;
  box-shadow: 0 3px 12px rgba(27, 36, 50, 0.05);
}

.theory-filter-btn.is-active {
  background: #1d3557;
  border-color: #1d3557;
}

.theory-table th {
  background: #f1f5fb;
  color: #31455e;
}

.theory-table th,
.theory-table td,
.theory-table {
  border-color: #dfe6ee;
}

.normative-svg {
  border-color: #dfe6ee;
}

.svg-node {
  fill: #f3f6fb;
  stroke: #c8d3e2;
}

.svg-primary {
  fill: #edf3ff;
  stroke: #b9c9e2;
}

.svg-secondary {
  fill: #f7f9fc;
  stroke: #ccd6e4;
}

.svg-link {
  stroke: #1f4dd8;
}

/* Home-style alignment (Forethought-like) */
:root {
  --home-bg: #efefea;
  --home-surface: #f7f7f4;
  --home-line: #dfe2de;
  --home-line-strong: #d2d8d3;
  --home-ink: #2f2d2b;
  --home-muted: #5d615f;
  --home-accent: #2f3d53;
}

body {
  background: var(--home-bg);
  color: var(--home-ink);
}

h1,
h2,
h3,
h4,
.normative-hero h1,
.explainer-panel h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Garamond, serif;
  font-weight: 500;
  color: var(--home-ink);
}

.normative-lead,
.normative-main p,
.svg-node-sub,
.svg-note {
  color: var(--home-muted);
}

.normative-hero,
.panel,
.comparison-card-mini,
.diagram-card,
.strategy-row,
.mind-card,
.protocol-card,
.triage-card,
.guardrail-tool,
.triage-tool,
.guardrail-result,
.triage-result,
.normative-toc {
  background: var(--home-surface);
  border-color: var(--home-line);
  box-shadow: none;
}

.normative-source-strip a {
  border-color: var(--home-line-strong);
  background: #f1f2ef;
  color: #4b5150;
  border-radius: 8px;
}

.normative-source-strip a:hover,
.normative-source-strip a:focus-visible {
  background: #ebece9;
  border-color: #c5cbc6;
  color: #37424a;
}

.normative-toc a {
  color: #4d5350;
}

.normative-toc a:hover,
.normative-toc a:focus-visible {
  color: #2f3d53;
}

.theory-filter-btn {
  border-color: var(--home-line-strong);
  border-radius: 8px;
  color: #4d5350;
  font-weight: 600;
}

.theory-filter-btn.is-active {
  background: var(--home-accent);
  border-color: var(--home-accent);
}

.theory-table th {
  background: #f1f2ef;
  color: #434949;
}

.theory-table th,
.theory-table td,
.theory-table {
  border-color: var(--home-line);
}

.svg-link {
  stroke: #ff5f35;
}

.svg-node {
  fill: #f3f3f0;
  stroke: #ced4d0;
}

.svg-primary {
  fill: #f1f2ef;
  stroke: #cfd4cf;
}

.svg-secondary {
  fill: #f5f6f3;
  stroke: #d5dbd6;
}
