/* Polycrisis report: restrained editorial extensions to the shared report system. */
.poly-cover .cover-title {
  max-width: 10ch;
  font-size: clamp(3.5rem, 10.2vw, 9.8rem);
  line-height: .84;
}

.poly-cover .cover-title em {
  color: var(--p6);
}

.poly-cover .cover-deg .d15,
.poly-cover .cover-deg .d2,
.poly-cover .cover-deg .d3 {
  color: var(--p6) !important;
  border-color: color-mix(in srgb, var(--p6) 74%, var(--line2));
}

.poly-source-link {
  color: inherit;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 52%, transparent);
}

.poly-source-link::after {
  content: " ↗";
  font-size: .72em;
}

.poly-metric-row {
  margin: 1.7rem 0 2rem;
}

.poly-development-note {
  padding: clamp(4rem, 8vw, 7rem) var(--gut);
  text-align: center;
  border-top: 1px solid var(--line);
}

.poly-development-note > div {
  max-width: 44rem;
  margin: 0 auto;
}

.causality-section {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  color: #f4f2ed;
  background: #07080a;
  border-top: 1px solid color-mix(in srgb, var(--p6) 58%, #24272d);
  border-bottom: 1px solid #24272d;
}

.causality-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 24.9%, rgba(255,255,255,.035) 25% 25.1%, transparent 25.2% 49.9%, rgba(255,255,255,.035) 50% 50.1%, transparent 50.2% 74.9%, rgba(255,255,255,.035) 75% 75.1%, transparent 75.2%),
    linear-gradient(180deg, color-mix(in srgb, var(--p6) 12%, transparent), transparent 38%);
}

.causality-inner {
  position: relative;
}

.causality-kicker {
  margin: 0 0 1.1rem;
  color: color-mix(in srgb, var(--p6) 78%, #fff);
  font: 600 .72rem/1.2 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.causality-title {
  max-width: 11ch;
  margin: 0;
  color: #fff;
  font: 800 clamp(3rem, 7.8vw, 7.4rem)/.86 var(--f-disp);
  letter-spacing: .005em;
  text-transform: uppercase;
}

.causality-lead {
  max-width: 51rem;
  margin: clamp(2rem, 3vw, 3rem) 0 0;
  color: rgba(244,242,237,.78);
  font-size: clamp(1.08rem, 1.55vw, 1.34rem);
  line-height: 1.55;
}

.causal-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(2.8rem, 5vw, 5rem) 0;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.13);
}

.causal-node {
  position: relative;
  min-height: 10rem;
  padding: 1.25rem 1.1rem 1.35rem;
  background: #0b0d11;
}

.causal-node::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -.72rem;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--p6) 80%, #fff);
  background: #07080a;
  font: 600 .9rem/1 var(--f-mono);
}

.causal-node:last-child::after {
  content: none;
}

.causal-node span {
  display: block;
  margin-bottom: 1.4rem;
  color: color-mix(in srgb, var(--p6) 80%, #fff);
  font: 600 .68rem/1 var(--f-mono);
  letter-spacing: .12em;
}

.causal-node b {
  display: block;
  color: #f4f2ed;
  font: 700 clamp(1.15rem, 1.65vw, 1.55rem)/1.08 var(--f-disp);
  text-transform: uppercase;
}

.root-constraint {
  display: grid;
  grid-template-columns: minmax(12rem, .72fr) minmax(0, 1.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-top: clamp(2.5rem, 4vw, 4.2rem);
  padding-top: clamp(1.5rem, 2.5vw, 2.5rem);
  border-top: 2px solid color-mix(in srgb, var(--p6) 72%, #fff);
}

.root-constraint strong {
  color: #fff;
  font: 800 clamp(1.7rem, 3vw, 2.8rem)/.98 var(--f-disp);
  text-transform: uppercase;
}

.root-constraint p {
  margin: 0;
  color: rgba(244,242,237,.84);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.62;
}

@media (max-width: 900px) {
  .poly-cover .cover-title {
    font-size: clamp(3.1rem, 15vw, 6rem);
  }
  .causal-chain {
    grid-template-columns: 1fr;
  }
  .causal-node {
    min-height: 0;
  }
  .causal-node::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: -.72rem;
    transform: translateX(50%);
  }
  .root-constraint {
    grid-template-columns: 1fr;
  }
}

@media print {
  .causality-section {
    color: #111;
    background: #fff;
  }
  .causality-title,
  .causal-node b,
  .root-constraint strong {
    color: #111;
  }
  .causal-node {
    background: #f3f1ec;
  }
  .causality-lead,
  .root-constraint p {
    color: #333;
  }
}
