/*
 * Why Systems Thinking Matters in a Complex World
 * Visual renewal v2 — 2026-09-07
 *
 * Dependencies:
 * 1. dr-theme-tokens.css
 * 2. dr-hub-depth.css
 *
 * No local hub color registry. ADR-009 tokens are authoritative.
 */

.dr-post--systems-thinking-complex-world {
  --dr-depth-bg-image: url("https://darjarihla.com/wp-content/uploads/2026/09/Systems-Thinking-Deep-World-Background-2026-09-07.png");
  --dr-depth-bg-position: 50% 46%;

  color: var(--dr-text-on-dark);
  position: relative;
  width: min(1500px, 100%);
  margin-inline: auto;
  padding: clamp(18px, 2.6vw, 38px);
}

.dr-post--systems-thinking-complex-world,
.dr-post--systems-thinking-complex-world * {
  box-sizing: border-box;
}

.dr-systems-hero {
  width: min(1320px, 100%);
  margin: clamp(20px, 4vw, 64px) auto 28px;
  padding: clamp(26px, 5vw, 72px);
  border-radius: clamp(18px, 2vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  overflow: hidden;
  position: relative;
}

.dr-systems-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--dr-accent-3) 11%, transparent), transparent 32%),
    linear-gradient(115deg, color-mix(in srgb, var(--dr-accent) 8%, transparent), transparent 45%);
}

.dr-systems-hero__copy,
.dr-systems-surface-structure {
  position: relative;
  z-index: 1;
}

.dr-systems-eyebrow,
.dr-systems-micro {
  margin: 0 0 14px;
  color: var(--dr-accent-3);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.dr-systems-hero h1 {
  margin: 0;
  max-width: 900px;
  color: var(--dr-text-on-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 6.3vw, 6.7rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.dr-systems-hero h1::after {
  content: "";
  display: block;
  width: min(230px, 42%);
  height: 1px;
  margin-top: 24px;
  background: linear-gradient(90deg, var(--dr-accent), var(--dr-accent-2), transparent);
}

.dr-systems-hero__lead {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--dr-text-on-dark-muted);
  font-size: clamp(1.06rem, 1.45vw, 1.32rem);
  line-height: 1.72;
}

.dr-systems-hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.dr-systems-hero__signals span {
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--dr-accent-3) 18%, transparent);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--dr-text-on-dark-muted);
  font-size: .82rem;
}

.dr-systems-hero__signals strong {
  color: var(--dr-accent-3);
  font-weight: 600;
}

.dr-systems-surface-structure {
  min-height: 430px;
  border: 1px solid color-mix(in srgb, var(--dr-accent-3) 18%, transparent);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
    color-mix(in srgb, var(--dr-shell-bg-dark) 82%, transparent);
}

.dr-systems-surface-structure__surface,
.dr-systems-surface-structure__depth {
  position: relative;
  height: 50%;
  padding: 24px;
}

.dr-systems-surface-structure__surface {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--dr-accent-2) 8%, transparent), transparent),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--dr-accent-3) 12%, transparent), transparent 52%);
}

.dr-systems-surface-structure__depth {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--dr-accent) 12%, transparent), transparent 52%),
    repeating-linear-gradient(60deg, transparent 0 40px, color-mix(in srgb, var(--dr-accent) 8%, transparent) 41px 42px),
    repeating-linear-gradient(-60deg, transparent 0 40px, color-mix(in srgb, var(--dr-accent-2) 8%, transparent) 41px 42px);
}

.dr-systems-surface-structure__surface > span,
.dr-systems-surface-structure__depth > span {
  position: relative;
  z-index: 2;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dr-accent-3);
}

.dr-systems-surface-structure__surface i,
.dr-systems-surface-structure__depth b {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dr-accent-3);
  box-shadow:
    0 0 0 7px color-mix(in srgb, var(--dr-accent-3) 8%, transparent),
    0 0 24px color-mix(in srgb, var(--dr-accent-3) 45%, transparent);
}

.dr-systems-surface-structure__surface i:nth-of-type(1) { left: 18%; top: 58%; }
.dr-systems-surface-structure__surface i:nth-of-type(2) { left: 42%; top: 35%; background: var(--dr-accent); }
.dr-systems-surface-structure__surface i:nth-of-type(3) { left: 65%; top: 62%; background: var(--dr-accent-2); }
.dr-systems-surface-structure__surface i:nth-of-type(4) { left: 82%; top: 38%; }

.dr-systems-surface-structure__depth b:nth-of-type(1) { left: 14%; top: 35%; background: var(--dr-accent); }
.dr-systems-surface-structure__depth b:nth-of-type(2) { left: 31%; top: 65%; background: var(--dr-accent-2); }
.dr-systems-surface-structure__depth b:nth-of-type(3) { left: 48%; top: 42%; }
.dr-systems-surface-structure__depth b:nth-of-type(4) { left: 64%; top: 70%; background: var(--dr-accent); }
.dr-systems-surface-structure__depth b:nth-of-type(5) { left: 78%; top: 32%; background: var(--dr-accent-2); }
.dr-systems-surface-structure__depth b:nth-of-type(6) { left: 88%; top: 68%; }

.dr-systems-surface-structure__boundary {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dr-accent), var(--dr-accent-2), transparent);
  box-shadow: 0 0 20px var(--dr-hub-glow);
}

.dr-systems-orientation,
.dr-systems-rank-toc,
.dr-systems-reading {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.dr-systems-orientation {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 18px;
  margin-bottom: 24px;
}

.dr-systems-orientation h2,
.dr-systems-rank-toc h2,
.dr-systems-reading h2,
.dr-systems-reading h3 {
  color: var(--dr-text-on-dark);
  font-family: "Playfair Display", Georgia, serif;
}

.dr-systems-orientation h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.14;
}

.dr-systems-orientation > p:not(.dr-systems-micro) {
  color: var(--dr-text-on-dark-muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.dr-systems-orientation__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.dr-systems-orientation__grid > div {
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--dr-accent-3) 14%, transparent);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.dr-systems-orientation__grid span,
.dr-systems-orientation__grid strong {
  display: block;
}

.dr-systems-orientation__grid span {
  color: var(--dr-accent-3);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dr-systems-orientation__grid strong {
  color: var(--dr-text-on-dark);
  line-height: 1.45;
  font-size: .88rem;
}

.dr-systems-rank-toc {
  margin-top: 24px;
  margin-bottom: 38px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid color-mix(in srgb, var(--dr-accent-3) 16%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--dr-accent) 7%, transparent), rgba(255,255,255,.018)),
    rgba(12,23,31,.68);
  backdrop-filter: blur(14px);
}

.dr-systems-rank-toc h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.dr-systems-toc-note {
  margin: 0 0 20px;
  color: var(--dr-text-on-dark-muted);
}

.dr-systems-rank-toc nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dr-systems-rank-toc li {
  margin: 0;
}

.dr-systems-rank-toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--dr-accent-3) 12%, transparent);
  text-decoration: none;
  color: var(--dr-text-on-dark);
  background: rgba(255,255,255,.018);
}

.dr-systems-rank-toc a:hover,
.dr-systems-rank-toc a:focus-visible {
  border-color: color-mix(in srgb, var(--dr-accent) 44%, transparent);
  background: color-mix(in srgb, var(--dr-accent) 6%, transparent);
}

.dr-systems-rank-toc a span {
  color: var(--dr-accent-3);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .7rem;
}

.dr-systems-reading {
  padding: 0 clamp(4px, 1vw, 12px) 70px;
}

.dr-systems-reading p,
.dr-systems-reading li {
  color: var(--dr-text-on-dark-muted);
  font-size: clamp(1.03rem, 1.18vw, 1.16rem);
  line-height: 1.86;
}

.dr-systems-reading strong {
  color: var(--dr-text-on-dark);
}

.dr-systems-reading a {
  color: var(--dr-accent-3);
  text-underline-offset: .18em;
}

.dr-systems-reading h2 {
  margin: clamp(58px, 7vw, 92px) 0 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  scroll-margin-top: 110px;
}

.dr-systems-reading h2::before {
  content: "";
  display: block;
  width: 90px;
  height: 1px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--dr-accent), var(--dr-accent-2), transparent);
}

.dr-systems-reading h3 {
  margin: 34px 0 12px;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.2;
}

.dr-systems-heading-reset {
  margin-top: 0 !important;
}

.dr-systems-feature-strip,
.dr-systems-split,
.dr-systems-next-grid {
  display: grid;
  gap: 14px;
}

.dr-systems-feature-strip {
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0;
}

.dr-systems-split {
  grid-template-columns: repeat(2, 1fr);
  margin: 28px 0;
}

.dr-systems-next-grid {
  grid-template-columns: repeat(3, 1fr);
}

.dr-systems-feature,
.dr-systems-card,
.dr-systems-diagram,
.dr-systems-practice,
.dr-systems-bridge,
.dr-systems-next,
.dr-systems-signal,
.dr-systems-quote {
  border: 1px solid color-mix(in srgb, var(--dr-accent-3) 14%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--dr-accent) 5%, transparent), rgba(255,255,255,.015)),
    rgba(13,25,34,.70);
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
}

.dr-systems-feature,
.dr-systems-card,
.dr-systems-diagram,
.dr-systems-practice,
.dr-systems-bridge,
.dr-systems-next,
.dr-systems-signal {
  padding: 20px;
}

.dr-systems-feature-label,
.dr-systems-card-kicker,
.dr-systems-section-label {
  color: var(--dr-accent-3);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dr-systems-feature strong {
  display: block;
  color: var(--dr-text-on-dark);
  line-height: 1.5;
}

.dr-systems-card h3 {
  margin-top: 8px;
}

.dr-systems-card p,
.dr-systems-card li {
  font-size: .98rem;
}

.dr-systems-quote {
  margin: 30px 0;
  padding: 24px;
  border-left: 3px solid var(--dr-accent);
}

.dr-systems-quote p {
  margin: 0;
  color: var(--dr-text-on-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 1.65vw, 1.38rem);
  line-height: 1.7;
}

.dr-systems-signal {
  margin: 30px 0;
}

.dr-systems-signal p {
  margin-bottom: 0;
}

.dr-systems-diagram-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.dr-systems-node {
  min-width: 145px;
  flex: 1 1 145px;
  text-align: center;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--dr-accent-3) 18%, transparent);
  background: rgba(255,255,255,.025);
  color: var(--dr-text-on-dark);
}

.dr-systems-arrow {
  color: var(--dr-accent-3);
}

.dr-systems-caption,
.dr-systems-endnote,
.dr-systems-next-card span {
  color: var(--dr-text-on-dark-muted);
}

.dr-systems-next {
  margin-top: 44px;
}

.dr-systems-next-card {
  display: block;
  text-decoration: none;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--dr-accent-3) 13%, transparent);
  background: rgba(255,255,255,.02);
}

.dr-systems-next-card small,
.dr-systems-next-card strong,
.dr-systems-next-card span {
  display: block;
}

.dr-systems-next-card small {
  color: var(--dr-accent-3);
  margin-bottom: 8px;
  font-family: "DM Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.dr-systems-next-card strong {
  color: var(--dr-text-on-dark);
  margin-bottom: 6px;
}

.dr-systems-endnote {
  margin-top: 36px;
  text-align: center;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dr-systems-visual {
  width: min(1280px, calc(100vw - 36px));
  margin: 34px 50% 34px;
  transform: translateX(-50%);
}

.dr-systems-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--dr-accent-3) 16%, transparent);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.dr-systems-visual figcaption {
  margin: 10px auto 0;
  max-width: 1000px;
  color: var(--dr-text-on-dark-muted);
  font-size: .88rem;
  line-height: 1.55;
}

html[data-theme="light"] .dr-post--systems-thinking-complex-world {
  color: var(--dr-text);
}

html[data-theme="light"] .dr-systems-hero h1,
html[data-theme="light"] .dr-systems-orientation h2,
html[data-theme="light"] .dr-systems-rank-toc h2,
html[data-theme="light"] .dr-systems-reading h2,
html[data-theme="light"] .dr-systems-reading h3,
html[data-theme="light"] .dr-systems-reading strong,
html[data-theme="light"] .dr-systems-feature strong,
html[data-theme="light"] .dr-systems-next-card strong {
  color: var(--dr-text-strong);
}

html[data-theme="light"] .dr-systems-hero__lead,
html[data-theme="light"] .dr-systems-orientation > p:not(.dr-systems-micro),
html[data-theme="light"] .dr-systems-reading p,
html[data-theme="light"] .dr-systems-reading li,
html[data-theme="light"] .dr-systems-caption,
html[data-theme="light"] .dr-systems-toc-note,
html[data-theme="light"] .dr-systems-next-card span {
  color: var(--dr-text-muted);
}

html[data-theme="light"] .dr-systems-rank-toc,
html[data-theme="light"] .dr-systems-feature,
html[data-theme="light"] .dr-systems-card,
html[data-theme="light"] .dr-systems-diagram,
html[data-theme="light"] .dr-systems-practice,
html[data-theme="light"] .dr-systems-bridge,
html[data-theme="light"] .dr-systems-next,
html[data-theme="light"] .dr-systems-signal,
html[data-theme="light"] .dr-systems-quote {
  background: rgba(255,255,255,.72);
  box-shadow: var(--dr-shadow-sm);
}

@media (max-width: 980px) {
  .dr-systems-hero {
    grid-template-columns: 1fr;
  }

  .dr-systems-surface-structure {
    min-height: 330px;
  }

  .dr-systems-orientation__grid,
  .dr-systems-feature-strip,
  .dr-systems-next-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .dr-post--systems-thinking-complex-world {
    padding: 12px;
  }

  .dr-systems-hero {
    padding: 24px 18px;
    margin-top: 16px;
  }

  .dr-systems-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4.4rem);
  }

  .dr-systems-surface-structure {
    min-height: 280px;
  }

  .dr-systems-orientation__grid,
  .dr-systems-feature-strip,
  .dr-systems-split,
  .dr-systems-next-grid,
  .dr-systems-rank-toc nav ul {
    grid-template-columns: 1fr;
  }

  .dr-systems-reading {
    padding-bottom: 48px;
  }

  .dr-systems-visual {
    width: calc(100vw - 24px);
    margin-top: 28px;
    margin-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dr-systems-hero *,
  .dr-systems-reading * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
