/* page.platform.css · Tools only: placement and size of the page's own w-platform- classes (brief 018). */

/* ---- 039 · 3: the line under "Tools" in the hero lede form at a 720 measure; from its last line to "Your transaction" a
   chapter gap (160 at L, 128 at M, 96 at S: the plain hero's own 96 is the S value) ---- */
.w-platform-hero .w-hero-lede { grid-column: 1 / -1; max-width: 560px; }   /* go-live 3: 560 (was 720), clear of the film's list; two lines */
.w-platform-hero.is-plain .w-hero-in { padding-bottom: var(--gap-chapter); }

/* ---- group chapters: the blocks on 7–12, 64 between blocks ---- */
.w-platform-blk + .w-platform-blk { margin-top: 64px; }
@media (max-width: 599px) { .w-platform-blk + .w-platform-blk { margin-top: 48px; } }

/* ---- Your transaction (026): Payment sized to its content on 1–6; the Search Results row (its Period) on 7–12, tops aligned ---- */
.w-platform-tp { align-items: start; }
@media (min-width: 1200px) {
  .w-platform-tp-a { grid-column: 1 / span 6; }
  .w-platform-tp-b { grid-column: 7 / span 6; }
}
@media (max-width: 1199px) { .w-platform-tp-b { margin-top: var(--gap-ev); } }
/* pass 3 · 01, 02: Payment as a site figure (the number) on 1–6; the Period row on the ground on 7–12, 580 at most */
.w-platform-rowf { max-width: 580px; }
/* phone: the panel takes the plate's width and reflows, so nothing pans */

/* ---- Your set: the Benchmark Sample strip, then Treatment; pass 6: the chart is gone, the chapter ends on Treatment ---- */
/* restore (27 Nov): the chart is back, 96 below Treatment */
.w-platform-chart-blk { margin-top: var(--gap-ev); }
.w-platform-chart-set { margin-top: 16px; }
.w-platform-chart { margin-top: 32px; }
/* pass 3 · 03: the strip as a site figure, the evidence's full width (at ten columns its first line wraps here) */

/* ---- Your file (pass 3 · 06): Source Evidence as a site figure on 7–12 under its text, 580 wide at every width it fits;
   40 under the record's caption ---- */
.w-platform-sef-fig { width: 580px; max-width: 100%; }
@media (min-width: 1200px) { .w-platform-sef-fig { margin-left: calc(50% + 12px); max-width: calc(50% - 12px); } }
@media (max-width: 599px) { .w-platform-sef-fig { width: auto; } }

/* ---- pass 6: "All tools." is a chapter heading (the statement's h2, as "Your transaction"; the chapter gap above it is
   the system's), its line on 7–12; the catalogue's first rule 48 below ---- */
.w-platform-cat .w-platform-cat-list { margin-top: 48px; }
/* ---- the catalogue: group name on 1–4, entries from 5 in two columns (5–8, 9–12), 32 padding per group ---- */
.w-platform-cg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding: 32px 0; }
.w-platform-cg-h { grid-column: 1 / span 4; }
.w-platform-cg-e { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; }
.w-platform-en > * + * { margin-top: 8px; }
.w-platform-en-n { font-weight: 500; color: var(--ink-1); }
@media (max-width: 1199px) {
  .w-platform-cg { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .w-platform-cg-h, .w-platform-cg-e { grid-column: 1; }
}
@media (max-width: 599px) { .w-platform-cg-e { grid-template-columns: minmax(0, 1fr); row-gap: 24px; } }

/* ---- R22 · Treatment under the Benchmark Sample strip, on 7–12, 40 under its caption: 464 × 1.25 = 580 ---- */
.w-plate-fig:has(> .w-platform-treat-plate) { margin-top: 40px; }
/* pass 5: Treatment is no longer marked on-text (the held head stops at the text), so its 7–12 place is set here; below 1200
   it takes the column, as an on-text plate did */
@media (min-width: 1200px) { .w-plate-fig:has(> .w-platform-treat-plate) { margin-left: calc(50% + 12px); max-width: calc(50% - 12px); } }
@media (max-width: 1199px) { .w-plate-fig:has(> .w-platform-treat-plate) { width: auto; } }
.w-platform-treat .da-rr-tpanel { width: 464px; }
.w-platform-treat-plate .w-k { --k: 1.25; }
@media (max-width: 767px) { .w-platform-treat-plate .w-k { --k: 1; } }
@media (max-width: 599px) { .w-platform-treat .da-rr-tpanel { width: auto; } .w-plate-fig:has(> .w-platform-treat-plate), .w-platform-treat-plate { width: 100%; } }

/* ---- pass 3 · 05: the Search and Selection Record on the ground, above the Source Evidence figure. 781 wide (R22: the
   narrowest at which Reason holds two lines and no party name passes three): from 1200 on columns 5–12 (right edge of 12);
   below, as wide as it fits, and where the page is narrower than 781 it pans ---- */
@media (min-width: 1200px) { .w-platform-ssrf-fig { margin-left: auto; } }
/* pass 6: the Source Evidence sentence sits directly above its plate, on the plate's column: 40 under the record's
   caption, 24 above the plate */
.w-platform-ssrf-fig + .w-platform-se-t { margin-top: 40px; }
.w-platform-se-t { max-width: 580px; }
@media (min-width: 1200px) { .w-platform-se-t { margin-left: calc(50% + 12px); max-width: calc(50% - 12px); } }
.w-platform-se-t + .w-platform-sef-fig { margin-top: 24px; }
@media (max-width: 599px) { .w-platform-ssrf-fig { width: 100%; } }

/* ---- pass 5 (the system rule): Your set and Your file hold figures wider than the text column, so their evidence sits
   outside the held head, 64 below the end of the text, from 1200 (below 1200 nothing is held) ---- */
@media (min-width: 1200px) { .w-st-ev:has(> .w-platform-barf), .w-st-ev:has(> .w-platform-ssrf-fig) { margin-top: 64px; } }

/* ---- R27 (2): the film from 1200, made for 0% 0%. The hero is a film hero there and plain below (system v1.13), so the
   lede's last line to "Your transaction" is held at the chapter gap as before (039 · 3): 160 at L (96 + 64), 128 at M
   (96 + 32), 96 at S (the plain hero's own) ---- */
.w-platform-hero { --film-pos-l: 0% 0%; }
@media (min-width: 1200px) { .w-platform-hero + .w-ch { padding-top: 64px; } }
/* pass 1 · 3 (system v1.26): the two plain-hero gaps below 1200 are gone; the hero stands on its film's still there */

/* ---- pass 1 · 3 (system v1.26): the still's focus below 1200 ---- */
.w-platform-hero { --film-still-m: 80% 50%; --film-still-s: 78% 70%; }
/* 1b · 3: on the phone the film is quieter, so its words never rival the headline */
/* pass 2 · 4c: the same from 768 to 1199 */
@media (max-width: 1199px) { .w-platform-hero { --hero-film-opacity: 0.7; } }
