/**
 * S&P 500 Email Security Report — Styles
 *
 * Pure CSS chart visualizations and page layout for the report page.
 * No JavaScript charting libraries required.
 * Responsive from 320px to 2560px viewport widths.
 */

/* ============================================================
   Report Page Layout
   ============================================================ */

.content-wrapper article {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Constrain content on ultrawide screens */
@media (min-width: 1600px) {
    .content-wrapper article {
        max-width: 1100px;
    }
}

@media (min-width: 2200px) {
    .content-wrapper article {
        max-width: 1200px;
    }
}

/* Report sections spacing */
.content-wrapper article > section {
    margin-bottom: 3.5rem;
}

.content-wrapper article > section:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Page Header
   ============================================================ */

.page-header {
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--sans);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.report-timestamp {
    display: inline-block;
    font-size: 0.8rem;
    font-family: var(--mono);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* ============================================================
   Section Headings (h2, h3)
   ============================================================ */

.content-wrapper article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--sans);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.content-wrapper article h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--sans);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Section subtitles */
.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Grade Distribution Chart
   ============================================================ */

.grade-chart {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grade-chart-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr 4rem;
    align-items: center;
    gap: 0.75rem;
    min-height: 2rem;
}

.grade-chart-label {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

.grade-chart-track {
    position: relative;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow: visible;
}

.grade-chart-bar {
    height: 100%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    transition: width 0.3s ease;
    min-width: 0;
}

/* Color coding: green for A grades */
.bar-grade-a {
    background: rgba(52, 211, 153, 0.6);
    border: 1px solid rgba(52, 211, 153, 0.8);
}

/* Color coding: yellow for B grades */
.bar-grade-b {
    background: rgba(251, 191, 36, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.7);
}

/* Color coding: orange for C grades */
.bar-grade-c {
    background: rgba(251, 146, 60, 0.5);
    border: 1px solid rgba(251, 146, 60, 0.7);
}

/* Color coding: red for D grades */
.bar-grade-d {
    background: rgba(248, 113, 113, 0.5);
    border: 1px solid rgba(248, 113, 113, 0.7);
}

/* Color coding: red for F grade */
.bar-grade-f {
    background: rgba(248, 113, 113, 0.6);
    border: 1px solid rgba(248, 113, 113, 0.8);
}

.grade-chart-bar-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.grade-chart-zero-label {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.grade-chart-percentage {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right;
}

/* ============================================================
   Protocol Adoption Chart
   ============================================================ */

.protocol-adoption-chart {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.protocol-bar-row {
    display: grid;
    grid-template-columns: 5rem 1fr 3.5rem;
    align-items: center;
    gap: 0.75rem;
    min-height: 2rem;
}

.protocol-label {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.protocol-bar-track {
    position: relative;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.protocol-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: rgba(59, 130, 246, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.7);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    transition: width 0.3s ease;
}

.protocol-bar-fill.protocol-bar-zero {
    background: none;
    border: none;
}

.protocol-bar-text {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.protocol-rate-label {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: right;
}

.protocol-rate-label.protocol-rate-zero {
    color: var(--text-muted);
}

/* ============================================================
   Responsive adjustments
   ============================================================ */

@media (max-width: 480px) {
    .grade-chart-row {
        grid-template-columns: 2rem 1fr 3.5rem;
        gap: 0.5rem;
    }

    .grade-chart-label {
        font-size: 0.7rem;
    }

    .grade-chart-percentage {
        font-size: 0.7rem;
    }

    .protocol-bar-row {
        grid-template-columns: 4rem 1fr 3rem;
        gap: 0.5rem;
    }

    .protocol-label {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   Pillar Breakdown
   ========================================================================== */

.pillar-breakdown-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pillar-breakdown-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pillar-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pillar-bar-label {
    flex-shrink: 0;
    width: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--mono);
}

.pillar-bar-track {
    flex: 1;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: visible;
    position: relative;
}

.pillar-bar-fill {
    height: 100%;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    transition: width 0.6s ease;
    min-width: 0;
    position: relative;
}

.pillar-bar-fill--identity {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.85));
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.pillar-bar-fill--shadow {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0.85));
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.pillar-bar-fill--reputation {
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.6), rgba(20, 184, 166, 0.85));
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.3);
}

.pillar-bar-value {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--mono);
    color: #ffffff;
    white-space: nowrap;
}

/* Position label outside bar when bar is too narrow to contain it */
.pillar-bar-fill--narrow .pillar-bar-value {
    position: absolute;
    left: calc(100% + 0.5rem);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .pillar-bar-label {
        width: 80px;
        font-size: 0.8rem;
    }

    .pillar-bar-track {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .pillar-bar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .pillar-bar-label {
        width: auto;
    }

    .pillar-bar-track {
        width: 100%;
    }
}

/* ============================================================
   Domain Lookup Table
   ============================================================ */

.domain-table-controls {
    margin-bottom: 1rem;
}

.domain-search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-family: var(--mono);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.domain-search-input::placeholder {
    color: var(--text-muted);
}

.domain-search-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.domain-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.domain-table {
    width: 100%;
    border-collapse: collapse;
}

.domain-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.75rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    user-select: none;
}

.domain-table thead th.sortable {
    cursor: pointer;
    transition: color 0.15s;
}

.domain-table thead th.sortable:hover {
    color: var(--text-primary);
}

.domain-table thead th.active-sort {
    color: var(--neon-blue-bright);
}

.domain-table thead th .sort-indicator {
    display: inline-block;
    width: 1em;
    font-size: 0.65rem;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.domain-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.domain-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.domain-table tbody td {
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
    vertical-align: middle;
}

.domain-table .col-domain a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--mono);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.domain-table .col-domain a:hover {
    color: var(--neon-blue-bright);
}

.domain-table .col-score {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--text-primary);
}

.domain-table .col-pillar {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.domain-table-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Responsive: domain table */
@media (max-width: 768px) {
    .domain-search-input {
        max-width: 100%;
    }

    .domain-table thead th,
    .domain-table tbody td {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }

    .domain-table .col-domain a {
        font-size: 0.75rem;
    }

    .domain-table .col-pillar {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .domain-table thead th,
    .domain-table tbody td {
        padding: 0.4rem 0.35rem;
    }

    /* Hide pillar columns on very small screens to prevent overflow */
    .domain-table th.col-pillar,
    .domain-table td.col-pillar {
        display: none;
    }
}


/* ============================================================
   Executive Summary
   ============================================================ */

.sp500-executive-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.executive-summary-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.executive-summary-logo img {
    height: 36px;
    width: auto;
}

.executive-summary-header h2 {
    margin-bottom: 0;
}

.executive-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--mono);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-value.stat-grade {
    font-size: 2.25rem;
}

.stat-value.stat-grade.grade-a { color: var(--neon-mint-bright); }
.stat-value.stat-grade.grade-b { color: var(--neon-mint-bright); }
.stat-value.stat-grade.grade-c { color: #fbbf24; }
.stat-value.stat-grade.grade-d { color: #f59e0b; }
.stat-value.stat-grade.grade-f { color: #f87171; }

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.executive-summary-narrative {
    margin-bottom: 1.5rem;
}

.executive-summary-narrative p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.executive-summary-cta {
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--neon-blue);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 12px var(--neon-blue-glow);
    transition: background 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    background: #2563eb;
    box-shadow: 0 0 20px var(--neon-blue-glow);
}

/* ============================================================
   Top Performers Table
   ============================================================ */

.top-performers-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.top-performers-table {
    width: 100%;
    border-collapse: collapse;
}

.top-performers-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.75rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.top-performers-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.top-performers-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.top-performers-table tbody td {
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
    vertical-align: middle;
}

.top-performers-table .col-rank {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    width: 2.5rem;
}

.top-performers-table .col-domain a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--mono);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.top-performers-table .col-domain a:hover {
    color: var(--neon-blue-bright);
}

.top-performers-table .col-score {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--text-primary);
}

.top-performers-table .col-pillar {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.top-performers-table .col-grade {
    text-align: center;
}

/* ============================================================
   Common Vulnerabilities Table
   ============================================================ */

.vulnerabilities-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vulnerabilities-table {
    width: 100%;
    border-collapse: collapse;
}

.vulnerabilities-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.75rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.vulnerabilities-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.vulnerabilities-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.vulnerabilities-table tbody td {
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
    vertical-align: middle;
}

.vulnerabilities-table .col-rank {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    width: 2.5rem;
}

.vulnerabilities-table .col-name {
    font-weight: 500;
    color: var(--text-primary);
}

.vulnerabilities-table .col-count {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text-primary);
}

.vulnerabilities-table .col-percentage {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================================================
   Key Findings
   ============================================================ */

.key-findings-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.key-finding-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.key-finding-card:hover {
    border-color: var(--border-hover);
}

.key-finding-statistic {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.key-finding-insight {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-left: 0;
}

/* ============================================================
   Methodology
   ============================================================ */

.methodology-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.methodology-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.methodology-section h3 {
    margin-bottom: 0.75rem;
}

.methodology-pillars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.methodology-pillar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.methodology-pillar dt {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--mono);
    margin-bottom: 0.4rem;
}

.methodology-pillar dd {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-left: 0;
}

.methodology-grade-scale {
    margin-top: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.grade-scale-table {
    border-collapse: collapse;
    width: auto;
    min-width: 200px;
}

.grade-scale-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.grade-scale-table tbody td {
    font-size: 0.85rem;
    font-family: var(--mono);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-bottom: 1px solid var(--border);
}

.grade-scale-table tbody tr:last-child td {
    border-bottom: none;
}

/* Data unavailable placeholder */
.data-unavailable {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* ============================================================
   Responsive: Tablet (768px)
   ============================================================ */

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .content-wrapper article h2 {
        font-size: 1.25rem;
    }

    .content-wrapper article h3 {
        font-size: 1rem;
    }

    .content-wrapper article > section {
        margin-bottom: 2.5rem;
    }

    /* Executive summary */
    .sp500-executive-summary {
        padding: 1.5rem;
    }

    .executive-summary-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-value.stat-grade {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-card {
        padding: 1rem 0.5rem;
    }

    /* Tables */
    .top-performers-table thead th,
    .top-performers-table tbody td {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }

    .top-performers-table .col-domain a {
        font-size: 0.75rem;
    }

    .top-performers-table .col-pillar {
        font-size: 0.7rem;
    }

    .vulnerabilities-table thead th,
    .vulnerabilities-table tbody td {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Key findings */
    .key-finding-statistic {
        font-size: 0.9rem;
    }

    .key-finding-insight {
        font-size: 0.85rem;
    }

    .key-finding-card {
        padding: 1.25rem;
    }
}

/* ============================================================
   Responsive: Mobile (480px)
   ============================================================ */

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.25rem;
    }

    .page-header p {
        font-size: 0.85rem;
    }

    .report-timestamp {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .content-wrapper article h2 {
        font-size: 1.1rem;
    }

    .content-wrapper article h3 {
        font-size: 0.95rem;
    }

    .content-wrapper article > section {
        margin-bottom: 2rem;
    }

    /* Executive summary */
    .sp500-executive-summary {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .executive-summary-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-card {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .stat-value.stat-grade {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
        text-align: right;
    }

    .executive-summary-narrative p {
        font-size: 0.85rem;
    }

    .cta-button {
        display: block;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }

    /* Tables: hide pillar columns on very small screens */
    .top-performers-table th.col-pillar,
    .top-performers-table td.col-pillar {
        display: none;
    }

    .top-performers-table thead th,
    .top-performers-table tbody td {
        padding: 0.4rem 0.35rem;
    }

    .vulnerabilities-table thead th,
    .vulnerabilities-table tbody td {
        padding: 0.4rem 0.35rem;
        font-size: 0.7rem;
    }

    /* Hide severity column on very small screens */
    .vulnerabilities-table th.col-severity,
    .vulnerabilities-table td.col-severity {
        display: none;
    }

    /* Key findings */
    .key-finding-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .key-finding-statistic {
        font-size: 0.85rem;
    }

    .key-finding-insight {
        font-size: 0.8rem;
    }

    /* Methodology */
    .methodology-section p {
        font-size: 0.85rem;
    }

    .methodology-pillar {
        padding: 0.75rem 1rem;
    }

    .methodology-pillar dt {
        font-size: 0.8rem;
    }

    .methodology-pillar dd {
        font-size: 0.8rem;
    }
}

/* ============================================================
   Responsive: Small Mobile (320px)
   ============================================================ */

@media (max-width: 360px) {
    .page-header h1 {
        font-size: 1.1rem;
    }

    .sp500-executive-summary {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-value.stat-grade {
        font-size: 1.25rem;
    }

    .executive-summary-logo img {
        height: 28px;
    }

    .cta-button {
        font-size: 0.85rem;
        padding: 0.625rem 1.25rem;
    }

    .grade-scale-table thead th,
    .grade-scale-table tbody td {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* ============================================================
   Responsive: Large Desktop (1440px+)
   ============================================================ */

@media (min-width: 1440px) {
    .page-header h1 {
        font-size: 2.25rem;
    }

    .content-wrapper article h2 {
        font-size: 1.625rem;
    }

    .executive-summary-stats {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 2.25rem;
    }

    .key-findings-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   Responsive: Ultrawide (2560px)
   ============================================================ */

@media (min-width: 2200px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .content-wrapper article h2 {
        font-size: 1.75rem;
    }

    .content-wrapper article h3 {
        font-size: 1.2rem;
    }

    .executive-summary-stats {
        gap: 2rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .stat-card {
        padding: 1.5rem 1.25rem;
    }

    .key-findings-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .key-finding-card {
        padding: 2rem;
    }

    .key-finding-statistic {
        font-size: 1.1rem;
    }

    .key-finding-insight {
        font-size: 1rem;
    }
}
