/* Shared page hero + study-area marquee — used across hubs and detail pages */

.uxp-hero {
  position: relative;
  padding: 148px 24px 72px;
  text-align: center;
  overflow: hidden;
  background: #fff;
}
.uxp-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%);
  width: 1240px;
  max-width: 100%;
  background-image: repeating-linear-gradient(to right, #eeeef4 0 1px, transparent 1px 177px);
  background-position: center top;
  background-size: 1240px 100%;
  background-repeat: no-repeat;
}
.uxp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.uxp-hero-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
  color: #1f18e2;
}
.uxp-hero-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  line-height: normal;
  color: #626262;
}
.uxp-hero-crumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.uxp-hero-crumb a:hover,
.uxp-hero-crumb a:focus-visible {
  color: #1f18e2;
}
.uxp-hero h1 {
  margin: 0;
  max-width: 1050px;
  font-family: var(--font-display), Inter, Arial, sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.125;
  text-transform: uppercase;
  color: #111;
  text-wrap: balance;
}
.uxp-hero-tagline {
  margin: 0;
  max-width: 880px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #111;
}
.uxp-hero-lead {
  margin: 0;
  max-width: 880px;
  font-size: 20px;
  line-height: 1.5;
  color: #626262;
  text-wrap: pretty;
}
.uxp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 8px;
}

/* Animated study-area ribbon — same behaviour site-wide */
.uxp-ribbon {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1f18e2;
  box-shadow: 0 4px 5.25px rgba(0, 0, 0, 0.25);
  padding: 8px 0;
}
.uxp-ribbon-track {
  display: flex;
  width: max-content;
  animation: uxp-marquee 40s linear infinite;
}
.uxp-ribbon-list {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  margin: 0;
  list-style: none;
}
.uxp-ribbon-list li {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
}
.uxp-ribbon-list span {
  font-size: 20px;
  line-height: 32px;
  white-space: nowrap;
  color: #e0f100;
}
.uxp-ribbon-list img {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.uxp-ribbon-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 10px 17.8px 0 rgba(255, 255, 255, 0.42);
}

@keyframes uxp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .uxp-ribbon-track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .uxp-hero {
    padding: 112px 20px 40px;
  }
  .uxp-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }
  .uxp-hero-tagline,
  .uxp-hero-lead {
    font-size: 16px;
  }
  .uxp-hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .uxp-hero-actions > * {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .uxp-ribbon-list {
    gap: 20px;
    padding-right: 20px;
  }
  .uxp-ribbon-list li {
    gap: 20px;
  }
  .uxp-ribbon-list span {
    font-size: 15px;
    line-height: 26px;
  }
}
