/* Document layout only. Typography and colors come from Homefront theme-book. */
html { scroll-padding-top: 1.5rem; }
a { overflow-wrap: anywhere; }
.skip { position: absolute; top: -5rem; left: 1rem; padding: .6rem; background: var(--surface); z-index: 9; }
.skip:focus { top: 1rem; }
.masthead { max-width: 88rem; margin: auto; padding: 2rem 2.5rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.brand { font-family: var(--font-head); font-size: var(--fs-h1); font-weight: var(--h1-weight); color: var(--ink); }
.layout { max-width: 88rem; margin: auto; display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem; padding: 2.5rem 2.5rem 5rem; }
.contents { align-self: start; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; scrollbar-width: thin; padding-right: .75rem; font-size: var(--fs-small); line-height: 1.45; }
.contents summary { cursor: pointer; font-weight: 600; padding: .25rem 0 .9rem; }
.contents ul { list-style: none; margin: 0; padding: 0; }
.contents ul ul { padding-left: .65rem; border-left: 1px solid var(--border); }
.contents li { margin: 0 0 .4rem; }
.contents a { display: block; color: var(--muted); padding: .1rem .25rem; }
.contents a:hover { color: var(--accent); }
main { min-width: 0; max-width: 52rem; margin: 0; padding: 0; }
main h1 { margin-bottom: 1.5rem; }
main h2 { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
main h3 { font-family: var(--font-head); font-size: 1.05em; margin: 1.8rem 0 .75rem; }
main li { margin: .35rem 0; }
blockquote { border-left: 3px solid var(--border-strong); margin: 1.5rem 0; padding: .3rem 0 .3rem 1.2rem; }
blockquote p:last-child { margin: 0; }
code { background: var(--sunk); padding: .1em .25em; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
pre { overflow: auto; padding: 1rem 1.15rem; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); margin: 1.2rem 0 1.6rem; line-height: 1.55; tab-size: 2; }
pre code { padding: 0; background: transparent; overflow-wrap: normal; white-space: pre; }
.table-scroll { overflow: auto; margin: 1.4rem 0 1.8rem; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .9em; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--border); min-width: 7rem; }
th { background: var(--sunk); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.repo-reference { color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
footer { max-width: 88rem; margin: auto; padding: 1.5rem 2.5rem 3rem; border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-small); overflow-wrap: anywhere; }
footer p { margin-bottom: .5rem; }
@media (max-width: 900px) {
  .masthead { padding: 1.5rem 1.25rem; }
  .layout { display: block; padding: 1.2rem 1.25rem 3rem; }
  .contents { position: static; max-height: none; padding: 0; margin-bottom: 1.5rem; }
  .contents[open] nav { max-height: 55vh; overflow: auto; }
  main { max-width: none; }
  footer { padding: 1.5rem 1.25rem; }
  pre { padding: .85rem; }
}
@media print {
  .contents, .skip, .reader-note, .downloads { display: none; }
  .layout { display: block; padding: 0; }
  main { max-width: none; }
  .masthead { padding: 0 0 1rem; }
  h2, h3 { break-after: avoid; }
  pre, pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .table-scroll { overflow: visible; }
  footer { padding: 1rem 0; }
}
