/* Theme and scale layer for the floating dashboard nav. Loaded after bronco-nav.css.
   Leaves bronco-nav.css untouched. Covers: scale, type, indicator lamps, leather Configure. */
:root { --vm-dash-clearance: 112px; }

/* ---- Type: the site's own extended Archivo, a size up ---- */
.vm-dash-nav {
  --vm-dash-top: max(16px, env(safe-area-inset-top, 0px));
  --vm-dash-width: 1200px;
  width: min(calc(100% - 48px), var(--vm-dash-width));
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  font-variation-settings: "wdth" 110;
}
.vm-dash-nav__link { letter-spacing: .015em; gap: 10px; }
.vm-dash-nav__link:hover,
.vm-dash-nav__link[aria-current="page"] { border-color: transparent; background: transparent; }
.vm-dash-nav__link[aria-current="page"] { color: #fff3dc; }
.vm-dash-nav__phone { font-size: 13px; font-weight: 500; font-variation-settings: "wdth" 104; letter-spacing: .02em; }

/* ---- Indicator lamps: recessed and dark when off, amber and lit on the current page ---- */
.vm-dash-nav__indicator {
  width: 7px; height: 7px; flex-basis: 7px;
  background: radial-gradient(circle at 40% 35%, #3a322a, #1a1612 70%);
  border: 1px solid #4a3b2c;
  box-shadow: inset 0 1px 1px #000c, 0 1px 0 #ffffff12;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.vm-dash-nav__link:hover .vm-dash-nav__indicator {
  background: radial-gradient(circle at 40% 35%, #a77c3e, #5a3f1c 75%);
  border-color: #7a5a2c;
  box-shadow: inset 0 1px 1px #0008, 0 0 5px #e7b76b55;
}
.vm-dash-nav__link[aria-current="page"] .vm-dash-nav__indicator {
  background: radial-gradient(circle at 40% 35%, #fff0c8, #e7b76b 55%, #c78d3a);
  border-color: #a9732c;
  box-shadow: inset 0 1px 1px #fff6, 0 0 6px #e7b76bdd, 0 0 16px #e7b76b77;
}

/* ---- Configure: leather-wrapped switch, matching the housing, instead of brushed grey ---- */
.vm-dash-nav .vm-dash-nav__configure {
  position: relative;
  padding: 0 18px;
  border: 1px solid #80532f;
  border-top-color: #e5ba86;
  border-bottom-color: #5e3a1d;
  border-radius: 999px;
  color: #f8efe0;
  background:
    linear-gradient(180deg, #fff3 0%, transparent 22%, transparent 74%, #40221133 100%),
    linear-gradient(100deg, #bc8957, #d2a06b 36%, #c79562 66%, #b5804d);
  box-shadow: inset 0 1px 1px #fff6, inset 0 -2px 3px #48281066, 0 0 0 3px #030403, 0 3px 4px #0007;
  font-size: 12px;
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #00000040;
}
.vm-dash-nav .vm-dash-nav__configure::before {
  content: ""; position: absolute; inset: 3px; border-radius: 999px;
  border: 1px dashed #f6d2a0aa; pointer-events: none;
}
.vm-dash-nav .vm-dash-nav__configure:hover { box-shadow: inset 0 1px 1px #fff8, inset 0 -2px 3px #48281066, 0 0 0 3px #030403, 0 0 14px #e7b76b44; filter: brightness(1.05); }
.vm-dash-nav__lamp { border-color: #6b4318; background: radial-gradient(circle at 40% 35%, #fff0c8, #e3a847 60%); box-shadow: inset 0 1px 1px #ffdb90, 0 0 6px #e3a847aa; }
.vm-dash-nav__arrow { opacity: .9; }

/* ---- Scale: slimmer on desktop, supplied touch targets on phones ---- */
@media (min-width: 981px) {
  .vm-dash-nav__shell { padding: 10px 14px 12px; border-radius: 13px; }
  .vm-dash-nav__shell::before { inset: 5px; border-radius: 9px; }
  .vm-dash-nav__fascia { min-height: 48px; padding: 4px 6px 4px 18px; gap: 10px; }
  .vm-dash-nav__brand { min-height: 40px; }
  .vm-dash-nav__brand img { width: 150px; }
  .vm-dash-nav__link { min-height: 40px; padding: 0 12px; }
  .vm-dash-nav .vm-dash-nav__configure { min-height: 38px; }
  .vm-dash-nav__phone { min-height: 40px; padding: 0 10px 0 16px; }
}
@media (max-width: 1100px) and (min-width: 981px) {
  .vm-dash-nav__brand img { width: 136px; }
  .vm-dash-nav { font-size: 13px; }
}
@media (max-width: 980px) {
  :root { --vm-dash-clearance: 100px; }
  .vm-dash-nav__shell { padding: 9px 10px 11px; }
  .vm-dash-nav__fascia { min-height: 50px; }
  .vm-dash-nav__brand img { width: 140px; }
  .vm-dash-nav__links { top: calc(100% + 16px); }
  .vm-dash-nav__links .vm-dash-nav__link { font-size: 16px; }
  .vm-dash-nav__links .vm-dash-nav__phone { font-size: 14px; }
  .vm-dash-nav .vm-dash-nav__quick-configure { font-size: 11px; }
}
@media (max-width: 500px) { .vm-dash-nav__brand img { width: 120px; } }
@media (max-width: 359px) { .vm-dash-nav__brand img { width: 104px; } }

/* ---- Ignition (press and hold the wordmark) ---- */
.vm-dash-nav__brand { -webkit-touch-callout: none; user-select: none; transition: transform .15s ease; }
.vm-dash-nav.is-key .vm-dash-nav__brand { transform: translateY(1px) scale(.985); }
.vm-dash-nav.is-starting .vm-dash-nav__indicator,
.vm-dash-nav.is-starting .vm-dash-nav__lamp {
  animation: vm-lampcheck .9s ease-out both;
}
.vm-dash-nav.is-starting .vm-dash-nav__link:nth-child(1) .vm-dash-nav__indicator { animation-delay: 0s; }
.vm-dash-nav.is-starting .vm-dash-nav__link:nth-child(2) .vm-dash-nav__indicator { animation-delay: .12s; }
.vm-dash-nav.is-starting .vm-dash-nav__link:nth-child(3) .vm-dash-nav__indicator { animation-delay: .24s; }
.vm-dash-nav.is-starting .vm-dash-nav__lamp { animation-delay: .36s; animation-iteration-count: 2; }
@keyframes vm-lampcheck {
  0%   { background: radial-gradient(circle at 40% 35%, #3a322a, #1a1612 70%); box-shadow: inset 0 1px 1px #000c; }
  30%  { background: radial-gradient(circle at 40% 35%, #fff0c8, #e7b76b 55%, #c78d3a); box-shadow: inset 0 1px 1px #fff6, 0 0 8px #e7b76bee, 0 0 18px #e7b76b88; }
  55%  { background: radial-gradient(circle at 40% 35%, #7a5a2c, #3a2a16 75%); box-shadow: inset 0 1px 1px #000a, 0 0 3px #e7b76b44; }
  75%  { background: radial-gradient(circle at 40% 35%, #fff0c8, #e7b76b 55%, #c78d3a); box-shadow: inset 0 1px 1px #fff6, 0 0 8px #e7b76bee, 0 0 18px #e7b76b88; }
  100% { background: radial-gradient(circle at 40% 35%, #3a322a, #1a1612 70%); box-shadow: inset 0 1px 1px #000c; }
}
.vm-dash-nav.is-starting .vm-dash-nav__shell { animation: vm-catch .7s cubic-bezier(.36,.07,.19,.97) .45s both; }
@keyframes vm-catch {
  0%, 100% { transform: translate3d(0,0,0); }
  12% { transform: translate3d(-1px, 1px, 0); } 24% { transform: translate3d(2px, -1px, 0); }
  36% { transform: translate3d(-2px, 0, 0); }  48% { transform: translate3d(1px, 1px, 0); }
  60% { transform: translate3d(-1px, 0, 0); }  72% { transform: translate3d(1px, 0, 0); }
}
.vm-dash-nav.is-running .vm-dash-nav__lamp { box-shadow: inset 0 1px 1px #ffdb90, 0 0 8px #e3a847ee, 0 0 18px #e3a84788; }
.vm-dash-odo {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, -8px);
  display: inline-flex; align-items: baseline; gap: 10px; padding: 8px 14px 8px 12px;
  border: 1px solid #111; border-top-color: #2e332e; border-radius: 7px;
  background: linear-gradient(180deg, #ffffff07, transparent 48%, #0003), #151817;
  box-shadow: 0 1px 1px #eec58acc, inset 0 2px 4px #0009, 0 10px 24px -8px #000a;
  color: #f5eee2; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.vm-dash-odo.is-on { opacity: 1; transform: translate(-50%, 0); }
.vm-dash-odo__n { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 112; font-weight: 600; font-size: 18px; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: #e7b76b; text-shadow: 0 0 8px #e7b76b66; padding: 2px 8px; border: 1px solid #ffffff14; border-radius: 4px; background: #0b0b0a; }
.vm-dash-odo__t { font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #d7cdbd; }
@media (prefers-reduced-motion: reduce) {
  .vm-dash-nav.is-starting .vm-dash-nav__shell { animation: none; }
  .vm-dash-nav.is-starting .vm-dash-nav__indicator, .vm-dash-nav.is-starting .vm-dash-nav__lamp { animation-duration: .01ms; }
}
