:root {
  color-scheme: light;
  --ink: #3f3f40;
  --muted: #555555;
  --line: #dfe5eb;
  --paper: #ffffff;
  --wash: #f6f7f3;
  --accent: #eb7924;
  --accent-dark: #a64a0b;
  --link: #006096;
  --link-hover: #004363;
  --brand-blue: #7baed4;
  --brand-yellow: #ffc107;
  --code: #f3f5f7;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--link-hover);
}

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  transform: translateY(-180%);
  border-radius: 0.25rem;
  color: #fff;
  background: var(--link-hover);
}

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

.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 2.25rem;
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 2.25rem;
  background: var(--paper);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 2rem 0 1.5rem;
  border-right: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  max-width: 100%;
  margin: 0 1.25rem 2rem 0;
  align-items: center;
}

.brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.nav-group + .nav-group {
  margin-top: 1.6rem;
}

.nav-heading {
  margin: 0 1rem 0.45rem 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nav-links {
  display: grid;
  gap: 0.15rem;
  padding-right: 1rem;
}

.nav-link {
  display: block;
  padding: 0.46rem 0.7rem;
  border-left: 3px solid transparent;
  border-radius: 0 0.25rem 0.25rem 0;
  color: var(--ink);
  font-size: 0.91rem;
  line-height: 1.35;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--link-hover);
  background: #fff3e8;
}

.nav-link.is-current {
  border-left-color: var(--accent);
  color: var(--accent-dark);
  background: #fff3e8;
  font-weight: 700;
}

.main-content {
  min-width: 0;
  width: 100%;
  max-width: 1160px;
  padding: 2.65rem 0 3rem;
}

.page-header {
  margin-bottom: 2.3rem;
  padding: 1rem 0 1.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.45rem;
  color: var(--link);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.5rem;
  height: 2px;
  background: var(--brand-yellow);
  content: "";
}

.page-header h1 {
  max-width: 850px;
  margin: 0.8rem 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.page-tagline {
  max-width: 680px;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
}

.wp-content {
  overflow-wrap: anywhere;
}

.wp-content h2,
.wp-content h3,
.wp-content h4 {
  color: var(--ink);
  line-height: 1.3;
  scroll-margin-top: 1rem;
}

.wp-content h2 {
  position: relative;
  margin: 3rem 0 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.wp-content h2::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 2.8rem;
  height: 3px;
  background: var(--accent);
  content: "";
}

.wp-content h3 {
  margin: 1.8rem 0 0.65rem;
  font-size: 1.15rem;
}

.wp-content h4 {
  margin: 1.45rem 0 0.5rem;
  font-size: 1rem;
}

.wp-content p,
.wp-content ul,
.wp-content ol {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.wp-content li + li {
  margin-top: 0.4rem;
}

.wp-content img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.wp-content hr {
  margin: 2.2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.wp-content figure {
  margin: 1.4rem 0 1.8rem;
}

.wp-content .wp-block-spacer {
  height: 1.5rem !important;
}

.wp-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(63, 63, 64, 0.06);
}

.wp-content table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  line-height: 1.5;
}

.wp-content .wp-block-table:has(th:nth-child(3)) table {
  min-width: 640px;
}

.wp-content .results-parameters table {
  min-width: 760px;
  table-layout: fixed;
}

.wp-content .results-parameters th:first-child,
.wp-content .results-parameters td:first-child {
  width: 28%;
  white-space: nowrap;
  overflow-wrap: normal;
}

.wp-content .results-parameters th:nth-child(2),
.wp-content .results-parameters td:nth-child(2) {
  width: 72%;
}

.wp-content .results-parameters td p {
  margin: 0 0 0.55rem;
}

.wp-content .results-parameters td p:last-child {
  margin-bottom: 0;
}

.wp-content .results-parameters td ul {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.wp-content .results-parameters td li + li {
  margin-top: 0.25rem;
}

.wp-content th,
.wp-content td {
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.wp-content .response-table table {
  min-width: 760px;
  table-layout: fixed;
}

.wp-content .response-table th:nth-child(1),
.wp-content .response-table td:nth-child(1) {
  width: 12%;
  white-space: nowrap;
  overflow-wrap: normal;
}

.wp-content .response-table th:nth-child(2),
.wp-content .response-table td:nth-child(2) {
  width: 24%;
}

.wp-content .response-table th:nth-child(3),
.wp-content .response-table td:nth-child(3) {
  width: 64%;
}
.wp-content thead th {
  color: #fff;
  background: var(--link);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.wp-content tbody tr:nth-child(even) td {
  background: #f7f9fa;
}

.wp-content tbody tr:hover td {
  background: #fff3e8;
}

.wp-content th {
  font-weight: 700;
}

.wp-content tr:last-child td,
.wp-content tr:last-child th {
  border-bottom: 0;
}

.wp-content > ol {
  margin: 1.2rem 0 1.8rem;
  padding-left: 2.8rem;
  list-style: decimal-leading-zero;
}

.wp-content > ol > li {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--paper);
  box-shadow: 0 5px 16px rgba(63, 63, 64, 0.045);
}

.wp-content > ol > li::marker {
  color: var(--link);
  font-size: 0.92rem;
  font-weight: 850;
}

.wp-content > ol > li + li {
  margin-top: 0.75rem;
}

.contact-inline {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.wp-content pre {
  max-width: 100%;
  overflow: auto;
  margin: 1rem 0 1.35rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--link);
  border-radius: 0.9rem;
  color: var(--ink);
  background: #f5f8fa;
  font-size: 0.86rem;
  line-height: 1.55;
  tab-size: 2;
  box-shadow: 0 5px 16px rgba(63, 63, 64, 0.04);
}

.wp-content code {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

.wp-content :not(pre) > code {
  padding: 0.1rem 0.28rem;
  border-radius: 0.2rem;
  background: var(--code);
  font-size: 0.91em;
}

.wp-content details {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--paper);
  box-shadow: 0 5px 16px rgba(63, 63, 64, 0.04);
}

.wp-content details summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.page-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.mobile-header {
  display: none;
}

@media (max-width: 1220px) {
  .layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.75rem;
    padding: 0 1.5rem;
  }
}

@media (max-width: 760px) {
  body {
    background: var(--paper);
  }

  .mobile-header {
    position: sticky;
    z-index: 5;
    top: 0;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
  }

  .mobile-header .brand {
    margin: 0;
  }

  .mobile-header .brand img {
    width: 158px;
  }

  .mobile-menu {
    position: relative;
  }

  .mobile-menu summary {
    padding: 0.42rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.25rem;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    font-weight: 650;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary::after {
    content: "▾";
    margin-left: 0.5rem;
    color: var(--accent-dark);
  }

  .mobile-menu[open] summary::after {
    content: "▴";
  }

  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(88vw, 340px);
    max-height: min(75vh, 620px);
    overflow: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.35rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(28, 43, 60, 0.16);
  }

  .mobile-menu-panel .nav-group + .nav-group {
    margin-top: 1rem;
  }

  .mobile-menu-panel .nav-links {
    padding-right: 0;
  }

  .layout {
    display: block;
    min-height: calc(100vh - 68px);
    padding: 0;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    padding: 2rem 1.15rem 2.4rem;
  }

  .page-header {
    margin-bottom: 1.5rem;
    padding-top: 0.6rem;
  }

  .page-header h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .wp-content h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
  }

  .wp-content .wp-block-table:has(th:nth-child(3)) table {
    min-width: 640px;
  }

  .wp-content pre {
    margin-left: -0.4rem;
    margin-right: -0.4rem;
    padding: 0.8rem;
    font-size: 0.8rem;
  }
}


/* The Create a New Order schema is split into request objects. */
.wp-content .schema-hierarchy {
  margin: 1.25rem 0 2rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0.65rem;
  background: var(--wash);
}

.wp-content .schema-hierarchy > h3 {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.35;
}

.wp-content .schema-tree,
.wp-content .schema-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-content .schema-tree li {
  position: relative;
  margin: 0;
  padding: 0.12rem 0 0.12rem 1.15rem;
  line-height: 1.45;
}

.wp-content .schema-tree li::before,
.wp-content .schema-tree li::after {
  position: absolute;
  content: "";
  border-color: #cbd6dc;
  border-style: solid;
}

.wp-content .schema-tree li::before {
  top: -0.35rem;
  bottom: -0.35rem;
  left: 0.25rem;
  border-width: 0 0 0 1px;
}

.wp-content .schema-tree li::after {
  top: 0.9em;
  left: 0.25rem;
  width: 0.65rem;
  border-width: 1px 0 0;
}

.wp-content .schema-tree li:last-child::before {
  bottom: auto;
  height: 1.05em;
}

.wp-content .schema-tree ul {
  margin: 0.12rem 0 0;
  padding-left: 1.1rem;
}

.wp-content .schema-tree a {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-color: rgba(0, 67, 99, 0.35);
  text-underline-offset: 0.15em;
}

.wp-content .schema-tree a:hover,
.wp-content .schema-tree a:focus-visible {
  text-decoration-color: currentColor;
}

.wp-content .schema-tree code {
  padding: 0.08rem 0.3rem;
  border-radius: 0.25rem;
  color: inherit;
  background: var(--code);
  font-family: inherit;
  font-size: 0.9em;
  white-space: nowrap;
}

.wp-content .schema-tree__array-marker {
  display: inline-block;
  margin-left: 0.12rem;
  padding: 0.02rem 0.18rem;
  border-radius: 0.2rem;
  color: var(--muted);
  background: var(--code);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: 0.08em;
}
.wp-content .schema-tree__label {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.92em;
}
.wp-content details.schema-object {
  margin: 1rem 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wp-content .schema-object > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.25rem 0.65rem 0.8rem;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.wp-content .schema-object > summary::-webkit-details-marker {
  display: none;
}

.wp-content .schema-object > summary::marker {
  content: "";
}

.wp-content .schema-object > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.wp-content .schema-object[open] > summary {
  margin-bottom: 0.8rem;
}

.wp-content .schema-object[open] > summary::after {
  content: "−";
}

.wp-content .schema-object > summary h3,
.wp-content .schema-object > summary h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.35;
}

.wp-content .schema-object__description {
  max-width: 78ch;
  margin: 0 0 0.85rem 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.wp-content .schema-object > figure {
  margin: 0;
}

.wp-content .schema-table table {
  min-width: 760px;
  table-layout: fixed;
}

.wp-content .schema-table th:nth-child(1),
.wp-content .schema-table td:nth-child(1) {
  width: 19%;
}

.wp-content .schema-table th:nth-child(2),
.wp-content .schema-table td:nth-child(2) {
  width: 12%;
}

.wp-content .schema-table th:nth-child(3),
.wp-content .schema-table td:nth-child(3) {
  width: 25%;
}

.wp-content .schema-table th:nth-child(4),
.wp-content .schema-table td:nth-child(4) {
  width: 44%;
}

.wp-content .schema-table td p {
  margin: 0 0 0.55rem;
}

.wp-content .schema-table td p:last-child {
  margin-bottom: 0;
}

.wp-content .schema-table td ul {
  margin: 0.35rem 0 0.55rem;
  padding-left: 1.25rem;
}

.wp-content .schema-table td li + li {
  margin-top: 0.25rem;
}

.wp-content .wp-block-table.donor-schema table {
  min-width: 880px;
  table-layout: fixed;
}

.wp-content .donor-schema th:nth-child(1),
.wp-content .donor-schema td:nth-child(1) {
  width: 22%;
}

.wp-content .donor-schema th:nth-child(2),
.wp-content .donor-schema td:nth-child(2) {
  width: 25%;
}

.wp-content .donor-schema th:nth-child(3),
.wp-content .donor-schema td:nth-child(3) {
  width: 19%;
}

.wp-content .donor-schema th:nth-child(4),
.wp-content .donor-schema td:nth-child(4) {
  width: 34%;
}

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