/* Shared design tokens for the hand-authored (legacy) static pages.
   Extracted from public/vs/twilio.html so /send-sms-no-kyc, /errors, etc.
   render with the same palette as the React pages (e.g. /mcp). */

:root {
      --bg-primary: #0A0D14;
      --bg-elevated: #14181F;
      --bg-sunken: #070A0F;
      --border: #1F2631;
      --border-glow: rgba(182, 89, 255, 0.25);
      --fg-primary: #FFFFFF;
      --fg-secondary: #B8BDC7;
      --fg-muted: #7A828F;
      --accent-purple: #B659FF;
      --accent-cyan: #7DD3FC;
      --accent-red: #EF4444;
      --success: #4ADE80;
      --pill-bg: rgba(182, 89, 255, 0.12);
      --max-w: 1180px;
      --content-w: 860px;
      --hero-w: 920px;
    }

:root{
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* The React build ships Tailwind's preflight reset; these hand-authored pages had
   no box-sizing reset, so `.sr-header__inner` (width:100% + 2rem padding) computed
   to 422px inside a 390px viewport and clipped the mobile header. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* Keep the fixed header legible while scrolling. These pages carry no JS to set
   the `.is-scrolled` state that sr-header.css expects, so give it a permanent
   blurred backdrop instead of letting content collide with the nav. */
#sr-header.sr-header {
  background-color: rgba(0, 0, 0, 0.82) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* legacy table scroll: some content tables are emitted without a scroll wrapper,
   which pushed 25px of horizontal scroll into 390px viewports. */
@media (max-width: 767px) {
  main table,
  article table,
  section table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Base surface. legacy-tokens.css supplies light text tokens, so the page must
   also supply the dark canvas — without this the light text sat on a white body
   (measured 1.48:1 contrast, effectively invisible). */
html, body {
  background-color: #09090b;
  color: #d4d4d8;
}

/* Shared footer for the hand-authored pages: srx-footer__* had no rules at all,
   so the footer rendered as a raw column of default-blue underlined links. */
footer.srx-footer {
  background-color: #0b0b0f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 0 2rem;
  color: #a1a1aa;
}
footer.srx-footer a { color: #a1a1aa; text-decoration: none; transition: color .2s ease; }
footer.srx-footer a:hover { color: #ffffff; }
footer.srx-footer__grid,
.srx-footer .srx-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
footer.srx-footer ul { list-style: none; margin: 0; padding: 0; }
footer.srx-footer li { margin: 0.4rem 0; font-size: 0.875rem; }
footer.srx-footer h2, footer.srx-footer h3, footer.srx-footer h4 {
  color: #ffffff; font-size: 0.8125rem; letter-spacing: 0.04em;
  text-transform: uppercase; margin: 0 0 0.75rem;
}

/* Content tables on these pages carry no borders of their own, so rows blurred
   together once the wrapper tint sits on a dark canvas. */
main table td, main table th,
article table td, article table th,
section table td, section table th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0.6rem 0.85rem;
  text-align: left;
}
main table th, article table th, section table th {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

/* Inline code + highlighted code blocks (palette matches the app theme). */
pre {
  background-color: #0b0b0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #e4e4e7;
}
pre code { font-family: inherit; background: none; padding: 0; }
code { font-family: var(--mono); font-size: 0.9em; }
.tok-comment { color: #6b7280; font-style: italic; }
.tok-string  { color: #86efac; }
.tok-number  { color: #fbbf24; }
.tok-keyword { color: #c084fc; font-weight: 600; }
.tok-fn      { color: #93c5fd; }
