/* Shared styles for the static guide pages in public/<slug>/index.html. */
:root {
  color-scheme: dark;
  --bg: #1b1b1d;
  --panel: #242427;
  --line: #34343a;
  --text: #dddde0;
  --muted: #9a9aa0;
  --accent: #2d8ceb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: var(--accent);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  background: #4a9ef0;
}

.button.big {
  padding: 0.75rem 1.4rem;
  font-size: 1.05rem;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.crumbs {
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--muted);
}

h1 {
  margin: 0.75rem 0 1rem;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.2;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  color: #fff;
  font-size: 1.35rem;
}

h3 {
  margin: 1.25rem 0 0.25rem;
  color: #fff;
  font-size: 1.05rem;
}

.lead {
  font-size: 1.1rem;
}

li + li {
  margin-top: 0.35rem;
}

kbd {
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  font: 0.85em ui-monospace, SFMono-Regular, Menlo, monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.related li + li {
  margin-top: 0;
}

.related a {
  display: block;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.related a span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

footer a {
  color: var(--muted);
}
