body.single-rhine_resource,
body.single-post {
    background: #050505;
}

body.single-rhine_resource header,
body.single-post header {
    background: #050505 !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.single-rhine_resource header a,
body.single-post header a,
body.single-rhine_resource .header-menu a,
body.single-post .header-menu a {
    color: #f4f4f5 !important;
}

.rrm-page {
    background: #050505;
    color: #f4f4f5;
    min-height: 100vh;
    padding: 22px 0 72px;
}

.rrm-shell {
    width: min(1200px, calc(100vw - 40px));
    margin: 0 auto;
}

.rrm-site-nav {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 34px;
    width: min(1200px, calc(100vw - 40px));
    margin: 0 auto;
    background: #050505;
    color: #f4f4f5;
}

header.rrm-site-nav {
    position: relative !important;
    inset: auto !important;
    width: min(1200px, calc(100vw - 40px)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.rrm-logo {
    color: #2f7df6;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    margin-right: 4px;
    white-space: nowrap;
}

.rrm-site-nav nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.rrm-site-nav a {
    color: #e8e8ee;
    text-decoration: none;
    font-weight: 850;
}

.rrm-site-nav a:hover {
    color: #60a5fa;
}

.rrm-login {
    background: #081b38;
    color: #60a5fa !important;
    border-radius: 10px;
    padding: 12px 22px;
}

.rrm-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #7d7d87;
    font-weight: 800;
    margin: 20px 0 34px;
}

.rrm-breadcrumb a {
    color: #7d7d87;
    text-decoration: none;
}

.rrm-hero {
    display: grid;
    grid-template-columns: minmax(260px, 392px) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    margin-bottom: 26px;
    background: #17171a;
    border: 1px solid #2c2c31;
    border-radius: 10px;
    overflow: hidden;
}

.rrm-hero-main,
.rrm-panel,
.rrm-download-card {
    background: #17171a;
    border: 1px solid #2c2c31;
    border-radius: 8px;
}

.rrm-cover {
    aspect-ratio: auto;
    min-height: 312px;
    background: #111;
    overflow: hidden;
}

.rrm-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rrm-cover-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1d4ed8, #151515 55%, #22c55e);
    font-size: 24px;
    font-weight: 900;
}

.rrm-hero-main {
    min-height: 312px;
    padding: 34px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-left: 1px solid #2c2c31;
    border-radius: 0;
}

.rrm-kicker {
    color: #60a5fa;
    font-weight: 900;
    margin-bottom: 12px;
}

.rrm-hero h1 {
    font-size: 36px;
    line-height: 1.22;
    margin: 0 0 14px;
}

.rrm-summary {
    color: #c9c9d1;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.rrm-tags,
.rrm-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rrm-tags span {
    background: #0b2b55;
    color: #93c5fd;
    border: 1px solid #1d4ed8;
    border-radius: 6px;
    padding: 6px 10px;
    font-weight: 800;
}

.rrm-metrics {
    margin-top: 20px;
    color: #a1a1aa;
}

.rrm-metrics span {
    background: #101012;
    border: 1px solid #26262b;
    border-radius: 6px;
    padding: 8px 12px;
}

.rrm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.rrm-hero-actions a,
.rrm-hero-actions button {
    height: 44px;
    border: 1px solid #31313a;
    border-radius: 8px;
    background: #111827;
    color: #93c5fd;
    padding: 0 18px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.rrm-hero-actions .rrm-primary-action {
    display: inline-flex;
    align-items: center;
    background: #1684ff;
    color: #fff;
    border-color: #1684ff;
}

.rrm-author-row {
    border-top: 1px solid #303036;
    margin-top: 18px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #a1a1aa;
    font-weight: 800;
}

.rrm-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #242426;
    border-radius: 0;
    margin: 0 0 22px;
    overflow: hidden;
}

.rrm-tabs button {
    height: 64px;
    border: 0;
    background: transparent;
    color: #a1a1aa;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.rrm-tabs button.is-active {
    background: #404047;
    color: #fff;
    box-shadow: inset 0 0 0 1px #55565e;
}

.rrm-panel {
    display: none;
    padding: 28px;
}

.rrm-panel.is-active {
    display: block;
}

.rrm-content {
    color: #dedee5;
    line-height: 1.9;
    margin-bottom: 24px;
}

.rrm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0;
}

.rrm-info-grid div {
    background: #101012;
    border: 1px solid #26262b;
    border-radius: 8px;
    padding: 16px;
}

.rrm-info-grid dt {
    color: #8b8b96;
    font-size: 13px;
    margin-bottom: 6px;
}

.rrm-info-grid dd {
    margin: 0;
    font-weight: 900;
}

.rrm-download-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: center;
    padding: 26px;
}

.rrm-download-card h2,
.rrm-panel h2 {
    margin: 0 0 10px;
}

.rrm-password strong {
    color: #fbbf24;
}

.rrm-notice,
.rrm-muted {
    color: #a1a1aa;
}

.rrm-download-button {
    display: grid;
    place-items: center;
    height: 58px;
    background: linear-gradient(90deg, #ef4444, #eab308);
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(234, 179, 8, .18);
}

.rrm-review-box {
    background: #101012;
    border: 1px solid #26262b;
    border-radius: 8px;
    padding: 20px;
}

@media (max-width: 760px) {
    .rrm-shell {
        width: min(100% - 24px, 1200px);
    }

    .rrm-hero,
    .rrm-download-card {
        grid-template-columns: 1fr;
    }

    .rrm-site-nav {
        height: auto;
        padding: 14px 0;
        align-items: flex-start;
    }

    .rrm-site-nav nav {
        display: none;
    }

    .rrm-hero-main {
        padding: 24px;
        border-left: 0;
        border-top: 1px solid #2c2c31;
    }

    .rrm-hero h1 {
        font-size: 26px;
    }

    .rrm-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rrm-tabs button {
        height: 54px;
        font-size: 16px;
    }
}
