/* One complete feature occupies the clipped viewport at every screen size. */
.featured-programs {
  padding: calc(68px + var(--home-heading-space-extra, 0px)) 0 68px;
  color: var(--ink);
}
.featured-programs > .wrap {
  width: min(1440px, calc(100% - 64px));
}
.featured-programs h2 {
  margin: 0 0 32px;
  font-size: clamp(27px, 3vw, 38px);
}
/* Share the carousel's content edges, including at narrow viewport widths. */
.featured-programs #featured-title {
  width: min(100%, 1040px);
  margin-inline: auto;
}
body[data-page="home"] #featured-title .featured-title-label {
  display: inline-block;
  font-size: inherit;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
  text-wrap: nowrap;
}
.featured-carousel {
  position: relative;
}
.featured-viewport {
  width: min(100%, 1040px);
  margin-inline: auto;
  overflow: hidden;
  padding: 16px 0 26px;
  touch-action: pan-y pinch-zoom;
  box-sizing: border-box;
}
.featured-viewport:focus-visible {
  outline: 3px solid #2455bc;
  outline-offset: 4px;
  border-radius: 16px;
}
.featured-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(440px * 5 / 6);
  min-width: 0;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  border: 1px solid #111;
  border-radius: 0;
  overflow: hidden;
  -webkit-user-drag: none;
}
.featured-card:focus-visible {
  outline: 3px solid #2455bc;
  outline-offset: -4px;
}
.featured-carousel.is-ready .featured-track {
  display: flex;
  /* Stretch every slide to the tallest card so navigation never changes height. */
  align-items: stretch;
  gap: 28px;
  will-change: transform;
}
.featured-carousel.is-ready .featured-card {
  flex: 0 0 100%;
  opacity: 0.24;
  transition:
    opacity 0.42s ease,
    box-shadow 0.42s ease;
  pointer-events: none;
}
.featured-carousel.is-ready .featured-card.is-current {
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 12px 30px #173d8912;
}
.featured-media {
  --featured-media-height: clamp(340px, 34vw, 470px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--featured-media-height);
  min-width: 0;
  overflow: hidden;
  background: #fff;
}
.featured-card:not(.featured-card--rider) .featured-media {
  /* Fit the shared card height without letting the source image enlarge it. */
  contain: size;
  height: 100%;
  min-height: 0;
  padding: clamp(18px, 2vw, 28px);
}
.featured-media > img,
.featured-guests img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  -webkit-user-drag: none;
}
.featured-media > .rider-visual {
  /* Include the credit row and its gap when fitting the complete visual. */
  width: min(
    calc(100% - 28px),
    calc((var(--featured-media-height) - 32px) / 1.064)
  );
  flex: 0 0 auto;
}
.featured-guests {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
}
.featured-guests > img {
  /* Keep the left portrait complete and use its ratio for both frames. */
  width: auto;
  max-width: calc((100% - 12px) / 2);
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center top;
}
.featured-guests > img[src$="/takuro-sugawara.webp"] {
  object-fit: cover;
  object-position: center;
}
.featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 3vw, 48px);
}
.featured-copy h3 {
  margin: 0 0 25px;
  font-size: clamp(25px, 2.7vw, 38px);
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}
.featured-copy h3 .heading-phrase {
  display: inline-block;
}
.featured-date {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.6;
  font-weight: 700;
}
.featured-time {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.6;
}
.featured-time-slot {
  display: inline-block;
}
.featured-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding-top: 16px;
  margin-top: auto;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}
.featured-link .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.featured-arrow {
  display: none;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.featured-carousel.is-ready .featured-arrow {
  display: flex;
}
.featured-arrow .icon {
  width: 26px;
  height: 26px;
}
.featured-arrow--previous .icon {
  transform: rotate(180deg);
}
.featured-arrow:focus-visible {
  outline: 3px solid #2455bc;
  outline-offset: 4px;
}
.featured-progress {
  display: none;
}
.featured-carousel.is-ready .featured-progress {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.featured-progress [data-featured-number] {
  font-size: 18px;
}
.featured-controls {
  display: none;
  align-items: center;
  gap: 14px;
  width: min(430px, 100%);
  min-height: 44px;
  margin: 0 auto;
}
.featured-carousel.is-ready .featured-controls {
  display: flex;
}
.featured-timer {
  flex: 1 1 auto;
  height: 3px;
  min-width: 36px;
  overflow: hidden;
  background: #1113;
}
.featured-timer-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #111;
  transform: scaleX(0);
  transform-origin: left center;
}
.featured-playback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.featured-playback svg {
  width: 24px;
  height: 24px;
}
.featured-play-icon {
  display: none;
  fill: currentColor;
}
.featured-pause-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
.featured-playback[data-paused="true"] .featured-play-icon {
  display: block;
}
.featured-playback[data-paused="true"] .featured-pause-icon {
  display: none;
}
.featured-playback:focus-visible {
  outline: 3px solid #2455bc;
  outline-offset: 3px;
}
.featured-carousel.is-resetting .featured-card {
  transition: none;
}
.featured-carousel.is-dragging .featured-viewport,
.featured-carousel.is-dragging .featured-card {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}
.featured-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* The character announcement is a self-contained, undecorated white panel. */
.featured-card--rider {
  position: relative;
  isolation: isolate;
  grid-template-rows: auto 1fr;
  padding: clamp(14px, 1.6vw, 20px);
  column-gap: 20px;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
}
.featured-carousel.is-ready .featured-card--rider,
.featured-carousel.is-ready .featured-card--rider.is-current {
  opacity: 1;
  box-shadow: none;
}
.featured-card--rider > .featured-rider-title {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}
.featured-card--rider .featured-media {
  --featured-media-height: clamp(200px, 21vw, 250px);
  border: 0;
}
.featured-card--rider .featured-copy {
  padding: 6px 4px 0 0;
  justify-content: flex-start;
}
.featured-rider-free {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.featured-rider-handshake {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.featured-rider-note {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}
@media (hover: hover) {
  .featured-card.is-current:hover {
    border-color: #111;
  }
  .featured-card:hover .featured-link .icon {
    transform: translateX(4px);
  }
  .featured-arrow:hover {
    color: var(--ink);
    background: #fff;
  }
  .featured-card--rider.is-current:hover {
    border-color: #111;
  }
}
@media (max-width: 760px) {
  .featured-programs {
    padding: calc(20px + var(--home-heading-space-extra, 0px)) 0 20px;
  }
  .featured-programs > .wrap {
    width: 100%;
  }
  .featured-programs h2 {
    margin: 0 20px 10px;
    font-size: clamp(20px, 5.2vw, 26px);
    line-height: 1.4;
  }
  .featured-viewport {
    width: min(340px, calc(100% - 64px));
    padding: 4px 0 10px;
  }
  .featured-programs #featured-title {
    width: min(340px, calc(100% - 64px));
    margin-inline: auto;
  }
  .featured-track {
    grid-template-columns: 1fr;
  }
  .featured-carousel.is-ready .featured-track {
    gap: 16px;
  }
  .featured-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: calc(520px * 5 / 6);
    border-radius: 0;
  }
  .featured-card:not(.featured-card--rider) {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .featured-carousel.is-ready .featured-card {
    flex-basis: 100%;
  }
  .featured-media {
    --featured-media-height: clamp(140px, calc(100svh - 540px), 180px);
    height: var(--featured-media-height);
    aspect-ratio: auto;
  }
  .featured-card:not(.featured-card--rider) .featured-media {
    height: 100%;
    min-height: 0;
    padding: 10px;
  }
  .featured-media > .rider-visual {
    width: min(calc(100% - 24px), 87%);
  }
  .featured-copy {
    padding: 12px;
  }
  .featured-copy h3 {
    margin-bottom: 8px;
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.4;
  }
  .featured-date {
    font-size: 13px;
    line-height: 1.5;
  }
  .featured-time {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.5;
  }
  .featured-link {
    padding-top: 8px;
    font-size: 13px;
  }
  .featured-link .icon {
    width: 20px;
    height: 20px;
  }
  .featured-arrow {
    width: 44px;
    height: 44px;
    touch-action: manipulation;
  }
  .featured-controls {
    width: min(340px, calc(100% - 64px));
    gap: 8px;
  }
  .featured-carousel.is-ready .featured-progress {
    margin-top: 6px;
    font-size: 12px;
  }
  .featured-progress [data-featured-number] {
    font-size: 16px;
  }
  .featured-arrow .icon {
    width: 24px;
    height: 24px;
  }
  .featured-card--rider {
    grid-template-rows: auto auto 1fr;
    padding: 8px 12px;
    border-radius: 0;
  }
  .featured-card--rider > .featured-rider-title {
    font-size: clamp(16px, 4.2vw, 20px);
    margin-bottom: 5px;
  }
  .featured-card--rider .featured-media {
    --featured-media-height: clamp(110px, calc(100svh - 540px), 150px);
    height: var(--featured-media-height);
    aspect-ratio: auto;
  }
  .featured-card--rider .featured-media > .rider-visual {
    width: min(100%, calc((var(--featured-media-height) - 6px) / 1.064));
  }
  .featured-card--rider .featured-copy {
    padding: 4px 0 0;
  }
  .featured-rider-free {
    margin-top: 4px;
    font-size: 13px;
  }
  .featured-rider-handshake {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
  }
  .featured-rider-note {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .featured-carousel.is-ready .featured-card,
  .featured-link .icon,
  .featured-arrow {
    transition: none;
  }
}
