/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */

.rv-single-product__hero {
    padding: 1.5rem !important;
}

.rv-single-product__hero .wp-block-columns {
    align-items: flex-start;
}

.rv-single-product__image-col {
    flex-shrink: 0 !important;
    max-width: 280px !important;
}

.rv-single-product__hero .wp-block-post-featured-image {
    background: var(--rv-surface-primary);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--rv-shadow-sm);
}

.rv-single-product__hero .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 240px;
    object-fit: contain !important;
    border-radius: 8px;
}

.rv-single-product__info-col h1 {
    margin-top: 0 !important;
}

.rv-single-product__brand {
    color: var(--rv-text-secondary);
}

.rv-single-product__brand .rv-label {
    margin: 0 !important;
}

.rv-single-product__price-cta .rv-product-price {
    font-size: var(--rv-text-3xl);
    font-weight: 700;
    color: var(--rv-text-heading);
    line-height: 1.2;
}

.rv-single-product__overview {
    font-size: var(--rv-text-base);
    line-height: 1.6;
    color: var(--rv-text-secondary);
}

.rv-single-product__overview p {
    margin-bottom: 0.75rem;
}

.rv-single-product__overview p:last-child {
    margin-bottom: 0;
}

.rv-single-product__hero .wp-block-separator {
    border-color: var(--rv-border-primary);
    opacity: 0.5;
}

.rv-cta-button-wrapper .wp-block-button__link,
.rv-cta-button-wrapper .wp-element-button {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: var(--rv-text-base);
    font-weight: 600;
    border-radius: 8px;
    background: var(--rv-brand-accent);
    color: #fff !important;
    text-decoration: none;
    transition: background 0.2s ease;
}

.rv-cta-button-wrapper .wp-block-button__link:hover,
.rv-cta-button-wrapper .wp-element-button:hover {
    background: var(--rv-text-heading);
}

@media (max-width: 782px) {
    .rv-single-product__hero .wp-block-columns {
        flex-direction: column;
    }

    .rv-single-product__image-col {
        max-width: 100% !important;
        margin-bottom: 1.5rem;
    }

    .rv-single-product__hero .wp-block-post-featured-image {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Product Gallery */
.rv-product-gallery {
    margin-bottom: var(--wp--preset--spacing--50);
}

.rv-product-gallery__title {
    font-size: var(--rv-text-2xl);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--rv-text-heading);
}

.rv-product-gallery__grid {
    display: grid;
    grid-template-columns: repeat(var(--rv-gallery-columns, 4), 1fr);
    gap: 1rem;
}

.rv-product-gallery__item {
    margin: 0;
    padding: 0;
}

.rv-product-gallery__link {
    display: block;
    background: var(--rv-surface-primary);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--rv-shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rv-product-gallery__link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.rv-product-gallery__image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 782px) {
    .rv-product-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .rv-product-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .rv-product-gallery__image {
        height: 120px;
    }
}

/* ==========================================================================
   PRODUCT PAGE v2.0 - Database Authority Layout
   ========================================================================== */

/* Product Page Container */
.rv-product-page {
    background: var(--rv-surface-primary);
}

/* Hero Section */
.rv-product-hero {
    margin-bottom: 0;
}

/* Hero Columns Layout */
.rv-hero-columns {
    align-items: flex-start;
}

.rv-hero-image-col {
    position: sticky;
    top: var(--rv-header-height, 140px);
}

.rv-hero-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.rv-hero-info-col {
    display: flex;
    flex-direction: column;
}

.rv-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rv-term-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: var(--rv-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 3px;
    background: var(--rv-surface-secondary);
    color: var(--rv-text-primary);
}

.rv-term-badge a {
    color: inherit;
    text-decoration: none;
}

.rv-hero-title {
    margin: 0 0 0.25rem 0 !important;
    font-size: var(--rv-text-3xl) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--rv-text-primary);
}

.rv-hero-manufacturer {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 0 !important;
    margin-bottom: 1.5rem;
}

/* Consolidated: WP block margin reset for product hero paragraphs */
.rv-hero-manufacturer p,
.rv-badge-info-col p {
    margin: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.rv-hero-by {
    margin: 0;
    color: var(--rv-text-secondary);
}

.rv-hero-brand {
    font-size: var(--rv-text-base);
    font-weight: 500;
    color: var(--rv-text-primary);
}

/* Hero Featured Image */
.rv-hero-image,
.rv-hero-image.wp-block-post-featured-image {
    overflow: hidden;
    border-radius: 8px;
    max-width: 100%;
    margin: 0 !important;
}

.rv-hero-image img,
.rv-hero-image.wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 280px;
    object-fit: contain !important;
    border-radius: 8px;
}

.rv-hero-updated,
.rv-last-updated {
    display: block;
    margin: 1rem 0 0 0;
    font-size: var(--rv-text-md);
    color: var(--rv-text-secondary);
}

/* Hero Badge Card (legacy SVG version) */
.rv-hero-badge-card {
    box-shadow: var(--rv-shadow-sm);
}

.rv-hero-badge-card .wp-block-columns {
    align-items: center;
}

.rv-badge-col {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.rv-hero-badge-card .rv-autonomy-badge img,
.rv-hero-badge-card .rv-autonomy-badge--A img {
    max-height: 80px !important;
    height: 80px !important;
    width: auto !important;
}

.rv-badge-info-col {
    display: flex;
    flex-direction: column;
}

.rv-badge-label {
    margin: 0 0 0.25rem 0;
}

/* Hide duplicate autonomy classification (already shown in profile section above) */
.rv-product-page .rv-autonomy-classification {
    display: none;
}

/* Hide quick answer visually but keep for crawlers/AI */
.rv-product-page .rv-quick-answer {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================
   AUTONOMY PROFILE SECTION (Banner layout — Variation B)
   ===================== */
.rv-autonomy-profile {
    border: 2px solid var(--rv-ap-color, var(--rv-border-primary));
    border-radius: 12px;
    margin-bottom: 2rem;
    background: var(--rv-surface-secondary);
    background: color-mix(in srgb, var(--rv-ap-color) 8%, transparent);
}

.rv-autonomy-profile__title {
    font-size: var(--rv-text-2xl);
    font-weight: 700;
    color: var(--rv-text-heading);
    margin: 2rem 0 0.75rem 0;
}

/* Banner */
.rv-autonomy-profile__banner {
    border-bottom: 1px solid color-mix(in srgb, var(--rv-ap-color) 25%, transparent);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rv-autonomy-profile__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    background: var(--rv-ap-color, var(--rv-brand-primary));
    color: #fff;
    flex-shrink: 0;
}

.rv-autonomy-profile__badge-num {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.rv-autonomy-profile__badge-title {
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    display: block;
}

.rv-autonomy-profile__badge-name {
    font-size: 0.9375rem;
    font-weight: 700;
    display: block;
}

.rv-autonomy-profile__banner-just {
    font-size: var(--rv-text-base);
    color: var(--rv-text-secondary);
    line-height: 1.6;
}

.rv-autonomy-profile__banner-just p {
    margin: 0;
}

/* Body */
.rv-autonomy-profile__body {
    padding: 1.5rem;
}

.rv-autonomy-profile__body-header {
    margin-bottom: 1rem;
}

.rv-autonomy-profile__body-title {
    font-size: var(--rv-text-base);
    font-weight: 700;
    color: var(--rv-text-heading);
    margin: 0 0 0.25rem 0;
}

.rv-autonomy-profile__body-subtitle {
    font-size: var(--rv-text-md);
    color: var(--rv-text-muted);
    margin: 0;
}

.rv-autonomy-profile__scale {
    margin-bottom: 0;
}

/* Limitations below scale */
.rv-autonomy-profile__limitations {
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--rv-ap-color) 25%, transparent);
}

.rv-autonomy-profile__col-title {
    font-size: var(--rv-text-md);
    font-weight: 700;
    color: var(--rv-text-heading);
    margin: 0 0 0.5rem 0;
}

.rv-autonomy-profile__col-text {
    font-size: var(--rv-text-base);
    color: var(--rv-text-secondary);
    line-height: 1.6;
}

.rv-autonomy-profile__col-text p {
    margin: 0 0 0.5rem 0;
}

.rv-autonomy-profile__col-text p:last-child {
    margin-bottom: 0;
}

/* Footer */
.rv-autonomy-profile__footer {
    border-top: 1px solid var(--rv-border-primary);
    padding: 0.75rem 1.5rem;
    text-align: right;
}

@media (max-width: 768px) {
    .rv-autonomy-profile__banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rv-autonomy-profile__columns {
        grid-template-columns: 1fr;
    }
}

/* Dark mode */
/* Tint scale elements to match autonomy color */
.rv-autonomy-profile .rv-autonomy-scale__step:not(.rv-autonomy-scale__step--active) .rv-autonomy-scale__step-marker {
    border-color: color-mix(in srgb, var(--rv-ap-color) 40%, #fff);
    background: #fff;
}

.rv-autonomy-profile .rv-autonomy-scale__step:not(.rv-autonomy-scale__step--active) .rv-autonomy-scale__step-marker-label {
    color: color-mix(in srgb, var(--rv-ap-color) 40%, #fff);
}

.rv-autonomy-profile .rv-autonomy-scale__strip::before {
    background: color-mix(in srgb, var(--rv-ap-color) 35%, #fff);
}

.rv-autonomy-profile .rv-autonomy-scale__active-label span:first-child {
    border-color: color-mix(in srgb, var(--rv-ap-color) 40%, #fff);
}

.rv-autonomy-profile .rv-autonomy-scale__step:hover .rv-autonomy-scale__step-marker {
    background: var(--level-color) !important;
    border-color: var(--level-color) !important;
}

.rv-autonomy-profile .rv-autonomy-scale__step:hover .rv-autonomy-scale__step-marker-label {
    color: #fff !important;
}

/* Bigger scale + badge inside autonomy profile */
.rv-autonomy-profile .rv-autonomy-scale__step-marker {
    width: 34px;
    height: 34px;
}

.rv-autonomy-profile .rv-autonomy-scale__step-marker-label {
    font-size: 0.75rem;
}

.rv-autonomy-profile .rv-autonomy-scale__strip::before {
    top: 17px;
}

.rv-autonomy-profile .rv-autonomy-scale__step-label {
    font-size: var(--rv-text-md);
}

.rv-autonomy-profile .rv-autonomy-scale__active-label {
    font-size: var(--rv-text-xl);
}

.rv-autonomy-profile .rv-autonomy-scale__active-label span:first-child {
    font-size: var(--rv-text-md);
    padding: 0.25rem 0.625rem;
}

.rv-autonomy-profile .rv-autonomy-badge--B img {
    width: 68px;
    height: 28px;
}

.rv-autonomy-profile .rv-autonomy-profile__badge {
    padding: 0.5rem 1.25rem;
}

.rv-autonomy-profile .rv-autonomy-profile__badge-num {
    font-size: 2rem;
}

.rv-autonomy-profile .rv-autonomy-profile__badge-name {
    font-size: 1.125rem;
}

.rv-autonomy-profile .rv-autonomy-scale__tooltip {
    width: 260px;
    font-size: var(--rv-text-md);
    line-height: 1.5;
}

.rv-autonomy-profile .rv-autonomy-scale__tooltip strong {
    font-size: var(--rv-text-base);
}

/* Footer link separator */
.rv-autonomy-profile__footer {
    border-top-color: color-mix(in srgb, var(--rv-ap-color) 25%, transparent);
}

html[data-theme="dark"] .rv-autonomy-profile {
    background: color-mix(in srgb, var(--rv-ap-color) 12%, transparent);
}

html[data-theme="dark"] .rv-autonomy-profile .rv-autonomy-scale__step:not(.rv-autonomy-scale__step--active) .rv-autonomy-scale__step-marker {
    background: var(--rv-surface-primary);
}

/* Hero Level Badge (CSS version — replaces SVG badges) */
/* Hero Stats — inline classification metrics */
.rv-hero-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.rv-hero-stats__item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
}

a.rv-hero-stats__item:hover .rv-hero-stats__text {
    text-decoration: underline;
}

.rv-hero-stats__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rv-hero-stats__detail {
    display: flex;
    flex-direction: column;
}

.rv-hero-stats__label {
    font-size: var(--rv-text-2xs);
    font-weight: 600;
    color: var(--rv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.rv-hero-stats__value {
    font-size: var(--rv-text-base);
    font-weight: 600;
    color: var(--rv-text-primary);
    line-height: 1.3;
}

.rv-hero-stats__value strong {
    font-size: var(--rv-text-base);
    font-weight: 800;
}

.rv-hero-stats__faded {
    font-weight: 500;
    color: var(--rv-text-muted);
}

/* Separator line between items */
.rv-hero-stats__item + .rv-hero-stats__item {
    border-left: 1px solid var(--rv-border-primary);
    padding-left: 1.25rem;
}

.rv-autonomy-text {
    display: block;
    margin: 0 !important;
    font-size: var(--rv-text-base);
    font-weight: 600;
    color: var(--rv-text-primary);
}

.rv-autonomy-text--pending {
    color: var(--rv-text-secondary);
    font-style: italic;
}

.rv-classification-note {
    margin: 0.5rem 0 0 0;
    font-size: var(--rv-text-md);
    font-style: italic;
    color: var(--rv-text-secondary);
}

/* Product Sections */
.rv-product-section {
    padding: 1rem 0;
    max-width: 1200px !important;
    margin-left: auto;
    margin-right: auto;
}

.rv-product-page .rv-product-section[style*="margin-bottom"] {
    margin-bottom: 1rem !important;
}

.rv-section-title {
    margin: 0 0 0.5rem 0;
    font-size: var(--rv-text-2xl);
    font-weight: 700;
    color: var(--rv-text-heading);
}

.rv-section-subtitle {
    margin: 0 0 1.5rem 0;
    font-size: var(--rv-text-base);
    color: var(--rv-text-secondary);
    line-height: 1.5;
}

/* Classification Snapshot */
.rv-classification-snapshot {
    border-radius: 12px;
}

.rv-snapshot-grid {
    border: 1px solid var(--rv-border-primary);
    border-radius: 8px;
    overflow: hidden;
    background: var(--rv-surface-primary);
}

/* Product columns layout */
.rv-product-columns .rv-product-section {
    max-width: 100% !important;
    padding: 0;
}

.rv-snapshot-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem 1rem;
}

.rv-snapshot-item + .rv-snapshot-item {
    border-top: 1px solid var(--rv-border-primary);
}

.rv-snapshot-label {
    font-size: var(--rv-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rv-text-muted);
    line-height: 1.2;
}

.rv-snapshot-value {
    font-size: var(--rv-text-base);
    font-weight: 500;
    color: var(--rv-text-heading);
    line-height: 1.3;
}

a.rv-snapshot-value--autonomy {
    font-weight: 600;
    color: var(--rv-brand-accent);
    text-decoration: none;
}

a.rv-snapshot-value--autonomy:hover {
    text-decoration: underline;
}

.rv-snapshot-link {
    color: var(--rv-brand-accent);
    text-decoration: none;
    font-weight: 500;
}

.rv-snapshot-link:hover {
    text-decoration: underline;
}

.rv-snapshot-description {
    font-size: var(--rv-text-md);
    line-height: 1.5;
    color: var(--rv-text-secondary);
    margin-top: 0.25rem;
}

.rv-snapshot-pending {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--rv-surface-secondary);
    border: 1px solid var(--rv-border-primary);
    border-radius: 8px;
}

.rv-pending-icon {
    font-size: var(--rv-text-2xl);
}

.rv-snapshot-pending p {
    margin: 0;
    font-size: var(--rv-text-base);
    color: var(--rv-text-secondary);
}

/* Evaluations Section */
.rv-evaluations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Scoped to archive list context to avoid conflict with homepage cards */
.rv-evaluations-list .rv-evaluation-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--rv-surface-secondary);
    border-radius: 8px;
}

.rv-evaluation-content {
    flex: 1;
}

.rv-evaluation-title {
    margin: 0 0 0.5rem 0;
    font-size: var(--rv-text-base);
    font-weight: 600;
}

.rv-evaluation-title a {
    color: var(--rv-text-primary);
    text-decoration: none;
}

.rv-evaluation-title a:hover {
    color: var(--rv-brand-accent-hover);
}

.rv-evaluation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: var(--rv-text-md);
    color: var(--rv-text-secondary);
}

.rv-meta-item {
    display: flex;
    gap: 0.25rem;
}

.rv-meta-label {
    font-weight: 500;
}

.rv-evaluation-excerpt {
    margin: 0;
    font-size: var(--rv-text-base);
    color: var(--rv-text-secondary);
    line-height: 1.5;
}

.rv-evaluation-cta {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: var(--rv-text-md);
    font-weight: 600;
    color: var(--rv-brand-accent-hover);
    text-decoration: none;
    border: 1px solid currentColor;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.rv-evaluation-cta:hover {
    background: var(--rv-brand-accent-hover);
    color: #fff;
}

/* Specs Grid — styles now in blocks/rv-specs-grid/style.css */

/* Tracker Updates */
.rv-tracker-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


.rv-tracker-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rv-tracker-type {
    padding: 0.2rem 0.5rem;
    font-size: var(--rv-text-xs);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    background: var(--rv-surface-tertiary);
    color: var(--rv-text-secondary);
    border-radius: 3px;
}

.rv-tracker-date {
    font-size: var(--rv-text-md);
    color: var(--rv-text-secondary);
}

.rv-tracker-title {
    margin: 0 0 0.5rem 0;
    font-size: var(--rv-text-base);
    font-weight: 500;
}

.rv-tracker-title a {
    color: var(--rv-text-primary);
    text-decoration: none;
}

.rv-tracker-title a:hover {
    color: var(--rv-brand-accent-hover);
}

.rv-tracker-progress {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: var(--rv-text-xs);
    font-weight: 500;
    border-radius: 3px;
    background: var(--rv-surface-primary);
    color: var(--rv-text-secondary);
}

.rv-tracker-progress--major-advance {
    background: var(--rv-progress-major-bg);
    color: var(--rv-progress-major-fg);
}

.rv-tracker-progress--incremental-progress {
    background: var(--rv-progress-incremental-bg);
    color: var(--rv-progress-incremental-fg);
}

.rv-tracker-progress--stalled {
    background: var(--rv-progress-lateral-bg);
    color: var(--rv-progress-lateral-fg);
}

/* ── Sidebar list (shared by comparisons + tracker entries) ──────── */
.rv-product-comparisons,
.rv-related-tracker-entries {
    margin-top: 0.25rem;
}

.rv-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rv-sidebar-list__item {
    border-bottom: 1px solid var(--rv-border-primary);
}

.rv-sidebar-list__item:last-child {
    border-bottom: none;
}

.rv-sidebar-list__link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.625rem 0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.rv-sidebar-list__link:hover .rv-sidebar-list__title {
    color: var(--rv-brand-accent-hover);
}

.rv-sidebar-list__title {
    font-size: var(--rv-text-md);
    font-weight: 500;
    line-height: 1.35;
    color: var(--rv-brand-accent);
    transition: color 0.15s ease;
}

.rv-sidebar-list__blurb {
    font-size: var(--rv-text-md);
    line-height: 1.4;
    color: var(--rv-text-secondary);
}

.rv-sidebar-list__more {
    font-size: var(--rv-text-xs);
    font-weight: 600;
    color: var(--rv-brand-accent-hover);
    white-space: nowrap;
}

.rv-sidebar-list__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--rv-text-xs);
    color: var(--rv-text-muted);
}

.rv-sidebar-list__date {
    color: var(--rv-text-muted);
}

/* Sidebar list badge and rating styles now in blocks-shared.css (unified badge system) */

.rv-sidebar-empty {
    font-size: var(--rv-text-md);
    color: var(--rv-text-muted);
    font-style: italic;
    margin: 0;
}

/* --- Evidence Chain (Tracker Single) --- */
.rv-tracker-evidence-chain {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rv-evidence-chain-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--rv-surface-primary);
    border: 1px solid var(--rv-border-primary);
    border-radius: 8px;
}

.rv-evidence-label {
    font-size: var(--rv-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rv-text-muted);
}

.rv-evidence-link {
    font-size: var(--rv-text-base);
    font-weight: 600;
    color: var(--rv-brand-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.rv-evidence-link:hover {
    text-decoration: underline;
}

.rv-evidence-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Availability Module */
.rv-availability-module {
    padding: 1.5rem;
    background: var(--rv-surface-secondary);
    border-radius: 12px;
    border: 2px dashed var(--rv-border-primary);
}

.rv-availability-header {
    margin-bottom: 1.25rem;
}

.rv-availability-title {
    margin: 0 0 0.5rem 0;
    font-size: var(--rv-text-base);
    font-weight: 700;
    color: var(--rv-text-primary);
}

.rv-availability-disclosure {
    margin: 0;
    font-size: var(--rv-text-md);
    font-style: italic;
    color: var(--rv-text-secondary);
}

.rv-availability-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rv-availability-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--rv-surface-primary);
    border: 1px solid var(--rv-border-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rv-availability-link:hover {
    border-color: var(--rv-text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.rv-retailer {
    font-size: var(--rv-text-base);
    font-weight: 600;
    color: var(--rv-text-primary);
}

.rv-check-availability {
    font-size: var(--rv-text-md);
    color: var(--rv-brand-accent-hover);
}

/* Availability Grid (Comparison Page) */
.rv-availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rv-availability-card {
    background: var(--rv-surface-primary);
    border: 1px solid var(--rv-border-primary);
    border-radius: 12px;
    padding: 1rem;
}

.rv-availability-card .rv-availability-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rv-availability-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--rv-surface-secondary);
    flex-shrink: 0;
}

.rv-availability-product {
    font-size: var(--rv-text-base);
    font-weight: 600;
    margin: 0;
    color: var(--rv-text-heading);
}

.rv-availability-product a {
    color: inherit;
    text-decoration: none;
}

.rv-availability-product a:hover {
    color: var(--rv-brand-accent);
}

.rv-availability-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rv-availability-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    color: var(--rv-text-heading);
    border: 1px solid var(--rv-border-primary);
    border-radius: 6px;
    text-decoration: none;
    font-size: var(--rv-text-md);
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rv-availability-btn:hover {
    background: var(--rv-surface-secondary);
    border-color: var(--rv-brand-primary);
    color: var(--rv-text-heading);
}

.rv-availability-external {
    font-size: var(--rv-text-xs);
    color: var(--rv-text-muted);
    margin-left: auto;
}

.rv-availability-none {
    font-size: var(--rv-text-md);
    color: var(--rv-text-muted);
    font-style: italic;
    margin: 0;
}

/* ============================================
   Evidence Chain Grid (Related Evaluations)
   ============================================ */
.rv-evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.rv-evidence-card {
    background: var(--rv-surface-primary);
    border: 1px solid var(--rv-border-primary);
    border-radius: 12px;
    padding: 1.25rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rv-evidence-card:hover {
    border-color: var(--rv-brand-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rv-evidence-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rv-border-primary);
}

.rv-evidence-card__thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--rv-surface-secondary);
    flex-shrink: 0;
}

.rv-evidence-card__thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--rv-surface-secondary);
    flex-shrink: 0;
}

.rv-evidence-card__title {
    font-size: var(--rv-text-base);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--rv-text-heading);
}

.rv-evidence-card__title a {
    color: inherit;
    text-decoration: none;
}

.rv-evidence-card__title a:hover {
    color: var(--rv-brand-accent);
}

.rv-evidence-card__links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.rv-evidence-card__link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: var(--rv-text-md);
    font-weight: 500;
    background: var(--rv-surface-secondary);
    color: var(--rv-text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.rv-evidence-card__link:hover {
    background: var(--rv-text-heading);
    color: #fff;
}

.rv-evidence-card__link--none {
    opacity: 0.5;
    cursor: default;
}

.rv-evidence-card__link--none:hover {
    background: var(--rv-surface-secondary);
    color: var(--rv-text-secondary);
}

.rv-evidence-card__link-icon {
    font-size: var(--rv-text-base);
    flex-shrink: 0;
}

.rv-evidence-card__link-text {
    flex: 1;
}

.rv-evidence-card__link-date {
    font-size: var(--rv-text-xs);
    color: var(--rv-text-muted);
    margin-left: auto;
}

.rv-evidence-card__link:hover .rv-evidence-card__link-date {
    color: rgba(255, 255, 255, 0.8);
}

/* Link type colors on hover */
.rv-evidence-card__link--product:hover {
    background: var(--rv-text-heading);
}

.rv-evidence-card__link--evaluation:hover {
    background: var(--rv-brand-accent);
}

.rv-evidence-card__link--tracker:hover {
    background: #059669;
}

@media (max-width: 600px) {
    .rv-evidence-grid {
        grid-template-columns: 1fr;
    }

    .rv-evidence-card__header {
        flex-direction: column;
        text-align: center;
    }

    .rv-evidence-card__thumb,
    .rv-evidence-card__thumb-placeholder {
        width: 64px;
        height: 64px;
    }
}

/* =====================
   RELATED COMPARISONS & MONITORING
   ===================== */
.rv-related-cm__subheading {
    font-size: var(--rv-text-base);
    font-weight: 700;
    color: var(--rv-text-heading);
    margin: 0 0 1rem 0;
}

.rv-related-cm__subheading--trackers {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rv-border-primary);
}

.rv-related-cm__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/*
 * Shared card overrides for rv-related-cm (comparison page) and rv-related-feed (product page).
 * Edit once here — both contexts pick up the same rules.
 */
.rv-related-cm__list .rv-tracker-card,
.rv-related-feed .rv-tracker-card {
    padding: 1.5rem;
}

.rv-related-cm__list .rv-comparison-card,
.rv-related-feed .rv-comparison-card {
    padding: 1.5rem;
}

.rv-related-cm__list .rv-tracker-card__header,
.rv-related-cm__list .rv-tracker-card__content,
.rv-related-cm__list .rv-tracker-card__footer,
.rv-related-cm__list .rv-tracker-card__meta-row,
.rv-related-feed .rv-tracker-card__header,
.rv-related-feed .rv-tracker-card__content,
.rv-related-feed .rv-tracker-card__footer,
.rv-related-feed .rv-tracker-card__meta-row {
    padding: 0;
}

.rv-related-cm__list .rv-tracker-card__badges,
.rv-related-feed .rv-tracker-card__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin-top: 0.75rem;
}

.rv-related-cm__list .rv-tracker-card__category-badge,
.rv-related-feed .rv-tracker-card__category-badge {
    font-size: var(--rv-text-xs);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    background: var(--rv-surface-tertiary);
    color: var(--rv-text-secondary);
}

.rv-related-cm__list .rv-tracker-card__product,
.rv-related-feed .rv-tracker-card__product {
    margin: 0.25rem 0 0 0;
}

.rv-related-cm__list .rv-tracker-card__excerpt,
.rv-related-feed .rv-tracker-card__excerpt {
    margin: 0;
}

.rv-related-cm__list .rv-comparison-card__meta,
.rv-related-feed .rv-comparison-card__meta {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.rv-related-cm__list .rv-comparison-card__meta p,
.rv-related-feed .rv-comparison-card__meta p {
    margin: 0;
}

.rv-related-cm__list .rv-comparison-card__products,
.rv-related-feed .rv-comparison-card__products {
    margin: 0 0 0.75rem 0;
}

.rv-related-cm__list .rv-comparison-card__excerpt,
.rv-related-feed .rv-comparison-card__excerpt {
    margin: 0 0 1rem 0;
}

.rv-related-cm__item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--rv-surface-primary);
    border: 1px solid var(--rv-border-primary);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rv-related-cm__item:hover {
    border-color: var(--rv-brand-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rv-related-cm__item-content {
    flex: 1;
    min-width: 0;
}

.rv-related-cm__item-title {
    font-size: var(--rv-text-base);
    font-weight: 600;
    color: var(--rv-text-heading);
    margin: 0 0 0.375rem 0;
    line-height: 1.4;
}

.rv-related-cm__item-title a {
    color: inherit;
    text-decoration: none;
}

.rv-related-cm__item-title a:hover {
    color: var(--rv-brand-accent);
}

.rv-related-cm__item-products {
    font-size: var(--rv-text-md);
    color: var(--rv-text-secondary);
    margin: 0 0 0.375rem 0;
}

.rv-related-cm__item-label {
    font-weight: 500;
}

.rv-related-cm__item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
}

.rv-related-cm__item-date {
    font-size: var(--rv-text-md);
    color: var(--rv-text-muted);
}

.rv-related-cm__item-product {
    font-size: var(--rv-text-md);
    color: var(--rv-text-secondary);
    font-weight: 500;
}

.rv-related-cm__item-type {
    padding: 0.125rem 0.5rem;
    background: var(--rv-surface-tertiary);
    color: var(--rv-text-secondary);
    border-radius: 4px;
    font-size: var(--rv-text-xs);
    font-weight: 600;
    text-transform: capitalize;
}

.rv-related-cm__item-rating {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: var(--rv-text-xs);
    font-weight: 600;
}

.rv-related-cm__item-rating.rv-progress--major-advance {
    background: var(--rv-progress-major-bg);
    color: var(--rv-progress-major-fg);
}

.rv-related-cm__item-rating.rv-progress--incremental {
    background: var(--rv-progress-incremental-bg);
    color: var(--rv-progress-incremental-fg);
}

.rv-related-cm__item-rating.rv-progress--lateral {
    background: var(--rv-progress-lateral-bg);
    color: var(--rv-progress-lateral-fg);
}

.rv-related-cm__item-rating.rv-progress--setback {
    background: var(--rv-progress-setback-bg);
    color: var(--rv-progress-setback-fg);
}

.rv-related-cm__item-summary {
    font-size: var(--rv-text-md);
    color: var(--rv-text-secondary);
    line-height: 1.5;
    margin: 0.25rem 0 0 0;
}

.rv-related-cm__item-cta {
    flex-shrink: 0;
    margin-top: auto;
    font-size: var(--rv-text-md);
    font-weight: 600;
    color: var(--rv-brand-accent);
    text-decoration: none;
    white-space: nowrap;
}

.rv-related-cm__item-cta:hover {
    text-decoration: underline;
}

.rv-related-cm__empty {
    padding: 1.5rem;
    background: var(--rv-surface-secondary);
    border-radius: 8px;
    text-align: center;
    font-size: var(--rv-text-base);
    color: var(--rv-text-muted);
    font-style: italic;
}

@media (max-width: 782px) {
    .rv-related-cm__list {
        grid-template-columns: 1fr;
    }

    .rv-related-cm__item {
        flex-direction: column;
        gap: 1rem;
    }

    .rv-related-cm__item-cta {
        align-self: flex-start;
    }
}

.rv-no-links {
    color: var(--rv-text-muted);
    font-style: italic;
}

/* Product Meta / Governance */
.rv-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rv-meta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.rv-meta-link {
    font-size: var(--rv-text-md);
    font-weight: 500;
    color: var(--rv-brand-accent-hover);
    text-decoration: none;
}

.rv-meta-link:hover {
    text-decoration: underline;
}

.rv-meta-updated {
    display: flex;
    gap: 0.5rem;
    font-size: var(--rv-text-md);
    color: var(--rv-text-secondary);
}

.rv-meta-updated .rv-meta-label {
    font-weight: 500;
}

/* Empty States */
.rv-empty-state {
    padding: 2rem;
    text-align: center;
    background: var(--rv-surface-secondary);
    border-radius: 8px;
}

.rv-empty-message {
    margin: 0 0 0.5rem 0;
    font-size: var(--rv-text-base);
    font-weight: 500;
    color: var(--rv-text-primary);
}

.rv-empty-helper {
    margin: 0;
    font-size: var(--rv-text-md);
    color: var(--rv-text-secondary);
}

/* Section CTA */
.rv-section-cta {
    margin-top: 1rem;
    text-align: center;
}

.rv-cta-link {
    font-size: var(--rv-text-base);
    font-weight: 600;
    color: var(--rv-brand-accent-hover);
    text-decoration: none;
}

.rv-cta-link:hover {
    text-decoration: underline;
}

/* Product Page Responsive */
@media (max-width: 782px) {
    /* Hero stacks on mobile: image on top, info below */
    .rv-hero-columns {
        flex-direction: column !important;
    }

    .rv-hero-columns > .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    .rv-hero-image-col {
        position: static;
        order: -1;
        margin-bottom: 1rem;
    }

    .rv-hero-image-wrapper {
        min-height: auto;
    }

    .rv-hero-image img,
    .rv-hero-image.wp-block-post-featured-image img {
        max-height: 220px;
    }

    .rv-hero-info-col {
        padding: 0;
    }

    .rv-hero-title {
        font-size: var(--rv-text-2xl) !important;
    }

    .rv-hero-badge-card {
        padding: 1rem !important;
    }

    .rv-hero-badge-card .wp-block-columns {
        flex-direction: column;
        gap: 0.75rem;
    }

    .rv-badge-col {
        text-align: center;
    }

    .rv-badge-info-col {
        text-align: center;
    }

    .rv-badge-label {
        text-align: center;
    }

    .rv-autonomy-text {
        text-align: center;
    }

    .rv-classification-note {
        text-align: center;
    }

    .rv-snapshot-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rv-evaluation-card {
        flex-direction: column;
        align-items: stretch;
    }

    .rv-evaluation-cta {
        text-align: center;
    }

    .rv-product-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .rv-meta-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .rv-availability-links {
        flex-direction: column;
    }

    .rv-availability-link {
        width: 100%;
        justify-content: space-between;
    }
}

/* Gallery Link as Button */
.rv-product-gallery__link {
    display: block;
    width: 100%;
    background: var(--rv-surface-primary);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--rv-shadow-sm);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rv-product-gallery__link:hover {
    box-shadow: var(--rv-shadow-hover);
    transform: translateY(-2px);
}

/* Lightbox */
.rv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rv-lightbox[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.rv-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.rv-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rv-lightbox__image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.rv-lightbox__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: var(--rv-text-4xl);
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.rv-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.rv-lightbox__prev,
.rv-lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: var(--rv-text-4xl);
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.rv-lightbox__prev {
    left: 1rem;
}

.rv-lightbox__next {
    right: 1rem;
}

.rv-lightbox__prev:hover,
.rv-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.rv-lightbox__counter {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: var(--rv-text-md);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .rv-lightbox__prev,
    .rv-lightbox__next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .rv-lightbox__prev {
        left: 1rem;
    }

    .rv-lightbox__next {
        right: 1rem;
    }

    .rv-lightbox__counter {
        bottom: 4rem;
    }
}

.rv-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: var(--rv-surface-secondary);
    border-radius: var(--rv-card-radius);
    margin-bottom: 24px;
    box-sizing: border-box;
    max-width: 100%;
}

.rv-filter-bar__select {
    padding: 8px 12px;
    border: 1px solid var(--rv-border-primary);
    border-radius: var(--rv-button-radius);
    background: var(--rv-surface-primary);
    font-size: var(--rv-text-md);
    cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 782px) {
    .rv-archive-grid {
        grid-template-columns: 1fr;
    }

    .rv-filter-bar {
        flex-direction: column;
    }

    .rv-table {
        display: block;
        overflow-x: auto;
    }
}

/* ==========================================================================
   SIMILAR ROBOTS — related products grid
   ========================================================================== */

.rv-related-products {
    margin-top: 2.5rem !important;
    padding-top: 2rem;
    border-top: 1px solid var(--rv-border-primary);
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.rv-related-products__title {
    font-size: var(--rv-text-xl) !important;
    font-weight: 700;
    margin-bottom: 1.25rem !important;
    color: var(--rv-text-primary);
}

.rv-related-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Suppress stray wpautop artifacts inside rendered block cards */
.rv-related-products p,
.rv-related-products br {
    display: none;
}

.rv-related-products__title {
    display: block !important;
}

@media (max-width: 960px) {
    .rv-related-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .rv-related-products__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SIDEBAR CARDS (preview-style multi-card sidebar)
   ========================================================================== */
.rv-sb-card {
    background: var(--rv-surface-secondary);
    border: 1px solid var(--rv-border-primary);
    border-radius: 12px;
    padding: 1.25rem;
    line-height: 1.4;
    font-size: var(--rv-text-md);
}

/* Reset WP block spacing inside sidebar cards */
.rv-sb-card *,
.rv-sb-card p {
    margin-block-start: 0;
    margin-block-end: 0;
    margin: 0;
}

.rv-sb-card__title {
    font-size: var(--rv-text-md);
    font-weight: 700;
    color: var(--rv-text-heading);
    margin-bottom: 0.625rem;
}

.rv-sb-card__row {
    display: flex;
    justify-content: space-between;
    font-size: var(--rv-text-md);
    padding: 0.25rem 0;
}

.rv-sb-card__row-label {
    color: var(--rv-text-muted);
}

.rv-sb-card__row-value {
    color: var(--rv-text-heading);
    font-weight: 600;
}

/* Autonomy at a Glance */
.rv-sb-autonomy__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rv-sb-autonomy__badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    flex-shrink: 0;
}

.rv-sb-autonomy__info {
    display: flex;
    flex-direction: column;
}

.rv-sb-autonomy__name {
    font-size: var(--rv-text-md);
    font-weight: 700;
    color: var(--rv-text-heading);
}

.rv-sb-autonomy__sublabel {
    font-size: 0.6875rem;
    color: var(--rv-text-muted);
}

.rv-sb-autonomy__bar {
    display: flex;
    gap: 3px;
    margin-bottom: 0.5rem;
}

.rv-sb-autonomy__bar-seg {
    flex: 1;
    height: 6px;
    border-radius: 3px;
}

.rv-sb-autonomy__desc {
    font-size: var(--rv-text-xs);
    color: var(--rv-text-muted);
}

/* Consumer Readiness */
.rv-sb-readiness__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rv-sb-readiness__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rv-sb-readiness__label {
    font-size: 0.9375rem;
    font-weight: 700;
}

.rv-sb-readiness__desc {
    font-size: var(--rv-text-md);
    color: var(--rv-text-secondary);
}

/* Buy links */
.rv-sb-buy__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: var(--rv-text-md);
    font-weight: 600;
    color: var(--rv-text-heading);
    text-decoration: none;
    border: 1px solid var(--rv-border-primary);
    border-radius: 8px;
    margin-bottom: 0.375rem;
    background: var(--rv-surface-primary, #fff);
}

.rv-sb-buy__link:last-of-type {
    margin-bottom: 0;
}

.rv-sb-buy__link:hover {
    text-decoration: underline;
}

.rv-sb-buy__disclosure {
    display: block;
    font-size: var(--rv-text-xs);
    color: var(--rv-text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

/* CTA card */
.rv-sb-card--cta {
    text-align: center;
}

.rv-sb-cta__text {
    font-size: var(--rv-text-md);
    color: var(--rv-text-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.rv-sb-cta__link {
    font-size: var(--rv-text-md);
    font-weight: 600;
    color: var(--rv-brand-accent);
    text-decoration: none;
}

.rv-sb-cta__link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   REVIEW SECTION SIDEBAR — Sticky Product Card
   ========================================================================== */

/* Sidebar column: sticky within the review columns */
.rv-review-columns .rv-review-sidebar {
    align-self: start;
    position: sticky;
    top: 5rem;
    gap: 1rem !important;
}

.rv-review-sidebar.is-layout-flow > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Sidebar Product Card */
.rv-sidebar-product {
    border: 1px solid var(--rv-border-primary);
    border-radius: 12px;
    background: var(--rv-surface-primary);
    overflow: hidden;
}

.rv-sidebar-product__img-wrap {
    padding: 1.25rem 1.25rem 0;
    text-align: center;
}

.rv-sidebar-product__image {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

.rv-sidebar-product__info {
    padding: 1rem 1.25rem 0;
}

.rv-sidebar-product__title {
    font-size: var(--rv-text-base);
    font-weight: 700;
    color: var(--rv-text-heading);
    margin: 0 0 0.125rem !important;
    line-height: 1.3;
}

.rv-sidebar-product__manufacturer {
    font-size: var(--rv-text-md);
    color: var(--rv-text-muted);
    margin: 0 !important;
}

/* Details list */
.rv-sidebar-product__details {
    margin: 0.75rem 0 0 !important;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--rv-border-primary);
}

.rv-sidebar-product__detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.375rem 0;
}

.rv-sidebar-product__detail + .rv-sidebar-product__detail {
    border-top: 1px solid var(--rv-border-primary);
}

.rv-sidebar-product__detail dt {
    font-size: var(--rv-text-xs);
    font-weight: 600;
    color: var(--rv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rv-sidebar-product__detail dd {
    font-size: var(--rv-text-md);
    font-weight: 500;
    color: var(--rv-text-primary);
    margin: 0;
    text-align: right;
}

.rv-sidebar-product__level {
    font-size: var(--rv-text-md);
    font-weight: 500;
    color: var(--level-color, var(--rv-text-secondary));
}

/* Availability section */
.rv-sidebar-product__availability {
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid var(--rv-border-primary);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rv-sidebar-product__avail-heading {
    font-size: var(--rv-text-xs);
    font-weight: 600;
    color: var(--rv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.25rem !important;
}

.rv-sidebar-product__buy-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--rv-border-primary);
    border-radius: 6px;
    color: var(--rv-text-primary);
    text-decoration: none;
    font-size: var(--rv-text-md);
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.rv-sidebar-product__buy-link:hover {
    border-color: var(--rv-brand-accent);
    background: var(--rv-surface-secondary);
}

.rv-sidebar-product__buy-link svg {
    color: var(--rv-text-muted);
    flex-shrink: 0;
}

.rv-sidebar-product__disclosure {
    font-size: var(--rv-text-2xs);
    color: var(--rv-text-muted);
    margin: 0.125rem 0 0 !important;
    font-style: italic;
}

/* Dark mode */
html[data-theme="dark"] .rv-sidebar-product {
    background: var(--rv-surface-secondary);
    border-color: var(--rv-border-primary);
}

html[data-theme="dark"] .rv-sidebar-product__buy-link:hover {
    background: var(--rv-surface-tertiary, rgba(255,255,255,0.05));
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .rv-sidebar-product {
        background: var(--rv-surface-secondary);
        border-color: var(--rv-border-primary);
    }
}

/* Mobile: stack sidebar below review */
@media (max-width: 782px) {
    .rv-review-columns .rv-review-sidebar {
        position: static;
    }

    .rv-autonomy-details {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}
