:root {
  --bg: #f6f6f2;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-alt: #ecebe3;
  --text: #132019;
  --muted: #54625a;
  --border: rgba(19, 32, 25, 0.12);
  --accent: #0f766e;
  --accent-strong: #0a5e57;
  --shadow: 0 20px 45px rgba(19, 32, 25, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --code-bg: #122620;
  --code-text: #f7fbf9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(194, 120, 30, 0.10), transparent 26%),
    var(--bg);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

code,
pre {
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 0.92rem;
}

code {
  font-size: 0.92em;
}

p,
ul {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.9rem;
  line-height: 1.15;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

.container {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(246, 246, 242, 0.86);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero {
  margin: 2rem 0 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 251, 249, 0.86)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero p:last-child {
  margin-bottom: 0;
}

.hero-meta,
.tag-list,
.method-badges,
.group-grid,
.card-grid,
.samples-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.hero-meta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1.25rem;
}

.stat-card,
.panel,
.tag-card,
.endpoint-card,
.sample-card,
.response-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card,
.tag-card,
.endpoint-card,
.sample-card,
.response-card {
  padding: 1.1rem 1.15rem;
}

.panel {
  padding: 1.15rem 1.2rem;
  overflow: hidden;
}

.section {
  margin: 0 0 2rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.group-grid,
.card-grid,
.samples-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-link {
  border: 1px solid var(--border);
}

.badge-get {
  background: rgba(12, 148, 85, 0.14);
}

.badge-post {
  background: rgba(15, 118, 110, 0.16);
}

.badge-put,
.badge-patch {
  background: rgba(214, 168, 0, 0.18);
}

.badge-delete {
  background: rgba(201, 47, 66, 0.14);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-separator {
  opacity: 0.65;
}

.endpoint-link {
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text);
}

.endpoint-card-header,
.tag-card-header,
.response-header,
.operation-heading,
.operation-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.operation {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.response-list {
  display: grid;
  gap: 1rem;
}

.response-card pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.rich-text p:last-child,
.rich-text ul:last-child {
  margin-bottom: 0;
}

.schema-note {
  margin-bottom: 1rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.explorer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  margin: 0.5rem 0 1rem;
}

.explorer-btn:hover {
  background: var(--accent-strong);
  color: #fff;
}

@media (max-width: 720px) {
  .header-inner,
  .footer-inner,
  .operation-heading,
  .operation-title,
  .endpoint-card-header,
  .tag-card-header,
  .response-header,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .container {
    width: min(100vw - 1rem, 1180px);
  }

  .hero {
    margin-top: 1rem;
    padding: 1.15rem;
  }
}