/* TV-branch inspired dual-direction brand lanes. Brand artwork is served
 * from the MediaFiles persisted on each Brand record, never from a hotlinked CDN.
 */
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee {
  --ts-brand-surface:#f6f8fa;
  position:relative !important;
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:clamp(16px,2.4vw,28px) 0 12px !important;
  overflow:hidden;
  background:transparent !important;
  isolation:isolate;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__heading .section-head-row {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 14px;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__heading h2 {
  margin:0;
  font-size:clamp(19px,2.5vw,30px);
  line-height:1.45;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__lanes {
  display:flex;
  flex-direction:column;
  gap:9px;
  width:100%;
  min-width:0;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent);
  mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent);
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__lane {
  overflow:hidden;
  width:100%;
  min-width:0;
  direction:ltr;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__track {
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  width:max-content;
  max-width:none;
  direction:ltr;
  will-change:transform;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__lane--forward .ts-brand-marquee__track {
  animation:tsBrandScrollForward 58s linear infinite;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__lane--backward .ts-brand-marquee__track {
  animation:tsBrandScrollBackward 58s linear infinite;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__group {
  display:flex;
  flex:0 0 auto;
  width:max-content;
  align-items:center;
  gap:10px;
  padding-right:10px;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile {
  display:flex;
  flex:0 0 126px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:126px;
  min-width:126px;
  height:92px;
  padding:10px 7px;
  gap:0;
  text-decoration:none !important;
  border:1px solid rgba(170,182,195,.36);
  border-radius:12px;
  background:linear-gradient(148deg,#fff 40%,var(--ts-brand-tint,#eef5fa)) !important;
  box-shadow:0 4px 16px rgba(0,0,0,.045);
  transition:box-shadow .2s ease,border-color .2s ease;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__mark {
  display:flex;
  align-items:center;
  justify-content:center;
  width:108px;
  height:66px;
  overflow:hidden;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__mark img {
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  filter:none !important;
  opacity:1 !important;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__fallback {
  font-size:clamp(15px,1.7vw,21px);
  font-weight:900;
  line-height:1.4;
  color:#262c37;
  text-align:center;
  overflow-wrap:anywhere;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__lane:hover .ts-brand-marquee__track,
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__lane:focus-within .ts-brand-marquee__track {
  animation-play-state:paused;
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile:hover,
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile:focus-visible {
  border-color:#ff8736;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile:focus-visible {
  outline:2px solid #ff8736;
  outline-offset:2px;
}
@keyframes tsBrandScrollForward {
  from {transform:translate3d(0,0,0);}
  to {transform:translate3d(-50%,0,0);}
}
@keyframes tsBrandScrollBackward {
  from {transform:translate3d(-50%,0,0);}
  to {transform:translate3d(0,0,0);}
}
@media (max-width:760px) {
  body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee {
    padding-top:12px !important;
    padding-bottom:10px !important;
  }
  body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__heading .section-head-row {
    margin-bottom:11px;
  }
  body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__lanes {gap:7px;}
  body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__group {gap:7px;padding-right:7px;}
  body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile {
    width:112px;min-width:112px;flex-basis:112px;height:80px;
    border-radius:10px;padding:7px 5px;
  }
  body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__mark {width:96px;height:61px;}
}
/* The under-hero benefit rail is full bleed: eliminate legacy 6-28px
 * wrapper insets so its rightmost item starts at the actual right edge. */
body[data-bsg-page="home"]:not(.admin-page) .home-page-shell > .pc-trust-section .container,
body[data-bsg-page="home"]:not(.admin-page) .pc-trust-section > .container {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}
body[data-bsg-page="home"]:not(.admin-page) .pc-trust-section .trust-strip-grid {
  box-sizing:border-box !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
body[data-bsg-page="home"]:not(.admin-page) .pc-trust-section .trust-item:first-child {
  padding-inline-start:3px !important;
}
@media (max-width:760px) {
  body[data-bsg-page="home"]:not(.admin-page) .pc-trust-section .trust-item {
    box-sizing:border-box !important;
    min-width:0 !important;
    padding-inline:6px !important;
    column-gap:5px !important;
  }
  body[data-bsg-page="home"]:not(.admin-page) .pc-trust-section .trust-item:nth-child(odd) {
    padding-inline-start:3px !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__track {
    animation:none !important;
    transform:none !important;
    will-change:auto !important;
  }
  body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__lane {
    overflow-x:auto;
    scrollbar-width:thin;
  }
  body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__group[aria-hidden="true"] {
    display:none !important;
  }
}

/* Subtle colorful card surfaces, never grayscale-filtering the official artwork.
 * Six tones repeat across both lanes without changing actual brand logos. */
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile:nth-child(6n + 1) { --ts-brand-tint:#effbdd; }
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile:nth-child(6n + 2) { --ts-brand-tint:#e4f5ff; }
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile:nth-child(6n + 3) { --ts-brand-tint:#fff0e7; }
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile:nth-child(6n + 4) { --ts-brand-tint:#f3eaff; }
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile:nth-child(6n + 5) { --ts-brand-tint:#fff6dc; }
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__tile:nth-child(6n + 6) { --ts-brand-tint:#e6fbf2; }
body[data-bsg-page="home"]:not(.admin-page) .ts-brand-marquee__mark img {
  filter:none !important;
  opacity:1 !important;
}
