/* ============================================================
   i2o Retail — RMRI Page Styles
   Covers all utility classes used in page-templates/page-rmri.php
   ============================================================ */

/* ── Layout & Positioning ──────────────────────────────────── */
.relative  { position: relative; }
.absolute  { position: absolute; }
.fixed     { position: fixed; }

.inset-0   { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.inset-3   { top: 0.75rem; right: 0.75rem; bottom: 0.75rem; left: 0.75rem; }
.inset-4   { top: 1rem; right: 1rem; bottom: 1rem; left: 1rem; }
.inset-6   { top: 1.5rem; right: 1.5rem; bottom: 1.5rem; left: 1.5rem; }

.top-0     { top: 0; }
.bottom-0  { bottom: 0; }
.left-0    { left: 0; }
.right-0   { right: 0; }
.top-full  { top: 100%; }

.z-0   { z-index: 0; }
.z-10  { z-index: 10; }
.z-20  { z-index: 20; }
.z-50  { z-index: 50; }

/* ── Display ───────────────────────────────────────────────── */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline-flex  { display: inline-flex; }
.hidden       { display: none; }
.sr-only      {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Flex ──────────────────────────────────────────────────── */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-row     { flex-direction: row; }
.flex-1       { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start  { align-items: flex-start; }
.items-center { align-items: center; }
.items-end    { align-items: flex-end; }

.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }

.gap-0   { gap: 0; }
.gap-1   { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2   { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3   { gap: 0.75rem; }
.gap-4   { gap: 1rem; }
.gap-6   { gap: 1.5rem; }
.gap-8   { gap: 2rem; }
.gap-12  { gap: 3rem; }
.gap-16  { gap: 4rem; }

/* ── Grid ──────────────────────────────────────────────────── */
.grid             { display: grid; }
.grid-cols-3      { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Overflow ──────────────────────────────────────────────── */
.overflow-hidden   { overflow: hidden; }
.overflow-visible  { overflow: visible; }
.overflow-y-auto   { overflow-y: auto; }

/* ── Sizing ────────────────────────────────────────────────── */
.w-full    { width: 100%; }
.w-screen  { width: 100vw; }
.h-full    { height: 100%; }
.h-auto    { height: auto; }
.min-h-screen { min-height: 100vh; }

/* ── Object fit — must override global.css img { height: auto } ── */
.object-cover   { object-fit: cover !important; height: 100% !important; }
.object-contain { object-fit: contain !important; }

/* ── Shelf section divider lines ──────────────────────────── */
/* Force height/width so global resets can't zero them out */
.h-1        { height: 4px !important; }
.w-48       { width: 12rem !important; }
.rounded-full { border-radius: 9999px !important; }

/* Clean state must be fully hidden (not just opacity:0) when chaos is active,
   otherwise the blue divider bleeds through the red one */
#shelf-text-clean {
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#shelf-text-chaos {
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

/* ── Hero gradient overlay (bottom fade + top fade) ───────── */
/* Replaces Tailwind: bg-gradient-to-t from-navy-950 via-transparent to-navy-950/80 */
/* !important needed — generic .bg-gradient-to-t rule below uses background-image with undefined stops */
.bg-gradient-to-t.from-navy-950.to-navy-950\/80,
.bg-gradient-to-t.from-navy-950 {
    background: linear-gradient(
        to top,
        rgba(11, 17, 32, 1) 0%,
        rgba(11, 17, 32, 0) 40%,
        rgba(11, 17, 32, 0.8) 100%
    ) !important;
}

/* ── MRI Hero image — CSS fallback fade-in if JS is slow ──── */
#rmri-mri-img {
    opacity: 0;
    transition: opacity 1.5s ease-out;
    animation: rmri-img-fallback 0s 3s forwards; /* show after 3s if JS hasn't fired */
}
@keyframes rmri-img-fallback {
    to { opacity: 1; }
}

.w-1\/3   { width: 33.333333%; }
.w-2\/5   { width: 40%; }
.w-3\/5   { width: 60%; }
.w-4\/5   { width: 80%; }

.w-1\.5  { width: 0.375rem; }
.w-2     { width: 0.5rem; }
.w-3\.5  { width: 0.875rem; }
.w-4     { width: 1rem; }
.w-5     { width: 1.25rem; }
.w-6     { width: 1.5rem; }
.w-7     { width: 1.75rem; }
.w-8     { width: 2rem; }
.w-10    { width: 2.5rem; }
.w-14    { width: 3.5rem; }
.w-16    { width: 4rem; }
.w-20    { width: 5rem; }
.w-40    { width: 10rem; }

.h-2     { height: 0.5rem; }
.h-2\.5  { height: 0.625rem; }
.h-3     { height: 0.75rem; }
.h-6     { height: 1.5rem; }
.h-7     { height: 1.75rem; }
.h-10    { height: 2.5rem; }
.h-12    { height: 3rem; }
.h-16    { height: 4rem; }
.h-20    { height: 5rem; }
.h-40    { height: 10rem; }

.max-w-md  { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto   { margin-left: auto; margin-right: auto; }
.min-w-0   { min-width: 0; }

/* ── Spacing — Padding ─────────────────────────────────────── */
.p-1\.5 { padding: 0.375rem; }
.p-3    { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4    { padding: 1rem; }
.p-5    { padding: 1.25rem; }
.p-6    { padding: 1.5rem; }
.p-8    { padding: 2rem; }

.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2    { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3    { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4    { padding-left: 1rem; padding-right: 1rem; }
.px-5    { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6    { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8    { padding-left: 2rem; padding-right: 2rem; }
.px-10   { padding-left: 2.5rem; padding-right: 2.5rem; }

.py-1    { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-3    { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4    { padding-top: 1rem; padding-bottom: 1rem; }
.py-5    { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6    { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.pt-3  { padding-top: 0.75rem; }
.pt-4  { padding-top: 1rem; }
.pt-5  { padding-top: 1.25rem; }
.pt-20 { padding-top: 5rem; }

.pb-4  { padding-bottom: 1rem; }
.pb-6  { padding-bottom: 1.5rem; }

/* ── Spacing — Margin ──────────────────────────────────────── */
.m-0    { margin: 0; }
.-mt-20 { margin-top: -5rem; }
.mt-0   { margin-top: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1   { margin-top: 0.25rem; }
.mt-2   { margin-top: 0.5rem; }
.mt-3   { margin-top: 0.75rem; }
.mt-5   { margin-top: 1.25rem; }
.mt-8   { margin-top: 2rem; }
.mt-12  { margin-top: 3rem; }

.mb-1   { margin-bottom: 0.25rem; }
.mb-2   { margin-bottom: 0.5rem; }
.mb-3   { margin-bottom: 0.75rem; }
.mb-4   { margin-bottom: 1rem; }
.mb-5   { margin-bottom: 1.25rem; }
.mb-6   { margin-bottom: 1.5rem; }
.mb-8   { margin-bottom: 2rem; }
.mb-10  { margin-bottom: 2.5rem; }
.mb-12  { margin-bottom: 3rem; }
.mb-16  { margin-bottom: 4rem; }

.ml-3   { margin-left: 0.75rem; }

/* ── Space-Y (vertical gap between children) ───────────────── */
.space-y-0 > * + * { margin-top: 0; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ── Typography ────────────────────────────────────────────── */
.font-display  { font-family: 'Clash Display', sans-serif; }
.font-black    { font-weight: 900; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.font-normal   { font-weight: 400; }

.text-xs   { font-size: 0.75rem; line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem; line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl  { font-size: 3rem; line-height: 1; }
.text-6xl  { font-size: 3.75rem; line-height: 1; }
.text-7xl  { font-size: 4.5rem; line-height: 1; }

.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight   { letter-spacing: -0.025em; }
.tracking-wider   { letter-spacing: 0.05em; }
.tracking-widest  { letter-spacing: 0.1em; }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.uppercase { text-transform: uppercase; }
.italic    { font-style: italic; }
.truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Text Colors ───────────────────────────────────────────── */
.text-white         { color: #ffffff; }
.text-current       { color: currentColor; }
.text-text-primary  { color: var(--text-primary); }
.text-text-secondary { color: var(--text-secondary); }
.text-text-muted    { color: var(--text-muted); }
.text-brand-light   { color: var(--brand-light); }

.text-red-200  { color: #fecaca; }
.text-red-300  { color: #fca5a5; }
.text-red-500  { color: #ef4444; }
.text-red-600  { color: #dc2626; }
.text-red-700  { color: #b91c1c; }
.text-green-700 { color: #15803d; }
.text-amber-500 { color: #f59e0b; }
.text-blue-500  { color: #3b82f6; }

/* ── Background Colors ─────────────────────────────────────── */
.bg-navy-950 { background-color: var(--navy-950); }
.bg-white    { background-color: #ffffff; }

/* Specific gradient combos used in the template (no Tailwind gradient-stops system) */
.bg-gradient-to-b.from-white.to-transparent { background: linear-gradient(to bottom, #ffffff 0%, transparent 100%); }
.bg-gradient-to-t.from-white.to-transparent { background: linear-gradient(to top, #ffffff 0%, transparent 100%); }

/* ── Borders ───────────────────────────────────────────────── */
.border   { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-t-2 { border-top-width: 2px; border-top-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }

.rounded       { border-radius: 0.25rem; }
.rounded-full  { border-radius: 9999px; }
.rounded-xl    { border-radius: 0.75rem; }
.rounded-2xl   { border-radius: 1rem; }
.rounded-3xl   { border-radius: 1.5rem; }

.ring-1 { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* ── Opacity ───────────────────────────────────────────────── */
.opacity-0  { opacity: 0; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-65 { opacity: 0.65; }
.opacity-75 { opacity: 0.75; }
.opacity-85 { opacity: 0.85; }

/* ── Pointer Events ────────────────────────────────────────── */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ── Visibility ────────────────────────────────────────────── */
.invisible { visibility: hidden; }

/* ── Cursor ────────────────────────────────────────────────── */
.cursor-pointer    { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ── Shadow ────────────────────────────────────────────────── */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

/* ── Transitions ───────────────────────────────────────────── */
.transition-all      { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-colors   { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-opacity  { transition-property: opacity; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transform-duration: 150ms; }

.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.ease-out    { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* ── Transform ─────────────────────────────────────────────── */
.translate-y-1  { transform: translateY(0.25rem); }
.-translate-y-0\.5 { transform: translateY(-0.125rem); }

/* ── Blur ──────────────────────────────────────────────────── */
.blur-\[3px\]  { filter: blur(3px); }
.blur-\[20px\] { filter: blur(20px); }
.blur-\[64px\] { filter: blur(64px); }

/* ── Animation ─────────────────────────────────────────────── */
.animate-ping {
    animation: rmri-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes rmri-ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* RMRI-specific keyframes */
@keyframes rmri-canvas-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes rmri-spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes rmri-pulse-ring {
    0%, 100% { opacity: 0.18; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(1.05); }
}
@keyframes rmri-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ── Hover Utilities ───────────────────────────────────────── */
.hover\:brightness-110:hover { filter: brightness(1.1); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }

/* ── Custom Scroll ─────────────────────────────────────────── */
.custom-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 999px; }

/* ── Override global h2/h3 font-size inside RMRI page ─────── */
/* global.css sets h2/h3 { font-size: clamp(...) } — utility classes must win.
   WP body_class() adds .page-template-page-templates-page-rmri-php */
.page-template-page-templates-page-rmri-php h2,
.page-template-page-templates-page-rmri-php h3 {
    font-size: inherit;
    line-height: inherit;
}

/* ── RMRI Hero Section ─────────────────────────────────────── */
.rmri-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -5rem;
    padding-top: 5rem;
}

.rmri-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rmri-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    text-align: center;
}

.rmri-hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.rmri-hero-headline {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    opacity: 0;
}

.rmri-hero-subheadline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.625;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
}

.rmri-hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
}

/* ── RMRI Container ────────────────────────────────────────── */
.rmri-container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ── Shelf Section ─────────────────────────────────────────── */
.rmri-shelf-section {
    padding: var(--section-padding, 5rem 0);
    background: var(--color-report-bg);
}

.rmri-shelf-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.rmri-shelf-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Scanner Card ──────────────────────────────────────────── */
.rmri-scanner-card {
    position: relative;
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
    overflow: visible;
    background: var(--color-surface-solid);
    border: 1px solid rgba(var(--color-overlay), 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(var(--color-overlay), 0.06);
}

.rmri-scanner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    background: rgba(4, 101, 174, 0.06);
    border: 1px solid rgba(4, 101, 174, 0.12);
}

.rmri-scanner-icon-wrap {
    position: relative;
    width: 10rem;
    height: 10rem;
    margin: 0 auto 2.5rem;
}

.rmri-scanner-micro-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.rmri-scanner-micro-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* ── Forces Section + Force cards + CTA section ────────────
 * Legacy light-only rules removed 2026-04-22.
 * Replaced by dark-first dual-theme .rmri-forces-* + .rmri-final-*
 * + .rmri-scorecard + .rmri-checklist-* classes in global.css.
 * The legacy class names below were dead code (zero usages in
 * page-rmri.php after the Astro→WP port): .rmri-force-card,
 * .rmri-force-card-header, .rmri-force-icon, .rmri-force-desc,
 * .rmri-force-quote(+--green/orange/blue), .rmri-forces-grid,
 * .mcx-scroll-outer, .mcx-search-bar, .mcx-result-item,
 * .mcx-result-thumb, .pc-sellers-grid, .buybox-winner-card,
 * .buybox-competitor-item, .rmri-cta-section, .rmri-checklist-item,
 * .rmri-checklist-icon, .rmri-score-teaser, .rmri-cta-button.
 * ============================================================ */

/* Failed-rows CSV download link — shown in import success message when
   any rows were skipped or errored during the run. */
.rmri-upload__fails-link {
    color: #b45309;
    font-weight: 600;
    text-decoration: underline;
}
.rmri-upload__fails-link:hover {
    color: #78350f;
}
html.light .rmri-upload__fails-link {
    color: #92400e;
}

/* Keep .pc-seller sizing + mobile clamp — still used by live GSAP
   price-compression animation in page-rmri.php */
.pc-seller {
    border-radius: 0.875rem;
    padding: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    min-width: 0;
    overflow: hidden;
}
@media (max-width: 480px) {
    .pc-seller { padding: 0.5rem; }
    .pc-seller .pc-price,
    #price-sellers .text-base {
        font-size: 0.75rem !important;
    }
}

/* ── Dropdown ──────────────────────────────────────────────── */
.dd-option {
    width: 100%;
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
}

.dd-option:hover {
    background: rgba(var(--color-overlay), 0.06);
}

/* ── Scan button ───────────────────────────────────────────── */
.rmri-scan-btn {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    color: #ffffff;
    background: #0465ae;
    border: 1px solid rgba(43, 127, 255, 0.5);
    box-shadow: 0 4px 14px rgba(4, 101, 174, 0.3);
    transition: filter 0.3s, transform 0.3s;
    cursor: pointer;
}

.rmri-scan-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-0.125rem);
}

/* ── CRaP Warning ──────────────────────────────────────────── */
.crap-warning {
    margin-top: 1.25rem;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #7f1d1d, #991b1b, #b91c1c);
    border: 2px solid #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:hidden { display: none; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:mb-8 { margin-bottom: 2rem; }
    .sm\:mb-16 { margin-bottom: 4rem; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:p-12 { padding: 3rem; }
    .sm\:gap-12 { gap: 3rem; }
    .sm\:text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:space-y-24 > * + *   { margin-top: 6rem; }
    .sm\:h-\[480px\]          { height: 480px; }
    .sm\:text-\[40px\]        { font-size: 40px; line-height: 1.1; }
    .sm\:tracking-\[0\.22em\] { letter-spacing: 0.22em; }

    .rmri-hero-eyebrow {
        font-size: 1.125rem;
        letter-spacing: 0.22em;
        margin-bottom: 2rem;
    }
    .rmri-hero-headline { margin-bottom: 2rem; }
    .rmri-hero-subheadline { font-size: 1.125rem; margin-bottom: 4rem; }
    .rmri-container { padding-left: 1.5rem; padding-right: 1.5rem; }
    .rmri-scanner-card { padding: 3rem; }
    .mcx-scroll-outer { height: 480px; }
    .rmri-force-card { padding: 2rem; }
}

@media (min-width: 768px) {
    .md\:text-xl      { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-5xl     { font-size: 3rem; line-height: 1; }
    .md\:text-6xl     { font-size: 3.75rem; line-height: 1; }
    .md\:text-\[40px\] { font-size: 40px; line-height: 1.1; }
}

/* ── Arbitrary-value classes ───────────────────────────────── */
/* z-index */
.z-\[1\] { z-index: 1; }
.z-\[2\] { z-index: 2; }
.z-\[3\] { z-index: 3; }
.z-\[4\] { z-index: 4; }
.z-\[5\] { z-index: 5; }
.z-\[6\] { z-index: 6; }

/* widths */
.w-\[2px\]   { width: 2px; }
.w-\[7px\]   { width: 7px; }
.w-\[60px\]  { width: 60px; }
.w-\[80px\]  { width: 80px; }
.w-\[355px\] { width: 355px; }
.w-\[420px\] { width: 420px; }
.w-\[14px\]  { width: 14px; }

/* heights */
.h-\[2px\]   { height: 2px; }
.h-\[7px\]   { height: 7px; }
.h-\[355px\] { height: 355px; }
.h-\[420px\] { height: 420px; }
.h-\[420px\] { height: 420px; }
.h-\[480px\] { height: 480px; }
.max-h-\[320px\] { max-height: 320px; }

/* inset */
.inset-\[18px\] { top: 18px; right: 18px; bottom: 18px; left: 18px; }

/* padding */
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }

/* spacing */
.space-y-20 > * + * { margin-top: 5rem; }

/* order */
.order-1 { order: 1; }
.order-2 { order: 2; }

/* rounded arbitrary */
.rounded-\[10px\]   { border-radius: 10px; }
.rounded-\[14px\]   { border-radius: 14px; }
.rounded-\[20px\]   { border-radius: 20px; }
.rounded-\[2rem\]   { border-radius: 2rem; }
.rounded-r-\[10px\] { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }

/* text arbitrary */
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[56px\] { font-size: 56px; line-height: 1; }

/* tracking arbitrary */
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-\[0\.22em\] { letter-spacing: 0.22em; }

/* line-height arbitrary */
.leading-\[1\.1\] { line-height: 1.1; }

/* border-2 */
.border-2 { border-width: 2px; border-style: solid; }

/* opacity arbitrary */
.opacity-\[0\.03\] { opacity: 0.03; }
.opacity-70        { opacity: 0.7; }

/* mix-blend */
.mix-blend-screen { mix-blend-mode: screen; }

/* min-width */
.min-w-\[42px\] { min-width: 42px; }

/* ── Hex color utilities ───────────────────────────────────── */
/* Background colors */
.bg-\[\#00a63e\] { background-color: #00a63e; }
.bg-\[\#00c950\] { background-color: #00c950; }
.bg-\[\#1447e6\] { background-color: #1447e6; }
.bg-\[\#155dfc\] { background-color: #155dfc; }
.bg-\[\#2b7fff\] { background-color: #2b7fff; }
.bg-\[\#99a1af\] { background-color: #99a1af; }
.bg-\[\#d1d5dc\] { background-color: #d1d5dc; }
.bg-\[\#e5e7eb\] { background-color: #e5e7eb; }
.bg-\[\#eff6ff\] { background-color: #eff6ff; }
.bg-\[\#f0fdf4\] { background-color: #f0fdf4; }
.bg-\[\#f3f4f6\] { background-color: #f3f4f6; }
.bg-\[\#f9fafb\] { background-color: #f9fafb; }
.bg-\[\#fee2e2\] { background-color: #fee2e2; }
.bg-\[\#fff7ed\] { background-color: #fff7ed; }

/* Text colors */
.text-\[\#008236\] { color: #008236; }
.text-\[\#016630\] { color: #016630; }
.text-\[\#0a1628\] { color: #0a1628; }
.text-\[\#0f2847\] { color: #0f2847; }
.text-\[\#101828\] { color: #101828; }
.text-\[\#10b981\] { color: #10b981; }
.text-\[\#111827\] { color: #111827; }
.text-\[\#1447e6\] { color: #1447e6; }
.text-\[\#193cb8\] { color: #193cb8; }
.text-\[\#2563eb\] { color: #2563eb; }
.text-\[\#364153\] { color: #364153; }
.text-\[\#4a5565\] { color: #4a5565; }
.text-\[\#6a7282\] { color: #6a7282; }
.text-\[\#6b7280\] { color: #6b7280; }
.text-\[\#94a3b8\] { color: #94a3b8; }
.text-\[\#99a1af\] { color: #99a1af; }
.text-\[\#9f2d00\] { color: #9f2d00; }
.text-\[\#ca3500\] { color: #ca3500; }
.text-\[\#dc2626\] { color: #dc2626; }
.text-\[\#e7000b\] { color: #e7000b; }
.text-\[\#ef4444\] { color: #ef4444; }
.text-\[\#fb913c\] { color: #fb913c; }

/* Border colors */
.border-\[\#00a63e\] { border-color: #00a63e; }
.border-\[\#155dfc\] { border-color: #155dfc; }
.border-\[\#51a2ff\] { border-color: #51a2ff; }
.border-\[\#7bf1a8\] { border-color: #7bf1a8; }
.border-\[\#b9f8cf\] { border-color: #b9f8cf; }
.border-\[\#bedbff\] { border-color: #bedbff; }
.border-\[\#d1d5dc\] { border-color: #d1d5dc; }
.border-\[\#dbeafe\] { border-color: #dbeafe; }
.border-\[\#e5e7eb\] { border-color: #e5e7eb; }
.border-\[\#f3a56f\] { border-color: #f3a56f; }
.border-\[\#f54900\] { border-color: #f54900; }

@media (min-width: 1024px) {
    .lg\:px-8        { padding-left: 2rem; padding-right: 2rem; }
    .lg\:p-16        { padding: 4rem; }
    .lg\:gap-12      { gap: 3rem; }
    .lg\:order-1     { order: 1; }
    .lg\:order-2     { order: 2; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:text-7xl    { font-size: 4.5rem; line-height: 1; }

    .rmri-container    { padding-left: 2rem; padding-right: 2rem; }
    .rmri-forces-grid  { gap: 5rem; }
    .rmri-scanner-card { padding: 4rem; }
}

/* ============================================================
   Light-mode overrides (html.light)
   Mirrors pattern in report.css — uses Astro token alignment.
   Dark stays default; this block only kicks in on theme toggle.
   ============================================================ */
html.light .bg-gradient-to-t.from-navy-950.to-navy-950\/80,
html.light .bg-gradient-to-t.from-navy-950 {
    background: linear-gradient(
        to top,
        rgba(240, 247, 255, 1) 0%,
        rgba(240, 247, 255, 0) 40%,
        rgba(240, 247, 255, 0.8) 100%
    ) !important;
}

html.light .bg-navy-950 { background-color: #f0f7ff; }

html.light .ring-1 { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }

html.light .custom-scroll { scrollbar-color: rgba(0, 0, 0, 0.15) transparent; }
html.light .custom-scroll::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); }

html.light .rmri-shelf-container {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, #f8fafc, #f0f7ff);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

html.light .rmri-scanner-micro-stats { color: #64748b; }

html.light .crap-warning {
    background: linear-gradient(135deg, #fee2e2, #fecaca, #fca5a5);
    border: 2px solid #dc2626;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.2);
    color: #7f1d1d;
}
html.light .crap-warning * { color: #7f1d1d; }
