/* ========================================================================
   Wis.Chat API Manual · Stylesheet
   Brand: NOUXSOFT S.A.S. · Wischat — WhatsApp Integrated System
   ======================================================================== */

:root{
  /* Brand */
  --brand: #1976D2;
  --brand-dark: #0D47A1;
  --brand-darker: #082c63;
  --brand-light: #E3F2FD;
  --brand-tint: #f5fafe;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #fafbfc;
  --bg-elev: #f5f7fa;
  --bg-code: #0f1729;
  --bg-card: #ffffff;

  /* Text */
  --text: #0f172a;
  --text-strong: #020617;
  --text-dim: #475569;
  --text-muted: #94a3b8;

  /* Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Status colors */
  --success: #10b981;
  --warn: #f59e0b;
  --error: #ef4444;
  --info: #06b6d4;
  --purple: #8b5cf6;

  /* Typography */
  --display: 'Bricolage Grotesque', serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

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

html{ scroll-behavior:smooth; scroll-padding-top: 32px; }

body{
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection{ background: var(--brand); color: #fff; }

img{ max-width: 100%; display: block; }

a{
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover{ border-bottom-color: var(--brand); }

/* ========================================================================
   LAYOUT
   ======================================================================== */
.app{
  display: grid;
  grid-template-columns: 296px 1fr;
  min-height: 100vh;
}

/* ========================================================================
   SIDEBAR
   ======================================================================== */
.sidebar{
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.sidebar::-webkit-scrollbar{ width: 6px; }
.sidebar::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius: 3px; }

.brand{
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand-link{ display: block; border: none; }
.brand-link:hover{ border: none; }
.brand-img{
  height: 38px;
  width: auto;
  margin-bottom: 8px;
}
.brand-tag{
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}

/* version pill */
.brand-version{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--brand);
  background: var(--brand-light);
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 600;
  margin-top: 4px;
}
.brand-version::before{
  content:'';
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
}

/* ============== SEARCH BOX ============== */
.search{
  padding: 16px 16px 0;
  position: relative;
}
.search-input-wrap{
  position: relative;
}
.search-input{
  width: 100%;
  font-family: var(--body);
  font-size: 13.5px;
  padding: 9px 14px 9px 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: all 0.15s ease;
  outline: none;
}
.search-input::placeholder{ color: var(--text-muted); }
.search-input:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}
.search-icon{
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-shortcut{
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  font-weight: 600;
}
.search-input:focus + .search-shortcut{ display: none; }

.search-results{
  position: absolute;
  top: calc(100% + 4px);
  left: 16px;
  right: 16px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 50;
  display: none;
  scrollbar-width: thin;
}
.search-results.open{ display: block; }
.search-results::-webkit-scrollbar{ width: 6px; }
.search-results::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius: 3px; }

.search-result{
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.1s ease;
}
.search-result:last-child{ border-bottom: none; }
.search-result:hover,
.search-result.focused{
  background: var(--brand-tint);
  border-left-color: var(--brand);
  border-bottom-color: var(--border);
}
.search-result-title{
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-result-title mark{
  background: rgba(25, 118, 210, 0.2);
  color: var(--brand-darker);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}
.search-result-section{
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 600;
}
.search-result-snippet{
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-snippet mark{
  background: rgba(245, 158, 11, 0.25);
  color: var(--text-strong);
  padding: 0 1px;
  font-weight: 600;
}
.search-result-kind{
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: auto;
  flex-shrink: 0;
}
.search-result-kind.page{ background: rgba(139, 92, 246, 0.12); color: var(--purple); }
.search-result-kind.h2{ background: rgba(25, 118, 210, 0.12); color: var(--brand); }
.search-result-kind.h3{ background: rgba(6, 182, 212, 0.12); color: var(--info); }

.search-empty{
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.search-empty .hint{
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 4px;
  color: var(--text-muted);
}

.search-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.08);
  z-index: 49;
}
.search-overlay.open{ display: block; }

/* highlight target on jump */
@keyframes targetFlash {
  0%   { background: var(--brand-light); }
  100% { background: transparent; }
}
:target{
  animation: targetFlash 1.4s ease-out;
}

/* nav */
.nav{ padding: 20px 12px 40px; }
.nav-group{ margin-bottom: 22px; }
.nav-title{
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0 12px 8px;
  font-weight: 600;
}
.nav a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  color: var(--text-dim);
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  position: relative;
  border: none;
  font-weight: 500;
}
.nav a:hover{
  color: var(--brand);
  background: var(--brand-tint);
  border: none;
}
.nav a.active{
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 600;
}
.nav a.active::before{
  content:'';
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}

.method-tag{
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.method-tag.get{ background: rgba(6, 182, 212, 0.12); color: var(--info); }
.method-tag.post{ background: rgba(25, 118, 210, 0.12); color: var(--brand); }
.method-tag.put{ background: rgba(245, 158, 11, 0.15); color: var(--warn); }
.method-tag.del{ background: rgba(239, 68, 68, 0.12); color: var(--error); }

/* ========================================================================
   MAIN
   ======================================================================== */
.main{
  max-width: 920px;
  padding: 56px 64px 120px;
}

.crumbs{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.crumbs a{
  color: var(--text-muted);
  border: none;
}
.crumbs a:hover{ color: var(--brand); border: none; }
.crumbs .sep{ color: var(--border-strong); }

/* Hero (index page) */
.hero{
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-light);
  border: 1px solid rgba(25, 118, 210, 0.2);
  padding: 5px 11px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  font-weight: 600;
}
.hero-badge::before{
  content:''; width:6px; height:6px; background: var(--brand); border-radius:50%;
  box-shadow: 0 0 8px var(--brand);
}
.hero-meta{
  display:flex;
  gap: 32px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-meta div span{
  color: var(--text);
  display:block;
  margin-top:3px;
  font-size:13px;
  font-weight: 600;
}

/* ========================================================================
   TYPOGRAPHY
   ======================================================================== */
h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  color: var(--text-strong);
}
h1 em{
  font-style: italic;
  color: var(--brand);
}

.page-title{
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--text-strong);
}
.page-sub{
  font-size: 17px;
  color: var(--text-dim);
  max-width: 720px;
  line-height: 1.55;
  margin-bottom: 36px;
}

h2{
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 56px 0 14px;
  scroll-margin-top: 24px;
  color: var(--text-strong);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
h2:first-of-type{ border-top: none; padding-top: 0; margin-top: 0; }

h3{
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.012em;
  margin: 32px 0 10px;
  color: var(--text-strong);
}

h4{
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 24px 0 10px;
}

p{ margin-bottom: 14px; color: var(--text-dim); }
p strong{ color: var(--text-strong); font-weight: 600; }

ul, ol{ margin: 14px 0 18px 22px; color: var(--text-dim); }
li{ margin-bottom: 6px; }
li::marker{ color: var(--brand); }

code:not(pre code){
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--brand-light);
  color: var(--brand-darker);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid rgba(25, 118, 210, 0.12);
}

/* ========================================================================
   ENDPOINT BLOCK
   ======================================================================== */
.endpoint{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 18px 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.endpoint::before{
  content:'';
  position: absolute;
  left:0; top:0; bottom:0;
  width: 3px;
  background: var(--brand);
}
.endpoint .method{
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.endpoint .method.post{ background: var(--brand); color: #fff; }
.endpoint .method.get{ background: var(--info); color: #fff; }
.endpoint .method.put{ background: var(--warn); color: #fff; }
.endpoint .method.delete{ background: var(--error); color: #fff; }
.endpoint .url{ color: var(--text-strong); flex: 1; word-break: break-all; }
.endpoint .url .var{ color: var(--purple); font-style: italic; font-weight: 600; }

/* ========================================================================
   CARDS / CALLOUTS
   ======================================================================== */
.card{
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 20px 0;
}

.callout{
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
  padding: 16px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 18px 0;
  font-size: 14px;
}
.callout.warn{
  border-color: var(--warn);
  background: #fffbeb;
}
.callout.warn strong{ color: #b45309; }
.callout.info{
  border-color: var(--info);
  background: #ecfeff;
}
.callout.info strong{ color: #0e7490; }
.callout.danger{
  border-color: var(--error);
  background: #fef2f2;
}
.callout.danger strong{ color: #b91c1c; }
.callout p{ margin: 0; color: var(--text-dim); }
.callout p + p{ margin-top: 8px; }
.callout strong{ color: var(--brand-dark); font-weight: 600; }

/* ========================================================================
   TABS
   ======================================================================== */
.tabs{
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-top: 18px;
  flex-wrap: wrap;
}
.tab{
  font-family: var(--mono);
  font-size: 12px;
  padding: 9px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  margin-bottom: -1px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tab:hover{ color: var(--text-dim); }
.tab.active{ color: var(--brand); border-bottom-color: var(--brand); }
.tab-content{ display: none; }
.tab-content.active{ display: block; }

/* ========================================================================
   CODE
   ======================================================================== */
.code-wrap{ position: relative; margin: 12px 0 20px; }
pre{
  background: var(--bg-code);
  border: 1px solid #1e293b;
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: #e2e8f0;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
pre::-webkit-scrollbar{ height: 6px; }
pre::-webkit-scrollbar-thumb{ background: #334155; border-radius: 3px; }

.tabs + .code-wrap pre{ border-radius: 0 0 var(--radius) var(--radius); }

/* Token colors (terminal-friendly) */
pre .kw{ color: #f472b6; }
pre .str{ color: #86efac; }
pre .num{ color: #fbbf24; }
pre .com{ color: #64748b; font-style: italic; }
pre .fn{ color: #60a5fa; }
pre .var{ color: #c4b5fd; }
pre .punct{ color: #94a3b8; }

.copy-btn{
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.15s ease;
  z-index: 2;
  font-weight: 600;
}
.copy-btn:hover{ color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.copy-btn.copied{ color: #86efac; border-color: #86efac; }

/* ========================================================================
   TABLES
   ======================================================================== */
.table-wrap{
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th, td{
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th{
  background: var(--bg-elev);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
td{ color: var(--text-dim); }
td code{ font-size: 12.5px; }
tr:last-child td{ border-bottom: none; }
tr:hover td{ background: var(--bg-soft); }

.required{ color: var(--error); font-family: var(--mono); font-size: 11px; font-weight: 600; }
.optional{ color: var(--text-muted); font-family: var(--mono); font-size: 11px; }

/* ========================================================================
   BADGES
   ======================================================================== */
.badge{
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge.high{ background: rgba(16, 185, 129, 0.12); color: var(--success); }
.badge.medium{ background: rgba(245, 158, 11, 0.15); color: var(--warn); }
.badge.low{ background: rgba(239, 68, 68, 0.12); color: var(--error); }
.badge.sent{ background: rgba(6, 182, 212, 0.12); color: var(--info); }
.badge.delivered{ background: rgba(139, 92, 246, 0.12); color: var(--purple); }
.badge.read{ background: rgba(25, 118, 210, 0.12); color: var(--brand); }
.badge.failed{ background: rgba(239, 68, 68, 0.12); color: var(--error); }

/* ========================================================================
   GRIDS
   ======================================================================== */
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.grid-3{ display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0; }

.feature-card{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all 0.2s ease;
}
.feature-card:hover{
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-card .icon{
  width: 38px; height: 38px;
  background: var(--brand-light);
  border-radius: 8px;
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--brand);
}
.feature-card h4{ margin: 0 0 6px; color: var(--text-strong); text-transform: none; letter-spacing: 0; font-size: 15px; }
.feature-card p{ margin: 0; font-size: 13.5px; }
.feature-card a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  border: none;
}
.feature-card a:hover{ gap: 9px; border: none; }

/* ========================================================================
   REPUTATION CARDS
   ======================================================================== */
.rep-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 24px 0; }
.rep-card{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.rep-card::before{
  content:'';
  position: absolute;
  top:0; left:0; right:0;
  height: 4px;
}
.rep-card.high::before{ background: var(--success); }
.rep-card.medium::before{ background: var(--warn); }
.rep-card.low::before{ background: var(--error); }

.rep-card h4{
  font-family: var(--display);
  font-size: 18px;
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 8px 0 4px;
  color: var(--text-strong);
}
.rep-card .level{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.rep-card.high .level{ color: var(--success); }
.rep-card.medium .level{ color: var(--warn); }
.rep-card.low .level{ color: var(--error); }
.rep-card p{ margin: 12px 0 0; font-size: 13.5px; color: var(--text-dim); }
.rep-card ul{ margin: 12px 0 0 18px; font-size: 13px; }

/* ========================================================================
   PAGE NAVIGATION (prev / next)
   ======================================================================== */
.page-nav{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.page-nav a{
  display: block;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.15s ease;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-nav a:hover{
  border-color: var(--brand);
  background: var(--brand-tint);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.page-nav a.next{ text-align: right; }
.page-nav a:only-child.next{ grid-column: 2; }
.page-nav a.prev:only-child{ grid-column: 1; }

.page-nav .label{
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  font-weight: 600;
}
.page-nav .title{
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-nav a.next .title{ justify-content: flex-end; }
.page-nav .arrow{ color: var(--brand); font-weight: 700; }

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer{
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer .credit{
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.footer .credit b{ color: var(--brand); font-weight: 600; }
.footer a{
  color: var(--text-muted);
  border: none;
  font-size: 11.5px;
  font-family: var(--mono);
}
.footer a:hover{ color: var(--brand); border: none; }

/* ========================================================================
   MOBILE
   ======================================================================== */
.mobile-toggle{ display: none; }

@media (max-width: 1024px){
  .app{ grid-template-columns: 1fr; }
  .sidebar{
    position: fixed;
    left: -320px;
    top: 0;
    width: 296px;
    z-index: 100;
    transition: left 0.25s ease;
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.12);
  }
  .sidebar.open{ left: 0; }
  .main{ padding: 80px 24px 80px; }
  .mobile-toggle{
    display: flex;
    position: fixed;
    top: 16px; left: 16px;
    z-index: 101;
    width: 44px; height: 44px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--brand);
    font-size: 20px;
    box-shadow: var(--shadow);
  }
  .page-title{ font-size: 32px; }
  h1{ font-size: 36px; }
  h2{ font-size: 22px; }
  .grid-2, .grid-3, .rep-grid{ grid-template-columns: 1fr; }
  .page-nav{ grid-template-columns: 1fr; }
  .hero-meta{ gap: 20px; }
}

@media (max-width: 640px){
  .main{ padding: 76px 18px 60px; }
  .endpoint{ flex-wrap: wrap; padding: 14px 18px; font-size: 12.5px; }
}
