/*
 * ET Group Justice: Approach (/justice/approach/) only. Loaded after justice.css and subnav.css.
 * Ported from John's Approach design as revised Nov 24 with Robbie's feedback (approach.css, then approach/<part>.css
 * in page order: hero, build, closing) by qa/approach/port_css.py: every selector scoped under .etgj; class
 * prefix ap-. Reveals: the page's units carry data-etgj-reveal with an inline --i stagger (the design's approach.js
 * tags them at runtime as data-ap-reveal / --ap-i); justice.js reveals them. No page script.
 */

/* ---------- Page-scoped fixes where the shared port differs from this design ---------- */
/* Shared candidate: the design (v45.css) re-declares --rule-grad on sections after the hero, so their hairlines use that
   section's --line (.12); justice.css declares it once on .etgj, where --line is .13 */
.etgj .etgj-sheet:not(.etgj-sheet--hero) { --rule-grad: linear-gradient(var(--line), var(--line)); }
/* the design staggers only what approach.js numbered; justice.css's nth-child stagger for [data-etgj-reveal] would add
   delays the design never had (statements keep the shared --i: 1, as in motion.css) */
.etgj.etgj-page-approach [data-etgj-reveal]:not([style], .etgj-statement) { --i: 0; }
/* Shared candidate: in the design the focus ring's 4px corner (.etg-justice :focus-visible) outranks the button's own
   radius (unscoped there), so a focused button squares off to 4px; scoping evened that out. (The stage cards now set
   their own 16px focus radius in the design.) */
.etgj .etgj-btn:focus-visible { border-radius: 4px; }

/* ==================== approach.css ==================== */
/* ---------- Heading row: title (with its stage eyebrow) on 1 to 5, the copy on 7 to 12 ---------- */
.etgj .ap-copy > p { margin: 0; }
.etgj .ap-copy > p + p { margin-top: 16px; }
.etgj .ap-copy > .etgj-statement + p { margin-top: 20px; }

/* A row title inside a sheet (the brief's sub-headings): the strip title's size */
.etgj .ap-h3 { margin: 0 0 16px; font: 400 var(--fs-subtitle)/1.15 var(--ff-display); letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }

/* Block spacing: one gap between the blocks of a sheet (the head gap), each block opening on a hairline */
.etgj .ap-block { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; margin-top: var(--head-gap); padding-top: var(--head-gap); background: var(--rule-grad) left top / 100% 1px no-repeat; }
/* The ruled list closes on its own bottom line */
.etgj .ap-conf { border-bottom: 1px solid var(--line); }
.etgj .ap-block p { margin: 0 0 16px; }
.etgj .ap-block p:last-child { margin-bottom: 0; }

/* Small grey label over a list or a figure */
.etgj .ap-label { margin: 0 0 16px; font: 400 var(--fs-small)/1.4 var(--ff); color: var(--grey); }

/* ======================================================================================================
   Stage template (Nov 19, Robbie: "Could we establish a consistent structure across the stages?").
   All five stage sheets (parts 02 to 06) are built from these pieces only, in this order:
   1. Head (.etgj-head): stage eyebrow and title on 1 to 5; the opening statement (any second paragraph, any
      related link) on 7 to 12, level with the title.
   2. Topic (.ap-topic.ap-block): opens on a hairline. Heading and copy on 1 to 5 (.ap-topic__text), with the
      topic's own list or example under the copy; the topic's photo, render or media slot on 7 to 12
      (.ap-topic__media), always on the right, always 16:10, top-aligned with the heading. A topic with no photo
      puts its list there instead (.ap-topic__side), so the right column is never empty.
   3. Row (.ap-row): steps, activities and short items as one component: a small grey label, then ruled cells
      across 1 to 12, one cell per item (3, 4 or 5 to a row, so every row is full), each cell: number or icon,
      name, a line of text. A note under the row in small grey.
   4. List (.ap-list): ruled rows with square bullets (numbered variant for questions; two-column variant).
   5. Example (.ap-example): a hairline, the small grey "Example" label, the example in small text.
   Spacing: the head gap (64px) between every block; a topic after a row or after the head drops its hairline.
   ====================================================================================================== */

/* the first block under the head: the head's gap is enough */
.etgj .etgj-head + .ap-block { margin-top: 0; padding-top: 0; background: none; }
.etgj .etgj-head + .ap-row { margin-top: 0; }
/* a topic after a row: the row's bottom rule is the divider */
.etgj .ap-row + .ap-block { padding-top: 0; background: none; }

/* ---------- Topic ---------- */
.etgj .ap-topic__text { grid-column: 1 / 6; }
.etgj .ap-topic__media, .etgj .ap-topic__side { grid-column: 7 / -1; margin: 0; }
.etgj .ap-topic__media .etgj-media { aspect-ratio: 16 / 10; margin: 0; }
.etgj .ap-media--right .etgj-media { object-position: 80% 50%; }   /* keeps the headset wearer in frame */
.etgj .ap-topic__text .ap-label { margin: 24px 0 12px; }
.etgj .ap-topic__text .ap-h3 + .ap-label { margin-top: 0; }
.etgj .ap-topic__text > .ap-list { margin: 0 0 20px; }
.etgj .ap-topic__text > .ap-list:last-child { margin-bottom: 0; }
.etgj .ap-topic__text > .ap-list + p { margin-top: 0; }
.etgj .ap-topic__lead { margin: 0; font: 400 var(--fs-heading)/1.25 var(--ff-display); letter-spacing: -0.01em; color: var(--ink); }
/* a second heading inside one topic (Support's two levels of service): on its own hairline */
.etgj .ap-topic__text .ap-topic__next { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- Row of ruled cells ---------- */
.etgj .ap-row { grid-column: 1 / -1; margin-top: var(--head-gap); }
.etgj .ap-cells { display: grid; grid-template-columns: repeat(var(--ap-n, 4), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.etgj .ap-cells--3 { --ap-n: 3; }
.etgj .ap-cells--4 { --ap-n: 4; }
.etgj .ap-cells--5 { --ap-n: 5; }
.etgj .ap-cells > li { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px var(--cell-pad) 32px; }
.etgj .ap-cells--5 > li { padding-inline: 24px; }
.etgj .ap-cells > li + li { box-shadow: inset 1px 0 0 var(--line); }
.etgj .ap-cells > li:first-child { padding-left: 0; }
.etgj .ap-cells > li:last-child { padding-right: 0; }
.etgj .ap-cell__name { display: block; margin: 0; font: 400 var(--fs-heading)/1.25 var(--ff-display); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.etgj .ap-cell__text { display: block; margin: 8px 0 0; font: 400 var(--fs-small)/1.5 var(--ff); color: var(--ink-2); }
.etgj .ap-cells .ap-label { margin: 24px 0 8px; }
.etgj .ap-cells .ap-list { align-self: stretch; border-bottom: 0; }   /* the row's own bottom rule closes it */
.etgj .ap-cells .ap-list li { font-size: var(--fs-small); padding: 8px 0; }
/* Nov 20 (John): cells whose parts must start level across the row (Stage 4): every cell shares the row's five
   lines (number, name, copy, list label, list), so "What this involves" and the first list item sit at the same
   height in each cell however long the copy above them runs */
@media (min-width: 961px) {
  .etgj .ap-cells--rows { grid-template-rows: repeat(4, auto) 1fr; }
  .etgj .ap-cells--rows > li { display: grid; grid-template-rows: subgrid; grid-row: span 5; align-items: start; }
}
.etgj .ap-row__note { margin: 16px 0 0; font: 400 var(--fs-small)/1.45 var(--ff); color: var(--grey); }

/* ---------- Number: the system's step number (etgj-flow__num), the one numbering style for steps ---------- */
.etgj .ap-num { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font: 500 13px/1 var(--ff); font-variant-numeric: tabular-nums; color: var(--ink); }
/* ---------- Icon tile: Corrections' services tile (neutral, lifted square), in place of a number where items are not steps ---------- */
.etgj .ap-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #E3E6EC; }
.etgj .ap-icon svg { width: 22px; height: 22px; }

/* ---------- List: ruled rows with the homepage's square bullets (etgj-path__list) ---------- */
.etgj .ap-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.etgj .ap-list li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font: 400 var(--fs-body)/1.45 var(--ff); color: var(--ink-2); }
.etgj .ap-list li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--grey); translate: 0 -3px; }
.etgj .ap-list--num li::before { content: none; }
.etgj .ap-list__num { flex: none; width: 24px; font: 500 13px/1 var(--ff); font-variant-numeric: tabular-nums; color: var(--grey); }
.etgj .ap-list--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Example: a hairline, the small grey label, the example in small text (illustration, not a project claim) ---------- */
.etgj .ap-block .ap-example { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font: 400 var(--fs-small)/1.55 var(--ff); color: var(--ink-2); }
.etgj .ap-example__label { display: block; margin-bottom: 6px; color: var(--grey); }

@media (max-width: 960px) {
  .etgj .ap-topic__media, .etgj .ap-topic__side { margin-top: 28px; }
  .etgj .ap-cells { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .etgj .ap-cells > li, .etgj .ap-cells > li + li, .etgj .ap-cells > li:first-child, .etgj .ap-cells > li:last-child, .etgj .ap-cells--5 > li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 18px 0; box-shadow: none; border-bottom: 1px solid var(--line); }
  .etgj .ap-cells > li:not(:has(> .ap-num, > .ap-icon)) { grid-template-columns: minmax(0, 1fr); }
  .etgj .ap-cells > li > :not(.ap-num, .ap-icon) { grid-column: -2; }
  .etgj .ap-cells > li > :is(.ap-num, .ap-icon) { grid-row: 1 / span 6; margin: 0; }
  .etgj .ap-cells .ap-cell__name { padding-top: 8px; }
  .etgj .ap-cells > li:not(:has(> .ap-num, > .ap-icon)) .ap-cell__name { padding-top: 0; }
}
@media (max-width: 520px) {
  .etgj .ap-list--2 { grid-template-columns: minmax(0, 1fr); }
}

/* A label on an image (the homepage's AI-label recipe): "VR concept view" on renders, so they're never read as photos */
.etgj .ap-media-wrap { position: relative; margin: 0; }
.etgj .ap-media-wrap > .etgj-media { margin: 0; }


/* A related link under the head's copy (Support), as the strip's link under its sentence */
.etgj .ap-copy > .etgj-link { margin-top: 20px; }

/* Anchor targets clear the sticky sub-nav */
.etgj [id^="stage-"], .etgj section[id] { scroll-margin-top: calc(var(--subnav-h, 64px) + 24px); }

@media (max-width: 960px) {
  .etgj .ap-block > * { grid-column: 1 / -1 !important; }
}

/* Section heads with the title on the left and copy on the right: the copy starts level with the title, not with
   the eyebrow above it (the eyebrow's line plus its 12px margin). Desktop only; on phones the head stacks. */
@media (min-width: 961px) {
  .etgj .etgj-head:not(.etgj-head--link, .etgj-head--stack, .etgj-head--center):has(> :first-child > .etgj-eyebrow:first-child) > :nth-child(2) {
    margin-top: calc(var(--fs-small) * 1.4 + 12px);
  }
}

/* Left-aligned text that spans from column 1 ends at the centre line (column 6), never across it: the stacked
   heads (title over statement) included. Desktop only; on phones everything is full width. */
@media (min-width: 961px) {
  .etgj .etgj-head--stack > :first-child, .etgj .etgj-head--stack > :nth-child(2) { grid-column: 1 / 7; }
}


/* Nov 19 revision round (John): every multi-line heading and paragraph on this page wraps with text-wrap: pretty
 * (no orphaned last words). Doubled class so it also wins over the shared sheet's text-wrap: balance rules. */
.etgj.etgj :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, blockquote, th, td) { text-wrap: pretty; }

/* ==================== approach/hero.css ==================== */
/*
 * Approach page, 01-hero. The homepage hero (text on 1 to 6) with an eyebrow across the top. On 7 to 12, in the
 * video's place, the brief's second paragraph as a card of three ruled rows. Under a hairline: the five
 * stages as linked cards in two columns (1 to 3 left, 4 and 5 right), each with its photo on the left. The
 * sheet closes at the standard bottom spacing (no logo band here).
 */
.etgj .ap-hero { padding-bottom: var(--sheet-y); }
.etgj .ap-hero .etgj-hero__lede { max-width: 32em; }

@media (min-width: 961px) {
  .etgj .ap-hero { row-gap: 0; }
  .etgj .ap-hero > .ap-hero-brand { grid-column: 1 / -1; grid-row: 1; margin: 0 0 16px; }
  .etgj .ap-hero > .etgj-hero__text { grid-row: 2; }
  /* the diagram's top meets the top of the headline's lowercase letters, as the Courts and Corrections cards do */
  .etgj .ap-hero > .ap-hero-chart { grid-column: 7 / -1; grid-row: 2; align-self: start; margin-top: calc(var(--fs-display) * 0.35); }
}

/* ---------- The brief's second paragraph: a card of three ruled rows (label over statement), the result last ---------- */
/* one card (the Apply cards' surface), the three rows inside it on hairlines */
.etgj .ap-flow { margin: 0; padding: 4px 28px; border-radius: 16px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); }
.etgj .ap-flow > div { padding: 22px 0 24px; }
.etgj .ap-flow > div + div { border-top: 1px solid var(--line); }
.etgj .ap-flow dt { margin: 0 0 8px; font: 400 var(--fs-small)/1.4 var(--ff); color: var(--grey); }
.etgj .ap-flow dd { margin: 0; font: 400 var(--fs-heading)/1.3 var(--ff-display); letter-spacing: -0.01em; color: var(--ink-2); text-wrap: pretty; }
.etgj .ap-flow__out dd { color: var(--ink); }   /* same size as the two above; brighter, as the outcome */

/* ---------- The stages: five linked cards in two columns ---------- */
/* Nov 20 (John): under a hairline, two columns: stages 1 to 3 down the left, 4 and 5 down the right. Every card is
   the same component: its photo on the left as part of the card, the number, name (with the red arrow-up-right) and
   line on the right. The list is six equal rows; a left card spans two and a right card three, so both columns end
   on the same line. */
.etgj .ap-stages { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; margin-top: var(--head-gap); padding-top: 40px; background: var(--rule-grad) left top / 100% 1px no-repeat; }
.etgj .ap-stages__nav { grid-column: 1 / -1; }
.etgj .ap-stages__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }

.etgj .ap-stage { position: relative; display: flex; grid-column: 1; grid-row: span 2; }
.etgj .ap-stage:nth-child(1) { grid-row: 1 / span 2; }
.etgj .ap-stage:nth-child(2) { grid-row: 3 / span 2; }
.etgj .ap-stage:nth-child(3) { grid-row: 5 / span 2; }
.etgj .ap-stage:nth-child(4) { grid-column: 2; grid-row: 1 / span 3; }
.etgj .ap-stage:nth-child(5) { grid-column: 2; grid-row: 4 / span 3; }
.etgj .ap-stage a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); flex: 1; min-height: 168px; overflow: hidden; border-radius: 16px; text-decoration: none; color: inherit; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s ease, background-color .25s ease; }
/* Nov 19 (Robbie: "I was not clear these were buttons to click on"): the hub's link language on every card. The name
   carries the system's link underline and the red arrow-up-right (18px, unrotated, as .etgj-link); on hover or
   keyboard focus the whole card lifts, the underline brightens and the arrow nudges up-right, as the homepage's
   linked cards (.etgj-path__link, .etgj-post__link). */
.etgj .ap-stage a:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.etgj .ap-stage a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 16px; }
/* the photo fills the card's left side at whatever height the card takes */
.etgj .ap-stage__media { position: relative; display: block; overflow: hidden; }
.etgj .ap-stage__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.etgj .ap-stage a:hover .ap-stage__media img { scale: 1.04; }
/* the numeral beside the name and line, centred in the card's height */
.etgj .ap-stage__text { align-self: center; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 24px 28px; }
/* the number: the system's step number (etgj-flow__num, as the page's other numbered steps), centred on the name's first line */
.etgj .ap-stage__num { grid-row: 1; align-self: start; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font: 500 13px/1 var(--ff); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--ink); }
.etgj .ap-stage__name { grid-column: 2; grid-row: 1; align-self: center; display: block; margin-bottom: 8px; font: 400 var(--fs-heading)/1.25 var(--ff-display); letter-spacing: -0.01em; color: var(--ink); }
.etgj .ap-stage__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line); transition: text-decoration-color .25s ease; }
.etgj .ap-stage__name::after {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-left: 10px; vertical-align: -0.05em; background: var(--red-bright);
  -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.etgj .ap-stage a:is(:hover, :focus-visible) .ap-stage__name { text-decoration-color: currentColor; }
.etgj .ap-stage a:is(:hover, :focus-visible) .ap-stage__name::after { transform: translate(3px, -3px); }
.etgj .ap-stage__line { grid-column: 2; display: block; font: 400 var(--fs-small)/1.45 var(--ff); color: var(--ink-2); text-wrap: pretty; }

/* Arrival: the stages rise in order after the hero */
@media (prefers-reduced-motion: no-preference) {
  .etgj.etgj-js .ap-hero-brand { opacity: 0; translate: 0 20px; animation: etgj-rise 600ms var(--ease) forwards; }
  .etgj.etgj-js .ap-flow > div { opacity: 0; translate: 0 20px; animation: etgj-rise 600ms var(--ease) forwards; }
  .etgj.etgj-js .ap-flow > div:nth-child(1) { animation-delay: 200ms; }
  .etgj.etgj-js .ap-flow > div:nth-child(2) { animation-delay: 280ms; }
  .etgj.etgj-js .ap-flow > div:nth-child(3) { animation-delay: 380ms; }
  .etgj.etgj-js .ap-stage { opacity: 0; translate: 0 20px; animation: etgj-rise 600ms var(--ease) forwards; }
  .etgj.etgj-js .ap-stage:nth-child(1) { animation-delay: 500ms; }
  .etgj.etgj-js .ap-stage:nth-child(2) { animation-delay: 580ms; }
  .etgj.etgj-js .ap-stage:nth-child(3) { animation-delay: 660ms; }
  .etgj.etgj-js .ap-stage:nth-child(4) { animation-delay: 740ms; }
  .etgj.etgj-js .ap-stage:nth-child(5) { animation-delay: 800ms; }
}
body[data-a11y-toggle="active"] .etgj :is(.ap-hero-brand, .ap-flow > div, .ap-stage) { opacity: 1 !important; translate: none !important; animation: none !important; }

/* narrower desktops: a slimmer photo and tighter text so the names keep their room */
@media (min-width: 961px) and (max-width: 1200px) {
  .etgj .ap-stage a { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .etgj .ap-stage__text { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 20px; }
  .etgj .ap-stage__num { width: 32px; height: 32px; }
}

@media (max-width: 960px) {
  .etgj .ap-hero > * { grid-column: 1 / -1; }
  .etgj .ap-hero > .ap-hero-brand { margin: 0 0 16px; }
  .etgj .ap-hero .etgj-hero__text { margin-bottom: 32px; }
  .etgj .ap-flow { padding: 0 20px; }
  .etgj .ap-flow > div { padding: 18px 0 20px; }
  /* phones and tablets: one column, in order; the same card, a narrower photo */
  .etgj .ap-stages__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 12px; }
  .etgj .ap-stage:nth-child(n) { grid-column: auto; grid-row: auto; }
  .etgj .ap-stage a { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); min-height: 132px; }
  .etgj .ap-stage__text { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 18px 16px; }
  .etgj .ap-stage__num { width: 32px; height: 32px; }
}

/* Nov 19: the headline is Robbie's one-line wording ("A proven approach to complex justice technology"); no forced
   breaks, it wraps with text-wrap: pretty so no word is left alone on the last line */
.etgj .ap-hero .etgj-hero__title { text-wrap: pretty; }

/* ==================== approach/build.css ==================== */
/*
 * Approach page, 04-build. Nov 19: the section is built on the shared stage template (approach-new.css). Only what is
 * particular to Build lives here: the two photos under the test topic, and the topic whose right-hand side holds two
 * headed lists (in our facility, then in yours). Nov 24: the test run row and its fix-and-retest loop were removed
 * (Robbie), so the loop's arrow styles went with them; the two evidence slots now hold photos.
 */

/* ---------- The evidence: two photos side by side (6 + 6) under the test topic, a gutter's gap; the slots' 21:9 ---------- */
.etgj .ap-evidence { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-top: 32px; }
.etgj .ap-evidence > figure { grid-column: span 6; }
.etgj .ap-evidence .etgj-media { aspect-ratio: 21 / 9; object-position: 50% 15%; }   /* keeps the headphones and the handset in frame */

/* ---------- Why in-house preparation matters: the two headed lists on 7 to 12 ---------- */
.etgj .ap-where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); }
.etgj .ap-where .ap-cell__name { padding-bottom: 16px; }
.etgj .ap-where .ap-list li { font-size: var(--fs-small); }
.etgj .ap-where .ap-row__note { margin: 12px 0 0; }
/* wide desktops: both columns share one set of rows (subgrid), so the headings, each rule and each line of copy
   sit level across the two lists however the text wraps */
@media (min-width: 1201px) {
  .etgj .ap-where { grid-template-rows: repeat(6, auto); }
  .etgj .ap-where__col { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; align-content: start; }
  .etgj .ap-where .ap-list { display: contents; }
  .etgj .ap-where .ap-list li:last-child { border-bottom: 1px solid var(--line); }
  .etgj .ap-where .ap-row__note { margin: 0; padding-top: 10px; }
}

@media (max-width: 1200px) and (min-width: 961px) {
  .etgj .ap-where { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
}
@media (max-width: 960px) {
  .etgj .ap-where { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .etgj .ap-evidence { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .etgj .ap-evidence > figure { grid-column: 1 / -1; }
  .etgj .ap-evidence .etgj-media { aspect-ratio: 16 / 9; }
}

/* ==================== approach/closing.css ==================== */
/*
 * Approach page, 08-closing. The six points as hairline cells (4 + 4 + 4, two rows), then the homepage closing with
 * the brief's two related links under the button.
 */
.etgj .ap-conf { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: 0; margin: 0; padding: 0; list-style: none; }   /* no gutters, so each row's rule runs unbroken */
.etgj .ap-conf li { grid-column: span 4; position: relative; padding: 28px var(--cell-pad) 32px; background: var(--rule-grad) left top / 100% 1px no-repeat; }
.etgj .ap-conf li:nth-child(3n+1) { padding-left: 0; }
.etgj .ap-conf li:nth-child(3n) { padding-right: 0; }
.etgj .ap-conf li:not(:nth-child(3n+1))::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.etgj .ap-conf__stage { display: inline-block; margin-bottom: 16px; font: 400 var(--fs-small)/1.3 var(--ff); color: var(--grey); }
.etgj .ap-conf p { margin: 0; font: 400 var(--fs-heading)/1.3 var(--ff-display); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }

.etgj .ap-closing__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 32px 0 0; }

@media (max-width: 960px) {
  .etgj .ap-conf li, .etgj .ap-conf li:nth-child(n) { grid-column: 1 / -1; padding: 20px 0 22px; }
  .etgj .ap-conf li::before { display: none; }
}

/* ==================== Page-scoped fixes after the port (qa.py's computed-style diff) ==================== */
/* Phones: in the design the topic's photo sits 28px under its text (.etg-justice .ap-topic__media outranks the
   unscoped .ap-media-wrap margin: 0); scoping evened that out, so the later margin: 0 won */
@media (max-width: 960px) {
  .etgj .ap-topic__media.ap-topic__media, .etgj .ap-topic__side.ap-topic__side { margin-top: 28px; }
}
