@font-face { font-family: 'Bricolage Grotesque Variable'; src: url(/fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url(/fonts/special-elite.woff2) format('woff2'); font-display: swap; }

html { background: #123f33; }
body { margin: 0; background: #123f33; color: #f3f6e8; font-family: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

.site { max-width: 64rem; margin: 0 auto; padding: 0 16px; min-height: 100dvh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.site-header { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 0 24px; }
.site-brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: #f3f6e8; text-decoration: none; }
.site-brand span { color: #ffdd33; }
.site-nav { display: flex; gap: 4px; width: 100%; box-sizing: border-box; padding: 4px; border: 2px solid rgb(243 246 232 / 0.25); border-radius: 12px; }
.site-nav a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: 8px; color: #f3f6e8; font-size: 0.95rem; font-weight: 600; text-align: center; text-decoration: none; line-height: 1.15; }
.site-nav a:hover { color: #ffdd33; }
.site-nav a[aria-current='page'] { background: #f3f6e8; color: #123f33; }
@media (min-width: 720px) {
  .site { padding: 0 24px; }
  .site-header { flex-direction: row; justify-content: space-between; }
  .site-nav { width: auto; }
  .site-nav a { padding: 0 18px; white-space: nowrap; }
}

.site-footer { margin-top: 56px; border-top: 1px solid rgb(243 246 232 / 0.2); padding: 24px 0; font-size: 0.875rem; line-height: 1.6; color: rgb(243 246 232 / 0.85); }
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: #ffdd33; }
.site-credit { margin: 0; font-size: 1rem; font-weight: 600; color: #f3f6e8; }
.site-credit a { color: #ffdd33; }
.site-credit span a { color: inherit; font-weight: 400; }
.site-links { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-links a { display: inline-block; padding: 4px 0; }
.site-note { margin: 12px 0 0; max-width: 68ch; }

:focus-visible { outline: 3px solid #ffdd33; outline-offset: 2px; border-radius: 4px; }

/* Prerendered text that React replaces, and the static pages. */
.page { max-width: 46rem; margin: 0 auto; font-size: 1.0625rem; line-height: 1.55; }
.page.wide { max-width: 56rem; }
.page h1 { overflow-wrap: anywhere; margin: 0; font-size: clamp(2.1rem, 6.4vw, 3.2rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.page h2 { margin: 40px 0 8px; font-size: 1.35rem; line-height: 1.2; font-weight: 700; }
.page p { margin: 12px 0; max-width: 62ch; }
.page a { color: #ffdd33; text-decoration: underline; text-underline-offset: 2px; }
.page .lead { font-size: 1.2rem; line-height: 1.4; }
.page .small { font-size: 0.95rem; color: rgb(243 246 232 / 0.85); }
.page ul, .page ol { padding-left: 1.25em; }
.page li { margin: 6px 0; }
.page ul.bars, .page ol.names, .page ul.names, .page ul.link-grid, .page ol.crumbs { padding-left: 0; }

.crumbs { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.9rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.6; }

.page a.cta { text-decoration: none; }
.cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 8px; background: #ffdd33; color: #123f33 !important; font-weight: 700; text-decoration: none; }
.cta:hover { background: #f3f6e8; }

.sheet-box { background: #f3f6e8; color: #17261f; border-radius: 6px; padding: 8px 20px; margin: 20px 0; box-shadow: 0 18px 40px -18px rgb(0 20 12 / 0.65); }
.sheet-box a { color: #1f3a9e; }

.names { list-style: none; padding: 0; margin: 0; }
.names li { margin: 0; padding: 12px 0; border-top: 1px solid #b9c9b3; }
.names li:first-child { border-top: 0; }
.names .n { display: block; font-family: 'Special Elite', 'Courier New', monospace; font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; }
.names .n a { color: inherit; text-decoration-thickness: 1px; }
.names .m { display: block; margin-top: 3px; font-size: 0.95rem; line-height: 1.35; color: #4a5d53; }

.bars { list-style: none; padding: 0; margin: 12px 0; }
.bars li { margin: 0 0 12px; }
.bars .r > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.bars .r { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 0.95rem; line-height: 1.3; }
.bars .v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars .b { display: block; height: 8px; margin-top: 4px; background: #ffdd33; border-radius: 0 4px 4px 0; }

.cols { display: flex; align-items: flex-end; gap: 2px; height: 150px; margin-top: 12px; }
.cols span { flex: 1; min-height: 1px; background: #ffdd33; border-radius: 3px 3px 0 0; }
.cols-axis { display: flex; justify-content: space-between; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: rgb(243 246 232 / 0.85); margin-top: 4px; }

table.data { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 4px 0; text-align: left; border-top: 1px solid rgb(243 246 232 / 0.2); }
table.data th { border-top: 0; font-weight: 600; }
table.data .num { text-align: right; }
details { margin-top: 10px; font-size: 0.95rem; }
summary { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 28px; }

.link-grid { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 2px 20px; }
.link-grid li { margin: 0; }
.link-grid a { display: block; padding: 7px 0; line-height: 1.25; }
.link-grid.long { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }

.home-h1 { max-width: 42rem; margin: 0 auto 20px; font-size: clamp(1.45rem, 4.4vw, 2.1rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; text-align: center; text-wrap: balance; }
.prerender { min-height: 520px; }

/* The register's charts load after the page, so hold their space to stop the footer jumping. */
#root[data-page='register'] { min-height: 110vh; }
