@charset "UTF-8";

/*
 * Home-only stylesheet.
 * This lets / drop sw-template-bridge.css and the generated template app.css
 * while the rest of the frontend migration continues page by page.
 */

:root,
[data-bs-theme="light"] {
    --bs-body-bg: #ffffff;
    --bs-body-color: #161514;
    --bs-body-color-rgb: 22, 21, 20;
    --bs-secondary-color: rgba(22, 21, 20, 0.64);
    --bs-border-color: rgba(17, 17, 17, 0.12);
    --bs-link-color-rgb: 17, 17, 17;
    --bs-link-hover-color-rgb: 17, 17, 17;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #000000;
    --bs-body-color: #eef2f6;
    --bs-body-color-rgb: 238, 242, 246;
    --bs-secondary-color: rgba(238, 242, 246, 0.68);
    --bs-border-color: rgba(255, 255, 255, 0.12);
    --bs-link-color-rgb: 238, 242, 246;
    --bs-link-hover-color-rgb: 255, 255, 255;
}

body.sw-body.sw-home-page {
    background: var(--sw-site-bg-gradient) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] body.sw-body.sw-home-page {
    background: var(--sw-site-bg-gradient) !important;
}

/* Minimal Bootstrap compatibility used by the home template/header/footer. */
.container {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    margin-top: var(--bs-gutter-y);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.col { flex: 1 0 0; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-12 { flex: 0 0 auto; width: 100%; }
.row-cols-2 > * { flex: 0 0 auto; width: 50%; }

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .row-cols-lg-5 > * { flex: 0 0 auto; width: 20%; }
}

@media (min-width: 1200px) {
    .col-xl-3 { flex: 0 0 auto; width: 25%; }
}

.g-3,
.gx-3 { --bs-gutter-x: 1rem; }
.g-3,
.gy-3 { --bs-gutter-y: 1rem; }
.g-4,
.gx-4 { --bs-gutter-x: 1.5rem; }
.g-4,
.gy-4 { --bs-gutter-y: 1.5rem; }

.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

.position-relative { position: relative !important; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }
.ms-auto { margin-left: auto !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.px-0 { padding-right: 0 !important; padding-left: 0 !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

@media (min-width: 992px) {
    .p-lg-5 { padding: 3rem !important; }
}

.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-reset { color: inherit !important; }
.text-white { color: #fff !important; }
.text-secondary { color: var(--bs-secondary-color) !important; }
.small { font-size: 0.875em; }
.fw-normal { font-weight: 400 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fs-5 { font-size: 1.25rem !important; }
.h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.2; }
.h6 { font-size: 1rem; line-height: 1.35; }
.display-6 { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.12; }

.bg-black { background-color: #000 !important; }
.bg-transparent { background-color: transparent !important; }
.bg-body { background-color: var(--bs-body-bg) !important; }
.bg-surface { background: color-mix(in srgb, var(--bs-body-bg) 82%, var(--bs-body-color) 18%) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--bs-border-color) !important; }
.border-bottom { border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-3 { border-radius: 0.5rem !important; }
.rounded-pill { border-radius: 999px !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08) !important; }
.h-100 { height: 100% !important; }

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.card {
    position: relative;
    min-width: 0;
    word-wrap: break-word;
}

.card-body {
    flex: 1 1 auto;
}

.card-title {
    margin-top: 0;
}

.card-img-top {
    width: 100%;
}

.stretched-link::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: inherit;
    text-decoration: none;
    background: none;
    border: 0;
}

.nav-pills .nav-link {
    border-radius: 999px;
    color: var(--sw-quiet-copy);
    font-weight: 500;
    letter-spacing: 0;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus-visible,
.nav-pills .nav-link.active {
    color: var(--bs-body-color);
}

.nav-pills .nav-link.active {
    box-shadow: inset 0 -2px 0 currentColor;
}

.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }
.fade { transition: opacity 0.15s linear; }
.fade:not(.show) { opacity: 0; }

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
}

.page-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.form-control {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    outline: 0;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show { display: block; }

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background-color: #000;
}

.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: 0.72; }

@media (max-width: 575.98px) {
    .modal-fullscreen-sm-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .modal-fullscreen-sm-down .modal-content {
        min-height: 100%;
        border: 0;
        border-radius: 0;
    }
}

/* Home cards and sections. */
.sw-home-empty {
    overflow: hidden;
}

.sw-home-main .card-title a {
    text-decoration: none;
}

.sw-home-main .text-truncate-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sw-home-page .sw-home-card .card-title,
.sw-home-page .sw-home-rank-card .card-title,
.sw-home-page .sw-home-rail-card .card-title,
.sw-home-page .sw-home-news-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: calc(1em * var(--sw-home-title-line-height, 1.42) * var(--sw-home-title-lines, 2));
    -webkit-line-clamp: var(--sw-home-title-lines, 2);
    -webkit-box-orient: vertical;
}

.sw-home-page .sw-home-card .card-title,
.sw-home-page .sw-home-rank-card .card-title,
.sw-home-page .sw-home-rail-card .card-title {
    --sw-home-title-lines: 2;
    --sw-home-title-line-height: 1.42;
}

.sw-home-page .sw-home-news-card__title {
    --sw-home-title-lines: 3;
    --sw-home-title-line-height: 1.6;
}

.sw-home-main .sw-date-badge:empty,
.sw-home-main .sw-rank-badge:empty {
    display: none;
}

.sw-home-main .card-body .small.text-secondary {
    line-height: 1.4;
}

.sw-home-page {
    --sw-home-card-pad: clamp(0.38rem, 1vw, 0.62rem);
    --sw-home-card-surface: var(--sw-ui-panel-bg);
    --sw-home-card-surface-hover: var(--sw-ui-panel-bg-strong);
    --sw-home-card-border: color-mix(in srgb, var(--bs-body-color) 18%, transparent);
    --sw-home-card-border-hover: color-mix(in srgb, var(--bs-body-color) 34%, transparent);
    --sw-home-card-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

[data-bs-theme="dark"] .sw-home-page {
    --sw-home-card-border: color-mix(in srgb, #ffffff 18%, transparent);
    --sw-home-card-border-hover: color-mix(in srgb, #ffffff 34%, transparent);
    --sw-home-card-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
}

.sw-home-page .sw-home-card,
.sw-home-page .sw-home-rank-card,
.sw-home-page .sw-home-rail-card {
    overflow: hidden;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition:
        transform 0.18s ease;
}

.sw-home-page .sw-home-card:hover,
.sw-home-page .sw-home-card:focus-within,
.sw-home-page .sw-home-rank-card:hover,
.sw-home-page .sw-home-rank-card:focus-within,
.sw-home-page .sw-home-rail-card:hover,
.sw-home-page .sw-home-rail-card:focus-within {
    transform: none;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.sw-home-card .card-img-top,
.sw-home-rank-card .card-img-top,
.sw-home-rail-card .card-img-top {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--sw-surface-frame);
    border-radius: 0 !important;
}

.sw-home-page .sw-item .card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition:
        transform 0.18s ease;
}

.sw-home-page .sw-item .sw-card-media-link {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.sw-home-page .sw-item .sw-card-media-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--sw-ui-panel-border-strong) 78%, transparent);
    outline-offset: -4px;
}

.sw-home-page .sw-item .card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    will-change: transform;
}

.sw-home-page .sw-item .card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--sw-overlay-clear);
    transition: background-color 0.2s ease;
}

.sw-home-page .sw-item:hover .card-media img {
    transform: scale(1.08);
}

.sw-home-page .sw-item:hover .card-media,
.sw-home-page .sw-item:focus-within .card-media {
    box-shadow: none;
}

.sw-home-page .sw-item:hover .card-media::after {
    background: var(--sw-overlay-hover);
}

.sw-home-page .sw-cart-btn {
    position: absolute;
    right: 0.72rem;
    bottom: 0.72rem;
    z-index: 5;
    display: inline-grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(10, 12, 16, 0.78);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.sw-home-page .sw-cart-btn:hover,
.sw-home-page .sw-cart-btn:focus-visible {
    background: rgba(26, 31, 38, 0.92);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px) scale(1.04);
    outline: 0;
}

.sw-date-badge,
.sw-rank-badge,
.sw-home-news-card__date {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0;
    background: var(--sw-date-badge-bg);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.sw-home-page .sw-home-card > .sw-date-badge,
.sw-home-page .sw-home-rail-card > .sw-date-badge,
.sw-home-page .sw-home-rank-card > .sw-rank-badge {
    top: 0;
    left: 0;
}

.sw-home-page .sw-date-badge.sw-date-badge--home {
    min-width: var(--sw-home-date-badge-min-width);
    min-height: var(--sw-home-date-badge-min-height);
    padding: var(--sw-home-date-badge-padding);
    background: var(--sw-home-date-badge-bg);
    box-shadow: var(--sw-home-date-badge-shadow);
    font-size: var(--sw-home-date-badge-font-size);
    backdrop-filter: blur(6px);
}

.sw-home-page .sw-home-news-card__date {
    min-width: var(--sw-home-date-badge-min-width);
    min-height: var(--sw-home-date-badge-min-height);
    padding: var(--sw-home-date-badge-padding);
    background: var(--sw-home-date-badge-bg);
    box-shadow: var(--sw-home-date-badge-shadow);
    font-size: var(--sw-home-date-badge-font-size);
    backdrop-filter: blur(6px);
}

[data-bs-theme="light"] .sw-home-page .sw-date-badge.sw-date-badge--home,
[data-bs-theme="light"] .sw-home-page .sw-home-news-card__date {
    background: var(--sw-home-date-badge-bg);
    box-shadow: var(--sw-home-date-badge-shadow);
}

.sw-home-page .sw-ranking .sw-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.35rem, 4vw, 2.65rem);
    height: clamp(2.35rem, 4vw, 2.65rem);
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: #111 !important;
    box-shadow: none;
    color: #fff !important;
}

.sw-home-page .sw-ranking .sw-rank-badge[data-rank="1"] { background: #d4b058 !important; }
.sw-home-page .sw-ranking .sw-rank-badge[data-rank="2"] { background: #9ca3af !important; }
.sw-home-page .sw-ranking .sw-rank-badge[data-rank="3"] { background: #c79a62 !important; }

.sw-home-page .sw-home-card .card-body,
.sw-home-page .sw-home-rank-card .card-body,
.sw-home-page .sw-home-rail-card .card-body {
    display: flex;
    flex-direction: column;
    gap: var(--sw-home-space-1);
    min-height: 6.15rem;
    padding-inline: clamp(0.08rem, 0.4vw, 0.18rem);
}

.sw-home-page .sw-home-card .card-title,
.sw-home-page .sw-home-rank-card .card-title,
.sw-home-page .sw-home-rail-card .card-title {
    margin: 0 !important;
    color: var(--sw-home-card-title);
    line-height: 1.42;
    letter-spacing: 0.01em;
    transition: color 0.18s ease, transform 0.18s ease;
}

.sw-home-page .sw-home-card:hover .card-title,
.sw-home-page .sw-home-card:focus-within .card-title,
.sw-home-page .sw-home-rank-card:hover .card-title,
.sw-home-page .sw-home-rank-card:focus-within .card-title,
.sw-home-page .sw-home-rail-card:hover .card-title,
.sw-home-page .sw-home-rail-card:focus-within .card-title {
    transform: translateY(-1px);
}

.sw-home-page .sw-home-card .card-title a,
.sw-home-page .sw-home-rank-card .card-title a,
.sw-home-page .sw-home-rail-card .card-title a {
    color: inherit;
}

.sw-home-page .sw-home-card--featured .card-title {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
}

.sw-home-page .sw-home-main .small.text-secondary {
    color: var(--sw-home-card-meta) !important;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.sw-home-page [data-sw-card-link] {
    cursor: pointer;
}

.sw-home-page .sw-home-card__meta {
    display: flex;
    align-items: center;
    align-self: flex-start;
    justify-content: flex-start;
    width: 100%;
    min-height: 1.2rem;
    margin-top: 0.12rem !important;
    text-align: left;
    line-height: 1.35;
}

.sw-home-page .sw-home-card__meta-mobile {
    display: none;
}

.sw-home-page .sw-home-card__meta-desktop {
    display: inline;
}

.sw-home-page .sw-home-section {
    padding-top: clamp(var(--sw-home-space-5), 5vw, var(--sw-home-space-6));
    padding-bottom: clamp(var(--sw-home-space-5), 5vw, var(--sw-home-space-6));
}

.sw-home-page .sw-home-section .sw-section-head {
    margin-bottom: clamp(var(--sw-home-space-4), 3.8vw, var(--sw-home-space-5));
}

.sw-home-page .sw-home-section .sw-section-title {
    margin-bottom: calc(var(--sw-home-space-1) * 0.5) !important;
    letter-spacing: 0.06em;
}

.sw-home-page .sw-home-section .sw-section-subtitle {
    max-width: 32rem;
    margin-inline: auto;
    margin-bottom: var(--sw-home-space-3) !important;
}

.sw-home-page .sw-home-section .sw-section-tabs {
    gap: var(--sw-home-space-3) !important;
    margin-bottom: var(--sw-home-space-3) !important;
}

.sw-home-page .sw-ranking .sw-section-tabs {
    margin-bottom: clamp(var(--sw-home-space-4), 4vw, var(--sw-home-space-5)) !important;
}

.sw-home-page .sw-ranking .nav-pills .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--sw-tap-target-min, 44px);
    border-radius: 0;
    padding: 0.45rem 0.12rem 0.72rem;
    color: var(--sw-quiet-copy);
    font-size: clamp(1.02rem, 1.48vw, 1.15rem);
    font-weight: 800;
    background: transparent !important;
    box-shadow: none !important;
}

.sw-home-page .sw-ranking .nav-pills .nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.42);
    transform-origin: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.sw-home-page .sw-ranking .nav-pills .nav-link:hover,
.sw-home-page .sw-ranking .nav-pills .nav-link:focus-visible,
.sw-home-page .sw-ranking .nav-pills .nav-link.active {
    color: var(--bs-body-color);
}

.sw-home-page .sw-ranking .nav-pills .nav-link:hover::after,
.sw-home-page .sw-ranking .nav-pills .nav-link:focus-visible::after {
    opacity: 0.38;
    transform: scaleX(0.82);
}

.sw-home-page .sw-ranking .nav-pills .nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.sw-home-page .sw-home-hero-row,
.sw-home-page .sw-home-grid-row,
.sw-home-page .sw-home-news-list,
.sw-home-page .sw-ranking-grid {
    --bs-gutter-x: var(--sw-home-grid-gap);
    --bs-gutter-y: var(--sw-home-grid-gap);
}

.sw-home-page .sw-home-main {
    padding-top: clamp(1.25rem, 2.5vw, 2.25rem);
    padding-bottom: clamp(var(--sw-home-space-4), 5vw, var(--sw-home-space-5));
}

.sw-home-page .sw-home-grid-row {
    margin-bottom: clamp(var(--sw-home-space-4), 4.5vw, var(--sw-home-space-5));
}

.sw-home-news-stack .sw-home-news-block + .sw-home-news-block {
    margin-top: clamp(var(--sw-home-space-5), 7vw, var(--sw-home-space-6));
}

.sw-home-news-list {
    padding-left: 0;
}

.sw-home-news-card {
    display: block;
    overflow: hidden;
    height: 100%;
    padding: 0;
    color: inherit;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    transition:
        transform 0.18s ease;
}

.sw-home-news-card:hover,
.sw-home-news-card:focus-within {
    transform: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.sw-home-news-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition:
        transform 0.18s ease;
}

.sw-home-news-card__media-link,
.sw-home-news-card__title-link {
    color: inherit;
    text-decoration: none;
}

.sw-home-news-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sw-home-news-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    will-change: transform;
}

.sw-home-news-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--sw-overlay-clear);
    transition: background-color 0.2s ease;
}

.sw-home-page [data-sw-home-defer] img[data-sw-defer-image] {
    background: var(--sw-surface-frame);
    filter: saturate(0.85);
    opacity: 0.72;
}

.sw-home-page [data-sw-home-defer] img.is-hydrated {
    opacity: 1;
    filter: none;
    transition:
        opacity 0.22s ease,
        filter 0.22s ease,
        transform 0.35s ease;
}

.sw-home-news-card:hover .sw-home-news-card__media,
.sw-home-news-card:focus-within .sw-home-news-card__media {
    box-shadow: none;
}

.sw-home-news-card:hover .sw-home-news-card__image,
.sw-home-news-card:focus-within .sw-home-news-card__image {
    transform: scale(1.08);
}

.sw-home-news-card:hover .sw-home-news-card__media::after,
.sw-home-news-card:focus-within .sw-home-news-card__media::after {
    background: var(--sw-overlay-hover);
}

.sw-home-news-card__body {
    padding: var(--sw-home-space-2) clamp(0.08rem, 0.4vw, 0.18rem) 0;
}

.sw-home-news-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--sw-home-card-title);
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.01em;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: color 0.18s ease, transform 0.18s ease;
}

.sw-home-news-card:hover .sw-home-news-card__title,
.sw-home-news-card:focus-within .sw-home-news-card__title {
    transform: translateY(-1px);
}

.sw-home-news-card__title-link:hover,
.sw-home-news-card__title-link:focus-visible {
    color: inherit;
    text-decoration: none;
    opacity: 0.74;
}

@media (min-width: 992px) {
    .sw-home-news-card__date {
        min-width: 4.15rem;
        min-height: 2.75rem;
        font-size: 0.92rem;
    }
}

.sw-home-pagination {
    margin-top: clamp(var(--sw-home-space-4), 4vw, var(--sw-home-space-5)) !important;
    margin-bottom: clamp(var(--sw-home-space-5), 6vw, var(--sw-home-space-6)) !important;
    padding-top: clamp(var(--sw-home-space-3), 3vw, var(--sw-home-space-4));
    padding-bottom: clamp(var(--sw-home-space-3), 3.5vw, calc(var(--sw-home-space-4) + var(--sw-home-space-1)));
}

.sw-home-pagination__list {
    gap: var(--sw-home-space-2) !important;
}

.sw-home-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    padding: 0 0.95rem;
    border: 2px solid var(--sw-pagination-neutral);
    border-radius: 999px;
    background: transparent;
    color: var(--sw-pagination-neutral);
    line-height: 1;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sw-home-pagination .page-link:hover,
.sw-home-pagination .page-link:focus-visible,
.sw-home-pagination .page-item.active .page-link {
    border-color: var(--sw-pagination-active-border);
    background: var(--sw-pagination-active-bg);
    color: var(--sw-pagination-active-ink);
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px var(--sw-pagination-focus-ring);
}

.sw-home-pagination .page-item.active .page-link {
    transform: none;
    box-shadow: none;
}

.sw-home-pagination .page-item.disabled .page-link {
    opacity: 0.52;
    box-shadow: none;
    transform: none;
}

/* Release calendar on the home page. */
.sw-article-calendar {
    padding-top: calc(var(--sw-home-space-2) * 1.2);
    padding-bottom: 0;
}

.sw-article-calendar .sw-section-head {
    margin-bottom: clamp(var(--sw-home-space-4), 3.8vw, var(--sw-home-space-5));
}

.sw-article-calendar .sw-section-title {
    margin-bottom: calc(var(--sw-home-space-1) * 0.5) !important;
    letter-spacing: 0.06em;
}

.sw-article-calendar .sw-section-subtitle {
    max-width: 32rem;
    margin-inline: auto;
    margin-bottom: var(--sw-home-space-3) !important;
    color: var(--sw-quiet-copy) !important;
}

.sw-release-calendar-slider .splide__slide > a {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--sw-surface-frame);
}

.sw-release-calendar-slider img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transform: scale(1);
    transition:
        transform 0.35s ease,
        filter 0.25s ease,
        opacity 0.25s ease;
    will-change: transform;
}

.sw-release-calendar-slider .splide__slide > a:hover img,
.sw-release-calendar-slider .splide__slide > a:focus-visible img {
    transform: scale(1.055);
    filter: saturate(1.04) contrast(1.02);
}

.sw-article-calendar__empty {
    margin: 0;
    text-align: center;
    color: var(--sw-quiet-copy);
    line-height: 1.8;
}

/* Keep top-page cards light: image/title motion only, no outer card frame. */
.sw-home-page :is(.sw-home-card, .sw-home-rank-card, .sw-home-rail-card, .sw-home-news-card) {
    position: relative;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.sw-home-page :is(.sw-home-card, .sw-home-rank-card, .sw-home-rail-card, .sw-home-news-card):hover,
.sw-home-page :is(.sw-home-card, .sw-home-rank-card, .sw-home-rail-card, .sw-home-news-card):focus-within {
    transform: none;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.sw-home-page :is(.sw-home-card, .sw-home-rank-card, .sw-home-rail-card, .sw-home-news-card)
    :is(.card-media, .sw-home-news-card__media) {
    border: 0;
    box-shadow: none;
}

.sw-home-page :is(.sw-home-card, .sw-home-rank-card, .sw-home-rail-card, .sw-home-news-card):hover
    :is(.card-media, .sw-home-news-card__media),
.sw-home-page :is(.sw-home-card, .sw-home-rank-card, .sw-home-rail-card, .sw-home-news-card):focus-within
    :is(.card-media, .sw-home-news-card__media) {
    border-color: transparent;
    box-shadow: none;
}

.sw-home-page :is(.sw-home-card, .sw-home-rank-card, .sw-home-rail-card, .sw-home-news-card):hover
    :is(.card-media img, .sw-home-news-card__image),
.sw-home-page :is(.sw-home-card, .sw-home-rank-card, .sw-home-rail-card, .sw-home-news-card):focus-within
    :is(.card-media img, .sw-home-news-card__image) {
    transform: scale(1.08);
}

.sw-home-page :is(.sw-home-card, .sw-home-rank-card, .sw-home-rail-card, .sw-home-news-card):hover
    :is(.card-title, .sw-home-news-card__title),
.sw-home-page :is(.sw-home-card, .sw-home-rank-card, .sw-home-rail-card, .sw-home-news-card):focus-within
    :is(.card-title, .sw-home-news-card__title) {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .sw-home-page .sw-home-card,
    .sw-home-page .sw-home-rank-card,
    .sw-home-page .sw-home-rail-card,
    .sw-home-news-card,
    .sw-home-news-card__media,
    .sw-home-news-card__media::after,
    .sw-home-news-card__image,
    .sw-home-news-card__title,
    .sw-home-page .sw-item .card-media,
    .sw-home-page .sw-item .card-media img,
    .sw-home-page .sw-home-card .card-title,
    .sw-home-page .sw-home-rank-card .card-title,
    .sw-home-page .sw-home-rail-card .card-title {
        transition: none;
        will-change: auto;
    }

    .sw-home-page .sw-home-card:hover,
    .sw-home-page .sw-home-card:focus-within,
    .sw-home-page .sw-home-rank-card:hover,
    .sw-home-page .sw-home-rank-card:focus-within,
    .sw-home-page .sw-home-rail-card:hover,
    .sw-home-page .sw-home-rail-card:focus-within,
    .sw-home-news-card:hover,
    .sw-home-news-card:focus-within,
    .sw-home-news-card:hover .sw-home-news-card__image,
    .sw-home-news-card:focus-within .sw-home-news-card__image,
    .sw-home-news-card:hover .sw-home-news-card__title,
    .sw-home-news-card:focus-within .sw-home-news-card__title,
    .sw-home-page .sw-item:hover .card-media img,
    .sw-home-page .sw-home-card:hover .card-title,
    .sw-home-page .sw-home-card:focus-within .card-title,
    .sw-home-page .sw-home-rank-card:hover .card-title,
    .sw-home-page .sw-home-rank-card:focus-within .card-title,
    .sw-home-page .sw-home-rail-card:hover .card-title,
    .sw-home-page .sw-home-rail-card:focus-within .card-title {
        transform: none;
    }

    .sw-release-calendar-slider img {
        transition: none;
        will-change: auto;
    }

    .sw-release-calendar-slider .splide__slide > a:hover img,
    .sw-release-calendar-slider .splide__slide > a:focus-visible img {
        transform: none;
        filter: none;
    }
}

/* Precise home rhythm. */
body.sw-body.sw-home-page {
    --sw-home-top-inset: clamp(1rem, 2vw, 1.5rem);
    --sw-home-section-gap: clamp(3.75rem, 5.4vw, 5.25rem);
    --sw-home-after-pagination-gap: var(--sw-home-section-gap);
    --sw-home-block-gap: clamp(1.8rem, 3.4vw, 2.75rem);
    --sw-home-card-col-gap: clamp(1.15rem, 2.4vw, 1.8rem);
    --sw-home-card-row-gap: clamp(2.5rem, 5vw, 3.5rem);
    --sw-home-feed-row-gap: var(--sw-home-card-row-gap);
    --sw-home-card-copy-gap: 0.58rem;
    --sw-home-date-badge-bg: var(--sw-date-badge-bg);
    --sw-home-date-badge-shadow: var(--sw-date-badge-shadow);
    --sw-home-date-badge-min-width: 3.4rem;
    --sw-home-date-badge-min-height: 2.35rem;
    --sw-home-date-badge-padding: 0.35rem 0.7rem;
    --sw-home-date-badge-font-size: 0.86rem;
    --sw-home-news-stack-intrinsic: 1240px;
    --sw-home-calendar-intrinsic: 760px;
}

[data-bs-theme="light"] body.sw-body.sw-home-page {
    --sw-home-date-badge-bg: var(--sw-date-badge-bg);
    --sw-home-date-badge-shadow: var(--sw-date-badge-shadow);
}

body.sw-body.sw-home-page .sw-layout-main--home {
    padding-bottom: 0;
}

body.sw-body.sw-home-page .sw-home-main {
    padding-top: var(--sw-home-top-inset);
    padding-bottom: 0;
}

body.sw-body.sw-home-page .sw-home-hero,
body.sw-body.sw-home-page .sw-home-news-stack,
body.sw-body.sw-home-page .sw-home-news-block,
body.sw-body.sw-home-page .sw-ranking,
body.sw-body.sw-home-page .sw-home-release-calendar {
    display: grid;
}

body.sw-body.sw-home-page .sw-home-hero,
body.sw-body.sw-home-page .sw-home-news-block,
body.sw-body.sw-home-page .sw-ranking,
body.sw-body.sw-home-page .sw-home-release-calendar {
    gap: var(--sw-home-block-gap);
}

body.sw-body.sw-home-page .sw-home-news-stack {
    gap: var(--sw-home-section-gap);
}

body.sw-body.sw-home-page .sw-home-main + .sw-home-section,
body.sw-body.sw-home-page .sw-home-section + .sw-home-section {
    margin-top: var(--sw-home-section-gap);
}

body.sw-body.sw-home-page .sw-home-main + .sw-home-news-stack {
    margin-top: var(--sw-home-after-pagination-gap);
}

body.sw-body.sw-home-page .sw-home-section {
    padding-top: 0;
    padding-bottom: 0;
}

body.sw-body.sw-home-page .sw-home-release-calendar {
    display: block;
    gap: 0;
    overflow: visible;
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    padding-top: calc(var(--sw-home-space-2) * 1.2);
    padding-bottom: 0;
}

@media (min-width: 1200px) {
    body.sw-body.sw-home-page .sw-home-release-calendar.container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    body.sw-body.sw-home-page .sw-home-release-calendar.container {
        max-width: 1320px;
    }
}

body.sw-body.sw-home-page .sw-home-release-calendar .sw-section-head {
    margin-bottom: clamp(1.75rem, 2.6vw, 2.5rem);
}

body.sw-body.sw-home-page .sw-home-release-calendar .sw-section-subtitle {
    margin-bottom: 0 !important;
}

body.sw-body.sw-home-page .sw-home-release-calendar .sw-release-calendar-slider {
    width: 100%;
}

body.sw-body.sw-home-page .sw-home-hero-row,
body.sw-body.sw-home-page .sw-home-grid-row,
body.sw-body.sw-home-page .sw-ranking-grid {
    --bs-gutter-x: var(--sw-home-card-col-gap);
    --bs-gutter-y: var(--sw-home-card-row-gap);
}

body.sw-body.sw-home-page .sw-home-hero-row,
body.sw-body.sw-home-page .sw-home-grid-row,
body.sw-body.sw-home-page .sw-home-news-list {
    --bs-gutter-x: var(--sw-home-card-col-gap);
    --bs-gutter-y: var(--sw-home-feed-row-gap);
}

body.sw-body.sw-home-page .sw-home-hero-row,
body.sw-body.sw-home-page .sw-home-grid-row {
    margin-bottom: 0;
}

body.sw-body.sw-home-page .sw-home-card .card-body,
body.sw-body.sw-home-page .sw-home-rank-card .card-body,
body.sw-body.sw-home-page .sw-home-rail-card .card-body {
    gap: var(--sw-home-card-copy-gap);
    padding-top: 0.85rem !important;
    padding-bottom: 0 !important;
}

body.sw-body.sw-home-page .sw-home-card__meta {
    min-height: 1.15rem;
    margin-top: 0.12rem !important;
}

body.sw-body.sw-home-page .sw-section-head {
    display: grid;
    gap: 0.36rem;
    margin-bottom: 0 !important;
}

body.sw-body.sw-home-page .sw-section-title,
body.sw-body.sw-home-page .sw-section-subtitle,
body.sw-body.sw-home-page .sw-section-tabs {
    margin-bottom: 0 !important;
}

body.sw-body.sw-home-page .sw-home-release-calendar .sw-section-head {
    display: block;
    margin-bottom: clamp(var(--sw-home-space-4), 3.8vw, var(--sw-home-space-5)) !important;
}

body.sw-body.sw-home-page .sw-home-release-calendar .sw-section-title {
    margin-bottom: calc(var(--sw-home-space-1) * 0.5) !important;
}

body.sw-body.sw-home-page .sw-home-release-calendar .sw-section-subtitle {
    margin-top: 0;
    margin-bottom: var(--sw-home-space-3) !important;
}

body.sw-body.sw-home-page .sw-home-news-block + .sw-home-news-block {
    margin-top: 0;
}

body.sw-body.sw-home-page .sw-home-news-card__body {
    padding-top: 0.82rem;
}

body.sw-body.sw-home-page .sw-home-pagination {
    margin-top: var(--sw-home-block-gap) !important;
    margin-bottom: 0 !important;
    padding-top: clamp(1.25rem, 2.6vw, 2rem);
    padding-bottom: 0;
}

@media (max-width: 767.98px) {
    body.sw-body.sw-home-page {
        --sw-home-top-inset: 1.25rem;
        --sw-home-section-gap: 3.5rem;
        --sw-home-after-pagination-gap: 2.75rem;
        --sw-home-block-gap: 2rem;
        --sw-home-card-col-gap: 1.05rem;
        --sw-home-card-row-gap: 2.45rem;
        --sw-home-feed-row-gap: 2.2rem;
        --sw-home-card-copy-gap: 0.52rem;
        --sw-home-news-stack-intrinsic: 1450px;
        --sw-home-calendar-intrinsic: 680px;
    }

    body.sw-body.sw-home-page .sw-home-card .card-body,
    body.sw-body.sw-home-page .sw-home-rank-card .card-body,
    body.sw-body.sw-home-page .sw-home-rail-card .card-body {
        min-height: auto;
        padding-top: 0.78rem !important;
    }

    body.sw-body.sw-home-page .sw-home-card .card-title,
    body.sw-body.sw-home-page .sw-home-rank-card .card-title,
    body.sw-body.sw-home-page .sw-home-rail-card .card-title {
        --sw-home-title-line-height: 1.44;
        min-height: calc(1em * var(--sw-home-title-line-height) * var(--sw-home-title-lines, 2));
        line-height: var(--sw-home-title-line-height);
    }

    .sw-home-page .sw-home-card__meta {
        justify-content: flex-start;
        text-align: left;
    }

    .sw-home-page .sw-home-card__meta-mobile {
        display: inline;
    }

    .sw-home-page .sw-home-card__meta-desktop {
        display: none;
    }

    .sw-home-page .sw-home-card--featured .card-title {
        --sw-home-title-line-height: 1.48;
        font-size: 0.86rem;
    }

    .sw-home-page .sw-home-card--featured .sw-home-card__meta {
        min-height: 1rem;
        font-size: 0.72rem;
    }

    .sw-home-page .sw-ranking-grid {
        --sw-ranking-peek: clamp(2.75rem, 16vw, 4.75rem);
        --sw-ranking-card-width: clamp(9.4rem, 41vw, 13.5rem);
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        flex-wrap: nowrap;
        gap: var(--sw-home-space-2);
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 var(--sw-ranking-peek) 1.35rem 0;
        scrollbar-color: color-mix(in srgb, var(--bs-body-color) 42%, transparent) transparent;
        scrollbar-width: thin;
        scroll-padding-inline: 0.25rem var(--sw-ranking-peek);
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .sw-home-page .sw-ranking .tab-pane {
        position: relative;
        padding-bottom: 0.75rem;
    }

    .sw-home-page .sw-ranking .tab-pane::before {
        content: "";
        position: absolute;
        bottom: 0.12rem;
        left: 50%;
        z-index: 2;
        width: clamp(5.4rem, 28vw, 7.5rem);
        height: 3px;
        border-radius: 999px;
        pointer-events: none;
        transform: translateX(-50%);
        background:
            linear-gradient(
                90deg,
                color-mix(in srgb, var(--bs-body-color) 54%, transparent) 0 36%,
                color-mix(in srgb, var(--bs-body-color) 17%, transparent) 36% 100%
            );
    }

    .sw-home-page .sw-ranking .tab-pane::after {
        content: "";
        position: absolute;
        top: 0;
        right: -1px;
        bottom: 2.05rem;
        z-index: 3;
        width: var(--sw-ranking-peek);
        pointer-events: none;
        background: linear-gradient(
            90deg,
            color-mix(in srgb, var(--bg) 0%, transparent),
            color-mix(in srgb, var(--bg) 86%, transparent) 58%,
            var(--bg) 100%
        );
    }

    .sw-home-page .sw-ranking-grid > .col,
    .sw-home-page .sw-ranking-grid > [class*="col-"] {
        flex: 0 0 var(--sw-ranking-card-width);
        width: var(--sw-ranking-card-width);
        max-width: none;
        padding: 0;
        scroll-snap-align: start;
    }

    .sw-home-page .sw-ranking-grid::-webkit-scrollbar {
        height: 7px;
    }

    .sw-home-page .sw-ranking-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .sw-home-page .sw-ranking-grid::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: color-mix(in srgb, var(--bs-body-color) 42%, transparent);
        border: 2px solid transparent;
        background-clip: content-box;
    }

    .sw-article-calendar {
        padding-top: clamp(2rem, 8vw, 2.75rem);
        padding-bottom: 0;
    }

    body.sw-body.sw-home-page .sw-home-release-calendar {
        overflow: hidden;
        padding-top: clamp(2rem, 8vw, 2.75rem);
    }

    body.sw-body.sw-home-page .sw-home-release-calendar.container {
        width: min(1120px, calc(100vw - 24px));
        padding-right: calc(var(--bs-gutter-x) * 0.5);
        padding-left: calc(var(--bs-gutter-x) * 0.5);
    }

    body.sw-body.sw-home-page .sw-home-release-calendar .sw-section-head {
        margin-bottom: clamp(1.25rem, 5.6vw, 1.75rem) !important;
    }

    .sw-article-calendar .sw-section-title {
        font-size: clamp(1.34rem, 6vw, 1.52rem);
        line-height: 1.12;
    }

    body.sw-body.sw-home-page .sw-home-release-calendar .sw-section-subtitle {
        margin-bottom: 1rem !important;
    }

    .sw-article-calendar .sw-release-calendar-slider {
        max-width: min(100%, 25rem);
        margin-inline: auto;
    }

    body.sw-body.sw-home-page .sw-home-release-calendar .sw-release-calendar-slider,
    body.sw-body.sw-home-page .sw-home-release-calendar .sw-release-calendar-slider .splide__track {
        overflow: visible;
    }

    .sw-article-calendar .sw-release-calendar-slider .splide__slide {
        width: 68% !important;
    }
}

@media (min-width: 576px) and (max-width: 719.98px) {
    .sw-home-page .sw-ranking .tab-pane::after {
        content: none;
        display: none;
    }

    body.sw-body.sw-home-page {
        --sw-home-section-gap: 3.65rem;
        --sw-home-block-gap: 1.85rem;
        --sw-home-card-col-gap: 1rem;
        --sw-home-card-row-gap: 2rem;
        --sw-home-feed-row-gap: 2rem;
        --sw-home-news-stack-intrinsic: 1720px;
        --sw-home-calendar-intrinsic: 720px;
    }

    body.sw-body.sw-home-page .sw-ranking {
        gap: 1.65rem;
    }

    body.sw-body.sw-home-page .sw-ranking .sw-section-tabs {
        gap: 1rem !important;
        margin-bottom: 0 !important;
    }

    body.sw-body.sw-home-page .sw-ranking-grid {
        --bs-gutter-x: var(--sw-home-card-col-gap);
        --bs-gutter-y: var(--sw-home-card-row-gap);
        flex-wrap: wrap;
        gap: 0;
        margin-top: calc(-1 * var(--bs-gutter-y));
        margin-right: calc(-0.5 * var(--bs-gutter-x));
        margin-left: calc(-0.5 * var(--bs-gutter-x));
        overflow: visible;
        padding: 0;
        scroll-padding-inline: 0;
        scroll-snap-type: none;
    }

    body.sw-body.sw-home-page .sw-ranking-grid > .col,
    body.sw-body.sw-home-page .sw-ranking-grid > [class*="col-"] {
        flex: 0 0 auto;
        width: 50%;
        max-width: 50%;
        margin-top: var(--bs-gutter-y);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        scroll-snap-align: none;
    }
}

@media (min-width: 720px) and (max-width: 991.98px) {
    body.sw-body.sw-home-page {
        --sw-home-section-gap: 3.65rem;
        --sw-home-block-gap: 1.85rem;
        --sw-home-card-col-gap: 1.1rem;
        --sw-home-card-row-gap: 2.15rem;
        --sw-home-feed-row-gap: 2.15rem;
        --sw-home-news-stack-intrinsic: 1680px;
        --sw-home-calendar-intrinsic: 740px;
    }

    body.sw-body.sw-home-page .sw-home-news-list,
    body.sw-body.sw-home-page .sw-ranking-grid {
        --bs-gutter-x: var(--sw-home-card-col-gap);
        flex-wrap: wrap;
        gap: 0;
        margin-top: calc(-1 * var(--bs-gutter-y));
        margin-right: calc(-0.5 * var(--bs-gutter-x));
        margin-left: calc(-0.5 * var(--bs-gutter-x));
        overflow: visible;
        padding: 0;
        scroll-padding-inline: 0;
        scroll-snap-type: none;
    }

    body.sw-body.sw-home-page .sw-home-news-list {
        --bs-gutter-y: var(--sw-home-feed-row-gap);
    }

    body.sw-body.sw-home-page .sw-ranking-grid {
        --bs-gutter-y: var(--sw-home-card-row-gap);
    }

    body.sw-body.sw-home-page .sw-home-news-list > .col,
    body.sw-body.sw-home-page .sw-home-news-list > [class*="col-"],
    body.sw-body.sw-home-page .sw-ranking-grid > .col,
    body.sw-body.sw-home-page .sw-ranking-grid > [class*="col-"] {
        flex: 0 0 auto;
        width: 33.333333%;
        max-width: 33.333333%;
        margin-top: var(--bs-gutter-y);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        scroll-snap-align: none;
    }
}

/* Final home-page stabilizers after dropping sw-template-bridge.css/app.css. */
body.sw-body.sw-home-page .sw-ranking {
    overflow: hidden;
}

body.sw-body.sw-home-page .sw-ranking .tab-content,
body.sw-body.sw-home-page .sw-ranking .tab-pane {
    width: 100%;
    min-width: 0;
}

body.sw-body.sw-home-page .sw-ranking-grid {
    align-items: flex-start;
}

body.sw-body.sw-home-page .sw-ranking .sw-section-tabs {
    row-gap: 0.55rem !important;
}

body.sw-body.sw-home-page .sw-ranking .nav-link {
    min-width: clamp(5.6rem, 12vw, 7rem);
    text-align: center;
}

@media (min-width: 992px) {
    body.sw-body.sw-home-page {
        --sw-home-date-badge-min-width: 4.15rem;
        --sw-home-date-badge-min-height: 2.75rem;
        --sw-home-date-badge-padding: 0.42rem 0.8rem;
        --sw-home-date-badge-font-size: 0.92rem;
    }
}

@media (max-width: 575.98px) {
    body.sw-body.sw-home-page .sw-ranking {
        gap: 1.75rem;
    }

    body.sw-body.sw-home-page .sw-ranking .sw-section-tabs {
        gap: 0.65rem !important;
        margin-bottom: 0 !important;
    }
}

@media (min-width: 576px) and (max-width: 719.98px) {
    body.sw-body.sw-home-page .sw-ranking {
        gap: 1.45rem;
    }

    body.sw-body.sw-home-page .sw-ranking .sw-section-head {
        gap: 0.28rem;
    }

    body.sw-body.sw-home-page .sw-ranking .sw-section-title {
        font-size: clamp(1.8rem, 5vw, 2.15rem);
    }

    body.sw-body.sw-home-page .sw-ranking .sw-section-subtitle {
        font-size: 0.9rem;
    }

    body.sw-body.sw-home-page .sw-ranking .sw-section-tabs {
        justify-content: center !important;
        margin-bottom: 0 !important;
    }

    body.sw-body.sw-home-page .sw-ranking-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
        gap: 0 !important;
        scroll-snap-type: none !important;
    }

    body.sw-body.sw-home-page .sw-ranking-grid > .col,
    body.sw-body.sw-home-page .sw-ranking-grid > [class*="col-"] {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0;
    }
}

@media (min-width: 720px) and (max-width: 991.98px) {
    body.sw-body.sw-home-page .sw-ranking {
        gap: 1.65rem;
    }

    body.sw-body.sw-home-page .sw-ranking-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
        gap: 0 !important;
        scroll-snap-type: none !important;
    }

    body.sw-body.sw-home-page .sw-ranking-grid > .col,
    body.sw-body.sw-home-page .sw-ranking-grid > [class*="col-"] {
        flex: 0 0 33.333333% !important;
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        min-width: 0;
    }
}

@media (min-width: 992px) {
    body.sw-body.sw-home-page .sw-ranking-grid > .col,
    body.sw-body.sw-home-page .sw-ranking-grid > [class*="col-"] {
        flex: 0 0 20%;
        width: 20%;
        max-width: 20%;
    }
}

@supports (content-visibility: auto) {
    body.sw-body.sw-home-page .sw-home-news-stack,
    body.sw-body.sw-home-page .sw-home-release-calendar {
        content-visibility: auto;
    }

    body.sw-body.sw-home-page .sw-home-news-stack {
        contain-intrinsic-size: auto var(--sw-home-news-stack-intrinsic);
    }

    body.sw-body.sw-home-page .sw-home-release-calendar {
        contain-intrinsic-size: auto var(--sw-home-calendar-intrinsic);
    }

    body.sw-body.sw-home-page .sw-ranking {
        content-visibility: visible;
        contain-intrinsic-size: none;
    }
}

/* Unified top-page card behavior: no outer frame, shared image/title motion. */
body.sw-body.sw-home-page {
    --sw-home-card-image-radius: 0;
    --sw-home-card-image-zoom: 1.075;
    --sw-home-card-title-hover-y: -2px;
    --sw-home-card-focus-ring: color-mix(in srgb, var(--bs-body-color) 42%, transparent);
    --sw-home-unified-badge-bg: var(--sw-date-badge-bg);
    --sw-home-unified-badge-shadow: var(--sw-date-badge-shadow);
    --sw-home-unified-badge-min-width: var(--sw-home-date-badge-min-width);
    --sw-home-unified-badge-min-height: var(--sw-home-date-badge-min-height);
    --sw-home-unified-badge-padding: var(--sw-home-date-badge-padding);
    --sw-home-unified-badge-font-size: var(--sw-home-date-badge-font-size);
    --sw-home-unified-rank-size: clamp(2.35rem, 4vw, 2.65rem);
}

[data-bs-theme="light"] body.sw-body.sw-home-page {
    --sw-home-unified-badge-bg: var(--sw-date-badge-bg);
    --sw-home-card-focus-ring: rgba(0, 0, 0, 0.38);
}

body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card) {
    position: relative;
    display: block;
    overflow: visible;
    height: 100%;
    padding: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    isolation: isolate;
    transform: none;
}

body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card):hover,
body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card):focus-within {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none;
}

body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card)
    :is(.card-media, .sw-home-news-card__media) {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--sw-surface-frame);
    border: 0 !important;
    border-radius: var(--sw-home-card-image-radius) !important;
    box-shadow: none !important;
    transition: filter 0.2s ease;
}

body.sw-body.sw-home-page :is(.sw-card-media-link, .sw-home-news-card__media-link) {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card)
    :is(.card-img-top, .sw-home-news-card__image) {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0 !important;
    transform: scale(1);
    transition:
        transform 0.35s ease,
        filter 0.22s ease,
        opacity 0.22s ease;
    will-change: transform;
}

body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card):hover
    :is(.card-img-top, .sw-home-news-card__image),
body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card):focus-within
    :is(.card-img-top, .sw-home-news-card__image) {
    transform: scale(var(--sw-home-card-image-zoom));
    filter: saturate(1.04) contrast(1.02);
}

body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card)
    :is(.card-title, .sw-home-news-card__title) {
    transform: translateY(0);
    transition:
        transform 0.22s ease,
        color 0.22s ease,
        opacity 0.22s ease;
    will-change: transform;
}

body.sw-body.sw-home-page :is(.card-title a, .sw-home-news-card__title-link) {
    color: inherit;
    text-decoration: none;
}

body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card):hover
    :is(.card-title, .sw-home-news-card__title),
body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card):focus-within
    :is(.card-title, .sw-home-news-card__title) {
    transform: translateY(var(--sw-home-card-title-hover-y));
}

body.sw-body.sw-home-page :is(.sw-card-media-link, .sw-home-news-card__media-link, .card-title a, .sw-home-news-card__title-link):focus-visible {
    outline: 2px solid var(--sw-home-card-focus-ring);
    outline-offset: 3px;
}

body.sw-body.sw-home-page :is(.sw-date-badge.sw-date-badge--home, .sw-home-news-card__date) {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--sw-home-unified-badge-min-width);
    min-height: var(--sw-home-unified-badge-min-height);
    padding: var(--sw-home-unified-badge-padding);
    background: var(--sw-home-unified-badge-bg);
    box-shadow: var(--sw-home-unified-badge-shadow);
    color: #fff;
    font-size: var(--sw-home-unified-badge-font-size);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

body.sw-body.sw-home-page .sw-ranking .sw-rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--sw-home-unified-rank-size);
    height: var(--sw-home-unified-rank-size);
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 0;
    background: var(--sw-home-unified-badge-bg) !important;
    box-shadow: var(--sw-home-unified-badge-shadow);
    color: #fff !important;
    font-size: var(--sw-home-unified-badge-font-size);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
    body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card)
        :is(.card-media, .sw-home-news-card__media, .card-img-top, .sw-home-news-card__image, .card-title, .sw-home-news-card__title) {
        transition: none;
        will-change: auto;
    }

    body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card):hover
        :is(.card-img-top, .sw-home-news-card__image),
    body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card):focus-within
        :is(.card-img-top, .sw-home-news-card__image),
    body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card):hover
        :is(.card-title, .sw-home-news-card__title),
    body.sw-body.sw-home-page :is(.sw-home-card, .sw-home-news-card, .sw-home-rank-card, .sw-home-rail-card):focus-within
        :is(.card-title, .sw-home-news-card__title) {
        transform: none;
        filter: none;
    }
}
