/* Inter (UI) and Poppins (brand) are self-hosted under /fonts. SIL Open Font License. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F8FAFB;
  --bg-app: #F8FAFB;
  --surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --ink: #132D44;
  --text-primary: #132D44;
  --brand-navy: #132D44;
  --muted: #526677;
  --text-secondary: #526677;
  --line: #DEE7EC;
  --border-color: #DEE7EC;
  --accent: #087893;
  --brand-teal: #087893;
  --brand-teal-bright: #0DA8B3;
  --brand-gold: #FDC053;
  --accent-ink: #FFFFFF;
  --ok: #15803D;
  --color-success: #15803D;
  --warn: #B45309;
  --color-warning: #B45309;
  --warn-bg: #fff7ed;
  --danger: #B91C1C;
  --color-danger: #B91C1C;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(19, 45, 68, 0.06);
  --font: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-brand: "Poppins", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  padding: 20px 16px 48px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}

main {
  max-width: 60rem;
  margin: 0 auto;
}

h1,
h2,
h3,
.wordmark {
  color: var(--ink);
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

p {
  margin: 0.6rem 0 0;
}

.lede,
.banner {
  max-width: 68ch;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--ink);
}

label {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 600;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  min-height: 44px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) / 2);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  margin-top: 16px;
  padding: 10px 16px;
  min-height: 44px;
  min-width: 44px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) / 2);
  cursor: pointer;
  white-space: normal;
}

button:hover {
  background: color-mix(in srgb, var(--accent) 86%, black);
}

button.secondary {
  color: var(--accent-ink);
  background: var(--muted);
}

button.secondary:hover {
  background: color-mix(in srgb, var(--muted) 86%, black);
}

:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 72px;
  max-width: 100%;
  margin: 0 0 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
}

.row > * {
  flex: 1 1 12rem;
  min-width: 0;
}

ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.panel {
  margin-top: 18px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

pre.panel {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.banner {
  margin-top: 16px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.banner.warn {
  color: var(--ink);
  background: var(--warn-bg);
  border-color: var(--warn);
}

.hidden {
  display: none;
}

.error,
.exception {
  color: var(--danger);
  font-weight: 600;
}

.ok {
  color: var(--ok);
  font-weight: 600;
}

.driver {
  font-size: 1.15rem;
}

.driver button {
  font-size: 1.15rem;
  padding: 12px 16px;
}

.actions,
.stop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.actions {
  margin-top: 16px;
}

.stop-tools {
  margin-top: 8px;
}

.actions button,
.stop-tools button {
  margin-top: 0;
}

.meta {
  color: var(--muted);
}

button.touch {
  min-height: 64px;
  min-width: 44%;
  padding: 16px 18px;
  font-size: 1.2rem;
}

.route-map {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 280px;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) / 2);
}

@media (min-width: 720px) {
  body {
    padding: 40px 24px 64px;
  }
}

@media (max-width: 480px) {
  .panel,
  .banner {
    padding: 16px;
  }

  .actions,
  .stop-tools {
    align-items: stretch;
  }

  .actions button,
  .stop-tools button,
  button.touch {
    width: 100%;
    min-width: 0;
  }
}
