/* NOR-89 article-only visual system: NorthLedger ivory, ink and sand. */
.works-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 42px;
  border-block: 1px solid #e2e5ea;
}

.works-facts > div { padding: 23px 18px; }
.works-facts > div + div { border-left: 1px solid #e2e5ea; }
.works-facts strong {
  display: block;
  color: #0d0f12;
  font-size: clamp(27px, 5vw, 42px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  line-height: 1;
}
.works-facts span {
  display: block;
  margin-top: 10px;
  color: #5e646e;
  font-size: 12px;
  line-height: 1.5;
}

.works-explainer {
  margin: 34px 0 44px;
  padding: 28px 0 12px;
  border-block: 1px solid #e2e5ea;
}
.works-explainer-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  gap: 28px;
  align-items: end;
}
.works-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #5e646e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .11em;
}
.blog-article .works-explainer h3 {
  margin: 0;
  color: #0d0f12;
  font-size: clamp(22px, 4vw, 31px);
  letter-spacing: -.025em;
  line-height: 1.2;
}
.blog-article .works-explainer-head p {
  margin: 0;
  color: #5e646e;
  font-size: 14px;
  line-height: 1.6;
}
.works-figure { margin: 24px 0 0; }
.works-figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  background: #f7f8fa;
  border-radius: 8px;
}
.works-route {
  fill: none;
  stroke: #9ea4b0;
  stroke-width: 2;
}
.works-arrow {
  fill: none;
  stroke: #6e747e;
  stroke-width: 1.5;
}
.works-node circle {
  fill: #f7f8fa;
  stroke: #9ea4b0;
  stroke-width: 1.5;
  transition: fill 360ms ease, stroke 360ms ease;
}
.works-node text {
  fill: #0d0f12;
  font: 600 13px Inter, system-ui, sans-serif;
  text-anchor: middle;
}
.works-node .works-node-owner {
  fill: #5e646e;
  font-size: 10px;
  font-weight: 500;
}
.works-node.is-complete circle { fill: #e2e5ea; stroke: #107c55; }
.works-node.is-current circle { fill: #9ea4b0; stroke: #5e646e; stroke-width: 3; }
.works-node.is-current { filter: drop-shadow(0 8px 9px rgb(67 52 29 / 14%)); }
.works-packet {
  color: #5e646e;
  transform: translate(95px, 71px);
  transition: transform 650ms cubic-bezier(.22,.8,.25,1);
}
.works-packet rect { fill: #ffffff; stroke: currentColor; stroke-width: 1.6; }
.works-packet path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.works-state-label {
  fill: #16191d;
  font: 500 13px Inter, system-ui, sans-serif;
}
.works-explainer[data-motion="running"] .works-node.is-current circle {
  animation: works-focus 1.5s ease-in-out infinite;
}
.works-progress {
  height: 3px;
  overflow: hidden;
  background: #e2e5ea;
}
.works-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: #5e646e;
  transition: width 420ms ease;
}
.works-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.works-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;
}
.works-controls button:hover { background: #eaecef; }
.works-controls button:focus-visible { outline: 3px solid #5e646e; outline-offset: 3px; }
.works-controls button:disabled { color: #6e747e; background: #eaecef; cursor: default; }
.works-counter {
  margin-left: auto;
  color: #5e646e;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.works-figure figcaption {
  margin-top: 14px;
  color: #5e646e;
  font-size: 13px;
  line-height: 1.6;
}
.works-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;
}
.works-state-copy li {
  padding: 15px 11px 4px;
  color: #5e646e;
  border-top: 3px solid transparent;
}
.works-state-copy li.is-current { color: #0d0f12; border-top-color: #5e646e; }
.works-state-copy strong,
.works-state-copy span { display: block; }
.works-state-copy strong { margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
.works-state-copy span { font-size: 12px; line-height: 1.55; }

.works-vehicles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 40px;
  border-block: 1px solid #e2e5ea;
}
.works-vehicles article { padding: 23px 20px; }
.works-vehicles article + article { border-left: 1px solid #e2e5ea; }
.works-vehicles article > span { color: #5e646e; font-size: 11px; font-weight: 600; }
.blog-article .works-vehicles h3 { margin: 10px 0 11px; font-size: 17px; line-height: 1.35; }
.blog-article .works-vehicles p { margin: 0; font-size: 14px; line-height: 1.65; }

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

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

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

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

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

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