/* The standalone team page keeps its member cards; only the partner grid changes. */
html[data-theme="qrl-dawn"] body.coreTeam .partner-section .container-mini {
  width: min(calc(100% - 2rem), 68rem);
  max-width: 68rem;
}

html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
}

html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link {
  display: block;
  min-width: 0;
  text-decoration: none;
}

html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-box);
}

html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link .core__el {
  height: 100%;
  min-height: 0;
  margin: 0;
  border-bottom: 1px solid var(--qrl-line);
  transition: border-color .2s ease;
}

html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link:is(:hover, :focus-visible) .core__el {
  border-color: var(--color-primary);
}

html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link .core__el__img {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(9.5rem, 15vw, 11rem);
  min-height: 0;
  padding: .625rem;
  overflow: hidden;
  background: var(--color-base-200);
  transition: background-color .2s ease;
}

html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link .partner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: calc(100% - 1.25rem);
  height: calc(100% - 1.25rem);
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(.9);
  transition: none;
  pointer-events: none;
}

/* These square SVGs contain wide marks surrounded by empty vertical canvas.
   Let the square canvas extend behind this shorter frame; the artwork stays in view. */
html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link:is(
  .partner-card-link--die-qrl-stiftung,
  .partner-card-link--merkletree-labs,
  .partner-card-link--quantum-compliance,
  .partner-card-link--university-of-manchester
) .partner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 1.25rem);
  height: auto;
  max-height: none;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

/* This file declares a tall intrinsic size around a horizontal mark. Show the
   mark at the card width and crop only the empty top and bottom of that file. */
html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link--singularity-systems .partner-logo {
  height: auto;
  max-height: none;
}

/* Preserve the contrast within marks that have a solid background. Flattening
   every color to white would hide the lettering inside these logos. */
html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link:is(
  .partner-card-link--singularity-systems,
  .partner-card-link--university-of-manchester
) .partner-logo {
  filter: grayscale(1) brightness(1.6) contrast(1.05);
}

html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link:is(:hover, :focus-visible) .core__el__img {
  background: #e9f0f2;
}

html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link:is(:hover, :focus-visible) .partner-logo {
  filter: none;
}

html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link .core__el__inner {
  min-height: 4.25rem;
  padding: .8rem 1rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.35;
}

@media (max-width: 850px) {
  html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="qrl-dawn"] body.coreTeam .partner-section .partner-card-link :is(.core__el, .core__el__img, .partner-logo) {
    transition: none;
  }
}
