/* Wylde — docs / blog / changelog layout */

.docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 96px;
  align-items: start;
}
@media (max-width: 880px) {
  .docs-shell { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
}

.docs-side {
  position: sticky;
  top: 92px;
  align-self: start;
  border-right: 1px solid var(--border);
  padding-right: 24px;
}
@media (max-width: 880px) {
  .docs-side {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 16px;
  }
}

.docs-side h6 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin: 18px 0 8px;
}
.docs-side ul { list-style: none; margin: 0 0 8px; padding: 0; }
.docs-side li { margin: 0; }
.docs-side a {
  display: block;
  color: var(--text-mute);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  margin-left: -10px;
}
.docs-side a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.docs-side a.active {
  color: var(--text);
  background: rgba(6,182,212,0.10);
  border-left: 2px solid var(--cyan-glow);
  padding-left: 10px;
  border-radius: 0 6px 6px 0;
  margin-left: -12px;
}

.docs-content { min-width: 0; }

.docs-content h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 8px;
}
.docs-content h2 {
  font-size: 26px;
  margin-top: 56px;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.docs-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 36px; }
.docs-content h3 {
  font-size: 19px;
  margin-top: 36px;
  margin-bottom: 10px;
}
.docs-content p, .docs-content li {
  font-size: 15.5px;
  line-height: 1.7;
  color: #c9d1d9;
}
.docs-content ul, .docs-content ol { padding-left: 22px; margin-bottom: 18px; }
.docs-content li { margin-bottom: 6px; }
.docs-content blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  background: rgba(6,182,212,0.05);
  border-left: 3px solid var(--cyan-glow);
  color: var(--text);
  border-radius: 0 8px 8px 0;
}
.docs-content blockquote p:last-child { margin: 0; }

.docs-content .lead {
  font-size: 18px;
  color: var(--text-mute);
  line-height: 1.6;
  margin-bottom: 32px;
}

.callout {
  margin: 24px 0;
  padding: 16px 20px 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout--info { border-color: rgba(6,182,212,0.30); background: rgba(6,182,212,0.06); }
.callout--warn { border-color: rgba(234,179,8,0.30); background: rgba(234,179,8,0.06); }
.callout__icon {
  width: 22px; height: 22px; flex: none;
  color: var(--cyan-glow);
  margin-top: 2px;
}
.callout--warn .callout__icon { color: #facc15; }
.callout p { margin: 0; }
.callout strong { color: var(--text); }

/* Page breadcrumb */
.crumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.crumb a { color: var(--text-dim); }
.crumb a:hover { color: var(--cyan-glow); }

/* Anchor links on headings */
.docs-content h2 a.anchor,
.docs-content h3 a.anchor {
  color: var(--text-dim);
  margin-left: 8px;
  opacity: 0;
  font-size: 0.7em;
  font-weight: 400;
}
.docs-content h2:hover a.anchor,
.docs-content h3:hover a.anchor { opacity: 1; }

/* Changelog timeline */
.changelog {
  position: relative;
  padding-left: 28px;
  margin-top: 32px;
}
.changelog::before {
  content: "";
  position: absolute;
  left: 7px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(6,182,212,0.5), transparent);
}
.changelog__entry {
  position: relative;
  padding-bottom: 36px;
}
.changelog__entry::before {
  content: "";
  position: absolute;
  left: -25px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--cyan-glow);
  box-shadow: 0 0 0 4px rgba(6,182,212,0.10);
}
.changelog__date {
  font-family: var(--mono);
  color: var(--cyan-glow);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: block;
}
.changelog__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.changelog__body {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
}
.changelog__body p:last-child { margin: 0; }
.changelog__tags {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 22px;
  max-width: 820px;
  margin: 32px auto 0;
}
.blog-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: block;
  color: var(--text);
  transition: border-color 160ms ease, transform 160ms ease;
}
.blog-card:hover {
  color: var(--text);
  border-color: rgba(6,182,212,0.40);
  transform: translateY(-1px);
}
.blog-card__meta {
  display: flex; gap: 14px; align-items: center;
  font-size: 12.5px; color: var(--text-dim);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 22px; margin-bottom: 10px; }
.blog-card p { color: var(--text-mute); margin: 0; }

.post {
  max-width: 760px;
  margin: 56px auto 96px;
  padding: 0 24px;
}
.post__head { text-align: center; margin-bottom: 48px; }
.post__head h1 { margin-bottom: 18px; }
.post__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}
.post__body p, .post__body li {
  font-size: 16.5px;
  line-height: 1.75;
  color: #c9d1d9;
}
.post__body h2 {
  font-size: 26px;
  margin-top: 56px;
  margin-bottom: 14px;
}
.post__body h3 {
  font-size: 20px;
  margin-top: 36px;
}
.post__body img,
.post__body .post__figure {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  margin: 28px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head h1 { margin-bottom: 12px; }
.section-head p  { color: var(--text-mute); font-size: 17px; margin: 0; }
