.report-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background-color: var(--ir-bg-surface);
    border: 1px solid var(--ir-border-slate);
    border-radius: 7px;
    overflow: hidden;
}
.report-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}
.report-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.report-placeholder-thumb {
    height: 200px;
    background: var(--ir-bg-deep);
    font-size: 0.9rem;
    color: var(--ir-text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured report hero on homepage */
.report-hero .card-img-top {
    height: 300px;
    object-fit: cover;
}
.report-hero .report-placeholder-thumb {
    height: 300px;
}

/* Chart containers */
.chart-container {
    min-height: 400px;
    border: 1px solid var(--ir-border-slate);
    border-radius: 7px;
    overflow: hidden;
    background-color: var(--ir-bg-deep);
}
.chart-loading {
    min-height: 400px;
}
.chart-error {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ir-error);
}

/* Report detail */
.report-detail h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--ir-border-slate);
    padding-bottom: 0.5rem;
    color: var(--ir-text-primary);
}
.report-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ir-text-secondary);
}
.section-commentary {
    color: var(--ir-text-secondary);
}

/* Highlight cards on profile pages */
.highlight-card {
    background-color: var(--ir-bg-surface);
    border: 1px solid var(--ir-border-slate);
    border-left: 4px solid var(--ir-border-slate);
    border-radius: 7px;
    padding: 1rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}
.highlight-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}
.highlight-rank {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ir-text-primary);
    min-width: 2.5rem;
}
.highlight-report-name {
    font-weight: 600;
    color: var(--ir-text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}
.highlight-headline {
    color: var(--ir-accent-teal);
    font-weight: 600;
    font-size: 0.9rem;
}
.highlight-category {
    color: var(--ir-text-secondary);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}
.highlight-trend {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}
.highlight-trend-up { color: var(--ir-success); }
.highlight-trend-down { color: var(--ir-error); }

/* Color variants */
.highlight-danger { border-left-color: #ef4444; }
.highlight-primary { border-left-color: var(--ir-accent-teal); }
.highlight-success { border-left-color: #22c55e; }
.highlight-info { border-left-color: #06b6d4; }

/* Table sections */
.table-section table {
    width: 100%;
}
.table-section th,
.table-section td {
    padding: 0.5rem;
}

/* ── Standardized score lozenges ──────────────────── */
.score-lozenge {
    display: inline-block;
    font-weight: 600;
    font-size: 0.85em;
    padding: 0.15em 0.5em;
    border-radius: 0.25rem;
    white-space: nowrap;
    line-height: 1.3;
    text-align: center;
    min-width: 3em;
}
.score-lozenge-top    { background: rgba(34, 197, 94, 0.35);  color: #22c55e; }
.score-lozenge-high   { background: rgba(34, 197, 94, 0.2);  color: #4ade80; }
.score-lozenge-mid    { background: rgba(245, 158, 11, 0.25); color: #f59e0b; }
.score-lozenge-low    { background: rgba(239, 68, 68, 0.2);  color: #f87171; }
.score-lozenge-bottom { background: rgba(239, 68, 68, 0.35);  color: #ef4444; }

/* ── Standardized delta / trend indicators ─────────── */
.delta-cell       { white-space: nowrap; }
.delta-up         { color: var(--ir-success); }
.delta-down       { color: var(--ir-error); }
.delta-flat       { color: var(--ir-text-secondary); }
.delta-new        { color: #06b6d4; font-weight: 600; }
/* Inverted delta — increase = bad (e.g. incidents) */
.delta-up-bad     { color: var(--ir-error); }
.delta-down-good  { color: var(--ir-success); }

/* ── Entity logos in tables (fixed-width for alignment) ── */
.entity-cell { display: inline-flex; align-items: center; }
.entity-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    margin-right: 4px;
}
.entity-logo img { height: 20px; max-width: 40px; object-fit: contain; }
