.thinking-home .home-videos[hidden] { display: none !important; }

.thinking-home .home-videos {
  margin-block-end: clamp(48px, 6vw, 92px);
  padding-block-start: clamp(25px, 4vw, 52px);
  border-block-start: 1px solid var(--brand-line);
  color: var(--brand-ink);
}

.short-videos-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: clamp(17px, 2.6vw, 30px);
}

.thinking-home .short-videos-header h2 {
  margin: 0;
  font: 400 clamp(29px, 4vw, 54px)/1.1 var(--site-heading);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.short-videos-header p {
  max-inline-size: 52ch;
  margin: 10px 0 0;
  color: var(--brand-muted);
  font: 400 16px/1.55 var(--site-body);
}

.short-videos-nav {
  display: flex;
  flex: none;
  gap: 8px;
}

.short-videos-nav[hidden] { display: none; }

.short-videos-nav button,
.short-video-close {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 1px solid #c4dfea;
  border-radius: 50%;
  background: #fff;
  color: #203845;
  cursor: pointer;
}

.short-videos-nav svg,
.short-video-close svg { inline-size: 20px; block-size: 20px; }

.short-videos-nav button:disabled { opacity: .42; cursor: default; }

.short-videos-nav button:enabled:hover,
.short-video-close:hover {
  border-color: #12abf8;
  background: #e7f6ff;
}

.short-videos-track {
  --short-gap: clamp(12px, 1.5vw, 22px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(182px, 21.5%, 252px);
  gap: var(--short-gap);
  margin: 0;
  padding: 4px 4px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 4px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: #8dcced transparent;
  list-style: none;
}

.short-videos-track li { min-inline-size: 0; scroll-snap-align: start; }

.short-video-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 24px;
  inline-size: 100%;
  min-block-size: 250px;
  aspect-ratio: 9 / 13.7;
  overflow: hidden;
  padding: clamp(16px, 1.7vw, 24px);
  border: 1px solid #c0e1f3;
  border-radius: clamp(17px, 1.9vw, 26px);
  background:
    linear-gradient(0deg, var(--short-paper, #eff9ff) 4%, transparent 72%),
    repeating-linear-gradient(0deg, transparent 0 21px, #2187bd24 21px 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, #2187bd24 21px 22px),
    var(--short-paper, #eff9ff);
  color: #183c52;
  text-align: start;
  cursor: pointer;
}

.short-videos-track li:nth-child(3n + 2) .short-video-card { --short-paper: #deeffa; --short-ring-x: 48%; }
.short-videos-track li:nth-child(3n) .short-video-card { --short-paper: #d9f1ff; --short-ring-x: 67%; }
.short-videos-track li:nth-child(even) .short-video-card { --short-ring-y: 4%; }

.short-video-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-block-start: var(--short-ring-y, 14%);
  inset-inline-start: var(--short-ring-x, 38%);
  inline-size: 71%;
  aspect-ratio: 1;
  border: 1px solid #0d8fce49;
  border-radius: 50%;
  box-shadow: 0 0 0 13px #158fcd0e, 0 0 0 26px #158fcd0a;
}

.short-video-number {
  font: 400 clamp(39px, 4.5vw, 62px)/1 var(--site-heading);
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  color: #075b89;
}

.short-video-card-copy {
  display: grid;
  gap: 10px;
}

.short-video-topic {
  font: 400 clamp(20px, 2.1vw, 29px)/1.12 var(--site-heading);
  letter-spacing: -.026em;
  text-wrap: pretty;
}

.short-video-state {
  font: 550 14px/1.3 var(--site-navigation);
  color: #325e75;
}

.short-video-card:hover { border-color: #168ac5; }

.short-video-card:focus-visible,
.short-videos-nav button:focus-visible,
.short-video-close:focus-visible { outline: 2px solid #126eaa; outline-offset: 2px; }

.short-video-card.has-poster {
  background: linear-gradient(0deg, #092739f2, #09273900 76%), var(--short-poster) center / cover, #113647;
  color: #fff;
}

.short-video-card.has-poster::before { display: none; }
.short-video-card.has-poster :is(.short-video-number,.short-video-state) { color: #fff; }

.short-video-card.is-playable .short-video-state::before {
  content: '';
  display: inline-block;
  inline-size: .6em;
  block-size: .7em;
  margin-inline-end: .45em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.short-video-dialog {
  box-sizing: border-box;
  inline-size: min(390px, calc(100vw - 28px));
  max-inline-size: none;
  max-block-size: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #bbdbea;
  border-radius: 22px;
  background: #f5fbff;
  color: #173646;
  box-shadow: 0 18px 70px #102c4455;
  overflow: auto;
}

.short-video-dialog::backdrop { background: #112939a8; }
html:has(.short-video-dialog[open]) { overflow: hidden; }

.short-video-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 17px;
}

.short-video-dialog-bar h3 {
  margin: 0;
  font: 400 clamp(16px, 5vw, 20px)/1.17 var(--site-heading);
}

.short-video-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  max-block-size: calc(100dvh - 108px);
  overflow: hidden;
  background: #122c3a;
  color: #fff;
}

.short-video-frame :is(video,iframe) { inline-size: 100%; block-size: 100%; min-block-size: 0; border: 0; }

.short-video-frame p {
  margin: 22px;
  font: 400 16px/1.5 var(--site-body);
  text-align: center;
}

@media (max-width: 760px) {
  .short-videos-header { align-items: center; }
  .short-videos-track { grid-auto-columns: clamp(170px, 62%, 248px); }
}

@media (max-width: 450px) {
  .short-videos-header { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .short-videos-nav { justify-self: end; }
}
