/* ════════════════════════════════════════════════════════════════════════════
   CCL MARKET REPORT v3 — Component Styles
   Requires: tokens.css + components.css loaded first.

   Layout classes (.rpt-header, .rpt-hero-*, .rpt-body, .rpt-snapshot-*,
   .rpt-section-*, .rpt-footer, .rpt-tabs, .rpt-tab, .rpt-tab-panel,
   .rpt-mini-card, .rpt-signal, .rpt-q-card, .rpt-q-number, .rpt-q-title,
   .rpt-q-body, .rpt-q-metric, .rpt-takeaway, etc.) live in components.css.

   This file contains ONLY market-report-specific styles:
     1. Overview section (takeaways, strategy, index grid, quadrant, actions)
     2. 5 Questions inner components (pricing tiers, zones, bars, wedges, chips)
     3. Archetypes cards (scroll, card, stats, badges)
     4. Plays Premium Playbook (tier strips, confidence rings, frameworks)
     5. Index deep-dive tabs (shared + per-index components)
     6. Animations
     7. Responsive overrides
     8. Print styles
   ════════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   1. OVERVIEW SECTION (Takeaways, Strategy, Index Grid, Quadrant, Actions)
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Section Variant: transparent --- */
.rpt-section.transparent {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.rpt-section-header.borderless {
    border-bottom: none;
    padding-bottom: 0;
}

/* --- Overview Grid Layout --- */
.rpt-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
}

.rpt-overview-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    padding: var(--s-5);
    transition: all var(--base);
}

.rpt-overview-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.rpt-overview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-3);
}

.rpt-overview-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rpt-overview-card-score {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 20px;
    color: var(--gray-900);
}

.rpt-overview-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--r-full);
    overflow: hidden;
    margin-bottom: var(--s-2);
}

.rpt-overview-bar-fill {
    height: 100%;
    border-radius: var(--r-full);
    background: var(--teal);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rpt-overview-bar-fill.high { background: var(--success); }
.rpt-overview-bar-fill.mid  { background: var(--teal); }
.rpt-overview-bar-fill.low  { background: var(--warning); }

.rpt-overview-card-interp {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* --- Snapshot Cards 4-column variant (concept uses 4, components.css uses 2) --- */
.rpt-snapshot-cards.four-col {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
}

/* --- Mini-card grade badge --- */
.rpt-mini-card-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
    color: white;
}

/* --- Report Badge (in header) --- */
.rpt-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-wash);
    padding: 4px 10px;
    border-radius: var(--r-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- Market Position Quadrant --- */
.rpt-quadrant-wrap {
    margin-top: var(--s-5);
}

.rpt-quadrant {
    width: 240px;
    height: 240px;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
}

.rpt-quadrant-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-align: center;
    padding: var(--s-3);
    border: 1px solid var(--gray-100);
    transition: all var(--base);
}

.rpt-quadrant-cell.active {
    background: var(--teal-wash);
    color: var(--teal);
    font-weight: 700;
}

.rpt-quadrant-axis-x {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    justify-content: space-between;
    width: 240px;
    margin-top: var(--s-1);
}

.rpt-quadrant-axis-y {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    height: 240px;
    margin-right: var(--s-2);
}

.rpt-quadrant-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--teal);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow-teal);
    z-index: 2;
}

.rpt-quadrant-legend {
    flex: 1;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.rpt-quadrant-legend strong {
    color: var(--gray-900);
}

/* --- Quadrant Panel (old layout, used in overview + pressure) --- */
.rpt-quadrant-panel {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--s-5);
}

.rpt-quadrant-visual {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.rpt-quadrant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--gray-200);
    border-radius: var(--r-md);
    overflow: hidden;
}

.rpt-quadrant-grid-cell {
    padding: var(--s-3);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--fast);
}

.rpt-quadrant-grid-cell.active {
    background: var(--teal-wash);
    box-shadow: inset 0 0 0 2px var(--teal);
}

.rpt-quadrant-grid-cell-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
}

.rpt-quadrant-grid-cell.active .rpt-quadrant-grid-cell-label {
    color: var(--teal);
    font-weight: 600;
}

.rpt-quadrant-result {
    padding: var(--s-4);
    border-radius: var(--r-md);
    background: var(--gray-50);
}

.rpt-quadrant-result.positive { border-left: 3px solid var(--success); }
.rpt-quadrant-result.accent   { border-left: 3px solid var(--teal); }
.rpt-quadrant-result.caution  { border-left: 3px solid var(--warning); }
.rpt-quadrant-result.negative { border-left: 3px solid var(--error); }

.rpt-quadrant-result-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-2);
}

.rpt-quadrant-result-header svg { width: 20px; height: 20px; }
.rpt-quadrant-result.positive .rpt-quadrant-result-header { color: var(--success); }
.rpt-quadrant-result.accent .rpt-quadrant-result-header   { color: var(--teal); }
.rpt-quadrant-result.caution .rpt-quadrant-result-header  { color: var(--warning); }
.rpt-quadrant-result.negative .rpt-quadrant-result-header { color: var(--error); }

.rpt-quadrant-result-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.rpt-quadrant-result-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.65;
    margin: 0 0 var(--s-3) 0;
}

/* --- Actions Block --- */
.rpt-actions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s-3);
}

.rpt-action-card {
    display: flex;
    flex-direction: column;
    padding: var(--s-4);
    background: var(--gray-50);
    border-radius: var(--r-md);
    position: relative;
    animation: fadeInUp 250ms ease backwards;
}

.rpt-action-number {
    position: absolute;
    top: var(--s-3);
    left: var(--s-3);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--r-full);
}

.rpt-action-body {
    margin-top: var(--s-6);
}

.rpt-action-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-900);
    margin: 0 0 var(--s-2) 0;
    line-height: 1.3;
}

.rpt-action-reason {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.65;
}

.rpt-action-timeline {
    margin-top: auto;
    padding-top: var(--s-3);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rpt-action-timeline.urgent { color: var(--error); }
.rpt-action-timeline.soon   { color: var(--warning); }
.rpt-action-timeline.later  { color: var(--success); }


/* ═══════════════════════════════════════════════════════════════════════════
   2. 5 QUESTIONS — Inner Components
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Question Zones (positive/negative callouts) --- */
.rpt-q-zone {
    margin-bottom: var(--s-3);
}

.rpt-q-zone-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: var(--s-2);
}

.rpt-q-zone-label.positive { color: var(--success); }
.rpt-q-zone-label.negative { color: var(--error); }

.rpt-q-zone-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* --- Bar Rows (horizontal bars inside Q cards) --- */
.rpt-q-bar-row {
    margin-bottom: var(--s-3);
}

.rpt-q-bar-label { color: var(--gray-600); }
.rpt-q-bar-value { font-family: var(--font-mono); font-weight: 600; }

.rpt-q-bar-track {
    height: 5px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    overflow: hidden;
    margin-bottom: var(--s-3);
}

.rpt-q-bar-fill {
    height: 100%;
    border-radius: var(--r-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Wedge Grid (Q5) --- */
.rpt-q-wedge-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--s-3);
}

.rpt-q-wedge-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px var(--s-3);
    font-size: 13px;
}

.rpt-q-wedge-key {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--teal);
}

.rpt-q-wedge-val { color: var(--gray-600); }

/* --- Archetype Chips (inside Q1) --- */
.rpt-q-chips {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
    margin-top: var(--s-3);
}

.rpt-q-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: var(--teal-wash);
    color: var(--teal);
    border: 1px solid var(--teal-subtle);
}

/* --- Pricing Tiers (inside Q2) --- */
.rpt-q-tiers {
    display: flex;
    gap: var(--s-2);
    margin-top: var(--s-3);
}

.rpt-q-tier {
    flex: 1;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    padding: var(--s-3);
    text-align: center;
}

.rpt-q-tier-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    margin-bottom: var(--s-1);
}

.rpt-q-tier-price {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
    color: var(--gray-900);
}

.rpt-q-tier.highlight,
.rpt-q-tier.active {
    border-color: var(--teal);
    background: var(--teal-wash);
}

.rpt-q-tier.highlight .rpt-q-tier-label,
.rpt-q-tier.active .rpt-q-tier-label {
    color: var(--teal);
}

/* --- Question Cards (old v2 class names — kept for JS compatibility) --- */
.question-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--base);
    animation: cardEntrance 400ms ease backwards;
}

.question-card:nth-child(1) { animation-delay: 100ms; }
.question-card:nth-child(2) { animation-delay: 150ms; }
.question-card:nth-child(3) { animation-delay: 200ms; }
.question-card:nth-child(4) { animation-delay: 250ms; }
.question-card:nth-child(5) { animation-delay: 300ms; }

.question-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.question-card-featured {
    grid-column: 1 / -1;
    border-color: var(--teal);
    border-width: 2px;
}

.question-header {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-5) var(--s-6);
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.question-number {
    width: 36px;
    height: 36px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.question-body {
    padding: var(--s-6);
}

.question-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 13px;
    font-weight: 500;
    color: var(--teal);
    text-decoration: none;
    margin-top: var(--s-4);
    transition: all var(--fast);
}

.question-link:hover { gap: var(--s-3); }
.question-link svg { width: 16px; height: 16px; }

/* Q1: Tenant Pool */
.rpt-tenant-pool-summary {
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}

.rpt-pool-total {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 600;
    color: var(--teal);
}

.rpt-pool-label {
    font-size: 15px;
    color: var(--gray-500);
}

.rpt-archetype-mini-cards {
    display: flex;
    gap: var(--s-3);
    overflow-x: auto;
    padding-bottom: var(--s-2);
}

.rpt-archetype-mini {
    flex: 0 0 auto;
    min-width: 120px;
    padding: var(--s-3);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    text-align: center;
}

.rpt-archetype-mini-icon {
    width: 32px;
    height: 32px;
    background: var(--teal-wash);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--s-2);
}

.rpt-archetype-mini-icon svg {
    width: 16px;
    height: 16px;
    color: var(--teal);
}

.rpt-archetype-mini-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--s-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpt-archetype-mini-pool {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-500);
}

/* Q2: Pricing Ladder */
.rpt-pricing-ladder {
    display: flex;
    gap: 2px;
    height: 48px;
    margin-bottom: var(--s-4);
    border-radius: var(--r-md);
    overflow: hidden;
}

.rpt-pricing-tier {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--s-2);
    background: var(--gray-100);
    transition: all var(--fast);
}

.rpt-pricing-tier.active {
    background: var(--teal);
    color: white;
}

.rpt-pricing-tier-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.rpt-pricing-tier-range {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
}

/* Q3: Sweet Spots */
.rpt-sweet-spots { margin-bottom: var(--s-4); }

.rpt-sweet-spot-header,
.rpt-avoid-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: var(--s-3);
}

.rpt-sweet-spot-header svg,
.rpt-avoid-header svg { width: 16px; height: 16px; }

.rpt-sweet-spot-header { color: var(--success); }

.rpt-sweet-spot-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.rpt-sweet-spot-item {
    padding: var(--s-3);
    background: var(--success-wash);
    border-radius: var(--r-md);
    font-size: 13px;
    color: var(--gray-900);
}

.rpt-sweet-spot-name { font-weight: 600; margin-bottom: var(--s-1); }
.rpt-sweet-spot-meta { font-size: 12px; color: var(--gray-500); }

.rpt-avoid-zones {
    padding: var(--s-3);
    background: var(--error-wash);
    border-radius: var(--r-md);
}

.rpt-avoid-header { color: var(--error); margin-bottom: var(--s-2); }
.rpt-avoid-text { font-size: 13px; color: var(--error); }

/* Q4: Risk */
.rpt-risk-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    margin-bottom: var(--s-4);
}

.rpt-risk-indicator { text-align: center; }

.rpt-risk-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: var(--s-2);
}

.rpt-risk-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--s-2);
}

.rpt-risk-bar {
    height: 6px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    overflow: hidden;
}

.rpt-risk-bar-fill {
    height: 100%;
    background: var(--teal);
    border-radius: var(--r-full);
    transition: width 0.4s ease;
}

.rpt-risk-note {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.65;
}

/* Q5: Wedge Highlight */
.rpt-wedge-highlight {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    color: white;
}

.rpt-wedge-title {
    font-size: 24px;
    margin-bottom: var(--s-4);
}

.rpt-wedge-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
}

.rpt-wedge-detail {
    padding: var(--s-3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--r-md);
}

.rpt-wedge-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-bottom: var(--s-1);
}

.rpt-wedge-value {
    font-size: 13px;
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. ARCHETYPES (Scroll Container, Cards, Stats, Badges)
   ═══════════════════════════════════════════════════════════════════════════ */
.rpt-archetypes-scroll {
    display: flex;
    gap: var(--s-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--s-3);
    -webkit-overflow-scrolling: touch;
}

.rpt-archetypes-scroll::-webkit-scrollbar { height: 4px; }
.rpt-archetypes-scroll::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 2px; }
.rpt-archetypes-scroll::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.rpt-archetype-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    transition: all var(--base);
    position: relative;
    animation: cardEntrance 400ms ease backwards;
}

.rpt-archetype-card:nth-child(1) { animation-delay: 50ms; }
.rpt-archetype-card:nth-child(2) { animation-delay: 100ms; }
.rpt-archetype-card:nth-child(3) { animation-delay: 150ms; }
.rpt-archetype-card:nth-child(4) { animation-delay: 200ms; }
.rpt-archetype-card:nth-child(5) { animation-delay: 250ms; }

.rpt-archetype-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.rpt-archetype-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--teal-wash);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--s-3);
}

.rpt-archetype-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--s-2);
}

.rpt-archetype-pool {
    position: absolute;
    top: var(--s-4);
    right: var(--s-4);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    color: white;
    background: var(--teal);
    padding: 3px 8px;
    border-radius: var(--r-full);
}

.rpt-archetype-pool.tooltip-trigger {
    cursor: help;
    position: absolute;
}

.rpt-archetype-pool.tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--gray-900);
    color: white;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    width: 240px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.rpt-archetype-pool.tooltip-trigger:hover::after {
    opacity: 1;
    visibility: visible;
}

.rpt-archetype-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
}

.rpt-archetype-stat {
    background: var(--gray-50);
    border-radius: var(--r-sm);
    padding: var(--s-2) var(--s-3);
}

.rpt-archetype-stat-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
}

.rpt-archetype-stat-value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-900);
}

.rpt-archetype-why {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
    font-style: italic;
}

/* Archetype badges */
.rpt-archetype-badges {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
}

.rpt-archetype-badge {
    font-size: 12px;
    font-weight: 500;
    padding: var(--s-1) var(--s-2);
    border-radius: var(--r-sm);
    background: var(--gray-100);
    color: var(--gray-500);
}

.rpt-archetype-badge-hub {
    background: var(--teal-wash);
    color: var(--teal);
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. PLAYS — Premium Playbook
   ═══════════════════════════════════════════════════════════════════════════ */
.rpt-plays-stack {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.rpt-play-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--base);
    position: relative;
    animation: cardEntrance 400ms ease backwards;
}

.rpt-play-card:nth-child(1) { animation-delay: 50ms; }
.rpt-play-card:nth-child(2) { animation-delay: 100ms; }
.rpt-play-card:nth-child(3) { animation-delay: 150ms; }
.rpt-play-card:nth-child(4) { animation-delay: 200ms; }
.rpt-play-card:nth-child(5) { animation-delay: 250ms; }

.rpt-play-card:hover { box-shadow: var(--shadow-md); }
.rpt-play-card.featured {
    border-color: var(--teal);
    border-width: 2px;
    box-shadow: var(--shadow-sm), 0 0 0 3px var(--teal-wash);
}

/* Tier strip */
.rpt-play-tier-strip {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: width var(--fast);
}

.rpt-play-card:hover .rpt-play-tier-strip { width: 6px; }
.rpt-play-tier-strip.premium   { background: #D4A253; }
.rpt-play-tier-strip.standard  { background: var(--teal); }
.rpt-play-tier-strip.workforce { background: var(--gray-400); }

/* Play header */
.rpt-play-header {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-5) var(--s-5) var(--s-5) var(--s-8);
    cursor: pointer;
    user-select: none;
    background: linear-gradient(to right, var(--gray-50), var(--white));
    transition: background var(--fast);
}

.rpt-play-header:hover {
    background: linear-gradient(to right, var(--gray-100), var(--gray-50));
}

.rpt-play-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-900);
    color: white;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpt-play-info { flex: 1; }

.rpt-play-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--s-1);
}

.rpt-play-meta {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.rpt-play-tier-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rpt-play-tier-badge.premium   { background: rgba(212, 162, 83, 0.12); color: #B8860B; }
.rpt-play-tier-badge.standard  { background: var(--teal-wash); color: var(--teal); }
.rpt-play-tier-badge.workforce { background: var(--gray-100); color: var(--gray-500); }

.rpt-play-boost-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: var(--s-1) var(--s-2);
    background: var(--teal);
    color: white;
    border-radius: var(--r-sm);
}

.rpt-play-standalone-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: var(--s-1) var(--s-2);
    background: var(--teal-subtle);
    color: var(--teal-dark);
    border: 1.5px solid var(--teal);
    border-radius: var(--r-sm);
}

/* Tags */
.rpt-play-tags {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-2);
    flex-wrap: wrap;
}

.rpt-play-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    font-size: 12px;
    font-weight: 500;
    padding: 2px var(--s-2);
    border-radius: var(--r-sm);
    background: var(--gray-100);
    color: var(--gray-500);
}

.rpt-play-tag svg { width: 12px; height: 12px; }
.rpt-play-tag--tier   { font-weight: 600; }
.rpt-play-tag--hub    { background: var(--gray-100); color: var(--gray-400); }
.rpt-play-tag--niche  { background: var(--teal-subtle); color: var(--teal); }

/* Confidence ring */
.rpt-play-confidence {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    position: relative;
}

.rpt-play-confidence svg {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}

.rpt-play-confidence-track  { fill: none; stroke: var(--gray-100); stroke-width: 3; }
.rpt-play-confidence-fill   { fill: none; stroke-width: 3; stroke-linecap: round; }
.rpt-play-confidence-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    color: var(--gray-900);
}

/* Play confidence ring (larger — old v2 style) */
.rpt-play-confidence-ring {
    position: relative;
    width: 48px;
    height: 48px;
}

.rpt-play-confidence-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rpt-play-confidence-ring--high .rpt-play-confidence-fill { stroke: var(--success); }
.rpt-play-confidence-ring--medium .rpt-play-confidence-fill { stroke: var(--warning); }
.rpt-play-confidence-ring--low .rpt-play-confidence-fill { stroke: var(--error); }

/* Preview row */
.rpt-play-preview {
    display: flex;
    align-items: center;
    gap: var(--s-6);
    padding: var(--s-3) var(--s-6) var(--s-3) var(--s-8);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    transition: all var(--fast);
}

.rpt-play-card.expanded .rpt-play-preview { display: none; }

.rpt-play-preview-item {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 13px;
    color: var(--gray-500);
}

.rpt-play-preview-item svg { width: 14px; height: 14px; color: var(--gray-400); }

/* Expandable body */
.rpt-play-body {
    display: none;
    padding: 0 var(--s-8) var(--s-6);
    border-top: 1px solid var(--gray-100);
}

.rpt-play-card.expanded .rpt-play-body {
    display: block;
    padding-top: var(--s-5);
}

.rpt-play-expand-icon {
    color: var(--gray-400);
    transition: transform var(--fast);
}

.rpt-play-card.expanded .rpt-play-expand-icon {
    transform: rotate(180deg);
}

/* Framework grid */
.rpt-play-framework {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}

.rpt-play-framework-cell {
    background: var(--gray-50);
    border-radius: var(--r-md);
    padding: var(--s-4);
}

.rpt-play-framework-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--teal);
    margin-bottom: var(--s-2);
}

.rpt-play-framework-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Framework grid (v2 style) */
.rpt-play-framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-3);
}

.rpt-play-framework-item {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-4);
    background: var(--gray-50);
    border-radius: var(--r-md);
    border: 1px solid var(--gray-100);
    transition: all var(--fast);
}

.rpt-play-framework-item:hover {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

.rpt-play-framework-icon {
    width: 32px;
    height: 32px;
    background: var(--teal-wash);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpt-play-framework-icon svg { width: 16px; height: 16px; color: var(--teal); }

/* Promises */
.rpt-play-promises {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
}

.rpt-play-promise {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: var(--success-wash);
    color: var(--success);
    border-left: 3px solid var(--success);
}

.rpt-play-promise-chip {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    background: var(--success-wash);
    border-radius: var(--r-md);
    border-left: 3px solid var(--success);
}

.rpt-play-promise-chip svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
.rpt-play-promise-chip span { font-size: 13px; color: var(--gray-900); line-height: 1.3; }

/* Falsify box */
.rpt-play-falsify {
    background: var(--warning-wash);
    border-left: 3px solid var(--warning);
    border-radius: var(--r-md);
    padding: var(--s-4);
}

.rpt-play-falsify-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #D97706;
    margin-bottom: var(--s-2);
}

.rpt-play-falsify-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.rpt-play-falsify-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.rpt-play-falsify-list li {
    font-size: 13px;
    color: var(--gray-500);
    padding-left: var(--s-4);
    position: relative;
}

.rpt-play-falsify-list li::before {
    content: '\2022';
    position: absolute;
    left: var(--s-1);
    color: var(--warning);
}

/* Play section headers (inside expanded body) */
.rpt-play-section { margin-bottom: var(--s-6); }
.rpt-play-section:last-child { margin-bottom: 0; }

.rpt-play-section-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: var(--s-4);
}

.rpt-play-section-header svg { width: 14px; height: 14px; color: var(--teal); }

/* Empty state */
.rpt-plays-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--s-12) var(--s-6);
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
    border-radius: var(--r-xl);
    text-align: center;
}

.rpt-plays-empty svg { width: 48px; height: 48px; color: var(--gray-400); margin-bottom: var(--s-4); }
.rpt-plays-empty p { font-size: 15px; color: var(--gray-500); margin: 0; }


/* ═══════════════════════════════════════════════════════════════════════════
   5. INDEX DEEP-DIVE — Shared Components
   ═══════════════════════════════════════════════════════════════════════════ */

/* Index description */
.rpt-index-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--s-5);
}

/* Index mini-cards grid */
.rpt-index-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}

.rpt-index-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    padding: var(--s-4);
    position: relative;
}

.rpt-index-card-letter {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: var(--s-2);
}

.rpt-index-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--s-3);
}

.rpt-index-card-title.tooltip-trigger {
    position: relative;
    cursor: help;
}

.rpt-index-card-title.tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    background: var(--gray-900);
    color: white;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    width: 260px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.rpt-index-card-title.tooltip-trigger:hover::after {
    opacity: 1;
    visibility: visible;
}

.rpt-index-card-score {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 24px;
    color: var(--gray-900);
    margin-bottom: var(--s-2);
}

.rpt-index-card-metric {
    display: flex;
    justify-content: space-between;
    padding: var(--s-1) 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 12px;
}

.rpt-index-card-metric:last-child { border-bottom: none; }
.rpt-index-card-metric-label { color: var(--gray-500); }
.rpt-index-card-metric-value { font-family: var(--font-mono); font-weight: 600; color: var(--gray-800); }

.rpt-index-card-implication {
    margin-top: var(--s-3);
    padding: var(--s-3);
    background: var(--gray-50);
    border-radius: var(--r-md);
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
    font-style: italic;
    border-left: 3px solid var(--teal);
}

/* Score band badge */
.rpt-index-card-score-band {
    font-size: 12px;
    font-weight: 500;
    padding: var(--s-1) var(--s-2);
    border-radius: var(--r-sm);
    background: var(--success-wash);
    color: var(--success);
}

.rpt-index-card-score-band.medium { background: var(--warning-wash); color: var(--warning); }
.rpt-index-card-score-band.weak,
.rpt-index-card-score-band.low    { background: var(--error-wash); color: var(--error); }

/* Metric tags */
.rpt-index-metric-tag {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: var(--r-sm);
    margin-left: var(--s-2);
}

.rpt-index-metric-tag.strong { background: var(--success-wash); color: var(--success); }
.rpt-index-metric-tag.medium { background: var(--warning-wash); color: var(--warning); }
.rpt-index-metric-tag.weak   { background: var(--gray-100); color: var(--gray-400); }

/* Signal rows */
.rpt-index-signal {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--gray-100);
}

.rpt-index-signal:last-child { border-bottom: none; }

.rpt-index-signal-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    min-width: 120px;
}

.rpt-index-signal-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    overflow: hidden;
    position: relative;
}

.rpt-index-signal-fill {
    height: 100%;
    border-radius: var(--r-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rpt-index-signal-value {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-900);
    min-width: 40px;
    text-align: right;
}

/* Interpretation callout */
.rpt-index-callout {
    background: var(--teal-wash);
    border-left: 3px solid var(--teal);
    border-radius: var(--r-md);
    padding: var(--s-4) var(--s-5);
    margin: var(--s-5) 0;
}

.rpt-index-callout-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--teal);
    margin-bottom: var(--s-2);
}

.rpt-index-callout-text {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Next moves */
.rpt-index-moves { margin-top: var(--s-5); }

.rpt-index-moves-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--s-3);
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.rpt-index-moves-title svg { width: 16px; height: 16px; color: var(--teal); }

.rpt-index-move {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-2) 0;
}

.rpt-index-move-icon {
    width: 20px;
    height: 20px;
    border-radius: var(--r-full);
    background: var(--teal-wash);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.rpt-index-move-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Next moves (v2-style list) */
.rpt-index-moves-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.rpt-index-next-move {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-3);
    background: var(--gray-50);
    border-radius: var(--r-md);
    font-size: 13px;
    color: var(--gray-500);
}

.rpt-index-next-move-icon {
    width: 28px;
    height: 28px;
    background: var(--teal-wash);
    color: var(--teal);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpt-index-next-move-icon svg { width: 14px; height: 14px; }

/* Next moves dark variant */
.rpt-index-moves.dark {
    background: var(--gray-900);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    margin-bottom: var(--s-6);
}

.rpt-index-moves.dark .rpt-index-moves-title { color: var(--warning); }
.rpt-index-moves.dark .rpt-index-moves-title svg { color: var(--warning); }
.rpt-index-moves.dark .rpt-index-next-move { background: rgba(255, 255, 255, 0.08); }
.rpt-index-moves.dark .rpt-index-next-move span { color: var(--white); }
.rpt-index-moves.dark .rpt-index-next-move-icon { background: rgba(255, 255, 255, 0.1); }
.rpt-index-moves.dark .rpt-index-next-move-icon svg { color: var(--warning); }

/* Score display (large) */
.rpt-index-score-display {
    display: flex;
    align-items: center;
    gap: var(--s-6);
    padding: var(--s-6);
    background: var(--gray-50);
    border-radius: var(--r-lg);
}

.rpt-index-score-big {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 600;
    color: var(--teal);
}

/* Dual score boxes */
.rpt-index-dual-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
    margin-bottom: var(--s-6);
}

.rpt-index-score-box {
    background: var(--gray-50);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.rpt-index-score-box-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
    font-size: 13px;
    color: var(--gray-500);
}

.rpt-index-score-box-header svg { width: 16px; height: 16px; }

.rpt-index-score-box-value {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: var(--s-2);
}

.rpt-index-score-box-label {
    font-size: 13px;
    font-weight: 500;
    padding: var(--s-1) var(--s-3);
    border-radius: var(--r-full);
    display: inline-block;
}

.rpt-index-score-box-meaning {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: var(--s-2);
}

/* Score box variants */
.rpt-index-score-box.flow .rpt-index-score-box-value  { color: var(--success); }
.rpt-index-score-box.churn .rpt-index-score-box-value { color: var(--warning); }

/* Score box label variants */
.rpt-index-score-box-label.strong,
.rpt-index-score-box-label.low,
.rpt-index-score-box-label.few,
.rpt-index-score-box-label.excellent { background: var(--success-wash); color: var(--success); }

.rpt-index-score-box-label.steady,
.rpt-index-score-box-label.good,
.rpt-index-score-box-label.mixed { background: var(--teal-wash); color: var(--teal); }

.rpt-index-score-box-label.slow,
.rpt-index-score-box-label.medium,
.rpt-index-score-box-label.moderate,
.rpt-index-score-box-label.dominated { background: var(--warning-wash); color: var(--warning); }

.rpt-index-score-box-label.high,
.rpt-index-score-box-label.weak { background: var(--error-wash); color: var(--error); }

/* Score value row with /100 */
.rpt-index-score-value-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--s-1);
}

.rpt-index-score-max {
    font-size: 18px;
    color: var(--gray-500);
    font-weight: 400;
}

/* Confidence badge */
.rpt-index-confidence {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    background: var(--success-wash);
    color: var(--success);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
}

.rpt-index-confidence.medium { background: var(--warning-wash); color: var(--warning); }
.rpt-index-confidence.low    { background: var(--error-wash); color: var(--error); }
.rpt-index-confidence svg    { width: 14px; height: 14px; }

/* Info tooltips */
.rpt-info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: var(--s-1);
    cursor: help;
}

.rpt-info-tooltip svg { width: 14px; height: 14px; color: var(--gray-400); transition: color var(--fast); }
.rpt-info-tooltip:hover svg { color: var(--teal); }

.rpt-info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: var(--s-2);
    padding: var(--s-3) var(--s-4);
    background: var(--gray-900);
    color: white;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    white-space: normal;
    width: max-content;
    max-width: 240px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--fast);
    text-transform: none;
    letter-spacing: normal;
    z-index: 100;
    pointer-events: none;
}

.rpt-info-tooltip:hover::after { opacity: 1; visibility: visible; }

/* Source footer */
.rpt-index-source-footer {
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    border-top: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-400);
}

/* No data state */
.rpt-index-no-data {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0;
    padding: var(--s-3);
    background: var(--gray-100);
    border-radius: var(--r-md);
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════════════════════
   5a. INDEX 1 — Demand (Pillars, Influence, Renter Chips, Top Drivers)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Industry pillars */
.rpt-index-pillars {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.rpt-index-pillar {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-3);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
}

.rpt-index-pillar-icon {
    width: 32px;
    height: 32px;
    background: var(--teal-wash);
    color: var(--teal);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpt-index-pillar-icon svg { width: 16px; height: 16px; }

.rpt-index-pillar-name { font-size: 13px; font-weight: 500; color: var(--gray-900); }
.rpt-index-pillar-jobs { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); }

.rpt-index-pillar-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--r-full);
    background: var(--teal-wash);
    color: var(--teal);
    font-weight: 500;
}

.rpt-index-pillar-badge.hub { background: var(--success-wash); color: var(--success); }

/* LQ Badges */
.rpt-index-lq-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-full);
    margin-top: var(--s-2);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.rpt-index-lq-badge.regional-hub       { background: var(--success-wash); color: var(--success); }
.rpt-index-lq-badge.local-concentration { background: var(--teal-wash); color: var(--teal); }

/* Influence bars */
.rpt-index-influence-section {
    margin-top: var(--s-5);
    padding: var(--s-4);
    background: var(--gray-50);
    border-radius: var(--r-lg);
}

.rpt-index-influence-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 var(--s-4) 0;
}

.rpt-index-influence-row {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-3);
}

.rpt-index-influence-label {
    width: 120px;
    font-size: 12px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.rpt-index-influence-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.rpt-influence-bar {
    width: 24px;
    height: 8px;
    background: var(--gray-200);
    border-radius: 2px;
    transition: background var(--base);
}

.rpt-influence-bar.filled.high   { background: var(--success); }
.rpt-influence-bar.filled.medium { background: var(--warning); }
.rpt-influence-bar.filled.low    { background: var(--teal); }

.rpt-index-influence-amount {
    min-width: 60px;
    font-size: 12px;
    color: var(--gray-400);
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Renter chips */
.rpt-index-renter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-top: var(--s-4);
}

.rpt-index-renter-chip {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-3) var(--s-4);
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.rpt-index-renter-chip-icon {
    width: 32px;
    height: 32px;
    background: var(--teal-wash);
    color: var(--teal);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpt-index-renter-chip-icon svg { width: 16px; height: 16px; }
.rpt-index-renter-chip-name { font-size: 13px; font-weight: 500; color: var(--gray-900); }
.rpt-index-renter-chip-pool { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); }

.rpt-index-renter-chip-confidence {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: var(--r-sm);
    text-transform: uppercase;
}

.rpt-index-renter-chip-confidence.high   { background: var(--success-wash); color: var(--success); }
.rpt-index-renter-chip-confidence.medium { background: var(--warning-wash); color: var(--warning); }

/* Top drivers */
.rpt-index-top-drivers {
    margin-top: var(--s-6);
    padding: var(--s-5);
    background: var(--gray-50);
    border-radius: var(--r-lg);
    border: 1px solid var(--gray-200);
}

.rpt-driver-item {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-3);
    background: var(--white);
    border-radius: var(--r-md);
    border: 1px solid var(--gray-100);
    transition: all var(--base);
    margin-bottom: var(--s-3);
}

.rpt-driver-item:last-child { margin-bottom: 0; }
.rpt-driver-item:hover { border-color: var(--teal-subtle); box-shadow: var(--shadow-sm); }

.rpt-driver-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-wash);
    border-radius: var(--r-md);
    flex-shrink: 0;
}

.rpt-driver-icon svg { width: 18px; height: 18px; color: var(--teal); }

.rpt-driver-text { flex: 1; font-size: 13px; line-height: 1.3; }
.rpt-driver-text strong { color: var(--gray-900); font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════════════════
   5b. INDEX 2 — Pricing (Ladder, Tiers, Reality Check, Wage Anchors)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Pricing ladder grid */
.rpt-pricing-ladder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    margin: var(--s-6) 0;
}

.rpt-pricing-tier-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-5) var(--s-4);
    text-align: center;
    transition: all var(--base);
    position: relative;
}

.rpt-pricing-tier-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.rpt-pricing-tier-card.sweet-spot {
    border-color: var(--teal);
    background: linear-gradient(180deg, var(--teal-wash) 0%, var(--white) 100%);
    box-shadow: 0 0 0 1px var(--teal-subtle), var(--shadow-sm);
}

.rpt-tier-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: var(--s-3);
}

.rpt-pricing-tier-card.sweet-spot .rpt-tier-header { color: var(--teal); }

.rpt-tier-price-range {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--s-3);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.rpt-pricing-tier-card.sweet-spot .rpt-tier-price-range { color: var(--teal); }

.rpt-tier-pool-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    padding: var(--s-1) var(--s-3);
    background: var(--gray-100);
    border-radius: var(--r-full);
}

.rpt-tier-pool-badge.sweet-spot {
    background: var(--teal);
    color: white;
    font-weight: 600;
}

/* Pricing stats */
.rpt-pricing-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
    margin: var(--s-6) 0;
}

.rpt-pricing-stat-box {
    background: var(--gray-50);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    border-left: 4px solid var(--teal);
}

.rpt-pricing-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--warning);
    margin-bottom: var(--s-2);
}

.rpt-pricing-stat-value {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: var(--s-2);
}

.rpt-pricing-stat-context { font-size: 13px; color: var(--gray-500); }

/* Reality check */
.rpt-market-reality {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    margin: var(--s-6) 0;
    border-left: 4px solid var(--teal);
}

.rpt-reality-row {
    display: grid;
    grid-template-columns: 120px 100px auto 1fr;
    gap: var(--s-3);
    align-items: center;
    margin-bottom: var(--s-4);
}

.rpt-reality-row:last-child { margin-bottom: 0; }

.rpt-reality-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--gray-500);
}

.rpt-reality-value {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.rpt-reality-diff {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--r-sm);
    margin-left: var(--s-2);
}

.rpt-reality-diff.higher  { background: var(--warning-wash); color: var(--warning); }
.rpt-reality-diff.lower   { background: var(--success-wash); color: var(--success); }
.rpt-reality-diff.aligned { background: var(--gray-100); color: var(--gray-500); }

.rpt-reality-bar-container {
    height: 8px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    overflow: hidden;
}

.rpt-reality-bar {
    height: 100%;
    border-radius: var(--r-full);
    transition: width 0.4s ease;
}

.rpt-reality-insight {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    margin-top: var(--s-5);
    padding: var(--s-4);
    background: linear-gradient(135deg, var(--teal-wash) 0%, var(--gray-50) 100%);
    border-radius: var(--r-md);
    border-left: 3px solid var(--teal);
}

.rpt-reality-insight svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.rpt-reality-insight span { font-size: 13px; color: var(--gray-900); line-height: 1.65; }
.rpt-reality-insight strong { color: var(--gray-900); font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════════════════
   5c. INDEX 3 — Pressure (Mode Strip/Badge, Signals, Dual Pressure)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Mode badge */
.rpt-index-mode-badge {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-4);
    background: var(--gray-50);
    border-radius: var(--r-lg);
    border-left: 4px solid var(--warning);
}

.rpt-index-mode-badge.need-led   { border-left-color: #a85c41; background: #faf3ef; }
.rpt-index-mode-badge.choice-led { border-left-color: var(--success); background: var(--success-wash); }

.rpt-index-mode-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.rpt-index-mode-badge.need-led svg   { color: #a85c41; }
.rpt-index-mode-badge.choice-led svg { color: var(--success); }

.rpt-index-mode-badge-label { display: block; font-size: 15px; font-weight: 600; color: var(--gray-900); }
.rpt-index-mode-badge-meaning { display: block; font-size: 12px; color: var(--gray-500); margin-top: var(--s-1); }

/* Enhanced signal rows */
.rpt-index-signal-row {
    background: var(--gray-50);
    border-radius: var(--r-md);
    padding: var(--s-4);
    margin-bottom: var(--s-4);
}

.rpt-index-signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-2);
}

.rpt-index-signal-note {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--r-sm);
    margin-left: var(--s-2);
    white-space: nowrap;
    flex-shrink: 0;
}

.rpt-index-signal-note.high     { background: #faf3ef; color: #a85c41; }
.rpt-index-signal-note.elevated { background: var(--warning-wash); color: var(--warning); }
.rpt-index-signal-note.moderate,
.rpt-index-signal-note.balanced { background: var(--gray-100); color: var(--gray-500); }
.rpt-index-signal-note.tight    { background: var(--success-wash); color: var(--success); }

/* US Average marker */
.rpt-index-signal-us-avg {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-400);
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
}

.rpt-us-avg-badge {
    display: inline-block;
    padding: var(--s-1) var(--s-2);
    background: var(--gray-100);
    border-radius: var(--r-sm);
    font-size: 10px;
    color: var(--gray-500);
    white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════════════════
   5d. INDEX 4 — Flow & Churn (Tempo, Matrix, Playbook, Drivers)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tempo badge */
.rpt-index-tempo-badge {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    background: linear-gradient(135deg, var(--teal-wash) 0%, var(--gray-50) 100%);
    border: 1px solid var(--teal);
    border-radius: var(--r-lg);
    padding: var(--s-4) var(--s-5);
    margin-bottom: var(--s-6);
}

.rpt-index-tempo-badge svg { width: 24px; height: 24px; color: var(--teal); }
.rpt-index-tempo-label { display: block; font-size: 18px; font-weight: 600; color: var(--gray-900); }
.rpt-index-tempo-case { display: block; font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.025em; }

.rpt-index-tempo-badge.high-tempo { border-color: var(--warning); background: linear-gradient(135deg, var(--warning-wash) 0%, var(--gray-50) 100%); }
.rpt-index-tempo-badge.high-tempo svg { color: var(--warning); }
.rpt-index-tempo-badge.efficient, .rpt-index-tempo-badge.stable { border-color: var(--success); background: linear-gradient(135deg, var(--success-wash) 0%, var(--gray-50) 100%); }
.rpt-index-tempo-badge.efficient svg, .rpt-index-tempo-badge.stable svg { color: var(--success); }
.rpt-index-tempo-badge.challenging { border-color: var(--error); background: linear-gradient(135deg, var(--error-wash) 0%, var(--gray-50) 100%); }
.rpt-index-tempo-badge.challenging svg { color: var(--error); }

/* 9-case matrix */
.rpt-flow-matrix {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--white);
    margin-bottom: var(--s-6);
}

.rpt-matrix-header {
    display: grid;
    grid-template-columns: 80px repeat(3, 1fr);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.rpt-matrix-header span {
    padding: var(--s-3) var(--s-4);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-align: center;
}

.rpt-matrix-header span:first-child { text-align: left; }

.rpt-matrix-row {
    display: grid;
    grid-template-columns: 80px repeat(3, 1fr);
    border-bottom: 1px solid var(--gray-100);
}

.rpt-matrix-row:last-child { border-bottom: none; }

.rpt-matrix-row-label {
    padding: var(--s-4);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-900);
    background: var(--gray-50);
    display: flex;
    align-items: center;
}

.rpt-matrix-cell {
    padding: var(--s-4);
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    border-left: 1px solid var(--gray-100);
}

.rpt-matrix-cell.active {
    background: var(--teal);
    color: white;
    font-weight: 600;
}

/* Operational playbook */
.rpt-index-playbook {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    margin-bottom: var(--s-6);
}

.rpt-index-playbook-title {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--s-4);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.rpt-index-playbook-title svg { width: 16px; height: 16px; color: var(--teal); }

.rpt-index-playbook-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
}

.rpt-index-playbook-item {
    background: var(--white);
    border-radius: var(--r-md);
    padding: var(--s-3) var(--s-4);
    text-align: center;
}

.rpt-index-playbook-item.full-width { grid-column: 1 / -1; text-align: left; }
.rpt-index-playbook-label { display: block; font-size: 12px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.025em; margin-bottom: var(--s-1); }
.rpt-index-playbook-value { display: block; font-size: 13px; font-weight: 500; color: var(--gray-900); }

/* Flow/churn driver rows */
.rpt-flow-driver-row,
.rpt-churn-driver-row {
    display: grid;
    grid-template-columns: 140px 80px 1fr;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--gray-100);
}

.rpt-flow-driver-row:last-child,
.rpt-churn-driver-row:last-child { border-bottom: none; }

.rpt-flow-driver-label,
.rpt-churn-driver-label { font-size: 13px; color: var(--gray-500); }

.rpt-flow-driver-value,
.rpt-churn-driver-value { font-size: 15px; font-weight: 600; color: var(--gray-900); font-family: var(--font-mono); }

.rpt-flow-driver-note,
.rpt-churn-driver-note {
    font-size: 12px;
    padding: var(--s-1) var(--s-3);
    border-radius: var(--r-sm);
    text-align: right;
    white-space: nowrap;
}

.rpt-flow-driver-note.high, .rpt-churn-driver-note.high   { background: #faf3ef; color: #a85c41; }
.rpt-flow-driver-note.moderate, .rpt-churn-driver-note.moderate { background: var(--warning-wash); color: var(--warning); }
.rpt-flow-driver-note.low, .rpt-flow-driver-note.balanced, .rpt-churn-driver-note.low { background: var(--success-wash); color: var(--success); }

/* Flow anchor chips */
.rpt-flow-anchor-chip {
    display: inline-block;
    font-size: 12px;
    padding: var(--s-1) var(--s-3);
    background: var(--teal-wash);
    color: var(--teal);
    border: 1px solid var(--teal-subtle);
    border-radius: var(--r-full);
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════════════════
   5e. INDEX 5 — Placement (Badge, Hubs, ZIPs, Commute, Siting)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Placement badge */
.rpt-index-placement-badge {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    background: linear-gradient(135deg, var(--teal-wash) 0%, var(--gray-50) 100%);
    border: 1px solid var(--teal);
    border-radius: var(--r-lg);
    padding: var(--s-4) var(--s-5);
    margin-bottom: var(--s-6);
}

.rpt-index-placement-badge svg { width: 24px; height: 24px; color: var(--teal); }
.rpt-index-placement-label { display: block; font-size: 18px; font-weight: 600; color: var(--gray-900); }
.rpt-index-placement-hint { display: block; font-size: 12px; color: var(--gray-500); }

.rpt-index-placement-badge.hub-adjacent { border-color: var(--success); background: linear-gradient(135deg, var(--success-wash) 0%, var(--gray-50) 100%); }
.rpt-index-placement-badge.hub-adjacent svg { color: var(--success); }
.rpt-index-placement-badge.location-challenged { border-color: var(--warning); background: linear-gradient(135deg, var(--warning-wash) 0%, var(--gray-50) 100%); }
.rpt-index-placement-badge.location-challenged svg { color: var(--warning); }

/* Hub cards */
.rpt-index-hub-cards { display: flex; flex-direction: column; gap: var(--s-3); }

.rpt-index-hub-card {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    padding: var(--s-4);
    transition: all var(--fast);
}

.rpt-index-hub-card.primary { border-color: var(--teal); background: var(--teal-wash); }
.rpt-index-hub-card:hover { border-color: var(--teal); }

.rpt-index-hub-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpt-index-hub-card.primary .rpt-index-hub-icon { background: var(--teal); color: white; }
.rpt-index-hub-icon svg { width: 20px; height: 20px; color: var(--teal); }
.rpt-index-hub-card.primary .rpt-index-hub-icon svg { color: white; }

.rpt-index-hub-name { font-size: 13px; font-weight: 600; color: var(--gray-900); margin-bottom: var(--s-1); }
.rpt-index-hub-meta { display: flex; align-items: center; gap: var(--s-3); font-size: 12px; color: var(--gray-500); }

.rpt-index-hub-distance { text-align: right; flex-shrink: 0; }
.rpt-index-hub-miles { display: block; font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--gray-900); }

.rpt-index-hub-commute {
    display: block;
    font-size: 12px;
    padding: var(--s-1) var(--s-2);
    border-radius: var(--r-sm);
}

.rpt-index-hub-commute.excellent { background: var(--success-wash); color: var(--success); }
.rpt-index-hub-commute.good      { background: var(--teal-wash); color: var(--teal); }
.rpt-index-hub-commute.moderate  { background: var(--warning-wash); color: var(--warning); }
.rpt-index-hub-commute.weak      { background: var(--error-wash); color: var(--error); }

/* ZIP ranking cards */
.rpt-index-zip-rankings { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4); }

.rpt-index-zip-card {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-4);
    background: var(--gray-50);
    border-radius: var(--r-md);
    border: 1px solid var(--gray-200);
}

.rpt-index-zip-card.top { border-color: var(--teal); background: var(--teal-wash); }

.rpt-index-zip-rank { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--teal); width: 32px; }
.rpt-index-zip-code { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--gray-900); }
.rpt-index-zip-score { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--teal); }

/* Siting box */
.rpt-placement-siting-box {
    display: flex;
    align-items: flex-start;
    gap: var(--s-4);
    background: linear-gradient(135deg, var(--teal-wash) 0%, var(--gray-50) 100%);
    border: 1px solid var(--teal-subtle);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    margin: var(--s-6) 0;
}

.rpt-siting-icon {
    width: 44px;
    height: 44px;
    background: var(--teal);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpt-siting-icon svg { width: 22px; height: 22px; color: white; }
.rpt-siting-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--warning); margin-bottom: var(--s-2); }
.rpt-siting-text { font-size: 13px; color: var(--gray-900); line-height: 1.65; margin: 0; }

/* Your location */
.rpt-your-location-card {
    background: var(--gray-50);
    border-left: 4px solid var(--teal);
    border-radius: var(--r-lg);
    padding: var(--s-5);
}

.rpt-your-location-zip { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--gray-900); }
.rpt-your-location-score { font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: var(--teal); }

/* Alternative ZIP cards */
.rpt-alternative-card {
    display: grid;
    grid-template-columns: 50px 120px 60px 80px 100px 1fr;
    gap: var(--s-3);
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-4);
    transition: all var(--fast);
    margin-bottom: var(--s-3);
}

.rpt-alternative-card:hover { border-color: var(--teal-subtle); box-shadow: var(--shadow-sm); }
.rpt-alternative-card.top-ranked { background: linear-gradient(135deg, var(--teal-wash) 0%, var(--gray-50) 100%); border-color: var(--teal); }
.rpt-alternative-card.is-subject { border-color: var(--teal); border-width: 2px; background: linear-gradient(135deg, var(--teal-wash) 0%, var(--white) 100%); }

.rpt-alternative-rank-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpt-alternative-rank-circle.top-three { background: var(--teal); color: white; }


/* ═══════════════════════════════════════════════════════════════════════════
   5f. INDEX 6 — Competition (Badge, Metrics, Landlord Mix, Posture)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Competition badge */
.rpt-index-competition-badge {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    background: linear-gradient(135deg, var(--teal-wash) 0%, var(--gray-50) 100%);
    border: 1px solid var(--teal);
    border-radius: var(--r-lg);
    padding: var(--s-4) var(--s-5);
    margin-bottom: var(--s-6);
}

.rpt-index-competition-badge svg { width: 24px; height: 24px; color: var(--teal); }
.rpt-index-competition-label { display: block; font-size: 18px; font-weight: 600; color: var(--gray-900); }
.rpt-index-competition-hint { display: block; font-size: 12px; color: var(--gray-500); }

.rpt-index-competition-badge.first-mover { border-color: var(--success); background: linear-gradient(135deg, var(--success-wash) 0%, var(--gray-50) 100%); }
.rpt-index-competition-badge.first-mover svg { color: var(--success); }
.rpt-index-competition-badge.niche-or-nothing { border-color: var(--warning); background: linear-gradient(135deg, var(--warning-wash) 0%, var(--gray-50) 100%); }
.rpt-index-competition-badge.niche-or-nothing svg { color: var(--warning); }

/* Competition metrics grid */
.rpt-index-competition-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    margin-bottom: var(--s-6);
}

.rpt-index-competition-metric {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    padding: var(--s-4);
}

.rpt-index-competition-metric.positive { border-color: var(--success); background: var(--success-wash); }
.rpt-index-competition-metric.negative { border-color: var(--error); background: var(--error-wash); }

.rpt-index-competition-metric-icon {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpt-index-competition-metric-icon svg { width: 18px; height: 18px; color: var(--teal); }
.rpt-index-competition-metric.positive .rpt-index-competition-metric-icon svg { color: var(--success); }
.rpt-index-competition-metric.negative .rpt-index-competition-metric-icon svg { color: var(--error); }

.rpt-index-competition-metric-value { display: block; font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--gray-900); }
.rpt-index-competition-metric-label { display: block; font-size: 12px; color: var(--gray-500); }

/* Landlord mix bar */
.rpt-index-landlord-mix {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    margin-bottom: var(--s-6);
}

.rpt-index-landlord-mix-bar {
    display: flex;
    height: 24px;
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: var(--s-3);
}

.rpt-index-landlord-pro    { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); transition: width 0.4s ease; }
.rpt-index-landlord-amateur { background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%); transition: width 0.4s ease; }

.rpt-index-landlord-mix-legend {
    display: flex;
    justify-content: space-between;
    gap: var(--s-4);
}

.rpt-index-landlord-legend-item {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 12px;
    color: var(--gray-500);
}

.rpt-index-landlord-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--r-full);
}

.rpt-index-landlord-dot.pro     { background: var(--teal); }
.rpt-index-landlord-dot.amateur { background: var(--gray-200); }

/* Market type box */
.rpt-index-market-type-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    margin-bottom: var(--s-6);
}

.rpt-index-market-type-title { font-size: 18px; font-weight: 700; color: var(--gray-900); margin: 0 0 var(--s-2) 0; }
.rpt-index-market-type-meaning { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin: 0; }

.rpt-index-market-type-box.quadrant-crowded-pro { border-left: 4px solid var(--warning); background: linear-gradient(135deg, var(--warning-wash) 0%, var(--gray-50) 100%); }
.rpt-index-market-type-box.quadrant-crowded-diy { border-left: 4px solid var(--teal); background: linear-gradient(135deg, var(--teal-wash) 0%, var(--gray-50) 100%); }
.rpt-index-market-type-box.quadrant-gap         { border-left: 4px solid var(--success); background: linear-gradient(135deg, var(--success-wash) 0%, var(--gray-50) 100%); }

/* Driver tiles */
.rpt-index-driver-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    margin-bottom: var(--s-6);
}

.rpt-index-driver-tiles.two-col { grid-template-columns: repeat(2, 1fr); }

.rpt-index-driver-tile {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    text-align: center;
}

.rpt-index-driver-tile-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-1);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: var(--s-3);
}

.rpt-index-driver-tile-value {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: var(--s-2);
}

.rpt-index-driver-tile-status {
    display: inline-block;
    padding: var(--s-1) var(--s-3);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--s-2);
}

.rpt-index-driver-tile-status.low, .rpt-index-driver-tile-status.diy, .rpt-index-driver-tile-status.below { background: var(--success-wash); color: var(--success); }
.rpt-index-driver-tile-status.medium, .rpt-index-driver-tile-status.mixed, .rpt-index-driver-tile-status.aligned { background: var(--teal-wash); color: var(--teal); }
.rpt-index-driver-tile-status.high, .rpt-index-driver-tile-status.operator-led, .rpt-index-driver-tile-status.above { background: var(--warning-wash); color: var(--warning); }
.rpt-index-driver-tile-status.na { background: var(--gray-100); color: var(--gray-400); }

/* Strategic posture */
.rpt-index-posture-section {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    margin-bottom: var(--s-6);
}

.rpt-index-posture-title { font-size: 18px; font-weight: 700; color: var(--gray-900); margin: 0 0 var(--s-4) 0; }

.rpt-index-posture-reasoning { border-left: 3px solid var(--teal); padding-left: var(--s-4); }

.rpt-index-posture-row { display: flex; gap: var(--s-3); margin-bottom: var(--s-2); }
.rpt-index-posture-row:last-child { margin-bottom: 0; }
.rpt-index-posture-label { font-size: 12px; font-weight: 600; color: var(--teal); min-width: 80px; text-transform: uppercase; }
.rpt-index-posture-value { font-size: 13px; color: var(--gray-900); line-height: 1.5; }

/* Market read */
.rpt-index-market-read-quote {
    font-size: 18px;
    font-style: italic;
    color: var(--gray-900);
    line-height: 1.6;
    margin: 0 0 var(--s-4) 0;
    padding-left: var(--s-4);
    border-left: 3px solid var(--teal);
}


/* ═══════════════════════════════════════════════════════════════════════════
   5b. JS–CSS ALIGNMENT — BEM modifier aliases + missing structural classes
   These bridge class names output by market-report.js to their CSS definitions.
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Play card BEM tier modifiers (JS outputs --premium, CSS defined .premium) --- */
.rpt-play-card--featured {
    border-color: var(--teal);
    border-width: 2px;
    box-shadow: var(--shadow-sm), 0 0 0 3px var(--teal-wash);
}

.rpt-play-tier-strip--premium   { background: #D4A253; }
.rpt-play-tier-strip--standard  { background: var(--teal); }
.rpt-play-tier-strip--workforce { background: var(--gray-400); }

.rpt-play-tier-badge--premium   { background: rgba(212, 162, 83, 0.12); color: #B8860B; }
.rpt-play-tier-badge--standard  { background: var(--teal-wash); color: var(--teal); }
.rpt-play-tier-badge--workforce { background: var(--gray-100); color: var(--gray-500); }

/* --- Confidence ring color modifiers (JS: rpt-play-confidence--high) --- */
.rpt-play-confidence--high .rpt-play-confidence-fill   { stroke: var(--success); }
.rpt-play-confidence--medium .rpt-play-confidence-fill { stroke: var(--warning); }
.rpt-play-confidence--low .rpt-play-confidence-fill    { stroke: var(--error); }

/* --- Play header structural wrappers (JS adds extra layout divs) --- */
.rpt-play-header-main {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    flex: 1;
    min-width: 0;
}

.rpt-play-title-row {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    flex-wrap: wrap;
}

.rpt-play-header-meta {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    flex-shrink: 0;
}

.rpt-play-rank-number {
    /* Inherits from .rpt-play-rank parent */
}

/* --- Confidence ring SVG (JS uses class-based selectors) --- */
.rpt-play-confidence-svg {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}

.rpt-play-confidence-bg {
    fill: none;
    stroke: var(--gray-100);
    stroke-width: 3;
}

/* .rpt-play-confidence-fill already defined above (line ~1164) with stroke via modifiers */

.rpt-play-confidence-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}

/* --- Play body section wrappers --- */
.rpt-play-body-section {
    margin-bottom: var(--s-5);
}

.rpt-play-body-section:last-child {
    margin-bottom: 0;
}

.rpt-play-body-section-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: var(--s-4);
}

.rpt-play-body-section-header svg,
.rpt-play-body-section-header i {
    width: 14px;
    height: 14px;
    color: var(--teal);
}

/* --- Framework cell content wrapper --- */
.rpt-play-framework-content {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

/* --- Falsify section header --- */
.rpt-play-falsify-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #D97706;
    margin-bottom: var(--s-3);
}

.rpt-play-falsify-header svg,
.rpt-play-falsify-header i {
    width: 14px;
    height: 14px;
    color: var(--warning);
}

/* --- Empty state alias (JS uses rpt-plays-empty-state) --- */
.rpt-plays-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--s-12) var(--s-6);
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
    border-radius: var(--r-xl);
    text-align: center;
}

.rpt-plays-empty-state svg,
.rpt-plays-empty-state i {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
    margin-bottom: var(--s-4);
}

.rpt-plays-empty-state p {
    font-size: 15px;
    color: var(--gray-500);
    margin: 0;
}

/* --- Archetype card structural wrappers --- */
.rpt-archetype-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    margin-bottom: var(--s-3);
}

.rpt-archetype-info {
    flex: 1;
    min-width: 0;
}

.rpt-archetype-meta {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
    margin-top: var(--s-1);
}


/* ═══════════════════════════════════════════════════════════════════════════
   5g. MISSING CSS — Classes used in JS render methods but not yet defined
   Generated from market-report.js deep-dive tab templates.
   Grouped by section. Does NOT duplicate any class already in this file
   or components.css.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────
   SECTION 1: Index Header & Score Display
   Used by ALL 6 index deep-dive tabs (renderDemandTab, etc.)
   ───────────────────────────────────────────────────── */
.rpt-index-header {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--gray-200);
}

.rpt-index-number {
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    background: var(--teal);
    color: white;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpt-index-header-text {
    flex: 1;
    min-width: 0;
}

.rpt-index-header-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.rpt-index-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    display: block;
    margin-top: 2px;
}

.rpt-index-score-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 36px;
    color: var(--teal);
    line-height: 1;
}

.rpt-index-score-meta {
    flex: 1;
    min-width: 0;
}

.rpt-index-score-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.rpt-index-score-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}


/* ─────────────────────────────────────────────────────
   SECTION 2: Overview Card Sub-elements
   Used by renderOverviewIndexGrid()
   ───────────────────────────────────────────────────── */
.rpt-overview-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--s-3);
    background: var(--gray-100);
    color: var(--gray-500);
}

.rpt-overview-card-icon.positive { background: var(--success-wash); color: var(--success); }
.rpt-overview-card-icon.neutral  { background: var(--teal-wash); color: var(--teal); }
.rpt-overview-card-icon.negative { background: var(--warning-wash); color: var(--warning); }
.rpt-overview-card-icon svg,
.rpt-overview-card-icon i { width: 18px; height: 18px; }

.rpt-overview-card-body {
    flex: 1;
    min-width: 0;
}

.rpt-overview-card-max {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-400);
}

.rpt-overview-card-question {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ─────────────────────────────────────────────────────
   SECTION 3: Index Card Sub-elements (A/B/C mini-cards)
   Used by renderHouseholdMiniCard, renderDriversMiniCard, etc.
   ───────────────────────────────────────────────────── */
.rpt-index-card-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--r-full);
    background: var(--teal);
    color: white;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    margin-bottom: var(--s-3);
}

.rpt-index-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--s-3);
}

.rpt-index-card-source {
    font-size: 11px;
    color: var(--gray-400);
    white-space: nowrap;
}

.rpt-index-card-score {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
}

.rpt-index-card-score-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.rpt-index-card-score-band {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-full);
    background: var(--success-wash);
    color: var(--success);
}

.rpt-index-card-score-band.medium { background: var(--warning-wash); color: var(--warning); }
.rpt-index-card-score-band.weak   { background: var(--error-wash); color: var(--error); }

.rpt-index-card-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
}

.rpt-index-card-implication {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
    padding-top: var(--s-3);
    border-top: 1px solid var(--gray-100);
    font-style: italic;
}


/* ─────────────────────────────────────────────────────
   SECTION 4: Metric Rows (inside mini-cards)
   Used by renderHouseholdMiniCard, renderActivityMiniCard
   ───────────────────────────────────────────────────── */
.rpt-index-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-1) 0;
}

.rpt-index-metric-name {
    font-size: 13px;
    color: var(--gray-600);
}

.rpt-index-metric-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.rpt-index-metric-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--r-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rpt-index-metric-tag.strong { background: var(--success-wash); color: var(--success); }
.rpt-index-metric-tag.medium { background: var(--warning-wash); color: var(--warning); }
.rpt-index-metric-tag.weak   { background: var(--error-wash); color: var(--error); }


/* ─────────────────────────────────────────────────────
   SECTION 5: Bucket Bars (POI visualization in Card C)
   Used by renderActivityMiniCard
   ───────────────────────────────────────────────────── */
.rpt-index-metric-row.bucket-row {
    gap: var(--s-2);
}

.rpt-index-metric-name.bucket-name {
    width: 100px;
    flex-shrink: 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpt-bucket-bar-container {
    flex: 1;
    height: 6px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    overflow: hidden;
}

.rpt-bucket-bar {
    height: 100%;
    background: var(--teal);
    border-radius: var(--r-full);
    transition: width 0.4s ease;
}

.rpt-index-metric-value.bucket-value {
    width: 36px;
    flex-shrink: 0;
    text-align: right;
    font-size: 12px;
}


/* ─────────────────────────────────────────────────────
   SECTION 6: Enhanced Pillars (Industry cards in Card B)
   Used by renderDriversMiniCardEnhanced
   ───────────────────────────────────────────────────── */
.rpt-index-pillars-enhanced {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
}

.rpt-index-pillar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    padding: var(--s-3);
    transition: all var(--fast);
}

.rpt-index-pillar-card:hover {
    border-color: var(--teal-subtle);
    box-shadow: var(--shadow-xs);
}

.rpt-index-pillar-card .rpt-index-pillar-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.rpt-index-pillar-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: var(--s-2);
}

.rpt-index-pillar-lq {
    font-size: 11px;
    color: var(--teal);
    margin-top: var(--s-1);
    padding-left: calc(32px + var(--s-2));
}

.rpt-index-pillar-lq.muted {
    color: var(--gray-400);
}

.rpt-index-pillar-anchor {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: var(--s-1);
    padding-left: calc(32px + var(--s-2));
}

.rpt-index-pillars-summary {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: var(--s-2);
    padding: var(--s-2) var(--s-3);
    background: var(--gray-50);
    border-radius: var(--r-sm);
    border-left: 3px solid var(--teal);
}

.rpt-index-pillars-summary strong {
    color: var(--teal);
}


/* ─────────────────────────────────────────────────────
   SECTION 7: Enhanced Renter Chips
   Used by renderRenterChipEnhanced
   ───────────────────────────────────────────────────── */
.rpt-index-renter-chip-enhanced {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-3) var(--s-4);
    transition: all var(--fast);
}

.rpt-index-renter-chip-enhanced:hover {
    border-color: var(--teal-subtle);
    box-shadow: var(--shadow-xs);
}

.rpt-index-renter-chip-header {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.rpt-index-renter-chip-info {
    flex: 1;
    min-width: 0;
}

.rpt-index-renter-chip-stats {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-top: 2px;
}

.rpt-index-renter-chip-pct {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-wash);
    padding: 1px 6px;
    border-radius: var(--r-sm);
}

.rpt-index-renter-chip-why {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
    margin: var(--s-2) 0 0 calc(32px + var(--s-3));
    font-style: italic;
}


/* ─────────────────────────────────────────────────────
   SECTION 8: Influence Bars Fix (typo in JS)
   JS outputs rpt-index-rpt-influence-bars (double prefix)
   ───────────────────────────────────────────────────── */
.rpt-index-rpt-influence-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.rpt-index-influence-rows {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}


/* ─────────────────────────────────────────────────────
   SECTION 9: Top Drivers & Driver List
   Used by renderDemandTab (Top Drivers section)
   ───────────────────────────────────────────────────── */
.rpt-index-section-title {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--s-4) 0;
}

.rpt-index-section-title i,
.rpt-index-section-title svg {
    width: 16px;
    height: 16px;
    color: var(--teal);
}

.rpt-driver-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.rpt-driver-why {
    color: var(--gray-500);
    font-weight: 400;
}


/* ─────────────────────────────────────────────────────
   SECTION 10: Confidence Tooltip & Interpretation
   Used by ALL 6 index tabs
   ───────────────────────────────────────────────────── */
.rpt-confidence-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + var(--s-2));
    right: 0;
    z-index: 50;
    width: 280px;
    padding: var(--s-4);
    background: var(--gray-900);
    color: white;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    font-size: 12px;
    line-height: 1.5;
}

.rpt-confidence-tooltip strong {
    display: block;
    margin-bottom: var(--s-2);
    font-size: 13px;
}

.rpt-confidence-tooltip ul {
    margin: 0;
    padding: 0 0 0 var(--s-4);
    list-style: disc;
}

.rpt-confidence-tooltip ul li {
    margin-bottom: var(--s-1);
}

.tooltip-trigger {
    position: relative;
    cursor: help;
}

.tooltip-trigger:hover .rpt-confidence-tooltip {
    display: block;
}

.rpt-index-interpretation {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
}


/* ─────────────────────────────────────────────────────
   SECTION 11: Pricing Tab — Tier Currency/Separator, Stat Boxes,
   Reality Section, Confidence List, Inventory Mix
   Used by renderPricingTab
   ───────────────────────────────────────────────────── */
.rpt-tier-currency {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-500);
}

.rpt-tier-separator {
    font-size: 14px;
    color: var(--gray-400);
    margin: 0 2px;
}

.rpt-stat-box-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--warning);
    margin-bottom: var(--s-2);
}

.rpt-stat-box-value {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: var(--s-2);
}

.rpt-stat-box-context {
    font-size: 13px;
    color: var(--gray-500);
}

.rpt-market-reality-section {
    margin: var(--s-6) 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    border-left: 4px solid var(--teal);
}

.rpt-reality-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--s-4) 0;
}

.rpt-reality-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.rpt-reality-row-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--gray-500);
    min-width: 110px;
}

.rpt-reality-row-value {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.rpt-reality-row-context {
    font-size: 12px;
    color: var(--gray-400);
}

.rpt-reality-diff-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-sm);
}

.rpt-reality-diff-badge.higher  { background: var(--warning-wash); color: var(--warning); }
.rpt-reality-diff-badge.lower   { background: var(--success-wash); color: var(--success); }
.rpt-reality-diff-badge.aligned { background: var(--gray-100); color: var(--gray-500); }

.rpt-reality-insight-box {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    margin-top: var(--s-5);
    padding: var(--s-4);
    background: linear-gradient(135deg, var(--teal-wash) 0%, var(--gray-50) 100%);
    border-radius: var(--r-md);
    border-left: 3px solid var(--teal);
}

.rpt-reality-insight-box i,
.rpt-reality-insight-box svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.rpt-reality-insight-box span { font-size: 13px; color: var(--gray-900); line-height: 1.65; }
.rpt-reality-insight-box strong { color: var(--gray-900); font-weight: 600; }

.rpt-listings-bar { background: var(--warning); }
.rpt-seekers-bar  { background: var(--teal); }
.rpt-reality-bar.higher { background: var(--warning); }
.rpt-reality-bar.lower  { background: var(--success); }

.rpt-index-confidence-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-top: var(--s-4);
}

.rpt-index-confidence-item {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 13px;
    color: var(--gray-600);
}

.rpt-index-confidence-item i,
.rpt-index-confidence-item svg {
    width: 14px;
    height: 14px;
    color: var(--success);
    flex-shrink: 0;
}

.rpt-inventory-mix-section {
    margin-top: var(--s-6);
    padding: var(--s-5);
    background: var(--gray-50);
    border-radius: var(--r-lg);
    border: 1px solid var(--gray-200);
}

.rpt-inventory-mix-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--s-3) 0;
}

.rpt-inventory-mix-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
}

.rpt-inventory-mix-text strong {
    color: var(--gray-900);
}


/* ─────────────────────────────────────────────────────
   SECTION 12: Pressure Tab — Dual Layout, Signals Enhanced,
   Mode Strip, Scale Labels
   Used by renderPressureTab, renderSignalRowEnhanced
   ───────────────────────────────────────────────────── */
.rpt-index-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
    margin-bottom: var(--s-6);
    align-items: stretch;
}

.rpt-index-dual.flow-style {
    /* Same as default dual */
}

.rpt-index-dual.competition {
    /* Same as default dual */
}

.rpt-index-dual .rpt-index-score {
    margin-bottom: 0;
}

.rpt-index-signals-section {
    margin: var(--s-6) 0;
}

.rpt-index-signals-title {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--s-4) 0;
}

.rpt-index-signals-title i,
.rpt-index-signals-title svg { width: 16px; height: 16px; color: var(--teal); }

.rpt-index-signals {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.rpt-index-signal.enhanced {
    background: var(--gray-50);
    border-radius: var(--r-md);
    padding: var(--s-4);
}

.rpt-index-signal-bar-container {
    position: relative;
    margin: var(--s-2) 0;
}

.rpt-index-signal-us-avg-marker {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: var(--gray-400);
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
}

.rpt-index-signal-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--gray-400);
    margin-top: var(--s-1);
}

.rpt-scale-left,
.rpt-scale-right {
    font-size: 10px;
    color: var(--gray-400);
}

.rpt-scale-center {
    font-size: 10px;
    color: var(--gray-400);
    text-align: center;
}

.rpt-index-signal-hint {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: var(--s-1);
    font-style: italic;
}

.rpt-index-signal-values {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.rpt-index-signal-fill.high     { background: #a85c41; }
.rpt-index-signal-fill.moderate { background: var(--warning); }
.rpt-index-signal-fill.low      { background: var(--success); }

/* Mode strip */
.rpt-index-mode {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-4);
    background: var(--gray-50);
    border-radius: var(--r-lg);
    border-left: 4px solid var(--warning);
    margin-bottom: var(--s-5);
}

.rpt-index-mode.need-led   { border-left-color: #a85c41; background: #faf3ef; }
.rpt-index-mode.choice-led { border-left-color: var(--success); background: var(--success-wash); }

.rpt-index-mode-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpt-index-mode-icon i,
.rpt-index-mode-icon svg { width: 20px; height: 20px; }
.rpt-index-mode.need-led .rpt-index-mode-icon   { color: #a85c41; }
.rpt-index-mode.choice-led .rpt-index-mode-icon { color: var(--success); }

.rpt-index-mode-content {
    flex: 1;
}

.rpt-index-mode-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.rpt-index-mode-meaning {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: var(--s-1);
}

/* US avg badge tooltip variant */
.rpt-us-avg-badge.has-tooltip {
    cursor: help;
    position: relative;
}


/* ─────────────────────────────────────────────────────
   SECTION 13: Quadrant Inline (Pool x Pressure map)
   Used by renderQuadrantInline
   ───────────────────────────────────────────────────── */
.rpt-quadrant-panel-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: start;
}

.rpt-quadrant-axes {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    margin-top: var(--s-2);
}

.rpt-quadrant-axis-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.rpt-quadrant-cell-label {
    font-size: 11px;
    display: block;
}

.rpt-quadrant-legend-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
}

.rpt-quadrant-legend-header i,
.rpt-quadrant-legend-header svg { width: 18px; height: 18px; }

.rpt-quadrant-legend-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.rpt-quadrant-legend-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 var(--s-3) 0;
}

.rpt-quadrant-scores {
    display: flex;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
}

.rpt-quadrant-score {
    font-size: 13px;
    color: var(--gray-500);
}

.rpt-quadrant-score strong {
    font-family: var(--font-mono);
    color: var(--gray-900);
}

.rpt-quadrant-next-moves,
.rpt-quadrant-top-drivers,
.rpt-quadrant-next-checks {
    margin-bottom: var(--s-4);
}

.rpt-quadrant-next-moves h5,
.rpt-quadrant-top-drivers h5,
.rpt-quadrant-next-checks h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    margin: 0 0 var(--s-2) 0;
}

.rpt-quadrant-next-moves ul,
.rpt-quadrant-top-drivers ul,
.rpt-quadrant-next-checks ul {
    margin: 0;
    padding: 0 0 0 var(--s-4);
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

.rpt-quadrant-top-drivers li i,
.rpt-quadrant-next-checks li i {
    width: 12px;
    height: 12px;
    color: var(--teal);
    margin-right: var(--s-1);
}

/* Quadrant legend color variants — all use teal separator */
.rpt-quadrant-legend.positive,
.rpt-quadrant-legend.accent,
.rpt-quadrant-legend.caution,
.rpt-quadrant-legend.negative {
    border-left: 3px solid var(--teal);
    padding-left: var(--s-5);
}


/* ─────────────────────────────────────────────────────
   SECTION 14: Flow Tab — Driver Sections, Anchors, Matrix,
   Playbook Focus, Reality, Interpretation
   Used by renderFlowTab
   ───────────────────────────────────────────────────── */
.rpt-index-flow-drivers-section {
    margin: var(--s-6) 0;
}

.rpt-index-drivers-title {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--s-4) 0;
}

.rpt-index-drivers-title i,
.rpt-index-drivers-title svg { width: 16px; height: 16px; color: var(--success); }
.rpt-index-drivers-title.churn i,
.rpt-index-drivers-title.churn svg { color: var(--warning); }

.rpt-index-drivers-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400);
    margin-left: var(--s-1);
}

.rpt-index-flow-drivers-list,
.rpt-index-churn-drivers-list {
    display: flex;
    flex-direction: column;
}

.rpt-index-churn-drivers-section {
    margin: var(--s-6) 0;
}

.rpt-index-flow-anchors {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-3) 0;
}

.rpt-flow-anchors-label {
    font-size: 12px;
    color: var(--gray-500);
    flex-shrink: 0;
}

.rpt-flow-anchors-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
}

.rpt-flow-anchor-chip.muted {
    background: var(--gray-100);
    color: var(--gray-400);
    border-color: var(--gray-200);
}

.rpt-flow-driver-note.very-high {
    background: #faf3ef;
    color: #a85c41;
}

.rpt-index-matrix-section {
    margin: var(--s-6) 0;
}

/* Alias rpt-index-matrix to rpt-flow-matrix */
.rpt-index-matrix {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--white);
    margin-bottom: var(--s-3);
}

.rpt-matrix-explanation {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: var(--s-2) 0 0 0;
    font-style: italic;
}

.rpt-index-playbook-because {
    display: block;
    font-size: 11px;
    color: var(--gray-400);
    margin-top: var(--s-1);
    font-style: italic;
}

.rpt-index-playbook-focus {
    padding: var(--s-3) var(--s-4);
    background: var(--white);
    border-radius: var(--r-md);
    border-left: 3px solid var(--teal);
    margin-top: var(--s-4);
}

.rpt-index-playbook-focus-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--teal);
    margin-bottom: var(--s-1);
}

.rpt-index-playbook-focus-value {
    display: block;
    font-size: 13px;
    color: var(--gray-900);
    font-weight: 500;
}

/* Additional Recommendations (legacy playbook) */
.rpt-index-reality {
    margin: var(--s-5) 0;
    padding: var(--s-5);
    background: var(--gray-50);
    border-radius: var(--r-lg);
    border: 1px solid var(--gray-200);
}

.rpt-index-reality-title {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--s-4) 0;
}

.rpt-index-reality-title i,
.rpt-index-reality-title svg { width: 16px; height: 16px; color: var(--teal); }

.rpt-index-reality-rows {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.rpt-index-reality-row {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-2) 0;
    border-bottom: 1px solid var(--gray-100);
}

.rpt-index-reality-row:last-child {
    border-bottom: none;
}

.rpt-index-reality-source {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    min-width: 100px;
    flex-shrink: 0;
}

.rpt-index-reality-value {
    font-size: 13px;
    color: var(--gray-900);
}

.rpt-index-reality-diff {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--r-sm);
}

.rpt-index-reality-diff.higher  { background: var(--warning-wash); color: var(--warning); }
.rpt-index-reality-diff.lower   { background: var(--success-wash); color: var(--success); }
.rpt-index-reality-diff.aligned { background: var(--gray-100); color: var(--gray-500); }


/* ─────────────────────────────────────────────────────
   SECTION 15: Placement Tab — Your Location, Alternatives,
   Demand Hubs, Siting Content
   Used by renderPlacementTab
   ───────────────────────────────────────────────────── */
.rpt-placement-your-location {
    margin: var(--s-6) 0;
}

.rpt-your-location-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--s-3);
}

.rpt-your-location-header i,
.rpt-your-location-header svg { width: 16px; height: 16px; color: var(--teal); }

.rpt-your-location-main {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-3);
    flex-wrap: wrap;
}

.rpt-your-location-zip-wrap {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.rpt-local-area-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--r-sm);
}

.rpt-local-area-tag i,
.rpt-local-area-tag svg { width: 12px; height: 12px; }

.rpt-your-location-max {
    font-size: 16px;
    color: var(--gray-400);
    font-weight: 400;
}

.rpt-your-location-label {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-full);
    text-transform: uppercase;
}

.rpt-your-location-label.strong,
.rpt-your-location-label.high { background: var(--success-wash); color: var(--success); }
.rpt-your-location-label.moderate { background: var(--teal-wash); color: var(--teal); }
.rpt-your-location-label.fair { background: var(--warning-wash); color: var(--warning); }
.rpt-your-location-label.weak { background: var(--error-wash); color: var(--error); }

.rpt-your-location-rank {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: var(--s-3);
}

.rpt-your-location-rank strong {
    color: var(--teal);
}

.rpt-your-location-hubs {
    padding-top: var(--s-3);
    border-top: 1px solid var(--gray-200);
}

.rpt-your-location-hubs-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: var(--s-2);
}

.rpt-your-location-hub-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-2);
    font-size: 13px;
    color: var(--gray-600);
    padding: var(--s-1) 0;
}

.rpt-your-location-hub-item strong {
    color: var(--gray-900);
}

.rpt-hub-distance {
    font-size: 12px;
    color: var(--gray-400);
}

.rpt-hub-type-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--teal);
    background: var(--teal-wash);
    padding: 1px 6px;
    border-radius: var(--r-sm);
}

.rpt-your-location-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-wash);
    padding: 2px 8px;
    border-radius: var(--r-sm);
    margin-left: var(--s-2);
}

/* Alternatives Section */
.rpt-placement-alternatives {
    margin: var(--s-6) 0;
}

.rpt-alternatives-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--s-3);
}

.rpt-alternatives-header i,
.rpt-alternatives-header svg { width: 16px; height: 16px; color: var(--teal); }

.rpt-alternatives-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.rpt-alternative-zip-code {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.rpt-alternative-score {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--teal);
}

.rpt-alternative-label {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-full);
    text-transform: uppercase;
}

.rpt-alternative-label.strong { background: var(--success-wash); color: var(--success); }
.rpt-alternative-label.moderate { background: var(--teal-wash); color: var(--teal); }
.rpt-alternative-label.fair { background: var(--warning-wash); color: var(--warning); }
.rpt-alternative-label.weak { background: var(--error-wash); color: var(--error); }

.rpt-alternative-hub-type {
    font-size: 12px;
    color: var(--gray-500);
}

.rpt-alternative-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rpt-alternative-access {
    font-size: 12px;
    color: var(--gray-600);
}

.rpt-alternative-demand {
    font-size: 12px;
    color: var(--gray-400);
    font-style: italic;
}

/* Demand Hubs */
.rpt-placement-demand-hubs {
    margin: var(--s-6) 0;
}

.rpt-demand-hubs-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--s-4);
}

.rpt-demand-hubs-header i,
.rpt-demand-hubs-header svg { width: 16px; height: 16px; color: var(--teal); }

.rpt-demand-hubs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
}

.rpt-demand-hub-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    padding: var(--s-4);
    transition: all var(--fast);
}

.rpt-demand-hub-card:hover {
    border-color: var(--teal-subtle);
    box-shadow: var(--shadow-xs);
}

.rpt-demand-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-2);
}

.rpt-demand-hub-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
}

.rpt-demand-hub-type-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--teal);
    background: var(--teal-wash);
    padding: 2px 8px;
    border-radius: var(--r-full);
}

.rpt-demand-hub-distance {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: var(--s-2);
}

.rpt-demand-hub-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
}

.rpt-siting-content {
    flex: 1;
}


/* ─────────────────────────────────────────────────────
   SECTION 16: Competition Tab — Drivers Grid, Market Type Header,
   Posture Header, Source Footer Detailed
   Used by renderCompetitionTab
   ───────────────────────────────────────────────────── */

/* Competition score-box variants (extends base) */
.rpt-index-score-box.saturation { /* inherits base styles */ }
.rpt-index-score-box.operators  { /* inherits base styles */ }

/* Competition drivers grid (uses rpt-index-drivers not rpt-index-driver-tiles) */
.rpt-index-drivers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    margin-bottom: var(--s-6);
}

.rpt-index-drivers.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.rpt-index-driver {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    text-align: center;
}

.rpt-index-driver-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-1);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: var(--s-3);
}

.rpt-index-driver-value {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: var(--s-2);
}

.rpt-index-driver-value.na {
    color: var(--gray-300);
    font-size: 24px;
}

.rpt-index-driver-status {
    display: inline-block;
    padding: var(--s-1) var(--s-3);
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--s-2);
}

.rpt-index-driver-status.low,
.rpt-index-driver-status.diy,
.rpt-index-driver-status.below    { background: var(--success-wash); color: var(--success); }
.rpt-index-driver-status.medium,
.rpt-index-driver-status.mixed,
.rpt-index-driver-status.aligned  { background: var(--teal-wash); color: var(--teal); }
.rpt-index-driver-status.high,
.rpt-index-driver-status.operator-led,
.rpt-index-driver-status.above    { background: var(--warning-wash); color: var(--warning); }
.rpt-index-driver-status.na       { background: var(--gray-100); color: var(--gray-400); }

.rpt-index-driver-threshold {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: var(--s-1);
}

.rpt-threshold-hint {
    display: block;
    font-size: 10px;
    color: var(--gray-300);
    margin-top: 2px;
}

/* Market type box header (JS uses div wrapper unlike base) */
.rpt-index-market-type-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-400);
    margin-bottom: var(--s-3);
}

.rpt-index-market-type-header i,
.rpt-index-market-type-header svg { width: 14px; height: 14px; }

/* Light-pro quadrant variant (missing from existing) */
.rpt-index-market-type-box.quadrant-light-pro {
    border-left: 4px solid var(--teal);
    background: linear-gradient(135deg, var(--teal-wash) 0%, var(--gray-50) 100%);
}

/* Posture header (Competition tab) */
.rpt-index-posture-header {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-400);
    margin-bottom: var(--s-3);
}

.rpt-index-posture-header i,
.rpt-index-posture-header svg { width: 14px; height: 14px; color: var(--teal); }

/* Detailed source footer */
.rpt-index-source-footer.detailed {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    flex-wrap: wrap;
}

.rpt-index-source-footer.detailed .separator {
    color: var(--gray-300);
}


/* ─────────────────────────────────────────────────────
   SECTION 17: Q1/Q3 Chip & Zone Sub-elements
   Used by renderQ1Archetypes, renderQ3Placement
   ───────────────────────────────────────────────────── */
.rpt-q-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--r-md);
    background: var(--teal-wash);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rpt-q-chip-icon i,
.rpt-q-chip-icon svg { width: 14px; height: 14px; }

.rpt-q-chip-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
}

.rpt-q-chip-pool {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-500);
}

.rpt-q-zone-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.rpt-q-zone-meta {
    font-size: 12px;
    color: var(--gray-500);
}


/* ─────────────────────────────────────────────────────
   SECTION 18: Responsive overrides for new classes
   ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rpt-index-dual {
        grid-template-columns: 1fr;
    }
    .rpt-quadrant-panel-inline {
        grid-template-columns: 1fr;
    }
    .rpt-demand-hubs-grid {
        grid-template-columns: 1fr;
    }
    .rpt-index-drivers {
        grid-template-columns: 1fr;
    }
    .rpt-index-drivers.two-col {
        grid-template-columns: 1fr;
    }
    .rpt-index-header {
        flex-wrap: wrap;
    }
    .rpt-your-location-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .rpt-alternative-card {
        grid-template-columns: 40px 1fr;
        gap: var(--s-2);
    }
}


/* --- Remaining gap-fill (final 21 missing classes) --- */

/* Play body section BEM variants */
.rpt-play-body-section--promise { }
.rpt-play-body-section--framework { }
.rpt-play-body-section--falsify { }

/* Quadrant axis labels */
.x-axis, .y-axis {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Index hub card sub-elements */
.rpt-index-hub-content { flex: 1; min-width: 0; }
.rpt-index-hub-jobs {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--gray-500);
}
.rpt-index-hub-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--teal);
}
.rpt-index-rpt-hub-distance {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
}

/* Index pillar content wrapper */
.rpt-index-pillar-content { flex: 1; min-width: 0; }

/* Index driver bar (placement/competition) */
.rpt-index-driver-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-100);
    border-radius: var(--r-full);
    overflow: hidden;
}
.rpt-index-driver-fill {
    height: 100%;
    border-radius: var(--r-full);
    background: var(--teal);
    transition: width 0.5s ease;
}

/* Pricing bar labels */
.rpt-listings { color: var(--teal); }
.rpt-seekers  { color: var(--gray-500); }
.rpt-wages    { color: var(--success); }
.rpt-no-bar   { opacity: 0.5; }

/* Snapshot card icon wrapper */
.rpt-snapshot-card-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background: var(--teal-wash);
    color: var(--teal);
    margin-bottom: var(--s-2);
}

/* Archetype icon placeholder */
.rpt-archetype-icon-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

/* Anchor-only qualifier badge */
.anchor-only {
    font-size: 11px;
    color: var(--gray-400);
    font-style: italic;
}

/* Base btn class (utility) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--fast);
    text-decoration: none;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Element entrance animations */
.rpt-snapshot { animation: fadeIn 0.4s ease; }
.rpt-section  { animation: fadeIn 0.4s ease; }
.rpt-q-card   { animation: fadeIn 0.3s ease; }


/* ═══════════════════════════════════════════════════════════════════════════
   7. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .rpt-actions-grid { grid-template-columns: repeat(3, 1fr); }
    .rpt-quadrant-panel { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .rpt-alternative-card {
        grid-template-columns: 40px 1fr;
        gap: var(--s-2);
    }
    .rpt-index-driver-tiles { grid-template-columns: repeat(2, 1fr); }
    .rpt-index-driver-tiles.two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .rpt-overview-grid { grid-template-columns: 1fr; }
    .rpt-actions-grid { grid-template-columns: 1fr; }
    .rpt-index-cards { grid-template-columns: 1fr; }
    .rpt-index-dual-scores { grid-template-columns: 1fr; }
    .rpt-pricing-ladder-grid { grid-template-columns: 1fr; }
    .rpt-pricing-stats-row { grid-template-columns: 1fr; }
    .rpt-index-driver-tiles { grid-template-columns: 1fr; }
    .rpt-index-driver-tiles.two-col { grid-template-columns: 1fr; }
    .rpt-index-competition-metrics { grid-template-columns: 1fr; }
    .rpt-index-playbook-grid { grid-template-columns: 1fr; }
    .rpt-risk-indicators { grid-template-columns: 1fr; }
    .rpt-play-framework { grid-template-columns: 1fr; }
    .rpt-play-framework-grid { grid-template-columns: 1fr; }
    .rpt-archetype-card { flex: 0 0 260px; }
    .rpt-snapshot-cards.four-col { grid-template-columns: 1fr 1fr; }

    .rpt-reality-row { grid-template-columns: 1fr; gap: var(--s-2); }

    .rpt-play-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-3);
    }

    .rpt-play-preview { flex-wrap: wrap; gap: var(--s-3); }

    .rpt-flow-driver-row,
    .rpt-churn-driver-row { grid-template-columns: 1fr; gap: var(--s-2); }

    .rpt-matrix-header,
    .rpt-matrix-row { grid-template-columns: 60px repeat(3, 1fr); }

    .rpt-matrix-cell { font-size: 12px; padding: var(--s-3); }

    .rpt-index-score-display { flex-direction: column; text-align: center; }
    .rpt-index-score-big { font-size: 36px; }

    .rpt-index-hub-card { flex-wrap: wrap; }
    .rpt-index-hub-distance {
        width: 100%;
        text-align: left;
        margin-top: var(--s-2);
        padding-top: var(--s-2);
        border-top: 1px solid var(--gray-200);
        display: flex;
        align-items: center;
        gap: var(--s-3);
    }

    .rpt-index-landlord-mix-legend { flex-direction: column; gap: var(--s-2); }

    .rpt-index-posture-row { flex-direction: column; gap: var(--s-1); }
    .rpt-index-posture-label { min-width: auto; }

    .rpt-placement-siting-box { flex-direction: column; text-align: center; }

    .rpt-risk-indicator {
        display: flex;
        align-items: center;
        gap: var(--s-3);
        text-align: left;
    }

    /* Signal rows: reduce label min-width on mobile */
    .rpt-index-signal-label { min-width: 80px; }

    /* Signal header: allow values to wrap below label */
    .rpt-index-signal-header { flex-wrap: wrap; gap: var(--s-2); }

    /* Alternative cards: ensure items wrap cleanly */
    .rpt-alternative-card {
        grid-template-columns: 40px 1fr;
        gap: var(--s-2);
    }

    /* Hub items: allow label wrapping */
    .rpt-your-location-hub-item { flex-wrap: wrap; }

    /* Mode badge: allow text wrapping */
    .rpt-index-mode-badge { flex-wrap: wrap; }

    /* Influence rows: shrink label on mobile */
    .rpt-index-influence-label { width: 90px; }
    .rpt-index-influence-row { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .rpt-snapshot-cards.four-col { grid-template-columns: 1fr; }
    .rpt-q-tiers { flex-direction: column; }
    .rpt-archetype-card { flex: 0 0 240px; }
    .rpt-wedge-details { grid-template-columns: 1fr; }

    /* Signal rows: stack label above bar on very small screens */
    .rpt-index-signal { flex-wrap: wrap; }
    .rpt-index-signal-label { min-width: 100%; margin-bottom: var(--s-1); }
    .rpt-index-signal-bar { min-width: 0; }

    /* Alternative cards: single column */
    .rpt-alternative-card { grid-template-columns: 1fr; }
    .rpt-alternative-rank-circle { width: 32px; height: 32px; font-size: 12px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
    .rpt-header { display: none; }

    .rpt-archetype-card,
    .rpt-play-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-200);
    }

    .rpt-play-body { display: block !important; }
    .rpt-play-preview { display: none; }
}
