:root {
  color-scheme: light;
  --navy: #142234;
  --navy-deep: #0e1928;
  --paper: #fffefb;
  --canvas: #edece6;
  --ink: #243243;
  --muted: #5a6570;
  --gold: #a48248;
  --gold-light: #e3ca97;
  --rule: #deded5;
  --link: #235d7d;
  --wash: #f5f3ed;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

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

html {
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #236589;
  outline-offset: 4px;
  border-radius: 2px;
}

::selection {
  color: var(--navy-deep);
  background: #e7d7b3;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--navy);
  background: var(--paper);
  border: 2px solid var(--gold);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.25rem;
  padding: 1rem max(1.75rem, calc((100% - 1264px) / 2));
  color: #f5f1e7;
  background: var(--navy-deep);
  border-bottom: 2px solid var(--gold);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  color: inherit;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
}

.brand span {
  color: #c9ced4;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.6rem;
  font-size: 0.875rem;
}

.header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #e6e8ec;
}

.site-header :focus-visible {
  outline-color: var(--gold-light);
}

.report-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 2.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.75rem 1.75rem 4rem;
}

.toc {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  padding: 0.35rem 0.5rem 1.5rem 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #bcbcb1 transparent;
}

.toc-label,
.eyebrow,
.section-number {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.toc-label {
  color: var(--muted);
}

.toc ol,
.mobile-contents ol {
  margin: 0;
  padding-left: 1.65rem;
}

.toc li,
.mobile-contents li {
  padding-left: 0.35rem;
}

.toc li::marker,
.mobile-contents li::marker {
  color: #666353;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.toc a {
  display: block;
  padding: 0.5rem 0.2rem;
  color: var(--ink);
  font-size: 0.83rem;
  line-height: 1.5;
  text-decoration: none;
}

.toc a:hover {
  color: var(--link);
  text-decoration: underline;
}

.toc .pdf-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 0.2rem;
  border-top: 1px solid #c9cabe;
  font-weight: 600;
  text-decoration: underline;
}

main#report {
  min-width: 0;
  background: var(--paper);
  border: 1px solid #deded4;
  border-top: 3px solid var(--gold);
  border-radius: 3px;
  box-shadow: 0 6px 26px rgb(25 35 43 / 4%);
}

.report-cover {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3.5rem) 2.5rem;
}

.eyebrow {
  color: #72582e;
}

h1,
h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin: 0 0 1.4rem;
  font-size: clamp(2.5rem, 4.3vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.lede {
  max-width: 42rem;
  margin: 0 0 1.3rem;
  color: #475465;
  font-size: 1.13rem;
  line-height: 1.65;
}

.cover-meta {
  margin: 0 0 1.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--navy);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  color: #fffefb;
  background: var(--navy);
}

.button-primary:hover {
  background: #223953;
  text-decoration: underline;
}

.button-secondary {
  color: var(--navy);
  background: transparent;
  border-color: #b9bdbb;
}

.button-secondary:hover {
  background: var(--wash);
  text-decoration: underline;
}

.disclosure {
  margin: 0;
  padding: 1rem 1.2rem;
  color: #495463;
  background: var(--wash);
  border-left: 3px solid var(--gold);
  font-size: 0.85rem;
  line-height: 1.7;
}

.disclosure strong {
  color: var(--navy);
}

.disclosure + .disclosure {
  margin-top: 0.65rem;
}

.disclosure + .cover-meta {
  margin-top: 1.3rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.1rem 1.5rem;
  margin: 2rem 0 1.75rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--rule);
}

.metrics > div {
  min-width: 0;
}

.metrics strong,
.metrics span,
.metrics small {
  display: block;
}

.metrics strong {
  margin-bottom: 0.15rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.15;
}

.metrics span {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.metrics small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.mobile-contents {
  display: none;
}

article {
  min-width: 0;
  padding: 0 clamp(1.75rem, 4vw, 3.5rem);
  font-size: 1.025rem;
}

.report-section {
  min-width: 0;
  padding: 2.75rem 0 1.7rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 2rem;
}

.report-section:target > .section-heading {
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.section-heading {
  margin-bottom: 1.65rem;
}

.section-number {
  margin-bottom: 0.6rem;
  color: #72582e;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

h3 {
  margin: 2rem 0 0.6rem;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.4;
}

h4 {
  color: var(--navy);
  font-size: 0.93rem;
  line-height: 1.4;
}

p,
ul,
ol,
blockquote,
figure,
pre,
.table-wrap,
.pipeline {
  margin: 0 0 1.25rem;
}

article p,
article li {
  overflow-wrap: break-word;
}

article ul,
article ol {
  padding-left: 1.5rem;
}

article li {
  padding-left: 0.2rem;
}

article li + li {
  margin-top: 0.5rem;
}

article li > ul,
article li > ol {
  margin-top: 0.5rem;
}

article strong {
  color: var(--navy);
  font-weight: 650;
}

blockquote {
  padding: 1.15rem 1.4rem;
  color: #485463;
  background: var(--wash);
  border-left: 3px solid var(--gold);
  font-size: 0.97rem;
}

blockquote > :last-child {
  margin-bottom: 0;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.83em;
}

:not(pre) > code {
  padding: 0.12em 0.28em;
  color: #34465b;
  background: #efeee8;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  padding: 1.2rem 1.4rem;
  overflow: auto;
  color: #e6eaf0;
  background: var(--navy-deep);
  border-radius: 4px;
  font-size: 0.78rem;
  line-height: 1.8;
  tab-size: 2;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  white-space: pre;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 3px;
  scrollbar-width: thin;
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: left;
}

th,
td {
  padding: 0.8rem 0.9rem;
  vertical-align: top;
  overflow-wrap: break-word;
}

th {
  color: var(--navy);
  background: #eeeee7;
  font-weight: 650;
}

tbody tr + tr {
  border-top: 1px solid var(--rule);
}

tbody tr:nth-child(even) {
  background: #f8f7f2;
}

table p:last-child {
  margin-bottom: 0;
}

.reference {
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}

.reference-entry {
  padding: 0.85rem 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  font-size: 0.83rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  scroll-margin-top: 2rem;
}

.reference-entry:target {
  background: #f5efdf;
  outline: 6px solid #f5efdf;
}

.pipeline {
  padding: 1.2rem;
  background: #f2f3ef;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.pipeline .pipeline-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.75rem;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}

.pipeline-main li {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid #d7dcd7;
  counter-increment: stage;
}

.pipeline-main li::before {
  display: block;
  margin-bottom: 0.5rem;
  color: #72582e;
  font-size: 0.7rem;
  font-weight: 700;
  content: counter(stage, decimal-leading-zero);
}

.pipeline h4 {
  margin: 0 0 0.5rem;
}

.pipeline p {
  margin: 0;
  color: #52606b;
  font-size: 0.8rem;
  line-height: 1.6;
}

.pipeline-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid #cdd3cc;
}

.pipeline-branches > div {
  min-width: 0;
  padding: 1rem;
  border-left: 2px solid var(--gold);
}

figure {
  max-width: 100%;
  margin-top: 1.75rem;
}

figure img,
figure svg {
  display: block;
  max-width: 100%;
  height: auto;
}

figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.report-footer {
  margin: 1rem clamp(1.75rem, 4vw, 3.5rem) 0;
  padding: 1.75rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  line-height: 1.7;
}

.report-footer > :last-child {
  margin-bottom: 0;
}

@media (max-width: 1050px) {
  .report-layout {
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 1.5rem;
    padding-inline: 1.25rem;
  }

  .report-cover {
    padding-inline: 2rem;
  }

  article {
    padding-inline: 2rem;
  }

  .report-footer {
    margin-inline: 2rem;
  }
}

@media (max-width: 850px) {
  .report-layout {
    display: block;
    max-width: 820px;
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .toc {
    display: none;
  }

  .mobile-contents {
    display: block;
    margin-top: 1.75rem;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }

  .mobile-contents summary {
    padding: 0.9rem 0.2rem;
    color: var(--navy);
    cursor: pointer;
    font-size: 0.87rem;
    font-weight: 650;
  }

  .mobile-contents ol {
    padding-bottom: 1rem;
  }

  .mobile-contents a {
    display: block;
    padding: 0.7rem 0.2rem;
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.5;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 4.5rem;
    gap: 1rem;
    padding: 0.65rem 1.1rem;
  }

  .brand {
    display: block;
    font-size: 1.35rem;
    letter-spacing: 0.09em;
  }

  .brand span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }

  .header-links {
    gap: 0.1rem 1rem;
    font-size: 0.75rem;
  }

  .report-layout {
    padding: 0 0 1.5rem;
  }

  main#report {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .report-cover {
    padding: 2rem 1.2rem 1.8rem;
  }

  h1 {
    margin-bottom: 1.2rem;
    font-size: clamp(2.35rem, 10.5vw, 3.2rem);
  }

  .lede {
    font-size: 1.02rem;
  }

  .cover-meta {
    font-size: 0.78rem;
  }

  .cover-actions {
    align-items: stretch;
  }

  .button {
    flex: 1 1 10rem;
  }

  .disclosure {
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem 1rem;
  }

  .metrics strong {
    font-size: 1.8rem;
  }

  article {
    padding: 0 1.2rem;
    font-size: 1rem;
    line-height: 1.72;
  }

  .report-section {
    padding-top: 2rem;
    padding-bottom: 1.1rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  h3 {
    font-size: 1.06rem;
  }

  blockquote {
    padding: 1rem;
    font-size: 0.93rem;
  }

  pre {
    padding: 1rem;
    font-size: 0.72rem;
  }

  .pipeline {
    padding: 0.8rem;
  }

  .pipeline .pipeline-main,
  .pipeline-branches {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-footer {
    margin-inline: 1.2rem;
    padding-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  :root {
    font-size: 11pt;
    color: #111;
    background: #fff;
  }

  body {
    line-height: 1.5;
  }

  .site-header,
  .skip-link,
  .toc,
  .cover-actions,
  .mobile-contents {
    display: none !important;
  }

  .report-layout {
    display: block;
    max-width: none;
    padding: 0;
  }

  main#report {
    color: #111;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  .report-cover,
  article {
    padding: 0;
  }

  .report-cover {
    margin-bottom: 2rem;
  }

  h1 {
    max-width: none;
    font-size: 30pt;
  }

  h2 {
    font-size: 21pt;
  }

  h3 {
    font-size: 12pt;
  }

  h1,
  h2,
  h3,
  h4,
  .section-heading {
    break-after: avoid;
  }

  .report-section {
    padding: 1.5rem 0 0.5rem;
  }

  .report-section:target > .section-heading {
    padding-left: 0;
    border-left: 0;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  a,
  a:visited {
    color: inherit;
  }

  .disclosure,
  .metrics,
  blockquote,
  figure,
  .pipeline-main li,
  .pipeline-branches > div {
    break-inside: avoid;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  pre {
    color: #111;
    background: #f3f3f3;
    border: 1px solid #ccc;
    font-size: 8pt;
  }

  pre,
  pre code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .table-wrap {
    overflow: visible;
  }

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

  thead {
    display: table-header-group;
  }

  tr {
    break-inside: avoid;
  }

  .pipeline .pipeline-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-entry {
    font-size: 8.5pt;
  }

  .reference-entry:target {
    background: none;
    outline: none;
  }

  .report-footer {
    margin-inline: 0;
    padding-bottom: 0;
  }
}
