@font-face {
  font-family: "Suisse";
  src:
    url("/fonts/SuisseIntl-Regular-WebS.woff2") format("woff2"),
    url("/fonts/SuisseIntl-Regular-WebS.woff") format("woff"),
    url("/fonts/SuisseIntl-Regular-WebS.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Suisse";
  src:
    url("/fonts/SuisseIntl-Book-WebS.woff2") format("woff2"),
    url("/fonts/SuisseIntl-Book-WebS.woff") format("woff"),
    url("/fonts/SuisseIntl-Book-WebS.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Suisse";
  src:
    url("/fonts/SuisseIntl-SemiBold-WebS.woff2") format("woff2"),
    url("/fonts/SuisseIntl-SemiBold-WebS.woff") format("woff"),
    url("/fonts/SuisseIntl-SemiBold-WebS.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --muted: #9a9a9a;
  --line: #e6e6e6;
  --hero: #002FA7;
  --green: #18794e;
  --yellow: #9a7400;
  --red: #c21d12;
  --hero-copy-pad-x: 54px;
  font-family: "Suisse", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
}

.hero {
  background: var(--hero);
  color: #ffffff;
  padding: 0;
}

.hero-grid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(320px, 1.05fr) minmax(380px, 0.95fr);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 24px 0 0 var(--hero-copy-pad-x);
}

h1 {
  color: #ffffff;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 820px;
}

.num {
  color: #ffffff;
  font-weight: inherit;
  white-space: nowrap;
}

.hero-history {
  margin-top: auto;
  margin-left: calc(-1 * var(--hero-copy-pad-x));
  width: min(600px, calc(100% + var(--hero-copy-pad-x)));
  height: 110px;
  align-self: flex-start;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#totalHistoryChart {
  display: block;
  height: 100%;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

.hero-map {
  background: var(--hero);
  height: 400px;
  overflow: hidden;
  position: relative;
}

.hero.closed-state .hero-copy {
  padding-bottom: 34px;
}

#dmvMap {
  height: 100%;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  width: 100%;
}

.hero-map.map-ready #dmvMap {
  opacity: 1;
  transform: none;
}

.maplibregl-canvas {
  outline: none;
}

.dmv-hover-popup .maplibregl-popup-content {
  background: rgb(18 19 23 / 94%);
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 28px rgb(0 0 0 / 28%);
  color: #ffffff;
  padding: 10px 12px;
}

.dmv-hover-popup .maplibregl-popup-tip {
  border-top-color: rgb(18 19 23 / 94%) !important;
}

.popup-office {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.popup-subtitle {
  color: rgb(255 255 255 / 52%);
  font-size: 12px;
  line-height: 1.2;
  margin-top: 2px;
}

.popup-meta {
  color: rgb(255 255 255 / 74%);
  font-size: 12px;
  line-height: 1.2;
  margin-top: 4px;
}

main {
  padding: 4px 54px 30px;
}

.economics {
  border-top: 1px solid var(--line);
  color: #222222;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.15;
  padding: 16px 54px 18px;
}

.economics p {
  margin: 0;
}

.economics-lead {
  font-weight: 700;
}

.economics-detail {
  color: rgb(34 34 34 / 58%);
  font-weight: 500;
}

.notice {
  border-bottom: 1px solid var(--line);
  color: #5f5f5f;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 0;
}

.hidden {
  display: none;
}

.board {
  background: #ffffff;
}

.kicker {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

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

table {
  border-collapse: collapse;
  min-width: 520px;
  width: 100%;
}

th,
td {
  border-bottom: 0;
  padding: 11px 0;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #ffffff;
  color: #adadad;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

td {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}

tr {
  transition:
    background-color 0.15s ease,
    opacity 0.15s ease;
}

tbody tr:hover {
  background: #fafafa;
}

tr.map-flash {
  animation: mapFlash 1.8s ease;
}

.location-cell {
  align-items: baseline;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.location-city {
  font-weight: 700;
}

.location-subtitle {
  color: #808080;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  min-width: 0;
}

.location-subtitle:empty {
  display: none;
}

.number {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.empty-row td {
  color: var(--muted);
  font-size: 15px;
  padding: 28px 0;
  text-align: center;
}

.closed-row {
  color: #888888;
}

.closed-row .location-city {
  color: #555555;
}

.closed-row .waiting,
.closed-row .wait-time {
  color: #8f8f8f;
}

.footer {
  color: #6e6e6e;
  font-size: 12px;
  padding: 0 54px 28px;
}

.footer-note {
  display: block;
  margin-top: 6px;
  max-width: 900px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@keyframes mapFlash {
  0% {
    background: #ffffff;
  }

  14% {
    background: #fff3a6;
  }

  100% {
    background: #ffffff;
  }
}

@media (max-width: 1180px) {
  :root {
    --hero-copy-pad-x: 34px;
  }

  .hero-grid {
    gap: 18px;
    grid-template-columns: minmax(0, 1.04fr) minmax(350px, 0.96fr);
  }

  .hero-map,
  .hero-copy {
    min-height: 344px;
  }

  .hero-map {
    height: 344px;
  }

  h1 {
    font-size: 58px;
    max-width: none;
  }

  td {
    font-size: 21px;
  }
}

@media (max-width: 900px) {
  :root {
    --hero-copy-pad-x: 18px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-map {
    height: 232px;
    order: -1;
    width: 100%;
  }

  .hero-copy {
    min-height: auto;
    padding: 14px var(--hero-copy-pad-x) 0;
  }

  .hero.closed-state .hero-copy {
    padding: 20px var(--hero-copy-pad-x) 22px;
  }

  h1 {
    font-size: 40px;
    letter-spacing: 0;
    line-height: 0.96;
    margin: 0;
  }

  .hero-history {
    margin-top: 0;
    margin-left: calc(-1 * var(--hero-copy-pad-x));
    width: calc(100% + (var(--hero-copy-pad-x) * 2));
    max-width: none;
    height: 84px;
    align-self: stretch;
  }

  main {
    padding: 10px 14px 22px;
  }

  .economics {
    font-size: 14px;
    padding: 12px 14px 13px;
  }

  .footer {
    font-size: 11px;
    padding: 0 14px 20px;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    padding: 8px 0;
  }

  td {
    font-size: 15px;
    letter-spacing: 0;
  }

  th {
    font-size: 11px;
  }

  th:first-child,
  td:first-child {
    width: 54%;
  }

  th:nth-child(2),
  td:nth-child(2) {
    width: 24%;
  }

  th:nth-child(3),
  td:nth-child(3) {
    width: 22%;
  }

  td.number {
    font-size: 15px;
    text-align: right;
  }

  th.number {
    font-size: 11px;
  }

  .location-cell {
    align-items: baseline;
    display: flex;
    gap: 6px;
  }

  .location-subtitle {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 34px;
  }

  .hero-history {
    width: 100%;
  }
}
