/* Docs and changelog pages. */

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  max-width: 1200px;
}
.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: grid;
  gap: 2px;
  padding: 32px 0 40px;
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow: auto;
}
.docs-nav-title {
  margin: 16px 0 6px;
  font: 600 11px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.docs-nav-title:first-child {
  margin-top: 0;
}
.docs-nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}
.docs-nav a:hover,
.docs-nav a.on {
  background: var(--line);
  color: var(--text);
}
.docs-main {
  min-width: 0;
  padding: 32px 0 80px;
}
.docs-hero {
  display: grid;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.docs-main section {
  padding: 36px 0 12px;
  border-bottom: 1px solid var(--line);
}
.docs-main h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.docs-main p {
  color: var(--text-2);
  max-width: 72ch;
  line-height: 1.7;
}
.docs-main .code {
  margin: 16px 0;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 16px 0;
}
table.props {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.props th,
table.props td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.props th {
  font: 600 11.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--panel);
}
table.props tr:last-child td {
  border-bottom: 0;
}
table.props td:first-child {
  white-space: nowrap;
}
.demo-cell {
  width: 56px;
  color: var(--text);
}
.demo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}
.demo figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 112px;
  padding: 16px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--icon-bg);
  color: var(--text);
}
.demo figure.clickable {
  cursor: pointer;
}
.demo figcaption {
  font: 500 11px var(--mono);
  color: var(--text-3);
  text-align: center;
}
.demo glyph-fox {
  color: var(--text);
}

/* Changelog */

.log {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0 96px;
}
.log h1 {
  margin: 12px 0 18px;
}
.log-body h2 {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.log-body h3 {
  margin-top: 22px;
  font-size: 1rem;
  color: var(--accent-text);
  letter-spacing: 0;
}
.log-body p,
.log-body li {
  color: var(--text-2);
  line-height: 1.7;
}
.log-body a {
  color: var(--accent-text);
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .docs-nav {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 14px 0 10px;
    gap: 6px;
    max-height: none;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .docs-nav::-webkit-scrollbar {
    display: none;
  }
  .docs-nav-title {
    display: none;
  }
  .docs-nav a {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
}
