/*
 * pull-fact.css -- Pull fact with two children (pattern 26, ggf/pull-fact). HAND-MAINTAINED (docs/HAND-MAINTAINED.md); the folder's rules are README.md. Tokens only; the ink follows
 * the ground (--g-ink, --g-ink-2, --g-accent: the colour spec's tokens, with today's tokens as their fallback). Markup: blocks/pull-fact/render.php.
 *
 * Part 18 pattern 26: "One large figure beside running copy rather than above it ... Swap the two children to put the figure on the left." Part 17 "Two-child layouts": the order of the
 * two children in the DOM is the variant (render.php prints them in that order), so there is nothing here for a "reversed" look. The figure column carries the 4px yellow rule of the kit on its
 * left. The old figure on its own (`pull-fig`, site.css) is not touched: a pull fact written before this file prints exactly the markup it always did.
 *
 * At the root of a page the pull fact is a section of its own, so it carries the section padding and the 1180px container; inside a section, a split or an overlap it is a block of
 * that section and carries none (the second rule).
 */

.pull-two{
  --pf-n-size:clamp(48px,6vw,88px);      /* the kit's figure size. Not in the type scale (display tops out at 78px, stat at 60px): flagged to the design-systems architect */
  --pf-col-min:300px;                    /* the narrowest a column gets before the two stack (the kit: minmax(min(100%,300px),1fr)) */
  --pf-rule:4px;                          /* the kit's rule on the figure, as the 4px rules of site.css */
  --pf-gutter:var(--gutter,clamp(20px,3vw,48px));   /* the container's side padding: the site's own --gutter (site.css :root, the one `.wrap` pads itself with), so a pull fact at the root lines up with every section; it was clamp(20px,4vw,40px), 3px off at 1440 and 9px at 1024 (fix round, 14 Oct 2026) */
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--pf-col-min)),1fr));
  gap:clamp(var(--s3),4vw,var(--s5));
  align-items:start;
  /* the root: a section of its own */
  box-sizing:border-box;
  width:100%;
  max-width:var(--wrap);
  margin-inline:auto;
  padding:var(--s6) var(--pf-gutter);
}
/* Inside another block of a page (a section's body, a split's words, an overlap's card) the section round it gives the padding and the container. */
:is(.sec-body,.ls-body,.lo-card) .pull-two{
  max-width:none;
  margin-inline:0;
  padding:0;
}
.pull-two .pf-prose{
  min-width:0;
  max-width:var(--measure);               /* 68ch */
}
.pull-two .pf-prose p{
  margin:0 0 var(--s2);
  font-size:var(--wp--preset--font-size--body);
  line-height:1.6;
  color:var(--g-ink,var(--ink));
  max-width:none;
}
.pull-two .pf-prose p:last-child{margin-bottom:0}
.pull-two .pf-fig{
  min-width:0;
  align-self:center;
  border-left:var(--pf-rule) solid var(--yellow);
  padding-left:clamp(var(--s2),3vw,var(--s3));
}
.pull-two .pf-n{
  margin:0;
  font-family:var(--font-poppins);
  font-weight:700;
  font-size:var(--pf-n-size);
  line-height:1;
  letter-spacing:-.025em;
  color:var(--g-accent,var(--gnd-ink));   /* Plan Blue on white, #005AA6 on tint, white on a dark ground (blocks-b.css): never black */
  max-width:none;
}
.pull-two .pf-s{
  margin:var(--s2) 0 0;
  font-size:var(--wp--preset--font-size--lead);
  line-height:1.5;
  color:var(--g-ink,var(--ink));
  max-width:20em;
}
.pull-two .pf-src{
  margin:var(--s1) 0 0;
  font-family:Georgia,'Times New Roman',serif;
  font-style:italic;
  font-size:var(--wp--preset--font-size--caption);
  line-height:1.5;
  color:var(--g-ink-2,var(--grey));
  max-width:none;
}
/* The figure on its own with the new source line (the old layout, in the editor only): the line takes a row of its own under the figure and the sentence. */
.pull-fig .pf-src{
  flex:1 1 100%;
  margin:0;
  font-family:Georgia,'Times New Roman',serif;
  font-style:italic;
  font-size:var(--wp--preset--font-size--caption);
  line-height:1.5;
  color:var(--g-ink-2,var(--grey));
  max-width:none;
}

@media (forced-colors:active){
  .pull-two .pf-fig{border-left-color:CanvasText}
}
