:root {
  color-scheme: light dark;
  --page: #f7f9fb;
  --surface: #ffffff;
  --ink: #152235;
  --muted: #46596d;
  --line: #d4dee7;
  --action: #3f607f;
  --rider: #1d7a4c;
  --driver: #2457a6;
  --tint: #eef3f8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #09131d;
    --surface: #0e1b28;
    --ink: #f7f9fb;
    --muted: #bac5d0;
    --line: #2d4053;
    --action: #7a9ab8;
    --rider: #5cc192;
    --driver: #7fa8ea;
    --tint: #132436;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font:
    1rem/1.7 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
header,
footer {
  max-width: 1120px;
  margin: auto;
  padding: 1.5rem;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 2rem 1.5rem 1rem;
}
.brand {
  display: inline-flex;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}
nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  font-weight: 550;
}
nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.45em;
  text-decoration-thickness: 2px;
}
a {
  color: var(--action);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
a:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 5px;
  border-radius: 2px;
}

/* Page title block */
.title {
  max-width: 760px;
  margin-bottom: 2rem;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow.rider {
  color: var(--rider);
}
.eyebrow.driver {
  color: var(--driver);
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0.4rem 0 0.75rem;
  text-wrap: balance;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.muted,
footer {
  color: var(--muted);
}
.meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* Two-column reading layout with a contents rail */
.layout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .toc {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}
.toc {
  display: block;
  font-size: 0.9rem;
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}
.toc p {
  margin: 0 0 0.5rem;
  font-weight: 650;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  max-height: 18rem;
  overflow-y: auto;
}
.toc li + li {
  margin-top: 0;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding: 0.15rem 0;
}
.toc a:hover {
  color: var(--ink);
}
article {
  max-width: 760px;
}
article section {
  scroll-margin-top: 1.5rem;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
  text-wrap: balance;
}
h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.4rem;
}
p,
li {
  overflow-wrap: anywhere;
}
li + li {
  margin-top: 0.35rem;
}

/* Callouts */
.summary,
.notice {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  margin: 0 0 1.5rem;
}
.summary h2 {
  margin-top: 0;
  font-size: 1.1rem;
}
.summary ul {
  margin: 0;
  padding-left: 1.2rem;
}
.notice p:first-child {
  margin-top: 0;
}
.notice p:last-child {
  margin-bottom: 0;
}
.note {
  background: var(--tint);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
}
.note p {
  margin: 0;
}

/* Tables scroll on their own so the page never does */
.table {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.55;
}
th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  font-weight: 600;
  min-width: 9rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--action);
  border-radius: 12px;
  font-weight: 650;
}
footer {
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  margin-top: 3rem;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: static;
  display: block;
  padding: 1rem;
}
@media print {
  .toc,
  nav,
  .skip {
    display: none;
  }
  .layout {
    display: block;
  }
}
