/* =========================================================
   Global layout stability
   ========================================================= */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

/* =========================================================
   Base typography & layout
   ========================================================= */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 2rem;
  background-color: #0f0f0f;
  color: #eaeaea;
  line-height: 1.6;
}

main {
  max-width: 900px;
  margin: 0 auto;
}

/* =========================================================
   Canonical header + navigation (site-wide)
   ========================================================= */
header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
  padding-top: 0;
}

.site-brand h1 {
  font-size: 2.0rem;
  margin: 0;
}

.site-brand .tagline {
  color: #bdbdbd;
  margin-top: 0.5rem;
}

header.site-header nav {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header.site-header nav a {
  margin-right: 1rem;
  color: #4ea1ff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

header.site-header nav a:last-child {
  margin-right: 0;
}

header.site-header nav a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  header.site-header nav {
    position: static;
  }
}

/* =========================================================
   Content sections
   ========================================================= */
section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

/* =========================================================
   Notices, footer, links
   ========================================================= */
.license-notice {
  font-size: 0.9rem;
  color: #b0b0b0;
  margin-top: 1.5rem;
}

footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #9a9a9a;
}

a {
  color: #4ea1ff;
}


/* =========================================================
   Data tables & code blocks (used on /data/)
   ========================================================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;

  /* Prevent layout issues on narrow screens */
  display: block;
  overflow-x: auto;
}

th,
td {
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0.75rem;
  vertical-align: top;
}

th {
  text-align: left;
  color: #d8d8d8;
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

pre {
  padding: 1rem;
  border-radius: 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.25);
}

.muted {
  color: #b0b0b0;
}
.notice {
  font-size: 0.9rem;
  color: #b0b0b0;
}
