/* Homepage hero and carousel, including approved backgrounds and responsive layouts. */
/* Homepage section rhythm: v3 homepage mockup and approved October 12 review. */
.home main > .section {
  padding-block: 40px;
}

.home main > .section + .section {
  border-top: 1px solid var(--divider);
}

.home main > .section--news {
  background: var(--cream);
}

.home main > .section--pathways {
  background: var(--white);
}
@media (max-width: 600px) {
  .home main > .section {
    padding-block: 32px;
  }
}
.hero {
  background: var(--navy-700);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.hero::after {
  background: rgb(244 179 51 / 7%);
  border-radius: 50%;
  bottom: -190px;
  content: "";
  height: 430px;
  position: absolute;
  right: -150px;
  width: 430px;
}

.hero__grid {
  align-items: center;
  display: grid;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold-500);
  margin: 0 0 var(--space-5);

}

.hero h1 {
  color: var(--white);
  font-size: 60px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 15ch;
}

.hero h1 strong {
  color: var(--gold-500);
  display: block;
}

.hero__tagline {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
  margin: var(--space-5) 0 var(--space-6);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.button--create {
  background: var(--series-create);
}

.button--ghost {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 24%);
}

.featured-carousel {
  --stack-clearance: 60px;
  min-width: 0;
}

.featured-carousel__slides {
  --stack-x: 26px;
  --stack-y: -22px;
  display: grid;
  position: relative;
  isolation: isolate;
  margin: 66px var(--stack-clearance) 0 0;
}
@media (max-width: 600px) {
  .featured-carousel { --stack-clearance: 36px; }
  .featured-carousel__slides {
    --stack-x: 16px;
    --stack-y: -14px;
    margin: 42px var(--stack-clearance) 0 0;
  }
}

.featured-slide {
  --depth: 0;
  grid-area: 1 / 1;
  opacity: 0;
  transform-origin: right top;
  transform: translate(calc(var(--depth) * var(--stack-x)), calc(var(--depth) * var(--stack-y))) scale(calc(1 - var(--depth) * 0.06));
  filter: brightness(calc(1 - var(--depth) * 0.17));
  z-index: calc(10 - var(--depth));
  transition: transform 480ms ease-out, opacity 420ms ease-out, filter 480ms ease-out;
  visibility: hidden;
  pointer-events: none;
  background: linear-gradient(150deg, var(--slide-color, var(--navy-600)), var(--navy-700));
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  inset: 0;
}

.featured-slide[data-stack-depth="1"] { --depth: 1; opacity: 0.9; visibility: visible; }
.featured-slide[data-stack-depth="2"] { --depth: 2; opacity: 0.7; visibility: visible; }
.featured-slide[data-stack-depth="3"] { --depth: 3; opacity: 0.45; visibility: visible; }

/* Only the selection layer receives pointers on rear cards; their content stays inert. */
.featured-slide__select,
.featured-slide__select:hover,
.featured-slide__select:active {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  pointer-events: auto;
}
.featured-slide__select[hidden] { display: none; }

/* Measure natural card heights in the shared grid without stretching captions. */
.featured-carousel.is-measuring .featured-slide {
  position: relative;
  inset: auto;
  align-self: start;
}

/* Only the active card sets the row height; rear cards follow its outline. */
.featured-slide.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .featured-slide { transition: none; }
}

.featured-slide__media {
  flex: 0 0 auto;
  text-decoration: none;
  min-height: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.featured-slide__details {
  flex: 1;
  background: var(--slide-color, var(--navy-600));
  padding: 20px 24px;
  overflow-wrap: anywhere;
}

.featured-slide__details p {
  color: var(--white);
}

.featured-slide__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.featured-slide__preview.is-playing {
  opacity: 1;
}

.featured-slide__media .featured-slide__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.featured-slide__link:focus-visible {
  outline-offset: -4px;
}

.featured-slide__media [data-preview-toggle],
.featured-slide__sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: rgb(15 36 64 / 76%);
  border: 1px solid rgb(255 255 255 / 24%);
  color: var(--white);
}

/* Preview controls share the sound overlay treatment, with an 8px gap. */
.featured-slide__media [data-preview-toggle] {
  inset: auto 66px 14px auto;
  border-radius: 50%;
}

.featured-slide__media [data-preview-toggle] .featured-slide__play {
  position: static;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  line-height: 1;
}

/* Hover-capable pointers reveal controls together; keyboard and touch retain access. */
@media (hover: hover) and (pointer: fine) {
  .featured-slide__media [data-preview-toggle],
  .featured-slide__sound {
    opacity: 0;
    pointer-events: none;
  }

  .featured-slide__media:hover [data-preview-toggle],
  .featured-slide__media:hover .featured-slide__sound,
  .featured-slide__media:focus-within [data-preview-toggle],
  .featured-slide__media:focus-within .featured-slide__sound {
    opacity: 1;
    pointer-events: auto;
  }
}

.featured-slide__sound[hidden] {
  display: none;
}

.featured-slide__sound svg,
.featured-slide__media [data-preview-toggle] svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

.featured-slide__play .preview-pause,
.featured-slide__play[data-playing="true"] .preview-play {
  display: none;
}

.featured-slide__play[data-playing="true"] .preview-pause {
  display: block;
}

.featured-slide__sound .sound-audible,
.featured-slide__sound[aria-pressed="true"] .sound-muted {
  display: none;
}

.featured-slide__sound[aria-pressed="true"] .sound-audible {
  display: block;
}

.featured-slide__preview.is-playing ~ .featured-slide__badge {
  max-width: calc(100% - 86px);
}

.card-badge {
  align-self: flex-start;
  background: var(--white);
  border-radius: var(--radius-pill);
  color: var(--slide-color, var(--navy-600));
  display: inline-flex;
  font-size: var(--fs-caption);
  font-weight: 700;
  padding: 7px 14px;
}

.featured-slide__badge {
  background: var(--slide-color, var(--navy-600));
  border-radius: 6px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  padding: 5px 10px;
  position: absolute;
  left: 14px;
  top: 14px;
  max-width: calc(100% - 28px);
  overflow-wrap: anywhere;
  text-transform: uppercase;
  z-index: 1;
}

.featured-slide h2 {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 var(--space-1);
}

.featured-slide p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.featured-slide__action {
  color: var(--white);
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.featured-slide__action:hover {
  color: var(--white);
  text-decoration-thickness: 2px;
}

.carousel-controls {
  margin-right: var(--stack-clearance, 0px);
  align-items: center;
  display: flex;
  gap: 4px;
  /* The circle is inset 5px inside its target: 7px + 5px = 12px visible gap. */
  margin-top: 7px;
}

.carousel-control {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  padding: 10px;
  position: relative;
  isolation: isolate;
  width: 44px;
}

.carousel-control::before {
  background: rgb(9 22 40 / 60%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  content: "";
  inset: 5px;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  color: var(--gold-500);
}

.carousel-control:hover::before,
.carousel-control:focus-visible::before {
  background: rgb(9 22 40 / 85%);
  border-color: var(--gold-500);
}

.carousel-control svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.carousel-dot {
  background: rgb(255 255 255 / 42%);
  border: 0;
  min-height: 0;
  padding: 0;
  height: 8px;
  width: 8px;
}

.carousel-dot.is-active {
  background: var(--gold-500);
  width: 24px;
}
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {

  .hero__grid {
    gap: var(--space-7);
  }
}

/* September 14 homepage direction, simplified for the approved staging review. */
/* Homepage-only background adaptation approved October 16, 2026. */
.home .hero {
  background:
    radial-gradient(ellipse 70% 90% at 18% 40%, rgb(9 22 40 / 55%), transparent 70%),
    radial-gradient(ellipse 120% 60% at 50% 115%, rgb(6 16 30 / 60%), transparent 60%),
    linear-gradient(118deg, rgb(15 36 64 / 97%) 0%, rgb(17 45 82 / 93%) 30%, rgb(28 87 143 / 86%) 48%, rgb(46 93 58 / 88%) 70%, rgb(31 122 122 / 86%) 88%, rgb(24 92 97 / 90%) 100%),
    var(--navy-700);
}
.hero { padding-block: clamp(48px, 6vw, 84px); }
.home .hero::before,
.home .hero::after {
  content: "";
  inset: 0;
  position: absolute;
  pointer-events: none;
  border-radius: 0;
  width: auto;
  height: auto;
}
.home .hero::before {
  background:
    radial-gradient(circle at 100% 100%, transparent 138px, rgb(255 222 150 / 42%) 139px 140px, transparent 141px, transparent 238px, rgb(255 222 150 / 28%) 239px 240px, transparent 241px, transparent 338px, rgb(255 222 150 / 17%) 339px 340px, transparent 341px, transparent 438px, rgb(255 222 150 / 10%) 439px 440px, transparent 441px),
    radial-gradient(circle at 90% 5%, transparent 123px, rgb(255 222 150 / 17%) 124px 125px, transparent 126px, transparent 223px, rgb(255 222 150 / 10%) 224px 225px, transparent 226px),
    radial-gradient(circle at 5% 105%, transparent 148px, rgb(255 255 255 / 9%) 149px 150px, transparent 151px);
}
.home .hero::after {
  background-image: radial-gradient(rgb(244 179 51 / 40%) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  mask-image:
    linear-gradient(180deg, #000, transparent) ,
    linear-gradient(305deg, #000, transparent 65%);
  mask-size: 150px 230px, 46% 72%;
  mask-position: left 20px top 96px, right bottom;
  mask-repeat: no-repeat;
}
@media (max-width: 1080px) {
  .home .hero {
    background:
      linear-gradient(180deg, var(--navy-700) 0%, rgb(15 36 64 / 96%) 38%, rgb(15 36 64 / 35%) 72%, transparent),
      linear-gradient(135deg, var(--navy-700) 25%, var(--series-civic) 60%, var(--series-community) 82%, rgb(24 92 97) 100%);
  }
  .home .hero::after { mask-image: linear-gradient(305deg, #000, transparent 65%); mask-size: 60% 45%; mask-position: right bottom; }
}
.hero__grid { gap: clamp(28px, 3vw, 48px); grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); }
@media (min-width: 1081px) {
  .hero { padding-top: clamp(36px, calc(6vw - 28px), 56px); padding-bottom: calc(clamp(48px, 6vw, 84px) - 16px); }
  .hero__grid { gap: clamp(12px, calc(3vw - 30px), 32px); }
}
.hero .carousel-controls { justify-content: center; }
.hero__tagline::before { background: var(--gold-500); content: ""; display: block; height: 5px; width: 76px; margin-bottom: 20px; }
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(38px, 10vw, 55px); }
  .hero__tagline { font-size: 23px; }
  .featured-slide__media { min-height: 240px; padding: var(--space-5); }
  .featured-slide__details { padding: 16px 20px; }
}

.featured-slide__thumbnail { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: 0.85; pointer-events: none; }
.featured-slide h2 a { color: white; text-decoration: none; }

/* Homepage actions and archive cards retain their component roles. */
.hero .button-row .button { font-size: var(--fs-button); gap: 6px; padding: 14px 24px; }
.hero .button--ghost { background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 24%); }
.hero .button-row > .button { max-width: min(100%, calc(100vw - 40px)); }
.hero .button-row > .button { width: 230px; }
@media (max-width: 600px) {
  .eyebrow { letter-spacing: 0.18em; }
  .hero .button-row .button { padding-inline: 20px; }
}
