:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-strong: #f0f3f6;
  --text: #17202a;
  --muted: #5b6673;
  --line: #d9e0e7;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --code: #101820;
  --code-text: #e7edf3;
  --warning: #9a5b00;
  --warning-bg: #fff7e8;
  --shadow: 0 10px 30px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 22px;
  overflow-y: auto;
}

.brand {
  display: block;
  margin-bottom: 28px;
}

.brand__name {
  display: block;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand__meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav a {
  display: block;
  border-radius: 8px;
  color: var(--text);
  padding: 9px 10px;
  font-size: 14px;
}

.nav a[aria-current="page"],
.nav a:hover {
  background: var(--surface-strong);
  text-decoration: none;
}

.main {
  min-width: 0;
}

.content {
  width: min(1080px, calc(100vw - 320px));
  margin: 0 auto;
  padding: 52px 40px 80px;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero .content {
  padding-bottom: 48px;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.18;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 6vw, 56px);
}

h2 {
  margin: 42px 0 14px;
  font-size: 26px;
}

h3 {
  margin: 26px 0 10px;
  font-size: 18px;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font-weight: 650;
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button:hover {
  text-decoration: none;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.card h3 {
  margin-top: 0;
}

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

.callout {
  border: 1px solid #f1d39a;
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning);
  padding: 14px 16px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

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

th {
  background: var(--surface-strong);
  font-weight: 700;
}

code {
  border-radius: 5px;
  background: #edf2f7;
  padding: 2px 5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code);
  color: var(--code-text);
  padding: 16px;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.swagger-shell {
  min-height: 100vh;
  background: #ffffff;
}

.swagger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
}

.swagger-header h1 {
  font-size: 20px;
}

#swagger-ui {
  padding: 0 18px 32px;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    width: 100%;
    padding: 34px 22px 56px;
  }

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