.relay-hero { padding-block: clamp(2rem, 5vw, 3rem) 2rem; }
.relay-hero .lede { max-width: 47rem; margin-top: 0; }
.relay-layout { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-bottom: 6rem; align-items: start; }
.relay-toc { position: sticky; top: 1.5rem; display: grid; gap: .15rem; padding-right: 1rem; border-right: 1px solid #344761; }
.relay-toc a { display: block; padding: .55rem .7rem; border-radius: .3rem; color: #c2d0e3; font-size: .925rem; line-height: 1.4; text-decoration: none; }
.relay-toc a:hover, .relay-toc a:focus-visible { background: #183752; color: #fff; }
.relay-document { min-width: 0; }
.relay-document p, .relay-document li { color: #d4e0ef; font-size: 1rem; line-height: 1.7; }
.relay-document p { margin: 0 0 1rem; }
.relay-intro { margin-bottom: 2.5rem; padding: 1.25rem 1.5rem; border-left: 3px solid #79c5d9; background: #13223a; }
.relay-intro p:last-child { margin-bottom: 0; }
.relay-section { margin-top: 3rem; scroll-margin-top: 2rem; }
.relay-document > .relay-section:first-child { margin-top: 0; }
.relay-section h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.relay-section ul { padding-left: 1.4rem; margin: 0 0 1.5rem; }
.relay-section li + li { margin-top: .5rem; }
.relay-warning { padding: 1.5rem; border: 1px solid #a67761; border-left: 3px solid #d29a77; border-radius: .35rem; background: #231d29; }
.relay-warning h2 { margin-top: 0; }
.relay-warning p:last-child { margin-bottom: 0; }
.relay-document pre { max-width: 100%; margin: 1.25rem 0 1.75rem; padding: 1.25rem; overflow-x: auto; border: 1px solid #344761; border-radius: .45rem; background: #080f1d; color: #e5f3ff; font-size: .9rem; line-height: 1.55; }
.relay-document pre code { color: inherit; font: inherit; white-space: pre; }
.relay-document :not(pre) > code { padding: .1rem .3rem; border-radius: .2rem; background: #182c45; overflow-wrap: anywhere; }
.relay-table-scroll { max-width: 100%; margin: 1.5rem 0 2rem; overflow-x: auto; border: 1px solid #344761; border-radius: .45rem; }
.relay-document table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.relay-document th, .relay-document td { padding: .8rem 1rem; border-bottom: 1px solid #344761; text-align: left; vertical-align: top; line-height: 1.55; }
.relay-document th { color: #e8f5ff; background: #172b45; font-weight: 700; }
.relay-document td { color: #d4e0ef; }
.relay-document tr:last-child td { border-bottom: 0; }
.relay-document tbody tr:nth-child(even) { background: #101d32; }
.relay-document td:first-child, .relay-document th:first-child { min-width: 9rem; }
#configuration-and-foreground-operation table { min-width: 32rem; }
#configuration-and-foreground-operation th:first-child,
#configuration-and-foreground-operation td:first-child { width: 1%; white-space: nowrap; }
#configuration-and-foreground-operation td:first-child code { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 48rem) {
  .relay-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .relay-toc { position: static; display: flex; flex-wrap: nowrap; width: 100%; min-width: 0; max-width: 100%; gap: .4rem; overflow-x: auto; white-space: nowrap; border-right: 0; border-bottom: 1px solid #344761; padding: 0 0 1rem; scrollbar-width: thin; }
  .relay-toc a { flex: 0 0 auto; border: 1px solid #344761; }
  .relay-intro { padding: 1rem; }
}
