/* Hosthy API Documentation — Estilos base v3 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip corta overflow sem criar scroll container — não quebra position:sticky */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #09090b;
  color: #f4f4f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* NÃO usar overflow-x: hidden aqui — quebra position:sticky no nav */
}
a { color: #a78bfa; text-decoration: none; }
a:hover { color: #c4b5fd; text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ═══════════════════════════════════════════
   ANIMAÇÕES
═══════════════════════════════════════════ */
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #52525b; }

/* ═══════════════════════════════════════════
   LUCIDE ICONS
═══════════════════════════════════════════ */
svg.lucide { flex-shrink: 0; }
.drawer-nav li a { display: flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════
   TIPOGRAFIA INLINE
═══════════════════════════════════════════ */
:not(pre) > code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .825em;
  background: rgba(124,106,247,.13);
  color: #c4b5fd;
  padding: 2px 7px;
  border-radius: 4px;
  word-break: break-word;
  border: 1px solid rgba(124,106,247,.12);
}

/* ═══════════════════════════════════════════
   CODE BLOCKS
═══════════════════════════════════════════ */
.code-block {
  position: relative;
  margin: 16px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0c0c10;
  border: 1px solid #1e1e2a;
  max-width: 100%;
  min-width: 0;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid #1e1e2a;
}
.code-lang {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #3f3f46;
  font-family: 'JetBrains Mono', monospace;
}
.code-block pre {
  padding: 16px 18px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
  /* garante scroll interno sem expandir o grid */
  word-break: normal;
  white-space: pre;
}
.code-block pre code {
  color: #b0c4f0;
  background: none;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
  border: none;
  word-break: normal;
}
.copy-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  color: #52525b;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .13s;
  white-space: nowrap;
}
.copy-btn:hover { background: rgba(255,255,255,.1); color: #a1a1aa; }
.copy-btn.copied { color: #22c55e; border-color: rgba(34,197,94,.28); background: rgba(34,197,94,.07); }

/* ═══════════════════════════════════════════
   NAVEGAÇÃO
═══════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 60px;
  background: rgba(9,9,11,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  display: flex; align-items: center;
  height: 100%;
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  gap: 8px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: #f4f4f5;
  flex-shrink: 0; text-decoration: none !important;
  margin-right: 8px;
}
.nav-brand:hover { color: #f4f4f5; }
.nav-logo {
  width: 34px; height: 34px;
  background: rgba(124,106,247,.15);
  border: 1px solid rgba(124,106,247,.22);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo svg { width: 17px; height: 17px; color: #a78bfa; }
.nav-links {
  display: flex; align-items: center; gap: 2px; margin-left: auto;
}
.nav-links a {
  color: #71717a; font-size: 14px;
  padding: 6px 12px; border-radius: 6px;
  transition: all .12s; white-space: nowrap;
}
.nav-links a:hover { color: #f4f4f5; background: rgba(255,255,255,.05); text-decoration: none; }
.nav-badge {
  background: rgba(124,106,247,.13); color: #a78bfa;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 99px;
  border: 1px solid rgba(124,106,247,.18);
  margin-left: 6px;
}
.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 6px; color: #71717a;
  transition: all .12s; flex-shrink: 0; margin-left: auto;
}
.nav-burger:hover { background: rgba(255,255,255,.06); color: #f4f4f5; }

/* ═══════════════════════════════════════════
   MOBILE DRAWER
═══════════════════════════════════════════ */
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 200;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.drawer-overlay.active { display: block; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px; max-width: 85vw;
  background: #111115;
  border-right: 1px solid #1e1e2a;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.drawer.active { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #1e1e2a; flex-shrink: 0;
}
.drawer-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: #71717a; transition: all .12s;
}
.drawer-close:hover { background: rgba(255,255,255,.06); color: #f4f4f5; }
.drawer-body { overflow-y: auto; padding: 10px 8px; flex: 1; }
.drawer-nav { list-style: none; }
.drawer-nav li a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: 14px; color: #71717a; transition: all .12s;
}
.drawer-nav li a:hover { background: rgba(255,255,255,.05); color: #f4f4f5; text-decoration: none; }
.drawer-nav li a.active { background: rgba(124,106,247,.12); color: #a78bfa; font-weight: 600; }
.drawer-section {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #3f3f46; padding: 14px 12px 4px;
}

/* ═══════════════════════════════════════════
   WRAP / CONTAINER
═══════════════════════════════════════════ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero { padding: 88px 24px 72px; text-align: center; animation: slide-in .5s ease both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2);
  color: #4ade80; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 99px; margin-bottom: 28px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  animation: pulse-dot 2.5s infinite;
}
.hero-title {
  font-size: 3.4rem; font-weight: 800; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -.03em;
  background: linear-gradient(135deg, #f4f4f5 0%, #c4b5fd 55%, #818cf8 100%);
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 17px; color: #71717a; max-width: 500px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-url {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111115; border: 1px solid #27272a; border-radius: 9px;
  padding: 11px 20px; font-size: 13px; color: #3f3f46;
  margin-bottom: 36px; max-width: 100%; overflow: hidden;
}
.hero-url strong {
  color: #f4f4f5; font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   BOTÕES
═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: all .14s; white-space: nowrap; border: none; cursor: pointer;
}
.btn-primary { background: #7c6af7; color: #fff; }
.btn-primary:hover { background: #6a59e8; color: #fff; text-decoration: none; box-shadow: 0 0 0 3px rgba(124,106,247,.25); }
.btn-outline { background: transparent; color: #f4f4f5; border: 1px solid #3f3f46; }
.btn-outline:hover { background: rgba(255,255,255,.04); border-color: #52525b; text-decoration: none; color: #f4f4f5; }

/* ═══════════════════════════════════════════
   STATUS BAR
═══════════════════════════════════════════ */
.status-bar {
  display: flex; align-items: center; gap: 14px;
  background: #111115; border: 1px solid #1e1e2a; border-radius: 12px;
  padding: 18px 24px; margin-bottom: 56px; flex-wrap: wrap;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; animation: pulse-dot 2.5s infinite; flex-shrink: 0; }
.status-lbl { font-size: 14px; font-weight: 600; color: #f4f4f5; }
.status-note { font-size: 12px; color: #52525b; }
.status-right { margin-left: auto; display: flex; gap: 30px; }
.s-stat-v { font-size: 13px; font-weight: 700; color: #f4f4f5; }
.s-stat-l { font-size: 11px; color: #52525b; margin-top: 2px; }

/* ═══════════════════════════════════════════
   FEATURE GRID
═══════════════════════════════════════════ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 48px; }
.feat {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; background: #111115;
  border: 1px solid #1e1e2a; border-radius: 8px; transition: border-color .14s;
}
.feat:hover { border-color: #3f3f46; }
.feat-icon { width: 32px; height: 32px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feat-text { font-size: 13px; font-weight: 600; color: #f4f4f5; }

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 60px; }
.card {
  background: #111115; border: 1px solid #1e1e2a; border-radius: 12px;
  padding: 26px; transition: all .15s; position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(124,106,247,.05) 0%, transparent 65%);
  pointer-events: none;
}
.card:hover { border-color: #3f3f46; transform: translateY(-1px); }
.card-icon { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-title { font-size: 15px; font-weight: 700; color: #f4f4f5; margin-bottom: 8px; }
.card-desc { font-size: 13px; color: #71717a; line-height: 1.6; margin-bottom: 18px; }
.card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: #a78bfa; transition: gap .12s;
}
.card-link:hover { gap: 9px; text-decoration: none; color: #c4b5fd; }

/* ═══════════════════════════════════════════
   SECTION HEADING
═══════════════════════════════════════════ */
.sec-hd { margin-bottom: 32px; }
.sec-hd h2 { font-size: 1.6rem; font-weight: 800; color: #f4f4f5; margin-bottom: 6px; letter-spacing: -.02em; }
.sec-hd p { font-size: 15px; color: #71717a; }

/* ═══════════════════════════════════════════
   SECURITY BOX
═══════════════════════════════════════════ */
.sec-box {
  background: rgba(124,106,247,.06);
  border: 1px solid rgba(124,106,247,.18);
  border-radius: 12px; padding: 22px 26px;
  display: flex; gap: 16px; align-items: flex-start; margin: 32px 0;
}
.sec-ico { font-size: 22px; flex-shrink: 0; line-height: 1.6; }
.sec-title { font-size: 15px; font-weight: 700; color: #f4f4f5; margin-bottom: 7px; }
.sec-desc { font-size: 14px; color: #71717a; line-height: 1.65; }

/* ═══════════════════════════════════════════
   STEPS
═══════════════════════════════════════════ */
.step { display: flex; gap: 16px; margin-bottom: 28px; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: rgba(124,106,247,.12); border: 1px solid rgba(124,106,247,.25);
  color: #a78bfa; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-size: 14px; font-weight: 700; color: #f4f4f5; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: #71717a; line-height: 1.6; }

/* ═══════════════════════════════════════════
   LINK GRID
═══════════════════════════════════════════ */
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.link-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #111115; border: 1px solid #1e1e2a; border-radius: 10px;
  transition: all .14s;
}
.link-card:hover { border-color: #3f3f46; background: #18181b; transform: translateY(-1px); text-decoration: none; }
.link-emoji { font-size: 20px; flex-shrink: 0; }
.link-title { font-size: 14px; font-weight: 600; color: #f4f4f5; }
.link-desc { font-size: 12px; color: #52525b; margin-top: 2px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer { border-top: 1px solid #1a1a20; padding: 36px 0; margin-top: 80px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { font-size: 15px; font-weight: 700; color: #f4f4f5; }
.footer-note { font-size: 12px; color: #3f3f46; margin-top: 3px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13px; color: #3f3f46; transition: color .12s; }
.footer-links a:hover { color: #71717a; text-decoration: none; }

/* ═══════════════════════════════════════════
   DOCS LAYOUT
═══════════════════════════════════════════ */
.docs-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 0; min-height: calc(100vh - 60px); align-items: start;
  max-width: 1280px; margin: 0 auto;
  width: 100%;
  /* clip não cria scroll container — sidebar position:sticky continua funcionando */
  overflow-x: clip;
}
.sidebar {
  position: sticky; top: 60px;
  height: calc(100vh - 60px); overflow-y: auto;
  padding: 24px 14px; border-right: 1px solid #1a1a20;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: #3f3f46; padding: 16px 10px 4px; display: block;
}
.sidebar-nav { list-style: none; }
.sidebar-nav a { display: block; padding: 6px 10px; border-radius: 6px; font-size: 13px; color: #71717a; transition: all .1s; }
.sidebar-nav a:hover { color: #f4f4f5; background: rgba(255,255,255,.04); text-decoration: none; }
.sidebar-nav a.active { color: #a78bfa; background: rgba(124,106,247,.1); font-weight: 600; }

.progress-bar { position: fixed; top: 60px; left: 0; height: 2px; background: linear-gradient(90deg, #7c6af7, #a78bfa, #818cf8); z-index: 99; width: 0; transition: width .1s; pointer-events: none; }

/* ── Mobile TOC ── */
.toc-mobile { display: none; background: #111115; border: 1px solid #1e1e2a; border-radius: 10px; margin-bottom: 28px; overflow: hidden; }
.toc-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; font-size: 14px; font-weight: 600; color: #f4f4f5; }
.toc-btn svg { transition: transform .2s; flex-shrink: 0; }
.toc-btn.open svg { transform: rotate(180deg); }
.toc-items { display: none; border-top: 1px solid #1e1e2a; padding: 8px; }
.toc-items.open { display: block; }
.toc-items a { display: block; padding: 6px 10px; font-size: 13px; color: #71717a; border-radius: 6px; }
.toc-items a:hover { color: #f4f4f5; background: rgba(255,255,255,.04); text-decoration: none; }
.toc-group { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #3f3f46; padding: 10px 10px 3px; }

/* ── Docs Content ── */
.docs-content {
  padding: 36px 52px 88px;
  /* CRÍTICO: sem min-width:0, o filho 1fr do grid não encolhe
     abaixo do min-content dos code blocks longos */
  min-width: 0;
  overflow-x: hidden;
  max-width: 100%;
}
.docs-content section { margin-bottom: 64px; }
.docs-content section > h2 { font-size: 1.4rem; font-weight: 800; color: #f4f4f5; margin-bottom: 6px; letter-spacing: -.02em; }
.docs-content section > .sub { font-size: 14px; color: #71717a; margin-bottom: 22px; line-height: 1.6; }
.docs-content h3 { font-size: .95rem; font-weight: 600; color: #a78bfa; margin: 24px 0 10px; letter-spacing: -.01em; }
.docs-content p { color: #71717a; font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.docs-content p strong { color: #f4f4f5; }
.docs-content ul, .docs-content ol { padding-left: 20px; color: #71717a; margin-bottom: 14px; }
.docs-content li { font-size: 14px; line-height: 1.65; margin-bottom: 5px; }
.docs-content li strong { color: #f4f4f5; }
.docs-content a { color: #a78bfa; }
.docs-content a:hover { color: #c4b5fd; }
hr.divider { border: none; border-top: 1px solid #1a1a20; margin: 40px 0; }

/* ── Alerts ── */
.alert { display: flex; gap: 12px; padding: 13px 16px; border-radius: 8px; margin: 16px 0; font-size: 14px; line-height: 1.6; }
.alert-icon { flex-shrink: 0; }
.alert-warn { background: rgba(234,179,8,.07); border: 1px solid rgba(234,179,8,.2); color: #fbbf24; }
.alert-info { background: rgba(124,106,247,.07); border: 1px solid rgba(124,106,247,.2); color: #c4b5fd; }
.alert-success { background: rgba(34,197,94,.07); border: 1px solid rgba(34,197,94,.2); color: #4ade80; }

/* ── Tables ── */
.t-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border-radius: 9px; border: 1px solid #1e1e2a; }
.t-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.t-wrap th { text-align: left; padding: 10px 14px; background: #0f0f14; color: #3f3f46; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid #27272a; white-space: nowrap; }
.t-wrap td { padding: 11px 14px; border-bottom: 1px solid #1a1a20; color: #71717a; vertical-align: top; line-height: 1.55; }
.t-wrap tr:last-child td { border-bottom: none; }
.t-wrap td:first-child { color: #c4b5fd; font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* ── Endpoint Cards ── */
.ep { background: #111115; border: 1px solid #1e1e2a; border-radius: 9px; padding: 14px 16px; margin: 12px 0; transition: border-color .14s; }
.ep:hover { border-color: #3f3f46; }
.ep-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ep-path { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #f4f4f5; word-break: break-all; }
.ep-desc { font-size: 13px; color: #52525b; margin: 0; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; flex-shrink: 0; white-space: nowrap; font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }
.badge-get    { background: rgba(56,189,248,.1);  color: #38bdf8; }
.badge-post   { background: rgba(34,197,94,.1);   color: #22c55e; }
.badge-del    { background: rgba(239,68,68,.1);   color: #f87171; }
.badge-patch  { background: rgba(234,179,8,.1);   color: #fbbf24; }
.scope { background: rgba(124,106,247,.1); color: #a78bfa; font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; display: inline-flex; border: 1px solid rgba(124,106,247,.15); }

/* ═══════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-content { padding: 28px 32px 64px; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-burger { display: flex !important; }

  /* Hero */
  .hero { padding: 48px 16px 36px; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 14px; }
  .hero-url { font-size: 12px; padding: 9px 14px; }
  .hero-url strong { font-size: 11.5px; }

  /* Home layout */
  .cards { grid-template-columns: 1fr; }
  .status-right { display: none; }
  .sec-box { flex-direction: column; gap: 10px; padding: 16px; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 0 14px; }
  footer { margin-top: 40px; }

  /* Docs layout — colapsa sidebar, mostra TOC mobile */
  .docs-layout {
    grid-template-columns: 1fr;
    overflow-x: clip;
  }
  .sidebar { display: none; }
  .toc-mobile { display: block; }
  .docs-content { padding: 16px 16px 56px; }

  /* Docs tipografia */
  .docs-content section > h2 { font-size: 1.2rem; }
  .docs-content h3 { font-size: .9rem; margin: 18px 0 8px; }
  .docs-content p, .docs-content li { font-size: 13px; }

  /* Code blocks menores */
  .code-block pre { font-size: 11.5px; padding: 14px 14px; }
  .code-block-header { padding: 7px 12px; }

  /* Endpoint paths */
  .ep { padding: 12px 14px; }
  .ep-path { font-size: 11.5px; }
  .ep-row { gap: 7px; }

  /* Alerts */
  .alert { font-size: 13px; padding: 11px 13px; }

  /* Badges menores */
  .badge { font-size: 10px; padding: 2px 7px; }
}

@media (max-width: 480px) {
  /* Home */
  .features { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.7rem; }
  .hero-btns .btn { flex: 1; justify-content: center; }
  .hero-btns { gap: 8px; }
  .link-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  footer { padding: 24px 0; }
  .wrap { padding: 0 12px; }

  /* Docs */
  .docs-content { padding: 14px 12px 48px; }
  .docs-content section > h2 { font-size: 1.1rem; }
  .code-block pre { font-size: 11px; padding: 12px 12px; }

  /* Tabelas — cells mais compactas */
  .t-wrap th, .t-wrap td { padding: 8px 10px; font-size: 12px; }
  .t-wrap td:first-child { font-size: 11px; }

  /* TOC mobile */
  .toc-btn { padding: 12px 14px; font-size: 13px; }
  .toc-items a { font-size: 12px; padding: 5px 9px; }

  /* Nav mais compacto */
  .nav-inner { padding: 0 14px; }
  .nav-brand { font-size: 14px; }
}
