/* Tokens from brand.py css. ponytail: no webfonts, the guide must work offline */
:root {
  --brand-blue: #1E5CB3; --brand-navy: #0B2D53; --brand-red: #CC0000; --brand-gold: #D4AF37;
  --ink: #222A35; --muted: #5A6579; --paper: #F7F8FB; --border: #E0E6F0; --surface-alt: #E9F2FF;
  --radius-md: 10px; --spacing-md: 16px; --spacing-lg: 24px;
  --font-heading: Montserrat, sans-serif;
  --font-primary: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font-primary); }
main { max-width: 44rem; margin: 0 auto; padding: var(--spacing-lg) var(--spacing-md); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--brand-navy); line-height: 1.2; }
h1 { font-size: 2rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 .4rem; }
a { color: var(--brand-blue); }
.subtitle { color: var(--muted); font-weight: 600; margin: -.7rem 0 1rem; }
li .subtitle { display: block; margin: 0; font-size: .85rem; font-weight: 400; }
.kicker { color: var(--muted); margin: 0; font-weight: 600; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
th, td { border: 1px solid var(--border); padding: .4rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--surface-alt); color: var(--brand-navy); }
blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 4px solid var(--brand-gold); background: #fff; }
aside { margin: 1rem 0; padding: .7rem 1rem; border-radius: var(--radius-md); }
aside.licence { background: var(--surface-alt); border-left: 4px solid var(--brand-blue); }
aside.safety { background: #FDECEC; border-left: 4px solid var(--brand-red); }
aside::before { display: block; font-family: var(--font-heading); font-weight: 700; }
aside.licence::before { content: "Check your licence"; color: var(--brand-navy); }
aside.safety::before { content: "Safety first"; color: var(--brand-red); }
aside.club { background: #FBF5E1; border-left: 4px solid var(--brand-gold); }
aside.club::before { content: "From the club"; color: var(--brand-navy); }
.challenge { background: #fff; border: 2px solid var(--brand-gold); border-radius: var(--radius-md); padding: 0 1rem .4rem; margin-top: 1.4rem; }
.q { margin: 1rem 0; }
.q p { margin: 0 0 .2rem; }
.q ol { margin: 0 0 .4rem; }
details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: .6rem 1rem; margin: .7rem 0; }
summary { font-weight: 600; cursor: pointer; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
footer { margin-top: 2rem; color: var(--muted); font-size: .85rem; }
.cover { font-size: 3rem; margin-top: 30vh; }
.ruled td { height: 2rem; }
@media print {
  body { background: #fff; font-size: 11pt; }
  main { max-width: none; padding: 0; break-before: page; }
  main:first-child { break-before: auto; }
  nav { display: none; }
  .mark { position: absolute; font-size: 1px; color: #fff; }
  main.toc { font-size: 9.5pt; line-height: 1.3; }
  main.toc h1 { margin-bottom: .3rem; }
  main.toc h2 { font-size: .95rem; margin: .45rem 0 .1rem; }
  main.toc ul { list-style: none; margin: 0; padding: 0; }
  main.toc a { display: flex; gap: .4rem; color: var(--ink); text-decoration: none; }
  main.toc .subtitle { margin: 0; font-weight: 400; }
  main.toc .pg { margin-left: auto; }
  main.sheet { font-size: 9.5pt; line-height: 1.35; }
  main.sheet h1 { font-size: 1.5rem; margin-bottom: .4rem; }
  main.sheet .subtitle { margin: -.3rem 0 .3rem; font-size: .85rem; }
  main.sheet p { margin: .25rem 0; }
  main.sheet h2 { margin: .7rem 0 .2rem; font-size: 1.05rem; }
  main.sheet table { margin: .4rem 0; }
  main.sheet th, main.sheet td { padding: .15rem .4rem; }
  main.sheet .ruled td { height: 1.45rem; }
  h1, h2, h3 { break-after: avoid; }
  aside, .q, tr { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: var(--muted); }
}
@page { size: A4; margin: 18mm; @bottom-center { content: counter(page); font: 9pt var(--font-primary); color: #5A6579; } }
@page :first { @bottom-center { content: none; } }
