:root {
  --bg: #ffffff;
  --panel: #f7f7f5;
  --text: #1f2328;
  --muted: #5f6771;
  --line: #e4e4df;
  --accent: #0f6b5c;
  --code-bg: #f3f3ef;
  --pre-bg: #1d2329;
  --pre-text: #e6e8ea;
  --get: #1b63b5;
  --post: #0f7a4f;
  --red: #b3372c;
  --red-bg: #fbeae8;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--pre-bg); color: var(--pre-text); padding: 14px 16px; border-radius: 8px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; font-size: 1em; overflow-wrap: normal; }

.sidebar { background: var(--panel); border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; margin: 0 8px 18px; }
.brand small { font-weight: 400; font-size: 12px; color: var(--muted); }
.logo { width: 20px; height: 20px; border-radius: 5px; background: var(--accent); box-shadow: inset 0 0 0 5px var(--accent), inset 0 0 0 7px #ffffff; }
.sidebar h4 { margin: 20px 8px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; }
.sidebar li a:hover { background: var(--line); }
.sidebar li a.active { background: var(--line); font-weight: 600; }

main { padding: 44px 56px 80px; max-width: 900px; min-width: 0; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 36px 0 10px; }
h3 { font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lead { color: var(--muted); font-size: 17px; margin-top: 8px; }

.method { display: inline-block; min-width: 42px; text-align: center; font: 700 11px/1.7 ui-monospace, Menlo, Consolas, monospace; color: #ffffff; border-radius: 4px; padding: 0 5px; flex: none; }
.method-get { background: var(--get); }
.method-post { background: var(--post); }
.method-put, .method-patch { background: #8a6a12; }
.method-delete { background: var(--red); }
.endpoint-line { font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; }
th, td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.type { color: var(--muted); white-space: nowrap; }
.req { color: var(--red); font-size: 12px; font-weight: 600; }
.opt { color: var(--muted); font-size: 12px; }

.response { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin: 12px 0 18px; }
.response pre { margin-bottom: 0; }
.status { font: 700 13px/1.6 ui-monospace, Menlo, Consolas, monospace; padding: 0 7px; border-radius: 4px; }
.status-ok { background: #e3f3ec; color: var(--post); }
.status-err { background: var(--red-bg); color: var(--red); }
.example-label { font-size: 13px; color: var(--muted); font-weight: 600; margin: 14px 0 6px; }

.entry { border-top: 1px solid var(--line); padding: 22px 0 8px; }
.entry header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.entry h2 { margin: 8px 0; }
.version { font-weight: 600; color: var(--text); }
.badge-breaking { background: var(--red-bg); color: var(--red); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }

@media (max-width: 800px) {
  body { display: block; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  main { padding: 28px 16px 56px; }
  h1 { font-size: 26px; }
}
