:root {
  color-scheme: dark;
  --bg: #080d14;
  --surface: #111827;
  --surface-soft: #0d1521;
  --ink: #f8fafc;
  --ink-soft: rgba(248, 250, 252, 0.82);
  --muted: rgba(248, 250, 252, 0.62);
  --edge: rgba(255, 255, 255, 0.1);
  --cyan: #22d3ee;
  --teal: #48e5c2;
  --amber: #f5b928;
  --red: #f87171;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% -10%, rgba(34, 211, 238, 0.12), transparent 32rem),
    radial-gradient(circle at 100% 30%, rgba(72, 229, 194, 0.06), transparent 36rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
}

a { color: var(--cyan); }
a:hover { color: var(--teal); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--edge);
  background: rgba(8, 13, 20, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner, main, .footer-inner {
  width: min(100% - 2rem, 860px);
  margin-inline: auto;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-mark { color: var(--cyan); }

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  font-size: 0.86rem;
}

.header-nav a { color: var(--muted); text-decoration: none; }
.header-nav a[aria-current="page"] { color: var(--ink); }

main { padding: 4rem 0 5rem; }

main.error-main {
  min-height: calc(100vh - 154px);
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
}

h2 {
  margin-top: 3.2rem;
  padding-top: 0.25rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

h3 { margin-top: 2rem; font-size: 1.12rem; }

.lede {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.effective {
  display: inline-block;
  margin-top: 1.35rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.notice, .summary, .action-card {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(13, 21, 33, 0.94));
}

.notice strong, .summary strong { color: var(--teal); }
.notice.warning { border-color: rgba(245, 185, 40, 0.35); }
.notice.warning strong { color: var(--amber); }

p, li, td, th { color: var(--ink-soft); }
li + li { margin-top: 0.42rem; }
ul, ol { padding-left: 1.35rem; }

code {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.92em;
}

.table-wrap {
  margin: 1.4rem 0;
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(13, 21, 33, 0.78);
  font-size: 0.94rem;
}

th, td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--edge);
  text-align: left;
  vertical-align: top;
}

th { color: var(--ink); }
tr:last-child td { border-bottom: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: rgba(34, 211, 238, 0.18);
  color: var(--ink);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.steps { counter-reset: steps; list-style: none; padding-left: 0; }
.steps > li {
  position: relative;
  min-height: 2.5rem;
  padding-left: 3rem;
}
.steps > li + li { margin-top: 1.2rem; }
.steps > li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 50%;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--edge);
  background: rgba(5, 9, 14, 0.75);
}

.footer-inner {
  padding: 1.5rem 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.footer-links a { color: var(--muted); }

@media (max-width: 620px) {
  .site-header { position: static; }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .header-nav { justify-content: flex-start; }
  main { padding-top: 2.5rem; }
  th, td { min-width: 10rem; }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  .site-header, .site-footer { display: none; }
  main { width: 100%; padding: 0; }
  p, li, td, th, .lede, .effective { color: #222; }
  a { color: #111; }
  .notice, .summary, .action-card, table { background: transparent; border-color: #ccc; }
}
