:root {
    --rn-gold: #ffb13b;
    --rn-gold-soft: #e9c98f;
    --rn-red: #8b1010;
    --rn-red-bright: #d4231f;
    --rn-text: #d6cfc2;
    --rn-muted: #9b9384;
    --rn-faint: #6f685d;
    --rn-panel: rgba(16, 14, 12, 0.94);
    --rn-panel-raised: #1a1714;
    --rn-line: #302817;
    --rn-line-soft: rgba(48, 40, 23, 0.6);
    --rn-display: Cinzel, Georgia, serif;
    --rn-body: Montserrat, Roboto, sans-serif;
}

.rn-page {
    color: var(--rn-text);
    font-family: var(--rn-body);
}

.rn-page a {
    color: var(--rn-gold);
    text-decoration: none;
    transition: color .15s ease;
}

.rn-page a:hover {
    color: #fff;
}

.rn-hero {
    padding: 72px 0 56px;
    text-align: left;
}

.rn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--rn-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--rn-gold);
    margin-bottom: 18px;
}

.rn-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--rn-red-bright);
}

.rn-hero h1 {
    font-family: var(--rn-display);
    font-weight: 700;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .8);
    animation: rn-rise .6s ease both;
}

.rn-hero .rn-tagline {
    font-family: var(--rn-display);
    font-weight: 700;
    font-size: clamp(22px, 3.4vw, 38px);
    line-height: 1.15;
    color: var(--rn-gold);
    margin: 10px 0 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .8);
    animation: rn-rise .6s .08s ease both;
}

.rn-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-top: 26px;
    font-size: 14px;
    color: var(--rn-muted);
    animation: rn-rise .6s .16s ease both;
}

.rn-meta strong {
    color: var(--rn-text);
    font-weight: 600;
}

.rn-chip {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--rn-line);
    background: rgba(0, 0, 0, .55);
    color: var(--rn-gold-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.rn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    animation: rn-rise .6s .24s ease both;
}

.rn-actions .c-button {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 12px 22px;
    color: #fff;
}

.rn-actions .c-button:hover {
    color: #fff;
}

.rn-shell {
    background: var(--rn-panel);
    border-top: 2px solid var(--rn-red);
    box-shadow: 0 -30px 60px rgba(0, 0, 0, .6);
    margin-bottom: 0;
}

.rn-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.rn-toc {
    position: sticky;
    top: 24px;
    align-self: start;
    font-size: 13px;
}

.rn-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rn-faint);
    margin-bottom: 14px;
}

.rn-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--rn-line);
}

.rn-toc li {
    margin: 0;
}

.rn-page .rn-toc a {
    display: block;
    padding: 6px 0 6px 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--rn-muted);
    line-height: 1.4;
}

.rn-page .rn-toc a:hover {
    color: #fff;
    border-left-color: var(--rn-gold);
}

.rn-toc-mobile {
    display: none;
}

.rn-article {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.75;
}

.rn-article > :first-child {
    margin-top: 0;
}

.rn-article p {
    margin: 0 0 1.1em;
    color: var(--rn-text);
}

.rn-lede {
    font-size: 19px;
    line-height: 1.65;
    color: #ece6da;
}

.rn-article h2 {
    font-family: var(--rn-display);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    color: #fff;
    margin: 64px 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rn-line);
    position: relative;
    scroll-margin-top: 24px;
}

.rn-article h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: var(--rn-red-bright);
}

.rn-article h3 {
    font-family: var(--rn-body);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.35;
    color: var(--rn-gold-soft);
    margin: 36px 0 12px;
    scroll-margin-top: 24px;
}

.rn-article h4 {
    font-family: var(--rn-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rn-muted);
    margin: 28px 0 10px;
}

.rn-article ul,
.rn-article ol {
    margin: 0 0 1.3em;
    padding-left: 0;
    list-style: none;
}

.rn-article ul > li,
.rn-article ol > li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

.rn-article ul > li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .72em;
    width: 6px;
    height: 6px;
    background: var(--rn-gold);
    transform: rotate(45deg);
}

.rn-article ol {
    counter-reset: rn-ol;
}

.rn-article ol > li {
    counter-increment: rn-ol;
}

.rn-article ol > li::before {
    content: counter(rn-ol) ".";
    position: absolute;
    left: 0;
    color: var(--rn-gold);
    font-weight: 700;
}

.rn-article li li::before {
    background: var(--rn-faint);
}

.rn-article ul ul {
    margin: 8px 0 0;
}

.rn-article strong {
    color: #fff;
    font-weight: 600;
}

.rn-article code {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: .88em;
    color: var(--rn-gold-soft);
    background: rgba(255, 177, 59, .08);
    border: 1px solid rgba(255, 177, 59, .14);
    padding: 1px 6px;
}

.rn-article pre {
    background: #0a0908;
    border: 1px solid var(--rn-line);
    padding: 16px 18px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 1.4em;
}

.rn-article pre code {
    background: none;
    border: 0;
    padding: 0;
    color: #d8d2c4;
}

.rn-article hr {
    border: 0;
    height: 1px;
    background: var(--rn-line);
    margin: 40px 0;
    opacity: 1;
}

.rn-figure {
    margin: 28px 0 32px;
    text-align: center;
}

.rn-figure img,
.rn-figure video,
.rn-figure iframe,
.rn-article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--rn-line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}

.rn-figure iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.rn-figure figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--rn-faint);
}

.rn-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 28px 0 32px;
    align-items: center;
}

.rn-gallery img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #0a0908;
}

.rn-note {
    border-left: 3px solid var(--rn-gold);
    background: linear-gradient(90deg, rgba(255, 177, 59, .07), rgba(255, 177, 59, 0) 70%);
    padding: 16px 20px;
    margin: 24px 0 28px;
    color: var(--rn-text);
}

.rn-note p:last-child,
.rn-note ul:last-child {
    margin-bottom: 0;
}

.rn-note-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rn-gold);
    margin-bottom: 6px;
}

.rn-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rn-line);
    border: 1px solid var(--rn-line);
    margin: 28px 0 32px;
}

.rn-compare > div {
    background: var(--rn-panel-raised);
    padding: 26px 20px 22px;
    text-align: center;
}

.rn-compare-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.rn-compare .is-before .rn-compare-label {
    color: var(--rn-faint);
}

.rn-compare .is-after .rn-compare-label {
    color: var(--rn-gold);
}

.rn-compare p {
    font-size: 14px;
    color: var(--rn-muted);
    margin: 14px 0 0;
    line-height: 1.55;
}

.rn-settings {
    max-width: 360px;
    margin: 28px auto 10px;
    background: #2b2b2b;
    border: 1px solid #3c3c3c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #c6c6c6;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}

.rn-settings-title {
    padding: 9px 14px;
    border-bottom: 1px solid #3c3c3c;
    color: #ff981f;
    font-weight: 700;
}

.rn-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
}

.rn-settings-row.is-new {
    background: rgba(255, 152, 31, .12);
    box-shadow: inset 2px 0 0 #ff981f;
}

.rn-settings-tag {
    margin-left: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #ff981f;
}

.rn-box {
    width: 14px;
    height: 14px;
    border: 1px solid #777;
    position: relative;
}

.rn-box.is-on {
    background: #ff981f;
    border-color: #ff981f;
}

.rn-box.is-on::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #2b2b2b;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rn-caption {
    text-align: center;
    font-size: 13px;
    color: var(--rn-faint);
    margin: 0 0 28px;
}

.rn-plugin-list {
    border-top: 1px solid var(--rn-line);
    margin: 8px 0 28px;
}

.rn-plugin {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rn-line-soft);
}

.rn-plugin-name {
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.rn-plugin-version {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rn-gold-soft);
    letter-spacing: .03em;
}

.rn-plugin-body {
    color: var(--rn-text);
}

.rn-plugin-body p:last-child {
    margin-bottom: 0;
}

.rn-signoff {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--rn-line);
    color: var(--rn-muted);
    font-style: italic;
}

.rn-commits {
    margin-top: 56px;
    border: 1px solid var(--rn-line);
    background: rgba(0, 0, 0, .35);
}

.rn-commits > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-family: var(--rn-display);
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

.rn-commits > summary::-webkit-details-marker {
    display: none;
}

.rn-commits > summary::after {
    content: "+";
    font-family: var(--rn-body);
    font-size: 22px;
    font-weight: 400;
    color: var(--rn-gold);
    line-height: 1;
}

.rn-commits[open] > summary::after {
    content: "\2212";
}

.rn-commits-body {
    padding: 4px 20px 20px;
    max-height: 640px;
    overflow-y: auto;
    border-top: 1px solid var(--rn-line);
}

.rn-commits-author {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rn-gold);
    margin: 20px 0 8px;
}

.rn-commits-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rn-commits-body li {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.5;
}

.rn-commits-body li::before {
    display: none;
}

.rn-page .rn-commits-body a {
    display: block;
    padding: 5px 0;
    color: var(--rn-muted);
    border-bottom: 1px solid rgba(48, 40, 23, .35);
}

.rn-page .rn-commits-body a:hover {
    color: #fff;
}

.rn-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 56px;
}

.rn-page .rn-pager a {
    display: block;
    padding: 16px 20px;
    border: 1px solid var(--rn-line);
    background: var(--rn-panel-raised);
    color: var(--rn-text);
    transition: border-color .15s ease, transform .15s ease;
}

.rn-page .rn-pager a:hover {
    border-color: var(--rn-gold);
    transform: translateY(-2px);
}

.rn-pager .rn-pager-next {
    text-align: right;
    grid-column: 2;
}

.rn-pager small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rn-faint);
    margin-bottom: 4px;
}

.rn-pager span {
    font-family: var(--rn-display);
    font-weight: 700;
    color: #fff;
}

.rn-index-hero {
    padding: 80px 0 48px;
    text-align: center;
}

.rn-index-hero h1 {
    margin: 0 auto;
    font-size: clamp(40px, 6vw, 64px);
}

.rn-index-hero p {
    max-width: 560px;
    margin: 56px auto 0;
    font-size: 17px;
    color: var(--rn-text);
}

.rn-index {
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

.rn-featured {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 36px;
    margin-bottom: 56px;
    border: 1px solid var(--rn-line);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(139, 16, 16, .35), rgba(139, 16, 16, 0) 55%),
        var(--rn-panel-raised);
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}

.rn-page a.rn-featured {
    color: var(--rn-text);
}

.rn-page a.rn-featured:hover {
    border-color: var(--rn-gold);
    transform: translateY(-3px);
    color: var(--rn-text);
}

.rn-featured-version {
    font-family: var(--rn-display);
    font-weight: 700;
    font-size: 58px;
    line-height: 1;
    color: var(--rn-gold);
}

.rn-featured-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 3px 10px;
    background: var(--rn-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.rn-featured h2 {
    font-family: var(--rn-display);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 10px;
}

.rn-featured p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.65;
}

.rn-readmore {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rn-gold);
}

.rn-timeline-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--rn-faint);
    margin: 0 0 8px;
}

.rn-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rn-timeline li {
    border-bottom: 1px solid var(--rn-line-soft);
}

.rn-page .rn-timeline a {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: baseline;
    padding: 22px 8px;
    color: var(--rn-text);
    transition: background-color .15s ease;
}

.rn-page .rn-timeline a:hover {
    background: rgba(255, 177, 59, .04);
    color: var(--rn-text);
}

.rn-timeline-version {
    font-family: var(--rn-display);
    font-weight: 700;
    font-size: 24px;
    color: #fff;
}

.rn-timeline-date {
    display: block;
    font-family: var(--rn-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--rn-faint);
    margin-top: 2px;
}

.rn-timeline h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.rn-timeline p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--rn-muted);
}

.rn-timeline-arrow {
    color: var(--rn-faint);
    font-size: 20px;
    transition: transform .15s ease, color .15s ease;
}

.rn-page .rn-timeline a:hover .rn-timeline-arrow {
    color: var(--rn-gold);
    transform: translateX(4px);
}

@keyframes rn-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rn-hero h1,
    .rn-hero .rn-tagline,
    .rn-meta,
    .rn-actions {
        animation: none;
    }
}

@media (max-width: 900px) {
    .rn-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-top: 32px;
    }

    .rn-toc {
        display: none;
    }

    .rn-toc-mobile {
        display: block;
        margin-bottom: 36px;
        border: 1px solid var(--rn-line);
        background: rgba(0, 0, 0, .35);
    }

    .rn-toc-mobile summary {
        cursor: pointer;
        padding: 12px 16px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: var(--rn-gold);
    }

    .rn-toc-mobile ol {
        list-style: none;
        margin: 0;
        padding: 0 16px 12px;
    }

    .rn-page .rn-toc-mobile a {
        display: block;
        padding: 6px 0;
        color: var(--rn-muted);
    }
}

@media (max-width: 640px) {
    .rn-hero {
        padding: 40px 0 36px;
    }

    .rn-article {
        font-size: 15px;
    }

    .rn-lede {
        font-size: 17px;
    }

    .rn-article h2 {
        font-size: 24px;
        margin-top: 48px;
    }

    .rn-compare {
        grid-template-columns: 1fr;
    }

    .rn-plugin {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .rn-pager {
        grid-template-columns: 1fr;
    }

    .rn-pager .rn-pager-next {
        grid-column: 1;
    }

    .rn-featured {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 24px;
    }

    .rn-featured-version {
        font-size: 44px;
    }

    .rn-page .rn-timeline a {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .rn-timeline-arrow {
        display: none;
    }
}

.rn-article img.rn-icon {
    display: inline-block;
    border: 0;
    box-shadow: none;
    margin: 0 10px 0 0;
    vertical-align: middle;
}

.rn-sprite,
.rn-article img.rn-sprite {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: inline-block;
    border: 0;
    box-shadow: none;
    margin: 0;
    max-width: none;
}

.rn-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
}

.rn-hero-art {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rn-rise .7s .1s ease both;
}

.rn-hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 177, 59, .28) 0%, rgba(255, 177, 59, .08) 45%, rgba(255, 177, 59, 0) 70%);
}

.rn-hero-art img {
    position: relative;
    width: 136px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .8));
}

.rn-orb {
    width: 136px;
    height: 136px;
}

.rn-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 4px 0 28px;
}

.rn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--rn-line);
    background: rgba(0, 0, 0, .35);
    font-size: 13px;
    color: var(--rn-muted);
}

.rn-item-slot {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3e3529;
    border: 1px solid #5a4d3c;
    box-shadow: inset 0 0 0 1px #2a231b;
}

.rn-item.is-skipped .rn-item-slot img {
    opacity: .45;
    filter: grayscale(.6);
}

.rn-item strong {
    display: block;
    color: var(--rn-text);
    font-size: 13px;
}

.rn-inline-icon,
.rn-article img.rn-inline-icon {
    height: 1.35em;
    width: auto;
    vertical-align: -0.3em;
    margin: 0 4px 0 0;
}

.rn-plugin-name {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rn-plugin-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3e3529;
    border: 1px solid #5a4d3c;
    box-shadow: inset 0 0 0 1px #2a231b;
}

.rn-plugin-icon img {
    max-width: 36px;
    max-height: 36px;
}

.rn-plugin-icon img.is-render {
    max-height: 40px;
    image-rendering: auto;
}


.rn-article ul.rn-iconlist > li {
    padding-left: 40px;
    min-height: 28px;
    margin-bottom: 14px;
}

.rn-article ul.rn-iconlist > li::before {
    display: none;
}

.rn-iconlist .rn-li-icon {
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rn-iconlist .rn-li-icon img {
    width: auto;
    height: 26px;
}

.rn-credit {
    margin-top: 40px;
    font-size: 12px;
    color: var(--rn-faint);
}

.rn-page .rn-credit a {
    color: var(--rn-muted);
}

.rn-version-icon {
    width: 34px;
    height: 34px;
    margin-right: 12px;
    vertical-align: middle;
}

.rn-featured-version {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.rn-featured-version img {
    width: 68px;
    height: auto;
}

.rn-timeline-version {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rn-timeline-version img {
    width: 30px;
    height: auto;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .rn-hero .container {
        grid-template-columns: minmax(0, 1fr);
    }

    .rn-hero-art {
        display: none;
    }
}
