.atlas {
    --atlas-rule: 1px solid var(--line);
    width: min(100%, 91rem);
    margin: 0 auto;
    padding: 0 var(--gutter) clamp(3rem, 7vw, 7rem);
}
.atlas [hidden] { display: none !important; }
.atlas :is(h1,h2,h3,p,figure,dl,dd) { margin: 0; }
.atlas :is(h1,h2,h3,dt) { color: var(--ink); }
.atlas h2 { font: 750 clamp(2.15rem, 4.25vw, 4.15rem)/1 var(--font-sans); letter-spacing: -.055em; }
.atlas :is(a,button,input,select,summary):focus-visible { outline: 3px solid #466600; outline-offset: 3px; }
.atlas-hero {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center;
    padding-block: clamp(3rem, 7vw, 7rem) clamp(2.75rem, 5.75vw, 5.8rem);
}
.atlas h1 {
    color: var(--ink); font: 800 clamp(4.4rem, 8.6vw, 8.8rem)/.9 var(--font-display);
    letter-spacing: -.05em; text-transform: none;
}
.atlas h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.atlas-intro p { max-width: 34ch; margin-block: 1.25rem 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.42; }
.atlas a { color: inherit; text-decoration: underline; text-underline-offset: .17em; }
.atlas a:hover { text-decoration-thickness: 2px; }
.atlas-text-link { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.atlas-figure { background: var(--ink); color: var(--paper); padding: clamp(1.15rem, 2.55vw, 2.6rem); }
.atlas-figure figcaption { display: flex; flex-direction: column; gap: .4rem; }
.atlas-figure figcaption span, .atlas-axis, .atlas-result-count, .atlas-table thead, .atlas-sources small {
    font: 400 .8rem/1.4 var(--font-mono);
}
.atlas-figure figcaption span { color: #d2d0c9; }
.atlas-figure figcaption strong { font-size: clamp(1.15rem, 2.15vw, 2.05rem); line-height: 1.1; letter-spacing: -.035em; }
.atlas-plot {
    position: relative; padding-left: 2rem; margin-top: 1.4rem; height: clamp(5.6rem, 9vw, 9.8rem);
    background: repeating-linear-gradient(to top, #454641 0 1px, transparent 1px 33.33%);
    border-bottom: 1px solid #a6a79d;
}
.atlas-plot::before,.atlas-plot::after { position: absolute; left: 0; font: 400 .75rem var(--font-mono); color: #dadbd3; background: var(--ink); }
.atlas-plot::before { content: attr(data-peak); top: 0; }
.atlas-plot::after { content: "0"; bottom: 0; }
.atlas-plot svg { display: block; width: 100%; height: 100%; fill: #8d9383; }
.atlas-plot rect:last-child { fill: var(--acid); }
.atlas-plot.has-year rect { fill: #8d9383; }
.atlas-plot.has-year rect.is-current { fill: var(--acid); }
.atlas-axis { padding-left: 2rem; display: flex; justify-content: space-between; padding-top: .35rem; }
.atlas-index, .atlas-method, .atlas-sources { border-top: 2px solid var(--ink); scroll-margin-top: calc(var(--header-height) + 1rem); }
.atlas-index, .atlas-method { padding-block: clamp(1.75rem, 3.5vw, 3.5rem) clamp(3rem, 5vw, 5rem); }
#index-heading { scroll-margin-top: calc(var(--header-height) + 1rem); }
.atlas-section-head, .atlas-pagination, #atlas-pager {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem 1rem;
}
.atlas-switch { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--line); }
.atlas button, .atlas :is(input,select) { font: inherit; color: var(--ink); }
.atlas button { background: transparent; cursor: pointer; }
.atlas button:disabled { cursor: default; opacity: .5; }
.atlas-switch button { min-height: 44px; padding: .5rem 1rem; border: 0; font-weight: 650; }
.atlas-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.atlas-switch button:not([aria-pressed="true"]):hover { background: var(--paper-deep); }
#collection-note { color: #514f47; margin-top: .75rem; max-width: 70ch; }
.atlas-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .4fr); gap: .8rem; margin: 1.45rem 0; }
.atlas-filters label { display: grid; gap: .35rem; align-content: end; font-size: .88rem; font-weight: 700; }
.atlas :is(input,select) { width: 100%; min-width: 0; min-height: 46px; background: #fffdf5; border: 1px solid #878478; border-radius: 0; padding: .55rem .75rem; font-weight: 400; font-size: 1rem; }
.atlas select { cursor: pointer; }
.atlas-result-count { margin-block: 1.25rem .45rem !important; color: #514f47; }
.atlas-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.atlas-table th,.atlas-table td { padding: .85rem .45rem; text-align: left; vertical-align: middle; overflow-wrap: anywhere; border-bottom: var(--atlas-rule); }
.atlas-table thead { background: var(--paper-deep); }
.atlas-table thead th { font-weight: 500; padding-block: .52rem; }
.atlas-table th:first-child,.atlas-table td:first-child { padding-left: .65rem; }
.atlas-table td:first-child { font: 500 1rem var(--font-mono); }
.atlas-table th[scope="row"] { font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 700; line-height: 1.2; }
.atlas-table th a { text-decoration: none; }
.atlas-table th a:hover { text-decoration: underline; }
.atlas-table small { display: block; margin-top: .25rem; color: #55534c; font-weight: 400; font-size: .84rem; line-height: 1.35; }
.atlas-table th:first-child { width: 10%; }
.atlas-table th:nth-child(3) { width: 18%; }
.atlas-table th:nth-child(4) { width: 5.3rem; text-align: center; }
.atlas-table td:last-child:has(button) { text-align: center; }
.atlas-table.is-catalog th:first-child { width: 43%; }
.atlas-table.is-catalog th:nth-child(3) { width: 22%; }
.atlas-add { border: 1px solid #938f82; width: 44px; height: 44px; font-size: 1.3rem !important; line-height: 1; }
.atlas-add[aria-pressed="true"], .atlas-outcomes button:hover { background: var(--acid); }
.atlas-pagination { margin-top: .8rem; }
.atlas-pagination button,.atlas-outcomes button,.atlas-comparison button { min-height: 44px; border: 1px solid #928f82; padding: .45rem .75rem; }
#atlas-pager { justify-content: flex-start; font-size: .92rem; }
#atlas-message { padding-block: 1rem; }
.atlas-comparison { margin-top: 1rem; border-left: 4px solid var(--ink); background: var(--paper-deep); padding: 1rem; }
.atlas-comparison header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.atlas-comparison h3, .atlas-rule h3 { font-size: 1.35rem; }
.atlas-picks { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit,minmax(min(100%, 10.5rem),1fr)); }
.atlas-picks small { display: block; margin-top: .3rem; line-height: 1.45; }
.atlas-method header p { margin-top: 1rem; max-width: 58ch; }
.atlas-method-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; margin-top: 1.7rem; }
.atlas-definitions > div { border-top: var(--atlas-rule); padding: .95rem 0; }
.atlas-definitions dt { font-weight: 750; font-size: 1.13rem; }
.atlas-definitions dd { margin-top: .32rem; color: #44423c; }
.atlas-rule { border: 1px solid #a19c90; padding: clamp(1rem, 2.2vw, 2.2rem); }
.atlas-rule p { margin-block: .55rem .9rem; max-width: 45ch; }
.atlas-outcomes { display: flex; flex-wrap: wrap; gap: .4rem; }
.atlas-outcomes button { min-width: 4rem; }
.atlas-tally { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; margin-block: 1rem .2rem; }
.atlas-tally output { font: 650 2.7rem/1 var(--font-sans); letter-spacing: -.05em; }
.atlas-tally small { flex-basis: 100%; }
.atlas-reset { padding: 0; min-height: 44px; border: 0; text-decoration: underline; text-underline-offset: .2em; }
.atlas-sources { padding-top: 2rem; display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; }
.atlas-sources h2 { font-size: clamp(1.8rem,3vw,3rem); }
.atlas-sources p + p { margin-top: .7rem; }
.atlas-sources small { display: block; margin-top: .85rem; }
.atlas-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 740px) {
    .atlas-hero,.atlas-method-grid,.atlas-sources { grid-template-columns: minmax(0,1fr); }
    .atlas-hero { gap: 1.5rem; }
    .atlas-intro p { margin-block: .9rem .6rem; }
    .atlas-section-head { align-items: flex-start; gap: .9rem; }
    .atlas-table th:nth-child(4) { width: 4rem; }
    .atlas-filters { grid-template-columns: minmax(0,1fr) minmax(0,.82fr); }
    .atlas-method-grid,.atlas-sources { gap: 1.35rem; }
}
@media (max-width: 450px) {
    .atlas h1 { font-size: clamp(3.5rem, 15vw, 4.4rem); }
    .atlas-filters { grid-template-columns: minmax(0,1fr); }
    .atlas-table th,.atlas-table td { padding: .65rem .25rem; }
    .atlas-table th:first-child,.atlas-table td:first-child { padding-left: .25rem; }
    .atlas-table th:first-child { width: 13%; }
    .atlas-table th:nth-child(3) { width: 21%; }
    .atlas-table th:nth-child(4) { width: 3.6rem; font-size: .75rem; }
    .atlas-table.is-catalog th:first-child { width: 30%; }
    .atlas-table.is-catalog th:nth-child(3) { width: 23%; }
    .atlas-plot { height: 6.3rem; }
}

.archive-title { padding-block: clamp(2rem,5vw,5rem); }
.archive-title h1 { font-size: clamp(2.7rem,7vw,6rem); margin-top: 1.25rem; }
.atlas details { border-top: var(--atlas-rule); padding-block: 1rem; }
.atlas details summary { cursor: pointer; }
.atlas details p { max-width: 70ch; margin-top: 1rem; }
