@font-face {
  font-family: "SBS Sans";
  src: url("https://d11zrgpbhs014a.cloudfront.net/assets/fonts/SBS_Sans_6/WOFF2/SBSSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SBS Sans";
  src: url("https://d11zrgpbhs014a.cloudfront.net/assets/fonts/SBS_Sans_6/WOFF2/SBSSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  font-family: "SBS Sans", Arial, sans-serif;
  color: #252a2e;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 375px;
  background: #fff;
}

.embed {
  width: 100%;
  min-width: 375px;
  max-width: 630px;
  margin: 0 auto;
  padding: 20px 18px 16px;
  border-radius: 12px;
  background: #f0f0f0;
}

.intro { margin-bottom: 16px; }

.eyebrow {
  margin: 0 0 5px;
  color: #58636b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(1.6875rem, 1.15rem + 2.3vw, 2.375rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
}

.dek {
  max-width: 550px;
  margin: 9px 0 0;
  color: #454d52;
  font-size: 15px;
  line-height: 1.35;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin: 0 0 12px;
  color: #363c40;
  font-size: 12px;
  line-height: 1.25;
}

.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 2px; }
.international-metro { background: #007c91; }
.international-nonmetro { background: #e07a24; }
.national { background: #4856a6; }
.internal { background: #738b24; }
.dot { width: 10px; height: 10px; flex: 0 0 10px; border: 1.5px solid #252a2e; border-radius: 50%; background: #fff; }

.chart-figure { margin: 0; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-tooltip {
  position: absolute;
  z-index: 2;
  inline-size: max-content;
  max-inline-size: min(270px, calc(100% - 16px));
  padding: 10px 12px;
  border: 1px solid #d6dde0;
  border-radius: 4px;
  background: #252a2e;
  box-shadow: 0 3px 12px rgb(0 0 0 / 18%);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}
.chart-tooltip[hidden] { display: none; }
.chart-tooltip strong { display: block; margin-bottom: 6px; font-size: 14px; }
.chart-tooltip dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin: 0; }
.chart-tooltip dt, .chart-tooltip dd { margin: 0; }
.chart-tooltip dd { text-align: right; font-variant-numeric: tabular-nums; }
.chart-tooltip .tooltip-note { margin: 6px 0 0; color: #e0e5e7; }
.axis-caption { margin: 4px 0 0; text-align: center; font-size: 14px; font-weight: 700; }

.source {
  margin: 15px 0 0;
  color: #687177;
  font-size: 12px;
  line-height: 1.4;
}
.source p { margin: 2px 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 520px) {
  .embed { padding: 24px 22px 18px; }
  .intro { margin-bottom: 19px; }
  .legend { gap: 8px 19px; font-size: 13px; }
  .axis-caption { font-size: 15px; }
}
