:root {
  color-scheme: dark;
  --background: #09131d;
  --surface: #10202e;
  --raised: #162936;
  --ink: #e8f0f6;
  --muted: #b2c3cf;
  --quiet: #95adbd;
  --mint: #79e0ca;
  --line: #2b414f;
  --amber: #f2cc83;
  --page-width: 1392px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 28px;
  background: var(--background);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font: 16px/1.85 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--mint);
  color: var(--background);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: #496273;
  border-radius: 6px;
}

a {
  color: var(--mint);
  text-decoration-color: #4d8e83;
  text-underline-offset: 0.24em;
}

a:hover {
  color: #b8f6e8;
  text-decoration-color: currentColor;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 44px;
  padding: 7px 12px;
}

button:hover {
  border-color: var(--mint);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.table-scroll:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  z-index: 20;
  left: 16px;
  top: -100px;
  background: var(--ink);
  color: var(--background);
  padding: 10px 20px;
}

.skip-link:focus {
  top: 12px;
}

.masthead {
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  width: min(calc(100% - 64px), var(--page-width));
  margin-inline: auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}

.download {
  font-size: 14px;
}

.hero {
  width: min(calc(100% - 64px), var(--page-width));
  margin-inline: auto;
  padding-top: 68px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 52px;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5.8vw, 80px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 720;
  text-wrap: balance;
}

h1 span {
  color: var(--mint);
}

.hero-context {
  padding-bottom: 4px;
}

.hero-summary {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 16px;
}

.hero-context > p:not(.hero-summary) {
  margin: 0;
  color: var(--muted);
  max-width: 34em;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 23px;
  color: var(--quiet);
  font-size: 13px;
}

.decision-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.decision-strip strong {
  color: var(--mint);
}

.decision-strip p {
  margin: 0;
  color: var(--muted);
}

.decision-strip b {
  color: var(--ink);
}

.decision-strip a {
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 66px;
  align-items: start;
  width: min(calc(100% - 64px), var(--page-width));
  margin: 52px auto 100px;
}

.rail {
  position: sticky;
  top: 20px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding-right: 18px;
  scrollbar-width: thin;
  scrollbar-color: #496273 var(--background);
}

.rail-tools label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 7px;
}

input[type="search"] {
  width: 100%;
  min-height: 44px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 14px;
  appearance: none;
}

input::placeholder {
  color: var(--quiet);
}

.reading-modes {
  display: flex;
  margin-top: 11px;
  gap: 8px;
}

.reading-modes button {
  flex: 1;
  font-size: 13px;
  padding-inline: 5px;
}

.reading-modes button[aria-pressed="true"] {
  background: #173d38;
  border-color: #479b87;
  color: #bcf7e9;
}

.search-status {
  min-height: 1.6em;
  font-size: 12px;
  color: var(--quiet);
  margin: 11px 0 20px;
}

.toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin: 0 0 2px;
}

.toc a {
  display: block;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
  border-radius: 5px;
}

.toc a:hover,
.toc a[aria-current="location"] {
  color: var(--mint);
  background: var(--surface);
}

.rail-footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
  display: grid;
  gap: 12px;
  font-size: 12px;
}

.print-button {
  width: fit-content;
  font-size: 12px;
}

main {
  min-width: 0;
}

.scope-note {
  color: var(--quiet);
  font-size: 14px;
  margin: 0 0 30px;
  max-width: 70ch;
}

.report-section {
  padding: 4px 0 56px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

h2,
h3 {
  text-wrap: balance;
}

h2 {
  font-size: clamp(24px, 2.7vw, 32px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 0 0 25px;
  font-weight: 670;
}

h3 {
  margin: 39px 0 15px;
  font-size: 21px;
  line-height: 1.6;
  color: var(--mint);
}

.report-section > p,
.report-section > ul,
.report-section > ol {
  max-width: 72ch;
}

.report-section p {
  margin: 0 0 19px;
}

.report-section ul,
.report-section ol {
  padding-left: 1.5em;
  margin-block: 20px;
}

.report-section li {
  margin-bottom: 11px;
  padding-left: 3px;
}

.report-section li::marker {
  color: var(--quiet);
}

.report-section strong {
  color: #f3f7fb;
  font-weight: 670;
}

.report-section a {
  word-break: break-word;
}

code,
pre {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
  font-variant-ligatures: none;
}

:not(pre) > code {
  color: #b5e7db;
  background: var(--surface);
  padding: 2px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

pre {
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
  padding: 22px 24px;
  margin: 27px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.9;
  scrollbar-width: thin;
  scrollbar-color: #496273 var(--surface);
}

pre code {
  font-size: 1em;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  scrollbar-width: thin;
  scrollbar-color: #496273 var(--surface);
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.8;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

th {
  background: var(--surface);
  color: #c2efe5;
  font-weight: 620;
  border-top: 1px solid var(--line);
}

td:first-child {
  color: var(--muted);
  min-width: 104px;
}

tr:hover td {
  background: #10202e;
}

.no-results {
  padding: 35px 0;
}

.no-results p {
  color: var(--muted);
}

.page-footer {
  border-top: 1px solid var(--line);
  color: var(--quiet);
  padding: 28px 32px 40px;
  text-align: center;
  font-size: 13px;
}

.page-footer p {
  margin: 5px 0;
}

@media (min-width: 1500px) {
  .layout {
    grid-template-columns: 278px minmax(0, 1fr);
    gap: 80px;
  }
}

@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 212px minmax(0, 1fr);
    gap: 32px;
  }

  .hero-inner {
    gap: 32px;
  }

  .decision-strip {
    grid-template-columns: auto 1fr;
  }

  .decision-strip > a {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .masthead-inner,
  .hero,
  .layout {
    width: calc(100% - 36px);
  }

  .masthead-inner {
    min-height: 62px;
    font-size: 14px;
  }

  .download {
    font-size: 12px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-bottom: 30px;
  }

  h1 {
    font-size: clamp(40px, 10vw, 62px);
  }

  .hero-summary br {
    display: none;
  }

  .decision-strip {
    display: block;
    font-size: 14px;
  }

  .decision-strip p {
    margin-block: 8px 12px;
  }

  .layout {
    display: block;
    margin-top: 32px;
  }

  .rail {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0 0 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
  }

  .rail nav {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .toc {
    columns: 2;
    column-gap: 12px;
  }

  .toc li {
    break-inside: avoid;
  }

  .toc a {
    padding: 9px 4px;
    font-size: 12px;
  }

  .rail-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .reading-modes {
    max-width: 340px;
  }

  .report-section {
    padding-bottom: 32px;
    margin-bottom: 24px;
  }

  h2 {
    font-size: 25px;
  }

  pre {
    padding: 17px;
    font-size: 12px;
  }

  .page-footer {
    padding-inline: 18px;
  }
}

@media print {
  :root {
    --background: #fff;
    --surface: #f4f6f7;
    --ink: #14222c;
    --muted: #344c59;
    --quiet: #425e6e;
    --mint: #176657;
    --line: #c7d1d8;
  }

  html,
  body {
    background: #fff;
    color: var(--ink);
    font-size: 10pt;
  }

  .masthead,
  .rail,
  .skip-link,
  .no-results,
  .decision-strip > a,
  .page-footer {
    display: none !important;
  }

  .hero,
  .layout {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-inner {
    display: block;
    padding-bottom: 22px;
  }

  h1 {
    font-size: 34pt;
    margin-bottom: 15px;
  }

  .layout {
    display: block;
    margin-top: 24px;
  }

  .report-section[hidden] {
    display: block !important;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  h2 {
    font-size: 19pt;
  }

  h3 {
    font-size: 14pt;
  }

  .report-section strong {
    color: #14222c;
  }

  .table-scroll,
  pre {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 8pt;
  }

  th,
  td {
    padding: 7px;
  }

  th {
    color: #174c40;
  }

  tr:hover td {
    background: var(--surface);
  }

  tr {
    break-inside: avoid;
  }

  pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 7.5pt;
  }

  code,
  :not(pre) > code {
    color: #174c40;
  }
}
