/* Domain setup guide. Self-contained: own --ds-* tokens (no Tailwind-owned names), mobile-first from 320px. */
:root {
  --ds-bg: #F6F7F9;
  --ds-surface: #FFFFFF;
  --ds-surface-2: #F0F3F7;
  --ds-text: #14202E;
  --ds-muted: #4A5868;
  --ds-border: #D5DCE4;
  --ds-accent: #0B5CAD;
  --ds-accent-hover: #084A8C;
  --ds-accent-active: #063A6E;
  --ds-on-accent: #FFFFFF;
  --ds-stop: #A3261B;
  --ds-stop-soft: #FBEAE8;
  --ds-warn: #7A4B00;
  --ds-warn-soft: #FFF4DE;
  --ds-focus: #0B5CAD;
  --ds-radius: 10px;
  --ds-space: 16px;
  --ds-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ds-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ds-bg: #0E1520;
    --ds-surface: #162131;
    --ds-surface-2: #1D2A3D;
    --ds-text: #E8EEF5;
    --ds-muted: #A7B4C3;
    --ds-border: #2C3C52;
    --ds-accent: #6FB1F2;
    --ds-accent-hover: #93C5F6;
    --ds-accent-active: #B5D7F9;
    --ds-on-accent: #0E1520;
    --ds-stop: #F4A39A;
    --ds-stop-soft: #3A1E1C;
    --ds-warn: #F5C979;
    --ds-warn-soft: #33270F;
    --ds-focus: #93C5F6;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ds-bg); color: var(--ds-text); font: 16px/1.6 var(--ds-font); }
a { color: var(--ds-accent); }
a:hover { color: var(--ds-accent-hover); }
:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }

.ds-skiplink { position: absolute; left: -9999px; top: 8px; background: var(--ds-surface); padding: 10px 14px; border-radius: var(--ds-radius); z-index: 10; }
.ds-skiplink:focus { left: 8px; }

.ds-wrap { max-width: 780px; margin: 0 auto; padding: 32px var(--ds-space) 64px; }
.ds-eyebrow { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ds-muted); }
h1 { margin: 0 0 12px; font-size: clamp(28px, 6vw, 40px); line-height: 1.15; }
h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.3; }
.ds-lede { margin: 0 0 20px; font-size: 18px; color: var(--ds-muted); }

.ds-jump { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border-radius: var(--ds-radius);
  background: var(--ds-accent); color: var(--ds-on-accent); font-weight: 600; text-decoration: none;
  flex: 1 1 140px;
}
.ds-btn:hover { background: var(--ds-accent-hover); color: var(--ds-on-accent); }
.ds-btn:active { background: var(--ds-accent-active); }

.ds-section, .ds-alert {
  margin-top: 28px; padding: 20px var(--ds-space);
  background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius);
}
.ds-alert { background: var(--ds-stop-soft); border-color: var(--ds-stop); }
.ds-alert h2 { color: var(--ds-stop); }
.ds-alert p { margin: 0 0 12px; }
.ds-x { margin: 0 0 12px; padding: 0; list-style: none; }
.ds-x li { position: relative; padding: 4px 0 4px 28px; }
.ds-x li::before { content: "\2715"; position: absolute; left: 4px; top: 4px; font-weight: 700; color: var(--ds-stop); }
.ds-note { margin: 0; }

.ds-steps { margin: 0; padding-left: 24px; }
.ds-steps > li { padding: 4px 0; }
.ds-warn { margin-top: 16px; padding: 12px 14px; border-left: 4px solid var(--ds-warn); background: var(--ds-warn-soft); border-radius: 6px; }
.ds-warn p { margin: 0; }
.ds-tag {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  font-size: 13px; font-weight: 600; background: var(--ds-warn-soft); color: var(--ds-warn);
}
.ds-reg { scroll-margin-top: 16px; }
h4 { margin: 20px 0 8px; font-size: 17px; line-height: 1.3; }
.ds-tag--ok { background: var(--ds-surface-2); color: var(--ds-text); }
.ds-sub { margin: 12px 0 4px; font-weight: 600; color: var(--ds-muted); }
.ds-reg > h2 { padding-bottom: 8px; border-bottom: 1px solid var(--ds-border); }

.ds-ns { margin: 10px 0 6px; padding: 0; list-style: none; counter-reset: ns; }
.ds-ns li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin: 6px 0; padding: 6px 6px 6px 12px; background: var(--ds-surface-2); border: 1px solid var(--ds-border); border-radius: 8px;
}
.ds-ns code { font: 15px/1.4 var(--ds-mono); overflow-wrap: anywhere; }
.ds-copy {
  min-height: 44px; min-width: 72px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--ds-accent); background: var(--ds-surface); color: var(--ds-accent); font: 600 15px var(--ds-font);
}
.ds-copy:hover { background: var(--ds-accent); color: var(--ds-on-accent); }
.ds-copy:active { background: var(--ds-accent-active); color: var(--ds-on-accent); }
.ds-copy:disabled { opacity: .55; cursor: not-allowed; }

.ds-faq { border-top: 1px solid var(--ds-border); }
.ds-faq:last-of-type { border-bottom: 1px solid var(--ds-border); }
.ds-faq summary { min-height: 44px; display: flex; align-items: center; padding: 10px 0; font-weight: 600; cursor: pointer; }
.ds-faq p { margin: 0 0 14px; color: var(--ds-muted); }

.ds-foot { margin-top: 32px; text-align: center; color: var(--ds-muted); }
