@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/ibm-plex-sans.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/ibm-plex-sans-italic.woff2') format('woff2');
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Allo';
  src: url('/fonts/allo.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Berkeley Mono';
  src: url('/fonts/berkeley-mono-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Berkeley Mono';
  src: url('/fonts/berkeley-mono-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Berkeley Mono';
  src: url('/fonts/berkeley-mono-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --paper: #ffffff;
  --ink: #191a1c;
  --muted: #54585f;
  --rule: #c6c9cb;
  --fine: #e2e4e6;
  --surface: #f6f7f7;
  --blue: #0094ff;
  --night: #111111;
  --error: #b42349;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --display: Allo, var(--body);
  --mono: 'Berkeley Mono', ui-monospace, monospace;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--ink);
  text-decoration-color: #969b9f;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
}
button,
select,
textarea {
  font: inherit;
  color: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
svg:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
::selection {
  color: var(--ink);
  background: #a4e4ff;
}

.wrap {
  width: min(880px, calc(100% - 36px));
  margin-inline: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400;
}
code,
pre,
kbd,
samp {
  font-family: var(--mono);
}
.mast h1,
.chapter h2,
.figure-head h3,
.dataset-head h2 {
  font-family: var(--display);
  font-weight: 520;
}
.mast {
  position: sticky;
  top: 0;
  z-index: 5;
  color: var(--ink);
  background: var(--paper);
}
.mast-inner {
  border-bottom: 1px solid var(--fine);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 52px;
}
.mast h1 {
  font-size: 23px;
  font-weight: 580;
  line-height: 1;
  letter-spacing: -0.03em;
}
.mast h1 > span {
  color: var(--muted);
  font-weight: 400;
}
.brand-year {
  color: var(--blue);
}
.mast a {
  color: inherit;
  text-decoration: none;
}
.mast a:hover {
  text-decoration: underline;
}
.mast nav {
  font-size: 15px;
  font-weight: 500;
}
.atlas {
  --column-gap: clamp(24px, 3.2vw, 54px);
  --note-width: clamp(162px, 15.5vw, 218px);
}
.atlas .wrap {
  width: min(1410px, calc(100% - clamp(40px, 6vw, 100px)));
}
.atlas-layout {
  display: grid;
  grid-template-columns: clamp(148px, 14vw, 195px) minmax(0, 1fr);
  column-gap: var(--column-gap);
  align-items: start;
}
.contents {
  position: sticky;
  top: 52px;
  max-height: calc(100vh - 52px);
  overflow-y: auto;
  padding: 23px 0;
  font-size: 15px;
  line-height: 1.3;
}
.contents-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.contents ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.contents li + li {
  margin-top: 3px;
}
.contents a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--muted);
}
.contents a:hover {
  color: var(--ink);
  background: var(--surface);
}
.contents a[aria-current] {
  color: var(--ink);
  border-left-color: var(--blue);
  font-weight: 550;
}
.contents button {
  display: none;
}
.chapter,
.figure,
#collection {
  scroll-margin-top: 64px;
}
.chapter {
  margin-bottom: 28px;
}
.chapter h2 {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  padding-top: 22px;
  margin-bottom: 4px;
}
.figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--note-width);
  column-gap: var(--column-gap);
  --figure-pad: 16px;
  padding: 0 0 18px;
}
.figure + .figure .figure-head {
  border-top: 1px solid var(--rule);
}
.figure-head {
  padding-top: var(--figure-pad);
  grid-column: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}
.figure-head h3 {
  font-size: 20px;
  line-height: 1.13;
  letter-spacing: -0.018em;
}
.data-link {
  flex: none;
  color: var(--muted);
  font-size: 15px;
}
.plot-holder {
  grid-column: 1;
  min-width: 0;
  min-height: 290px;
}
.margin-note {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: calc(29px + var(--figure-pad));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}
.citation {
  margin-top: 7px;
  padding-left: 11px;
  border-left: 2px solid var(--rule);
  font: 13px/1.35 var(--body);
  color: var(--muted);
}
.citation:first-child {
  margin-top: 0;
}
.citation-label {
  margin-right: 5px;
  font: 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.citation-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
}
.citation-table {
  font: 10px/1.3 var(--mono);
  overflow-wrap: anywhere;
}
.citation .data-link {
  display: inline-block;
  font: 500 13px var(--body);
  color: var(--ink);
  margin-top: 2px;
}
.panel-name {
  font-size: 15px;
  font-style: italic;
}
.change-base {
  color: var(--muted);
  font: 13px/1.4 var(--body);
  margin-bottom: 4px;
}
.y-title {
  font: 13px var(--body);
  fill: var(--ink);
}
.drawing {
  position: relative;
}
.drawing > svg {
  display: block;
}
.line-labels,
.embedded-key {
  pointer-events: none;
}
.line-labels text {
  font: 13px var(--body);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.chart-legend {
  border-collapse: collapse;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.2 var(--body);
}
.chart-legend td {
  vertical-align: top;
  padding: 3px 5px 3px 26px;
  text-indent: -21px;
  text-align: left;
  overflow-wrap: anywhere;
  border-block: 1px solid var(--fine);
}
.swatch {
  display: inline-block;
  width: 15px;
  margin-right: 6px;
  border-top: 2px solid;
  vertical-align: 0.25em;
}
.swatch.dash {
  border-top-style: dashed;
}
.swatch.block {
  border: 0;
  height: 8px;
  background: currentColor;
  vertical-align: 0;
}
.swatch.point {
  border: 0;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  margin-inline: 4px 11px;
  vertical-align: 0.1em;
  background: currentColor;
}
.tick,
.country {
  font: 10px var(--mono);
  fill: var(--muted);
}
.country {
  font: 12px var(--body);
}
.grid {
  stroke: var(--fine);
  stroke-width: 0.8;
}
.axis {
  stroke: var(--rule);
  stroke-width: 0.9;
}
.reference {
  pointer-events: none;
}
.reference line {
  stroke: #8c9095;
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
}
.reference text {
  fill: var(--muted);
  font: 10px var(--mono);
}
.cursor {
  stroke: var(--muted);
  stroke-dasharray: 2 3;
  pointer-events: none;
}
.hit {
  cursor: crosshair;
  touch-action: pan-y;
}
.tooltip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  min-width: 120px;
  max-width: min(320px, 100%);
  padding: 10px 13px;
  color: white;
  background: var(--night);
  box-shadow: 0 3px 12px #11111126;
  border-radius: 5px;
}
.tip-date {
  font: 12px var(--mono);
}
.tip-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.22;
  margin-top: 5px;
}
.tip-name {
  color: color-mix(in srgb, var(--ink) 35%, white);
}
.tip-row b {
  font: 11px var(--mono);
}
.tip-detail {
  grid-column: 1/-1;
  font-size: 13px;
  font-style: italic;
  color: #dedfe2;
}
.skip,
.sr-only {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  left: 20px;
  top: 10px;
  z-index: 15;
  background: var(--paper);
  height: auto;
  width: auto;
  clip-path: none;
  padding: 8px;
}

.table-scroll {
  overflow: auto;
  max-height: 65vh;
  border-block: 1px solid var(--rule);
}
.table-scroll table {
  border-collapse: separate;
  border-spacing: 0;
  font: 12px/1.5 var(--mono);
  width: 100%;
}
.table-scroll td,
.table-scroll th {
  text-align: left;
  border-bottom: 1px solid var(--fine);
  padding: 8px 12px;
  white-space: nowrap;
}
.table-scroll th {
  background: var(--surface);
  position: sticky;
  top: 0;
  font-weight: 400;
  color: var(--ink);
}
.query-error {
  border-left: 2px solid var(--error);
  padding: 10px 14px;
  font: 13px/1.5 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 999px) {
  .figure {
    grid-template-columns: minmax(0, 1fr);
  }
  .margin-note {
    grid-row: auto;
    grid-column: 1;
    padding: 5px 0 0;
    max-width: 70ch;
  }
}
@media (max-width: 760px) {
  .atlas .wrap {
    width: calc(100% - 28px);
  }
  .atlas-layout {
    display: block;
  }
  .mast-inner {
    height: 44px;
  }
  .contents {
    z-index: 4;
    top: 44px;
    overflow: visible;
    padding: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--fine);
  }
  .contents-title {
    display: none;
  }
  .contents button {
    display: block;
    position: relative;
    width: 100%;
    padding: 6px 0;
    text-align: left;
    font-weight: 550;
    color: var(--ink);
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .contents button::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border: solid var(--muted);
    border-width: 0 1px 1px 0;
    margin: 0 0 3px 8px;
    transform: rotate(45deg);
  }
  .contents button[aria-expanded='true']::after {
    transform: rotate(225deg);
    margin-bottom: 0;
  }
  .contents ul {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    padding: 5px 0 10px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
  .contents button[aria-expanded='true'] + ul {
    display: block;
  }
  .atlas .chapter,
  .atlas .figure,
  #collection {
    scroll-margin-top: 84px;
  }
  .margin-note {
    font-size: 13px;
  }
}
@media (max-width: 660px) {
  .wrap {
    width: calc(100% - 26px);
  }
  .chapter,
  .figure {
    scroll-margin-top: 53px;
  }
  .chapter h2 {
    padding-top: 12px;
  }
  .figure-head h3 {
    font-size: 19px;
  }
  .figure {
    --figure-pad: 11px;
    padding: 0 0 14px;
  }
  .plot-holder {
    min-height: 238px;
  }
}
