/* =========================================================================
   DS v4 — INDEX SWEEP COMPONENTS — guidance/legislation/regulator/export
   indexes + editorial update pages. From the design handoff indexes.css;
   builds on ds4/core.css + ds4/start.css. Dark scope adapted → .dark.
   ========================================================================= */

.scope-line { font-size: 13px; line-height: 20px; color: var(--color-text-muted); margin: calc(24px * var(--rk)) 0 0; font-variant-numeric: tabular-nums; }
.scope-line strong { color: var(--color-accent-text); font-weight: 600; }

/* ---- badge family (constant hue light/dark) -------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--border-radius-pill); padding: 2px 10px; font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: 0.01em; white-space: nowrap; }
.badge--legislation { background: rgba(124,58,237,.1); color: #6d28d9; }
.badge--neutral { background: var(--color-bg-elevated); color: var(--color-text-secondary); border: 1px solid var(--color-border-light); }
.dark .badge--neutral { background: var(--color-bg-inset); color: var(--color-text-secondary); border-color: var(--color-border); }
.badge--affects { background: var(--color-accent-subtle); color: var(--color-accent-text); }
.badge--upcoming { background: rgba(59,130,246,.12); color: #1d4ed8; }
.badge--severe { background: rgba(212,53,28,.1); color: #b3261a; }
.badge--penalty { background: rgba(245,158,11,.14); color: #92590a; }
.dark .badge--legislation { background: rgba(139,92,246,.22); color: #c4b5fd; }
.dark .badge--upcoming { background: rgba(59,130,246,.24); color: #93c5fd; }
.dark .badge--severe { background: rgba(239,68,68,.22); color: #fca5a5; }
.dark .badge--penalty { background: rgba(245,158,11,.2); color: #fcd34d; }
.badge-date { font-size: 13px; line-height: 20px; color: var(--color-text-muted); font-weight: 500; }

/* ---- controls bar: segmented browse-by + filter pills ----------------------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: calc(32px * var(--rk)); padding-bottom: calc(20px * var(--rk)); border-bottom: 1px solid var(--color-border-light); }
.ctl-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: var(--tracking-caps, 0.1em); text-transform: uppercase; color: var(--color-text-muted); }
.ctl-group { display: flex; align-items: center; gap: 12px; }
.seg { display: flex; background: var(--color-bg-elevated); border: 1px solid var(--color-border-light); border-radius: var(--border-radius-pill); padding: 3px; }
.seg a { padding: 5px 16px; border-radius: var(--border-radius-pill); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--color-text-secondary); text-decoration: none; transition: color var(--transition-base); }
.seg a:hover { color: var(--color-text-primary); }
.seg a.on { background: var(--color-bg-white); color: var(--color-text-primary); box-shadow: var(--shadow-sm); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { padding: 4px 14px; border-radius: var(--border-radius-pill); font-size: 13px; line-height: 20px; font-weight: 600; color: var(--color-text-secondary); background: var(--color-bg-white); border: 1px solid var(--color-border-light); text-decoration: none; transition: border-color var(--transition-base), color var(--transition-base); }
.pills a:hover { border-color: color-mix(in srgb, var(--color-accent) 50%, transparent); color: var(--color-accent-text); }
.pills a.on { background: var(--color-accent-subtle); border-color: color-mix(in srgb, var(--color-accent) 36%, transparent); color: var(--color-accent-text); }

/* ---- jump-to row ------------------------------------------------------------ */
.jump { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: calc(24px * var(--rk)); font-size: 14px; line-height: 20px; }
.jump a { color: var(--color-text-secondary); text-decoration: none; font-weight: 500; }
.jump a:hover { color: var(--color-link); text-decoration: underline; }
.jump sup { color: var(--color-text-muted); font-size: 11px; margin-left: 2px; font-variant-numeric: tabular-nums; }
.jump .spacer { flex: 1; }
.jump button { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: var(--tracking-caps, 0.1em); text-transform: uppercase; color: var(--color-text-muted); cursor: pointer; }
.jump button:hover { color: var(--color-text-primary); }
.jump .section-nav__controls { display: inline-flex; gap: 20px; }
/* T-259 slim variant: a single eyebrow-styled anchor row — no counts, no controls */
.jump--slim a { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: var(--tracking-caps, 0.1em); text-transform: uppercase; color: var(--color-text-muted); }
.jump--slim a:hover { color: var(--color-link); text-decoration: none; }

/* ---- collapsible group — flat: heading row on the page ground, one box
   level only (the guide cards). Card-in-card chrome removed. ----------------- */
.group { border-top: 1px solid var(--color-border-light); margin-top: calc(32px * var(--rk)); padding-top: calc(24px * var(--rk)); scroll-margin-top: 24px; }
.group:first-of-type { border-top: 0; }
.group summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; user-select: none; }
.group summary::-webkit-details-marker { display: none; }
.group summary::marker { content: ""; }
.group summary h2 { font-size: 24px; line-height: 28px; letter-spacing: -0.015em; font-weight: 650; margin: 0; }
.group summary .desc { font-size: 14px; line-height: 20px; color: var(--color-text-muted); }
.group summary .count { margin-left: auto; font-size: 13px; line-height: 20px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.group summary .caret { width: 16px; height: 16px; color: var(--color-text-muted); align-self: center; transition: transform var(--transition-base); flex: none; }
.group[open] summary .caret { transform: rotate(180deg); }
.group .group-more { margin-top: calc(16px * var(--rk)); }
.group .group-more > summary {
  display: inline-flex;
  color: var(--color-link);
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.group .group-more > summary:hover { text-decoration-thickness: 2px; }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; margin-top: calc(20px * var(--rk)); }
@media (max-width: 700px) { .g-grid { grid-template-columns: 1fr; } }
.g-card { display: flex; flex-direction: column; gap: 4px; background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: var(--border-radius-md); padding: 16px 20px; text-decoration: none; color: inherit; transition: box-shadow var(--transition-base), border-color var(--transition-base); }
.g-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-border); }
.g-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.g-card h3 { font-family: var(--font-heading); font-size: 17px; line-height: 24px; letter-spacing: -0.005em; font-weight: 600; margin: 0; color: var(--color-link); }
.g-card p { font-size: 14px; line-height: 20px; color: var(--color-text-secondary); margin: 0; }

/* topic-hub category groups: several sibling groups per page, so the heads sit
   between the page-scale sec-head (32px, start.css) and the 17px card titles */
.sec-head--group h2 { font-size: 20px; line-height: 26px; }
/* grid cell wrapping a card plus optional badge/why-line; the card grows so
   every card in a row shares the same bottom edge */
.g-cell { display: flex; flex-direction: column; gap: 6px; }
.g-cell .g-card { flex: 1; }

/* ---- filter bar (legislation) — flat, capped so search doesn't sprawl ------- */
.filters { margin-top: calc(32px * var(--rk)); padding-bottom: calc(24px * var(--rk)); border-bottom: 1px solid var(--color-border-light); display: grid; grid-template-columns: minmax(200px, 420px) minmax(140px, 200px) minmax(160px, 240px) auto; gap: 16px; align-items: end; }
@media (max-width: 880px) { .filters { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 6px; }
.field input, .field select { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 24px; padding: 7px 12px; border: 1px solid var(--color-border); border-radius: var(--border-radius-sm, 8px); background: var(--color-bg-white); color: var(--color-text-primary); }
.field input:focus, .field select:focus { outline: 3px solid var(--color-accent); outline-offset: 2px; border-color: var(--color-accent); }
.field input::placeholder { color: var(--color-text-muted); }
.dark .field input, .dark .field select { background: var(--color-bg-elevated); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--color-accent-fill); color: var(--color-accent-fill-ink, #fff); font-weight: 600; font-size: 15px; line-height: 24px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; padding: 8px 20px; border-radius: var(--border-radius-pill); transition: background var(--transition-base); }
.btn:hover { background: var(--color-accent-fill-hover); }
.btn--ghost { background: var(--color-bg-white); color: var(--color-text-primary); border: 1px solid var(--color-border); }
.btn--ghost:hover { background: var(--color-bg-elevated); }
.dark .btn--ghost { background: transparent; color: var(--color-text-primary); }
.dark .btn--ghost:hover { background: var(--color-bg-elevated); }
.btn-row { display: flex; gap: 8px; }

/* ---- entity tiles (legislation register) ------------------------------------ */
.ent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: calc(20px * var(--rk)); }
@media (max-width: 700px) { .ent-grid { grid-template-columns: 1fr; } }
.ent { display: flex; flex-direction: column; gap: 6px; background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-sm); padding: 20px 24px; transition: box-shadow var(--transition-base); }
.ent:hover { box-shadow: var(--shadow-md); }
.ent-meta { display: flex; align-items: center; gap: 10px; }
.ent h2 { font-size: 20px; line-height: 24px; letter-spacing: -0.01em; font-weight: 600; margin: 2px 0 0; }
.ent h2 a { color: var(--color-link); text-decoration: none; }
.ent h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.ent .full { font-size: 14px; line-height: 20px; color: var(--color-text-muted); margin: 0; }
.ent .enf { font-size: 14px; line-height: 20px; color: var(--color-text-secondary); margin: 0; }
.ent .enf a { color: var(--color-link); text-decoration: none; font-weight: 600; }
.ent .enf a:hover { text-decoration: underline; }
/* Curated "no enforcer exists" (Legislation.no_statutory_enforcer) — same slot
   as the Enforced-by line, quieter, and it carries no link to follow. */
.ent .enf--none { color: var(--color-text-muted); }
.ent-actions { display: flex; align-items: center; gap: 20px; margin-top: auto; padding-top: 12px; }
.ent-actions .go { color: var(--color-link); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; }
.ent-actions .go:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.ext { display: inline-flex; align-items: center; gap: 6px; color: #1d70b8; font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; }
.ext:hover { text-decoration: underline; }
.ext svg { width: 12px; height: 12px; }
.dark .ext { color: var(--official-blue-on-dark, #7fb3e8); }
/* favicon + domain provenance chip (appended by ds4-extlinks.js). inline-flex
   stops the anchor's hover underline propagating into the chip. */
.ext-src { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--color-text-muted); }
.ext-src img { width: 14px; height: 14px; border-radius: 3px; flex: none; }
/* prose links that leave Guvnor (richtext, decorated by ds4-extlinks.js) */
.richtext a .ext-favicon { width: 14px; height: 14px; border-radius: 3px; display: inline-block; vertical-align: -2px; margin-right: 5px; }
.richtext a .ext-arrow { width: 11px; height: 11px; display: inline-block; margin-left: 3px; vertical-align: baseline; }

.pager { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: calc(40px * var(--rk)); font-size: 14px; line-height: 20px; }
.pager a { color: var(--color-link); font-weight: 600; text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager .pg { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

/* ---- regulator / bloc cards -------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: calc(24px * var(--rk)); }
@media (max-width: 700px) { .card-grid { grid-template-columns: 1fr; } }
.e-card { display: flex; flex-direction: column; gap: 6px; background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-sm); padding: 20px 24px; transition: box-shadow var(--transition-base); }
.e-card:hover { box-shadow: var(--shadow-md); }
.e-card h3 { font-size: 20px; line-height: 24px; letter-spacing: -0.01em; font-weight: 600; margin: 0; }
.e-card h3 a { color: var(--color-link); text-decoration: none; }
.e-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.e-card .sub { font-size: 13px; line-height: 20px; color: var(--color-text-muted); margin: 0; }
.e-card .body { font-size: 14px; line-height: 20px; color: var(--color-text-secondary); margin: 2px 0 0; }
.e-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.e-card .foot { display: flex; align-items: center; gap: 20px; margin-top: auto; padding-top: 12px; }
.e-card .foot .go { color: var(--color-link); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; }
.e-card .foot .go:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---- row links (regions, browse-all) ----------------------------------------- */
.row-links { display: flex; flex-direction: column; gap: 8px; margin-top: calc(24px * var(--rk)); }
.row-links--2col { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .row-links--2col { grid-template-columns: 1fr; } }
.row-link { display: flex; align-items: center; gap: 16px; background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: var(--border-radius-md); padding: 14px 20px; text-decoration: none; color: inherit; transition: box-shadow var(--transition-base), border-color var(--transition-base); }
.row-link:hover { box-shadow: var(--shadow-md); border-color: var(--color-border); }
.row-link:hover .name { text-decoration: underline; text-decoration-thickness: 2px; }
.row-link .name { font-family: var(--font-heading); font-size: 17px; line-height: 24px; font-weight: 600; color: var(--color-link); }
.row-link .meta { margin-left: auto; font-size: 13px; line-height: 20px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.row-link svg { width: 14px; height: 14px; color: var(--color-accent); flex: none; }

/* ---- market cards (export) ---------------------------------------------------- */
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: calc(24px * var(--rk)); }
@media (max-width: 760px) { .mk-grid { grid-template-columns: 1fr 1fr; } }
.mk { display: flex; flex-direction: column; gap: 8px; background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-sm); padding: 20px; text-decoration: none; color: inherit; transition: box-shadow var(--transition-base); }
.mk:hover { box-shadow: var(--shadow-md); }
.mk:hover .name { text-decoration: underline; text-decoration-thickness: 2px; }
.mk-flag { font-size: 26px; line-height: 28px; }
.hero-flag { font-size: 0.82em; margin-right: 2px; }
/* country-profile fact grid (market detail) — a card of facts, not hairline rows */
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(20px * var(--rk)) 32px; margin: calc(24px * var(--rk)) 0 0; }
@media (max-width: 760px) { .fact-grid { grid-template-columns: 1fr 1fr; } }
.fact-grid dt { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: var(--tracking-caps, 0.1em); text-transform: uppercase; color: var(--color-text-muted); }
.fact-grid dd { margin: 4px 0 0; font-size: 17px; line-height: 24px; font-weight: 500; color: var(--color-text-primary); font-variant-numeric: tabular-nums; }
.mk .name { font-family: var(--font-heading); font-size: 17px; line-height: 24px; font-weight: 600; color: var(--color-link); }
.mk .region { font-size: 13px; line-height: 20px; color: var(--color-text-muted); }
.mk .badge { align-self: flex-start; }

/* ---- editorial update page ---------------------------------------------------
   No TOC rail, but the article tracks the guidance template's content column:
   1360 shell − 80 padding − 260 rail − 64 gutter = 956px. One token, so the
   article, the notices above it and the footer blocks below it cannot desync. */
:root { --ed-column: 956px; }
.ctx-grid, .ed-body, .ed-notice, .rel-updates { max-width: var(--ed-column); }
/* instrument frontmatter line in the hero (replaced the "Change event" band).
   It reads as the continuation of the lead, so it takes the lead's column: ch
   resolves against the element's OWN font-size, so the lead's 46ch at 21px is
   rescaled by 21/14 to break on the same physical line (same trick as
   .checks__detail in core.css). Long instrument names then wrap inside the
   hero text column instead of running the full shell. */
.ed-src { margin: 14px 0 0; font-size: 14px; line-height: 20px; color: var(--color-text-muted); max-width: calc(46ch * 21 / 14); }
@media (max-width: 720px) { .ed-src { max-width: calc(46ch * 18 / 14); } } /* the lead drops to 18px here (core.css) — the ratio has to follow or the cap inverts */
.ed-src a { color: var(--color-link); font-weight: 600; text-decoration: none; }
.ed-src a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.ed-src .eff { font-variant-numeric: tabular-nums; }
/* context block (editorial) — the eyebrow-labelled reference blocks that close
   the article. No longer a grid despite the name (kept to avoid template
   churn): the columns are stacked so Related guidance, Affected legislation
   and Related updates read as ONE footer system on one rhythm — same eyebrow,
   same full-width hairline rows, same 40px block spacing as .rel-updates.
   The old two-column layout wrapped titles over three lines at ~450px and
   looked unrelated to the .rel rows directly beneath it. */
.ctx-grid { display: flex; flex-direction: column; gap: calc(40px * var(--rk)); margin-top: calc(40px * var(--rk)); padding-top: calc(24px * var(--rk)); border-top: 1px solid var(--color-border-light); }
.ctx h2 { font-family: var(--font-stack); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: var(--tracking-caps, 0.1em); text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 4px; }
.ctx ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
/* rows carry the .rel metrics and heading scale minus the badge and date —
   referenced_guides is a bare M2M, so there is no description to show. The
   type sits on the li, not the anchor: referenced_legislation falls back to
   plain text when the row has no detail page, and that row must match. */
.ctx li { font-family: var(--font-heading); font-size: 17px; line-height: 24px; font-weight: 600; color: var(--color-text-secondary); padding: calc(20px * var(--rk)) 0; border-top: 1px solid var(--color-border-light); }
.ctx li:first-child { border-top: 0; }
.ctx li:has(a) { padding: 0; } /* the anchor takes the padding so the whole row is clickable */
.ctx li a { display: block; padding: calc(20px * var(--rk)) 0; color: var(--color-link); text-decoration: none; }
.ctx li a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.ctx .tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* the stale / superseded notices stack above the article on the component
   beat, and hang like every other box in the column (boxes hang, text aligns
   — core.css). Without the cap they ran the full 1200px .idx-main and left
   the article's 956px column looking like a different page. */
.ed-notice { margin-top: calc(32px * var(--rk)); }
.ed-body { margin-top: calc(32px * var(--rk)); } /* article starts a guide-page beat after the frontmatter */
@media (min-width: 721px) { .ed-notice { max-width: calc(var(--ed-column) + 50px); margin-inline: -25px; } } /* +2×25px outdent: the box hangs, its text stays on the column */

/* ---- editorial article rhythm — one engine owns the vertical beat ----------
   Editorial blocks render as bare .flow children; guide_page.html wraps each
   block in a <section>, which hides the block from every .flow > component
   rule and leaves the section's own 24px beat to collapse against whatever
   the block's first child brings. Editorial has no wrapper, so the engine's
   component rules apply directly — once three leaks that were out-collapsing
   them are closed:
   1. the opening h2 is nested inside .richtext, so .flow > :first-child never
      reached it; its 64px section beat collapsed out through the article and
      landed on top of .ed-body's own margin, so the gap under the hero read
      112px against the guide column's 48px;
   2. a block's trailing <p> carries foundations' 24px margin-bottom, which
      escapes the unpadded .richtext wrapper and out-collapses the component
      beat — so a block ending in prose and one ending in a list handed the
      next component two different gaps (24px vs 11px);
   3. .callout--req declares its own margin-top (journeys.css, which loads
      after core.css and so wins the 0-1-0 tie against
      .flow > :where(.callout)), so amber callouts took a 16px beat where teal
      ones took 32px. Guide pages escape this only because their <section>
      wrapper hides the callout from the flow engine — the collision is latent
      there, not absent. */
.ed-body.flow > .richtext > :last-child { margin-bottom: 0; }
.ed-body.flow > :is(.callout, .deflist, .linklist, .official, .snippet) { margin-top: calc(32px * var(--rk)); }
.ed-body.flow > .linklist + .linklist { margin-top: 0; } /* core.css's fused list, re-asserted at the raised specificity */
.ed-body.flow > :first-child { margin-top: 0; }
.ed-body.flow > :first-child > :first-child { margin-top: 0; } /* .flow > :first-child, one level down: the block templates nest the heading */

/* in-article data points — a framed at-a-glance panel. It is a boxed
   component, so it runs the full article column and hangs by its own
   padding+border exactly like the callouts it sits between; only prose keeps
   the measure. (It used to stop at the measure + 50px, which put two boxed
   components on the page at two different widths.) The container is the
   quietest surface the DS has — .g-card's neutral ground, no shadow — so it
   never outranks a callout, and its tokens carry dark mode unaided.
   Child combinator only: deflists nested inside a callout or snippet keep
   their host's treatment. */
.ed-body > .deflist { padding: 16px 24px; background: var(--color-bg-white); border: 1px solid var(--color-border-light); border-radius: var(--border-radius-md); }
.ed-body > .deflist > div:last-child { padding-bottom: 0; } /* row padding + box padding would double the bottom inset */
@media (min-width: 721px) { .ed-body > .deflist { margin-inline: -25px; } }
/* related-updates: a reference block like the ctx footer, not a content section —
   the display-h2 style is reserved for written content, eyebrows label UI */
.rel-updates { margin-top: calc(40px * var(--rk)); }
/* with no ctx footer above it the related block IS the footer's top edge, so
   it takes the hairline and the inset .ctx-grid would have carried */
.ed-body + .rel-updates { padding-top: calc(24px * var(--rk)); border-top: 1px solid var(--color-border-light); }
.rel-updates .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.rel-updates .sec-head h2 { font-family: var(--font-stack); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: var(--tracking-caps, 0.1em); text-transform: uppercase; color: var(--color-text-muted); margin: 0; }
.rel-updates .sec-head .sec-link { font-size: 13px; line-height: 20px; }
.rel-updates .rel-list { margin-top: 4px; }

/* related updates — flat editorial rows, matching .journeys */
/* ---- eyebrow-demoted headings ----------------------------------------------
   MA rule: display-h2 style is reserved for written content; UI labels
   ("Related journeys", "Related resources") wear the tracked-caps eyebrow.
   Lives in indexes.css so it out-orders .sec-head h2 (start.css) and
   .related h2 (core.css) on the specificity tie. */
h2.h-eyebrow, h3.h-eyebrow, .h-eyebrow { font-family: var(--font-stack); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: var(--tracking-caps, 0.1em); text-transform: uppercase; color: var(--color-text-muted); margin: 0; }
.related h2.h-eyebrow { margin: 0 0 16px; }
.flow > .h-eyebrow { margin-top: calc(48px * var(--rk)); } /* the utility's margin:0 must not eat the flow's section beat */

/* ---- /updates/ news front --------------------------------------------------- */
.upd-lede { margin-top: calc(8px * var(--rk)); }
.upd-lede h2 { font-family: var(--font-heading); font-size: 32px; line-height: 36px; letter-spacing: -0.02em; font-weight: 650; margin: 10px 0 0; max-width: 26ch; text-wrap: balance; }
.upd-lede h2 a { color: var(--color-text-primary); text-decoration: none; }
.upd-lede h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--color-accent); }
.upd-lede__summary { font-size: 17px; line-height: 28px; color: var(--color-text-secondary); max-width: var(--measure); margin: 10px 0 0; text-wrap: pretty; }
.upd-lede__trigger { font-size: 13px; line-height: 20px; color: var(--color-text-muted); margin: 10px 0 0; }
.upd-lede__trigger strong { color: var(--color-text-secondary); font-weight: 600; }
/* the secondary-card row is its own beat below the lede package, not glued to the trigger line */
.upd-lede + .g-grid { margin-top: calc(40px * var(--rk)); }
.upd-river { display: flex; flex-direction: column; margin-top: calc(8px * var(--rk)); }
.upd-month { font-family: var(--font-stack); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: var(--tracking-caps, 0.1em); text-transform: uppercase; color: var(--color-text-muted); margin: calc(28px * var(--rk)) 0 8px; }
.upd-row { display: grid; grid-template-columns: 52px auto 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--color-border-light); text-decoration: none; color: inherit; }
.upd-row time { font-size: 13px; line-height: 20px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.upd-row .t { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--color-link); }
.upd-row:hover .t { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 560px) { .upd-row { grid-template-columns: 52px 1fr; } .upd-row .badge { display: none; } }

.rel-list { display: flex; flex-direction: column; margin-top: calc(16px * var(--rk)); }
.rel { display: flex; flex-direction: column; gap: 6px; padding: calc(20px * var(--rk)) 0; border-top: 1px solid var(--color-border-light); text-decoration: none; color: inherit; }
.rel:first-child { border-top: 0; }
.rel:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.rel .badge { align-self: flex-start; }
.rel h3 { font-family: var(--font-heading); font-size: 17px; line-height: 24px; font-weight: 600; margin: 0; color: var(--color-link); }
.rel time { font-size: 13px; line-height: 20px; color: var(--color-text-muted); }

/* ---- cross-link strip --------------------------------------------------------- */
.xlink { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; border-top: 1px solid var(--color-border-light); margin-top: calc(64px * var(--rk)); padding-top: calc(32px * var(--rk)); }
.xlink h2 { font-size: 20px; line-height: 24px; letter-spacing: -0.01em; font-weight: 600; margin: 0; }
.xlink p { font-size: 15px; line-height: 24px; color: var(--color-text-secondary); margin: 4px 0 0; max-width: 56ch; }

/* wide desktop — denser grids on the full-width shell */
@media (min-width: 1200px) {
  .g-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .mk-grid { grid-template-columns: repeat(4, 1fr); }
  .ent-grid { grid-template-columns: repeat(3, 1fr); }
  .ed-src { max-width: calc(54ch * 21 / 14); } /* tracks the lead's wide-desktop measure */
}

@media print {
  .group, .e-card, .ent, .mk, .ctx, .rel { break-inside: avoid; }
  .controls, .jump, .filters, .pager { display: none; }
}
