/* Docs chrome for comp.meowda.xyz — sits on top of the house theme.
 * Made by xyoda. */

body.docs { display: flex; flex-direction: column; min-height: 100dvh; }

/* ---------- sidebar ---------- */

.sidebar {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 17, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.sidebar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px var(--gutter);
}
.nav-group { margin-top: 18px; }
.nav-group:first-child { margin-top: 0; }
.nav-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.nav-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2px 8px;
}
.nav-items a {
  display: block;
  padding: 5px 8px;
  margin-left: -8px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  border-left: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-items a:hover { color: var(--ink); }
.nav-items a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 11px;
  margin-left: -11px;
}

@media (min-width: 980px) {
  body.docs { flex-direction: row; }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    width: 264px;
    flex: none;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .sidebar-inner {
    padding: 20px 18px 40px;
    max-width: none;
    margin: 0;
  }
  .nav-items { grid-template-columns: 1fr; }
  .main { flex: 1; min-width: 0; }
}

/* ---------- main column ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--gutter);
  background: rgba(11, 13, 17, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 980px) { .topbar { padding-inline: 32px; } }

.content {
  padding: 28px var(--gutter) 60px;
  max-width: 860px;
}
@media (min-width: 980px) { .content { padding-inline: 32px; } }

.content > .lede { max-width: 620px; }
.content h2.desc-head {
  margin: 36px 0 12px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- preview frame ---------- */

.preview {
  margin-top: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 420px at 50% -140px, rgba(232, 176, 75, .06), transparent 70%) no-repeat,
    var(--void);
  padding: 28px 20px;
  overflow-x: auto;
}
@media (min-width: 560px) { .preview { padding: 36px 28px; } }

/* ---------- code block ---------- */

.code {
  position: relative;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink);
  tab-size: 2;
}
.code .copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.code .copy:hover { color: var(--ink); border-color: var(--muted); }
.code .copy.done { color: var(--ok); border-color: var(--ok); }

.tok-tag { color: var(--accent); }
.tok-attr { color: var(--mem); }
.tok-str { color: var(--ok); }
.tok-com { color: var(--faint); font-style: italic; }

/* ---------- intro bits ---------- */

.hero-mark { width: 72px; height: 72px; display: block; margin-bottom: 22px; }
.install-block { margin-top: 14px; }
.meta-row {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.meta-row a { color: var(--accent); text-decoration: none; }
.meta-row a:hover { text-decoration: underline; }

.swatch-strip { display: flex; flex-wrap: wrap; gap: 1px; border: 1px solid var(--line); margin-top: 20px; }
.swatch-strip > div {
  flex: 1 1 110px;
  padding: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--surface);
}
.swatch-strip b { display: block; font-size: 11px; color: var(--ink); font-weight: 500; margin-top: 2px; }

.note-inline {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13.5px;
}
