.ref-appendix {
  margin-top: 1.5rem;
  padding: 2rem 1.75rem 2.25rem !important;
  text-align: center;
  border: 2px solid #fed7aa;
  background: linear-gradient(180deg, #fff 0%, #fffbf5 100%) !important;
}
.tile.ref-appendix .ref-appendix-title {
  margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 800; color: #111827;
  letter-spacing: -0.02em; line-height: 1.2;
}
.ref-appendix-lead {
  max-width: 34rem; margin: 0.5rem auto 1.75rem;
  color: #4b5563; font-size: 1rem; line-height: 1.55;
}

.ref-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem;
}
.ref-logo {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 8.25rem; height: 4.5rem; padding: 0.75rem 1rem;
  border-radius: 0.875rem; background: #fff;
  border: 1px solid #f3f4f6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ref-logo img {
  max-width: 100%; max-height: 1.875rem; width: auto; height: auto;
  filter: grayscale(1); opacity: 0.62;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.ref-logo--mark img { max-height: 2.75rem; }
.ref-logo--wide { flex-basis: 16.75rem; }
.ref-logo:hover {
  border-color: #fed7aa; box-shadow: 0 6px 18px -10px rgba(234, 88, 12, 0.35);
  transform: translateY(-2px);
}
.ref-logo:hover img { filter: none; opacity: 1; }

.ref-logos.is-armed .ref-logo { opacity: 0; transform: translateY(8px); }
.ref-logos.is-armed.is-visible .ref-logo {
  opacity: 1; transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  transition-delay: calc(var(--i, 0) * 35ms), calc(var(--i, 0) * 35ms), 0s, 0s;
}

.ref-videos ~ .ref-logos-block {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(253, 186, 116, 0.55);
}
.tile.ref-appendix .ref-logos-title {
  margin: 0; font-size: 1.0625rem; font-weight: 800; color: #9a3412;
  letter-spacing: -0.01em;
}
.ref-carousel { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.ref-track {
  flex: 1; min-width: 0;
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0.25rem 0.25rem 0.75rem;
  scrollbar-width: none;
}
.ref-track::-webkit-scrollbar { display: none; }
.ref-carousel--single .ref-track { justify-content: center; }
.ref-carousel--single .ref-carousel-arrow { display: none; }

.ref-video-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  scroll-snap-align: start;
  margin: 0; text-align: left;
}
.ref-video-frame {
  position: relative; aspect-ratio: 5 / 6;
  border-radius: 1rem; overflow: hidden; background: #111827;
  box-shadow: 0 14px 30px -18px rgba(17, 24, 39, 0.55);
}
.ref-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ref-unmute {
  position: absolute; left: 50%; bottom: 3.75rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.875rem; border: 0; border-radius: 999px;
  background: rgba(17, 24, 39, 0.78); color: #fff;
  font-size: 0.8125rem; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(4px);
}
.ref-unmute[hidden] { display: none; }
.ref-unmute svg { width: 1rem; height: 1rem; }
.ref-video-caption {
  display: flex; align-items: center; gap: 0.625rem;
  margin: 0.75rem 0.25rem 0;
}
.ref-video-caption-logo {
  flex: 0 0 5rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
}
.ref-video-caption-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.ref-video-caption-text { margin: 0; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ref-video-person { font-size: 0.875rem; font-weight: 700; color: #111827; }
.ref-video-role { font-size: 0.75rem; color: #6b7280; }

.ref-carousel-arrow {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #fed7aa; background: #fff; color: #9a3412; cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.ref-carousel-arrow:hover:not(:disabled) { background: #fff7ed; }
.ref-carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.ref-carousel-arrow svg { width: 1.125rem; height: 1.125rem; }

.ref-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; }
.ref-dot {
  width: 0.5rem; height: 0.5rem; padding: 0; border: 0; border-radius: 999px;
  background: #fed7aa; cursor: pointer; transition: width 0.2s ease, background 0.2s ease;
}
.ref-dot.is-active { width: 1.5rem; background: #FF9327; }

@media (max-width: 767px) {
  .ref-appendix { padding: 1.5rem 1rem 1.75rem !important; }
  .tile.ref-appendix .ref-appendix-title { font-size: 1.25rem; }
  .ref-logo { flex-basis: calc((100% - 1rem) / 3); height: 3.75rem; padding: 0.5rem 0.625rem; }
  .ref-logo--wide { flex-basis: calc((100% - 1rem) / 3 * 2 + 0.5rem); }
  .ref-logo img { max-height: 1.5rem; filter: none; opacity: 1; }
  .ref-logo--mark img { max-height: 2.25rem; }
  .ref-carousel-arrow { display: none; }
  .ref-video-card { flex-basis: 78%; scroll-snap-align: center; }
  .ref-carousel--single .ref-video-card { flex-basis: 85%; }
}
@media (min-width: 768px) {
  .ref-carousel--single .ref-video-card { flex-basis: 20rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ref-logos.is-armed .ref-logo { opacity: 1; transform: none; }
  .ref-track { scroll-behavior: auto; }
}
