/* go-overland.com - hand-written design system (no external dependencies) */
:root {
  --bg: #f3ecdd;
  --paper: #fffbf2;
  --ink: #2a2823;
  --muted: #6b6457;
  --line: #e2d6bd;
  --olive: #4b5a2c;
  --olive-dark: #333f1d;
  --olive-soft: #e6e8d2;
  --rust: #a8461f;
  --rust-dark: #82340f;
  --sand: #e9dcc0;
  --charcoal: #24231f;
  --link: var(--rust);
  --link-hover: var(--rust-dark);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(60, 45, 20, .06), 0 6px 20px rgba(60, 45, 20, .07);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, Cambria, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--paper); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- masthead ---------- */
.masthead {
  background:
    radial-gradient(1200px 300px at 85% -50%, rgba(232, 148, 106, .35), transparent 60%),
    linear-gradient(135deg, #3f4a2a 0%, #2c3420 60%, #24231f 100%);
  color: #f5eedc;
}
.masthead-inner { display: flex; align-items: center; gap: 1.25rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.brand { flex: none; display: block; background: #fff; border-radius: 12px; padding: 6px 8px; box-shadow: 0 2px 10px rgba(0,0,0,.25); line-height: 0; }
.brand img { height: 92px; width: auto; display: block; }
.tagline { margin: 0; flex: 1 1 260px; font: 600 clamp(1.25rem, 2.6vw, 1.85rem)/1.2 var(--serif); letter-spacing: .01em; }
.utility { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .5rem; justify-content: flex-end; flex: 1 1 320px; }
.utility a { display: inline-block; color: #f5eedc; text-decoration: none; font-size: .8rem; letter-spacing: .02em; padding: .3rem .65rem; border: 1px solid rgba(245, 238, 220, .3); border-radius: 999px; }
.utility a:hover { background: rgba(245, 238, 220, .12); color: #fff; }

/* ---------- sticky main nav ---------- */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--rust); background: color-mix(in srgb, #a8461f 92%, black); box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.navbar-inner { display: flex; align-items: center; gap: .5rem; min-height: 3.1rem; }
.topnav { flex: 1; min-width: 0; }
.topnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.topnav ul::-webkit-scrollbar { display: none; }
.topnav a { display: block; white-space: nowrap; color: #fff6ea; text-decoration: none; font-weight: 600; font-size: .92rem; padding: .55rem .8rem; border-radius: 6px; text-transform: capitalize; }
.topnav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-toggle { flex: none; font: 600 .92rem var(--sans); color: #fff6ea; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: .45rem .8rem; cursor: pointer; }
.nav-toggle::before { content: ""; display: inline-block; width: 14px; height: 10px; margin-right: .5rem; vertical-align: 0; background: linear-gradient(currentColor 0 0) top/100% 2px no-repeat, linear-gradient(currentColor 0 0) center/100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-areas: "side main"; gap: 2rem; padding-top: 1.75rem; padding-bottom: 3rem; align-items: start; }
main { grid-area: main; min-width: 0; }
main:focus { outline: none; }
.sidebar { grid-area: side; position: sticky; top: 4.2rem; max-height: calc(100vh - 5rem); overflow: auto; }
.sidebar nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .5rem 1rem; box-shadow: var(--shadow); }
.side-h { margin: .85rem .6rem .35rem; font: 700 .72rem/1 var(--sans); letter-spacing: .14em; color: var(--olive); }
.side-h:first-child { margin-top: .35rem; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a { display: block; padding: .38rem .6rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.sidebar li a:hover { background: var(--olive-soft); color: var(--ink); }
.sidebar li a[aria-current="page"] { background: var(--olive); color: #fff; }
.partners { margin-top: 1rem; text-align: center; }
.partner { display: inline-block; padding: .5rem; border-radius: 8px; background: var(--charcoal); line-height: 0; }

/* ---------- breadcrumb ---------- */
.crumbs ol { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin: 0 .45rem 0 .2rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }

/* ---------- article ---------- */
.prose { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3.5vw, 2.75rem); overflow-wrap: break-word; }
.prose::after { content: ""; display: table; clear: both; }
.prose > *, .prose .lt-cell > * { max-width: 72ch; }
.prose h1, .prose h2, .prose h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; text-wrap: balance; }
.prose h1 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin: 0 0 .9rem; letter-spacing: -.005em; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 1.8rem 0 .6rem; padding-top: .3rem; }
.prose h1 + br, .prose h2 + br, .prose h1 + br + br, .prose h2 + br + br { display: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: .5rem 0 1rem; max-width: none; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: .2rem 0; }
.prose img { border-radius: 6px; vertical-align: middle; }
.prose img.fr { float: right; margin: .35rem 0 1rem 1.25rem; max-width: 50%; }
.prose img.fl { float: left; margin: .35rem 1.25rem 1rem 0; max-width: 50%; }
.prose .ta-center { text-align: center; max-width: none; }
.prose .ta-center img { margin: .5rem auto; }
.prose .ta-right { text-align: right; }
.prose .ta-left { text-align: left; }
.prose br:has(+ h2), .prose br:has(+ br + h2), .prose hr + br, .prose hr + br + br { display: none; }
.prose i, .prose em { color: var(--muted); }
.prose [align="justify"] { text-align: left; }

/* old layout tables, now flexible rows */
.lt { max-width: none; margin: 0 0 1rem; }
.lt-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-start; }
.lt-cell { flex: 1 1 260px; min-width: 0; }
.lt-cell:has(> img:only-child), .lt-cell:has(> a:only-child > img) { flex: 0 0 auto; }
.lt .lt { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.lt .lt .lt { background: none; border: 0; padding: 0; }

/* data tables */
.table-scroll { position: relative; max-width: none; margin: 1rem 0 1.5rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
table.data { min-width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.data td, table.data th { padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:first-child td, table.data tr:first-child th { background: var(--olive); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .04em; border-bottom: 0; }
table.data tr:first-child a { color: #fff; }
table.data tr:nth-child(even) td { background: color-mix(in srgb, var(--olive-soft) 55%, transparent); }
table.data tr:hover td { background: var(--olive-soft); }
table.data tr:first-child:hover td { background: var(--olive); }
table.boxed { width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.boxed td { padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--bg); }

/* ---------- footer ---------- */
.footer { background: var(--charcoal); color: #cfc6b2; padding: 1.75rem 0 2rem; font-size: .85rem; }
.footer a { color: #f0c3a6; }
.footer a:hover { color: #fff; }
.footnav { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.footnav a { text-decoration: none; text-transform: capitalize; color: #f5eedc; font-weight: 600; }
.copyright { margin: 0; }
.totop { margin: .75rem 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  /* main nav: not sticky on small screens, links wrap instead of scrolling */
  .navbar { position: static; }
  .navbar-inner { flex-wrap: wrap; align-items: flex-start; padding-top: .45rem; padding-bottom: .45rem; gap: .35rem; }
  .topnav { flex: 1 1 0; }
  .topnav ul { flex-wrap: wrap; overflow: visible; gap: .1rem .15rem; }
  .topnav a { font-size: .86rem; padding: .35rem .5rem; }
  .nav-toggle { margin-top: .05rem; }
  /* utility links: one compact wrapped row of small text links */
  .utility { gap: .25rem .9rem; }
  .utility a { border: 0; padding: .1rem 0; border-radius: 0; font-size: .75rem; text-decoration: underline; text-decoration-color: rgba(245, 238, 220, .35); text-underline-offset: .2em; }
  .utility a:hover { background: none; }
  .utility li { display: inline-flex; align-items: center; }
  body { font-size: 16.5px; }
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; gap: 1.25rem; padding-top: 1rem; }
  .sidebar { position: static; max-height: none; overflow: visible; }
  .masthead-inner { gap: .75rem 1rem; padding-top: .75rem; padding-bottom: .75rem; }
  .brand img { height: 64px; }
  .utility { justify-content: flex-start; flex-basis: 100%; }
  .prose img.fr, .prose img.fl { max-width: 45%; }
  /* with JS: sidebar becomes a slide-in drawer */
  .js .sidebar { position: fixed; inset: 0; z-index: 60; background: rgba(20, 18, 12, .5); padding: 0; display: none; overflow: auto; }
  .js .sidebar nav { width: min(84vw, 320px); min-height: 100%; border-radius: 0; border: 0; padding: .75rem .75rem 2rem; }
  .js .sidebar { z-index: 80; }
  .js .sidebar .partners { display: none; }
  .js.nav-open .sidebar { display: block; }
  .js.nav-open body { overflow: hidden; }
}
.nav-close { display: none; }
@media (max-width: 860px) { .js .nav-close { display: block; margin: 0 0 .5rem auto; font: 600 .9rem var(--sans); color: var(--ink); background: var(--olive-soft); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .8rem; cursor: pointer; } }
@media (min-width: 861px) { .nav-toggle { display: none; } }
@media (max-width: 480px) {
  .prose img.fr, .prose img.fl { float: none; display: block; margin: .75rem auto; max-width: 100%; }
  .tagline { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .navbar, .sidebar, .utility, .skip { display: none !important; }
  .layout { display: block; }
  .prose { border: 0; box-shadow: none; }
}

/* sideways-scroll cue for wide tables on small screens */
@media (max-width: 699px) {
  .table-scroll.t-data::before { content: "Scroll sideways to see more \2192"; display: block; margin-bottom: .35rem; font-size: .8rem; color: var(--muted); text-align: right; }
  .table-scroll.t-data::after { content: ""; position: absolute; z-index: 2; top: 1.6rem; right: 0; bottom: 0; width: 40px; pointer-events: none; border-radius: 0 8px 8px 0; background: linear-gradient(to right, rgba(255, 251, 242, 0), rgba(255, 251, 242, .97)); transition: opacity .2s; }
  .table-scroll.t-data.at-end::after { opacity: 0; }
  .table-scroll.fits::before, .table-scroll.fits::after { display: none; }
}
