:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #20242c;
  --muted: #626975;
  --line: #e4e3df;
  --wash: #f6f5f3;
  --accent: #b74024;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
.top {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  gap: 24px;
  background: var(--paper);
}
.brand {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1.7px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}
.version {
  font:
    12px ui-monospace,
    monospace;
  letter-spacing: 0;
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--muted);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.top nav > a {
  text-decoration: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-weight: 600;
  padding: 10px 16px;
  font-size: 14px;
}
.button:hover {
  background: #96331d;
  border-color: #96331d;
}
.button.small {
  padding: 8px 13px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  gap: 64px;
  max-width: 1160px;
  margin: auto;
  padding: 64px 36px 0;
}
.sidebar {
  position: sticky;
  top: 32px;
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  align-self: start;
  font-size: 14px;
}
.eyebrow {
  font:
    11px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}
.sidebar a {
  text-decoration: none;
}
.sidebar nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.sidebar-foot {
  margin-top: auto;
  color: var(--muted);
  line-height: 2;
}
.intro {
  padding: 0 0 48px;
}
.intro .eyebrow {
  margin: 0 0 25px;
}
h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -2px;
  margin: 0 0 24px;
}
.lead {
  font-size: 19px;
  line-height: 1.6;
  max-width: 580px;
  color: #535b67;
}
.text-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
}
.docs section {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin: 0 0 14px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
p {
  margin: 14px 0;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}
p code,
td code {
  background: var(--wash);
  padding: 2px 4px;
  border-radius: 3px;
}
pre {
  overflow: auto;
  line-height: 1.85;
  padding: 23px;
  margin: 0 0 14px;
  background: #202833;
  border: 1px solid #202833;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  color: #e5e9ef;
}
.code-heading {
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    12px ui-monospace,
    monospace;
  margin-top: 24px;
}
.copy {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 12px;
  padding: 4px 6px;
}
.string {
  color: #f3c48d;
}
.muted,
.note {
  color: var(--muted);
}
.note {
  font-size: 14px;
}
.endpoint {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 13px;
  display: flex;
  gap: 16px;
  overflow: auto;
}
.endpoint > span {
  font:
    12px ui-monospace,
    monospace;
  color: var(--accent);
  align-self: center;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  font-weight: 600;
  color: var(--muted);
}
td,
th {
  padding: 13px 8px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th:nth-child(2) {
  min-width: 105px;
}
.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 25px 0;
}
.license-grid article {
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 6px;
  font-size: 14px;
}
.license-grid article:last-child {
  background: var(--wash);
}
.price {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 14px 0;
}
.price span {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
}
.purchase-pending {
  font-size: 13px;
  color: var(--muted);
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 13px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
footer span {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: white;
  z-index: 9;
}
.skip:focus {
  top: 16px;
}
.legal {
  max-width: 760px;
  margin: 64px auto;
  padding: 0 24px;
}
.legal h1 {
  font-size: 40px;
}
.legal pre {
  white-space: pre-wrap;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.75;
}
.demo-body {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.demo-body .top {
  height: 68px;
  flex-shrink: 0;
}
.demo-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}
.controls {
  padding: 25px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  z-index: 1;
}
.controls h1 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.controls label {
  font-size: 14px;
  display: block;
}
.controls input[type='text'],
.controls input[type='number'],
.controls select {
  width: 100%;
  border: 1px solid #c9cbd0;
  border-radius: 4px;
  background: white;
  padding: 8px 10px;
  margin: 5px 0 16px;
  color: var(--ink);
  font-size: 14px;
}
.controls input[type='checkbox'] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.controls .check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 15px;
}
.controls fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
  margin: 14px 0;
}
.controls legend {
  font-size: 12px;
  color: var(--muted);
  padding-right: 8px;
}
.controls .note {
  font-size: 12px;
}
.map-wrap {
  position: relative;
  min-height: 0;
  background: #f6f3ed;
}
#map {
  position: absolute;
  inset: 0;
}
.map-status {
  position: absolute;
  bottom: 35px;
  left: 16px;
  right: 65px;
  max-width: 450px;
  background: var(--paper);
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
}
.url-output {
  width: 100%;
  height: 102px;
  resize: vertical;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--wash);
  font:
    12px/1.6 ui-monospace,
    monospace;
  margin: 6px 0 8px;
}
.controls .button {
  width: 100%;
}
.copy-status {
  font-size: 12px;
  min-height: 20px;
  color: var(--muted);
}
.maplibregl-ctrl-attrib {
  font-size: 11px;
}
.maplibregl-ctrl-group {
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
}
@media (max-width: 800px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 35px 24px 0;
  }
  .sidebar {
    display: none;
  }
  .top {
    padding: 0 24px;
    height: 76px;
  }
  .top nav {
    gap: 15px;
  }
  .intro {
    padding-bottom: 30px;
  }
  h1 {
    letter-spacing: -1.8px;
  }
  .demo-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .controls {
    padding: 18px;
  }
}
@media (max-width: 560px) {
  .top nav > a:not(.button) {
    display: none;
  }
  .license-grid {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
  }
  .demo-body {
    height: auto;
    overflow: auto;
  }
  .demo-layout {
    display: flex;
    flex-direction: column-reverse;
  }
  .map-wrap {
    height: 52dvh;
    min-height: 320px;
  }
  .controls {
    overflow: visible;
    border: 0;
  }
  .demo-body .top nav > a {
    display: inline;
  }
  .demo-body .top {
    padding: 0 18px;
  }
  .controls h1 {
    margin-top: 5px;
  }
  .controls .url-output {
    height: 75px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.license-grid .license-scale {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--paper);
}
.license-scale .button {
  flex-shrink: 0;
}
.license-scale .price {
  font-size: 26px;
}
@media (max-width: 560px) {
  .license-grid .license-scale {
    flex-direction: column;
    align-items: flex-start;
  }
}

.controls select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2334433b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.intro .eyebrow,
.text-link {
  color: var(--accent);
}
.version {
  color: #a43c26;
  background: #fff1ea;
  border-color: #f3d6c9;
}
.code-heading {
  background: #f6f5f3;
  font-weight: 600;
}
.license-grid article:nth-child(2) {
  border-color: #d88a72;
  box-shadow: 0 0 0 1px #d88a72;
}
.license-scale .button {
  color: var(--ink);
  background: white;
  border-color: #c9cbd0;
}
.license-scale .button:hover {
  background: var(--wash);
}
.legal pre {
  color: var(--ink);
}

.docs { min-width: 0; }
pre .muted { color: #a4afbd; }
