.nptraffic {
  --nptraffic-ink: #17232b;
  --nptraffic-muted: #52616b;
  --nptraffic-border: #d8e0e5;
  --nptraffic-panel: #ffffff;
  --nptraffic-wash: #f3f7f8;
  --nptraffic-accent: #0b6875;
  --nptraffic-accent-dark: #084c57;
  --nptraffic-stable: #19784c;
  --nptraffic-busy: #6b7d10;
  --nptraffic-near: #c26700;
  --nptraffic-over: #c53b2c;
  --nptraffic-severe: #8f1d2c;
  --nptraffic-state: var(--nptraffic-stable);
  --nptraffic-m5: #53636b;
  --nptraffic-m5-closed: #b42318;
  --nptraffic-map-height: 620px;
  box-sizing: border-box;
  max-width: 1280px;
  margin: 1.5rem auto;
  color: var(--nptraffic-ink);
  font-family: inherit;
  line-height: 1.5;
}

.nptraffic *,
.nptraffic *::before,
.nptraffic *::after {
  box-sizing: inherit;
}

.nptraffic[data-traffic-state="stable"] { --nptraffic-state: var(--nptraffic-stable); }
.nptraffic[data-traffic-state="busy"] { --nptraffic-state: var(--nptraffic-busy); }
.nptraffic[data-traffic-state="near"] { --nptraffic-state: var(--nptraffic-near); }
.nptraffic[data-traffic-state="over"] { --nptraffic-state: var(--nptraffic-over); }
.nptraffic[data-traffic-state="severe"] { --nptraffic-state: var(--nptraffic-severe); }

.nptraffic button,
.nptraffic input,
.nptraffic select {
  font: inherit;
}

.nptraffic a {
  color: var(--nptraffic-accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.nptraffic a:hover {
  text-decoration-thickness: 0.14em;
}

.nptraffic__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.15rem, 2.3vw, 2rem);
  border: 1px solid var(--nptraffic-border);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(130deg, #f7fbfc 0%, #e8f3f5 100%);
}

.nptraffic__eyebrow,
.nptraffic__kicker {
  margin: 0 0 0.35rem;
  color: var(--nptraffic-accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.3;
  text-transform: uppercase;
}

.nptraffic__title {
  margin: 0;
  color: var(--nptraffic-ink);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.nptraffic__intro {
  max-width: 760px;
  margin: 0.7rem 0 0;
  color: var(--nptraffic-muted);
  font-size: 1rem;
}

.nptraffic__data-stamp {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: 330px;
}

.nptraffic__pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0.28rem 0.65rem;
  border: 1px solid #b9cbd1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #29424b;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.nptraffic__pill--source::before {
  width: 8px;
  height: 8px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--nptraffic-accent);
  content: "";
}

.nptraffic__pill--m5 {
  border-color: #aeb9bd;
  background: #f4f6f7;
  color: #3d4d54;
}

.nptraffic__pill--m5::before {
  width: 9px;
  height: 4px;
  margin-right: 0.42rem;
  border-top: 2px dashed currentColor;
  content: "";
}

.nptraffic[data-m5-closure-active="true"] .nptraffic__pill--m5 {
  border-color: #d8948c;
  background: #fff0ee;
  color: var(--nptraffic-m5-closed);
}

.nptraffic__pill--speed {
  width: 45px;
  height: 45px;
  justify-content: center;
  padding: 0;
  border: 4px solid #d62f2f;
  background: #fff;
  color: #111;
  font-size: 0.76rem;
  line-height: 1;
  text-align: center;
  white-space: normal;
}

.nptraffic__notice {
  padding: 0.78rem clamp(1rem, 2.3vw, 2rem);
  border: 1px solid #d6c78e;
  background: #fff8d8;
  color: #4b3e0d;
  font-size: 0.9rem;
}

.nptraffic__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(315px, 0.88fr);
  min-height: var(--nptraffic-map-height);
  border-right: 1px solid var(--nptraffic-border);
  border-left: 1px solid var(--nptraffic-border);
  background: var(--nptraffic-panel);
}

.nptraffic__map-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--nptraffic-border);
  background: #ffffff;
}

.nptraffic__map-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: calc(var(--nptraffic-map-height) - 44px);
  overflow: hidden;
  background: #dfe8e4;
}

.nptraffic__map {
  width: 100%;
  height: 100%;
  min-height: 390px;
  z-index: 1;
}

.nptraffic__map-overlay {
  position: absolute;
  z-index: 500;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.43rem 0.55rem;
  border: 1px solid rgba(41, 60, 68, 0.23);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(28, 45, 55, 0.12);
  color: #344851;
  font-size: 0.72rem;
  pointer-events: none;
}

.nptraffic__map-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nptraffic__legend-line {
  display: inline-block;
  width: 23px;
  height: 5px;
  border-radius: 999px;
  background: var(--nptraffic-state);
}

.nptraffic__legend-m5 {
  display: inline-block;
  width: 23px;
  height: 0;
  border-top: 4px dashed var(--nptraffic-m5);
}

.nptraffic[data-m5-closure-active="true"] .nptraffic__legend-m5 {
  border-top-color: var(--nptraffic-m5-closed);
}

.nptraffic__legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #0b6875;
  box-shadow: 0 0 0 2px #0b6875;
}

.nptraffic__map-caption {
  min-height: 44px;
  margin: 0;
  padding: 0.62rem 0.85rem;
  border-top: 1px solid var(--nptraffic-border);
  background: #fff;
  color: var(--nptraffic-muted);
  font-size: 0.76rem;
}

.nptraffic__controls {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.55rem);
  background: var(--nptraffic-panel);
}

.nptraffic__controls-heading,
.nptraffic__results-heading,
.nptraffic__control-label-row,
.nptraffic__capacity-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nptraffic__controls-heading h3,
.nptraffic__results-heading h3 {
  margin: 0;
  color: var(--nptraffic-ink);
  font-size: 1.2rem;
  line-height: 1.25;
}

.nptraffic__reset {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0.42rem 0.78rem;
  border: 1px solid #9db2ba;
  border-radius: 8px;
  background: #fff;
  color: var(--nptraffic-accent-dark);
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}

.nptraffic__reset:hover {
  border-color: var(--nptraffic-accent);
  background: #eef8f9;
}

.nptraffic__reset:focus-visible,
.nptraffic select:focus-visible,
.nptraffic input:focus-visible,
.nptraffic summary:focus-visible,
.nptraffic a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.nptraffic__control {
  margin-top: 1.1rem;
}

.nptraffic__control label,
.nptraffic__vehicle-fieldset legend,
.nptraffic__closure-fieldset legend {
  color: #283b44;
  font-size: 0.88rem;
  font-weight: 750;
}

.nptraffic__control output {
  min-width: 58px;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #eaf3f5;
  color: var(--nptraffic-accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.nptraffic select {
  width: 100%;
  min-height: 44px;
  margin-top: 0.42rem;
  padding: 0.55rem 2.2rem 0.55rem 0.7rem;
  border: 1px solid #aebfc6;
  border-radius: 8px;
  background-color: #fff;
  color: var(--nptraffic-ink);
}

.nptraffic input[type="range"] {
  --nptraffic-range-progress: 50%;
  width: 100%;
  height: 32px;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--nptraffic-accent);
}

.nptraffic input[type="range"]::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--nptraffic-accent) 0 var(--nptraffic-range-progress), #d4dee2 var(--nptraffic-range-progress) 100%);
}

.nptraffic input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7.5px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--nptraffic-accent-dark);
  box-shadow: 0 0 0 1px #1d5a64, 0 2px 5px rgba(0, 0, 0, 0.2);
  -webkit-appearance: none;
}

.nptraffic input[type="range"]::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: #d4dee2;
}

.nptraffic input[type="range"]::-moz-range-progress {
  height: 7px;
  border-radius: 999px;
  background: var(--nptraffic-accent);
}

.nptraffic input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--nptraffic-accent-dark);
  box-shadow: 0 0 0 1px #1d5a64, 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nptraffic__range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: -0.18rem;
  color: #6f7e85;
  font-size: 0.67rem;
}

.nptraffic__hint {
  margin: 0.32rem 0 0;
  color: var(--nptraffic-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.nptraffic__vehicle-fieldset,
.nptraffic__closure-fieldset {
  min-width: 0;
  margin: 1.3rem 0 0;
  padding: 1rem;
  border: 1px solid var(--nptraffic-border);
  border-radius: 12px;
  background: var(--nptraffic-wash);
}

.nptraffic__vehicle-fieldset legend,
.nptraffic__closure-fieldset legend {
  padding: 0 0.35rem;
}

.nptraffic__control--vehicle {
  margin-top: 0.85rem;
}

.nptraffic__closure-fieldset {
  margin-top: 1rem;
  border-color: #c9d3d7;
  background: #f7f9fa;
}

.nptraffic__closure-fieldset > .nptraffic__hint:first-of-type {
  margin-bottom: 0.2rem;
}

.nptraffic__closure-dependent {
  transition: opacity 160ms ease;
}

.nptraffic__closure-dependent.is-disabled {
  opacity: 0.48;
}

.nptraffic__closure-dependent.is-disabled input {
  cursor: not-allowed;
}

.nptraffic input[type="range"]:disabled {
  cursor: not-allowed;
  filter: grayscale(0.75);
}

.nptraffic__m5-data-note {
  padding-top: 0.75rem;
  border-top: 1px solid #dbe2e5;
}

.nptraffic__results {
  padding: clamp(1.1rem, 2.6vw, 2rem);
  border: 1px solid var(--nptraffic-border);
  border-top: 0;
  background: #fff;
}

.nptraffic__status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--nptraffic-state) 65%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--nptraffic-state) 11%, #ffffff);
  color: color-mix(in srgb, var(--nptraffic-state) 85%, #111111);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .nptraffic__status {
    border-color: var(--nptraffic-state);
    background: #f6f8f8;
    color: var(--nptraffic-state);
  }
}

.nptraffic__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.15rem;
}

.nptraffic__metric {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--nptraffic-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(23, 42, 51, 0.045);
}

.nptraffic__metric--capacity {
  border-top: 4px solid var(--nptraffic-state);
  padding-top: calc(1rem - 3px);
}

.nptraffic__metric-label,
.nptraffic__metric-sub {
  display: block;
  color: var(--nptraffic-muted);
  font-size: 0.73rem;
  line-height: 1.35;
}

.nptraffic__metric strong {
  display: block;
  min-height: 2.35rem;
  margin: 0.35rem 0 0.22rem;
  color: var(--nptraffic-ink);
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.nptraffic__metric strong small {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0;
}

.nptraffic [hidden] {
  display: none !important;
}

.nptraffic__m5-impact {
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid #e3b5af;
  border-left: 5px solid var(--nptraffic-m5-closed);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff9f7 0%, #fff2ef 100%);
}

.nptraffic__m5-impact-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.nptraffic__m5-impact-heading h4 {
  margin: 0;
  color: #56211c;
  font-size: 1.05rem;
  line-height: 1.25;
}

.nptraffic__m5-impact-badge {
  flex: 0 0 auto;
  padding: 0.28rem 0.58rem;
  border: 1px solid #d99b94;
  border-radius: 999px;
  background: #fff;
  color: #8b271d;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.nptraffic__m5-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.nptraffic__m5-impact-grid > div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(174, 89, 77, 0.24);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
}

.nptraffic__m5-impact-grid span,
.nptraffic__m5-impact-grid small {
  display: block;
  color: #76534e;
  font-size: 0.68rem;
  line-height: 1.35;
}

.nptraffic__m5-impact-grid strong {
  display: block;
  margin: 0.25rem 0 0.18rem;
  overflow-wrap: anywhere;
  color: #56211c;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.15;
}

.nptraffic__m5-impact-note {
  margin: 0.75rem 0 0;
  color: #72534e;
  font-size: 0.75rem;
  line-height: 1.45;
}

.nptraffic__capacity-panel {
  margin-top: 1.15rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--nptraffic-wash);
}

.nptraffic__capacity-labels {
  align-items: baseline;
  color: var(--nptraffic-muted);
  font-size: 0.78rem;
}

.nptraffic__capacity-labels strong {
  color: var(--nptraffic-ink);
  font-size: 0.82rem;
}

.nptraffic__capacity-track {
  position: relative;
  height: 24px;
  margin-top: 0.55rem;
  overflow: visible;
  border: 1px solid #aebdc3;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #fff 0, #fff 9%, #edf2f3 9%, #edf2f3 10%);
}

.nptraffic__capacity-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--nptraffic-state);
  transition: width 180ms ease, background-color 180ms ease;
}

.nptraffic__capacity-marker {
  position: absolute;
  top: -1.35rem;
  transform: translateX(-50%);
  color: #68767d;
  font-size: 0.62rem;
  line-height: 1;
}

.nptraffic__capacity-marker::after {
  position: absolute;
  top: 1.13rem;
  left: 50%;
  width: 1px;
  height: 24px;
  background: rgba(23, 35, 43, 0.5);
  content: "";
}

.nptraffic__capacity-marker--80 { left: 53.333%; }
.nptraffic__capacity-marker--100 { left: 66.667%; }

.nptraffic__summary {
  margin: 0.8rem 0 0;
  color: #354850;
  font-size: 0.88rem;
}

.nptraffic__direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.nptraffic__direction-card {
  padding: 0.95rem 1rem;
  border: 1px solid var(--nptraffic-border);
  border-radius: 12px;
  background: #fff;
}

.nptraffic__direction-card.is-busiest {
  border-color: var(--nptraffic-state);
  box-shadow: inset 4px 0 0 var(--nptraffic-state);
}

.nptraffic__direction-card h4 {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
}

.nptraffic__direction-card.is-busiest h4::after {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.08rem 0.36rem;
  border-radius: 999px;
  background: var(--nptraffic-wash);
  color: var(--nptraffic-state);
  content: "busiest";
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.08rem;
}

.nptraffic__direction-card dl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.nptraffic__direction-card dl > div {
  min-width: 0;
  padding: 0 0.58rem;
  border-left: 1px solid var(--nptraffic-border);
}

.nptraffic__direction-card dl > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.nptraffic__direction-card dt {
  color: var(--nptraffic-muted);
  font-size: 0.65rem;
  line-height: 1.2;
}

.nptraffic__direction-card dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
  color: var(--nptraffic-ink);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.nptraffic__methodology {
  border: 1px solid var(--nptraffic-border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #f8fafb;
}

.nptraffic__methodology summary {
  padding: 1rem clamp(1.1rem, 2.6vw, 2rem);
  color: var(--nptraffic-accent-dark);
  font-weight: 800;
  cursor: pointer;
}

.nptraffic__methodology[open] summary {
  border-bottom: 1px solid var(--nptraffic-border);
}

.nptraffic__methodology-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding: 1.2rem clamp(1.1rem, 2.6vw, 2rem) 1.5rem;
}

.nptraffic__methodology-content h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.nptraffic__methodology-content p {
  margin: 0;
  color: var(--nptraffic-muted);
  font-size: 0.8rem;
}

.nptraffic__methodology-content .nptraffic__sources {
  grid-column: 1 / -1;
  padding-top: 0.9rem;
  border-top: 1px solid var(--nptraffic-border);
}

.nptraffic__sources span {
  margin: 0 0.35rem;
  color: #8a979d;
}

.nptraffic__error {
  padding: 1rem;
  border: 1px solid #d7a9a9;
  border-radius: 8px;
  background: #fff1f1;
  color: #722121;
}

/* Leaflet custom markers */
.nptraffic .leaflet-container {
  background: #dfe8e4;
  color: #17232b;
  font: inherit;
}

.nptraffic .leaflet-control-zoom a {
  color: #17232b;
  text-decoration: none;
}

.nptraffic .leaflet-control-attribution {
  font-size: 9px;
}

.nptraffic-leaflet-divicon {
  border: 0 !important;
  background: transparent !important;
}

.nptraffic-count-marker {
  display: block;
  width: 20px;
  height: 20px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #0b6875;
  box-shadow: 0 0 0 3px #0b6875, 0 3px 9px rgba(0, 0, 0, 0.28);
}

.nptraffic-m5-marker {
  display: grid;
  width: 48px;
  height: 40px;
  align-content: center;
  justify-items: center;
  border: 3px solid #fff;
  border-radius: 9px;
  background: var(--nptraffic-m5);
  box-shadow: 0 0 0 2px var(--nptraffic-m5), 0 3px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
  text-align: center;
}

.nptraffic-m5-marker b {
  font-size: 14px;
}

.nptraffic-m5-marker i {
  margin-top: 2px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.nptraffic-m5-marker.is-closed {
  background: var(--nptraffic-m5-closed);
  box-shadow: 0 0 0 2px var(--nptraffic-m5-closed), 0 3px 10px rgba(0, 0, 0, 0.32);
}

.nptraffic-speed-marker {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 5px solid #d32f2f;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.nptraffic-gateway-marker {
  display: flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #26333d;
  box-shadow: 0 0 0 1px #26333d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.nptraffic-vehicle-icon-wrap {
  pointer-events: none !important;
}

.nptraffic-vehicle {
  position: relative;
  display: block;
  width: 18px;
  height: 9px;
  border: 1px solid rgba(0, 0, 0, 0.54);
  border-radius: 3px;
  background: #f8f8f8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.nptraffic-vehicle::before,
.nptraffic-vehicle::after {
  position: absolute;
  bottom: -3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1e2428;
  content: "";
}

.nptraffic-vehicle::before { left: 2px; }
.nptraffic-vehicle::after { right: 2px; }

.nptraffic-vehicle i {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 5px;
  height: 3px;
  border-radius: 1px;
  background: #8ab8c5;
}

.nptraffic-vehicle--vans {
  width: 20px;
  height: 10px;
  border-radius: 2px;
  background: #f0b54a;
}

.nptraffic-vehicle--hgvs {
  width: 25px;
  height: 11px;
  border-radius: 1px;
  background: #d9803c;
}

.nptraffic-vehicle--hgvs i {
  right: 1px;
  width: 7px;
  height: 7px;
  background: #6897a5;
}

/* Built-in schematic shown when Leaflet cannot load. */
.nptraffic__map--fallback {
  display: grid;
  place-items: stretch;
  padding: 0;
  background: #e6efea;
}

.nptraffic-fallback {
  display: grid;
  height: 100%;
  min-height: 390px;
  grid-template-rows: minmax(0, 1fr) auto;
}

.nptraffic-fallback svg {
  width: 100%;
  height: 100%;
  min-height: 340px;
}

.nptraffic-fallback > p {
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-top: 1px solid #bdcbc5;
  background: rgba(255, 255, 255, 0.88);
  color: #465a62;
  font-size: 0.75rem;
}

.nptraffic-fallback__land { fill: #e3eee6; }
.nptraffic-fallback__minor { fill: none; stroke: #fff; stroke-width: 7; opacity: 0.9; }
.nptraffic-fallback__casing { fill: none; stroke: #26333d; stroke-linecap: round; stroke-width: 16; opacity: 0.72; }
.nptraffic-fallback__route { fill: none; stroke: var(--nptraffic-state); stroke-linecap: round; stroke-width: 10; }
.nptraffic-fallback__m5 { fill: none; stroke: var(--nptraffic-m5); stroke-dasharray: 13 11; stroke-linecap: round; stroke-width: 10; }
.nptraffic-fallback__link { fill: none; stroke: #7d898e; stroke-linecap: round; stroke-width: 7; }
.nptraffic-fallback__m5-marker rect { fill: var(--nptraffic-m5); stroke: #fff; stroke-width: 4; }
.nptraffic-fallback__m5-marker text { fill: #fff; font: 800 12px Arial, sans-serif; }
.nptraffic-fallback__m5-marker text:last-child { font-size: 9px; }
.nptraffic-fallback__m5-marker.is-closed rect { fill: var(--nptraffic-m5-closed); }
.nptraffic-fallback__count { fill: #0b6875; stroke: #fff; stroke-width: 5; }
.nptraffic-fallback__speed circle { fill: #fff; stroke: #d32f2f; stroke-width: 7; }
.nptraffic-fallback__speed text { fill: #111; font: 800 20px Arial, sans-serif; }
.nptraffic-fallback__label { fill: #334a53; font: 700 14px Arial, sans-serif; }

@media (max-width: 1040px) {
  .nptraffic__workspace {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  }

  .nptraffic__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nptraffic__m5-impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nptraffic__direction-card dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.75rem;
  }

  .nptraffic__direction-card dl > div:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 780px) {
  .nptraffic__header {
    display: block;
  }

  .nptraffic__data-stamp {
    justify-content: flex-start;
    max-width: none;
    margin-top: 1rem;
  }

  .nptraffic__workspace {
    display: block;
  }

  .nptraffic__map-column {
    border-right: 0;
    border-bottom: 1px solid var(--nptraffic-border);
  }

  .nptraffic__map-shell,
  .nptraffic__map {
    height: min(62vh, 560px);
    min-height: 400px;
  }

  .nptraffic__map-shell {
    flex: 0 0 auto;
  }

  .nptraffic__direction-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nptraffic {
    margin: 1rem 0;
  }

  .nptraffic__header {
    border-radius: 12px 12px 0 0;
  }

  .nptraffic__data-stamp {
    gap: 0.35rem;
  }

  .nptraffic__pill {
    font-size: 0.7rem;
  }

  .nptraffic__metrics {
    grid-template-columns: 1fr;
  }

  .nptraffic__m5-impact-heading {
    display: block;
  }

  .nptraffic__m5-impact-badge {
    display: inline-flex;
    margin-top: 0.55rem;
    white-space: normal;
  }

  .nptraffic__m5-impact-grid {
    grid-template-columns: 1fr;
  }

  .nptraffic__metric strong {
    min-height: auto;
  }

  .nptraffic__results-heading,
  .nptraffic__controls-heading {
    align-items: flex-start;
  }

  .nptraffic__direction-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nptraffic__direction-card dl > div,
  .nptraffic__direction-card dl > div:nth-child(4) {
    padding: 0 0.45rem;
    border-left: 1px solid var(--nptraffic-border);
  }

  .nptraffic__direction-card dl > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .nptraffic__methodology-content {
    grid-template-columns: 1fr;
  }

  .nptraffic__methodology-content .nptraffic__sources {
    grid-column: 1;
  }

  .nptraffic__sources span {
    display: none;
  }

  .nptraffic__sources a {
    display: block;
    margin-top: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nptraffic__capacity-fill,
  .nptraffic__closure-dependent {
    transition: none;
  }
}

@media print {
  .nptraffic__controls,
  .nptraffic__map-overlay,
  .nptraffic .leaflet-control-container {
    display: none !important;
  }

  .nptraffic__workspace {
    display: block;
    min-height: auto;
  }

  .nptraffic__map,
  .nptraffic__map-shell {
    height: 380px;
    min-height: 380px;
  }

  .nptraffic__metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}
