.page-references .references-hero-logo {
  justify-self: center;
  width: clamp(96px, 12vw, 150px);
  height: auto;
}

.page-references .references-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--style1-interior-line, #35415c);
}

.page-references .references-tabs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px clamp(8px, 2vw, 22px);
  border-bottom: 3px solid transparent;
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}

.page-references .references-tabs a[aria-selected="true"] {
  border-bottom-color: currentColor;
  color: var(--dev-cyan, #89dff0);
}

.page-references .references-panel {
  scroll-margin-top: 150px;
}

.page-references .references-panel[hidden] {
  display: none;
}

.page-references .references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-references .references-grid li {
  margin: 0;
  min-width: 0;
}

.page-references .reference-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--style1-interior-line, #35415c);
  border-radius: 14px;
  background: var(--style1-interior-raised, #1c243a);
  color: #f5f3fc;
  text-decoration: none;
}

.page-references .reference-card img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 82px;
  padding: 12px 16px;
  object-fit: contain;
  background: #fff;
}

.page-references .reference-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  font-weight: 650;
  line-height: 1.35;
}

.page-references .reference-caption > span {
  color: var(--dev-cyan, #89dff0);
}

.page-references .references-directories {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.page-references .reference-card small {
  margin: -6px 14px 14px;
  color: #d0ccdf;
  line-height: 1.5;
}

.page-references .reference-card:hover .reference-caption,
.page-references .references-tabs a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-references :is(.reference-card, .references-tabs a):focus-visible {
  outline: 3px solid var(--dev-cyan, #89dff0);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .page-references .references-hero-logo { display: none; }
}

@media (max-width: 540px) {
  .page-references .references-grid:not(.references-directories) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-references .reference-card img { height: 70px; padding: 10px; }
  .page-references .reference-caption { padding: 10px; overflow-wrap: anywhere; }
}
