/* Shared video card. The selected treatment is the compact one-column list. */
.intensive-video .video-shell.video-card {
  max-width: 968px;
  padding: 15px 15px 0;
  border: 1px solid #d5deec;
  border-radius: 12px;
  background: #f5f7fb;
  box-shadow: 0 10px 32px -24px rgb(23 35 56 / 25%);
}
.intensive-video .video-card .video-player {
  box-shadow: 0 7px 20px -12px rgb(23 35 56 / 30%);
}
.intensive-video #intensive-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
#intensive-video { scroll-margin-top: 18px; }
.video-chapters {
  --chapter-ink: #172338;
  --chapter-muted: #536175;
  --chapter-accent: #204cbd;
  --chapter-line: #e1e6ef;
  --chapter-hover: #f2f5fc;
  max-width: 824px;
  margin: 19px auto 0;
  padding-bottom: 16px;
  color: var(--chapter-ink);
  scroll-margin-top: 20px;
}
.video-chapters-heading {
  margin: 0 0 10px;
  color: var(--chapter-ink);
  font: 650 18px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.01em;
}
.video-chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.video-chapter-item {
  min-width: 0;
  border-bottom: 1px solid var(--chapter-line);
}
.video-chapter-item:first-child { border-top: 1px solid var(--chapter-line); }
.video-chapter-link {
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr) 12px;
  align-items: start;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--chapter-ink);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: background-color .15s, color .15s;
}
.video-chapter-link:hover,
.video-chapter-link[data-pending] { background: var(--chapter-hover); text-decoration: none; }
.video-chapter-link[aria-current="true"] { background: #e9effe; color: #173c9b; }
.video-chapter-link:focus-visible { outline: 2px solid var(--chapter-accent); outline-offset: 2px; }
.video-chapter-time {
  padding-top: 1px;
  color: var(--chapter-accent);
  font: 600 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.video-chapter-title { min-width: 0; }
.video-chapter-play { padding-top: 3px; color: var(--chapter-accent); font-size: 10px; line-height: 1.6; }
.video-chapter-link[data-pending] .video-chapter-play { opacity: .45; }
.video-chapter-notes {
  margin: -1px 30px 10px 67px;
  padding: 0 0 0 15px;
  color: var(--chapter-muted);
  font-size: 13px;
  line-height: 1.5;
}
.video-chapter-notes li + li { margin-top: 3px; }
.video-chapter-notes li::marker { color: #98a8c1; }
.video-chapter-notice {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.video-chapter-notice:empty { display: none; }
.video-chapter-notice[data-error] { color: #854321; }

/* 2. A continuous list read left to right, two entries per row. */
html[data-chapter-style="columns"] .video-chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
}
html[data-chapter-style="columns"] .video-chapter-item { border-top: 0; }
html[data-chapter-style="columns"] .video-chapter-item:first-child {
  grid-column: 1 / -1;
  border-top: 1px solid var(--chapter-line);
}
html[data-chapter-style="columns"] .video-chapter-link {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 6px;
  font-size: 14px;
}
html[data-chapter-style="columns"] .video-chapter-play { display: none; }
html[data-chapter-style="columns"] .video-chapter-notes { margin-left: 58px; margin-right: 6px; font-size: 12.5px; }

/* 3. A soft panel with a single time rail. */
html[data-chapter-style="rail"] .video-chapters {
  padding: 19px 20px 12px;
  border: 1px solid #e1e7f1;
  border-radius: 10px;
  background: #f5f7fb;
}
html[data-chapter-style="rail"] .video-chapter-list { position: relative; }
html[data-chapter-style="rail"] .video-chapter-list::before {
  position: absolute;
  top: 17px;
  bottom: 20px;
  left: 29px;
  width: 1px;
  background: #cbd7ef;
  content: "";
}
html[data-chapter-style="rail"] .video-chapter-item { position: relative; border: 0; }
html[data-chapter-style="rail"] .video-chapter-link { grid-template-columns: 58px minmax(0, 1fr) 12px; padding: 9px 0; gap: 12px; }
html[data-chapter-style="rail"] .video-chapter-time {
  padding: 2px 5px;
  border: 1px solid #d7e1f4;
  border-radius: 4px;
  background: #fff;
  text-align: center;
  font-size: 12px;
}
html[data-chapter-style="rail"] .video-chapter-notes { margin-left: 70px; }

/* 4. Compact, paired cards; the entire title remains visible. */
html[data-chapter-style="cards"] .video-chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
html[data-chapter-style="cards"] .video-chapter-item {
  padding: 0;
  border: 1px solid #e0e6ef;
  border-radius: 7px;
  background: #f7f9fc;
}
html[data-chapter-style="cards"] .video-chapter-item:first-child { grid-column: 1 / -1; }
html[data-chapter-style="cards"] .video-chapter-link {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 12px;
  gap: 7px 10px;
  padding: 11px 13px 12px;
  font-size: 14px;
}
html[data-chapter-style="cards"] .video-chapter-time {
  grid-column: 1;
  justify-self: start;
  padding: 0 6px;
  border-radius: 3px;
  background: #e6edfc;
  font-size: 12px;
}
html[data-chapter-style="cards"] .video-chapter-title { grid-column: 1 / -1; grid-row: 2; }
html[data-chapter-style="cards"] .video-chapter-play { grid-column: 2; grid-row: 1; justify-self: end; }
html[data-chapter-style="cards"] .video-chapter-notes { margin: -2px 13px 12px; padding-left: 15px; font-size: 12.5px; }

/* 5. The hero's navy and gold, with restrained separators. */
html[data-chapter-style="navy"] .video-chapters {
  --chapter-ink: #f1f4fa;
  --chapter-muted: #b8c5da;
  --chapter-accent: #f5cf5b;
  --chapter-line: #ffffff1c;
  --chapter-hover: #ffffff0c;
  padding: 20px 20px 12px;
  border-radius: 8px;
  background: #172338;
}
html[data-chapter-style="navy"] .video-chapters-heading { color: #f5cf5b; }
html[data-chapter-style="navy"] .video-chapter-link { padding-inline: 5px; }
html[data-chapter-style="navy"] .video-chapter-link[aria-current="true"] { color: #fff; background: #ffffff14; }
html[data-chapter-style="navy"] .video-chapter-notes { margin-left: 67px; }
html[data-chapter-style="navy"] .video-chapter-notes li::marker { color: #f5cf5b99; }

@media (max-width: 620px) {
  .intensive-video .video-shell.video-card {
    padding: 7px 7px 0;
    border-radius: 8px;
  }
  .video-chapters { margin-top: 16px; padding: 0 5px 11px; }
  .video-chapters-heading { font-size: 17px; margin-bottom: 10px; }
  .video-chapter-link { grid-template-columns: 42px minmax(0, 1fr) 10px; gap: 7px; padding: 6px 2px; font-size: 14px; line-height: 1.4; }
  .video-chapter-time { font-size: 12px; }
  .video-chapter-notes { margin-left: 51px; margin-right: 5px; font-size: 12.5px; }
  html[data-chapter-style="columns"] .video-chapter-list,
  html[data-chapter-style="cards"] .video-chapter-list { grid-template-columns: minmax(0, 1fr); }
  html[data-chapter-style="columns"] .video-chapter-item:nth-child(2) { border-top: 0; }
  html[data-chapter-style="columns"] .video-chapter-link { padding-inline: 4px; }
  html[data-chapter-style="columns"] .video-chapter-notes { margin-left: 56px; }
  html[data-chapter-style="rail"] .video-chapters { padding: 16px 12px 9px; }
  html[data-chapter-style="rail"] .video-chapter-link { grid-template-columns: 50px minmax(0, 1fr) 10px; gap: 8px; }
  html[data-chapter-style="rail"] .video-chapter-list::before { left: 25px; }
  html[data-chapter-style="rail"] .video-chapter-time { padding-inline: 3px; }
  html[data-chapter-style="rail"] .video-chapter-notes { margin-left: 58px; margin-right: 5px; }
  html[data-chapter-style="cards"] .video-chapter-link { padding: 11px 12px; }
  html[data-chapter-style="navy"] .video-chapters { padding: 17px 12px 10px; }
  html[data-chapter-style="navy"] .video-chapter-notes { margin-left: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-chapter-link { transition: none; }
}
