/* docs.css — Lyren homepage-style + Bootstrap-friendly */

/* If you already define these in lyren-ui.css, keep them there and remove duplicates */
:root{
  --c900:#663d29;
  --c700:#9a674d;
  --c600:#b97c5d;
  --c500:#da926e;
  --c300:#b59d55;
  --c200:#e3c56b;

  --bg0:#070606;
  --bg1:#0d0b0a;
  --stroke: rgba(227,197,107,.16);
  --text:#f2ece8;
  --muted: rgba(242,236,232,.72);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}

body{
  background:
    radial-gradient(1200px 520px at 18% 12%, rgba(227,197,107,.10), transparent 60%),
    radial-gradient(900px 460px at 84% 0%, rgba(102,61,41,.22), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(to right, rgba(227,197,107,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(227,197,107,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity:.35;
  mix-blend-mode: screen;
}

/* Shared typography helpers */
.ly-h1{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
}
.ly-h2{
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem);
}
.ly-muted{ color: var(--muted); }
.ly-mono{ font-family: var(--mono); }
.ly-link{ color: rgba(227,197,107,.92); text-decoration: none; }
.ly-link:hover{ text-decoration: underline; }

/* Inputs */
.ly-input{
  border-radius: 12px;
  border: 1px solid rgba(227,197,107,.16);
  background: rgba(0,0,0,.25);
  color: rgba(242,236,232,.92);
}
.ly-input::placeholder{ color: rgba(242,236,232,.55); }
.ly-input:focus{
  box-shadow: 0 0 0 .25rem rgba(227,197,107,.14);
  border-color: rgba(227,197,107,.28);
  background: rgba(0,0,0,.30);
  color: rgba(242,236,232,.95);
}

/* Buttons used in the sidebar (menu/copy) */
.ly-btn-ghost{
  border-radius: 12px;
  border: 1px solid rgba(227,197,107,.14);
  background: rgba(0,0,0,.14);
  color: rgba(242,236,232,.90);
  font-weight: 900;
  padding: 10px 12px;
}
.ly-btn-ghost:hover{ background: rgba(0,0,0,.22); }

/* Sidebar */
.ly-docs-side{
  border-radius: 18px;
  border: 1px solid rgba(227,197,107,.14);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  overflow: hidden;
}

.ly-docs-sidehead{
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(227,197,107,.10);
  background:
    radial-gradient(700px 220px at 30% 0%, rgba(227,197,107,.08), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.12), transparent);
}

.ly-docs-sidetitle{
  font-weight: 900;
  letter-spacing: .01em;
}

.ly-docs-nav{
  padding: 10px;
  display: grid;
  gap: 6px;
}

.ly-docs-group{
  margin-top: 10px;
  padding: 10px 10px 6px;
  color: rgba(242,236,232,.70);
  font-weight: 900;
  font-size: .80rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-top: 1px dashed rgba(227,197,107,.12);
}

.ly-docs-link{
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(242,236,232,.80);
  border: 1px solid transparent;
  background: transparent;
  font-weight: 800;
}
.ly-docs-link:hover{
  background: rgba(227,197,107,.06);
  border-color: rgba(227,197,107,.12);
  color: rgba(242,236,232,.92);
}
.ly-docs-link.active{
  background: rgba(227,197,107,.92);
  border-color: rgba(227,197,107,.22);
  color: rgba(20,14,12,.95);
}

/* Content card */
.ly-docs-card{
  border-radius: 18px;
  border: 1px solid rgba(227,197,107,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.ly-docs-hero{
  padding: 18px 18px 14px;
  background:
    radial-gradient(900px 260px at 20% 0%, rgba(227,197,107,.10), transparent 55%),
    radial-gradient(700px 240px at 80% 10%, rgba(102,61,41,.20), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.10), transparent);
  border-bottom: 1px solid rgba(227,197,107,.10);
}

.ly-docs-lead{
  color: rgba(242,236,232,.86);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 78ch;
}

.ly-docs-section{
  padding: 0 18px;
}

.ly-docs-p{
  color: rgba(242,236,232,.82);
  line-height: 1.6;
}

/* Callouts */
.ly-callout{
  border-radius: 16px;
  border: 1px solid rgba(227,197,107,.14);
  background: rgba(0,0,0,.18);
  padding: 14px;
}
.ly-callout-title{
  font-weight: 900;
  margin-bottom: 6px;
}
.ly-callout-body{
  color: rgba(242,236,232,.82);
  line-height: 1.55;
}
.ly-callout-warn{
  border-color: rgba(227,197,107,.22);
  background: rgba(227,197,107,.07);
}

/* Divider */
.ly-divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227,197,107,.18), transparent);
}

/* Lists */
.ly-list-tight{
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 6px;
  color: rgba(242,236,232,.86);
}
.ly-list-tight li{ line-height: 1.45; }

/* Pills */
.ly-pillrow{ display:flex; flex-wrap:wrap; gap:8px; }
.ly-pill{
  display:inline-flex;
  align-items:center;
  padding: .28rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(227,197,107,.18);
  background: rgba(0,0,0,.20);
  color: rgba(242,236,232,.88);
  font-weight: 900;
  font-size: .82rem;
}
.ly-pill-soft{
  border-color: rgba(227,197,107,.12);
  color: rgba(227,197,107,.92);
  background: rgba(227,197,107,.06);
}

/* Code blocks */
.ly-codeblock{
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(227,197,107,.14);
  background: rgba(0,0,0,.22);
  overflow: hidden;
}
.ly-codebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(227,197,107,.10);
  background: rgba(0,0,0,.18);
}
.ly-codetag{
  font-weight: 900;
  color: rgba(227,197,107,.90);
  font-size: .85rem;
  letter-spacing: .02em;
}
.ly-codeblock pre{
  margin: 0;
  padding: 12px;
  overflow: auto;
  color: rgba(242,236,232,.92);
}
.ly-codeblock code{
  font-family: var(--mono);
  font-size: .92rem;
}

/* Sticky helper */
.position-lg-sticky{
  position: static;
}
@media (min-width: 992px){
  .position-lg-sticky{ position: sticky; }
}