/* ===================================================
   Shared layout partials — included in every page via
   <link rel="stylesheet" href="../assets/css/styles.css">
   This file contains page-specific component overrides.
   =================================================== */

/* Page-level heading with back-to-top anchor */
.section-group {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-group + .section-group {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Endpoint detail view */
.endpoint-detail {
  margin-bottom: 2.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.endpoint-detail-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1rem;
}
.endpoint-detail-title {
  flex: 1;
}
.endpoint-detail-title h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.3rem;
}
.endpoint-detail-route {
  display: flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

/* Parameter section */
.params-section { margin: 1.25rem 0; }
.params-title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Response tabs */
.response-tabs {
  display: flex; gap: 2px;
  margin-bottom: -1px;
}
.response-tab {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  background: var(--bg-elevated);
  color: var(--text-muted);
  transition: all var(--transition);
}
.response-tab.active {
  background: #0d1117;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ===== PAGE-SPECIFIC RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-group { margin-bottom: 2rem; }
  .section-group + .section-group { padding-top: 1.5rem; }

  .endpoint-detail { margin-bottom: 1.75rem; }
  .endpoint-detail-header { flex-direction: column; gap: 0.5rem; }
  .endpoint-detail-title h3 { font-size: 1rem; }
  .endpoint-detail-route {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    word-break: break-all;
  }

  .params-section { margin: 1rem 0; }

  .response-tabs { flex-wrap: wrap; gap: 4px; }
  .response-tab { font-size: 0.75rem; padding: 0.35rem 0.7rem; }
}

@media (max-width: 480px) {
  .section-group { margin-bottom: 1.5rem; }
  .endpoint-detail-title h3 { font-size: 0.92rem; }
  .endpoint-detail-route { font-size: 0.78rem; }
}
