/* A code component's Shadow DOM doesn't inherit the prototype's global box-sizing reset. */
.CbU2yaPkHkzYb1xCIAds,
.CbU2yaPkHkzYb1xCIAds *,
.CbU2yaPkHkzYb1xCIAds *::before,
.CbU2yaPkHkzYb1xCIAds *::after {
  box-sizing: border-box;
}

/* Fills the page's width as a block (a code component's host is otherwise inline). */
:host {
  display: block;
}

/*
 * Ported from prototype/src/components/LogoRoster/LogoRoster.module.css (Figma 2836:8270): the
 * heading in a cell on the left, a dotted line down its right side and one across the bottom (full
 * width); the logos fill the rest of the row.
 */
.CbU2yaPkHkzYb1xCIAds {
  --dots: #595959 0 2px, transparent 2px 4px; /* the dotted lines: 2px on, 2px off */
  position: relative;
  display: flex;
  min-height: max(140px, 11.34vw);
  background: var(--background-page, #f5f5f5);
  color: var(--text-primary, #171717);
  font-family: var(--type-family-base, 'Raleway', system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Heading / M, its strong part Medium. */
.vDWzPLR1wWne43kLLPD9 {
  flex: none;
  display: flex;
  align-items: center;
  margin: 0;
  position: relative;
  padding: 0 max(40px, 4.63vw) 0 var(--page-gutter, 64px);
  font-size: var(--type-heading-m-size, 32px);
  font-weight: var(--type-heading-m-weight, 300);
  line-height: var(--type-heading-m-lh, 38px);
  letter-spacing: var(--type-heading-m-ls, -0.5px);
}

.vDWzPLR1wWne43kLLPD9 strong {
  font-weight: 500;
}

/* The dotted lines: across the bottom, and down the heading's right side. */
.CbU2yaPkHkzYb1xCIAds::after,
.vDWzPLR1wWne43kLLPD9::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.CbU2yaPkHkzYb1xCIAds::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--dots));
}

.vDWzPLR1wWne43kLLPD9::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--dots));
}

.u30cWKYfKpi2JzkZg6N8 {
  position: relative;
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding-inline: max(16px, 1.85vw);
}

/* The slotted list: off the grid; on the page it is visually hidden (rosterStyles.ts), in the Designer the empty slot's drop box fills the row. */
.xBBhsk6JlhDrSRJGKBRp {
  position: absolute;
  inset: 0;
}

/*
 * The Collection List hidden from the first paint (screen readers only): this CSS is server-rendered with
 * the section, where rosterStyles.ts's page rule only arrives once the script runs, so the list showed as
 * a column of logos down the page on first load. Only a Collection List: the Designer's empty-slot drop
 * box stays visible. rosterStyles.ts still covers Storybook (no Shadow DOM, so no slot).
 */
.xBBhsk6JlhDrSRJGKBRp ::slotted(.iJBwUoO3_p8xfbRl8Y94) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/*
 * Each slot stacks its logo (and the one leaving) in the middle. One track the slot's own size: left to
 * size itself, the row took the image's natural height at the slot's width (its 100% height can't resolve
 * while the track is sized), so a wide phone cell's logo centred in a taller row and was cut off below.
 */
.TgPDAMyR45X08JADB_fG {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
}

.TgPDAMyR45X08JADB_fG > * {
  grid-area: 1 / 1;
}

/* The greyscale files are whole cells (the brand spaced inside): each at the Logo Grid's cell height, so the two match, and never past the file's 162px, where it would blur. */
.p2cry8k2adEByviGd401 {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(100%, max(120px, 9.375vw), 162px);
  object-fit: contain;
  user-select: none;
}

/* The change: the old logo rises out as the new one rises in after it. */
.C26tAwYxkmTxHEPvprtj {
  animation: XTqLFHdzIg9_QZ31qBKg 800ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.qTq0DdyD4RL5qNXsl_2q {
  animation: h6UHLYZ0gn0F9zUFhEdC 600ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes XTqLFHdzIg9_QZ31qBKg {
  from {
    opacity: 0;
    transform: translateY(45%);
  }
}

@keyframes h6UHLYZ0gn0F9zUFhEdC {
  to {
    opacity: 0;
    transform: translateY(-45%);
  }
}

/*
 * Pause / play: small, at the row's right end, centred on the logos; a light border (the icon carries the contrast).
 * Placed from the section's edge (it's the section's child, so phones can put it beside the heading): the logos
 * fill the section's height and reach its right edge, so this is where it was inside them.
 */
.I1D97H1jnumKjTrdXSLs {
  position: absolute;
  top: 50%;
  right: max(8px, 0.93vw);
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border-lightest, #cfc7d4);
  border-radius: 50%;
  background: var(--background-page, #f5f5f5);
  color: var(--text-primary, #171717);
  cursor: pointer;
  transition:
    scale 200ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease;
}

/* Hover: a little larger, a 2px brand-blue ring (the inset shadow adds the second pixel, so the icon doesn't shift) and a blue icon. */
.I1D97H1jnumKjTrdXSLs:hover {
  scale: 1.1;
  border-color: var(--action-primary-default, #0073e6);
  box-shadow: inset 0 0 0 1px var(--action-primary-default, #0073e6);
  color: var(--action-primary-default, #0073e6);
}

.I1D97H1jnumKjTrdXSLs:focus-visible {
  outline: 2px solid var(--action-primary-default, #0073e6);
  outline-offset: 2px;
}

/*
 * Narrow: the heading above a 2x2 grid of logos, with the dotted line between them and a dotted cross
 * between the four cells; the pause button at the heading's right end, centred on it.
 */
@media (max-width: 700px) {
  .CbU2yaPkHkzYb1xCIAds {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  /* Full width (its dotted line runs edge to edge), with room on the right for the pause button over it. */
  .vDWzPLR1wWne43kLLPD9 {
    grid-row: 1;
    grid-column: 1 / -1;
    padding: 32px calc(var(--page-gutter, 20px) + 48px) 32px var(--page-gutter, 20px);
  }

  .I1D97H1jnumKjTrdXSLs {
    position: relative;
    top: auto;
    right: auto;
    translate: none;
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    margin-right: var(--page-gutter, 20px);
  }

  .u30cWKYfKpi2JzkZg6N8 {
    grid-row: 2;
    grid-column: 1 / -1;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 128px;
    padding-inline: 0;
  }

  /* The cross: down the middle and across between the two rows. */
  .u30cWKYfKpi2JzkZg6N8::before,
  .u30cWKYfKpi2JzkZg6N8::after {
    content: '';
    position: absolute;
    pointer-events: none;
  }

  .u30cWKYfKpi2JzkZg6N8::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: repeating-linear-gradient(180deg, var(--dots));
  }

  .u30cWKYfKpi2JzkZg6N8::after {
    top: 128px;
    right: 0;
    left: 0;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--dots));
  }

  .vDWzPLR1wWne43kLLPD9::after {
    top: auto;
    left: 0;
    width: auto;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--dots));
  }

  .p2cry8k2adEByviGd401 {
    height: min(100%, 112px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .C26tAwYxkmTxHEPvprtj,
  .qTq0DdyD4RL5qNXsl_2q {
    animation: none;
  }

  /* The hover's colors still change; it just doesn't grow. */
  .I1D97H1jnumKjTrdXSLs {
    transition: none;
  }

  .I1D97H1jnumKjTrdXSLs:hover {
    scale: none;
  }

  .qTq0DdyD4RL5qNXsl_2q {
    display: none;
  }
}

