/* Writing pages: the field dispatches, the /writing/ hub, the characters hub and the five character pages.
   Only what the pack does not have: real images in figures and cards, the dispatch and character link lists,
   the cast cards, and the click-to-load video facade (markup kept for /js/lite-yt.js). Tokens only. */

/* Real images (the pack's .jsw-plate is a stand-in) */
.writing-figure { margin: 0; }
.writing-figure img { display: block; width: 100%; height: auto; }

/* Section label set as a kicker heading */
.writing-kicker { margin-bottom: 24px; }

/* CTA and "more" link lists */
.writing-links { margin-top: 32px; }
.writing-links ul { list-style: none; margin: 0; padding: 0; }
.writing-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* /writing/ hub: one line under each dispatch link */
.writing-hook { display: block; color: var(--text-muted); }

/* Characters hub: cast cards, five across on wide screens */
.writing-cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.writing-cast li { display: flex; }
.writing-cast__card { display: flex; flex-direction: column; width: 100%; padding: 0; overflow: hidden; color: var(--text); text-decoration: none; }
.writing-cast__card:hover, .writing-cast__card:focus-visible { color: var(--text); border-color: var(--accent); }
.writing-cast__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--line); }
.writing-cast__body { display: block; padding: 14px 16px 18px; }
.writing-cast__name { display: block; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-transform); letter-spacing: var(--display-tracking); line-height: var(--display-leading); font-size: 1.25rem; color: var(--heading); }
.writing-cast__role { display: block; margin-top: 4px; }
.writing-cast__hook { display: block; margin-top: 8px; font-size: .92em; color: var(--text-muted); }

/* Click-to-load YouTube facade (lite-yt.js swaps the button for the player) */
.yt-facade { position: relative; max-width: 360px; aspect-ratio: 9 / 16; overflow: hidden; background: var(--bg-sunk); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.yt-facade-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
/* the poster covers anything drawn inside the button: draw the focus ring around the facade instead */
.yt-facade-btn:focus-visible { outline: none; }
.yt-facade:has(.yt-facade-btn:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.yt-facade-poster, .yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-facade-play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); box-shadow: var(--shadow); transition: transform .15s ease, background-color .15s ease; }
.yt-facade-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--on-accent); }
.yt-facade-btn:hover .yt-facade-play, .yt-facade-btn:focus-visible .yt-facade-play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-strong); }
