/* Trust (decision 2 of Anthony's 11/16 afternoon Tella: "Trust badges have to be on all of these pages... a second bottom
   footer above our terms, all of our accolades and trust badges"). Two parts, one file, so every page that carries them
   looks the same: the inner pages load it as system/trust.css, and the homepage links the same file.
     .trust       the partner band right under a page's hero (render.mjs trustBand())
     .accolades   the band in the footer above the legal line (render.mjs accolades())
   The words are the About page's ("Partners and badges", "By the numbers"); the logos are the homepage's badge files.
   Flat, the identity's tokens only. */

.tr-label { font: 600 var(--label, 12px)/1.2 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
/* The five badges, one rule wherever they show (integration 11/17, fix 14; Anthony on his phone: "badges wrap to just
   one, annoying"): the inner heroes, the band under a case hero, the footer's accolades band on every page. They sit
   three then two, never one alone: a zero-height line break rides after the third badge (::before, placed by order),
   so the only place the row can break is between the third and the fourth. Where the band is wide enough for all five
   (its container is 480 px or more) the break is taken out and they share one row. Nothing here depends on the
   screen's width, only on the band's own, so it holds at every width. --tr-h is the height of a badge. */
.tr-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 9px var(--tr-gap, 26px); }
.tr-logos::before { content: ""; flex: 0 0 100%; order: 1; height: 0; }
.tr-logos li { display: flex; flex: 0 0 auto; }
.tr-logos li:nth-child(n+4) { order: 2; }
.tr-logos img { display: block; height: var(--tr-h, 30px); width: auto; filter: brightness(0); opacity: .72; }
.hero-trust, .trust .in, .accolades { container-type: inline-size; }
@container (min-width: 480px) {
  .tr-logos { flex-wrap: nowrap; }
  .tr-logos::before { display: none; }
}
:root[data-theme="dark"] .tr-logos img, .deep .tr-logos img { filter: brightness(0) invert(1); opacity: .84; }

/* ---- under the hero ---- */
.trust { border-block: 1px solid var(--line); }
.trust .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px clamp(20px, 3vw, 44px); padding-block: 20px; }
/* the label takes its own line until the band holds it and the five badges side by side */
.trust .tr-label { flex: 0 0 100%; }
@container (min-width: 760px) { .trust .tr-label { flex: 0 0 auto; } }
.trust + .sec.light { padding-top: clamp(56px, 7vw, 104px); }

/* ---- the footer's accolades band, above the legal line ---- */
.accolades { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px clamp(24px, 4vw, 64px); align-items: center; margin-top: var(--s7, 64px); padding-top: var(--s5, 28px); border-top: var(--rule, 2px) solid var(--ink); }
.ac-who { display: grid; gap: 6px; }
.ac-who b { font: 400 clamp(24px, 2.4vw, 32px)/1.1 var(--display); }
.ac-who p { margin: 0; color: var(--muted); font-size: 15px; max-width: 54ch; }
.accolades .tr-logos { justify-content: flex-end; }
/* a badge with a profile is a link out (#951): a 44 px target that keeps the row's height, full ink on hover */
.accolades .tr-logos a { display: flex; align-items: center; min-height: 44px; margin-block: calc((var(--tr-h, 30px) - 44px) / 2); border-radius: 2px; }
.accolades .tr-logos a:hover img, .accolades .tr-logos a:focus-visible img { opacity: 1; }
.accolades + .legal { margin-top: var(--s6, 40px); }
@media (max-width: 860px) {
  .accolades { grid-template-columns: minmax(0, 1fr); }
  .accolades .tr-logos { justify-content: flex-start; }
}
/* #981 (Anthony 12/02: "no heading and just center them"): with no name block the band is one column and its five
   badges center under the rule, three then two on a phone, at every width. A band that gets a heading back keeps the
   layout above. */
.accolades:not(:has(> .ac-who)) { grid-template-columns: minmax(0, 1fr); }
.accolades:not(:has(> .ac-who)) .tr-logos { justify-content: center; }

/* ---- round 4, row 25 (Anthony 11/17: "On any page, always a call to action. Always our badges just listed like they
   are"): the badges inside every inner hero, directly under the two calls to action, in the homepage hero's
   arrangement: a hairline, then the five in one row (three then two on a phone, never one alone). --hero-badge and
   --hero-seal are the homepage hero's own sizes (site-home.css: --badge-h 34 px and --badge-seal 54 px; 40 and 60 at
   640 px and under), so an inner hero and the homepage read as one system. Turn them together. ---- */
:root { --hero-badge: 34px; --hero-seal: 54px; }
.hero-cta { display: grid; gap: 22px; width: 100%; justify-items: start; }
.hero-trust { width: 100%; padding-top: 18px; border-top: 1px solid var(--line); border-bottom: 0; }
/* the round Meta badge is drawn small inside its circle: set taller so it can be read (Anthony 11/17, 0:51); its extra
   height hangs outside the row, as on the homepage */
.hero-trust .tr-logos { --tr-h: var(--hero-badge); --tr-gap: 26px; row-gap: 11px; }
.hero-trust .tr-logos li:nth-child(2) img { height: var(--hero-seal); margin-block: calc((var(--hero-badge) - var(--hero-seal)) / 2); }
@container (min-width: 480px) { .hero-trust .tr-logos { justify-content: space-between; gap: 18px; max-width: 620px; } }
@media (max-width: 640px) {
  /* a phone: larger, and always three then two (the homepage hero does the same), whatever the band's width */
  :root { --hero-badge: 40px; --hero-seal: 60px; }
  .hero-trust { padding-top: 22px; }
  .hero-trust .tr-logos { flex-wrap: wrap; justify-content: flex-start; gap: 11px 20px; max-width: none; }
  .hero-trust .tr-logos::before { display: block; }
}

/* ---- layout batch 1 (Anthony 11/18 on a case study page [909]: "Badges small on some inner pages"): the band under a
   case hero and the footer's accolades band carried the badges at 30 px with the round Meta seal at the same height,
   so it read as a dot. Every band now takes the hero sizes above (34 px, the seal 54; 40 and 60 on a phone): one
   badge size on every page. ---- */
.trust .tr-logos, .accolades .tr-logos { --tr-h: var(--hero-badge); row-gap: 11px; }
.trust .tr-logos img[src*="meta-media-buying"], .accolades .tr-logos img[src*="meta-media-buying"] { height: var(--hero-seal); margin-block: calc((var(--hero-badge) - var(--hero-seal)) / 2); }
/* Recovery.com Agency Partner (11/29, in every band, in the slot the Shopify badge had until that partnership lapsed): a stacked
   badge, its mark over two lines of words, so it takes the seal's height too, or its words would be a few pixels tall */
.hero-trust .tr-logos img[src*="recovery-com"], .trust .tr-logos img[src*="recovery-com"], .accolades .tr-logos img[src*="recovery-com"] { height: var(--hero-seal); margin-block: calc((var(--hero-badge) - var(--hero-seal)) / 2); }
@media (max-width: 640px) { .trust .tr-logos, .accolades .tr-logos { gap: 11px 20px; } }

/* #1044 (Anthony 12/01: the divider over the hero badges "needs just a smidge more breathing room ... Especially on inner
   pages, it gets really really tight"): the inner hero gets 10 px more between its calls to action and the line, and
   10 px more between the line and the badges (the round seal hung 8 px under the line); the homepage takes the same
   step (site-home.css). The band under a case hero gets the same air inside its two lines. */
.hero-cta { gap: 32px; }
.hero-trust { padding-top: 28px; }
.trust .in { padding-block: 28px; }
@media (max-width: 640px) { .hero-trust { padding-top: 32px; } }
