.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.code pre, .mono { overflow-wrap: anywhere; }

[id] { scroll-margin-top: 5.5rem; }

.dev-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; }
.dev-lead { max-width: 30em; font-size: 1.75rem; line-height: 1.25; text-wrap: balance; }
.dev-facts { margin-top: 1.125rem; color: var(--subtle); }
.dev-facts li + li { margin-top: .375rem; }
.dev-heed { max-width: 30em; margin-top: 1.125rem; color: var(--notice); }

.step { display: grid; grid-template-columns: 2.125rem minmax(0, 1fr) auto; gap: 0 1.125rem; align-items: center; }
.step-n { color: var(--value); font-size: 2.75rem; line-height: 1; text-align: center; }
.step-do { font-size: 1.375rem; line-height: 1.3; }
.step-how { color: var(--subtle); font-size: 1.125rem; line-height: 1.45; margin-top: 2px; }
.step > img { margin-right: .375rem; }

.asking { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; margin-top: 2rem; }
.said > div + div { margin-top: 1.625rem; }
.said dt { font-size: 1.125rem; line-height: 1.3; margin-bottom: .5rem; }
.said dd { color: var(--subtle); }
.said dd.code { color: #fff; font-size: 1rem; }
.said-notes, .route-notes { color: var(--subtle); font-size: 1.125rem; line-height: 1.45; max-width: 38em; }
.said-notes { margin-top: 1.625rem; }
.route-notes { margin-top: 1.25rem; }
.said-notes li + li, .route-notes li + li { margin-top: .5rem; }

.scope { display: grid; grid-template-columns: 10.75rem minmax(0, 1fr); gap: 2px 1.25rem; align-items: baseline; font-size: 1.125rem; line-height: 1.45; }
.scope b { font-size: 1.125rem; }
.scope-free { grid-column: 2; color: var(--subtle); }

.ref-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ref-line { display: flex; justify-content: space-between; align-items: baseline; gap: .375rem 1.25rem; flex-wrap: wrap; padding: .75rem 1.25rem; font-size: 1.125rem; line-height: 1.4; color: #fff; text-decoration: none; }
.ref-line:hover { background: var(--control); }
.ref-line:focus-visible { outline-offset: -4px; }
.ref-need { color: var(--subtle); white-space: nowrap; }
.ref-need.value { color: var(--value); }
.mono .v { color: var(--value); }

.route { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; margin-top: 5.5rem; }
.route-path { font-size: 1.5rem; line-height: 1.3; }
.route-needs { margin-top: .5rem; }
.route-what { color: var(--subtle); font-size: 1.125rem; line-height: 1.45; margin-top: .875rem; }
.route .code { font-size: 1rem; }
.route .code pre { background: none; }

.params { margin-top: 1.25rem; }
.params > div + div { margin-top: .75rem; }
.params dt { font-size: 1.125rem; line-height: 1.3; }
.params dd { color: var(--subtle); font-size: 1.125rem; line-height: 1.45; }
.param-in { color: var(--subtle); margin-left: .375rem; }

.dev-last { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; }
.heads { margin-top: 1.625rem; }
.heads dd { font-size: 1rem; line-height: 1.6; }

.err { display: grid; grid-template-columns: 3.25rem 14.25rem minmax(0, 1fr); gap: 2px 1rem; align-items: baseline; font-size: 1.125rem; line-height: 1.45; }
.err b { font-size: 1.375rem; }
.err-means { color: var(--subtle); }

.guide-lines { color: var(--subtle); font-size: 1.125rem; line-height: 1.45; max-width: 34em; }
.guide-lines li + li { margin-top: .75rem; }
.guide-lines a { color: #fff; }
.guide-steps { display: grid; gap: 1.375rem; max-width: 34em; }
.guide-steps li { display: grid; grid-template-columns: 2.125rem minmax(0, 1fr); gap: 0 1.125rem; align-items: start; }
.guide-steps .step-n { font-size: 2.25rem; }
.guide-steps.small { gap: .875rem; margin-top: 1.125rem; }
.guide-steps.small .step-n { font-size: 1.625rem; }
.guide-steps.small .step-how { font-size: 1.125rem; margin-top: .125rem; }
.guide-steps + .guide-lines, .guide-steps + .said-notes { margin-top: 2rem; }
.guide-url { color: #fff; margin: .375rem 0; font-size: 1rem; }
.guide-try { margin-top: 5rem; }

.guide-code .screen-bar { grid-template-columns: minmax(0, 1fr) auto; }
.code-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.code-copy { grid-column: 2; }
.code-name { color: var(--subtle); font-size: 1rem; padding: .25rem 1.5rem .5rem; }
.guide-code .code { font-size: .9375rem; }
.guide-code .code pre { white-space: pre; overflow-x: auto; background: none; }
.guide-code .code pre.run { background: var(--row); white-space: pre-wrap; }

@media (max-width: 1100px) {
  .dev-top, .asking, .route, .dev-last { gap: 3rem; }
  .dev-top { grid-template-columns: minmax(0, 1fr); gap: 4rem; }
  .ref-index { grid-template-columns: minmax(0, 1fr); }
  .err { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .err-means { grid-column: 2; }
}

@media (max-width: 700px) {
  [id] { scroll-margin-top: 1rem; }
  .dev-top, .asking, .route, .dev-last { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .asking, .route { gap: 1.5rem; }
  .dev-lead { font-size: 1.5625rem; }

  .step { grid-template-columns: 1.625rem minmax(0, 1fr); gap: .625rem .75rem; align-items: start; }
  .step-n { font-size: 2.25rem; }
  .step-do { font-size: 1.25rem; }
  .step > a, .step > img { grid-column: 2; justify-self: start; margin: 0; }

  .scope { grid-template-columns: minmax(0, 1fr); }
  .scope-free { grid-column: 1; }
  .ref-line { padding: .75rem .875rem; font-size: 1rem; }
  .route { margin-top: 4rem; }
  .route .code, .guide-code .code { font-size: .875rem; }
  .guide-steps li { grid-template-columns: 1.625rem minmax(0, 1fr); gap: 0 .75rem; }
  .guide-try { margin-top: 3.5rem; }
  .route-path { font-size: 1.25rem; }
  .err { grid-template-columns: 2.75rem minmax(0, 1fr); }
}
