:root {
  color-scheme: dark;
  --background: #050b1a;
  --surface: #0d1930;
  --surface-strong: #12213c;
  --text: #f5f8ff;
  --muted: #bdc8dc;
  --line: #2a3b58;
  --accent: #5ee6c1;
  --accent-strong: #22c997;
  --warning: #ffd37a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(24, 131, 143, 0.18), transparent 28rem),
    var(--background);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a6f8e4;
}

a:focus-visible {
  border-radius: 0.2rem;
  outline: 0.2rem solid var(--warning);
  outline-offset: 0.2rem;
}

.skip-link {
  left: 1rem;
  position: absolute;
  top: -6rem;
  z-index: 10;
}

.skip-link:focus {
  background: var(--text);
  color: var(--background);
  padding: 0.65rem 0.9rem;
  top: 1rem;
}

.draft-banner {
  background: #463416;
  border-bottom: 1px solid #80652e;
  color: #fff2cf;
  font-weight: 700;
  padding: 0.7rem 1rem;
  text-align: center;
}

.site-header,
.page-shell,
.site-footer {
  margin-inline: auto;
  max-width: 74rem;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.site-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.2rem;
}

.site-name {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-shell {
  padding-block: clamp(2rem, 6vw, 5rem);
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  color: #72819a;
  content: "/";
  margin-left: 0.35rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  letter-spacing: -0.045em;
  margin: 0.35rem 0 1.25rem;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  margin: 2.8rem 0 0.8rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.4rem;
}

.lede {
  color: #d7e1f0;
  font-size: clamp(1.08rem, 2.5vw, 1.32rem);
  max-width: 48rem;
}

.direct-answer,
.notice,
.review-gate,
.source-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-block: 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.direct-answer {
  border-left: 0.35rem solid var(--accent-strong);
}

.review-gate {
  border-left: 0.35rem solid var(--warning);
}

.direct-answer > :first-child,
.notice > :first-child,
.review-gate > :first-child,
.source-panel > :first-child {
  margin-top: 0;
}

.direct-answer > :last-child,
.notice > :last-child,
.review-gate > :last-child,
.source-panel > :last-child {
  margin-bottom: 0;
}

.meta-list {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.93rem;
  gap: 0.35rem 1.4rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.grid,
.guide-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-block: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  margin-block: 1.25rem;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 42rem;
  width: 100%;
}

caption {
  font-weight: 700;
  padding: 0.7rem 0;
  text-align: left;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-strong);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  border-left: 2px solid var(--line);
  margin-left: 1rem;
  padding: 0 0 1.5rem 2.2rem;
  position: relative;
}

.steps li::before {
  align-items: center;
  background: var(--accent-strong);
  border-radius: 50%;
  color: #042018;
  content: counter(step);
  counter-increment: step;
  display: flex;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  left: -1.05rem;
  position: absolute;
  top: 0;
  width: 2rem;
}

.related-links ul,
.source-panel ul {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
  padding-block: 2rem 3rem;
}

.site-footer strong {
  color: var(--text);
}

@media (max-width: 38rem) {
  .page-shell {
    overflow-wrap: anywhere;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav ul {
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.15rem, 14vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
