/* Scaffold section: client logo strip (S1-T4), template-parts/scaffold/logos.php.

   The logos.css row of docs/scaffold/SPEC.md section 4.4: mock-shared.css
   lines 244-254 (client logo strip), wordmark rules skipped (decision 4: the
   strip shows the Theme Options cl_list_logo images, not text wordmarks).
   Renamed per SPEC.md section 2.0: .mk -> .ifs, the mock's .mk-sec-logos
   (the section) -> .ifs-logos, its .mk-logos (the <ul>) -> .ifs-logos-list.
   Logo tiles keep the live homepage strip's format (coordinator decision
   2026-10-06, replacing SPEC.md section 2.2's 2.25rem height): the values of
   style.css's `.greatCompanies .single-logo img` and its row, measured on
   www.impactfirst.co/id/ at 1440 and 400 (92x92 tiles from the square source
   files, 64px gap, greyscale(1) at opacity .78, full colour on hover). The
   live strip's scrolling row (js/rail.js there) is rebuilt in CSS only:
   logos.php prints the list twice, the copy aria-hidden with empty alts, and
   the track moves by -50% (one list plus its trailing 64px). Speed: the live
   strip moves 19.8px/s (46s for 910px, measured 2026-10-06), i.e. 7.88s per
   92px tile plus 64px gap; the duration is that times --if-logos-n (the logo
   count, printed by logos.php), so the speed holds for any count. The rail
   is full-bleed (as live, whose section clips at the viewport) with live's
   150px fades at both ends, and pauses on hover. The pause control (WCAG
   2.2.2, no JS): a checkbox before the rail; :checked pauses the track. It
   lies, invisible, over its label, which draws a 32px round button at the
   rail's right end (border #5A6B7D: 5.0:1 on the tint band; glyph #0A1A2F on
   white) with the focus ring, and swaps pause / play. Reduced
   motion: no animation (base.css), no copy, no pause control, the list wraps
   (gap 32px at <=560px).
   The source files are square canvases with an opaque white background, which
   is invisible on the live strip's white band; mix-blend-mode: multiply keeps
   it invisible on the scaffold's tint band (white x tint = tint). The moving
   track is its own stacking context, so it carries the band colour for the
   blend to multiply against.
   The mock's margin-top on the list sits on the rail and applies only after
   the label, so a strip without one (title empty) keeps even padding.

   The band (tint) and its border come from base.css via data-band. Printed
   twice by impact_css_layers(), like base.css (SPEC.md section 4.2).
   !important is used once, on the label's font-family: base.css forces
   .ifs p { font-family: inherit !important } to beat the bundle's
   .main-wrapper p { font-family !important }, and the label is a <p>. */

.ifs .ifs-logos{padding-block:var(--if-logos-pad)}
.ifs .ifs-logos-h{text-align:center;font-family:var(--if-mono) !important;font-size:.75rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--if-s-muted)}
.ifs .ifs-logos-h ~ .ifs-logos-rail{margin-top:1.5rem}

/* the rail: full-bleed inside the .ifs container (100cqi = the wrapper's width), clipped */
.ifs .ifs-logos-rail{position:relative;overflow:hidden;margin-inline:calc(50% - 50cqi)}
.ifs .ifs-logos-rail::before,.ifs .ifs-logos-rail::after{content:"";position:absolute;top:0;bottom:0;width:150px;z-index:1;pointer-events:none}
.ifs .ifs-logos-rail::before{left:0;background:linear-gradient(90deg,var(--if-s-bg),transparent)}
.ifs .ifs-logos-rail::after{right:0;background:linear-gradient(270deg,var(--if-s-bg),transparent)}
.ifs .ifs-logos-track{display:flex;width:max-content;background:var(--if-s-bg);animation:ifs-logos-rail calc(var(--if-logos-n,15) * 7.88s) linear infinite}
.ifs .ifs-logos-rail:hover .ifs-logos-track,.ifs .ifs-logos-pause:checked ~ .ifs-logos-rail .ifs-logos-track{animation-play-state:paused}

/* pause control: the checkbox lies over the label that draws the button, vertically centred on the 92px row */
.ifs .ifs-logos > .ifs-container{position:relative}
.ifs .ifs-logos-pause,.ifs .ifs-logos-pausebtn{position:absolute;right:var(--if-gutter);bottom:30px;width:32px;height:32px;z-index:2}
.ifs .ifs-logos-pause{z-index:3;margin:0;opacity:0;cursor:pointer;appearance:none}
.ifs .ifs-logos-pausebtn{display:grid;place-items:center;border-radius:999px;border:1.5px solid #5A6B7D;background:#FFFFFF;color:#0A1A2F}
.ifs .ifs-logos-pause:hover + .ifs-logos-pausebtn{background:var(--if-tint-2)}
.ifs .ifs-logos-pause:focus-visible + .ifs-logos-pausebtn{outline:2px solid var(--if-s-focus);outline-offset:2px}
.ifs .ifs-logos-pausebtn svg{width:14px;height:14px}
.ifs .ifs-logos-pausebtn .ifs-i-play,.ifs .ifs-logos-pause:checked + .ifs-logos-pausebtn .ifs-i-pause{display:none}
.ifs .ifs-logos-pause:checked + .ifs-logos-pausebtn .ifs-i-play{display:block}
.ifs .ifs-logos-list{display:flex;flex-wrap:nowrap;align-items:center;gap:64px;padding-right:64px}
.ifs .ifs-logos-list li{display:block;flex:none}
.ifs .ifs-logos-img{display:block;width:auto;height:auto;max-height:92px;max-width:210px;object-fit:contain;filter:grayscale(1);opacity:.78;mix-blend-mode:multiply;transition:filter .2s ease,opacity .2s ease}
.ifs .ifs-logos-img:hover{filter:none;opacity:1}
@keyframes ifs-logos-rail{to{transform:translateX(-50%)}}

/* reduced motion: a static, wrapped grid of the first list only */
@media (prefers-reduced-motion:reduce){
  .ifs .ifs-logos-rail{overflow:visible;margin-inline:0}
  .ifs .ifs-logos-rail::before,.ifs .ifs-logos-rail::after,.ifs .ifs-logos-dup,.ifs .ifs-logos-pause,.ifs .ifs-logos-pausebtn{display:none}
  .ifs .ifs-logos-track{display:block;width:auto;animation:none}
  .ifs .ifs-logos-list{flex-wrap:wrap;justify-content:center;padding-right:0}
  @container ifs (max-width:560px){.ifs .ifs-logos-list{gap:32px}}
}
