:root {
  color-scheme: light;
  --paper: #fff;
  --surface: #f1f5f7;
  --ink: #172b3b;
  --muted: #40596a;
  --line: #ced9e1;
  --brand: #163951;
  --accent: #d9771c;
  --focus: #9a4d0d;
  background: var(--paper);
  color: var(--ink);
  font: 100%/1.58 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, main:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
code { font: .92em ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; color: var(--brand); line-height: 1.14; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.035em; margin-bottom: .65rem; }
h3 { font-size: 1.14rem; margin: 1.7rem 0 .65rem; }

.skip-link {
  position: fixed;
  z-index: 2;
  inset: .6rem auto auto .6rem;
  transform: translateY(calc(-100% - 1rem));
  padding: .55rem .75rem;
  background: var(--brand);
  color: var(--paper);
  font-weight: 700;
}
.skip-link:focus { transform: none; }

.wrap { width: min(calc(100% - 3rem), 73rem); margin-inline: auto; }
.page-header { padding-block: clamp(1.65rem, 4vw, 3rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-header > .wrap { padding-bottom: 1.25rem; border-bottom: 2px solid var(--accent); }
.brand-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: .9rem; }
.brand-row code { color: var(--brand); }
.brand-logo { position: relative; display: block; inline-size: 6.6rem; max-inline-size: 100%; aspect-ratio: 805 / 543; overflow: hidden; }
.brand-logo img { position: absolute; top: -51.2%; left: -14.3%; inline-size: 127.2%; max-inline-size: none; block-size: auto; }
h1 { font-size: clamp(2rem, 4.4vw, 3.75rem); letter-spacing: -.045em; }
.intro { max-width: 70ch; margin: .85rem 0 1.15rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.1rem); }
.resources { display: flex; flex-wrap: wrap; gap: .65rem; }
.resource { display: inline-flex; min-height: 44px; align-items: center; padding: .5rem .85rem; border: 1px solid var(--brand); border-radius: 5px; color: var(--brand); font-weight: 650; text-decoration: none; }
.resource--primary { background: var(--brand); color: var(--paper); }
.resource:hover { text-decoration: underline; text-underline-offset: .15em; }

.page-layout { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.75rem); padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.page-nav { position: sticky; top: 1rem; align-self: start; border-inline-start: 2px solid var(--line); }
.page-nav ol { margin: 0; padding: 0; list-style: none; }
.page-nav a { display: flex; min-height: 44px; align-items: center; padding: .3rem .7rem; color: var(--muted); font-size: .9rem; text-underline-offset: .16em; }
.page-nav a:hover { color: var(--ink); }

main > section { scroll-margin-top: 1rem; }
main > section + section { margin-top: 2.35rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.examples { display: grid; grid-template-columns: minmax(0, 1fr); margin-block: 1rem; }
.examples figure { min-width: 0; margin: 0; }
.examples figure + figure { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.examples figcaption { margin-bottom: .5rem; color: var(--brand); font-size: .9rem; font-weight: 700; }
.examples pre { margin: 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: .9rem; }

.results { width: 100%; margin: 0 0 1rem; border-collapse: collapse; table-layout: fixed; text-align: left; }
.results :is(th, td) { padding: .6rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
.results code { hyphens: none; }
.results thead th { border-top: 1px solid var(--line); background: var(--surface); color: var(--brand); }
.results tbody th { font-weight: 650; }
.results tbody tr:nth-child(even) { background: var(--surface); }
.contract-table th:first-child { width: 25%; }
.contract-table th:nth-child(2) { width: 20%; }
.outcome-table th:first-child, .outcome-table th:nth-child(3) { width: 16%; }
.outcome-table th:nth-child(2), .delivery-table th:first-child { width: 28%; }
.steps { margin: 0 0 1rem; padding-inline-start: 1.35rem; }
.steps li { margin-bottom: .5rem; padding-inline-start: .17rem; }

@media (max-width: 48rem) {
  .wrap { width: calc(100% - 2rem); }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .page-nav { position: static; border-inline-start: 0; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
  .page-nav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-nav a { padding-inline: 0 .5rem; }
}

@media (max-width: 28rem) {
  .results { font-size: .875rem; }
  .results :is(th, td) { padding-inline: .25rem; }
}
