/*
|--------------------------------------------------------------------------
| Yunik Engine By Antlia Technologies
| Link: yunikengine.antlia.co.ke
|--------------------------------------------------------------------------
*/
:root {
  --bg1: #f9fafb;
  --bg2: #fefce8;
  --bg3: #e0f2fe;
  --text: #0f172a;
  --muted: #64748b;
  --panel: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --green: #16a34a;
  --yellow: #ca8a04;
  --orange: #ea580c;
}

:root[data-theme="dark"] {
  --bg1: #020617;
  --bg2: #111827;
  --bg3: #0f172a;
  --text: #f8fafc;
  --muted: #a3aab8;
  --panel: rgba(15, 23, 42, 0.94);
  --border: rgba(148, 163, 184, 0.24);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg1), var(--bg2) 42%, var(--bg3));
}

a { color: inherit; }
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
pre {
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.92);
  color: #e5e7eb;
}
code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.08);
}
pre code { padding: 0; background: transparent; }

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(20px);
}
:root[data-theme="dark"] .sidebar { background: rgba(2, 6, 23, 0.72); }
.brand {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}
.brand span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.14);
  color: var(--green);
  font-weight: 800;
}
.brand strong { font-size: 18px; }
nav {
  display: grid;
  gap: 8px;
}
nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
nav a:hover, nav a.active {
  color: var(--text);
  background: var(--panel);
}

.docs-shell {
  width: min(1120px, calc(100% - 320px));
  margin-left: 290px;
  padding: 72px 30px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: end;
  min-height: 320px;
}
.hero.compact {
  grid-template-columns: 1fr;
  min-height: 180px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
}
.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.eyebrow {
  color: var(--green) !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.hero-card, article, .doc-section > .panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.hero-card {
  display: grid;
  gap: 8px;
  padding: 24px;
}
.hero-card span, .muted { color: var(--muted); }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.meta-row span,
.tag-cloud span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.doc-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-section {
  margin-top: 54px;
  scroll-margin-top: 30px;
}
.doc-section h2 {
  margin: 0 0 18px;
  font-size: 34px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
article {
  padding: 22px;
  margin-bottom: 18px;
}
article h3 { margin-top: 0; }
article p, li {
  color: var(--muted);
  line-height: 1.65;
}

.toolbar {
  margin-bottom: 16px;
}
.toolbar input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
.hook-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hook-list article {
  display: grid;
  gap: 8px;
  margin: 0;
}
.hook-list span {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.14);
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}
.hook-list p { margin: 0; }
.checklist {
  padding: 22px 24px 22px 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
  }
  .docs-shell {
    width: 100%;
    margin: 0;
    padding: 34px 18px;
  }
  .hero, .grid, .hook-list {
    grid-template-columns: 1fr;
  }
  .theme-toggle {
    position: fixed;
    top: auto;
    right: 14px;
    bottom: 14px;
  }
}
