:root {
    --burgundy: #861d48;
    --burgundy-dark: #5c1232;
    --coral: #dd5a68;
    --teal: #2f9f98;
    --ink: #24303a;
    --muted: #66737d;
    --line: #e5dfe1;
    --paper: #f6f3f2;
    --card: #fff;
    --shadow: 0 18px 40px rgba(67, 20, 40, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #fff 0, var(--paper) 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

a {
    color: inherit;
}

.skip-link {
    background: var(--burgundy);
    color: #fff;
    left: 1rem;
    padding: .65rem 1rem;
    position: fixed;
    top: -5rem;
    z-index: 20;
}

.skip-link:focus {
    top: 1rem;
}

.topline {
    background: linear-gradient(90deg, var(--burgundy) 0 64%, var(--coral) 64% 82%, var(--teal) 82%);
    height: 6px;
}

.shell {
    margin: 0 auto;
    max-width: 1380px;
    padding: 24px 24px 64px;
}

.site-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-bottom: 18px;
}

.brand {
    align-items: center;
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    align-items: flex-end;
    background: var(--burgundy);
    border-radius: 50%;
    display: inline-flex;
    gap: 3px;
    height: 42px;
    justify-content: center;
    padding: 10px;
    width: 42px;
}

.brand-mark i {
    background: #fff;
    border-radius: 4px 4px 1px 1px;
    display: block;
    height: 10px;
    opacity: .72;
    width: 4px;
}

.brand-mark i:nth-child(2) {
    height: 18px;
    opacity: 1;
}

.brand-mark i:nth-child(3) {
    background: #f3b0b7;
    height: 14px;
    opacity: 1;
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    color: var(--burgundy);
    font-size: 16px;
}

.brand-copy span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.nav-links,
.download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links {
    justify-content: flex-end;
}

.pill,
.chip {
    background: #fff;
    border: 1px solid #dccfd3;
    border-radius: 999px;
    color: var(--burgundy);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 11px;
    text-decoration: none;
}

.chip {
    font-size: 11px;
    padding: 5px 9px;
}

.hero {
    align-items: end;
    display: grid;
    gap: 18px;
    grid-template-columns: 1.15fr .85fr;
    padding: 34px 0 24px;
}

.hero-index {
    padding-top: 48px;
}

.hero h1 {
    color: var(--burgundy);
    font-size: clamp(36px, 4.8vw, 62px);
    letter-spacing: -.055em;
    line-height: .98;
    margin: 0;
}

.hero > div > p:last-child {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 14px 0 0;
    max-width: 70ch;
}

.eyebrow {
    color: var(--coral);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hero-note,
.report-card,
.values-section,
.section-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero-note {
    background: #fff8f9;
    border-color: #ead8dd;
    padding: 20px;
}

.hero-note strong {
    color: var(--burgundy-dark);
    display: block;
}

.hero-note p {
    color: var(--burgundy-dark);
    font-size: 13px;
    line-height: 1.55;
    margin: 8px 0 0;
}

.breadcrumbs {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    padding-top: 24px;
}

.breadcrumbs a {
    color: var(--burgundy);
    font-weight: 700;
}

.section-block,
.report-card,
.values-section {
    margin-top: 18px;
    padding: 24px;
}

.section-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-head.compact {
    margin-bottom: 14px;
}

.section-head h2,
.report-note h2 {
    color: var(--burgundy);
    font-size: 25px;
    letter-spacing: -.03em;
    margin: 0;
}

.section-head p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 7px 0 0;
}

.section-count {
    background: var(--paper);
    border-radius: 999px;
    color: var(--muted);
    flex: none;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 11px;
}

.quarter-list,
.card-grid {
    display: grid;
    gap: 12px;
}

.quarter-row {
    align-items: center;
    background: #faf8f7;
    border: 1px solid #eee8e6;
    border-radius: 16px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 16px;
}

.quarter-label {
    align-items: baseline;
    display: flex;
    gap: 8px;
    min-width: 120px;
}

.quarter-label span {
    background: var(--burgundy);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 8px;
}

.quarter-label strong {
    color: var(--burgundy-dark);
    font-size: 20px;
}

.quarter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.button {
    background: var(--burgundy);
    border: 1px solid var(--burgundy);
    border-radius: 11px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    padding: 10px 14px;
    text-decoration: none;
}

.button.secondary {
    background: #fff;
    border-color: #e0c9cf;
    color: var(--burgundy);
}

.button-disabled {
    background: #eeeae9;
    border-color: #eeeae9;
    color: #928987;
}

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

.institute-card {
    align-items: center;
    background: #faf8f7;
    border: 1px solid #eee8e6;
    border-radius: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr auto;
    min-width: 0;
    padding: 17px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.institute-card:hover,
.institute-card:focus-visible {
    border-color: #d9b9c3;
    box-shadow: 0 18px 36px rgba(67, 20, 40, .1);
    transform: translateY(-2px);
}

.institute-code,
.shortcut,
.category-code,
.value-code {
    background: #f2e7ea;
    border-radius: 8px;
    color: var(--burgundy);
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 9px;
}

.institute-card strong,
.institute-card small {
    display: block;
}

.institute-card strong {
    color: var(--burgundy-dark);
    line-height: 1.35;
}

.institute-card small {
    color: var(--muted);
    margin-top: 4px;
}

.card-arrow {
    color: var(--coral);
    font-size: 24px;
}

.report-meta dl,
.report-meta dd {
    margin: 0;
}

.report-meta dl {
    display: grid;
    gap: 9px;
}

.report-meta dl div {
    display: flex;
    font-size: 12px;
    gap: 12px;
    justify-content: space-between;
}

.report-meta dt {
    color: var(--muted);
    font-weight: 700;
}

.report-meta dd {
    color: var(--burgundy-dark);
    font-weight: 800;
    text-align: right;
}

.download-row {
    margin-top: 15px;
}

.negative {
    color: #a72020 !important;
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    border-top: 1px solid var(--line);
    padding: 12px 11px;
    vertical-align: top;
}

thead th {
    border-top: 0;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .09em;
    text-align: left;
    text-transform: uppercase;
}

.comparison-table,
.country-table {
    min-width: 700px;
}

.comparison-table tbody th,
.country-table tbody th,
.object-table tbody th {
    color: var(--burgundy-dark);
    text-align: left;
}

.comparison-table td,
.country-table td,
.object-table td {
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.not-reported {
    color: var(--muted);
    font-style: italic;
    font-weight: 500;
}

.object-table {
    min-width: 620px;
}

.object-country th,
.object-country td {
    font-weight: 800;
}

.object-group th {
    font-weight: 600;
}

.object-item th {
    color: var(--muted) !important;
    font-size: 12px;
    font-weight: 500;
    padding-left: 30px;
}

.pie-layout {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(250px, .75fr) minmax(320px, 1.25fr);
}

.pie-chart-wrap {
    display: flex;
    justify-content: center;
}

.pie-svg {
    height: auto;
    max-width: 330px;
    overflow: visible;
    width: 100%;
}

.pie-slice {
    cursor: pointer;
    transition: opacity .16s ease, stroke-width .16s ease;
}

.pie-slice:hover {
    opacity: .78;
    stroke-width: 48;
}

.pie-center-label,
.pie-center-sub {
    fill: var(--burgundy-dark);
    text-anchor: middle;
}

.pie-center-label {
    font-size: 17px;
    font-weight: 800;
}

.pie-center-sub {
    fill: var(--muted);
    font-size: 9px;
}

.pie-legend {
    display: grid;
    gap: 6px;
    max-height: 330px;
    overflow: auto;
    padding-right: 5px;
}

.pie-legend-item {
    align-items: center;
    background: #faf8f7;
    border-radius: 9px;
    display: grid;
    font-size: 12px;
    gap: 9px;
    grid-template-columns: 11px minmax(0, 1fr) auto;
    padding: 8px 10px;
}

.pie-legend-item strong {
    color: var(--burgundy-dark);
}

.pie-swatch {
    border-radius: 3px;
    height: 11px;
    width: 11px;
}

.category-section {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.category-section + .category-section {
    margin-top: 24px;
}

.category-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.category-heading h3,
.category-heading p {
    margin: 0;
}

.category-heading h3 {
    color: var(--burgundy-dark);
    font-size: 19px;
}

.category-heading p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.site-details {
    border: 1px solid var(--line);
    border-radius: 13px;
    margin-top: 10px;
    overflow: hidden;
}

.site-details summary {
    align-items: center;
    background: #faf8f7;
    cursor: pointer;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 16px;
}

.site-details summary span,
.site-details summary strong,
.site-details summary small {
    display: block;
}

.site-details summary strong {
    color: var(--burgundy-dark);
}

.site-details summary small,
.site-details summary > span:last-child {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.data-table {
    font-size: 12px;
    min-width: 980px;
}

.data-table td small,
.data-table td strong {
    display: block;
}

.data-table td small {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 3px;
}

.data-table td:nth-child(1) {
    width: 70px;
}

.data-table td:nth-child(2) {
    width: 28%;
}

.data-table td:nth-child(3),
.data-table td:nth-child(4) {
    width: 18%;
}

.value-code {
    font-size: 10px;
    padding: 4px 6px;
}

.value-cell {
    text-align: right;
    white-space: nowrap;
}

.value-cell strong,
.value-cell span {
    display: inline !important;
}

.value-cell small {
    margin-top: 4px !important;
}

.empty-row {
    background: #fcfbfa;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.details-empty,
.empty-state {
    color: var(--muted);
    padding: 24px;
}

.empty-state {
    background: #faf8f7;
    border-radius: 16px;
    text-align: center;
}

.report-note {
    background: #fff8f9;
    border: 1px solid #ead8dd;
    border-radius: 18px;
    margin-top: 18px;
    padding: 22px;
}

.report-note h2 {
    font-size: 20px;
}

.report-note ul {
    color: var(--burgundy-dark);
    font-size: 13px;
    line-height: 1.55;
    margin: 12px 0 0;
    padding-left: 20px;
}

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 8px 18px;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 18px;
}

@media (max-width: 860px) {
    .hero,
    .card-grid,
    .pie-layout {
        grid-template-columns: 1fr;
    }

    .quarter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .quarter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .shell {
        padding: 18px 14px 44px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 28px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .section-block,
    .report-card,
    .values-section {
        border-radius: 15px;
        padding: 18px;
    }

    .section-head {
        flex-direction: column;
    }

    .quarter-actions,
    .button {
        width: 100%;
    }

    .pie-svg {
        max-width: 280px;
    }
}
