/* ==========================================================================
   Rawrkee front page: 360° studio hero + parts search
   The car sits on a lit studio stage (the plates' #F4F4F4 backdrop) set into a
   slightly darker page, so it reads like a photo booth in both themes.
   ========================================================================== */

.rkh {
    --rkh-studio: #ececea;
    --rkh-surface: #ffffff;
    --rkh-ink: #18191b;
    --rkh-muted: #5f6168;
    --rkh-line: #dcdcda;
    --rkh-soft: #ebebe9;
    --rkh-accent: rgb(var(--rk-accent-600, 220 38 38));
    --rkh-accent-ink: #ffffff;
    --rkh-gutter: 16px;

    background: var(--rkh-studio);
    color: var(--rkh-ink);
    font-family: var(--rk-font, "Plus Jakarta Sans", system-ui, sans-serif);
    -webkit-font-smoothing: antialiased;
}

html.dark .rkh {
    --rkh-studio: #0f1012;
    --rkh-surface: #17181b;
    --rkh-ink: #eeeef0;
    --rkh-muted: #9b9da4;
    --rkh-line: #2b2c31;
    --rkh-soft: #222327;
}

.rkh *,
.rkh *::before,
.rkh *::after {
    box-sizing: border-box;
}

.rkh-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--rkh-gutter);
}

@media (min-width: 768px) {
    .rkh {
        --rkh-gutter: 28px;
    }
}

.rkh .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rkh :focus-visible {
    outline: 2px solid var(--rkh-accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.rkh .rkh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid var(--rkh-line);
    background: var(--rkh-surface);
    color: var(--rkh-ink) !important;
    font: 700 14.5px/1 var(--rk-font, "Plus Jakarta Sans", sans-serif);
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}

.rkh .rkh-btn:hover {
    border-color: var(--rkh-muted);
}

.rkh .rkh-btn:active {
    transform: scale(.98);
}

.rkh .rkh-btn.is-primary {
    background: var(--rkh-accent);
    border-color: var(--rkh-accent);
    color: var(--rkh-accent-ink) !important;
}

.rkh .rkh-btn.is-primary:hover {
    filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   Hero: the pitch, then a featured car as the live demo
   -------------------------------------------------------------------------- */
.rkh .rkh-btn.is-big {
    min-height: 54px;
    padding: 0 26px;
    border-radius: 14px;
    font-size: 16px;
}

.rkh-hero {
    padding: 28px 0 40px;
}

@media (min-width: 768px) {
    .rkh-hero {
        padding: 44px 0 56px;
    }
}

.rkh-pitch {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Desktop: the pitch on the left, the live demo on the right, how-it-works below */
@media (min-width: 1024px) {
    .rkh-hero .rkh-wrap {
        display: grid;
        grid-template-columns: minmax(300px, 0.78fr) 1.62fr;
        grid-template-areas: "pitch demo" "steps steps";
        column-gap: 56px;
        align-items: center;
    }

    .rkh-pitch {
        grid-area: pitch;
    }

    .rkh-demo {
        grid-area: demo;
        min-width: 0;
    }

    .rkh .rkh-steps {
        grid-area: steps;
    }
}

.rkh .rkh-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--rkh-ink);
    text-wrap: balance;
    max-width: 13ch;
}

.rkh .rkh-lead {
    margin: 16px 0 0;
    max-width: 54ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--rkh-muted);
}

@media (min-width: 768px) {
    .rkh .rkh-lead {
        font-size: 18px;
    }
}

.rkh-pitch-cta {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
}

/* The price sits under the main button as a quiet link, not a second button,
   so the car and its angle switcher start higher on phones */
.rkh .rkh-pitch-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    font: 600 14px/1.3 var(--rk-font, "Plus Jakarta Sans", sans-serif);
    color: var(--rkh-muted) !important;
    text-decoration: none !important;
}

.rkh .rkh-pitch-note:hover {
    color: var(--rkh-ink) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

@media (max-width: 767.98px) {
    .rkh-pitch-cta .rkh-btn {
        width: 100%;
    }

    .rkh .rkh-pitch-note {
        width: 100%;
        justify-content: center;
    }
}

/* The stage: a 16:9 window onto the studio (16:10, edge to edge on phones, which
   still fits the full length of the car in the side view) */
.rkh-stage {
    position: relative;
    margin: 24px calc(-1 * var(--rkh-gutter)) 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f4f4;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.rkh-stage.is-dragging {
    cursor: grabbing;
}

@media (min-width: 768px) {
    .rkh-stage {
        margin: 36px 0 0;
        aspect-ratio: 16 / 9;
        width: 100%;
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .rkh-stage {
        margin-top: 0;
    }
}

.rkh-poster,
.rkh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.rkh-canvas {
    opacity: 0;
}

.rkh-stage.is-live .rkh-canvas {
    opacity: 1;
}

.rkh-poster,
.rkh-canvas {
    transition: opacity .35s ease;
}

.rkh-stage.is-switching .rkh-poster,
.rkh-stage.is-switching .rkh-canvas {
    opacity: .2;
}

.rkh .rkh-hint {
    position: absolute;
    left: 50%;
    bottom: 7%;
    transform: translateX(-50%);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #18191b;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    pointer-events: none;
    transition: opacity .4s ease;
    white-space: nowrap;
}

.rkh-hint-touch {
    display: none;
}

@media (pointer: coarse) {
    .rkh-hint-fine {
        display: none;
    }

    .rkh-hint-touch {
        display: inline;
    }
}

.rkh-stage.is-touched .rkh-hint,
.rkh-stage:not(.is-live) .rkh-hint {
    opacity: 0;
}

.rkh-load {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(0, 0, 0, .06);
    transition: opacity .3s ease;
}

.rkh-load span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--rkh-accent);
    transition: width .2s linear;
}

.rkh-load.is-done {
    opacity: 0;
}

/* Views along the walkaround */
.rkh-track {
    position: relative;
    margin-top: 16px;
}

.rkh-rail {
    position: absolute;
    top: 7px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--rkh-line);
    border-radius: 2px;
}

.rkh-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--rkh-ink);
    border-radius: inherit;
}

.rkh .rkh-views {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.rkh .rkh-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 2px 4px;
    border: 0;
    background: none;
    color: var(--rkh-muted);
    font: 600 12.5px/1.2 var(--rk-font, "Plus Jakarta Sans", sans-serif);
    cursor: pointer;
    white-space: nowrap;
}

.rkh .rkh-view::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--rkh-studio);
    border: 2px solid var(--rkh-line);
    transition: border-color .15s ease, background-color .15s ease;
}

.rkh .rkh-view.is-passed::before {
    border-color: var(--rkh-ink);
}

.rkh .rkh-view.is-on {
    color: var(--rkh-ink);
    font-weight: 700;
}

.rkh .rkh-view.is-on::before {
    background: var(--rkh-ink);
    border-color: var(--rkh-ink);
}

@media (min-width: 768px) {
    .rkh .rkh-view {
        font-size: 13.5px;
    }
}

/* Which build is on the stage */
.rkh-shown {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .rkh-shown {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.rkh .rkh-shown-car {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    font-size: 14.5px;
    color: var(--rkh-muted);
}

.rkh-shown-label {
    font-weight: 600;
}

.rkh .rkh-shown-car a {
    color: var(--rkh-ink) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.rkh .rkh-shown-car a:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.rkh-shown-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 767.98px) {
    .rkh-shown-actions .rkh-btn {
        flex: 1 1 auto;
    }
}

.rkh .rkh-arrow {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--rkh-line);
    background: var(--rkh-surface);
    color: var(--rkh-ink);
    cursor: pointer;
    padding: 0;
}

.rkh .rkh-arrow:hover {
    border-color: var(--rkh-muted);
}

.rkh-count {
    min-width: 44px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--rkh-muted);
    font-variant-numeric: tabular-nums;
}

/* How it works: a real three-step sequence */
.rkh .rkh-steps {
    list-style: none;
    margin: 36px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--rkh-line);
    display: grid;
    gap: 22px;
    counter-reset: rkh-step;
}

@media (min-width: 768px) {
    .rkh .rkh-steps {
        margin-top: 52px;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.rkh .rkh-steps li {
    counter-increment: rkh-step;
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 14px;
}

.rkh .rkh-steps li::before {
    content: counter(rkh-step);
    grid-row: span 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--rkh-ink);
    color: var(--rkh-ink);
    font-size: 14px;
    font-weight: 800;
}

.rkh .rkh-steps h2 {
    margin: 4px 0 4px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--rkh-ink);
}

.rkh .rkh-steps p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--rkh-muted);
}

/* --------------------------------------------------------------------------
   Parts search
   -------------------------------------------------------------------------- */
.rkh-search {
    background: var(--rkh-surface);
    border-top: 1px solid var(--rkh-line);
    padding: 40px 0 48px;
}

@media (min-width: 768px) {
    .rkh-search {
        padding: 64px 0 72px;
    }
}

.rkh .rkh-search-title {
    margin: 0;
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--rkh-ink);
    text-wrap: balance;
}

.rkh .rkh-search-lead {
    margin: 10px 0 0;
    max-width: 56ch;
    font-size: 16px;
    line-height: 1.5;
    color: var(--rkh-muted);
}

.rkh-form {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
}

@media (min-width: 640px) {
    .rkh-form {
        flex-direction: row;
    }
}

.rkh .rkh-field {
    flex: 1 1 auto;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1.5px solid var(--rkh-line);
    background: var(--rkh-studio);
    color: var(--rkh-muted);
    margin: 0;
    cursor: text;
    transition: border-color .15s ease;
}

.rkh .rkh-field:focus-within {
    border-color: var(--rkh-ink);
}

.rkh .rkh-field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--rkh-ink) !important;
    font: 500 16px/1 var(--rk-font, "Plus Jakarta Sans", sans-serif);
    padding: 0;
}

.rkh .rkh-field input::placeholder {
    color: var(--rkh-muted);
    opacity: .85;
}

.rkh-form .rkh-btn {
    min-height: 54px;
    border-radius: 14px;
    padding: 0 26px;
}

.rkh .rkh-search-foot {
    margin: 14px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 14px;
    color: var(--rkh-muted);
}

.rkh .rkh-search-foot a {
    color: var(--rkh-accent) !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .rkh *,
    .rkh *::before {
        transition: none !important;
    }
}

/* ==========================================================================
   Homepage v2: Compact Hero + Fresh Builds + Posts & Activity Split + CTA
   ========================================================================== */

.rkhp-page {
    --rkh-studio: #eef2f6;
    --rkh-surface: #ffffff;
    --rkh-ink: #0f172a;
    --rkh-muted: #475569;
    --rkh-line: #cbd5e1;
    --rkh-soft: #e2e8f0;
    padding: 18px 0 42px;
}

html.dark .rkhp-page {
    --rkh-studio: #09090b;
    --rkh-surface: #18181b;
    --rkh-ink: #f4f4f5;
    --rkh-muted: #a1a1aa;
    --rkh-line: #27272a;
    --rkh-soft: #222327;
}

.rkhp-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--rkh-gutter);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Front-page 360° Studio Hero alignment (scoped to .rkhp-page so /pricing/ is untouched) */
.rkhp-page .rkh-hero {
    padding: 8px 0 28px;
}

.rkhp-page .rkh-hero .rkh-wrap {
    max-width: 1240px;
}

.rkhp-page .rkh-hero .rkh-lead {
    max-width: 34ch;
}

@media (min-width: 768px) {
    .rkhp-page .rkh-hero {
        padding: 20px 0 40px;
    }
}

@media (min-width: 1024px) {
    .rkhp-page .rkh-hero .rkh-wrap {
        grid-template-areas: "pitch demo";
    }
}

/* Buttons: crimson reserved strictly for primary CTAs */
.rkhp-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--rkh-accent);
    color: var(--rkh-accent-ink) !important;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.12s ease;
}

.rkhp-btn-cta:hover {
    filter: brightness(1.08);
    color: var(--rkh-accent-ink) !important;
}

/* 1. Hero: Slim Discovery Bar + Unified Seamless 360° Studio Card */
.rkhp-discovery {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.rkhp-search-slim {
    width: 100%;
}

.rkhp-search-slim-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 6px 0 14px;
    border-radius: 12px;
    border: 1px solid var(--rkh-line);
    background: var(--rkh-surface);
    color: var(--rkh-muted);
    box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rkhp-search-slim-field:focus-within {
    border-color: var(--rkh-ink);
    box-shadow: 0 0 0 3px rgba(24, 25, 27, 0.06);
}

html.dark .rkhp-search-slim-field:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.rkhp-search-slim-field > svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.rkhp-search-slim-field input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--rkh-ink);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
}

.rkhp-search-slim-field input::placeholder {
    color: var(--rkh-muted);
}

.rkhp-search-slim-go {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: var(--rkh-soft);
    color: var(--rkh-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.rkhp-search-slim-go:hover {
    background: var(--rkh-ink);
    color: var(--rkh-surface);
}

.rkhp-discovery-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (min-width: 900px) {
    .rkhp-discovery-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }
}

.rkhp-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -2px;
    padding: 0 2px;
}

.rkhp-chips::-webkit-scrollbar {
    display: none;
}

.rkhp-chip {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--rkh-line);
    background: var(--rkh-surface);
    color: var(--rkh-ink) !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rkhp-chip:hover {
    background: var(--rkh-soft);
    border-color: var(--rkh-muted);
}

.rkhp-stats {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--rkh-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rkhp-stats-extra {
    display: none;
}

@media (min-width: 640px) {
    .rkhp-stats-extra {
        display: inline;
    }
}

/* Unified 360° Studio Hero Card */
.rkhp-studio-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--rkh-line);
    background: var(--rkh-surface);
    box-shadow: 0 14px 36px -18px rgba(15, 23, 42, 0.18);
}

html.dark .rkhp-studio-card {
    box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.55);
}

.rkhp-studio-main {
    display: grid;
    grid-template-columns: 1fr;
    background: #f4f4f4;
    color: #14171f;
}

@media (min-width: 900px) {
    .rkhp-studio-main:not(.is-single) {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.35fr);
        align-items: stretch;
    }
}

.rkhp-studio-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 20px 10px;
    min-width: 0;
}

@media (min-width: 900px) {
    .rkhp-studio-copy {
        padding: 32px 24px 32px 34px;
    }
}

.rkhp-studio-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(20, 23, 31, 0.07);
    color: #3f434d;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rkhp-studio-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--rkh-accent);
}

.rkhp-studio-h1 {
    margin: 0;
    color: #14171f;
    font-size: clamp(1.48rem, 5.4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.rkhp-studio-h1 span {
    color: var(--rkh-accent);
}

.rkhp-studio-lead {
    margin: 6px 0 0;
    color: #525660;
    font-size: clamp(0.86rem, 2.2vw, 0.96rem);
    font-weight: 500;
    line-height: 1.4;
    max-width: 34ch;
}

.rkhp-studio-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.rkhp-studio-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--rkh-accent);
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    box-shadow: 0 10px 24px -8px rgba(220, 38, 38, 0.55);
    transition: filter 0.15s ease, transform 0.12s ease;
}

.rkhp-studio-cta:hover {
    filter: brightness(1.07);
    color: #ffffff !important;
}

.rkhp-studio-cta:active {
    transform: scale(0.98);
}

/* Unobstructed Live 360° Car Stage */
.rkhp-studio-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 205px;
    overflow: hidden;
    background: #f4f4f4;
    user-select: none;
}

@media (min-width: 900px) {
    .rkhp-studio-stage {
        min-height: 300px;
        aspect-ratio: auto;
        height: 100%;
    }
}

.rkhp-studio-stage.is-spin {
    cursor: grab;
    touch-action: pan-y !important;
}

.rkhp-studio-stage.is-dragging {
    cursor: grabbing;
}

.rkhp-botw-img,
.rkhp-botw-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 56%;
    display: block;
}

.rkhp-botw-canvas {
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.rkhp-studio-stage.is-live .rkhp-botw-canvas {
    opacity: 1;
}

.rkhp-studio-pill {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 3;
    margin: 0 auto;
    width: fit-content;
    max-width: calc(100% - 24px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(20, 23, 31, 0.1);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.2);
    color: #14171f !important;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.rkhp-studio-pill:hover {
    background: #ffffff;
}

.rkhp-studio-pill:active {
    transform: scale(0.98);
}

.rkhp-botw-spin-ic {
    flex-shrink: 0;
    color: var(--rkh-accent);
}

.rkhp-studio-pill-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rkhp-studio-pill-hint {
    color: #5f636e;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.rkhp-studio-pill-go {
    color: var(--rkh-accent);
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 2px;
}

/* Attached Studio Stage Pass Footer Band */
.rkhp-pass-strip {
    padding: 13px 16px;
    background: var(--rkh-surface);
    border-top: 1px solid var(--rkh-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: center;
}

@media (min-width: 700px) {
    .rkhp-pass-strip {
        flex-direction: row;
        text-align: left;
        padding: 14px 24px;
        gap: 16px;
    }
}

.rkhp-pass-copy {
    min-width: 0;
}

.rkhp-pass-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    color: var(--rkh-ink);
    line-height: 1.25;
}

@media (min-width: 700px) {
    .rkhp-pass-title {
        justify-content: flex-start;
    }
}

.rkhp-pass-sep {
    opacity: 0.28;
    font-weight: 400;
}

.rkhp-pass-deal {
    color: var(--rkh-accent);
}

.rkhp-pass-sub {
    margin: 2px 0 0;
    font-size: 0.77rem;
    font-weight: 500;
    color: var(--rkh-muted);
    line-height: 1.35;
}

.rkhp-pass-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Single crimson hero CTA now lives cleanly in the attached pass strip */
.rkhp-pass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--rkh-accent);
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 8px 18px -6px rgba(220, 38, 38, 0.5);
    transition: filter 0.15s ease, transform 0.12s ease;
}

.rkhp-pass-btn:hover {
    filter: brightness(1.08);
    color: #ffffff !important;
}

.rkhp-pass-btn:active {
    transform: scale(0.97);
}

.rkhp-pass-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rkh-muted) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.rkhp-pass-link:hover {
    color: var(--rkh-ink) !important;
}

/* Section Headers */
.rkhp-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.rkhp-sec-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--rkh-ink);
}

/* Trophy icon on Most Popular Parts / Top Wheels headings */
.rkhp-sec-title--trophy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rkhp-sec-trophy {
    flex: none;
    color: #ca8a04;
}

html.dark .rkhp-sec-trophy {
    color: #facc15;
}

.rkhp-view-all {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 4px;
    margin: -6px -4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rkh-muted) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.rkhp-view-all:hover {
    color: var(--rkh-ink) !important;
}

/* 2. Fresh in the Garage (4-col desktop, horizontal scroll-snap mobile) */
.rkhp-builds-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.rkhp-builds-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 640px) {
    .rkhp-builds-grid {
        grid-auto-columns: 44%;
        gap: 12px;
    }
}

@media (min-width: 900px) {
    .rkhp-builds-grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow-x: visible;
    }
}

.rkhp-build-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--rkh-surface);
    border: 1px solid var(--rkh-line);
    border-radius: 13px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--rkh-ink) !important;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.rkhp-build-card:hover {
    border-color: var(--rkh-muted);
}

.rkhp-build-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #121316;
    overflow: hidden;
}

.rkhp-build-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    display: block;
}

.rkhp-build-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rkh-muted);
}

.rkhp-build-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(15, 16, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.rkhp-build-body {
    padding: 10px 12px 11px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rkhp-build-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.28;
    color: var(--rkh-ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow: hidden;
}

.rkhp-build-meta {
    margin: auto 0 0;
    padding-top: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--rkh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3 & 4. Split Row: Latest Posts (1.7fr) + Activity Rail (1fr) */
.rkhp-split {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* On mobile, keep the Activity strip compact (3 rows); it sits under Latest Posts */
@media (max-width: 959.98px) {
    .rkhp-act-row:nth-child(n+4) {
        display: none;
    }
}

@media (min-width: 960px) {
    .rkhp-split {
        display: grid;
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }
}

.rkhp-panel {
    background: var(--rkh-surface);
    border: 1px solid var(--rkh-line);
    border-radius: 14px;
    overflow: hidden;
}

/* Neutral Category Filter Tabs */
.rkhp-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--rkh-line);
    overflow-x: auto;
    scrollbar-width: none;
}

.rkhp-tabs::-webkit-scrollbar {
    display: none;
}

.rkhp-tab {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--rkh-line);
    background: transparent;
    color: var(--rkh-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rkhp-tab:hover {
    color: var(--rkh-ink);
    border-color: var(--rkh-muted);
}

.rkhp-tab.is-active {
    background: var(--rkh-ink);
    border-color: var(--rkh-ink);
    color: var(--rkh-surface);
}

/* Compact 6-Row Post List */
.rkhp-post-list {
    display: flex;
    flex-direction: column;
}

.rkhp-post-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-top: 1px solid var(--rkh-line);
    text-decoration: none !important;
    color: var(--rkh-ink) !important;
    transition: background-color 0.14s ease;
}

.rkhp-post-row:first-child {
    border-top: 0;
}

.rkhp-post-row[hidden] {
    display: none !important;
}

.rkhp-post-row:hover {
    background: var(--rkh-studio);
}

.rkhp-post-thumb {
    position: relative;
    width: 92px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    background: #121316;
    border: 1px solid var(--rkh-line);
    flex-shrink: 0;
}

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

.rkhp-post-thumb-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--rkh-soft);
}

.rkhp-post-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(15, 16, 18, 0.82);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rkhp-post-info {
    min-width: 0;
    flex: 1;
}

.rkhp-post-title {
    margin: 0;
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--rkh-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rkhp-post-meta {
    margin: 4px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--rkh-muted);
}

.rkhp-post-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 14px;
    border-top: 1px solid var(--rkh-line);
    background: var(--rkh-studio);
    color: var(--rkh-ink) !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
}

.rkhp-post-more[hidden] {
    display: none !important;
}

.rkhp-post-more:hover {
    text-decoration: underline !important;
}

/* Activity Rail */
.rkhp-act-list {
    display: flex;
    flex-direction: column;
}

.rkhp-act-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid var(--rkh-line);
    text-decoration: none !important;
    color: var(--rkh-ink) !important;
    transition: background-color 0.14s ease;
}

.rkhp-act-row:first-child {
    border-top: 0;
}

.rkhp-act-row:hover {
    background: var(--rkh-studio);
}

.rkhp-act-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--rkh-line);
    background: var(--rkh-studio);
    color: var(--rkh-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rkhp-act-thumb {
    position: relative;
    width: 56px;
    height: 38px;
    border-radius: 7px;
    overflow: hidden;
    background: #121316;
    border: 1px solid var(--rkh-line);
    flex-shrink: 0;
    display: block;
}

.rkhp-act-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    display: block;
}

.rkhp-act-thumb.is-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rkh-studio);
    color: var(--rkh-muted);
}

.rkhp-act-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rkhp-act-head {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.28;
    color: var(--rkh-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rkhp-act-car-link {
    color: var(--rkh-ink) !important;
    text-decoration: none !important;
}

.rkhp-act-car-link:hover {
    text-decoration: underline !important;
}

.rkhp-act-part-link {
    color: var(--rkh-ink) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--rkh-muted) !important;
    text-underline-offset: 2px;
}

.rkhp-act-part-link:hover {
    color: var(--rkh-accent) !important;
    text-decoration-color: var(--rkh-accent) !important;
}

.rkhp-act-sub {
    font-size: 0.75rem;
    color: var(--rkh-muted) !important;
    text-decoration: none !important;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rkhp-act-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid var(--rkh-line);
    background: var(--rkh-studio);
    font-size: 0.78rem;
}

.rkhp-act-sum-label {
    color: var(--rkh-muted);
    font-weight: 600;
}

.rkhp-act-sum-val {
    color: var(--rkh-ink);
    font-weight: 800;
}

/* 5. Add Your Car CTA Band */
.rkhp-cta-card {
    background: var(--rkh-surface);
    border: 1px solid var(--rkh-line);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.rkhp-cta-copy {
    min-width: 0;
    max-width: 640px;
}

.rkhp-cta-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--rkh-ink);
}

.rkhp-cta-steps {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rkh-muted);
}

.rkhp-cta-steps li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rkhp-step-num {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid var(--rkh-line);
    background: var(--rkh-studio);
    color: var(--rkh-ink);
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rkhp-cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rkhp-cta-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--rkh-ink) !important;
    text-decoration: none !important;
}

.rkhp-cta-link:hover {
    text-decoration: underline !important;
}

@media (max-width: 767.98px) {
    .rkhp-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .rkhp-chips::-webkit-scrollbar {
        display: none;
    }

    .rkhp-chip,
    .rkhp-tab {
        min-height: 42px;
        padding: 0 14px;
    }

    .rkhp-view-all {
        min-height: 44px;
        margin: -10px -6px;
        padding: 0 6px;
    }
}

@media (max-width: 639px) {
    .rkhp-page {
        padding: 12px 0 32px;
    }

    .rkhp-container {
        gap: 20px;
    }

    .rkhp-hero-card {
        padding: 15px;
        gap: 14px;
    }

    .rkhp-search {
        flex-direction: row;
    }

    .rkhp-btn-cta {
        padding: 0 15px;
        height: 42px;
        font-size: 0.85rem;
    }

    .rkhp-search-field {
        height: 42px;
    }

    .rkhp-post-thumb {
        width: 80px;
        height: 52px;
    }
}

/* ==========================================================================
   17 NOV 2026: Chassis guides list + touch targets
   A compact panel like Activity, told apart by the dark chassis-code tile and the arrow on each row.
   ========================================================================== */
.rkhp-guide-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    background: var(--rkh-line);
}

@media (min-width: 640px) {
    .rkhp-guide-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .rkhp-guide-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.rkhp-guide-row {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 56px;
    padding: 9px 12px 9px 10px;
    background: var(--rkh-surface);
    text-decoration: none !important;
    color: var(--rkh-ink) !important;
    transition: background-color 0.14s ease;
}

.rkhp-guide-row:hover {
    background: var(--rkh-studio);
}

.rkhp-guide-code {
    flex: 0 0 58px;
    width: 58px;
    height: 36px;
    padding: 0 4px;
    border-radius: 8px;
    background: #18191b;
    color: #f4f4f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}

html.dark .rkhp-guide-code {
    background: #2b2c31;
}

.rkhp-guide-copy {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.rkhp-guide-name {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.28;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rkhp-guide-sub {
    margin-top: 1px;
    font-size: 0.75rem;
    color: var(--rkh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rkhp-guide-arrow {
    flex: 0 0 auto;
    color: var(--rkh-accent);
}

/* Activity links: taller hit areas on touch screens. The padding sits inside the row's own padding and
   is cancelled by the negative margin, so nothing moves. */
@media (pointer: coarse) {
    .rkhp-act-head {
        padding: 8px 0 2px;
        margin: -8px 0 -2px;
    }

    .rkhp-act-head a {
        padding: 8px 0 2px;
    }

    .rkhp-act-sub {
        padding-bottom: 8px;
        margin-bottom: -8px;
    }
}

/* ==========================================================================
   Homepage Sections: Latest Cars by Day + 360° Showcase Cars + Full-width Posts
   ========================================================================== */

/* Latest Cars Grouped by Day (compact list matching Latest Posts) */
.rkhp-days-panel {
    display: flex;
    flex-direction: column;
}

.rkhp-day-block + .rkhp-day-block {
    border-top: 1px solid var(--rkh-line);
}

.rkhp-day-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    background: var(--rkh-studio);
    border-bottom: 1px solid var(--rkh-line);
}

.rkhp-day-title {
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--rkh-ink);
    white-space: nowrap;
}

.rkhp-day-sub {
    font-weight: 600;
    color: var(--rkh-muted);
}

.rkhp-day-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rkh-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rkhp-day-list {
    display: flex;
    flex-direction: column;
}

.rkhp-car-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-top: 1px solid var(--rkh-line);
    text-decoration: none !important;
    color: var(--rkh-ink) !important;
    transition: background-color 0.14s ease;
}

.rkhp-car-row:first-child {
    border-top: 0;
}

.rkhp-car-row:hover {
    background: var(--rkh-studio);
}

.rkhp-car-thumb {
    position: relative;
    width: clamp(128px, 40vw, 176px);
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    background: #121316;
    border: 1px solid var(--rkh-line);
    flex-shrink: 0;
}

.rkhp-car-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    display: block;
}

.rkhp-car-thumb-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--rkh-soft);
}

.rkhp-car-info {
    min-width: 0;
    flex: 1;
}

.rkhp-car-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.rkhp-car-title {
    margin: 0;
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--rkh-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
}

.rkhp-car-meta {
    margin: 4px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--rkh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rkhp-car-360 {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--rkh-accent);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

html.dark .rkhp-car-360 {
    background: rgba(220, 38, 38, 0.22);
    color: #f87171;
}

/* Prominent right-hand parts count stat badge */
.rkhp-car-parts-badge {
    flex-shrink: 0;
    min-width: 56px;
    padding: 6px 9px;
    border-radius: 10px;
    background: var(--rkh-studio);
    border: 1px solid var(--rkh-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rkhp-car-parts-num {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--rkh-ink);
    font-variant-numeric: tabular-nums;
}

.rkhp-car-parts-lbl {
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--rkh-muted);
}

/* Highlight builds packed with 15+ parts */
.rkhp-car-parts-badge.is-loaded {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.26);
}

.rkhp-car-parts-badge.is-loaded .rkhp-car-parts-num {
    color: var(--rkh-accent);
}

.rkhp-car-parts-badge.is-loaded .rkhp-car-parts-lbl {
    color: var(--rkh-accent);
    opacity: 0.85;
}

html.dark .rkhp-car-parts-badge.is-loaded {
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(248, 113, 113, 0.32);
}

html.dark .rkhp-car-parts-badge.is-loaded .rkhp-car-parts-num,
html.dark .rkhp-car-parts-badge.is-loaded .rkhp-car-parts-lbl {
    color: #f87171;
}

/* Latest Cars parts + mods stats: icon stack on small screens, split pill from 800px */
.rkhp-car-stats {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.rkhp-car-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    line-height: 1;
    white-space: nowrap;
    color: var(--rkh-muted);
}

.rkhp-car-stat-ic {
    width: 14px;
    height: 14px;
    flex: none;
}

.rkhp-car-stat-num {
    min-width: 1.5em;
    text-align: right;
    font-weight: 800;
    color: var(--rkh-ink);
    font-variant-numeric: tabular-nums;
}

.rkhp-car-stat-lbl {
    font-weight: 600;
}

.rkhp-car-stat.is-zero {
    opacity: 0.45;
}

.rkhp-car-stat--parts.is-loaded,
.rkhp-car-stat--parts.is-loaded .rkhp-car-stat-num {
    color: var(--rkh-accent);
}

html.dark .rkhp-car-stat--parts.is-loaded,
html.dark .rkhp-car-stat--parts.is-loaded .rkhp-car-stat-num {
    color: #f87171;
}

@media (min-width: 800px) {
    .rkhp-car-stats {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--rkh-line);
        border-radius: 10px;
        background: var(--rkh-studio);
        overflow: hidden;
    }

    .rkhp-car-stat {
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        min-width: 50px;
        padding: 6px 8px;
    }

    .rkhp-car-stat + .rkhp-car-stat {
        border-left: 1px solid var(--rkh-line);
    }

    .rkhp-car-stat-ic {
        display: none;
    }

    .rkhp-car-stat-num {
        min-width: 0;
        text-align: center;
        font-size: 1.05rem;
        line-height: 1;
        letter-spacing: -0.02em;
    }

    .rkhp-car-stat-lbl {
        font-size: 0.6rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .rkhp-car-stat--parts.is-loaded {
        background: rgba(220, 38, 38, 0.08);
    }

    .rkhp-car-stat--parts.is-loaded .rkhp-car-stat-lbl {
        opacity: 0.85;
    }

    html.dark .rkhp-car-stat--parts.is-loaded {
        background: rgba(220, 38, 38, 0.16);
    }
}

/* Latest Cars on phones (< 800px): no card or dividers, big thumb left, name / owner / stats stacked right */
@media (max-width: 799.98px) {
    .rkhp-panel.rkhp-days-panel {
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .rkhp-car-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        grid-template-areas:
            "thumb info"
            "thumb stats";
        align-content: center;
        column-gap: 12px;
        row-gap: 7px;
        padding: 6px 0;
        border-top: 0;
    }

    .rkhp-car-row:hover {
        background: transparent;
    }

    .rkhp-car-thumb {
        grid-area: thumb;
        align-self: center;
        width: clamp(128px, 42vw, 176px);
        border: 0;
        border-radius: 12px;
    }

    .rkhp-car-info {
        grid-area: info;
        align-self: end;
    }

    .rkhp-car-title {
        font-size: 0.95rem;
        line-height: 1.28;
    }

    .rkhp-car-meta {
        margin-top: 3px;
    }

    .rkhp-car-stats {
        grid-area: stats;
        align-self: start;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .rkhp-car-stat.is-zero {
        display: none;
    }

    .rkhp-car-stat-num {
        min-width: 0;
    }
}

@media (min-width: 800px) {
    .rkhp-day-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(var(--rkhp-rows, 4), auto);
        grid-auto-flow: column;
        margin-bottom: -1px;
    }

    .rkhp-car-row {
        border-top: 0;
        border-bottom: 1px solid var(--rkh-line);
    }

    .rkhp-car-row.is-left {
        border-right: 1px solid var(--rkh-line);
    }

    .rkhp-car-row:only-child {
        grid-column: 1 / -1;
        border-right: 0;
    }
}

/* 360° Showcase Cars Grid */
.rkhp-sec-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.rkhp-sec-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--rkh-accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

html.dark .rkhp-sec-pill {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

.rkhp-sc-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.rkhp-sc-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 640px) {
    .rkhp-sc-grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: visible;
        gap: 12px;
    }
}

@media (min-width: 960px) {
    .rkhp-sc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rkhp-sc-grid.is-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rkhp-sc-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--rkh-surface);
    border: 1px solid var(--rkh-line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--rkh-ink) !important;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rkhp-sc-card:hover {
    border-color: var(--rkh-muted);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.28);
}

html.dark .rkhp-sc-card:hover {
    box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6);
}

.rkhp-sc-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f4f4f4;
    overflow: hidden;
}

.rkhp-sc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rkhp-sc-card:hover .rkhp-sc-photo img {
    transform: scale(1.03);
}

.rkhp-sc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 16, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rkhp-sc-body {
    padding: 10px 12px 11px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.rkhp-sc-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.28;
    color: var(--rkh-ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.rkhp-sc-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rkhp-sc-meta {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--rkh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.rkhp-sc-go {
    flex-shrink: 0;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--rkh-accent);
    white-space: nowrap;
}

/* Full-width Latest Posts: balanced 2-column grid on desktop */
@media (min-width: 800px) {
    .rkhp-container > .rkhp-posts .rkhp-post-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: -1px;
    }

    .rkhp-container > .rkhp-posts .rkhp-post-row {
        border-top: 0;
        border-bottom: 1px solid var(--rkh-line);
    }

    .rkhp-container > .rkhp-posts .rkhp-post-row:nth-child(odd) {
        border-right: 1px solid var(--rkh-line);
    }
}

/* Ranked Parts & Top Wheels Lists */
.rkhp-part-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.rkhp-part-item {
    border-top: 1px solid var(--rkh-line);
}

.rkhp-part-item:first-child {
    border-top: 0;
}

.rkhp-part-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    text-decoration: none !important;
    color: var(--rkh-ink) !important;
    transition: background-color 0.14s ease;
}

.rkhp-part-row:hover {
    background: var(--rkh-studio);
}

.rkhp-part-rank {
    width: 30px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--rkh-muted);
    font-variant-numeric: tabular-nums;
}

.rkhp-part-rank.is-top {
    color: var(--rkh-accent);
}

/* Gold / silver / bronze badges for ranks 1-3 (trophy cups on parts, race plates on wheels) */
.rkhp-part-rank.has-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rkhp-rank-badge {
    display: block;
    width: 30px;
    height: 30px;
    transition: transform 0.16s ease;
}

.rkhp-rank-badge text {
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}

.rkhp-part-row:hover .rkhp-rank-badge {
    transform: rotate(-6deg) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .rkhp-rank-badge {
        transition: none;
    }
    .rkhp-part-row:hover .rkhp-rank-badge {
        transform: none;
    }
}

.rkhp-part-visual {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--rkh-line);
    background: var(--rkh-studio);
    color: var(--rkh-ink);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.rkhp-part-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.rkhp-part-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.rkhp-part-svg .rk-bp-tint {
    fill: currentColor;
    fill-opacity: 0.14;
}

.rkhp-part-visual[data-bp="engine"] { color: #dc2626; }
.rkhp-part-visual[data-bp="brakes"] { color: #e11d48; }
.rkhp-part-visual[data-bp="wheels"] { color: #0284c7; }
.rkhp-part-visual[data-bp="susp"]   { color: #d97706; }
.rkhp-part-visual[data-bp="aero"]   { color: #7c3aed; }
.rkhp-part-visual[data-bp="elec"]   { color: #059669; }

html.dark .rkhp-part-visual[data-bp="engine"] { color: #f87171; }
html.dark .rkhp-part-visual[data-bp="brakes"] { color: #fb7185; }
html.dark .rkhp-part-visual[data-bp="wheels"] { color: #38bdf8; }
html.dark .rkhp-part-visual[data-bp="susp"]   { color: #fbbf24; }
html.dark .rkhp-part-visual[data-bp="aero"]   { color: #a78bfa; }
html.dark .rkhp-part-visual[data-bp="elec"]   { color: #34d399; }

.rkhp-part-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rkh-muted);
    opacity: 0.5;
}

.rkhp-part-info {
    min-width: 0;
    flex: 1;
}

.rkhp-part-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rkh-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rkhp-part-meta {
    margin: 3px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--rkh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rkhp-part-count {
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--rkh-studio);
    border: 1px solid var(--rkh-line);
    color: var(--rkh-ink);
    font-size: 0.73rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (min-width: 800px) {
    .rkhp-part-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(var(--rkhp-rows, 4), auto);
        grid-auto-flow: column;
        margin-bottom: -1px;
    }

    .rkhp-part-item {
        border-top: 0;
        border-bottom: 1px solid var(--rkh-line);
    }

    .rkhp-part-item.is-left {
        border-right: 1px solid var(--rkh-line);
    }

    .rkhp-part-item:only-child {
        grid-column: 1 / -1;
        border-right: 0;
    }
}

/* Homepage Videos: one row of vertical 9:16 cards (swipe on phones, 8 across on desktop) */
.rkhp-video-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(132px, 40vw, 170px);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--rkh-gutter));
    padding: 0 var(--rkh-gutter) 4px;
    scroll-padding: 0 var(--rkh-gutter);
}

.rkhp-video-row::-webkit-scrollbar {
    display: none;
}

.rkhp-video-card {
    min-width: 0;
    scroll-snap-align: start;
    text-decoration: none !important;
    color: var(--rkh-ink) !important;
}

.rkhp-video-thumb {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #121316;
}

.rkhp-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.rkhp-video-card:hover .rkhp-video-thumb img {
    transform: scale(1.04);
}

.rkhp-video-thumb-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--rkh-soft);
}

.rkhp-video-play {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(15, 16, 18, 0.72);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rkhp-video-title {
    margin: 8px 0 0;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rkh-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rkhp-video-meta {
    margin: 3px 0 0;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--rkh-muted);
}

@media (min-width: 800px) {
    .rkhp-video-row {
        grid-auto-columns: calc((100% - 7 * 14px) / 8);
        gap: 14px;
        margin: 0;
        padding: 0 0 4px;
        scroll-padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rkhp-video-thumb img {
        transition: none;
    }
    .rkhp-video-card:hover .rkhp-video-thumb img {
        transform: none;
    }
}
