:root{
  --bg:#f9fafb;
  --fg:#243131;
  --muted:#5b6a6a;
  --brand:#1a5f7a;
  --brand-ghost:#e6f1f5;
  --card:#ffffff;
  --border:#e5e7eb;
  --ok:#118a00;
  --fail:#c01c28;
  --shadow:0 4px 24px rgba(0,0,0,.06);
  --radius:12px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--fg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{
  max-width:980px;
  margin:0 auto;
  padding:24px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 0 8px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--fg);
}

.brand-mark{
  display:block;
  height:64px;
  width:auto;
}

.nav{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-left:auto;
}
.nav a{
  color:var(--fg);
  text-decoration:none;
  padding:8px 10px;
  border-radius:8px;
}
.nav a:hover{ background:var(--brand-ghost); }

.footer{
  text-align:center;
  color:var(--muted);
  padding:28px 0 16px;
  font-size:.9rem;
}

/* Docs / help styling */

.page-callout {
  background: #f5f7fb;
  border: 1px solid #d8e0ef;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 16px;
}

.page-callout strong {
  display: block;
  margin-bottom: 4px;
}

pre {
  background: rgba(26, 95, 122, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  margin: 12px 0;
}

/* Ensure Astro Shiki blocks match site style */
.docs-section pre.astro-code,
.docs-section pre[class*="language-"],
.card pre.astro-code,
.card pre[class*="language-"] {
  background: rgba(26, 95, 122, 0.06) !important;
  color: inherit !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

.docs-section pre.astro-code code,
.card pre.astro-code code {
  color: inherit;
}

.docs-section {
  grid-template-columns: 1fr;
}

.docs-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}

.docs-section th,
.docs-section td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.docs-section details {
  margin: 12px 0;
}

.docs-section details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 6px;
}
