/* ── Row panels: the poster rows in panels of the header bar's colour (ROW_PANELS in plugins/settings.php) ──────────
   Linked when the site has ROW_PANELS on, with <html data-row-panels="1"> printed by index.php. From sm (640px) up every
   poster row — the home rows (components/poster-slider in #home-rows, the sm+ Editor's Choice row included), the series
   page's More Like This (the #similar-series-slot-* slots, and the skeleton that holds their place) and the profile's
   Recommended For You — and the profile page's cover strips (profile_pv_section_html + poster_slider_cards_html: My
   Reading List / Recently Read, .pv-row) sit in a rounded panel of the header bar's colour, the way the numbered
   Featured design (components/slider/4) draws its row. Corners on the card scale under UI_ROUND (the --ui-rc-2xl token,
   else 1.25rem); the hairline goes under UI_PLAIN (ui-plain.css lists .poster-slider-section and .pv-row). Not where the
   page draws the row's card itself — series layout 4's side column (.l4-side: the row is its second card, at every
   width) — nor inside a card that is a panel already: profile layout 2's cards (.pl2-card). The
   track runs out to the panel's edges, but its cards start --rp-inset in from them — the panel's own side padding, so
   the first cover lines up with the heading — and a fade of that width at each edge dissolves the half-visible
   neighbour instead of cutting it; the snap points honour the inset. The profile Overview's Activity grid (.pv-panel,
   profile layout 1 — layout 2 keeps it inside its content card) gets the same panel, evenly padded since it has no
   strip, and its surface-coloured rows step up to a white/.04 tint so they still stand out, hairline or not. Series
   layout 5 draws its chapter block bare (header, list — the bulk-unlock banner is a card of its own above it); with the switch on the block (.l5-chapters)
   becomes one such panel too — the header's own padding is the panel's, and the rows move in to its line. Phones keep the plain rows. */
@media (min-width: 640px) {
    html[data-row-panels] :is(.poster-slider-section, .pv-row, .pv-panel):not(.l4-side *, .pl2-card *) {
        --rp-inset: 1.5rem;
        background: rgb(var(--c-surface));
        border: 1px solid rgb(var(--c-white) / .07);
        border-radius: var(--ui-rc-2xl, 1.25rem);
        padding: 1.25rem 1.5rem .75rem;
    }
    html[data-row-panels] :is(.poster-slider-section, .pv-row):not(.l4-side *, .pl2-card *) :is(.poster-slider-track, .pv-row-track) {
        margin-left: -1.5rem; margin-right: -1.5rem;
        padding-left: var(--rp-inset); padding-right: var(--rp-inset); scroll-padding-left: var(--rp-inset);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--rp-inset), #000 calc(100% - var(--rp-inset)), transparent);
        mask-image: linear-gradient(90deg, transparent, #000 var(--rp-inset), #000 calc(100% - var(--rp-inset)), transparent);
    }
    html[data-row-panels] .pv-panel:not(.l4-side *, .pl2-card *) { padding-bottom: 1.25rem; }
    /* the offline downloads page: each series block is a panel of this colour already — it takes the panels' corner and hairline */
    html[data-row-panels] #downloads-root .mo-lib-group { border-color: rgb(var(--c-white) / .07); border-radius: var(--ui-rc-2xl, 1.25rem); }
    /* the home bar's cards in design 3 are panels of this look already (components/community-bar/3): beside the rows they take the rows' corner */
    html[data-row-panels] #community-bar[data-design="3"]:not(.cb-alone) .cb-card { border-radius: var(--ui-rc-2xl, 1.25rem); }
    html[data-row-panels] .series-l5 .l5-chapters { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-white) / .07); border-radius: var(--ui-rc-2xl, 1.25rem); padding-bottom: .5rem; overflow: hidden; }
    html[data-row-panels] .series-l5 .l5-chapters .series-ch-head > div { padding-left: 1rem; padding-right: 1rem; } /* layout 5 strips the header's side padding for its bare tab line: back in the panel it is the panel's inset */
    html[data-row-panels] .series-l5 .l5-chapters .series-ch-head > div:first-child { padding-top: 1rem; }
    html[data-row-panels] .series-l5 .l5-chapters #chapters-list .chapter-row { padding-left: 1rem; padding-right: 1rem; }
    html[data-row-panels] .series-l5 .l5-chapters #chapters-list.is-grid { padding: .75rem 1rem 1rem; }
    html[data-row-panels] .series-l5 .l5-chapters #chapters-list.is-grid .chapter-row { padding: 0; }
    html[data-row-panels] .pv-panel:not(.l4-side *, .pl2-card *) .bg-surface { background-color: rgb(var(--c-white) / .04); }
}
@media (min-width: 768px) { /* the shared chapter header pads px-4 md:px-5: the header and the rows keep that line */
    html[data-row-panels] .series-l5 .l5-chapters .series-ch-head > div { padding-left: 1.25rem; padding-right: 1.25rem; }
    html[data-row-panels] .series-l5 .l5-chapters #chapters-list .chapter-row { padding-left: 1.25rem; padding-right: 1.25rem; }
    html[data-row-panels] .series-l5 .l5-chapters #chapters-list.is-grid { padding: .75rem 1.25rem 1.25rem; }
    html[data-row-panels] .series-l5 .l5-chapters #chapters-list.is-grid .chapter-row { padding: 0; }
}
