/**
 * Retrospectives (M-016): the user's and the community's pages (site/retrospective/{show,community}) and the
 * "Retrospectiva" section of the home (components/retrospective/home-section). Cards with a big number in Bebas Neue
 * over the gradient of the module color (--module, from .is-{module} in media-kit.css), posters with the kit's corners
 * and the number of the list over a dark gradient, cards entering one after the other while scrolling
 * (js/components/retrospective.js) and still for whoever asks for less motion. Semantic tokens of
 * layout-site/master.css only. Markup: resources/views/components/retrospective/*.
 */

/* ================== BAND ================== */
.retro-band {
    background-image:
        radial-gradient(1100px 560px at -4% -18%, color-mix(in srgb, var(--module) 30%, transparent) 0%, transparent 66%),
        radial-gradient(760px 420px at 104% 8%, color-mix(in srgb, var(--module) 12%, transparent) 0%, transparent 70%);
}

.retro-band-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 30px;
    margin-top: 26px;
}

.retro-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--module);
}

.retro-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.18em;
    margin: 16px 0 0;
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: clamp(76px, 10.5vw, 176px);
    line-height: 0.84;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--text-1);
}

.retro-title:focus {
    outline: none;
}

.retro-title-sub {
    color: var(--module);
}

.retro-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    max-width: 820px;
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-2);
}

.retro-periods {
    margin-top: 24px;
}

.retro-periods-list {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 2px 2px 6px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.retro-periods-list::-webkit-scrollbar {
    display: none;
}

.retro-periods-list > li {
    flex: none;
}

.retro-period {
    height: 36px;
    padding: 0 15px;
}

.retro-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 22px;
}

.retro-actions-divider {
    flex: none;
    width: 1px;
    height: 26px;
    background: var(--line-strong);
}

.retro-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.retro-share-formats {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.retro-share-format {
    height: 42px;
}

/* ================== BODY ================== */
.retro-body {
    padding-top: 30px;
    padding-bottom: var(--section-gap);
}

.retro-tabs {
    margin-bottom: 28px;
}

.retro-tabs .nav-link {
    text-decoration: none;
}

/* One column, two from 992 px; a card left alone on its row takes the whole row (the numbers card always does) */
.retro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 992px) {
    .retro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .retro-grid > .retro-card:only-child,
    .retro-grid > .retro-card.is-wide ~ .retro-card:nth-child(even):last-child {
        grid-column: 1 / -1;
    }
}

.retro-grid--after {
    margin-top: 48px;
}

.retro-empty-wrap {
    margin-top: 8px;
}

/* ================== CARD ================== */
.retro-card {
    container: retro-card / inline-size;
    position: relative;
    min-width: 0;
    padding: clamp(22px, 2.4vw, 34px);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--module) 24%, var(--line));
    border-radius: var(--radius);
    background-color: var(--surface-1);
    background-image:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--module) 24%, transparent) 0%, transparent 58%),
        linear-gradient(160deg, color-mix(in srgb, var(--module) 7%, transparent) 0%, transparent 55%);
}

.retro-card.is-wide {
    grid-column: 1 / -1;
}

.retro-card-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--module);
}

.retro-card-text {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 21px;
    color: var(--text-2);
}

/* ================== NUMBERS ================== */
/* The first number leads on the left; the others share the rest, on one or two rows. Each number is a container,
   so its size follows the width of its own column (cqi) and the length of the value (.is-long...). */
.retro-numbers {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 30px 32px;
    margin: 0;
}

.retro-numbers.has-two-rows .retro-number:first-child {
    grid-row: span 2;
}
.retro-number {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.retro-number dd {
    order: 1;
    margin: 0;
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: min(108px, 90cqi);
    line-height: 0.88;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: var(--text-1);
}

.retro-number.is-long dd {
    font-size: min(108px, 52cqi);
}

.retro-number.is-longer dd {
    font-size: min(108px, 42cqi);
}

.retro-number.is-longest dd {
    font-size: min(108px, 36cqi);
}

.retro-number:first-child dd {
    font-size: min(156px, 90cqi);
    color: var(--module);
}

.retro-number:first-child.is-long dd {
    font-size: min(156px, 52cqi);
}

.retro-number:first-child.is-longer dd {
    font-size: min(156px, 42cqi);
}

.retro-number:first-child.is-longest dd {
    font-size: min(156px, 36cqi);
}

.retro-number.is-masterpiece dd {
    background: var(--masterpiece-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.retro-number dt {
    order: 2;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
}

/* ================== FEATURE (one title in the spotlight) ================== */
.retro-feature {
    display: grid;
    grid-template-columns: clamp(112px, 34cqi, 176px) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(18px, 5cqi, 28px);
    height: 100%;
}

.retro-feature-cover.poster-card-cover {
    align-self: start;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.95);
}

/* Alone on its row: a bigger cover */
@container retro-card (min-width: 760px) {
    .retro-feature {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 34px;
    }
}

.retro-feature-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.retro-feature-title {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 19px;
    font-weight: 700;
    line-height: 25px;
}

.retro-feature-title a {
    color: var(--text-1);
    text-decoration: none;
}

.retro-feature-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.retro-big {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: auto 0 0;
    padding-top: 18px;
}

.retro-big > i {
    align-self: center;
    font-size: 30px;
    color: var(--masterpiece);
}

.retro-big-number {
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: clamp(84px, 8.6vw, 150px);
    line-height: 0.82;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    color: var(--text-1);
}

.retro-big-unit {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
}

.retro-big.is-masterpiece .retro-big-number {
    background: var(--masterpiece-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.retro-big.is-masterpiece .retro-big-unit,
.retro-big-tag {
    color: var(--masterpiece);
}

.retro-big-tag {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ================== FIRST AND LAST (titles finished in the period) ================== */
.retro-first-last {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.retro-first-last-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
}

.retro-first-last-item:first-child {
    padding-top: 2px;
}

.retro-first-last-item:last-child {
    padding-bottom: 0;
}

.retro-first-last-item + .retro-first-last-item {
    border-top: 1px solid var(--line);
}

.retro-first-last-cover.poster-card-cover {
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.95);
}

.retro-first-last-body {
    min-width: 0;
}

.retro-first-last-body .retro-feature-title {
    -webkit-line-clamp: 2;
    font-size: 17px;
    line-height: 23px;
}

.retro-first-last-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-2);
}

.retro-first-last-day {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.retro-first-last-number {
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: clamp(52px, 5vw, 72px);
    line-height: 0.85;
    font-variant-numeric: tabular-nums;
    color: var(--module);
}

.retro-first-last-month {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-2);
}

/* ================== YOU VS THE COMMUNITY ================== */
.retro-versus-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.retro-versus-cover.poster-card-cover {
    flex: none;
    width: 64px;
    border-radius: var(--radius-sm);
}

.retro-versus-name {
    min-width: 0;
}

.retro-versus-name .retro-card-text {
    margin: 0 0 4px;
}

.retro-versus {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    margin: 22px 0 0;
}

.retro-versus-side {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.retro-versus-side strong {
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: clamp(72px, 7.4vw, 120px);
    line-height: 0.85;
    font-variant-numeric: tabular-nums;
    color: var(--module);
}

.retro-versus-side.is-community strong {
    color: var(--text-1);
}

.retro-versus-side span {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
}

.retro-versus-line {
    align-self: stretch;
    width: 1px;
    margin-bottom: 26px;
    background: var(--line-strong);
}

/* Alone on its row: the title, the two numbers and the text side by side */
@container retro-card (min-width: 760px) {
    .retro-versus-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: end;
        gap: 0 44px;
    }

    .retro-versus-body:not(:has(> .retro-versus-head)) {
        grid-template-columns: max-content minmax(0, 520px);
        justify-content: start;
    }

    .retro-versus {
        margin-top: 0;
    }

    .retro-versus-text {
        margin: 0 0 4px;
    }
}

/* ================== GENRES ================== */
.retro-genres {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.retro-genre {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--text-1) 9%, transparent);
}

.retro-genre:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.retro-genre-rank {
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: 58px;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--module);
}

.retro-genre-name {
    overflow: hidden;
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: clamp(34px, 3.4vw, 50px);
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text-1);
}

.retro-genre-count {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-2);
}

/* Alone on its row: the genres side by side, each with its place above */
@container retro-card (min-width: 760px) {
    .retro-genres {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 18px 28px;
    }

    .retro-genre {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 0 0 0 18px;
        border-bottom: 0;
        border-left: 1px solid color-mix(in srgb, var(--text-1) 9%, transparent);
    }

    .retro-genre:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .retro-genre-rank {
        font-size: 64px;
    }
}

/* ================== NOTICE ================== */
.retro-card--notice {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.retro-notice-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--module) 16%, transparent);
    font-size: 19px;
    color: var(--module);
}

.retro-notice-title {
    margin: 2px 0 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: var(--text-1);
}

/* ================== POSTER ROWS ================== */
.retro-section {
    padding-top: 52px;
}

.retro-rail {
    --cover-w: 172px;
    --rail-arrow-y: calc(var(--cover-w) * 0.75 + 4px);
}

.retro-rail-track {
    margin: 0;
    list-style: none;
}

/* Positioned so its screen-reader texts stay inside the rail's scroll box instead of widening the page */
.retro-poster {
    position: relative;
    width: var(--cover-w);
}

.retro-poster-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.retro-poster-link:focus-visible {
    outline: none;
}

.retro-poster-link:focus-visible .retro-poster-cover {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.retro-poster-cover {
    display: block;
}

.retro-poster-link:hover .retro-poster-cover img {
    transform: scale(1.035);
    filter: brightness(1.06);
}

.retro-poster-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 2px 8px 0;
    border-radius: 15px;
    background: rgba(11, 11, 14, 0.82);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--module) 55%, transparent);
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: 19px;
    line-height: 1;
    color: #f2efe9;
}

.retro-poster-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(11, 11, 14, 0.82);
    font-size: 13px;
}

.retro-poster-mark.is-masterpiece {
    color: var(--masterpiece);
}

.retro-poster-mark.is-favorite {
    color: var(--module);
}

/* The number of the list over a dark gradient at the foot of the cover */
.retro-poster-count {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    padding: 46px 12px 11px;
    background: linear-gradient(180deg, rgba(11, 11, 14, 0) 0%, rgba(11, 11, 14, 0.78) 45%, rgba(11, 11, 14, 0.96) 100%);
}

.retro-poster-count strong {
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: 40px;
    line-height: 0.9;
    letter-spacing: 0.01em;
    color: #f2efe9;
}

.retro-poster-count span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d6d2da;
}

.retro-poster-count.is-gold strong,
.retro-poster-count.is-gold span {
    color: var(--masterpiece);
}

/* A typographic poster lifts its title above the number */
.retro-poster-cover.has-count .poster-fallback {
    padding-bottom: 48%;
}

.retro-poster-name {
    margin-top: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2lh;
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    color: var(--text-1);
}

.retro-poster-link:hover .retro-poster-name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ================== GUESTS ================== */
.retro-join {
    padding-top: 52px;
}

.retro-card--join {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    background-image: radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 55%);
}

.retro-join-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ================== LOADING AND ERROR ================== */
.retro-skeleton {
    min-height: 280px;
    border-radius: var(--radius);
}

.retro-skeleton.is-wide {
    grid-column: 1 / -1;
    min-height: 210px;
}

.retro-error {
    margin-top: 8px;
}

/* ================== ENTRANCE ================== */
/* The blocks on screen enter when the page (or another period) appears, one after the other. retrospective.js holds
   the ones below the fold (.is-waiting) and lets them in (.is-entering, with --retro-delay between the ones that
   arrive together) as they scroll into view. Without the script every block is simply there. */
@keyframes retro-enter {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .retro-reveal {
        animation: retro-enter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .retro-grid > .retro-reveal:nth-child(2) { animation-delay: 0.09s; }
    .retro-grid > .retro-reveal:nth-child(3) { animation-delay: 0.18s; }
    .retro-grid > .retro-reveal:nth-child(4) { animation-delay: 0.27s; }
    .retro-grid > .retro-reveal:nth-child(5) { animation-delay: 0.36s; }
    .retro-grid > .retro-reveal:nth-child(n + 6) { animation-delay: 0.45s; }

    .retro-reveal.is-waiting {
        animation: none;
        opacity: 0;
        transform: translateY(28px) scale(0.985);
    }

    .retro-reveal.is-entering {
        animation: retro-enter 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
        animation-delay: var(--retro-delay, 0s);
    }
}

@media (prefers-reduced-motion: reduce) {
    .retro-home-card,
    .retro-home-card i,
    .retro-poster-cover img {
        transition: none;
    }
}

/* ================== HOME SECTION ================== */
.retro-home {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    list-style: none;
}

.retro-home-item {
    min-width: 0;
}

.retro-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-height: 228px;
    padding: 26px 28px 24px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--module) 30%, var(--line));
    border-radius: var(--radius);
    background-color: var(--surface-1);
    background-image:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--module) 34%, transparent) 0%, transparent 60%),
        linear-gradient(155deg, color-mix(in srgb, var(--module) 14%, transparent) 0%, transparent 62%);
    color: var(--text-1);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.retro-home-card:hover {
    border-color: color-mix(in srgb, var(--module) 62%, transparent);
    box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--module) 70%, transparent);
    color: var(--text-1);
    transform: translateY(-3px);
}

.retro-home-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.retro-home-period {
    margin-top: 18px;
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: clamp(52px, 4.6vw, 72px);
    line-height: 0.9;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--text-1);
}

.retro-home-period:first-child {
    margin-top: 0;
}

.retro-home-count {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-2);
}

.retro-home-count strong {
    font-family: var(--font-display);
    font-weight: var(--font-display-weight);
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--module);
}

.retro-home-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.retro-home-cta i {
    font-size: 13px;
    color: var(--module);
    transition: transform 0.2s ease;
}

.retro-home-card:hover .retro-home-cta i {
    transform: translateX(3px);
}

/* ================== SMALLER SCREENS ================== */
@media (max-width: 1199.98px) {
    .retro-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .retro-band-bar {
        margin-top: 18px;
    }

    .retro-title {
        margin-top: 12px;
    }

    .retro-lead {
        font-size: 15px;
        line-height: 22px;
    }

    .retro-body {
        padding-top: 22px;
    }

    .retro-actions-divider {
        display: none;
    }

    .retro-numbers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }

    .retro-numbers .retro-number:first-child,
    .retro-numbers.has-two-rows .retro-number:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .retro-first-last-item {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 14px;
    }

    .retro-rail {
        --cover-w: 148px;
    }

    .retro-share-format {
        height: 38px;
        padding: 0 13px;
    }

    /* The home cards become a rail that scrolls sideways, edge to edge */
    .retro-home {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--page-inset);
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        padding-bottom: 6px;
    }

    .retro-home::-webkit-scrollbar {
        display: none;
    }

    .retro-home-item {
        flex: 0 0 min(80%, 300px);
        scroll-snap-align: start;
    }

    .retro-home-card {
        min-height: 204px;
        padding: 22px 22px 20px;
    }
}
