.dod-chart {
    --dod-ink: #172f3a;
    --dod-muted: #435e65;
    --dod-rule: #d8e3e0;
    --dod-teal: #007c6d;
    box-sizing: border-box;
    container-type: inline-size;
    margin: 1.85rem 0;
    padding: clamp(12px, 3%, 26px);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--dod-rule);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(17, 41, 56, .06);
    color: var(--dod-ink);
    font-family: system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.dod-chart .dod-chart-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(17px, 4%, 26px);
    border-radius: 8px;
    background: #112938;
    color: #fff;
}

.dod-chart .dod-chart-header::before {
    position: absolute;
    z-index: -1;
    top: -140px;
    right: -105px;
    width: 340px;
    height: 340px;
    background: repeating-radial-gradient(circle, transparent 0 18px, #7be8cf22 19px 20px);
    content: "";
    pointer-events: none;
}

.dod-chart .dod-chart-period {
    color: #a8e4d7;
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: .04em;
}

.dod-chart .dod-chart-header h3 {
    margin: .2em 0 .3em;
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(1.35rem, 3.7cqi, 2.25rem);
    font-weight: 600;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.dod-chart .dod-chart-header p {
    margin: 0;
    color: #d6e9e8;
    font-size: .88rem;
}

.dod-chart ul.dod-chart-key {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.15rem;
    margin: .95rem 0 .6rem;
    padding: 0;
    list-style: none;
}

.dod-chart ul.dod-chart-key > li {
    display: grid;
    grid-template-columns: 25px auto;
    align-items: center;
    gap: .05rem .42rem;
    min-width: 0;
    margin: 0;
    padding: .35rem 1rem .35rem 0;
    list-style: none;
    color: var(--dod-muted);
    font-size: .82rem;
}

.dod-chart .dod-key {
    width: 24px;
    border-top: 3px solid var(--dod-teal);
}

.dod-chart .dod-key-1 { border-color: #3858a0; border-top-style: dashed; }
.dod-chart .dod-key-2 { border-color: #a34f2d; border-top-style: dotted; }
.dod-chart .dod-key-3 { border-color: #795185; border-top-style: dashed; }

.dod-chart .dod-chart-key strong {
    grid-column: 2;
    color: var(--dod-ink);
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
}

.dod-chart .dod-chart-key small {
    grid-column: 2;
    font-size: .76rem;
}

.dod-chart .dod-chart-body {
    padding: 5px 0 0;
    border-radius: 8px;
    background: linear-gradient(#fff, #f7faf9);
}

.dod-chart .dod-plot {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.dod-chart .dod-plot-small { display: none; }

.dod-chart .dod-plot text {
    fill: #405b61;
    font-family: system-ui, sans-serif;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.dod-chart .dod-plot-wide text { font-size: 14px; }
.dod-chart .dod-plot text.dod-plot-axis { font-weight: 650; }

.dod-chart figcaption {
    margin-top: .85rem;
    padding: 0;
    background: transparent;
    color: var(--dod-muted);
    font-style: normal;
    font-size: .86rem;
    text-align: left;
}

.dod-chart figcaption p { margin: .3rem 0; }
.dod-chart figcaption a, .dod-archive a { text-decoration: underline; }

.dod-chart details {
    margin-top: .8rem;
    border-top: 1px solid var(--dod-rule);
}

.dod-chart summary {
    width: fit-content;
    max-width: 100%;
    padding: .65rem 0 .1rem;
    color: #006357;
    cursor: pointer;
    font-weight: 675;
}

.dod-chart summary:focus-visible {
    outline: 2px solid #006357;
    outline-offset: 3px;
}

.dod-chart .dod-chart-table {
    max-height: 24rem;
    margin-top: .55rem;
    overflow: auto;
}

.dod-chart .dod-chart-table table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: var(--dod-ink);
    font-variant-numeric: tabular-nums;
    font-size: .85rem;
}

.dod-chart .dod-chart-table th,
.dod-chart .dod-chart-table td {
    padding: .45rem;
    border-bottom: 1px solid var(--dod-rule);
    text-align: left;
    white-space: normal;
}

.dod-chart .dod-chart-table thead th {
    position: sticky;
    z-index: 1;
    top: 0;
    background: #edf4f2;
    font-weight: 700;
}

.dod-chart .dod-chart-table tbody th { font-weight: 500; }
.dod-chart .dod-chart-table tr > :last-child { text-align: right; }

.dod-archive {
    margin: .65rem 0;
    padding: .55em .8em;
    border-left: 3px solid #9dbab4;
    background: #f4f8f7;
    color: #435e65;
    font-size: .9rem;
}

@container (max-width: 520px) {
    .dod-chart .dod-plot-wide { display: none; }
    .dod-chart .dod-plot-small { display: block; }
}

@media print {
    .dod-chart {
        break-inside: avoid;
        box-shadow: none;
    }
    .dod-chart .dod-chart-header {
        background: #fff;
        color: #172f3a;
    }
    .dod-chart .dod-chart-header h3,
    .dod-chart .dod-chart-header p,
    .dod-chart .dod-chart-period { color: #172f3a; }
}
