/* Ravenry Reels: the parts only this page adds to css/decyde-reels.css (which it reuses as it is).
   Made by the Ravenry Reels portfolio kit. The page's accent comes from
   its frontmatter (accent: "#0050c5"), as on the other Ravenry case studies. */

/* a Reel that plays through YouTube's own embed: the same Play as the others, loaded only on the tap */
.rr-yt__play {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.rr-yt__play:hover .dr-reel__pill,
.rr-yt__play:focus-visible .dr-reel__pill {
    background: var(--vs-paper);
    color: var(--vs-ink);
}

.rr-yt__play:focus-visible {
    outline: 2px solid var(--vs-accent);
    outline-offset: -4px;
}

.rr-yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* a diagram drawn as SVG: whole on a wide column, sideways on a narrow one */
.rr-diagram__scroll {
    overflow-x: auto;
    border: 1px solid var(--vs-hairline);
    background: #ffffff;
}

.rr-diagram__scroll img {
    display: block;
    width: 100%;
    height: auto;
}

@container vstory (max-width: 759px) {
    .rr-diagram__scroll img {
        min-width: 820px;
    }
}

/* Rido's note, word for word, beside what it changed */
.rr-notes {
    display: grid;
    border-top: 1px solid var(--vs-hairline);
}

.rr-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-bottom: 1px solid var(--vs-hairline);
}

.rr-note__quote {
    margin: 0;
    padding: 16px 18px 16px 0;
}

.rr-note__quote p {
    margin: 0;
    font-family: var(--vs-font-serif);
    font-style: italic;
    font-size: 1.02em;
    line-height: 1.45;
    color: var(--vs-ink);
}

.rr-note__quote cite {
    display: block;
    margin-top: 8px;
    font-family: var(--vs-font-mono);
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vs-ink-60);
}

.rr-note__now {
    margin: 0;
    padding: 16px 0 16px 18px;
    border-left: 1px solid var(--vs-hairline);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--vs-ink-60);
}

@container vstory (max-width: 599px) {
    .rr-note {
        grid-template-columns: minmax(0, 1fr);
    }

    .rr-note__now {
        padding: 0 0 16px;
        border-left: 0;
    }
}

/* timeline shots keep their own shape: a carousel slide stays 4:5, a sheet spans two cells */
.dr-frame--shot.rr-shot--own {
    aspect-ratio: var(--dr-ar);
}

.dr-frame--shot.rr-shot--own .dr-img {
    object-fit: contain;
}

.dr-frame--shot.rr-shot--wide {
    grid-column: span 2;
}

/* a portrait picture or slider in a dive stays phone-sized (the width keeps a slider, whose pictures are
   all positioned, from shrinking to nothing in a flex column) */
.dr-visual.rr-portrait {
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
}

/* the six covers, as posted, side by side */
.dr-gallery--covers {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--dr-gap);
    columns: auto;
}

.dr-gallery--covers .dr-tile {
    margin: 0;
}

@container vstory (max-width: 759px) {
    .dr-gallery--covers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Ravenry's covers carry the bird at the top right: a long tag wraps before it reaches it */
.dr-reel__tag {
    max-width: 75%;
    /* Ravenry's tags are phrases, not dates: two balanced lines with room between them */
    line-height: 1.25;
    text-wrap: balance;
}

/* Small numbering and labels meet WCAG AA (4.5:1) on this page, as on the Decyde page (whose rule names
   its own page only): the story's lightest grey (ink 40) is lifted to ink 60. Added by the site. */
[data-vibe-project="ravenry-reels"] .vibe-story__section-index,
[data-vibe-project="ravenry-reels"] .vibe-story__caption-index,
[data-vibe-project="ravenry-reels"] .vibe-page__rail-num,
[data-vibe-project="ravenry-reels"] .vibe-page__pager-count {
    color: var(--vs-ink-60);
}

/* the site footer's small social label, too (4.5:1 on paper) */
[data-vibe-project="ravenry-reels"] .site-footer__social-label {
    color: #666666;
}

/* Since October (kit update of 4 November 2026): ten silent loops in two rows of five, not one row of ten.
   The renderer sets --n inline from the number of loops, hence !important. Phones keep the two columns the
   shared stylesheet gives them. */
.dr-section--since-october .dr-loops[style*="--n: 10"] {
    --n: 5 !important;
}

/* each before and after side by side, so the eye can compare them */
.dr-section--since-october .dr-pairs--cols .dr-pairs__stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* this section's tables are short sentences and small numbers: they fit a phone, so they need no sideways scroll */
.dr-section--since-october .dr-table {
    min-width: 0;
}

.dr-section--since-october .dr-table tbody th {
    white-space: normal;
}
