/* GitHub Pages site chrome (uniconproject.github.io/unicon/) */
:root {
  --bg: #f6f8fa;
  --text: #1f2328;
  --muted: #59636e;
  --border: #d1d9e0;
  --link: #0969da;
  --nav-bg: #ffffff;
  /* One knob for content width — applied on body below (no competing body > * max-width). */
  --max: 52rem;
}

@media (min-width: 1100px) {
  :root {
    --max: min(72rem, 94vw);
  }
}

@media (min-width: 1600px) {
  :root {
    --max: min(85rem, 92vw);
  }
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
}

body {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: 1rem;
  padding-right: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.unicon-site-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.unicon-site-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}
.unicon-site-nav a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.unicon-site-nav a:hover { text-decoration: underline; }
.unicon-site-nav .sep { color: var(--muted); user-select: none; }
.unicon-site-nav .home { margin-right: 0.25rem; }

#title-block-header,
header {
  padding-top: 1.25rem;
}
body > h1:first-of-type { margin-top: 0; }
table { border-collapse: collapse; width: 100%; }
table th, table td { border: 1px solid var(--border); padding: 0.4rem 0.6rem; }
pre, code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}
pre {
  background: var(--nav-bg);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 6px;
}
.unicon-site-footer {
  margin: 2rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
.unicon-site-footer a { color: var(--link); }
