/* Editorial (advertorial) article pages. Built by build-editorial.py.
   Light theme only on purpose: these read like a news article. */
:root {
  --ink: #16191c;
  --ink-soft: #4a5258;
  --paper: #ffffff;
  --teal: #0a7a76;        /* dark teal from brand cyan #0FDFD8, white text = 5:1 */
  --teal-ink: #08605d;
  --cyan: #0fdfd8;
  --hl: #fff1a6;          /* highlighter yellow */
  --pill: #ffe766;
  --wash: #f1f4f4;
  --line: #dfe5e5;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  font-optical-sizing: auto;
}
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 3px; }

.ed-top {
  display: flex; align-items: center; justify-content: center;
  height: 44px; border-bottom: 1px solid var(--line);
}
.ed-top img { height: 20px; width: auto; display: block; }

.ed { max-width: 660px; margin: 0 auto; padding: 18px 18px 64px; }

.ed h1 {
  font-size: clamp(29px, 7.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  font-weight: 700;
  margin: 4px 0 14px;
  text-wrap: balance;
}
.ed-sub {
  background: var(--wash);
  border-left: 5px solid var(--teal);
  padding: 10px 14px;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 16.5px; line-height: 1.45; font-weight: 600;
  color: var(--ink);
}
.ed p { margin: 0 0 14px; }
.ed .lead p { margin-bottom: 11px; }
.ed p.k { margin-bottom: 2px; }
.ed strong { font-weight: 700; }
mark, .hl {
  background: linear-gradient(transparent 8%, var(--hl) 8%, var(--hl) 92%, transparent 92%);
  color: inherit; padding: 0 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ed p.hlp > span { background: var(--hl); padding: 1px 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ed .kick { font-family: var(--sans); font-weight: 800; font-size: 16px; letter-spacing: .01em; }

.ed-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0; margin: 22px 0 24px;
  font-family: var(--sans); font-size: 14px; line-height: 1.35; color: var(--ink-soft);
}
.ed-author img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.ed-author b { color: var(--ink); font-weight: 700; display: block; font-size: 15px; }

.ed h2.mini { font-family: var(--sans); font-size: 18px; font-weight: 800; margin: 22px 0 8px; }
.ed h2.wins { font-size: 25px; line-height: 1.25; margin: 6px 0 12px; }

.ed ol.things { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: t; }
.ed ol.things li { counter-increment: t; display: flex; gap: 12px; margin: 0 0 10px; align-items: baseline; }
.ed ol.things li::before {
  content: counter(t); flex: none;
  width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff;
  font-family: var(--sans); font-weight: 800; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; transform: translateY(4px);
}
.ed ul.dash { list-style: none; padding: 0; margin: 0 0 16px; }
.ed ul.dash li { position: relative; padding-left: 22px; margin: 0 0 6px; }
.ed ul.dash li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 11px; height: 2px; background: var(--teal); }
.ed ol.steps { padding-left: 24px; margin: 0 0 16px; }
.ed ol.steps li { margin: 0 0 8px; padding-left: 4px; }
.ed ol.steps li::marker { font-family: var(--sans); font-weight: 800; color: var(--teal-ink); }

.ed .callout {
  border-left: 5px solid var(--teal); padding: 6px 0 6px 14px; margin: 18px 0;
  font-family: var(--sans); font-weight: 700; font-size: 17px; line-height: 1.45;
}
.ed .prompt {
  background: #f7f9f9; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; margin: 0 0 16px;
  font-family: var(--sans); font-size: 15.5px; line-height: 1.55;
}
.ed .prompt span { display: block; font-weight: 800; font-size: 13px; color: var(--teal-ink); margin-bottom: 4px; }

.ed-banner {
  background: var(--teal); color: #fff;
  font-family: var(--sans); font-weight: 800; font-size: 21px; line-height: 1.3;
  padding: 14px 18px; margin: 40px -18px 12px;
}
.ed-pill {
  display: inline-block; background: var(--pill); border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: 15.5px; line-height: 1.4;
  padding: 6px 14px; margin: 0 0 16px;
}
@media (min-width: 700px) { .ed-banner { margin-left: 0; margin-right: 0; border-radius: 4px; } }

.ed-cta { margin: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.ed-cta a {
  font-family: var(--sans); font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 12px 18px; border-radius: 8px; border: 2px solid var(--teal);
}
.ed-cta a.primary { background: var(--teal); color: #fff; }
.ed-cta a.secondary { color: var(--teal-ink); background: #fff; }

.ed-sources { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 14px; font-family: var(--sans); font-size: 13.5px; color: var(--ink-soft); }
.ed-sources h2 { font-size: 14px; margin: 0 0 6px; color: var(--ink); }
.ed-sources ol { padding-left: 18px; margin: 0; }
.ed-sources li { margin: 0 0 4px; overflow-wrap: anywhere; }
.ed-foot { text-align: center; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); padding: 24px 18px 40px; border-top: 1px solid var(--line); }
.ed-foot a { color: var(--ink-soft); }

/* ---------- Embedded graphics ---------- */
.fig { margin: 22px 0 18px; }
.fig-stage {
  position: relative; background: #fbfcfc; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 14px 44px; font-family: var(--sans); font-size: 14px; line-height: 1.35; overflow: hidden;
}
.fig-replay {
  position: absolute; right: 10px; bottom: 10px;
  font: 700 12.5px var(--sans); color: var(--teal-ink); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.fig-cap {
  background: var(--hl); border-radius: 0 0 8px 8px; margin-top: -4px;
  padding: 10px 14px; font-family: var(--sans); font-size: 14.5px; line-height: 1.45;
}
.fig-tag { font-size: 11.5px; color: var(--ink-soft); font-weight: 600; margin: 0 0 10px; }
/* everything that animates starts hidden, then .play reveals it in order via --d */
.fig .a { opacity: 0; transform: translateY(8px); }
.fig.play .a { animation: figIn .45s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes figIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fig .a, .fig.play .a { opacity: 1; transform: none; animation: none; }
}

/* transform: inputs on the left become outputs on the right */
.g-tr { display: grid; grid-template-columns: 1fr 18px 1.25fr; gap: 8px 6px; align-items: stretch; }
.g-tr h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); }
.g-tr .in { background: #fff; border: 1px solid var(--line); border-left: 4px solid #9aa7ab; border-radius: 6px; padding: 7px 8px; }
.g-tr .in b { display: block; font-size: 13px; }
.g-tr .in small { color: var(--ink-soft); font-size: 12px; }
.g-tr .arrow { color: var(--teal); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.g-tr .out { background: #fff; border: 1px solid #bfe3e1; border-left: 4px solid var(--teal); border-radius: 6px; padding: 7px 9px; font-size: 12.5px; }
.g-tr .out b { display: block; font-size: 13px; margin-bottom: 2px; }
.g-tr .out .ok { display: table; margin-top: 5px; font-size: 11px; font-weight: 800; color: var(--teal-ink); background: #e3f6f5; border-radius: 4px; padding: 1px 6px; }

/* journey: a row of steps ending in a result pill */
.g-jr { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 0 2px; }
.g-jr .st { flex: 1 1 0; min-width: 0; max-width: 96px; text-align: center; font-size: 12px; line-height: 1.3; font-weight: 600; }
.g-jr .ic {
  width: 42px; height: 42px; margin: 0 auto 6px; border-radius: 12px; background: #e3f6f5; color: var(--teal-ink);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.g-jr .ar { flex: none; color: var(--teal); font-weight: 800; width: 12px; text-align: center; line-height: 42px; }
.g-jr .res { flex-basis: 100%; text-align: center; margin-top: 10px; }
.g-jr .res span { display: inline-block; background: var(--teal); color: #fff; font-weight: 800; border-radius: 999px; padding: 8px 16px; font-size: 14.5px; }

/* fanout: one source, many targets */
.g-fo { position: relative; }
.g-fo .src { margin: 0 auto 12px; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 13.5px; box-shadow: 0 1px 0 var(--line); }
.g-fo .src b { display: block; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 3px; }
.g-fo svg.lines { display: block; width: 100%; height: 46px; }
.g-fo svg.lines path { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fig.play .g-fo svg.lines path { animation: draw .6s ease-out forwards; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .g-fo svg.lines path { stroke-dashoffset: 0; animation: none !important; } }
.g-fo .tg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.g-fo .t { text-align: center; font-size: 11.5px; font-weight: 700; }
.g-fo .t i { display: flex; width: 44px; height: 44px; margin: 0 auto 5px; border-radius: 50%; color: #fff; font-style: normal; font-weight: 800; font-size: 14px; align-items: center; justify-content: center; position: relative; }
.g-fo .t i::after { content: "\2713"; position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--teal-ink); font-size: 11px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.5px var(--teal); }
.g-fo .t small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 11px; }

/* sort: rows land in buckets */
.g-so .rows { margin-bottom: 12px; }
.g-so .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; margin-bottom: 5px; font-size: 12.5px; }
.g-so .row.h { background: transparent; border: 0; font-weight: 800; color: var(--ink-soft); font-size: 11.5px; padding-bottom: 0; }
.g-so .bk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.g-so .b { border-radius: 8px; padding: 8px 7px; min-height: 92px; background: #f1f4f4; }
.g-so .b h5 { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; }
.g-so .b .chip { display: block; background: #fff; border-radius: 4px; padding: 3px 6px; margin-bottom: 4px; font-size: 12px; font-weight: 600; }
.g-so .b.k0 { background: #ffe1d6; } .g-so .b.k1 { background: #fff1a6; } .g-so .b.k2 { background: #dff3f2; }

/* panel: a mock app panel that fills in */
.g-pn .bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.g-pn .bar b { font-size: 13.5px; }
.g-pn .btn { background: var(--teal); color: #fff; font-weight: 800; font-size: 12px; border-radius: 999px; padding: 5px 11px; }
.g-pn .sec { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 7px; }
.g-pn .sec h5 { margin: 0 0 3px; font-size: 12.5px; font-weight: 800; color: var(--teal-ink); }
.g-pn .sec p { margin: 0; font-size: 13px; line-height: 1.4; font-family: var(--sans); }

@media (max-width: 380px) {
  .g-tr { grid-template-columns: 1fr 14px 1.2fr; }
}
