/* Partner and technology logos (design/brand-v5.md §9).
 *
 * .rq-partner        one logo: an inline wrapper around inline SVG. The SVG carries whole-pixel width/height
 *                    (PartnerLogo.tsx / partner-logo.mjs compute them from the logo's optical scale), so this
 *                    sheet never resizes artwork; it only places and colours it. Mono art paints currentColor.
 * .rq-partner-strip  "runs on" / "works with" row: eyebrow label, then logos at one optical height (20–24 px
 *                    nominal), 32 px apart, muted ink at rest, ink on hover, wrapping on a phone.
 *
 * Reads the light role layer (--ink, --muted, --font-label …) when base-light.css is loaded and falls back
 * to the v5 values when it is not (the static landing). Sets no --roro-* name.
 */

.rq-partner{
  display:inline-flex;align-items:center;flex:0 0 auto;
  line-height:0;vertical-align:middle;color:inherit;
}
.rq-partner>svg{display:block;flex:0 0 auto;max-width:none}

/* No artwork (text-only brand, unknown slug): the name, set like a label so the row keeps its rhythm. */
.rq-partner--text{
  line-height:16px;white-space:nowrap;
  font:600 12px/16px var(--font-ui,var(--roro-font-ui,'Archivo',system-ui,sans-serif));
}

/* Colour art sits on a light ground only: on a dark surface give it a white card, never a tint. */
.rq-partner-card{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:56px;padding:12px 16px;
  background:#ffffff;border:1px solid var(--line,#d5dee0);border-radius:6px;
}

/* CSS-only alternative where markup cannot be inlined (a pseudo-element, a third-party template):
 *   <span class="rq-partner rq-partner--mask" role="img" aria-label="Python"
 *         style="--rq-partner-src:url(/assets/partners/mono/python.svg);--rq-partner-aspect:1;--rq-partner-h:20px"></span>
 * Mono files only; the file must be served from the page's own origin. The three hooks are set inline on the
 * element, so nothing declares them here and every read carries its default (no file: an empty box, never a
 * dropped declaration). */
.rq-partner--mask{
  display:inline-block;height:var(--rq-partner-h,20px);aspect-ratio:var(--rq-partner-aspect,1);
  background:currentColor;
  -webkit-mask:var(--rq-partner-src,none) center/contain no-repeat;
          mask:var(--rq-partner-src,none) center/contain no-repeat;
}

/* ── the strip ─────────────────────────────────────────────────────────────────────────────────────────── */
.rq-partner-strip{
  --rq-partner-rest:var(--muted,#627174);
  --rq-partner-ink:var(--ink,#091619);
  display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;
  color:var(--rq-partner-rest);
}
.rq-partner-strip--dark{--rq-partner-rest:#97a4a8;--rq-partner-ink:#f2f7f8}

.rq-partner-strip__label{
  flex:0 0 auto;
  font:600 11px/16px var(--font-label,var(--roro-font-display,'Archivo Expanded','Archivo',system-ui,sans-serif));
  letter-spacing:var(--tracking-label,.12em);text-transform:var(--label-case,uppercase);
  color:var(--rq-partner-rest);
}
.rq-partner-strip__list{
  display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;
  margin:0;padding:0;list-style:none;min-width:0;
}
.rq-partner-strip__list>li{display:flex;align-items:center;min-height:24px}

.rq-partner-strip .rq-partner{
  color:var(--rq-partner-rest);
  transition:color var(--roro-duration-120,120ms) var(--roro-ease-out,ease-out);
}
.rq-partner-strip .rq-partner:hover,
.rq-partner-strip a:focus-visible .rq-partner{color:var(--rq-partner-ink)}

/* Owners that allow one colour only as their black or white (monoPolicy "solid": IBM, IQM, Stripe, LinkedIn,
 * GitHub, Jupyter, NumPy) are never greyed. With one in the row the whole row goes to full ink, so nothing
 * stands out; without :has() only those marks do. */
.rq-partner-strip .rq-partner[data-mono="solid"]{color:var(--rq-partner-ink)}
.rq-partner-strip:has(.rq-partner[data-mono="solid"]) .rq-partner{color:var(--rq-partner-ink)}

/* Colour art is never dimmed or filtered. */
.rq-partner[data-variant="color"]{color:inherit}

@media (max-width:640px){
  .rq-partner-strip,.rq-partner-strip__list{gap:16px 24px}
  .rq-partner-strip__label{flex-basis:100%}
}
@media (prefers-reduced-motion:reduce){
  .rq-partner-strip .rq-partner{transition:none}
}
