.rtp-page {
    width: 100%;
    min-width: 0;
    max-width: var(--rtp-max-w);
    margin: 0 auto;
    padding: 24px 20px 80px;
}

.rtp-crumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--pd-text-muted);
    margin-bottom: 20px;
}

.rtp-crumb__current {
    color: var(--pd-text-sec);
    font-weight: 500;
}

.rtp-hero {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pd-border);
}

.rtp-hero__h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pd-text-h);
}

.rtp-hero__sub {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--pd-text-sec);
}

.rtp-hero__sub strong {
    color: var(--pd-success);
    font-weight: 600;
}

.rtp-hero__lede {
    margin: 0;
    max-width: 82ch;
    font-size: 15px;
    color: var(--pd-text-sec);
}

.rtp-hero__answer {
    color: var(--pd-text-h);
    font-weight: 650;
}

.rtp-hero__meta,
.rtp-hero__fine {
    display: block;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--pd-text-muted);
}

.rtp-hero__fine {
    margin-top: 3px;
    color: var(--pd-text-ghost);
}

.rtp-nav {
    position: sticky;
    top: calc(var(--topbar-h, 60px) + 8px);
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 18px 0 0;
    padding: 0 14px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    background-color: var(--pd-bg-card);
    background-image:
        linear-gradient(to right, var(--pd-bg-card) 40%, rgba(255, 255, 255, 0)),
        linear-gradient(to left, var(--pd-bg-card) 40%, rgba(255, 255, 255, 0)),
        radial-gradient(farthest-side at 0 50%, var(--rtp-scroll-shadow), rgba(255, 255, 255, 0)),
        radial-gradient(farthest-side at 100% 50%, var(--rtp-scroll-shadow), rgba(255, 255, 255, 0));
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-size: 44px 100%, 44px 100%, 22px 100%, 22px 100%;
    background-attachment: local, local, scroll, scroll;
    border: 1px solid var(--pd-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.rtp-nav::-webkit-scrollbar {
    display: none;
}

.rtp-nav__lab {
    flex-shrink: 0;
    margin-right: 10px;
    font: 700 9.5px/1 var(--font-mono);
    letter-spacing: 0.1em;
    color: var(--pd-text-ghost);
    white-space: nowrap;
}

.rtp-nav__l {
    flex-shrink: 0;
    padding: 12px 11px;
    color: var(--pd-text-sec);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.rtp-nav__l:hover {
    color: var(--pd-accent-text);
    border-bottom-color: var(--pd-accent-border);
    text-decoration: none;
}

.rtp-btt {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pd-border-strong);
    border-radius: 50%;
    background: var(--pd-bg-card);
    color: var(--pd-text-body);
    font: 700 16px/1 var(--font-sans);
    box-shadow: var(--shadow-card, 0 4px 16px rgba(0, 0, 0, 0.15));
}

.rtp-btt:hover {
    background: var(--pd-bg-inset);
    color: var(--pd-accent-text);
    text-decoration: none;
}

.rtp-sum {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--pd-border);
    border: 1px solid var(--pd-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 24px 0 28px;
}

.rtp-sum__cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px;
    background: var(--pd-bg-card);
}

.rtp-sum__num {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pd-text-h);
    font-variant-numeric: tabular-nums;
}

.rtp-sum__lab {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--pd-text-muted);
}

.rtp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.rtp-panel {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    background: var(--pd-bg-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--radius-lg);
    margin-bottom: 0;
}

.rtp-panel .rtp-hist,
.rtp-panel .rtp-x {
    flex: 1;
}

.rtp-block {
    margin-bottom: 40px;
}

.rtp-block,
.rtp-split,
.rtp-row {
    scroll-margin-top: calc(var(--topbar-h, 60px) + 40px);
}

.rtp-h2 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--pd-text-h);
}

.rtp-h3 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pd-text-muted);
}

.rtp-note {
    margin: 0 0 16px;
    max-width: 76ch;
    font-size: 13.5px;
    color: var(--pd-text-muted);
}

.rtp-hero__fine {
    color: var(--pd-text-ghost);
}

.rtp-sum__delta {
    font-size: 11px;
    color: var(--pd-success);
    font-variant-numeric: tabular-nums;
}

.rtp-note--last {
    margin-bottom: 0;
}

.rtp-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid var(--pd-border);
}

.rtp-foot__link {
    font-size: 14px;
    font-weight: 500;
}
