/* A notebook rhythm: one idea, a drawing, then a short explanation. */
.visual-story .inspiration-post { max-width: 550px; margin: 28px auto 36px; }
.inspiration-post .post-embed { width: 100%; }
.inspiration-post .post-embed iframe { border-radius: 12px; }
.inspiration-post .twitter-tweet { margin: 0 auto !important; }
.inspiration-post .post-fallback { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.inspiration-post .post-fallback p { margin: 0; }
.inspiration-post .post-fallback p + p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.visual-story .inspiration-post figcaption { margin-top: 12px; color: var(--muted); font: 14px/1.65 var(--sans); text-align: center; }
@media print {
  .inspiration-post .post-embed { display: none; }
  .inspiration-post .post-fallback[hidden] { display: block; }
}
.visual-story .project-overview { margin: 0 0 28px; padding: clamp(18px, 3vw, 28px); background: var(--soft); line-height: 1.7; }
.visual-story .project-overview p { margin: 0; }
.visual-story .project-overview p + p { margin-top: 18px; }
.visual-story .notebook-figure { margin: 32px 0 38px; }
.visual-story .notebook-figure img { display: block; width: 100%; height: auto; color-scheme: inherit; }
.visual-story .notebook-figure figcaption { color: var(--muted); font: 14px/1.65 var(--sans); }
.visual-story .notebook-figure figcaption { margin-top: 14px; text-align: center; }
.visual-story .report-figure { margin-block: 30px; }
.visual-story .report-figure figcaption { font-size: 13px; line-height: 1.65; }
.visual-story .cable-meme { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 1; max-width: 500px; margin: 32px auto 12px; background: var(--page); }
/* Show the original reactions; captions use the article’s live typography. */
.cable-meme .meme-reactions { grid-area: 1 / 1 / 3 / 2; overflow: hidden; min-width: 0; }
.visual-story .meme-reactions img { display: block; width: 200%; max-width: none; height: 100%; }
.visual-story .meme-caption { display: grid; place-content: center; margin: 0; padding: clamp(12px, 3vw, 24px); color: var(--text); font: 500 clamp(15px, 2.7vw, 21px)/1.45 var(--sans); letter-spacing: -0.015em; text-align: center; text-wrap: balance; }
.cable-meme .meme-caption + .meme-caption { border-top: 1px solid var(--line); }
.visual-story .compact-sources { padding-top: 28px; border-top: 1px solid var(--line); }
.visual-story .compact-sources h2 { font-size: 16px; margin-bottom: 14px; }
.visual-story .compact-sources p { font-size: 14px; color: var(--muted); }
.citation { position: relative; top: -0.4em; margin-left: 2px; font-size: 0.72em; font-weight: 400; line-height: 0; vertical-align: baseline; white-space: nowrap; }
.citation a { padding-inline: 2px; color: var(--muted); text-decoration: none; }
.citation a:hover { color: var(--text); text-decoration: underline; }
.visual-story .source-notes { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; font: 14px/1.6 var(--sans); }
.source-notes li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; gap: 8px; margin: 0; align-items: baseline; scroll-margin-top: 28px; }
.source-number, .source-return { color: var(--muted); }
.source-detail { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.source-return { display: grid; place-items: center; min-height: 24px; text-decoration: none; }
.source-return:hover { color: var(--text); }
.source-notes li:target { outline: 1px solid var(--line); outline-offset: 6px; }
.visual-story .related-reading-title { margin: 26px 0 12px; color: var(--muted); font: 500 13px/1.6 var(--sans); }
.visual-story .source-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; font-size: 13px; }
.visual-story .source-links li { margin: 0; }
.visual-story .real-world-figure { margin: 32px 0 36px; }
.visual-story .real-world-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.visual-story .real-world-figure figcaption { margin-top: 12px; color: var(--muted); font: 13px/1.65 var(--sans); text-align: center; }
.visual-story .real-world-figure--board { max-width: 400px; margin-inline: auto; }
@media print {
  .visual-story .real-world-figure { break-inside: avoid; }
  .visual-story .notebook-figure, .visual-story .cable-meme { break-inside: avoid; }
}

/* Keep lists part of the article, with the same type and reading width. */
.visual-story .prose-list { margin: 0 0 26px; padding-left: 24px; line-height: 1.8; }
.visual-story .prose-list li { margin: 0; padding-left: 4px; }
.visual-story .prose-list li + li { margin-top: 12px; }
.visual-story .prose-list li::marker { color: var(--muted); }
.visual-story .prose-list strong { font-weight: 600; color: var(--text); }
.visual-story .playground .reading-notes { padding-left: 18px; }
.visual-story .reading-notes li { margin: 0; padding-left: 2px; }
.visual-story .reading-notes li + li { margin-top: 7px; }

/* Keep the original sketch intact; just trace the work along its time axis. */
.overlap-player { position: relative; }
.overlap-player > .overlap-animation { display: block; width: 100%; height: auto; }
.overlap-animation .schedule-progress { stroke: none; fill-opacity: 0.26; }
.overlap-animation .schedule-progress.cnn { stroke: none; fill: var(--teal); }
.overlap-animation .schedule-progress.projection { stroke: none; fill: var(--amber); }
.overlap-animation .schedule-playhead { fill: none; stroke: var(--ink); stroke-width: 1.2; transition: opacity 180ms ease; }
.overlap-animation .gate { transition: stroke 180ms ease; }
.overlap-animation .gate.schedule-complete { stroke: var(--teal); }
.schedule-toggle { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 32px; height: 32px; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; touch-action: manipulation; }
.schedule-toggle:hover { color: var(--text); background: var(--soft); }
.schedule-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.schedule-toggle svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) { .schedule-toggle { width: 44px; height: 44px; padding: 14px; } }
@media (max-width: 620px) {
  .source-notes li { grid-template-columns: 24px minmax(0, 1fr) 36px; gap: 8px; }
  .source-return { min-height: 36px; }
  .source-detail { font-size: 13px; }
  .schedule-toggle { width: 44px; height: 44px; padding: 14px; }
}
@media (max-width: 480px) {
  .overlap-player .overlap-animation .heading { font-size: 30px; }
  .overlap-player .overlap-animation .device,
  .overlap-player .overlap-animation .task { font-size: 28px; }
  .overlap-player .overlap-animation .note { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .schedule-toggle, .overlap-animation .schedule-playhead, .overlap-animation .schedule-progress { display: none; }
  .overlap-animation .gate { transition: none; }
}
@media print {
  .schedule-toggle, .overlap-animation .schedule-playhead, .overlap-animation .schedule-progress { display: none; }
}
