/* =============================================================================
   Guide pages (e.g. /ai-roi-saudi-arabia/) — long-form article layout.
   Loads after tokens.css + style.css (nav, footer, buttons come from there).
   House rules: hairline rules, no tinted boxes, no pill shapes; typography and
   the green accent carry emphasis.
   ============================================================================= */

.guide-page { display: block; width: 100%; }

/* --- Opening band (dark, like the home hero) ------------------------------ */
.guide-hero {
  background: var(--sdia-band, #12130f);
  color: var(--sdia-paper, #fafaf9);
  padding: 150px 28px 72px;
}
.guide-hero__inner { max-width: 720px; margin: 0 auto; }
.guide-eyebrow {
  margin: 0;
  font-family: var(--font-sans-medium);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f8d86;
}
.guide-hero h1 {
  margin: 18px 0 0;
  font-family: var(--font-serif-bold);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #f4f2ec;
}
.guide-hero h1 em { font-style: normal; color: var(--c-green, #16a34a); }
.guide-hero__sub {
  margin: 22px 0 0;
  max-width: 620px;
  font-family: var(--font-sans-regular);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--sdia-on-dark-dim, #b9b7b0);
}
.guide-byline { margin: 26px 0 0; font-family: var(--font-sans-regular); font-size: 14px; color: #8f8d86; }
.guide-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 44px 0 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid rgba(231, 229, 223, 0.18);
}
.guide-hero__stats b {
  display: block;
  font-family: var(--font-serif-bold);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: #f4f2ec;
}
.guide-hero__stats b.g { color: var(--c-green, #16a34a); }
.guide-hero__stats span {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans-regular);
  font-size: 15px;
  line-height: 1.45;
  color: var(--sdia-on-dark-dim, #b9b7b0);
}
.guide-hero sup a { color: #8f8d86; }

/* --- Article column -------------------------------------------------------- */
.guide { background: var(--sdia-paper, #fafaf9); padding: 56px 28px 64px; }
.guide__inner {
  max-width: 720px;
  margin: 0 auto;
  color: var(--sdia-ink, #141512);
  font-family: var(--font-sans-regular);
  font-size: 18px;
  line-height: 1.65;
}
.guide h2 {
  margin: 64px 0 14px;
  font-family: var(--font-serif-bold);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  scroll-margin-top: 96px;
}
.guide section:first-child h2 { margin-top: 0; }
.guide h3 { margin: 34px 0 8px; font-family: var(--font-sans-bold); font-weight: 700; font-size: 20px; line-height: 1.3; }
.guide p { margin: 0 0 16px; }
.guide strong { font-family: var(--font-sans-bold); font-weight: 700; }
.guide a { color: var(--c-green-deep, #14532d); text-underline-offset: 3px; }
.guide sup { line-height: 0; margin-left: 2px; }
.guide sup a { text-decoration: none; font-size: 0.7em; color: var(--sdia-ink-muted, #5d6057); }
.guide sup a:hover { color: var(--c-green-deep, #14532d); }

/* small caps label used for "Key takeaways", "Sources", example label */
.guide-label, .guide h2.guide-label {
  margin: 0 0 14px;
  font-family: var(--font-sans-bold);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-green-deep, #14532d);
}

/* Key takeaways: boxless, a 2px side rule */
.takeaways { margin: 0; padding: 2px 0 2px 22px; list-style: none; border-left: 2px solid var(--c-green, #16a34a); }
.takeaways li { margin: 0 0 12px; }
.takeaways li:last-child { margin-bottom: 0; }

/* Data tables with a thin square-ended bar under each label */
.data-table { width: 100%; margin: 6px 0 18px; border-collapse: collapse; font-size: 16px; }
.data-table th {
  padding: 0 0 8px;
  text-align: left;
  font-family: var(--font-sans-medium);
  font-weight: 500;
  font-size: 13px;
  color: var(--sdia-ink-muted, #5d6057);
  border-bottom: 1px solid var(--sdia-ink, #141512);
}
.data-table td { padding: 11px 0 10px; vertical-align: top; border-bottom: 1px solid var(--line-hair, #dedede); }
.data-table .num { width: 90px; text-align: right; font-family: var(--font-sans-bold); font-weight: 700; font-variant-numeric: tabular-nums; }
.data-table .bar {
  display: block;
  width: calc(var(--v) * 1.6);
  max-width: 100%;
  height: 4px;
  margin-top: 7px;
  background: #c9c7bf;
}
.data-table tr.is-key .bar { background: var(--c-green, #16a34a); }
.data-table tr.is-key td { font-family: var(--font-sans-bold); font-weight: 700; }

/* "48% vs 27%" comparisons */
.compare { display: flex; gap: 40px; margin: 6px 0 12px; }
.compare b { display: block; font-family: var(--font-serif-bold); font-weight: 700; font-size: 44px; line-height: 1; color: var(--c-green-deep, #14532d); }
.compare b.muted { color: #9a9890; }
.compare span { display: block; margin-top: 6px; font-size: 14px; color: var(--sdia-ink-muted, #5d6057); }

/* Ranked list (enablers) */
.ranked { margin: 6px 0 18px; padding: 0; list-style: none; counter-reset: rk; }
.ranked li {
  counter-increment: rk;
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-hair, #dedede);
  font-size: 16px;
}
.ranked li::before { content: counter(rk); flex: 0 0 22px; font-family: var(--font-serif-bold); color: var(--c-green-deep, #14532d); }
.ranked li span { flex: 1 1 auto; }
.ranked li b { font-family: var(--font-sans-bold); font-variant-numeric: tabular-nums; }
.ranked li:first-child span, .ranked li:first-child b { font-family: var(--font-sans-bold); font-weight: 700; }

/* Numbered steps */
.steps { margin: 6px 0 18px; padding: 0; list-style: none; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 0 0 14px 44px; }
.steps li::before {
  content: counter(st);
  position: absolute; left: 0; top: -2px;
  width: 28px;
  font-family: var(--font-serif-bold);
  font-size: 26px;
  line-height: 1.2;
  color: var(--c-green-deep, #14532d);
}

/* Formula: monospace lines on a dark side rule */
.formula {
  display: flex; flex-direction: column; gap: 6px;
  margin: 8px 0 20px !important;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--sdia-ink, #141512);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
  white-space: normal;
}
.formula span:first-child { font-weight: 700; color: var(--c-green-deep, #14532d); }

/* Illustrative example: grey side rule, no box */
.example { margin: 22px 0 6px; padding: 2px 0 2px 20px; border-left: 2px solid #c9c7bf; }
.example .guide-label { color: var(--sdia-ink-muted, #5d6057); }
.example p:last-child { margin-bottom: 0; color: var(--sdia-ink-muted, #5d6057); }

/* Field numbers */
.field-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  margin: 10px 0 18px; padding: 18px 0; list-style: none;
  border-top: 1px solid var(--sdia-ink, #141512);
  border-bottom: 1px solid var(--line-hair, #dedede);
}
.field-stats b { display: block; font-family: var(--font-serif-bold); font-weight: 700; font-size: clamp(36px, 4.4vw, 48px); line-height: 1; }
.field-stats b.g { color: var(--c-green, #16a34a); }
.field-stats span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--sdia-ink-muted, #5d6057); }

/* FAQ: always open on the guide (answers are the content) */
.guide-faq h3 { margin-top: 28px; }
.guide-faq h3:first-child { margin-top: 6px; }

/* --- Closing call to action (dark band) ----------------------------------- */
.guide-cta { background: var(--sdia-band, #12130f); padding: 72px 28px; scroll-margin-top: 80px; }
.guide-cta__inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.guide-cta h2 { margin: 0; font-family: var(--font-serif-bold); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; color: #f4f2ec; }
.guide-cta p { margin: 0; max-width: 600px; font-family: var(--font-sans-regular); font-size: 18px; line-height: 1.55; color: var(--sdia-on-dark-dim, #b9b7b0); }
.guide-cta .btn { margin-top: 6px; }

/* --- Sources --------------------------------------------------------------- */
.guide--sources { padding-top: 48px; padding-bottom: 72px; }
.sources-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--sdia-ink-muted, #5d6057); }
.sources-list li { margin-bottom: 8px; scroll-margin-top: 96px; }
.sources-list li:target { color: var(--sdia-ink, #141512); }

/* --- Phone ----------------------------------------------------------------- */
@media (max-width: 809.98px) {
  .guide-hero { padding: 116px 28px 52px; }
  .guide-hero__stats { grid-template-columns: 1fr; gap: 18px; }
  .guide-hero__stats li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; }
  .guide-hero__stats span { margin-top: 0; }
  .guide { padding: 44px 28px 52px; }
  .guide__inner { font-size: 17px; }
  .guide h2 { margin-top: 52px; }
  .compare { gap: 28px; }
  .compare b { font-size: 38px; }
  .field-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .formula { font-size: 13.5px; }
  .guide-cta { padding: 56px 28px 64px; }
  .guide-cta .btn { width: 100%; justify-content: center; min-height: 48px; border-radius: 24px; }
  .data-table .num { width: 64px; }
}

/* =============================================================================
   Charts (2026-11-13) — HTML/CSS, so text stays crisp and readable by search
   and AI crawlers. Rules: thin marks (bars 14px, 4px rounded data end, square
   at the baseline), hairline solid grid, values/labels in ink (never the data
   colour), legend for 2+ series, a "Show the numbers" table under every chart.
   Palette validated (dataviz validate_palette.js) on #fafaf9:
   leaders #15803d vs others #9a988f — CVD ΔE 13.8, normal ΔE 19.9; grey is
   de-emphasis and every grey mark is labelled. Waffle ramp #7dbb92 → #3a8f57 →
   #14532d passes the ordinal checks.
   ============================================================================= */
.guide { --viz-lead: #15803d; --viz-other: #9a988f; --viz-w1: #14532d; --viz-w2: #3a8f57; --viz-w3: #7dbb92; --viz-grid: #e6e4de; }

.viz { margin: 26px 0 30px; padding: 20px 0 0; border-top: 1px solid var(--sdia-ink, #141512); }
.viz__head { margin: 0 0 18px; }
.guide .viz__title { margin: 0; font-family: var(--font-sans-bold); font-weight: 700; font-size: 17px; line-height: 1.35; }
.guide .viz__sub { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--sdia-ink-muted, #5d6057); }
.guide .viz__src { margin: 14px 0 0; font-size: 12.5px; line-height: 1.4; color: #85837a; }

.viz__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--sdia-ink, #141512); }
.viz__legend li { display: flex; align-items: center; gap: 8px; }
.sw { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.sw--lead { background: var(--viz-lead); }
.sw--other { background: var(--viz-other); }
.sw--w1 { background: var(--viz-w1); }
.sw--w2 { background: var(--viz-w2); }
.sw--w3 { background: var(--viz-w3); }
.sw--w0 { box-shadow: inset 0 0 0 1.5px var(--viz-other); }
.viz__legend--stack { flex-direction: column; gap: 14px; margin: 0; }
.viz__legend--stack li { display: grid; grid-template-columns: 12px 58px minmax(0, 1fr); align-items: baseline; gap: 10px; }
.viz__legend--stack .sw { width: 12px; height: 12px; align-self: center; }
.viz__legend--stack b { font-family: var(--font-sans-bold); font-size: 24px; line-height: 1; }
.viz__legend--stack span { font-size: 15px; line-height: 1.35; }

/* table view */
.viz__table { margin-top: 14px; }
.viz__table summary {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; list-style: none;
  font-family: var(--font-sans-medium); font-size: 13.5px; color: var(--c-green-deep, #14532d);
}
.viz__table summary::-webkit-details-marker { display: none; }
.viz__table summary::before { content: "+"; width: 10px; font-family: var(--font-sans-bold); }
.viz__table[open] summary::before { content: "−"; }
.viz__table .data-table { margin: 10px 0 0; font-size: 14px; }

/* --- waffle: 100 companies ------------------------------------------------- */
.waffle-wrap { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 40px; align-items: center; }
.waffle { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.wd { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--viz-w3); transition: opacity .35s ease, transform .35s ease, box-shadow .12s; transition-delay: calc(var(--i, 0) * 7ms); }
.wd.w1 { background: var(--viz-w1); }
.wd.w2 { background: var(--viz-w2); }
.wd.is-hot { box-shadow: 0 0 0 2px var(--sdia-paper, #fafaf9), 0 0 0 3.5px var(--sdia-ink, #141512); transition-delay: 0s; }
.viz-anim .viz--waffle .wd { opacity: 0; transform: scale(.35); }
.viz-anim .viz--waffle.is-in .wd { opacity: 1; transform: none; }

/* --- horizontal bars -------------------------------------------------------- */
.hbars { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.hb { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 18px; align-items: center; font-size: 15px; line-height: 1.3; }
.hb.is-key .hb__label { font-family: var(--font-sans-bold); font-weight: 700; }
.hb__track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hb__bar {
  position: relative;
  flex: 0 0 calc(var(--v) / var(--max) * 84%);
  height: 14px;
  border-radius: 0 4px 4px 0;
  background: var(--viz-other);
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .12s;
  transition-delay: calc(var(--i, 0) * 60ms);
}
.hb__bar::after { content: ""; position: absolute; inset: -7px -6px; }   /* bigger hit target */
.hb.is-key .hb__bar { background: var(--viz-lead); }
.hb__bar.is-hot, .hb__bar:focus-visible { filter: brightness(1.15); outline: none; }
.hb__bar:focus-visible { box-shadow: 0 0 0 2px var(--sdia-paper, #fafaf9), 0 0 0 3.5px var(--sdia-ink, #141512); }
.hb__val { font-family: var(--font-sans-bold); font-weight: 700; font-size: 14px; white-space: nowrap; }
.viz-anim [data-viz] .hb__bar { transform: scaleX(0); }
.viz-anim [data-viz].is-in .hb__bar { transform: none; }

/* --- dumbbell: leaders vs everyone else ------------------------------------ */
.dumbbell { position: relative; }
.db-row { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 18px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--viz-grid); }
.guide .db-label { margin: 0; font-size: 15px; line-height: 1.3; }
.db-track {
  position: relative; height: 46px; margin: 0 48px 0 0;
  background:
    linear-gradient(var(--viz-grid), var(--viz-grid)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--viz-grid), var(--viz-grid)) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(var(--viz-grid), var(--viz-grid)) 66.666% 0 / 1px 100% no-repeat,
    linear-gradient(var(--viz-grid), var(--viz-grid)) 100% 0 / 1px 100% no-repeat;
}
.db-line {
  position: absolute; top: 50%; height: 2px; margin-top: -1px;
  left: calc(var(--a) / 60 * 100%); width: calc((var(--b) - var(--a)) / 60 * 100%);
  background: var(--viz-other); transform-origin: left center;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.db-dot {
  position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px var(--sdia-paper, #fafaf9);
  transition: left .8s cubic-bezier(.2, .7, .2, 1), box-shadow .12s;
}
.db-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.db-dot--other { left: calc(var(--a) / 60 * 100%); background: var(--viz-other); }
.db-dot--lead { left: calc(var(--b) / 60 * 100%); background: var(--viz-lead); }
.db-dot.is-hot, .db-dot:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--sdia-paper, #fafaf9), 0 0 0 3.5px var(--sdia-ink, #141512); }
.db-dot em { position: absolute; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--font-sans-bold); font-weight: 700; font-size: 14px; white-space: nowrap; }
.db-dot--other em { right: calc(100% + 8px); color: var(--sdia-ink-muted, #5d6057); }
.db-dot--lead em { left: calc(100% + 8px); color: var(--sdia-ink, #141512); }
.db-gap {
  position: absolute; bottom: calc(50% + 9px);
  left: calc((var(--a) + var(--b)) / 120 * 100%); transform: translateX(-50%);
  font-family: var(--font-sans-bold); font-size: 12px; color: var(--c-green-deep, #14532d); white-space: nowrap;
  transition: opacity .4s .6s;
}
.db-axis { position: relative; height: 22px; margin: 0 48px 0 calc(230px + 18px); }
.db-axis span { position: absolute; top: 6px; left: calc(var(--t) / 60 * 100%); transform: translateX(-50%); font-size: 12px; color: #85837a; }
.viz-anim [data-viz] .db-dot--lead { left: calc(var(--a) / 60 * 100%); }
.viz-anim [data-viz] .db-line { transform: scaleX(0); }
.viz-anim [data-viz] .db-gap { opacity: 0; }
.viz-anim [data-viz].is-in .db-dot--lead { left: calc(var(--b) / 60 * 100%); }
.viz-anim [data-viz].is-in .db-line { transform: none; }
.viz-anim [data-viz].is-in .db-gap { opacity: 1; }

/* --- method flow ------------------------------------------------------------ */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8px 0 0; padding: 0; list-style: none; }
.flow__step {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px 4px 0; border-top: 2px solid var(--sdia-ink, #141512);
  font-size: 15px; line-height: 1.45;
}
.flow__step + .flow__step { padding-left: 20px; }
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; top: -7px; right: -6px;
  width: 10px; height: 10px; border-top: 2px solid; border-right: 2px solid;
  transform: rotate(45deg); color: var(--sdia-ink, #141512); background: var(--sdia-paper, #fafaf9);
}
.flow__step--loop { border-top-color: var(--viz-lead); }
.flow__step--loop:not(:last-child)::after { color: var(--viz-lead); }
.flow__n { font-family: var(--font-serif-bold); font-weight: 700; font-size: 30px; line-height: 1; color: var(--c-green-deep, #14532d); }
.flow__step strong { font-family: var(--font-sans-bold); font-size: 16px; }
.flow__step span:last-child { font-size: 14.5px; color: var(--sdia-ink-muted, #5d6057); }
.guide .flow__repeat { margin: 10px 0 22px 50%; padding-left: 20px; font-family: var(--font-sans-medium); font-size: 14px; color: var(--c-green-deep, #14532d); }
.flow__repeat span { font-size: 16px; margin-right: 4px; }

/* --- waterfall (illustrative example) -------------------------------------- */
.viz--wf { max-width: 520px; margin: 20px 0 4px; border-top-color: #c9c7bf; }
.wf__plot { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 230px; margin: 28px 0 0 34px; border-bottom: 1px solid var(--sdia-ink, #141512); }
.wf__grid { position: absolute; left: -34px; right: 0; height: 0; bottom: calc(var(--at) / var(--max) * 100%); border-top: 1px solid var(--viz-grid); }
.wf__grid b { position: absolute; left: 0; top: -8px; font-family: var(--font-sans-regular); font-weight: 400; font-size: 11.5px; line-height: 1; color: #85837a; }
.wf__grid:first-child { border-top-color: transparent; }
.wf__col { position: relative; }
.wf__bar {
  position: absolute; left: 50%; width: 24px; margin-left: -12px;
  bottom: calc(var(--from) / var(--max) * 100%);
  height: calc((var(--to) - var(--from)) / var(--max) * 100%);
  border-radius: 4px 4px 0 0; transform-origin: bottom center;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .12s;
}
.wf__bar::after { content: ""; position: absolute; inset: -6px -10px; }
.wf__bar--gain { background: var(--viz-lead); }
.wf__bar--cost { background: var(--viz-other); border-radius: 0 0 4px 4px; transform-origin: top center; transition-delay: .25s; }
.wf__bar--net { background: var(--viz-w1); transition-delay: .5s; }
.wf__bar.is-hot, .wf__bar:focus-visible { filter: brightness(1.15); outline: none; }
.wf__val { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--at) / var(--max) * 100% + 8px); font-family: var(--font-sans-bold); font-size: 14px; white-space: nowrap; }
.wf__x { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-left: 34px; padding-top: 8px; font-size: 13.5px; line-height: 1.3; text-align: center; color: var(--sdia-ink-muted, #5d6057); }
.guide .wf__result { margin: 14px 0 0; font-size: 15px; color: var(--sdia-ink, #141512); }
.wf__result strong { color: var(--c-green-deep, #14532d); }
.viz-anim [data-viz] .wf__bar { transform: scaleY(0); }
.viz-anim [data-viz].is-in .wf__bar { transform: none; }
.example .viz p:last-child { color: inherit; }

/* --- 30-day timeline -------------------------------------------------------- */
.plan30 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 6px; padding: 0; list-style: none; }
.plan30 li {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 26px 20px 0 0; border-top: 1px solid var(--sdia-ink, #141512);
  font-size: 15px; line-height: 1.45;
}
.plan30 li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--viz-lead); box-shadow: 0 0 0 3px var(--sdia-paper, #fafaf9); }
.tl__when { font-family: var(--font-sans-bold); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-green-deep, #14532d); }
.plan30 strong { font-family: var(--font-serif-bold); font-weight: 700; font-size: 22px; line-height: 1.15; }
.plan30 li span:last-child { font-size: 14.5px; color: var(--sdia-ink-muted, #5d6057); }

/* --- tooltip (one, shared) -------------------------------------------------- */
.viz-tip {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; max-width: 240px;
  padding: 8px 11px; border-radius: 3px;
  background: var(--sdia-ink, #141512); color: #f4f2ec;
  font-family: var(--font-sans-regular); font-size: 13px; line-height: 1.3;
  opacity: 0; transition: opacity .12s;
}
.viz-tip strong { font-family: var(--font-sans-bold); font-size: 15px; }
.viz-tip span { color: #c9c7bf; }
.viz-tip.is-on { opacity: 1; }

/* --- citations: a small "1" -------------------------------------------------- */
.guide sup.cite, .guide-hero sup.cite { line-height: 0; margin-left: 1px; }
.guide sup.cite a { font-size: .66em; font-family: var(--font-sans-bold); color: var(--c-green-deep, #14532d); text-decoration: none; }
.guide-hero sup.cite a { font-size: .7em; font-family: var(--font-sans-bold); color: #8f8d86; text-decoration: none; }

/* --- phone ------------------------------------------------------------------ */
@media (max-width: 809.98px) {
  .waffle-wrap { grid-template-columns: 1fr; gap: 24px; }
  .waffle { max-width: 250px; gap: 5px; }
  .hb { grid-template-columns: 1fr; gap: 6px; font-size: 14.5px; }
  .db-row { grid-template-columns: 1fr; gap: 4px; }
  .db-axis { margin-left: 0; }
  .flow { grid-template-columns: 1fr; }
  .flow__step, .flow__step + .flow__step { padding: 2px 0 20px 22px; border-top: 0; border-left: 2px solid var(--sdia-ink, #141512); }
  .flow__step--loop { border-left-color: var(--viz-lead); }
  .flow__step:not(:last-child)::after { top: auto; bottom: -6px; right: auto; left: -7px; transform: rotate(135deg); }
  .guide .flow__repeat { margin: 4px 0 22px; padding-left: 22px; }
  .plan30 { grid-template-columns: 1fr; }
  .plan30 li { padding: 0 0 22px 26px; border-top: 0; border-left: 1px solid var(--sdia-ink, #141512); }
  .plan30 li::before { top: 4px; left: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .wd, .hb__bar, .db-line, .db-dot, .db-gap, .wf__bar { transition: none !important; }
}
