:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --ink: #172033;
  --muted: #5c6a7d;
  --line: #dbe3ee;
  --panel: #ffffff;
  --accent: #1470cc;
  --accent-2: #0d9488;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--accent);
}

.shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  padding: 56px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 34px;
}

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

.endpoint {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .16s ease, transform .16s ease;
}

.endpoint:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.endpoint strong {
  font-size: 28px;
  letter-spacing: 0;
}

.endpoint span:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.label {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f766e;
  background: #dff7f3;
  font-size: 12px;
  font-weight: 700;
}

.panel,
.document {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 28px;
}

.panel h2,
.document h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.panel p,
.document p {
  color: var(--muted);
  line-height: 1.75;
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #edf2f7;
  color: #0f172a;
}

.document {
  width: min(840px, calc(100% - 40px));
  margin: 48px auto;
  padding: 42px;
}

.document h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 10px;
}

.document h2 {
  margin-top: 30px;
}

.compact-hero {
  padding-top: 18px;
}

.table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.table-header p {
  margin: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.model-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.model-table th,
.model-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.model-table th {
  color: #3d4d63;
  background: #f2f6fb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.model-table tr:last-child td {
  border-bottom: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin: 0 5px 5px 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #225b94;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status.ready {
  background: #dcfce7;
  color: #166534;
}

.status.pending {
  background: #fff3cd;
  color: #7a4d00;
}

.muted-text {
  color: var(--muted);
}

.updated,
.back {
  color: var(--muted);
}

.back {
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
}

@media (max-width: 800px) {
  .shell {
    padding: 36px 0;
  }

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

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

  .document {
    padding: 28px;
    margin: 20px auto;
  }

  .table-header {
    display: grid;
  }
}
