.rock-pack-archive-page,
.rock-pack-detail-page {
    background: #f7f8f5;
    color: #101614;
}

.rock-pack-archive-page *,
.rock-pack-detail-page * {
    box-sizing: border-box;
}

.rs-pack-shell {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 96px;
}

.rs-pack-shell-empty {
    padding-top: 48px;
    padding-bottom: 48px;
}

.rs-pack-archive-hero,
.rs-pack-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
    gap: 64px;
    align-items: center;
    padding: 72px 0 86px;
}

.rs-pack-archive-hero {
    max-width: 960px;
    display: block;
    padding-bottom: 52px;
}

.rs-pack-shell-empty .rs-pack-archive-hero {
    padding-bottom: 36px;
}

.rs-pack-kicker {
    margin: 0 0 14px;
    color: #386560;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.rs-pack-archive-hero h1,
.rs-pack-detail-copy h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.94;
    letter-spacing: 0;
}

.rs-pack-archive-hero > p,
.rs-pack-detail-copy > p {
    max-width: 640px;
    margin: 22px 0 0;
    color: #5d6865;
    font-size: 18px;
    line-height: 1.65;
}

.rs-pack-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: min(620px, 100%);
    margin-top: 32px;
    padding: 8px;
    border: 1px solid rgba(25, 37, 34, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(25, 37, 34, 0.09);
}

.rs-pack-search input {
    min-width: 0;
    height: 46px;
    border: 0;
    outline: 0;
    padding: 0 14px;
    background: transparent;
    color: #18211f;
    font: inherit;
}

.rs-pack-search button,
.rs-pack-primary-action,
.rs-pack-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 7px;
    padding: 0 20px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.rs-pack-search button,
.rs-pack-primary-action {
    border: 1px solid #101614;
    background: #101614;
    color: #fff;
}

.rs-pack-secondary-action {
    border: 1px solid rgba(25, 37, 34, 0.16);
    background: #fff;
    color: #101614;
}

.rs-pack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.rs-pack-grid-empty {
    min-height: clamp(220px, calc(100svh - 320px), 420px);
    align-content: center;
}

.rs-pack-card {
    overflow: hidden;
    border: 1px solid rgba(25, 37, 34, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(25, 37, 34, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rs-pack-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 101, 96, 0.28);
    box-shadow: 0 36px 90px rgba(25, 37, 34, 0.13);
}

.rs-pack-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.rs-pack-mosaic,
.rs-pack-hero-mosaic {
    display: grid;
    gap: 10px;
}

.rs-pack-mosaic {
    aspect-ratio: 16 / 9;
    padding: 10px;
    background: linear-gradient(135deg, #eef4f1, #fbf6ea);
}

.rs-pack-mosaic.count-1 {
    grid-template-columns: 1fr;
}

.rs-pack-mosaic.count-2,
.rs-pack-mosaic.count-3,
.rs-pack-mosaic.count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rs-pack-mosaic img,
.rs-pack-hero-mosaic img,
.rs-pack-slide-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.rs-pack-mosaic.count-3 img:first-child {
    grid-row: span 2;
}

.rs-pack-card-body {
    padding: 20px;
}

.rs-pack-card-meta,
.rs-pack-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: #6f7a77;
    font-size: 13px;
    font-weight: 750;
}

.rs-pack-score {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid rgba(22, 163, 74, 0.16);
    border-radius: 4px;
    background: linear-gradient(180deg, #f6fff8, #ecfdf3);
    color: #15803d;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.rs-pack-card h2 {
    margin: 12px 0 0;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: 0;
}

.rs-pack-card p {
    margin: 12px 0 0;
    color: #66716e;
    line-height: 1.55;
}

.rs-pack-pagination {
    margin-top: 42px;
}

.rs-pack-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rs-pack-pagination a,
.rs-pack-pagination span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(25, 37, 34, 0.12);
    border-radius: 7px;
    background: #fff;
    color: #27312f;
    text-decoration: none;
    font-weight: 800;
}

.rs-pack-pagination .current {
    background: #101614;
    color: #fff;
}

.rs-pack-detail-hero {
    position: relative;
    border-bottom: 1px solid rgba(25, 37, 34, 0.1);
    overflow: hidden;
}

.rs-pack-detail-hero::before {
    content: "";
    position: absolute;
    inset: 24px -48px 0 auto;
    width: 52%;
    background: radial-gradient(circle at 50% 35%, rgba(218, 199, 143, 0.22), transparent 62%);
    pointer-events: none;
}

.rs-pack-detail-copy,
.rs-pack-hero-mosaic {
    position: relative;
    z-index: 1;
}

.rs-pack-stats {
    margin-top: 22px;
}

.rs-pack-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.rs-pack-hero-mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(86px, 8vw, 128px);
    padding: 12px;
    border: 1px solid rgba(25, 37, 34, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 34px 100px rgba(25, 37, 34, 0.14);
    backdrop-filter: blur(18px);
}

.rs-pack-hero-mosaic a {
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
}

.rs-pack-hero-mosaic a:nth-child(1) {
    grid-column: span 4;
    grid-row: span 2;
}

.rs-pack-hero-mosaic a:nth-child(2),
.rs-pack-hero-mosaic a:nth-child(3) {
    grid-column: span 2;
}

.rs-pack-hero-mosaic a:nth-child(n+4) {
    grid-column: span 2;
}

.rs-pack-slide-section {
    padding-top: 58px;
}

.rs-pack-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.rs-pack-section-heading h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: 0;
}

.rs-pack-slide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.rs-pack-slide-card {
    overflow: hidden;
    border: 1px solid rgba(25, 37, 34, 0.11);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(25, 37, 34, 0.07);
}

.rs-pack-slide-preview {
    display: block;
    aspect-ratio: 16 / 9;
    padding: 8px;
    background: #eef4f1;
}

.rs-pack-slide-body {
    padding: 16px;
}

.rs-pack-slide-body span {
    color: #6f7a77;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.rs-pack-slide-body h3 {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.28;
}

.rs-pack-slide-body a {
    color: inherit;
    text-decoration: none;
}

.rs-pack-placeholder,
.rs-pack-empty,
.rs-pack-private {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1px dashed rgba(25, 37, 34, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: #7b8582;
    font-weight: 800;
    text-align: center;
}

.rs-pack-empty,
.rs-pack-private {
    grid-column: 1 / -1;
    flex-direction: column;
    min-height: 0;
    padding: 42px;
}

.rs-pack-empty h2,
.rs-pack-private h1 {
    margin: 0;
    color: #101614;
}

.rs-pack-empty p,
.rs-pack-private p {
    margin: 12px 0 0;
    color: #65706d;
}

.rs-pack-viewer {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 340px;
    min-height: calc(100vh - 72px);
    background:
        linear-gradient(90deg, #eef4f1 0, #f7f8f5 24%, #faf8f1 100%);
}

.rs-pack-viewer-rail {
    position: sticky;
    top: 72px;
    align-self: start;
    height: calc(100vh - 72px);
    overflow-y: auto;
    border-right: 1px solid rgba(25, 37, 34, 0.12);
    background: #eef1ee;
}

.rs-pack-rail-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid rgba(25, 37, 34, 0.1);
    background: rgba(238, 241, 238, 0.94);
    backdrop-filter: blur(14px);
}

.rs-pack-rail-tabs button {
    min-height: 38px;
    border: 1px solid rgba(25, 37, 34, 0.14);
    border-radius: 7px;
    background: #fff;
    color: #5f6a66;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0;
}

.rs-pack-rail-tabs button.is-active {
    border-color: #101614;
    background: #101614;
    color: #fff;
}

.rs-pack-rail-panel {
    display: none;
}

.rs-pack-rail-panel.is-active {
    display: block;
}

.rs-pack-rail-heading {
    padding: 18px 18px 12px;
}

.rs-pack-rail-heading span {
    display: block;
    color: #386560;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.rs-pack-rail-heading strong {
    display: block;
    margin-top: 6px;
    color: #101614;
    font-size: 16px;
}

.rs-pack-rail-list {
    display: grid;
    gap: 10px;
    padding: 0 14px 22px;
}

.rs-pack-rail-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.rs-pack-rail-item:hover,
.rs-pack-rail-item.is-active {
    border-color: rgba(56, 101, 96, 0.36);
    background: #fff;
    box-shadow: 0 16px 38px rgba(25, 37, 34, 0.08);
}

.rs-pack-rail-number {
    color: #7b8582;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding-top: 5px;
    text-align: right;
}

.rs-pack-rail-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(25, 37, 34, 0.1);
    border-radius: 6px;
    background: #fff;
}

.rs-pack-rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rs-pack-rail-thumb span,
.rs-pack-rail-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    color: #7b8582;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.rs-pack-rail-empty {
    margin: 0 14px 22px;
    border: 1px dashed rgba(25, 37, 34, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.rs-pack-viewer-stage {
    min-width: 0;
    padding: 46px 44px 88px;
}

.rs-pack-stage-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.rs-pack-stage-header h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(36px, 4.2vw, 70px);
    line-height: 0.98;
    letter-spacing: 0;
}

.rs-pack-stage-header a {
    color: #386560;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.rs-pack-stage-card {
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(25, 37, 34, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 34px 110px rgba(25, 37, 34, 0.12);
}

.rs-pack-stage-card img,
.rs-pack-stage-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: #f2f4ef;
}

.rs-pack-stage-card img {
    height: auto;
    object-fit: contain;
    display: block;
}

.rs-pack-stage-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #77817e;
    font-weight: 900;
}

.rs-pack-stage-placeholder[hidden] {
    display: none;
}

.rs-pack-stage-caption {
    display: grid;
    gap: 6px;
    margin-top: 20px;
}

.rs-pack-stage-caption span,
.rs-pack-current-box span {
    color: #6f7a77;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.rs-pack-stage-caption h2 {
    max-width: 920px;
    margin: 0;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: 0;
}

.rs-pack-info-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    min-width: 0;
    margin: 46px 32px 46px 0;
    padding: 28px;
    border: 1px solid rgba(25, 37, 34, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 28px 80px rgba(25, 37, 34, 0.1);
    backdrop-filter: blur(16px);
}

.rs-pack-info-panel h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: 0;
}

.rs-pack-info-summary {
    margin: 18px 0 0;
    color: #5d6865;
    line-height: 1.7;
}

.rs-pack-current-box {
    display: grid;
    gap: 7px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(25, 37, 34, 0.1);
    border-radius: 8px;
    background: #f8faf6;
}

.rs-pack-current-box strong {
    font-size: 17px;
    line-height: 1.3;
}

.rs-pack-info-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 0;
}

.rs-pack-info-meta div {
    margin: 0;
}

.rs-pack-info-meta dt {
    margin: 0 0 5px;
    color: #7b8582;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.rs-pack-info-meta dd {
    margin: 0;
    color: #101614;
    font-weight: 850;
}

.rs-pack-info-actions {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

@media (max-width: 1180px) {
    .rs-pack-archive-hero,
    .rs-pack-detail-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rs-pack-grid,
    .rs-pack-slide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-pack-hero-mosaic {
        grid-auto-rows: clamp(72px, 14vw, 128px);
    }

    .rs-pack-viewer {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .rs-pack-info-panel {
        position: static;
        grid-column: 2;
        margin: 0 32px 48px;
    }
}

@media (max-width: 720px) {
    .rs-pack-shell {
        width: min(100% - 28px, 560px);
        padding: 38px 0 68px;
    }

    .rs-pack-shell-empty {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .rs-pack-archive-hero,
    .rs-pack-detail-hero {
        padding: 34px 0 46px;
    }

    .rs-pack-shell-empty .rs-pack-archive-hero {
        padding-bottom: 22px;
    }

    .rs-pack-shell-empty .rs-pack-empty {
        min-height: 140px;
        padding: 28px;
    }

    .rs-pack-archive-hero h1,
    .rs-pack-detail-copy h1 {
        font-size: 44px;
    }

    .rs-pack-search {
        grid-template-columns: 1fr;
    }

    .rs-pack-grid,
    .rs-pack-slide-grid {
        grid-template-columns: 1fr;
    }

    .rs-pack-section-heading {
        display: block;
    }

    .rs-pack-section-heading h2 {
        font-size: 32px;
    }

    .rs-pack-hero-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    .rs-pack-hero-mosaic a,
    .rs-pack-hero-mosaic a:nth-child(1),
    .rs-pack-hero-mosaic a:nth-child(2),
    .rs-pack-hero-mosaic a:nth-child(3),
    .rs-pack-hero-mosaic a:nth-child(n+4) {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }

    .rs-pack-viewer {
        display: block;
    }

    .rs-pack-viewer-rail {
        position: relative;
        top: auto;
        height: auto;
        max-height: none;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid rgba(25, 37, 34, 0.12);
    }

    .rs-pack-rail-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 18px;
    }

    .rs-pack-rail-item {
        flex: 0 0 220px;
    }

    .rs-pack-viewer-stage {
        padding: 34px 14px 46px;
    }

    .rs-pack-stage-header {
        display: block;
    }

    .rs-pack-stage-header h1 {
        font-size: 38px;
    }

    .rs-pack-stage-header a {
        display: inline-flex;
        margin-top: 16px;
    }

    .rs-pack-stage-card {
        padding: 8px;
    }

    .rs-pack-stage-caption h2 {
        font-size: 22px;
    }

    .rs-pack-info-panel {
        margin: 0 14px 44px;
        padding: 22px;
    }
}
