/* NOR-125 article-only visual system: NorthLedger ivory, ink and sand. */
.phase-finding strong { color: #5e646e; }

.phase-cuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 44px;
  border-block: 1px solid #e2e5ea;
}
.phase-cuts > div { padding: 22px 18px; }
.phase-cuts > div + div { border-left: 1px solid #e2e5ea; }
.phase-cuts strong {
  display: block;
  color: #0d0f12;
  font-size: clamp(27px, 5vw, 40px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  line-height: 1;
}
.phase-cuts span {
  display: block;
  margin-top: 10px;
  color: #5e646e;
  font-size: 12px;
  line-height: 1.5;
}

.phase-explainer {
  margin: 36px 0 48px;
  padding: 29px 0 15px;
  border-block: 1px solid #9ea4b0;
  outline: none;
}
.phase-explainer:focus-visible { outline: 3px solid #5e646e; outline-offset: 5px; }
.phase-explainer-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  gap: 28px;
  align-items: end;
}
.phase-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #5e646e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .11em;
}
.blog-article .phase-explainer h3 {
  margin: 0;
  color: #0d0f12;
  font-size: clamp(22px, 4vw, 31px);
  letter-spacing: -.025em;
  line-height: 1.2;
}
.blog-article .phase-explainer-head p {
  margin: 0;
  color: #5e646e;
  font-size: 14px;
  line-height: 1.6;
}
.phase-figure { margin: 24px 0 0; }
.phase-svg-scroll { overflow-x: auto; padding-bottom: 3px; }
.phase-figure svg {
  display: block;
  width: 100%;
  height: auto;
  background: #f7f8fa;
  border-radius: 7px;
}
.phase-lane {
  fill: none;
  stroke-width: 3;
}
.phase-lane-build { stroke: #6e747e; }
.phase-lane-service { stroke: #107c55; }
.phase-lane-title {
  fill: #5e646e;
  font: 600 10px Inter, system-ui, sans-serif;
  letter-spacing: .11em;
}
.phase-connectors {
  fill: none;
  stroke: #6e747e;
  stroke-width: 1.5;
}
.phase-step circle {
  fill: #f7f8fa;
  stroke: #9ea4b0;
  stroke-width: 1.5;
  transition: fill 320ms ease, stroke 320ms ease;
}
.phase-step text {
  fill: #5e646e;
  font: 600 12px Inter, system-ui, sans-serif;
  text-anchor: middle;
}
.phase-step.is-complete circle { fill: #e2e5ea; stroke: #107c55; }
.phase-step.is-current circle { fill: #9ea4b0; stroke: #5e646e; stroke-width: 3; }
.phase-step.is-current text { fill: #0d0f12; }
.phase-switch {
  fill: none;
  stroke: #5e646e;
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
}
.phase-gate rect { fill: #eaecef; stroke: #5e646e; stroke-width: 1.5; }
.phase-gate text {
  fill: #16191d;
  font: 600 10px Inter, system-ui, sans-serif;
  text-anchor: middle;
  letter-spacing: .07em;
}
.phase-gate .phase-gate-status { fill: #b44343; font-size: 11px; }
.phase-document {
  color: #5e646e;
  transform: translate(120px, 155px);
  transition: transform 650ms cubic-bezier(.22,.8,.25,1);
}
.phase-document rect { fill: #ffffff; stroke: currentColor; stroke-width: 1.6; }
.phase-document path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.phase-state-label {
  fill: #16191d;
  font: 500 13px Inter, system-ui, sans-serif;
}
.phase-explainer[data-motion="running"] .phase-step.is-current circle {
  animation: phase-focus 1.5s ease-in-out infinite;
}
.phase-progress { height: 3px; overflow: hidden; background: #e2e5ea; }
.phase-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: #5e646e;
  transition: width 420ms ease;
}
.phase-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.phase-controls button {
  min-height: 40px;
  padding: 8px 12px;
  color: #0d0f12;
  font: inherit;
  font-size: 13px;
  background: transparent;
  border: 1px solid #9ea4b0;
  border-radius: 5px;
  cursor: pointer;
}
.phase-controls button:hover { background: #eaecef; }
.phase-controls button:focus-visible { outline: 3px solid #5e646e; outline-offset: 3px; }
.phase-controls button:disabled { color: #6e747e; background: #eaecef; cursor: default; }
.phase-counter {
  margin-left: auto;
  color: #5e646e;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.phase-figure figcaption { margin-top: 14px; color: #5e646e; font-size: 13px; line-height: 1.6; }

.phase-state-copy {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e2e5ea;
}
.phase-state-copy li {
  padding: 15px 11px 4px;
  color: #5e646e;
  border-top: 3px solid transparent;
}
.phase-state-copy li.is-current { color: #0d0f12; border-top-color: #5e646e; }
.phase-state-copy strong,
.phase-state-copy span { display: block; }
.phase-state-copy strong { margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
.phase-state-copy span { font-size: 12px; line-height: 1.55; }

.phase-checklist {
  margin: 26px 0 40px;
  padding: 8px 0;
  border-block: 1px solid #e2e5ea;
}
.phase-checklist ol { margin: 0; padding: 0; list-style: none; counter-reset: phase-check; }
.phase-checklist li {
  position: relative;
  min-height: 50px;
  padding: 15px 12px 15px 52px;
  color: #16191d;
  border-bottom: 1px solid #e2e5ea;
  counter-increment: phase-check;
}
.phase-checklist li:last-child { border-bottom: 0; }
.phase-checklist li::before {
  position: absolute;
  top: 14px;
  left: 8px;
  color: #5e646e;
  font-size: 12px;
  font-weight: 600;
  content: counter(phase-check, decimal-leading-zero);
}
.phase-checklist strong { color: #0d0f12; }

#simulation,
[id^="source-"] { scroll-margin-top: 100px; }

@keyframes phase-focus {
  0%, 100% { stroke-width: 2px; }
  50% { stroke-width: 5px; }
}

@media (max-width: 820px) {
  .phase-explainer-head { grid-template-columns: 1fr; gap: 12px; }
  .phase-figure svg { min-width: 720px; }
  .phase-state-copy { grid-template-columns: 1fr; }
  .phase-state-copy li {
    padding: 14px 4px 14px 16px;
    border-top: 0;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #e2e5ea;
  }
  .phase-state-copy li.is-current { border-top-color: transparent; border-left-color: #5e646e; }
}

@media (max-width: 520px) {
  .phase-cuts { grid-template-columns: 1fr; }
  .phase-cuts > div { display: flex; align-items: baseline; gap: 18px; padding: 18px 4px; }
  .phase-cuts > div + div { border-top: 1px solid #e2e5ea; border-left: 0; }
  .phase-cuts strong { min-width: 122px; }
  .phase-cuts span { margin-top: 0; }
  .phase-controls button { min-height: 44px; }
  .phase-counter { width: 100%; margin: 2px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .phase-step circle,
  .phase-document,
  .phase-progress span { transition: none; }
  .phase-explainer[data-motion="running"] .phase-step.is-current circle { animation: none; }
}

@media print {
  .phase-controls,
  .phase-progress,
  .phase-document { display: none; }
  .phase-state-copy li { color: #0d0f12; }
}
