/* service-map.css -- the USDA case study's service map: who touches a
   grant at each stage, before and after. Moved here from
   case-study-base.css on 2026-10-30, when the page moved onto the write-up
   template and stopped loading that file; every rule below is as it was
   there. Its label is the Kicker, which case-study-base.css gave every
   page as .case-field-label; the map is the one place that still says it,
   so the treatment comes with it. */
.svc-short .case-field-label {
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: var(--leading-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* ---------- The service map ----------
   The USDA case study's map of who touches a grant and what changed for
   each, since 2026-10-28. Here and not in style.css because only these six
   pages load this file, and here and not in the markup as utilities because
   a new utility is a rebuild of case-tailwind.css for one figure.

   Drawn in HTML so its words are the page's own and every check reads them.
   One component, the same shape as the lab write-up's journey: stages
   across, lanes down, stacked into one card per stage under 64rem with each
   lane's name printed in its cell, and a grid from 64rem with the lane
   names once in a first column (the other stages' copies visually hidden
   but present, so a screen reader hears every cell named).

   Every value is a token. Since 2026-10-28 the figure is the Aisle
   journey's card: --figure-card, warm on the white page and white on a
   tinted chapter (gray-light until 2026-10-31), with the --rule-card edge
   (1.48:1) and --shadow-card; the stage cards inside it are white with the
   same edge. */
.svc-map {
  margin: 0 0 var(--space-section);
  overflow: clip;
  padding: var(--space-lg) var(--space-md);
  background: var(--figure-card);
  border: 1px solid var(--rule-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .svc-map { padding: var(--space-xl); } }
@media (min-width: 1024px) { .svc-map { padding: var(--space-2xl) var(--space-3xl); } }
/* The kicker names the figure for what it is, since 2026-10-30: the
   section's heading stays "My approach", and the map says it is a service
   map. The site's one kicker treatment (TYPOGRAPHY.md, "Kickers and
   eyebrows"). The Shortlist's map has the same caption, since
   2026-10-31 (.ia-kicker and .ia-title in lab/inspiration-to-aisle.css),
   and both labels set --leading-ui, the label leading, rather than
   inheriting the reading column's 1.7. Under 64rem the caption keeps
   --space-lg off the disc rail, as the Shortlist's does; until then the
   title sat on the rail on a phone. */
.svc-map > figcaption { margin: 0 0 var(--space-lg); }
.svc-map .svc-kicker {
  margin: 0 0 var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: var(--leading-ui);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.svc-map .svc-title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  color: var(--color-charcoal);
}
@media (min-width: 640px) { .svc-map .svc-title { font-size: var(--text-2xl); } }
.svc-map .svc-standing {
  margin: 0 0 var(--space-lg);
  max-width: var(--measure);
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  color: var(--color-muted-gray);
}

/* ---------- What the map shows ----------
   Since 2026-10-29 the map states its point, for a reader who will give
   it ten seconds: three claims, each a bold line, one sentence of
   evidence, and the stages that show it, in the stage discs the grid
   uses. Before, the point was one closing sentence under twenty cells.
   For a day the claims opened the figure, above the grid; since
   2026-10-29 they close it, under the grid, so the stages they cite have
   been seen before they are named, and the figure ends on its point.

   No card of its own since 2026-10-29, the day it arrived: a white card
   inside the figure's card, over a row of white stage cards, read as one
   more box stacked on the map rather than as the map's own words. The
   claims are the figure's own foot.

   Since 2026-10-30 that foot is a band of tea-light, the palette's
   "featured" ground (COLOR.md), running to the figure's edges and its
   bottom corners, so a reader who scrolls past twenty cells lands on the
   point without hunting for it, and it reads as the map's conclusion
   rather than one more card in it. The band is the figure's ground
   changing, not a surface on it: no edge, no radius of its own (the
   figure clips it to its own curve). Later the same day the band went
   charcoal, the site's dark band, so the point reads as the map's
   ending at a glance rather than one more pale panel under pale cards:
   ink-on-dark for the claims (14.02), its secondary for the stage line
   (8.49), sage on charcoal for the label and the discs (7.47), the discs
   on the dark wash with the dark ring, and rule-on-dark between the
   columns.
   Stacked under 64rem; from 64rem, three columns, the stage line on one
   baseline across them. For a few hours the claims stood in one column
   beside the caption instead, and read as a list squeezed into the
   corner of the figure. From 2026-10-29 the caption took the claims'
   three columns too, the title over the first and the standing line
   over the other two; since 2026-10-30 it is stacked at every width,
   the standing line directly under the title on the figure's left edge
   (Adam: the split "feels kind of disjointed"), because the two are one
   caption and the grid under them does not start on the claims'
   columns anyway. Each claim opens on its own mark, the line icon in
   the on-dark station disc, drawn on as the band enters view
   (map-rail.css, "The claims' marks"). The label is the Kicker's treatment through .case-field-label.
   Charcoal on warm is 14.02, muted-gray 5.91. Lab twin: .ia-short
   in lab/inspiration-to-aisle.css. */
/* --svc-pad is the figure's padding at each width, so the band can take
   it back and reach the edges. */
.svc-map { --svc-pad-y: var(--space-lg); --svc-pad-x: var(--space-md); }
@media (min-width: 640px) { .svc-map { --svc-pad-y: var(--space-xl); --svc-pad-x: var(--space-xl); } }
@media (min-width: 1024px) { .svc-map { --svc-pad-y: var(--space-2xl); --svc-pad-x: var(--space-3xl); } }
.svc-short {
  margin: var(--space-xl) calc(-1 * var(--svc-pad-x)) calc(-1 * var(--svc-pad-y));
  padding: var(--space-lg) var(--svc-pad-x) var(--svc-pad-y);
  background: var(--color-charcoal);
}
.svc-short .case-field-label { margin: 0 0 var(--space-sm); color: var(--color-accent-on-dark); }
.svc-short-list { list-style: none; margin: 0; padding: 0; }
.svc-short-list > li { padding: var(--space-sm) 0; border-top: 1px solid var(--rule-on-dark); }
.svc-short-list > li:first-child { padding-top: 0; border-top: 0; }
.svc-short-list > li:last-child { padding-bottom: 0; }
.svc-map .svc-short-claim {
  margin: 0 0 var(--space-2xs);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--ink-on-dark);
}
.svc-map .svc-short-why {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  color: var(--ink-on-dark);
}
.svc-map .svc-short-at {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
  margin: var(--space-xs) 0 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-ui);
  color: var(--ink-on-dark-secondary);
}
@media (min-width: 64rem) {
  .svc-map > figcaption { margin-bottom: var(--space-xl); }
  .svc-map .svc-standing { margin-bottom: 0; }
  .svc-short { margin-top: var(--space-2xl); padding-top: var(--space-xl); }
  .svc-short-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-short-list > li,
  .svc-short-list > li:first-child,
  .svc-short-list > li:last-child { padding: 0 var(--space-lg); border-top: 0; border-left: 1px solid var(--rule-on-dark); }
  .svc-short-list > li:first-child { padding-left: 0; border-left: 0; }
  .svc-short-list > li:last-child { padding-right: 0; }
  /* The stage line sits on one baseline across the three columns. */
  .svc-short-list > li { display: flex; flex-direction: column; }
  .svc-map .svc-short-at { margin-top: auto; padding-top: var(--space-sm); }
  .svc-map .svc-short-claim { margin-bottom: var(--space-xs); font-size: var(--text-lg); }
}
.svc-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.svc-stage {
  background: var(--color-white);
  border: 1px solid var(--rule-card);
  border-radius: 12px;
  padding: var(--space-md);
}
.svc-map .svc-stage-name {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--color-charcoal);
  /* The number in its own column and the name in the next, so a name that
     takes two lines wraps under its own first word, not under the disc. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-xs);
}
.svc-stage-name .svc-n { color: var(--color-accent-text); font-variant-numeric: tabular-nums; }
.svc-lanes { margin: 0; }
.svc-lane {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-xs) 0;
  border-top: 1px solid var(--rule-hairline);
}
.svc-lane:first-child { border-top: 0; padding-top: 0; }
.svc-lane dt {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-ui);
  color: var(--color-muted-gray);
}
.svc-lane dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-ui);
  color: var(--color-charcoal);
}
@media (min-width: 64rem) {
  .svc-stages { gap: 0; column-gap: var(--space-md); grid-template-columns: 9rem repeat(var(--svc-stages), minmax(0, 1fr)); }
  .svc-stage, .svc-lanes, .svc-lane { display: contents; }
  .svc-map .svc-stage-name {
    grid-row: 2;
    grid-column: calc(var(--svc-i) + 2);
    margin: 0;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--rule-strong);
  }
  .svc-lane dt {
    grid-row: calc(var(--svc-lane) + 2);
    grid-column: 1;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--rule-hairline);
    font-size: var(--text-sm);
    color: var(--color-charcoal);
  }
  .svc-stage:not(:first-child) .svc-lane dt {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .svc-lane dd {
    grid-row: calc(var(--svc-lane) + 2);
    grid-column: calc(var(--svc-i) + 2);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--rule-hairline);
  }
}
/* ---------- Read at a glance ----------
   The USDA map, made to be read in a few seconds.
   The same three moves, in tokens, as the journey in lab/inspiration-to-aisle.css, so the
   two read as one component:

   - The stage number sits in the station mark: the tea disc with the
     accent hairline, .fact-node's in style.css, sized to the line.
   - The payoff row is a row of tea-light tiles, its name in sage, so the
     eye lands on what changed before it reads anything else. Tea-light is
     the palette's word for "featured" (COLOR.md); charcoal on it is 12.90.
     The tile takes --rule-card, the edge every card on a ground takes,
     because tea on white is 1.19:1 and the sage hairline did not read
     (cards.mjs).
   - One phrase a cell is bold in the pain row and the payoff row, so the
     two rows read across as the story in a dozen words. Bold, never a
     second color: emphasis on this site is weight. */
.svc-stage-name .svc-n,
.svc-short-at .svc-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em; height: 2em;
  border-radius: 50%;
  background: var(--color-tea-light);
  border: 1px solid var(--color-accent-ring);
  font-size: var(--text-xs);
  /* Centred on the name's first line, from that line's own box. */
  margin-top: calc((var(--text-base) * var(--leading-tight) - 2 * var(--text-xs)) / 2);
}
/* In the summary the disc sits in a centred row of its own. */
.svc-short-at .svc-n { margin-top: 0; background: var(--wash-on-dark); border-color: var(--color-accent-ring-on-dark); color: var(--color-accent-on-dark); font-variant-numeric: tabular-nums; }
.svc-map .svc-lane:nth-child(2) dd strong,
.svc-map .svc-lane--after dd strong { font-weight: var(--weight-semibold); color: var(--color-charcoal); }
.svc-map .svc-lane--after dt { color: var(--color-accent-text); }
.svc-map .svc-lane--after dd {
  padding: var(--space-sm);
  background: var(--color-tea-light);
  border: 1px solid var(--rule-card);
  border-radius: 12px;
}
@media (min-width: 64rem) {
  .svc-map .svc-lane--after dt,
  .svc-map .svc-lane--after dd { margin-top: var(--space-sm); }
  .svc-map .svc-lane--after dt { border-bottom: 0; }
  .svc-map .svc-lane--after dd { margin-bottom: var(--space-sm); }
}

/* ---------- The journey's furniture ----------
   Since 2026-10-28 the map takes the rest of the Aisle journey's style
   (lab/inspiration-to-aisle.css), in the same tokens, so the two service
   maps on the site read as one hand: two phase bands over the stages, a
   storyboard drawing over each, the discs over the names on one sage line, a line icon before each lane's
   name, and a thread lane of small labels on one sage line, gathering
   from stage to stage. It leaves out the Aisle's curve and its switch: a
   feeling curve here would be a reading nobody measured, and four stages
   read Before and After side by side without one. */

/* Two bands over the stages, the way a journey map names its phases;
   each ends where its stages do. Wide only; stacked, each card already
   says where it is. */
.svc-phases { display: none; }
@media (min-width: 64rem) {
  .svc-map .svc-phases {
    display: grid;
    grid-template-columns: 9rem repeat(var(--svc-stages), minmax(0, 1fr));
    column-gap: var(--space-md);
    margin: 0 0 var(--space-sm);
  }
  .svc-phase {
    grid-column: calc(var(--svc-from) + 1) / calc(var(--svc-to) + 1);
    padding: var(--space-2xs) var(--space-sm);
    border-radius: var(--radius-pill);
    background: var(--color-tea-light);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-ui);
    color: var(--color-charcoal);
  }
  .svc-phase + .svc-phase { background: var(--color-muted-light); }
}

/* The stages as one rail: from 64rem the disc sits over the name, and one
   sage line joins the discs across the head of the grid. */
@media (min-width: 64rem) {
  .svc-map .svc-stage-name {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-xs);
  }
  .svc-stage-name .svc-n { position: relative; z-index: 1; margin-top: 0; }
  .svc-map .svc-stage-name::before {
    content: "";
    position: absolute;
    left: var(--space-xs);
    right: calc(-1 * var(--space-md));
    top: var(--text-xs);
    border-top: 2px solid var(--color-accent-text);
  }
  .svc-stage:last-child .svc-stage-name::before { display: none; }
  .svc-map .svc-stage-name,
  .svc-map .svc-lane:not(.svc-lane--after) dd { padding-inline: var(--space-xs); }
}

/* A mark for each lane: a line icon before its name, drawn as a mask so
   it takes the name's own ink, centred on the name's first line. */
.svc-lane dt { position: relative; padding-left: 1.75em; }
.svc-lane dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--svc-dt-pad, 0px) + 0.5lh);
  width: 1.25em;
  height: 1.25em;
  translate: 0 -50%;
  background: currentColor;
  -webkit-mask: var(--svc-icon) center / contain no-repeat;
  mask: var(--svc-icon) center / contain no-repeat;
}
@media (min-width: 64rem) {
  .svc-lane dt { --svc-dt-pad: var(--space-sm); }
}
.svc-lane--who { --svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c0-4 3-6.5 7-6.5s7 2.5 7 6.5'/%3E%3C/svg%3E"); }
.svc-lane--before { --svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3.5l9.5 16.5h-19z'/%3E%3Cpath d='M12 10v4.5'/%3E%3Cpath d='M12 17.5v.01'/%3E%3C/svg%3E"); }
.svc-lane--after { --svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.75 2.75L16 10'/%3E%3C/svg%3E"); }
.svc-lane--thread { --svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4'/%3E%3Cpath d='M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
.svc-lane--behind { --svc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 8l9-4.5L21 8l-9 4.5z'/%3E%3Cpath d='M3 12.5l9 4.5 9-4.5'/%3E%3Cpath d='M3 17l9 4.5 9-4.5'/%3E%3C/svg%3E"); }

/* What the record carries: small labels in the sage, gathering stage by
   stage. Wide, one sage line runs behind them from stage to stage. Sage
   on white is 5.82. */
.svc-lane--thread dd { display: flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; align-content: flex-start; position: relative; }
.svc-carry {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-xs);
  background: var(--color-white);
  border: 1px solid var(--color-accent-text);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-ui);
  color: var(--color-accent-text);
}
@media (min-width: 64rem) {
  .svc-lane--thread dd::before {
    content: "";
    position: absolute;
    left: 0;
    right: calc(-1 * var(--space-md));
    top: calc(var(--space-sm) + 0.5lh);
    border-top: 2px solid var(--color-accent-text);
  }
  .svc-stage:last-child .svc-lane--thread dd::before { right: 0; }
}

/* The storyboard: one small scene over each stage, as the Aisle journey
   has: a grantee applying from her market stall, a reviewer comparing
   pages, the grantee reporting on a tablet, two people deciding from a
   chart. Drawn in the Aisle scenes' style, in one ChatGPT chat with one
   cast, cut to 720x480, and alt="", because the stage's name under each
   says what it shows. */
.svc-scene {
  display: block;
  width: 100%;
  max-width: 15rem;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 0 var(--space-sm);
  border-radius: 12px;
}
@media (min-width: 64rem) {
  .svc-scene {
    grid-row: 1;
    grid-column: calc(var(--svc-i) + 2);
    max-width: none;
    border: 1px solid var(--rule-card);
  }
}

/* ---------- Narrow: the stages side by side ----------
   Since 2026-10-29, under 64rem the four stages sit in a row the reader
   swipes along, as the journey runs, rather than in a column nearly four
   screens tall, where "Apply" was out of sight by "Analyze and decide"
   and no lane could be read across the stages. Each stage still names
   its own lanes.

   - The row reaches the figure's edges, and each stage is the figure's
     width less --space-3xl (never more than 20rem), so the next stage
     shows at the right and says there is more without a word. Each swipe
     stops on one stage.
   - The lanes line up across the stages: each stage is a subgrid of the
     row, so "Before" sits at one height in all four, and a swipe made
     while reading a lane lands on the same lane. A browser without
     subgrid gets the same cards, unaligned.
   - map-rail.js puts the stage discs over the row as buttons, the current
     one filled (map-rail.css). Without the script the row still swipes.
   From 64rem none of this applies, and the grid above is unchanged. */
@media (max-width: 63.98rem) {
  .svc-map .svc-stages {
    grid-auto-flow: column;
    grid-auto-columns: min(calc(100% - var(--space-3xl)), 20rem);
    gap: 0 var(--space-sm);
    margin-inline: calc(-1 * var(--space-md));
    padding: 0 var(--space-md);
    scroll-padding-inline: var(--space-md);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .svc-map .svc-stages::-webkit-scrollbar { display: none; }
  .svc-map .svc-stages:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
  /* The drawing beside the name, not over it, so a whole stage fits on a
     phone under the page's two bars. */
  .svc-stage {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    column-gap: var(--space-sm);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .svc-scene { grid-column: 1; grid-row: 1; margin: 0 0 var(--space-sm); }
  .svc-map .svc-stage-name {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-2xs);
  }
  .svc-map .svc-stage-name .svc-n { margin-top: 0; }
  .svc-lanes, .svc-lane { grid-column: 1 / -1; }
  @supports (grid-template-rows: subgrid) {
    /* Four rows a stage: the drawing and name, and the three lanes. */
    .svc-map .svc-stages { grid-template-rows: repeat(4, auto); }
    .svc-stage { grid-row: span 4; grid-template-rows: subgrid; }
    .svc-lanes { display: contents; }
    /* The cell takes what its row leaves, so the After tiles are one
       height across the four. */
    .svc-lane { grid-template-rows: auto 1fr; align-content: start; }
  }
}
@media (min-width: 640px) and (max-width: 63.98rem) {
  .svc-map .svc-stages {
    margin-inline: calc(-1 * var(--space-xl));
    padding: 0 var(--space-xl);
    scroll-padding-inline: var(--space-xl);
  }
}

/* On the write-up template the map sits in the page's column, whose
   figures default to --col-wide; it ran the full frame before, and its
   four stages and their lanes need it. */
@media (min-width: 1024px) {
  .container.case-narrow > .svc-map { width: var(--col-full); max-width: var(--col-full); }
}

/* ---------- The process diagram ----------
   Since 2026-11-03 the USDA page's process diagram sits above the map in
   the same card and caption (.svc-map, .svc-kicker, .svc-title,
   .svc-standing). The picture fills the card's width. */
.svc-process-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- One claim under the map ----------
   Since 2026-11-03 the map opens The impact and keeps one claim, the one
   no cell states, so the summary is a single column at the measure
   rather than a third of a three-column grid. */
@media (min-width: 64rem) {
  .svc-short-list--one { display: block; max-width: var(--measure); }
}
.svc-network { margin: 0 0 var(--space-md); max-width: var(--measure); }
/* In The impact the map is followed by its own line of figures, not by
   another chapter, so it keeps the gap a paragraph does. */
.svc-map:has(+ .svc-network) { margin-bottom: var(--space-xl); }

/* ---------- The phase discs ----------
   Since 2026-11-03 the four chapter headings under My approach each carry a numbered disc in that phase's colour from
   the process diagram, as the diagram's legend (#1233 made them one sage disc for a redrawn diagram; both came back the same day). The three fills are the
   picture's own inks, so they are artwork by COLOR.md section 6, declared
   here under artwork-only names and spent on nothing else. The disc is
   one line box tall, so it centres on the heading's line by construction. */
.svc-phase-head {
  --phase-research: #d14f55;
  --phase-architecture: #fdd531;
  --phase-visual: #7ed1e1;
  --phase-interface: #4e9acd;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.svc-phase-disc {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1lh;
  height: 1lh;
  border-radius: 50%;
  color: var(--color-charcoal);
}
/* The disc takes the heading's size, so 1lh is the heading's line; the
   digit inside is set at the body size. */
.svc-phase-disc > span {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.svc-phase-disc--1 { background: var(--phase-research); color: var(--color-white); }
.svc-phase-disc--2 { background: var(--phase-architecture); }
.svc-phase-disc--3 { background: var(--phase-visual); }
.svc-phase-disc--4 { background: var(--phase-interface); color: var(--color-white); }
