:root {
    --navy: #143d59;
    --blue: #3c6997;
    --green: #2e7d32;
    --red: #b22222;
    --amber: #a66b00;

    --page-bg: #f4f6f8;
    --card-bg: #ffffff;
    --border: #dfe5ea;
    --text: #17212b;
    --muted: #65717d;

    --positive-bg: #eaf7ea;
    --negative-bg: #fdecec;
    --neutral-bg: #f3f4f6;

    --shadow:
        0 8px 24px rgba(20, 61, 89, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--page-bg);
}

body {
    margin: 0;
    line-height: 1.5;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--navy);
    color: white;
    border-bottom:
        4px solid rgba(255, 255, 255, 0.12);
}

.site-header .page-shell {
    min-height: 96px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-subtitle {
    margin-top: 2px;
    opacity: 0.82;
    font-size: 0.9rem;
}

.last-updated {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 0.85rem;
}

.last-updated span {
    opacity: 0.72;
}

.hero-section {
    padding: 52px 0 28px;
}

.hero-section h1 {
    margin: 5px 0 8px;
    color: var(--navy);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
}

.eyebrow {
    margin: 0;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.report-section {
    margin: 28px 0;
}

.section-heading {
    margin-bottom: 14px;

    display: flex;
    align-items: end;
    justify-content: space-between;
}

.section-heading h2 {
    margin: 3px 0 0;
    color: var(--navy);
    font-size: 1.65rem;
}

.metric-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-grid-two {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.metric-grid-three {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.metric-card,
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.metric-card {
    min-height: 118px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.metric-value {
    color: var(--navy);
    font-size: 1.75rem;
    line-height: 1;
}

.positive-card {
    background: var(--positive-bg);
    border-color: rgba(46, 125, 50, 0.35);
}

.negative-card {
    background: var(--negative-bg);
    border-color: rgba(178, 34, 34, 0.32);
}

.neutral-card {
    background: var(--neutral-bg);
}

.two-column-grid {
    margin-top: 14px;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.portfolio-stack {
    display: grid;
    gap: 14px;
}

.content-card {
    padding: 20px;
}

.content-card h3 {
    margin: 0 0 14px;
    color: var(--navy);
}

.card-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;

    border-radius: 999px;
    background: #edf3f8;
    color: var(--navy);

    font-size: 0.78rem;
    font-weight: 800;
}

.ranking-list {
    display: grid;
}

.ranking-row {
    padding: 10px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-row div:first-child {
    display: flex;
    flex-direction: column;
}

.ranking-row span {
    color: var(--muted);
    font-size: 0.8rem;
}

.score {
    font-weight: 800;
}

.positive-text {
    color: var(--green);
}

.negative-text {
    color: var(--red);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th,
td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

th {
    background: #edf3f8;
    color: var(--navy);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

tbody tr:hover {
    background: #f8fafb;
}

.weight-cell {
    background: #fff4b8;
    font-weight: 700;
}

.ultscore-cell {
    font-weight: 700;
}

.ultscore-ranking-primary {
    font-weight: 800;
}

.ultscore-change-positive {
    color: #2e7d32;
    font-weight: 700;
}

.ultscore-change-negative {
    color: #c62828;
    font-weight: 700;
}

.ultscore-change-neutral {
    color: #000000;
}

.ultimate-row {
    background: #eaf7ea;
}

.etf-ranking-scroll {
    max-height: 760px;
    overflow-y: auto;
}

.etf-ranking-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
}

.table-caption,
.empty-state {
    color: var(--muted);
    font-size: 0.9rem;
}

.methodology-box,
.disclosure-box {
    margin-top: 14px;
    padding: 16px 18px;

    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.methodology-box summary,
.disclosure-box summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 800;
}

.site-footer {
    margin-top: 56px;
    padding: 26px 0;

    background: #102f45;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
    margin: 4px 0;
    font-size: 0.82rem;
}

.footer-disclosure {
    max-width: 780px;
}

.plotly-chart {
    width: 100%;
    margin: 0 0 24px;
    overflow: hidden;

    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.plotly-chart iframe {
    display: block;
    width: 100%;
    height: 520px;
    border: 0;
}

/* Public, non-proprietary market-risk presentation */

.risk-assessment-card {
    padding: 24px;
}

.risk-assessment-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}

.risk-assessment-heading>div {
    display: flex;
    flex-direction: column;
}

.risk-assessment-status {
    display: block;
    margin-top: 4px;

    color: var(--navy);
    font-size: 1.65rem;
    line-height: 1.2;
}

.risk-band-wrapper {
    margin: 0 0 44px;
    padding: 0 10px;
}

.risk-band-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;

    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.risk-band {
    position: relative;
    width: 100%;
    height: 30px;

    border: 1px solid rgba(23, 33, 43, 0.18);
    border-radius: 999px;

    background: linear-gradient(90deg,
            #72bf7b 0%,
            #bed66f 30%,
            #e3d66c 50%,
            #efa75d 72%,
            #cf6762 100%);

    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.risk-band-marker {
    position: absolute;
    top: -9px;

    display: flex;
    flex-direction: column;
    align-items: center;

    transform: translateX(-50%);
}

.risk-band-pointer {
    display: block;
    width: 4px;
    height: 48px;

    background: var(--navy);
    border-radius: 999px;

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.9);
}

.risk-band-marker-label {
    display: block;
    margin-top: 7px;
    padding: 4px 9px;

    color: white;
    background: var(--navy);
    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.risk-metrics {
    margin-top: 50px;
}

.risk-assessment-description {
    margin: 22px 0 0;

    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.public-methodology-note {
    max-width: 760px;
    margin: 12px auto 0;

    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.etf-group-stack {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.etf-group-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.etf-group-panel summary {
    padding: 15px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    cursor: pointer;
    color: var(--navy);
    font-weight: 800;
    list-style: none;
}

.etf-group-panel summary::-webkit-details-marker {
    display: none;
}

.etf-group-panel summary::after {
    content: "+";
    margin-left: auto;
    color: var(--blue);
    font-size: 1.15rem;
}

.etf-group-panel[open] summary::after {
    content: "−";
}

.etf-group-count {
    margin-left: auto;
    padding: 3px 8px;

    border-radius: 999px;
    background: #edf3f8;
    color: var(--navy);

    font-size: 0.75rem;
    font-weight: 800;
}

.etf-score-list {
    border-top: 1px solid var(--border);
}

.etf-score-row {
    padding: 11px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border-bottom: 1px solid var(--border);
}

.etf-score-row:last-child {
    border-bottom: 0;
}

.etf-score-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.etf-score-name strong {
    color: var(--navy);
}

.etf-score-name span {
    color: var(--muted);
    font-size: 0.82rem;
}

@media (max-width: 820px) {

    .metric-grid,
    .metric-grid-two,
    .metric-grid-three {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .site-header .page-shell {
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .last-updated {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .metric-grid,
    .metric-grid-two,
    .metric-grid-three {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 34px;
    }

    .content-card {
        padding: 14px;
    }

    .card-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .plotly-chart iframe {
        height: 440px;
    }

    .risk-assessment-card {
        padding: 16px;
    }

    .risk-assessment-heading {
        flex-direction: column;
        margin-bottom: 28px;
    }

    .risk-band-wrapper {
        padding: 0 4px;
    }

    .risk-band-labels {
        font-size: 0.7rem;
    }

    .risk-band-marker-label {
        font-size: 0.62rem;
    }

    .risk-metrics {
        margin-top: 54px;
    }

    .etf-score-row {
        padding: 10px 14px;
    }

    .etf-score-name span {
        font-size: 0.76rem;
    }

    .etf-group-panel summary {
        padding: 12px 14px;
    }

    .etf-group-count {
        font-size: 0.70rem;
    }
}