/* televised stories <-> Video section (includes/televised.php) */
.ad-storyvid .ad-case-videos__list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ad-storyvid .ad-casevid .ad-casebox__more { margin-top: 10px; }
.ad-vidstory + .ad-vidstory { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ad-rule); }
.ad-vidstory__dek { margin: 6px 0 10px; font-size: 1rem; line-height: 1.45; color: var(--ad-fg); }

/* moments: stills from a recording inside a story, linking to that second on the Video page (ad_moments meta) */
.ad-moment { margin: 28px 0; }
.ad-moment__img { position: relative; display: block; line-height: 0; }
.ad-moment__img img { width: 100%; height: auto; display: block; }
.ad-moment__img::after { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 48, 0.18); transition: background-color 0.15s; }
.ad-moment__img:hover::after { background: rgba(20, 16, 48, 0.32); }
.ad-moment__btn { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--ds-color-signal); color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); transition: transform 0.15s; }
.ad-moment__btn svg { width: 34px; height: 34px; margin-left: 4px; }
.ad-moment__img:hover .ad-moment__btn { transform: scale(1.08); }
.ad-moment__play { position: absolute; z-index: 1; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--ad-fg); color: #fff; font-size: .875rem; line-height: 1.2; font-weight: 700; }
.ad-moment__play svg, .ad-moment__cue svg { width: 14px; height: 14px; flex: none; }
.ad-moment figcaption { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ad-rule); }
.ad-sec .ad-moment figcaption a { display: grid; gap: 3px; color: var(--ad-fg); text-decoration: none; }
.ad-sec .ad-moment .ad-moment__cue { display: flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 700; line-height: 1.3; color: var(--ds-color-signal-ink); }
.ad-moment figcaption, .ad-moment__label { font-family: var(--ds-font-body); }
.ad-sec .ad-moment .ad-moment__label { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ds-color-ink); }
.ad-sec .ad-moment figcaption a:hover .ad-moment__label { text-decoration: underline; text-underline-offset: 3px; }
.ad-moment__time { font-variant-numeric: tabular-nums; }
/* a moment playing in place (ad-moments.js): the recording's player is laid over the still's place (the slot) and the transcript
   grows out beneath it. The player is loaded ahead, out of sight, so a tap starts it. */
.ad-moments-box { position: relative; }
.ad-moment.is-playing > .ad-moment__img { display: none; }
.ad-moments-box > .ad-moment__stage { position: absolute; z-index: 1; margin: 0; visibility: hidden; pointer-events: none; }
.ad-moments-box > .ad-moment__stage.is-live { visibility: visible; pointer-events: auto; }
.ad-moments-box .ad-moment__stage .ad-stage__player { background: #000; }
.ad-moments-box .ad-moment__stage .ad-stage__transcript { height: 0; min-height: 0; overflow: hidden; transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.ad-moments-box .ad-moment__stage.is-open .ad-stage__transcript { height: min(420px, 60vh); border: 1px solid var(--ad-rule); border-top: 0; }
@media (prefers-reduced-motion: reduce) { .ad-moments-box .ad-moment__stage .ad-stage__transcript { transition: none; } }
/* jump index (ad_jump meta): the people a long story goes through, each row jumping to that person's section.
   Two columns read down, in the story's order; the ring on a headshot and the tag are the party's colour. */
.ad-jump { margin: 36px 0 44px; padding-top: 18px; border-top: 3px solid var(--ad-fg); font-family: var(--ds-font-body); }
.ad-prose .ad-jump .ad-jump__h { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; line-height: 1.2; color: var(--ad-fg); }
.ad-prose .ad-jump .ad-jump__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.ad-prose .ad-jump .ad-jump__list li { margin: 0; padding: 0; border-bottom: 1px solid var(--ad-rule); }
.ad-sec .ad-prose .ad-jump .ad-jump__row { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px 8px; margin: 0 -8px; border-radius: 6px; color: var(--ad-fg); text-decoration: none; }
.ad-sec .ad-prose .ad-jump .ad-jump__row:hover { background: var(--ad-hover); }
.ad-jump__row--r { --ad-jump-party: #b3202c; }
.ad-jump__row--d { --ad-jump-party: #1f5bb8; }
.ad-jump__row--i { --ad-jump-party: #5d6470; }
.ad-jump__face { flex: none; width: 48px; height: 48px; margin: 4px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--ds-color-paper), 0 0 0 4px var(--ad-jump-party, var(--ad-rule)); }
.ad-prose .ad-jump .ad-jump__face img { display: block; margin: 0; max-width: none; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.ad-jump__txt { display: grid; gap: 2px; min-width: 0; }
.ad-jump__who { display: flex; align-items: baseline; gap: 8px; font-size: 1.0625rem; line-height: 1.25; }
.ad-jump__who b { font-weight: 700; }
.ad-jump__who i { font-style: normal; font-size: .8125rem; font-weight: 700; white-space: nowrap; color: var(--ad-jump-party, var(--ad-soft)); }
.ad-jump__line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .9375rem; line-height: 1.35; color: var(--ad-soft); }
.ad-sec .ad-prose .ad-jump .ad-jump__row:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ad-jump__all { position: absolute; opacity: 0; pointer-events: none; }
.ad-jump__allbtn { display: none; }
.ad-prose h2[id] { scroll-margin-top: 96px; }
@media (min-width: 900px) {
	.ad-prose .ad-jump .ad-jump__list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--ad-jump-rows), auto); grid-auto-flow: column; column-gap: 40px; }
}
@media (max-width: 699px) {
	.ad-prose .ad-jump .ad-jump__list li:nth-child(n+7) { display: none; }
	.ad-prose .ad-jump .ad-jump__all:checked ~ .ad-jump__list li { display: block; }
	.ad-jump__allbtn { order: 2; display: block; margin-top: 14px; padding: 13px; border: 1px solid var(--ad-fg); border-radius: 6px; text-align: center; font-size: 1rem; font-weight: 700; color: var(--ad-fg); cursor: pointer; }
	.ad-jump { display: flex; flex-direction: column; }
	.ad-jump__all:checked ~ .ad-jump__allbtn { display: none; }
	.ad-jump__all:focus-visible ~ .ad-jump__allbtn { outline: 2px solid var(--ds-color-signal); outline-offset: 2px; }
}
/* under a section's heading (and its still): the full story on that section */
.ad-sec .ad-prose .ad-jump-more { margin: 14px 0 24px; }
.ad-sec .ad-prose p.ad-jump-more a { display: grid; gap: 3px; padding: 12px 16px; border-left: 3px solid var(--ds-color-signal); background: var(--ad-hover); color: var(--ad-fg); text-decoration: none; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.ad-jump-more a span { font-size: .8125rem; font-weight: 700; color: var(--ds-color-signal-ink); }
.ad-sec .ad-prose p.ad-jump-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) { .ad-moment__btn { width: 56px; height: 56px; margin: -28px 0 0 -28px; } .ad-moment__btn svg { width: 26px; height: 26px; } .ad-moment__play { display: none; } }
/* full testimony (ad_testimony meta): the hearing's player with its whole synced transcript, cued to where this senator's
   questioning starts (ad-moments.js docks the recording's one player here until a moment above is played) */
.ad-testimony { margin: 44px 0 36px; padding-top: 18px; border-top: 3px solid var(--ad-fg); }
.ad-prose .ad-testimony h2 { margin-top: 0; }
.ad-testimony .ad-moment--dock { margin: 16px 0 0; }
.ad-testimony .ad-moment--dock + .ad-moment--dock { margin-top: 12px; }
.ad-moment--dock figcaption { margin-top: 0; }
.ad-moment--dock.is-playing figcaption { margin-top: 10px; }
#full-testimony { scroll-margin-top: 96px; }