/* Remote Tab Opener — Docs shared stylesheet (extends your base)
   Path: /assets/css.css
   Depends on: Bootstrap 5.3.x
*/

/* === Your base (kept) ===================================================== */
:root { --brand:#0d6efd; }
body { scroll-behavior: smooth; }
.sidebar { min-height: 100vh; border-right: 1px solid #eee; }
.nav-pills .nav-link.active { background-color: var(--brand); }

.btn {
  box-shadow: 0 .25rem .5rem rgba(0,0,0,.08);
  border-radius: .6rem;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.badge-soft {
  background: rgba(13,110,253,.08);
  color: #0d6efd;
  border: 1px solid rgba(13,110,253,.2);
}

.hero {
  background: linear-gradient(180deg, #0d1117, #111827);
  color: #fff;
  border-radius: 1rem;
}
.hero .lead { opacity: .9; }

.kpi { font-weight: 600; }

pre { border-radius: .6rem; overflow: auto; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.feature-list li { margin: .35rem 0; }
.card-icon{
  font-size: 1.25rem;
  float:left;
  display:flex;
  align-items:center;
  justify-content:center;
  width:2.9rem;
  height:2.9rem;
  margin:.15rem .9rem .35rem 0;
  border-radius:.9rem;
  font-size:1.15rem;
  line-height:1;
}
.table-feats td, .table-feats th { vertical-align: middle; }

.small-muted { color: #6c757d; }
.logo {
  width: 84px; height: auto; border-radius: 12px;
  box-shadow: 0 .25rem .6rem rgba(0,0,0,.18);
}

/* Utility */
.hide { display: none !important; }

/* Callouts */
.callout {
  border: 1px solid rgba(0,0,0,.075);
  border-left-width: .25rem;
  border-radius: .6rem;
  padding: .85rem 1rem;
  margin: 1rem 0;
  background: #fff;
}
.callout-info    { border-left-color: #0d6efd; background: rgba(13,110,253,.03); }
.callout-warning { border-left-color: #ffc107; background: rgba(255,193,7,.08); }
.callout-success { border-left-color: #198754; background: rgba(25,135,84,.06); }
.callout > :last-child { margin-bottom: 0; }

/* === Additions for /documentation/ ================================================= */

/* Breadcrumb-ish crumbs */
.crumb { font-size:.95rem; margin:.25rem 0 1rem 0; }
.crumb a { text-decoration:none; }

/* Section cards */
.doc-card { border-radius:.75rem; }

/* Code blocks with “Copy” button */
.codebox { position: relative; }
.copy-btn {
  position: absolute;
  right: .75rem;
  top: .5rem;
  z-index: 1;
}
pre code {
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: pre; /* keep intentional newlines */
}

/* API tables */
.api-table td code, .api-table th code { white-space: nowrap; }

/* Inline log/console (diagnostics/events) */
.logbox {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: .5rem;
  font-size: .9rem;
  height: 260px;
  overflow: auto;
  padding: .75rem;
}

/* Status colors for logs/messages */
.ok   { color:#198754; }
.warn { color:#b8860b; }
.err  { color:#dc3545; }

/* Keyboard chip */
.kbd {
  font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: #0b1220;
  color: #cbe1ff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Minor utilities */
.muted { color:#6c757d; }
.badge { font-variant-numeric: tabular-nums; } /* prettier counters */
.bg-dark { background-color: #061E47; }

/* Global syntax colors for pre/code blocks (used by assets/js.js tokenizer) */
pre code .tok-kw { color:#9cdcfe; font-weight:600; }
pre code .tok-str { color:#ce9178; }
pre code .tok-cmt { color:#80868b; font-style:italic; }
pre code .tok-num { color:#b5cea8; }
pre code .tok-tag { color:#4fc1ff; }
pre code .tok-attr { color:#c586c0; }
pre code .tok-fn { color:#6a9955; }
pre code .tok-prop { color:#4fc1ff; }
/* === RTO shared shell: premium header, anchorbar and footer =============== */
.rto-site-topbar,
.rto-docs-topbar{
  position:sticky;
  top:0;
  z-index:1040;
  background:rgba(255,255,255,.92) !important;
  border-bottom:1px solid rgba(15,23,42,.08) !important;
  backdrop-filter:saturate(180%) blur(16px);
  box-shadow:0 .45rem 1.35rem rgba(15,23,42,.045);
}
.rto-docs-brand{
  display:inline-flex;
  align-items:center;
  gap:.75rem;
  color:#0f172a;
  text-decoration:none !important;
}
.rto-docs-brand-mark img{
  border-radius:13px;
  box-shadow:0 .35rem 1rem rgba(13,110,253,.14);
}
.rto-docs-brand-copy{display:flex;flex-direction:column;line-height:1.08;}
.rto-docs-brand-title{font-size:1.05rem;font-weight:800;letter-spacing:-.02em;}
.rto-docs-brand-subtitle{font-size:.78rem;color:#64748b;}
.rto-docs-toplinks .btn,
.rto-site-topbar .btn{
  display:inline-flex;
  align-items:center;
  gap:.38rem;
  border-radius:.62rem;
  font-weight:700;
  text-decoration:none !important;
  box-shadow:0 .25rem .65rem rgba(15,23,42,.055);
}
.rto-docs-toplinks .btn svg,
.rto-site-topbar .btn svg{flex:0 0 auto;}
.rto-main-nav-optional{display:inline-flex;}
.rto-anchorbar-wrap{
  position:sticky;
  top:61px;
  z-index:1035;
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid rgba(15,23,42,.08);
  transition:transform .22s ease, opacity .22s ease, visibility .22s ease;
  will-change:transform, opacity;
}
.rto-anchorbar-wrap.is-hidden{transform:translateY(-100%);opacity:0;visibility:hidden;pointer-events:none;}
.rto-anchorbar{display:flex;flex-wrap:wrap;gap:.55rem;padding:.68rem 0;}
.rto-anchorchip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:.4rem .86rem;
  border:1px solid rgba(148,163,184,.33);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#475569;
  text-decoration:none !important;
  font-size:.9rem;
  line-height:1.2;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.rto-anchorchip:hover,
.rto-anchorchip:focus{color:#0d6efd;border-color:rgba(13,110,253,.24);background:#f8fbff;}
.rto-site-footer{padding:0 0 2.2rem;color:#0f172a;}
.rto-site-footer .container{max-width:1140px;}
.rto-footer-hero{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1.5rem;
  padding:1.6rem;
  border:1px solid rgba(13,110,253,.13);
  border-radius:28px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,247,255,.92));
  box-shadow:0 1.2rem 3.2rem rgba(15,23,42,.075);
}
.rto-footer-kicker{
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#0d6efd;
  margin-bottom:.45rem;
}
.rto-footer-hero h2{font-size:clamp(1.35rem,2vw,2rem);font-weight:850;letter-spacing:-.035em;margin:0 0 .45rem;}
.rto-footer-hero p{margin:0;color:#64748b;max-width:44rem;}
.rto-footer-actions{display:flex;flex-wrap:wrap;gap:.55rem;justify-content:flex-end;}
.rto-footer-actions .btn{border-radius:999px;font-weight:800;white-space:nowrap;}
.rto-footer-grid{
  display:grid;
  grid-template-columns:minmax(240px,1.55fr) repeat(4,minmax(0,1fr));
  gap:1.1rem;
  margin-top:1.15rem;
  padding:1.4rem;
  border:1px solid rgba(15,23,42,.08);
  border-radius:28px;
  background:rgba(255,255,255,.82);
  box-shadow:0 .9rem 2.4rem rgba(15,23,42,.055);
}
.rto-footer-brand p{color:#64748b;margin:.85rem 0 .75rem;font-size:.92rem;line-height:1.55;}
.rto-footer-logo-row{display:flex;gap:.75rem;align-items:center;}
.rto-footer-logo-row img{border-radius:14px;box-shadow:0 .45rem 1rem rgba(13,110,253,.15);}
.rto-footer-logo-row strong{display:block;font-weight:850;letter-spacing:-.02em;}
.rto-footer-logo-row span{display:block;color:#64748b;font-size:.85rem;line-height:1.25;}
.rto-footer-version{color:#64748b;font-size:.82rem;}
.rto-footer-col{display:flex;flex-direction:column;gap:.42rem;}
.rto-footer-col h3{font-size:.78rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#0d6efd;margin:0 0 .22rem;}
.rto-footer-col a{color:#334155;text-decoration:none;font-size:.9rem;line-height:1.28;}
.rto-footer-col a:hover{color:#0d6efd;text-decoration:none;}
.rto-page-hero,
.card-demo.rto-dot-lens{
  border:1px solid rgba(13,110,253,.12);
  background:
    radial-gradient(circle at 12% 0%,rgba(13,110,253,.09),transparent 24rem),
    radial-gradient(circle at 88% 8%,rgba(125,190,255,.12),transparent 28rem),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(246,250,255,.95));
  box-shadow:0 1.15rem 3rem rgba(15,23,42,.075);
}
.rto-hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.48rem .72rem;
  border-radius:999px;
  background:rgba(13,110,253,.08);
  color:#0b5ed7;
  border:1px solid rgba(13,110,253,.13);
  font-size:.78rem;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.rto-hero-kicker:before{content:"";width:.48rem;height:.48rem;border-radius:50%;background:#0d6efd;box-shadow:0 0 0 .35rem rgba(13,110,253,.13);}
@media (max-width:1199.98px){.rto-footer-grid{grid-template-columns:1.3fr 1fr 1fr;}.rto-footer-brand{grid-column:1/-1;}}
@media (max-width:991.98px){
  .rto-docs-toplinks,.rto-site-topbar .ms-auto{width:100%;justify-content:flex-start !important;}
  .rto-main-nav-optional{display:none !important;}
  .rto-anchorbar{padding:.55rem 0;overflow:auto;flex-wrap:nowrap;}
  .rto-anchorchip{white-space:nowrap;}
  .rto-footer-hero{display:block;}
  .rto-footer-actions{justify-content:flex-start;margin-top:1rem;}
  .rto-footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:575.98px){.rto-footer-grid{grid-template-columns:1fr;padding:1.1rem;border-radius:22px;}.rto-footer-hero{border-radius:22px;padding:1.15rem;}}
@media (prefers-reduced-motion:reduce){.rto-anchorbar-wrap,.btn{transition:none !important;}.btn:hover{transform:none !important;}}

/* Dot-lens base is included here so the shared footer can animate on every page. */
.rto-dot-lens{position:relative;overflow:hidden;isolation:isolate;}
.rto-dot-lens>.rto-dot-lens-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;}
.rto-dot-lens>*:not(.rto-dot-lens-canvas){position:relative;z-index:1;}
@media (prefers-reduced-motion:reduce){.rto-dot-lens>.rto-dot-lens-canvas{opacity:.55;}}

/* RTO v8.3.3 visual polish: buttons stay rectangular; badges/tags stay pill-shaped. */
.btn,
a.btn,
button.btn,
.rto-site-topbar .btn,
.rto-docs-toplinks .btn,
.rto-footer-actions .btn,
.no-code-announce-actions .btn,
.hero-actions .btn,
.sdk-actions .btn,
.sdk-download .btn,
.sdk-more .btn{
  border-radius:.66rem !important;
}
.badge,
.badge-soft,
.doc-chip,
.rto-anchorchip,
.proof-chip,
.eyebrow,
.micro-proof span,
.flow-tags span,
.visual-chip,
.mini-chip{
  border-radius:999px;
}
