main, footer, .site-header__row { max-width: 1180px; }
.site-header__row { flex-wrap: wrap; }
.nav-cta { font-size: .85rem; flex-wrap: wrap; }
.nav-cta [aria-current] { font-weight: 700; }
main { padding-block-start: 36px; }
section { margin: 28px 0; }
p { line-height: 1.55; max-width: 76ch; }
.transfer { max-width: 76ch; border-block: 1px solid var(--hairline); padding: 12px 0; }
summary { color: var(--brand); font-weight: 650; cursor: pointer; }
.controls { display: grid; grid-template-columns: 1.1fr 1.1fr 1.5fr .7fr; align-items: end; gap: 12px; margin: 18px 0; }
.controls input, .controls select { display: block; box-sizing: border-box; width: 100%; height: 44px; padding: 8px 10px; margin: 4px 0 0; border: 1px solid var(--hairline); border-radius: 8px; background: white; font: inherit; color: var(--ink); }
.table-scroll { max-height: 60vh; overscroll-behavior: contain; }
#rates-table { border-collapse: separate; border-spacing: 0; }
#rates-table caption { text-align: start; padding: 10px 16px; font-weight: 600; }
#rates-table th, #rates-table td { padding: 7px 12px; min-width: 102px; width: auto; }
#rates-table thead th { position: sticky; top: 0; z-index: 2; vertical-align: bottom; }
#rates-table tr > th:first-child { position: sticky; inset-inline-start: 0; width: 180px; min-width: 130px; max-width: 220px; z-index: 1; background: var(--surface-1); }
#rates-table thead th:first-child { z-index: 3; }
#rates-table tbody bdi { display: inline-block; color: var(--ink-2); font-weight: 400; }
#rates-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
#rates-table button { display: inline; padding: 3px 0; margin: 0; background: transparent; border: 0; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
dialog { padding: 22px; width: min(560px, 90vw); max-height: 80vh; overflow: auto; border: 1px solid var(--hairline); border-radius: 16px; color: var(--ink); }
dialog::backdrop { background: #18242166; }
dialog form { float: inline-end; }
dialog form button { margin: 0; }
dialog h2 { margin: 0; padding-inline-end: 72px; font-size: 22px; }
dialog details { padding: 10px 0; border-top: 1px solid var(--hairline); }
.prefixes { overflow-wrap: anywhere; color: var(--ink-2); font-size: .875rem; }
.as-of { color: var(--ink-2); font-size: .875rem; }
@media (max-width: 700px) {
  .site-header { position: static; }
  main { padding-block-start: 18px; }
  .controls { grid-template-columns: 1fr 1fr; }
  #rates-table tr > th:first-child { width: 125px; min-width: 110px; }
}
