:root {
  color-scheme: dark;
  --background: #030817;
  --surface: #0d1930;
  --surface-strong: #11233e;
  --text: #f7f9ff;
  --muted: #bcc9dd;
  --line: #2b3e5c;
  --blue: #6dcaff;
  --green: #58e6bd;
  --warning: #ffd47d;
  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%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 2%, rgba(20, 126, 181, 0.2), transparent 28rem),
    radial-gradient(circle at 94% 12%, rgba(86, 27, 107, 0.18), transparent 30rem),
    var(--background);
  color: var(--text);
  line-height: 1.65;
}

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

a:hover {
  color: #b5e7ff;
}

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

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

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

.draft-banner,
.offline-banner {
  background: #483516;
  border-bottom: 1px solid #87672e;
  color: #fff3d5;
  font-weight: 800;
  padding: 0.7rem 1rem;
  text-align: center;
}

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

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

.site-name {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 850;
}

.site-nav ul,
.simple-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 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: #7889a5;
  content: "/";
  margin-left: 0.35rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

.guide-grid,
.program-grid,
.content-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: 800;
  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);
}

.related-links ul,
.source-panel ul,
.check-list,
.source-list,
.fact-list,
.steps {
  padding-left: 1.25rem;
}

.related-links li,
.source-panel li,
.check-list li,
.source-list li,
.fact-list li,
.steps li {
  margin-block: 0.45rem;
}

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

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

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

  h1 {
    font-size: clamp(2.2rem, 13vw, 3.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
