/* Shared Stylesheet for Santypes Static Documentation & Error Pages
 * Loaded via external stylesheet so strict CSP (style-src-elem 'self') needs zero 'unsafe-inline' */

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #09090b;
  color: #f4f4f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 36px 20px;
  line-height: 1.65;
}

body.page-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card-page {
  max-width: 440px;
  width: 100%;
  background: #11131a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  background: #11131a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px 28px;
}

.eyebrow,
.code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
}

.card-page h1 {
  font-size: 22px;
}

.sub {
  margin: 0 0 24px;
  color: #a1a1aa;
  font-size: 14px;
}

.card-page p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #cbd5e1;
}

section {
  margin-bottom: 20px;
}

h2 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #f4f4f5;
}

p {
  margin: 0;
  font-size: 14px;
  color: #cbd5e1;
}

details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #f4f4f5;
  min-height: 36px;
  display: flex;
  align-items: center;
}

details p {
  margin: 10px 0 0;
}

.nav-row {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.nav-row.nav-centered {
  justify-content: center;
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  background: #38bdf8;
  color: #090a0f;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: #94a3b8;
  font-size: 13px;
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
