/* ==========================================================================
   UTB — design system & landing page
   Brand:   Gold #FDDB64 (253,219,100) · Black · Navy #393E59
   Surfaces: dark-mode grays
   Brand colors live in the :root variables below — re-skin from one place.
   ========================================================================== */

:root {
  /* Brand */
  --gold: #fddb64;
  --gold-rgb: 253, 219, 100;
  --gold-2: #ffe88a;
  --gold-deep: #d9b94b;
  --gold-grad: linear-gradient(135deg, #ffe88a, #fddb64 48%, #e6bf4f);
  --navy: #393e59;
  --navy-2: #4b5274;
  --ink: #15120a; /* near-black, warm — text on gold */

  /* Surfaces (dark-mode grays) */
  --bg: #0b0c0f;
  --bg-2: #0f1116;
  --surface: #15171d;
  --surface-2: #1b1e26;
  --surface-3: #232733;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.15);

  /* Text */
  --text: #f2f3f5;
  --text-muted: #a1a7b3;
  --text-dim: #6b7280;

  /* Shape & depth */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }
a { color: var(--gold); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-2); }
svg { vertical-align: middle; }
::selection { background: rgba(var(--gold-rgb), 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reusable icon (uses the inline <symbol> sprite) */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.section { position: relative; padding: 92px 0; }
.section-sm { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin: 1rem 0 0.6rem;
}
.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
}
.section-head .lead { margin-bottom: 0; }

.hl { color: var(--gold); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1.05rem; }

.btn-gold {
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(var(--gold-rgb), 0.65);
}
.btn-gold:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(var(--gold-rgb), 0.8);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(var(--gold-rgb), 0.5);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.utb-nav {
  background: rgba(11, 12, 15, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
  padding: 0.85rem 0;
}
.utb-nav.scrolled {
  background: rgba(11, 12, 15, 0.92);
  border-bottom-color: var(--border);
}
.utb-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.utb-nav .brand-mark { width: 34px; height: 34px; }
.utb-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.4rem 0.9rem !important;
  border-radius: 8px;
}
.utb-nav .nav-link:hover { color: #fff; }
.utb-nav .nav-link.active { color: var(--gold); }
.utb-nav .navbar-toggler {
  border: 1px solid var(--border-2);
  padding: 0.35rem 0.5rem;
}
.utb-nav .navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .utb-nav .navbar-collapse {
    background: var(--surface);
    margin-top: 0.8rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
  }
  .utb-nav .nav-link { padding: 0.6rem 0.4rem !important; }
  .utb-nav .nav-cta {
    margin-top: 0.8rem;
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Decorative background glows
   -------------------------------------------------------------------------- */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.glow-gold { background: radial-gradient(circle, rgba(var(--gold-rgb), 0.16), transparent 60%); }
.glow-navy { background: radial-gradient(circle, rgba(75, 82, 116, 0.45), transparent 62%); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: 132px 0 88px; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  margin-bottom: 1.1rem;
}
.hero .sub {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-trust {
  margin-top: 2.3rem;
  display: flex;
  gap: 0.7rem 1.6rem;
  flex-wrap: wrap;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-trust .icon { width: 18px; height: 18px; color: var(--gold); }

/* Code card */
.code-card {
  background: linear-gradient(180deg, #14161c, #0f1116);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.code-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.6), transparent);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.code-dots { display: flex; gap: 0.4rem; }
.code-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2c303b; display: block; }
.code-label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}
.code-label .m { color: var(--gold); font-weight: 600; }
.code-card pre {
  margin: 0;
  padding: 1.25rem 1.35rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.75;
  overflow-x: auto;
  color: #cdd3df;
}
.code-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.code-foot .ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #37d39b;
  box-shadow: 0 0 10px #37d39b;
}
.tok-c { color: #6b7280; font-style: italic; }
.tok-k { color: var(--gold); font-weight: 600; }
.tok-u { color: #e8eaed; }
.tok-p { color: #9db2ff; }
.tok-s { color: #e6c98a; }
.tok-n { color: #7ee0c0; }

/* --------------------------------------------------------------------------
   "What we connect" flow
   -------------------------------------------------------------------------- */
.flow {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  justify-content: center;
}
.flow-col { flex: 1 1 0; min-width: 0; }
.flow-chev {
  display: flex;
  align-items: center;
  color: var(--gold);
  flex: 0 0 auto;
}
.flow-chev .icon { width: 30px; height: 30px; }

.flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  height: 100%;
}
.flow-card > h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-top: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.chip:first-of-type { margin-top: 0; }
.chip .icon { width: 20px; height: 20px; color: var(--gold); }

.flow-core {
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.13), rgba(var(--gold-rgb), 0.03));
  border: 1px solid rgba(var(--gold-rgb), 0.32);
  border-radius: var(--radius);
  padding: 1.7rem 1.3rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.core-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 12px 30px -8px rgba(var(--gold-rgb), 0.6);
}
.core-badge .icon { width: 30px; height: 30px; stroke-width: 1.9; }
.flow-core h3 { font-size: 1.5rem; letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.flow-core p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }
.flow-tags { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.flow-tags .tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  color: var(--gold);
}

@media (max-width: 900px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-chev { justify-content: center; transform: rotate(90deg); padding: 0.2rem 0; }
}

/* --------------------------------------------------------------------------
   Feature cards (pillars)
   -------------------------------------------------------------------------- */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), 0.4);
  background: var(--surface-2);
}
.feature-ic {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.28rem; }
.feature-card p { color: var(--text-muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Payment rails grid
   -------------------------------------------------------------------------- */
.rail {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 100%;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.rail:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.rail .ic {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(57, 62, 89, 0.45);
  border: 1px solid var(--border);
  color: var(--gold);
}
.rail b { display: block; color: #fff; font-weight: 600; }
.rail span { color: var(--text-muted); font-size: 0.86rem; }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3.5rem;
}
.stat { text-align: center; }
.stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat .lbl { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #2a2e44);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.22), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band .lead { max-width: 560px; margin: 0 auto 1.8rem; color: #d7dae3; }
.cta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.9rem;
}
.footer .brand-mark { width: 30px; height: 30px; }
.footer .tagline { color: var(--text-muted); max-width: 300px; font-size: 0.92rem; }
.footer h5 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  display: block;
  padding: 0.32rem 0;
  font-weight: 500;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (progressive enhancement — content shows without JS)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { animation: none !important; }
}

/* ==========================================================================
   Legacy "coming soon" placeholder styles (used by coming-soon.html)
   ========================================================================== */
body.coming-soon {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(var(--gold-rgb), 0.12), transparent 60%),
    linear-gradient(160deg, #14151a, var(--bg));
}
.cs-wrap { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.cs-content { max-width: 680px; }
.cs-brand {
  font-weight: 700;
  letter-spacing: 0.35em;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}
.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.7);
  animation: cs-pulse 2s infinite;
}
@keyframes cs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(var(--gold-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0); }
}
.cs-title { font-size: clamp(2.25rem, 6vw, 3.75rem); margin: 0 0 1rem; }
.cs-lead { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--text-muted); margin: 0 auto 2rem; max-width: 540px; }
.cs-actions .btn { border-radius: 999px; padding: 0.65rem 1.6rem; font-weight: 600; }
.cs-footer { padding: 1.5rem; color: var(--text-muted); font-size: 0.85rem; text-align: center; }
.cs-footer p { margin: 0; }

/* ==========================================================================
   Brand lockup (UTB mark + "Atomic by United Texas Bank")
   ========================================================================== */
.utb-nav .brand-mark { width: 38px; height: 38px; }
.footer .brand-mark { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

/* ==========================================================================
   Atom — hero imagery + accents
   ========================================================================== */
.eyebrow-ic { width: 15px; height: 15px; }

.atom { pointer-events: none; }
.atom .orbit-ring { fill: none; stroke: rgba(var(--gold-rgb), 0.45); stroke-width: 1.4; }
.atom .electron { fill: var(--gold-2); filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), 0.9)); }
.atom .nucleus { fill: var(--gold); filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), 0.8)); }
.atom .nucleus-glow {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  animation: atom-pulse 3.2s ease-in-out infinite;
}
@keyframes atom-pulse {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.18); }
}

.hero-atom {
  position: absolute;
  top: 16px;
  right: -40px;
  width: min(540px, 56vw);
  aspect-ratio: 1;
  opacity: 0.6;
  z-index: 0;
}
@media (max-width: 991.98px) {
  .hero-atom { opacity: 0.3; right: -22%; top: -20px; width: 460px; }
}

/* ==========================================================================
   Documentation page
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 66px; /* clears the fixed navbar */
}

.docs-sidebar {
  position: sticky;
  top: 66px;
  align-self: start;
  height: calc(100vh - 66px);
  overflow-y: auto;
  padding: 1.6rem 0.9rem 3rem;
  border-right: 1px solid var(--border);
}
.docs-sidebar::-webkit-scrollbar { width: 8px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

.side-group { margin-top: 1.5rem; }
.side-group:first-child { margin-top: 0; }
.side-group > .side-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 0.65rem;
  margin-bottom: 0.5rem;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}
.side-link:hover { background: var(--surface); color: #fff; }
.side-link.active { background: rgba(var(--gold-rgb), 0.1); color: var(--gold); }
.side-link .mm {
  font-family: "Space Grotesk", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  width: 38px;
  flex: 0 0 auto;
  text-align: right;
}

.docs-main { padding: 2.2rem 2.6rem 6rem; min-width: 0; }
.docs-section { scroll-margin-top: 84px; padding-bottom: 2.6rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--border); }
.docs-section:last-child { border-bottom: none; }
.docs-section > h2 { font-size: 1.9rem; margin-bottom: 0.8rem; }
.docs-section h3 { font-size: 1.12rem; margin: 1.6rem 0 0.6rem; }
.docs-section h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); font-family: "Space Grotesk", sans-serif; margin: 1.3rem 0 0.5rem; }
.docs-section p { color: var(--text-muted); }
.docs-section a.inline { color: var(--gold); }

.kv { color: var(--text-muted); }
.kv code, code.c {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.08rem 0.4rem;
  color: var(--gold);
}

.callout {
  display: flex;
  gap: 0.7rem;
  background: rgba(var(--gold-rgb), 0.07);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.callout .icon { color: var(--gold); width: 20px; height: 20px; margin-top: 2px; }

/* method + status badges */
.method, .status {
  font-family: "Space Grotesk", monospace;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 6px;
  text-transform: uppercase;
}
.method { font-size: 0.72rem; padding: 0.22rem 0.55rem; }
.status { font-size: 0.78rem; padding: 0.12rem 0.45rem; font-family: ui-monospace, monospace; }
.m-get, .status-2 { color: #37d39b; background: rgba(55, 211, 155, 0.12); border: 1px solid rgba(55, 211, 155, 0.3); }
.m-post { color: var(--gold); background: rgba(var(--gold-rgb), 0.12); border: 1px solid rgba(var(--gold-rgb), 0.3); }
.m-patch { color: #9db2ff; background: rgba(157, 178, 255, 0.12); border: 1px solid rgba(157, 178, 255, 0.3); }
.m-delete, .status-5 { color: #ff8086; background: rgba(255, 128, 134, 0.12); border: 1px solid rgba(255, 128, 134, 0.3); }
.m-put { color: #ffb86b; background: rgba(255, 184, 107, 0.12); border: 1px solid rgba(255, 184, 107, 0.3); }
.status-4 { color: #ffb86b; background: rgba(255, 184, 107, 0.12); }
.status-3 { color: #9db2ff; background: rgba(157, 178, 255, 0.12); }

/* endpoint */
.endpoint { scroll-margin-top: 84px; margin: 0 0 2.8rem; }
.endpoint-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.endpoint-head .path { font-family: ui-monospace, monospace; font-size: 0.95rem; color: #fff; word-break: break-word; }
.endpoint-head .path .pp { color: var(--gold); }
.endpoint .summary { font-weight: 600; color: #fff; font-size: 1.05rem; margin: 0.9rem 0 0.2rem; }
.endpoint .desc { color: var(--text-muted); margin-bottom: 0.4rem; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.88rem; }
.tbl th {
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.tbl td { padding: 0.6rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-muted); }
.tbl .pname { font-family: ui-monospace, monospace; color: #e8eaed; font-weight: 500; }
.tbl .req { color: #ff8086; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tbl .opt { color: var(--text-dim); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.type-pill { font-family: ui-monospace, monospace; font-size: 0.78rem; color: #9db2ff; background: rgba(157, 178, 255, 0.1); padding: 0.05rem 0.4rem; border-radius: 5px; border: 1px solid rgba(157, 178, 255, 0.22); white-space: nowrap; }
.type-pill a, a.type-link { color: #9db2ff; }
.meta-line { margin-top: 0.35rem; font-size: 0.78rem; color: var(--text-dim); font-family: ui-monospace, monospace; }
.meta-line .enum-val { color: var(--gold); }

/* response rows */
.resp-row { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.resp-row:last-child { border-bottom: none; }
.resp-row .rd { color: var(--text-muted); }

/* code block (examples) */
.code-block { background: linear-gradient(180deg, #14161c, #0f1116); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 0.7rem 0; }
.code-block .cb-head { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); font-family: ui-monospace, monospace; font-size: 0.76rem; color: var(--text-muted); }
.code-block pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.65; color: #cdd3df; }
.copy-btn { background: none; border: 1px solid var(--border-2); color: var(--text-muted); border-radius: 6px; padding: 0.14rem 0.55rem; font-size: 0.72rem; cursor: pointer; font-family: "Inter", sans-serif; }
.copy-btn:hover { color: #fff; border-color: rgba(var(--gold-rgb), 0.5); }

details.headers-d { border: 1px solid var(--border); border-radius: 10px; margin: 0.5rem 0 1rem; background: var(--surface); }
details.headers-d > summary { cursor: pointer; padding: 0.6rem 0.9rem; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
details.headers-d > summary::-webkit-details-marker { display: none; }
details.headers-d > summary::before { content: "+"; color: var(--gold); font-family: ui-monospace, monospace; }
details.headers-d[open] > summary::before { content: "\2212"; }
details.headers-d[open] > summary { color: #fff; border-bottom: 1px solid var(--border); }
details.headers-d .tbl { margin: 0; }
details.headers-d .tbl td:last-child, details.headers-d .tbl th:last-child { padding-right: 0.9rem; }
details.headers-d .tbl td:first-child, details.headers-d .tbl th:first-child { padding-left: 0.9rem; }

/* models */
.model { scroll-margin-top: 84px; margin-bottom: 2rem; }
.model > h3 { font-family: ui-monospace, monospace; font-size: 1rem; color: #fff; margin-bottom: 0.3rem; }
.model > h3 .badge-type { font-family: "Space Grotesk", sans-serif; font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-left: 0.5rem; }

@media (max-width: 991.98px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    margin: 0 1rem;
  }
  .docs-main { padding: 1.6rem 1.1rem 4rem; }
}
