/* Trail brand values from trailhq.com/brand: deep ocean structure, coral as signal only, white ground. */
@font-face { font-family: Switzer; src: url(/fonts/Switzer-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Erode; src: url(/fonts/Erode-Variable.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ocean: #0A2333;
  --ocean-mid: #16405A;
  --coral: #F23030;
  --body: #353E43;
  --muted: #586369;
  --rule: rgba(10, 35, 51, .12);
  --tint: #E8F2FB;
  --hover: #F3F5F7;
  --sans: Switzer, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Erode, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--body); font: 400 1rem/1.65 var(--sans); }
a { color: var(--ocean-mid); text-underline-offset: .15em; }
a:hover { color: var(--coral); }
a:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 6px 10px; z-index: 2; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); }
.brand img { display: block; }
.brand span { padding-left: 12px; border-left: 1px solid var(--rule);
  font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.site { font-size: .875rem; text-decoration: none; }

.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); max-width: 1180px; margin: 0 auto; }
nav { padding: 28px 16px 40px 24px; border-right: 1px solid var(--rule); font-size: .9rem; line-height: 1.4; }
nav ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 24px; }
nav a { display: block; padding: 7px 10px; border-left: 2px solid transparent; border-radius: 0 4px 4px 0;
  color: var(--body); text-decoration: none; }
nav a:hover { background: var(--hover); color: var(--ocean); }
nav a[aria-current] { border-left-color: var(--coral); color: var(--ocean); font-weight: 600; }

main { padding: 40px 48px 72px; max-width: 46rem; overflow-wrap: break-word; }
h1, h2, h3, h4 { color: var(--ocean); line-height: 1.25; }
h1 { font: 500 2.25rem/1.15 var(--serif); letter-spacing: -.02em; margin: 0 0 20px; }
h2 { font-size: 1.375rem; font-weight: 600; margin: 40px 0 12px; }
h3 { font-size: 1.125rem; font-weight: 600; margin: 32px 0 10px; }
h4 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }
strong { color: var(--ocean); font-weight: 600; }
.tablewrap, main table { display: block; overflow-x: auto; }
main table { border-collapse: collapse; width: 100%; margin: 0 0 20px; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
th { background: var(--tint); color: var(--ocean); font-weight: 600; }

footer { border-top: 1px solid var(--rule); padding: 20px 24px; font-size: .8125rem; color: var(--muted); }

@media (max-width: 820px) {
  /* Phone: document first, list of documents after it. */
  .layout { display: flex; flex-direction: column; }
  nav { order: 2; border-right: 0; border-top: 1px solid var(--rule); padding: 12px 16px; }
  nav ul { position: static; }
  main { padding: 28px 16px 56px; }
  h1 { font-size: 1.75rem; }
}
@media print {
  nav, .site, .skip { display: none; }
  .layout { display: block; }
  main { max-width: none; padding: 0; }
  a { color: inherit; }
}
