/* ==========================================================================
   RezLive Developer Portal — Shared Stylesheet
   Brand extracted from rezlive-swagger_1.html
   ========================================================================== */

:root {
  /* Brand */
  --rl-blue:    #1B3A6B;
  --rl-blue-2:  #2C5282;
  --rl-orange:  #F5871F;
  --rl-orange-2:#E6741D;
  --rl-light:   #F8F9FB;
  --rl-border:  #E2E8F0;
  --rl-text:    #1A202C;
  --rl-text-2:  #4A5568;
  --rl-grey-3:  #718096;
  --rl-grey-2:  #A0AEC0;
  --rl-grey-1:  #EDF2F7;

  /* Method colors (Swagger standard) */
  --m-post:     #49CC90;
  --m-get:      #61AFFE;
  --m-put:      #FCA130;
  --m-delete:   #F93E3E;

  /* Semantic */
  --s-info-bg:  #EBF4FF;
  --s-info-bd:  #3182CE;
  --s-warn-bg:  #FFFBEB;
  --s-warn-bd:  #D69E2E;
  --s-warn-tx:  #744210;
  --s-err-bg:   #FED7D7;
  --s-err-bd:   #C53030;
  --s-err-tx:   #742A2A;
  --s-ok-bg:    #C6F6D5;
  --s-ok-bd:    #38A169;
  --s-ok-tx:    #22543D;

  /* Code */
  --c-bg:       #1A202C;
  --c-text:     #E2E8F0;
  --c-comment:  #718096;
  --c-string:   #F687B3;
  --c-tag:      #63B3ED;
  --c-attr:     #B794F4;

  /* Layout */
  --sidebar-w:  280px;
  --header-h:   64px;
  --content-pad:48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--rl-text);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #FFFFFF;
  border-bottom: 2px solid #0B4BB3;
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: #1F2937;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0;
}

.header__brand img {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  padding: 20px;
}

.header__brand .live { color: var(--rl-orange); }

.header__brand-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: rgba(245, 135, 31, 0.18);
  color: var(--rl-orange);
  border-radius: 4px;
  text-transform: uppercase;
}

.header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__menu {
  display: none;
  margin-left: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #D0D9E9;
  background: #FFFFFF;
  color: #1F2937;
  font-size: 20px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header__menu:hover {
  background: #F8FAFF;
}

.header__nav a {
  color: #2F2F2F;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 120ms ease;
  white-space: nowrap;
}

.header__nav a:hover,
.header__nav a.active { color: #1E66E7; }

.header__version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #EEF4FF;
  color: #1E66E7;
  border-radius: 4px;
  border: 1px solid #CFE0FF;
}

.header__version::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--m-post);
  box-shadow: 0 0 6px rgba(73, 204, 144, 0.6);
}

.header__cta {
  margin-left: 14px;
  background: #1E66E7;
  color: white !important;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background 120ms ease, transform 120ms ease;
}

.header__cta:hover {
  background: #1658CE;
  transform: translateY(-1px);
}

/* ==========================================================================
   Layout: sidebar + content
   ========================================================================== */

.layout {
  display: flex;
  min-height: calc(100vh - var(--header-h));
  width: 100%;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--rl-light);
  border-right: 1px solid var(--rl-border);
  padding: 24px 0;
  overflow-y: auto;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
}

.sidebar__group {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--rl-grey-3);
  margin-top: 16px;
}

.sidebar__group:first-child { margin-top: 0; }

.sidebar__nav {
  list-style: none;
}

.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--rl-text-2);
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 120ms ease;
}

.sidebar__nav a:hover {
  color: var(--rl-blue);
  background: white;
}

.sidebar__nav a.active {
  color: var(--rl-blue);
  background: white;
  border-left-color: var(--rl-orange);
  font-weight: 600;
}

.sidebar__nav .method {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  color: white;
  letter-spacing: 0.4px;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  min-width: 32px;
  text-align: center;
}

.sidebar__nav .method.post   { background: var(--m-post); }
.sidebar__nav .method.get    { background: var(--m-get); }
.sidebar__nav .method.put    { background: var(--m-put); }
.sidebar__nav .method.delete { background: var(--m-delete); }

.content {
  flex: 1;
  padding: var(--content-pad);
  width: 100%;
  min-width: 0;
}

.content__inner {
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--rl-blue);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--rl-blue);
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--rl-text);
  margin: 32px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--rl-text-2);
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

p { margin: 0 0 14px; color: var(--rl-text); }

a { color: var(--rl-blue); text-decoration: underline; text-decoration-color: rgba(27, 58, 107, 0.3); transition: text-decoration-color 120ms ease; }
a:hover { text-decoration-color: var(--rl-blue); }

code, .code-inline {
  font-family: "SF Mono", Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  background: var(--rl-grey-1);
  color: var(--rl-blue);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

ul, ol { margin: 0 0 14px 24px; }
li { margin-bottom: 6px; }

hr { border: none; border-top: 1px solid var(--rl-border); margin: 32px 0; }

.text-muted { color: var(--rl-text-2); }
.text-small { font-size: 13px; }
.text-xs    { font-size: 12px; }

strong { font-weight: 700; color: var(--rl-text); }

/* ==========================================================================
   Hero (home page)
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, var(--rl-blue) 0%, var(--rl-blue-2) 100%);
  color: white;
  padding: 64px var(--content-pad) 56px;
  margin: calc(var(--content-pad) * -1) calc(var(--content-pad) * -1) 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 135, 31, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: white;
  font-size: 44px;
  margin-bottom: 16px;
  position: relative;
}

.hero .subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 32px;
  position: relative;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 120ms ease;
  font-family: inherit;
}

.btn--primary {
  background: var(--rl-orange);
  color: white;
}
.btn--primary:hover { background: var(--rl-orange-2); }

.btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.2); }

.btn--ghost {
  background: white;
  color: var(--rl-blue);
  border: 1px solid var(--rl-border);
}
.btn--ghost:hover { background: var(--rl-light); border-color: var(--rl-blue); }

/* ==========================================================================
   Stats bar
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rl-border);
  border: 1px solid var(--rl-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.stat {
  background: white;
  padding: 16px 12px;
  text-align: center;
}

.stat__value {
  font-size: 24px;
  font-weight: 800;
  color: var(--rl-blue);
  line-height: 1.1;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}

.stat__label {
  font-size: 11px;
  color: var(--rl-text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.card {
  display: block;
  text-decoration: none;
  background: white;
  border: 1px solid var(--rl-border);
  border-radius: 8px;
  padding: 20px;
  transition: all 150ms ease;
  color: inherit;
}

.card:hover {
  border-color: var(--rl-orange);
  box-shadow: 0 4px 12px rgba(27, 58, 107, 0.08);
  transform: translateY(-2px);
}

.card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--rl-light);
  color: var(--rl-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rl-blue);
  margin-bottom: 4px;
}

.card__desc {
  font-size: 13px;
  color: var(--rl-text-2);
  line-height: 1.5;
}

/* ==========================================================================
   Endpoint banner (for endpoint pages)
   ========================================================================== */

.endpoint-banner {
  display: flex;
  align-items: stretch;
  background: white;
  border: 1px solid var(--rl-border);
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0 24px;
  box-shadow: 0 2px 4px rgba(27, 58, 107, 0.04);
}

.endpoint-banner__method {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-weight: 800;
  font-size: 13px;
  color: white;
  letter-spacing: 0.5px;
}

.endpoint-banner__method.post   { background: var(--m-post); }
.endpoint-banner__method.get    { background: var(--m-get); }
.endpoint-banner__method.put    { background: var(--m-put); }
.endpoint-banner__method.delete { background: var(--m-delete); }

.endpoint-banner__path {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 14px;
  color: var(--rl-blue);
  padding: 14px 16px;
  font-weight: 600;
  flex: 1;
  background: white;
  display: flex;
  align-items: center;
}

.endpoint-banner__copy {
  border: none;
  background: var(--rl-light);
  border-left: 1px solid var(--rl-border);
  padding: 0 16px;
  cursor: pointer;
  color: var(--rl-text-2);
  font-size: 13px;
  font-weight: 600;
  transition: all 120ms ease;
}

.endpoint-banner__copy:hover { background: var(--rl-grey-1); color: var(--rl-blue); }

/* ==========================================================================
   Code blocks
   ========================================================================== */

.code-block {
  position: relative;
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-bg);
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block__lang {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.code-block__copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 120ms ease;
}

.code-block__copy:hover { background: rgba(255, 255, 255, 0.12); color: white; }
.code-block__copy.copied { background: var(--m-post); color: white; border-color: var(--m-post); }

.code-block pre {
  padding: 16px 18px;
  overflow-x: auto;
  font-family: "SF Mono", Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--c-text);
}

.code-block pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; font-weight: normal; }

/* Token highlight */
.tk-tag     { color: var(--c-tag); }
.tk-attr    { color: var(--c-attr); }
.tk-string  { color: var(--c-string); }
.tk-comment { color: var(--c-comment); font-style: italic; }
.tk-key     { color: #FBD38D; }
.tk-num     { color: #F687B3; }

/* ==========================================================================
   Tabs (Request/Response, multiple languages)
   ========================================================================== */

.tabs {
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rl-border);
}

.tabs__nav {
  display: flex;
  background: var(--rl-light);
  border-bottom: 1px solid var(--rl-border);
}

.tabs__btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rl-text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  transition: all 120ms ease;
}

.tabs__btn:hover { color: var(--rl-blue); }
.tabs__btn.active { color: var(--rl-blue); border-bottom-color: var(--rl-orange); background: white; }

.tabs__panel { display: none; }
.tabs__panel.active { display: block; }

.tabs--code .tabs__panel .code-block { margin: 0; border-radius: 0; }

/* ==========================================================================
   Callouts
   ========================================================================== */

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 6px;
  margin: 16px 0;
  border-left: 4px solid;
  font-size: 14px;
}

.callout__icon {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
}

.callout__body { flex: 1; }
.callout__body p:last-child { margin-bottom: 0; }
.callout__title { font-weight: 700; margin-bottom: 4px; }

.callout--info     { background: var(--s-info-bg); border-color: var(--s-info-bd); color: #1E3A5F; }
.callout--info .callout__icon { color: var(--s-info-bd); }

.callout--important{ background: var(--s-warn-bg); border-color: var(--s-warn-bd); color: var(--s-warn-tx); }
.callout--important .callout__icon { color: var(--s-warn-bd); }

.callout--warning  { background: var(--s-err-bg); border-color: var(--s-err-bd); color: var(--s-err-tx); }
.callout--warning .callout__icon { color: var(--s-err-bd); }

.callout--success  { background: var(--s-ok-bg); border-color: var(--s-ok-bd); color: var(--s-ok-tx); }
.callout--success .callout__icon { color: var(--s-ok-bd); }

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap {
  margin: 16px 0;
  border: 1px solid var(--rl-border);
  border-radius: 8px;
  overflow: hidden;
  overflow-x: auto;
}

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

th {
  background: var(--rl-blue);
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.2px;
}

td {
  padding: 10px 14px;
  border-top: 1px solid var(--rl-border);
  vertical-align: top;
}

tr:nth-child(even) td { background: var(--rl-light); }

td code { font-size: 12.5px; }

td .req-yes { color: var(--s-err-bd); font-weight: 700; }
td .req-no  { color: var(--rl-grey-3); }

/* ==========================================================================
   Try-it widget
   ========================================================================== */

.tryit {
  background: white;
  border: 1px solid var(--rl-border);
  border-radius: 8px;
  margin: 24px 0;
  overflow: hidden;
}

.tryit__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--rl-blue), var(--rl-blue-2));
  color: white;
}

.tryit__head h4 {
  color: white;
  margin: 0;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.tryit__mock {
  font-size: 11px;
  background: rgba(255,255,255,0.15);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 700;
}

.tryit__body { padding: 18px; }

.tryit__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.tryit__field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--rl-text-2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.tryit__field input,
.tryit__field select {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--rl-border);
  border-radius: 4px;
  background: var(--rl-light);
  font-family: inherit;
  color: var(--rl-text);
}

.tryit__field input:focus,
.tryit__field select:focus {
  outline: none;
  border-color: var(--rl-orange);
  background: white;
}

.tryit__send {
  background: var(--rl-orange);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background 120ms ease;
}
.tryit__send:hover { background: var(--rl-orange-2); }
.tryit__send:disabled { background: var(--rl-grey-2); cursor: not-allowed; }

.tryit__response { margin-top: 16px; display: none; }
.tryit__response.visible { display: block; }

.tryit__response-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
}

.tryit__status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.4px;
}
.tryit__status.ok    { background: var(--s-ok-bg); color: var(--s-ok-tx); }
.tryit__status.err   { background: var(--s-err-bg); color: var(--s-err-tx); }

.tryit__time { color: var(--rl-text-2); font-family: "SF Mono", Monaco, Consolas, monospace; }

/* ==========================================================================
   Status pills (for booking statuses)
   ========================================================================== */

.pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.pill--breaking { background: var(--s-err-bg); color: var(--s-err-tx); }
.pill--new      { background: var(--s-ok-bg);  color: var(--s-ok-tx); }
.pill--improve  { background: var(--s-info-bg); color: #1E3A5F; }
.pill--deprec   { background: var(--s-warn-bg); color: var(--s-warn-tx); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--rl-border);
  padding: 32px var(--content-pad);
  font-size: 13px;
  color: var(--rl-text-2);
  text-align: center;
  background: var(--rl-light);
}

.footer a { color: var(--rl-text-2); }

/* ==========================================================================
   Page foot navigation (prev / next)
   ========================================================================== */

.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rl-border);
}

.page-nav__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--rl-text-2);
  padding: 12px 16px;
  border: 1px solid var(--rl-border);
  border-radius: 6px;
  transition: all 120ms ease;
  max-width: 45%;
}

.page-nav__link:hover {
  border-color: var(--rl-orange);
  color: var(--rl-blue);
}

.page-nav__link--prev { text-align: left; }
.page-nav__link--next { text-align: right; margin-left: auto; }

.page-nav__hint {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rl-grey-3);
}

.page-nav__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--rl-blue);
  margin-top: 2px;
}

/* ==========================================================================
   Motion
   ========================================================================== */

.anim-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.anim-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  animation: heroFadeIn 500ms ease-out both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 28, 50, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 90;
}

.mobile-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 900px) {
  :root { --content-pad: 24px; }
  #swaggerIframe{    height: 300px !important;}

  .header {
    padding: 0 14px;
    gap: 10px;
  }

  .header__brand {
    margin-right: auto;
    min-width: 0;
  }

  .header__brand img {
    width: 170px;
  }

  .header__menu {
    display: inline-flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(150px, 85vw);
    height: calc(100vh - var(--header-h));
    background: #FFFFFF;
    margin: 0;
    padding: 22px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 220ms ease;
    z-index: 100;
    border-left: 1px solid #E5EAF4;
  }

  .header.nav-open .header__nav {
    transform: translateX(0);
  }

  .header__nav a,
  .header__nav .header__version,
  .header__nav .header__cta {
    width: 100%;
  }

  .header__nav a {
    font-size: 14px;
    padding: 5px 0px;
    border-bottom: 1px solid #EEF3FA;
  }

  .header__version {
    justify-content: center;
  }

  .header__cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    z-index: 99;
    top: var(--header-h);
    left: 0;
    width: min(var(--sidebar-w), 88vw);
    box-shadow: 8px 0 24px rgba(7, 17, 35, 0.18);
  }

  .sidebar.open { transform: translateX(0); }

  .content {
    padding: 22px 16px 30px;
    max-width: 100%;
  }

  .hero {
    margin-left: -16px;
    margin-right: -16px;
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .endpoint-banner {
    flex-wrap: wrap;
  }

  .endpoint-banner__method {
    padding: 10px 16px;
  }

  .endpoint-banner__path {
    width: 100%;
    order: 3;
    border-top: 1px solid var(--rl-border);
  }

  .endpoint-banner__copy {
    margin-left: auto;
  }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .page-nav {
    gap: 12px;
  }

  .page-nav__link {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 620px) {
  :root { --content-pad: 16px; }

  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
  h3 { font-size: 18px; }

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

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

  .stat__value {
    font-size: 20px;
  }

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

  .page-nav {
    flex-direction: column;
  }

  .page-nav__link--next {
    margin-left: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .anim-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print */
@media print {
  .sidebar, .header, .footer, .page-nav { display: none; }
  .content { padding: 0; max-width: 100%; }
}
