/**
 * Ask a Peer — Bootstrap 5 base + minimal overrides for pixel-matched design.
 * Layout uses Bootstrap grid/utilities; only brand, ads, video, and avatar rules stay here.
 */

:root {
  --aap-background: #f3f5f8;
  --aap-surface: #ffffff;
  --aap-foreground: #14213d;
  --aap-muted: rgba(20, 33, 61, 0.6);
  --aap-muted-2: rgba(20, 33, 61, 0.4);
  --aap-border: rgba(0, 0, 0, 0.06);
  --aap-brand: #226092;
  --aap-teal: #3aa6a8;
  --aap-teal-soft: #d6eeee;
  --aap-ink: #14213d;
  --aap-radius: 10px;
  --aap-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --composer-max-height: 200px;
  --bs-body-font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --bs-body-font-size: 0.875rem;
  --bs-body-line-height: 1.5;
  --bs-body-color: #14213d;
  --bs-body-bg: #f3f5f8;
  --bs-border-radius: 10px;
  --bs-border-color: rgba(0, 0, 0, 0.06);
  --bs-link-color: #14213d;
  --bs-link-hover-color: #14213d;
}

.aap-body {
  -webkit-font-smoothing: antialiased;
}

.container-aap {
  max-width: 1200px;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography & text utilities */
.text-muted-aap {
  color: var(--aap-muted) !important;
  font-size: 0.8125rem;
}

.brand {
  color: var(--aap-brand);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--aap-foreground);
}

/* Logo */
.logo {
  font-size: 1.375rem;
  font-weight: 600;
}
.logo-ai-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.logo-ask { color: var(--aap-brand); font-weight: bold; }

/* Header */
.site-header .icon-btn {
  color: var(--aap-muted);
  font-size: 1.125rem;
  text-decoration: none;
}
.site-header .icon-btn:hover {
  color: var(--aap-foreground);
}
.header-brand-logo {
  text-decoration: none;
  line-height: 0;
}
.nppa-logo {
  display: block;
  width: auto;
  max-width: min(220px, 42vw);
  height: 38px;
  object-fit: contain;
  object-position: right center;
}

@media (max-width: 576px) {
  .nppa-logo {
    height: 30px;
    max-width: min(160px, 48vw);
  }
}

/* Search hero + bar — Lovable / design mockup UI; composer grow logic from ai_prototype */
.search-wrap {
  max-width: 920px;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}
.search-hero {
  margin-bottom: 1.75rem;
  width: 100%;
}
.search-hero-title {
  font-size: clamp(1.625rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--aap-foreground);
  line-height: 1.2;
  margin-bottom: 0.625rem !important;
}
.search-hero-subtitle {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--aap-muted);
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.search-hero-subtitle strong {
  font-weight: 700;
  color: var(--aap-foreground);
}
.search-form {
  width: 100%;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #e8ecf1;
  border: 1px solid var(--aap-border);
  border-radius: var(--aap-radius);
  padding: 0.45rem 0.5rem 0.45rem 0.65rem;
}
.search-bar .icon-search {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 1.125rem;
  height: 1.125rem;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--aap-teal);
  margin-left: 0.25rem;
  transform: translateY(1px);
}
.search-bar-input {
  flex: 1 1 auto;
  display: block;
  min-width: 0;
  min-height: 1.5rem;
  max-height: var(--composer-max-height, 200px);
  padding: 0.5rem 0.35rem;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--aap-foreground);
  background: transparent;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: none;
}
.search-bar-input::placeholder {
  color: var(--aap-muted-2);
}
.search-bar-input:focus {
  outline: none;
  box-shadow: none;
}
.search-bar .ask-btn {
  flex-shrink: 0;
  align-self: flex-end;
  background: var(--aap-ink) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--aap-radius) !important;
  padding: 0.65rem 1.35rem !important;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
}
.search-bar .ask-btn:hover:not(:disabled) {
  opacity: 0.9;
  color: #fff !important;
}
.search-bar .ask-btn:disabled {
  opacity: 0.65;
}
.search-bar.is-multiline {
  align-items: flex-end;
}
.search-bar.is-multiline .icon-search {
  align-self: center;
}
.trending-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--aap-muted-2);
}
.chip {
  background: var(--aap-teal-soft) !important;
  color: var(--aap-teal) !important;
  border: none !important;
  font-size: 12px;
  padding: 0.375rem 0.75rem !important;
  border-radius: 999px !important;
}
.chip:hover {
  background: rgba(58, 166, 168, 0.2) !important;
  color: var(--aap-teal) !important;
}
.response-search-status {
  font-size: 13px;
  color: var(--aap-teal);
  margin-top: 0;
  margin-bottom: 0.75rem;
  min-height: 1.25em;
}
.search-error {
  margin-top: 1rem !important;
  max-width: 808px;
  font-size: 13px;
  border-radius: var(--aap-radius) !important;
}

/* Campaign ads */
.ad-banner-sponsored span {
  font-size: 9px;
  line-height: 12px;
  color: #737373;
}
.campaign-ad {
  width: 300px;
  height: 250px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1 !important;
  border-radius: var(--aap-radius) !important;
  color: #64748b;
  font-weight: 500;
}
@media (min-width: 768px) {
  .campaign-ad:not(.campaign-ad--sidebar) {
    width: 728px;
    height: 90px;
  }
}
.campaign-ad--sidebar {
  width: 300px;
  height: 250px;
}
.about-speaker-ad-col {
  width: 100%;
  max-width: 300px;
}
@media (max-width: 991.98px) {
  .about-speaker-row .about-speaker-ad-col {
    display: flex;
    justify-content: center;
    max-width: 100%;
  }
  .about-speaker-ad {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-speaker-ad .campaign-ad--sidebar {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 992px) {
  .about-speaker-ad-col {
    width: 300px;
  }
}

/* How it works */
.how-section {
  border-color: var(--aap-border) !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}
.step-ico {
  width: 48px;
  height: 48px;
  border-radius: var(--aap-radius);
  background: var(--aap-teal-soft);
  color: var(--aap-teal);
  font-size: 1.125rem;
}
.step-title { font-size: 0.875rem; }
.step-desc { font-size: 12px; margin-top: 4px; }
.arrow {
  color: var(--aap-muted-2);
  font-size: 1rem;
}
.arrow-mobile {
  transform: rotate(90deg);
}

/* Why */
.why {
  background: #eef1f6;
}
.why-n {
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(58, 166, 168, 0.4);
  line-height: 1;
}

/* Topics */
.bg-topics {
  background: #eef1f6 !important;
}
.topics .tag {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--aap-teal);
}
.topics .title {
  font-size: 0.875rem;
}
.view-all {
  color: var(--aap-teal);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.view-all:hover {
  text-decoration: underline;
  color: var(--aap-teal);
}

/* Spotlight */
.spotlight {
  background: var(--aap-ink) !important;
}
.spot-badge {
  background: var(--aap-teal-soft);
  color: var(--aap-teal);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
}
.spot-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.spot-quote {
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Experts */
.link-teal {
  color: var(--aap-teal);
  font-size: 13px;
  text-decoration: none;
}
.link-teal:hover {
  text-decoration: underline;
  color: var(--aap-teal);
}
/* Meet the Experts — portfolio cards */
.expert-card {
  background: var(--aap-surface);
  border: 1px solid var(--aap-border);
  border-radius: 12px;
  box-shadow: var(--aap-shadow-sm);
  overflow: hidden;
}
.expert-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
}
.expert-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 0.875rem;
  flex-shrink: 0;
}
.expert-img .speaker-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
}
.expert-img .avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px !important;
  font-size: clamp(1.5rem, 8vw, 2.5rem);
}
.expert-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1 1 auto;
}
.expert-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--aap-foreground);
  margin: 0 0 0.35rem;
}
.expert-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aap-teal);
  margin: 0;
  line-height: 1.35;
}
.expert-affiliation {
  font-size: 13px;
  font-weight: 400;
  color: var(--aap-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Avatar / speaker photo */
.avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}
.speaker-photo {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: #e2e8f0;
}
/* Response */
.ai-title {
  color: var(--aap-teal);
  font-size: 0.875rem;
}
.ai-insights .ai-body,
.ai-insights p {
  line-height: 1.7;
}
.ai-insights h3 {
  font-size: 0.9375rem;
}
.ai-insights-toggle {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--aap-teal);
  cursor: pointer;
  text-decoration: none;
}
.ai-insights-toggle:hover {
  text-decoration: underline;
  color: var(--aap-teal);
}
@media (max-width: 991.98px) {
  .ai-insights-content.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
  }
  #aiInsights .card-body {
    max-height: none;
    overflow: visible;
  }
}
.ai-insights li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
  color: var(--aap-foreground);
}
.ai-insights li::before {
  content: "•";
  color: var(--aap-teal);
  position: absolute;
  left: 4px;
}

/* AI thinking state (while search is in flight) */
.ai-insights--thinking {
  border-color: rgba(58, 166, 168, 0.35);
  box-shadow: 0 0 0 1px rgba(58, 166, 168, 0.08), var(--aap-shadow-sm);
}
.ai-thinking-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--aap-foreground);
  margin: 0;
}
.ai-thinking-sparkle {
  display: inline-block;
  animation: ai-sparkle-pulse 1.4s ease-in-out infinite;
}
.ai-thinking-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  margin-bottom: 0.75rem;
}
.ai-thinking-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aap-brand), var(--aap-teal));
  animation: ai-orb-bounce 1.2s ease-in-out infinite;
}
.ai-thinking-orb--2 {
  animation-delay: 0.15s;
}
.ai-thinking-orb--3 {
  animation-delay: 0.3s;
}
.ai-thinking-dots span {
  animation: ai-dot-fade 1.2s ease-in-out infinite;
}
.ai-thinking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.ai-thinking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
.ai-thinking-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-thinking-line {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--aap-teal-soft) 0%,
    rgba(58, 166, 168, 0.35) 45%,
    var(--aap-teal-soft) 90%
  );
  background-size: 200% 100%;
  animation: ai-line-shimmer 1.6s ease-in-out infinite;
}
.ai-thinking-line--medium {
  width: 88%;
}
.ai-thinking-line--short {
  width: 62%;
  animation-delay: 0.25s;
}

@keyframes ai-sparkle-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.12);
  }
}
@keyframes ai-orb-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.65;
  }
  40% {
    transform: translateY(-10px) scale(1.1);
    opacity: 1;
  }
}
@keyframes ai-dot-fade {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
@keyframes ai-line-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-thinking-sparkle,
  .ai-thinking-orb,
  .ai-thinking-dots span,
  .ai-thinking-line {
    animation: none;
  }
}

.video-hero {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.video-hero--featured {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
}
.response-grid .video-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.response-grid .video-card .video-hero--featured {
  flex: 1 1 auto;
  min-height: 220px;
}
.video-hero--featured .video-embed-wrap,
.video-hero--featured .np-video-wrapper {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

/* Mobile: stacked columns — flex + min-height:0 collapsed the video area */
@media (max-width: 991.98px) {
  .response-grid > .col-lg-4,
  .response-grid > .col-lg-8 {
    min-height: 0;
  }
  .response-grid .video-card {
    display: block;
    height: auto;
    min-height: 0;
  }
  .response-grid .video-card .video-hero--featured {
    display: block;
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 200px;
    height: auto;
  }
}

@media (min-width: 992px) {
  .response-grid {
    --response-row-min-h: 440px;
    min-height: var(--response-row-min-h);
  }
  .response-grid > .col-lg-4,
  .response-grid > .col-lg-8 {
    min-height: var(--response-row-min-h);
  }
  .response-grid .ai-insights,
  .response-grid .video-card {
    min-height: var(--response-row-min-h);
  }
  .video-hero--featured {
    aspect-ratio: auto;
    min-height: var(--response-row-min-h);
  }
  .response-grid .video-card .video-hero--featured {
    min-height: 0;
    flex: 1 1 auto;
  }
  #aiInsights .card-body {
    max-height: var(--response-row-min-h);
    overflow-y: auto;
  }
}
.speaker-name {
  font-weight: 600;
  font-size: 0.875rem;
}
.speaker-role {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--aap-muted);
  margin-top: 2px;
}
.duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 3;
}

/* About the speaker — height aligned with 300×250 sidebar ad */
.about-speaker-ad-col .about-speaker-ad {
  min-height: 266px;
}
.about-speaker-card-body {
  min-height: 266px;
  max-height: 266px;
  overflow: hidden;
}
.about-speaker-bio-scroll {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.about-speaker-bio-scroll::-webkit-scrollbar {
  width: 6px;
}
.about-speaker-bio-scroll::-webkit-scrollbar-thumb {
  background: rgba(20, 33, 61, 0.15);
  border-radius: 3px;
}

.about-speaker-badge {
  background: var(--aap-teal-soft);
  color: var(--aap-teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}
.about-speaker-profile .speaker-photo {
  width: 56px;
  height: 56px;
}
.about-speaker-name {
  font-size: 1.125rem;
  color: var(--aap-foreground);
}
.about-speaker-specialty {
  font-size: 13px;
}
.about-speaker-bio {
  font-size: 0.875rem;
  line-height: 1.75;
}

/* Related videos — horizontal carousel (design mockup) */
.related-title-icon {
  color: var(--aap-teal);
  font-size: 1.125rem;
  line-height: 1;
}
.related-carousel-wrap {
  overflow: hidden;
}
.related-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.related-track::-webkit-scrollbar {
  display: none;
}
.related-card {
  flex: 0 0 min(22rem, 88vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.875rem;
  background: var(--aap-surface);
  border: 1px solid var(--aap-border);
  border-radius: var(--aap-radius);
  box-shadow: var(--aap-shadow-sm);
  padding: 0.75rem;
  min-height: 7.5rem;
}
.related-card-thumb {
  position: relative;
  flex: 0 0 7.5rem;
  width: 7.5rem;
  min-height: 5.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #2576c4, #3aa6a8);
  background-size: cover;
  background-position: center;
}
.related-card-thumb .duration {
  z-index: 4;
}
.related-play-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: background 0.15s ease;
}
.related-play-btn:hover {
  background: rgba(15, 23, 42, 0.4);
}
.related-play-btn i {
  font-size: 1.75rem;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.related-card-thumb .duration {
  bottom: 6px;
  right: 6px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}
/* Related video modal */
.related-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.related-video-modal.hidden {
  display: none !important;
}
.related-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
}
.related-video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1120px);
  max-height: 90vh;
}
.related-video-modal-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.95);
  color: #f1f5f9;
  cursor: pointer;
}
.related-video-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--aap-radius);
  overflow: hidden;
}
.related-video-modal-player .np-video-wrapper,
.related-video-modal-player .video-embed-wrap {
  position: absolute;
  inset: 0;
}
.related-video-modal-player .video-card-iframe,
.related-video-modal-player .video-card-video {
  width: 100%;
  height: 100%;
}
body.related-video-modal-open {
  overflow: hidden;
}
.related-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.125rem 0;
}
.related-category {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--aap-teal-soft);
  color: var(--aap-teal);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.related-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--aap-foreground);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-speaker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.related-speaker .speaker-photo,
.related-speaker .avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.related-speaker .meta-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--aap-foreground);
  line-height: 1.3;
}
.related-speaker .meta-specialty {
  font-size: 10px;
  color: var(--aap-muted);
  margin-top: 1px;
  line-height: 1.3;
}
.related-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--aap-teal);
  background: var(--aap-surface);
  color: var(--aap-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.related-nav-btn:hover:not(:disabled) {
  background: var(--aap-teal-soft);
}
.related-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.related-nav-btn i {
  font-size: 1rem;
  line-height: 1;
}
.related-empty {
  font-size: 13px;
  color: var(--aap-muted);
}

/* Footer */
.footer-links a:hover {
  color: var(--aap-foreground) !important;
}

/* Embedded video players */
.video-hero--embed {
  background: #0f172a;
}
.video-hero--embed .video-embed-wrap,
.video-hero--embed .np-video-wrapper {
  position: absolute;
  inset: 0;
  background: #000;
}
.video-card-iframe,
.video-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-embed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #334155, #0f172a);
  font-size: 0.85rem;
}
.video-embed-fallback a {
  color: var(--aap-teal);
  font-weight: 600;
}
.np-video-highlight-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 2;
  display: none;
  pointer-events: none;
}
.np-video-highlight-range {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--aap-teal);
  border-radius: 1px;
  min-width: 2px;
}
.np-video-wrapper.is-expanded {
  position: fixed !important;
  inset: 0;
  z-index: 2500;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.94);
  padding: 3.25rem 1rem 1.5rem;
  aspect-ratio: unset !important;
}
.np-video-wrapper.is-expanded .video-card-iframe,
.np-video-wrapper.is-expanded .video-card-video {
  position: relative !important;
  inset: auto !important;
  width: min(96vw, 1120px);
  height: min(78vh, calc(min(96vw, 1120px) * 0.5625));
  max-height: 78vh;
  flex-shrink: 0;
}
.np-video-wrapper.is-expanded .np-video-highlight-track {
  position: relative;
  width: min(96vw, 1120px);
  margin-top: 0.35rem;
}
.video-minimize-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.95);
  color: #f1f5f9;
  cursor: pointer;
}
.np-video-wrapper.is-expanded .video-minimize-btn {
  display: inline-flex;
}
body.video-expand-open {
  overflow: hidden;
}
