@font-face { font-family: 'Source Serif 4'; src: url('../fonts/source-serif-4-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/source-serif-4-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/source-serif-4-latin-600-normal.woff2') format('woff2'); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../fonts/source-serif-4-latin-600-italic.woff2') format('woff2'); font-weight: 600 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Charter'; src: url('../fonts/charter_regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Charter'; src: url('../fonts/charter_italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Charter'; src: url('../fonts/charter_bold.woff2') format('woff2'); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600 700; font-style: normal; font-display: swap; }

/* ---------- Almanac (default): printed pace-chart page ---------- */
.theme-almanac body { background: #f5efe0; color: #1a1a1a; font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; line-height: 1.5; }
.theme-almanac .site-name { font-variant: small-caps; letter-spacing: 1px; font-size: 30px; border-top: 4px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; padding: 4px 0; }
.theme-almanac .tagline { font-style: italic; font-size: 15px; }
.theme-almanac a { color: #1a1a1a; }
.theme-almanac nav.main, .theme-almanac .styles { font-variant: small-caps; font-size: 15px; }
.theme-almanac main h1, .theme-almanac h2 { font-variant: small-caps; letter-spacing: .5px; font-weight: normal; font-size: 22px; border-bottom: 1px solid #1a1a1a; }
.theme-almanac input, .theme-almanac select { background: #fffdf6; border: 1px solid #1a1a1a; color: #1a1a1a; }
.theme-almanac button { background: #1a1a1a; color: #f5efe0; border: 1px solid #1a1a1a; font-variant: small-caps; }
.theme-almanac table.results th { font-variant: small-caps; font-weight: normal; border-bottom: 1px solid #1a1a1a; border-top: 2px solid #1a1a1a; }
.theme-almanac table.results tr:nth-child(even) td { background: #ebe3cf; }
.theme-almanac table.results { border-bottom: 2px solid #1a1a1a; }
.theme-almanac .error { color: #8b1a1a; font-style: italic; }
.theme-almanac .ad-slot { border: 1px dashed #8a8270; color: #8a8270; }
.theme-almanac footer { border-top: 1px solid #1a1a1a; }
.theme-almanac pre.eq { background: #ebe3cf; font-family: 'Source Serif 4', Georgia, serif; }

/* ---------- Classic: early-2000s reference site ---------- */
.theme-classic body { background: #fff; color: #111; font-family: Charter, 'Bitstream Charter', Georgia, serif; font-size: 18px; line-height: 1.5; }
.theme-classic .site-name { font-size: 28px; }
.theme-classic a { color: #00c; }
.theme-classic a:visited { color: #551a8b; }
.theme-classic header { border-bottom: 1px solid #888; padding-bottom: 6px; }
.theme-classic main h1, .theme-classic h2 { font-size: 21px; }
.theme-classic button { background: #e4e4e4; border: 2px outset #ccc; color: #000; }
.theme-classic button:active { border-style: inset; }
.theme-classic input, .theme-classic select { border: 1px solid #888; background: #fff; color: #000; }
.theme-classic table.results { border: 1px solid #888; }
.theme-classic table.results th, .theme-classic table.results td { border: 1px solid #888; }
.theme-classic table.results th { background: #dde; }
.theme-classic .error { color: #c00; }
.theme-classic .ad-slot { border: 1px solid #ccc; background: #f4f4f4; color: #777; }
.theme-classic footer { border-top: 1px solid #888; }
.theme-classic pre.eq { background: #f4f4f4; border: 1px solid #ccc; }

/* ---------- Results sheet: track-meet printout ---------- */
.theme-results body { background: #fdfdf6; color: #111; font-family: 'IBM Plex Mono', Menlo, Consolas, monospace; font-size: 15px; line-height: 1.55; }
.theme-results .site-name { font-size: 22px; text-transform: uppercase; }
.theme-results header { border-bottom: 3px double #111; padding-bottom: 6px; }
.theme-results a { color: #111; }
.theme-results main h1, .theme-results h2 { font-size: 17px; text-transform: uppercase; border-bottom: 1px dashed #111; font-weight: bold; }
.theme-results input, .theme-results select, .theme-results button { font-family: inherit; background: #fdfdf6; border: 1px solid #111; color: #111; }
.theme-results button { text-transform: uppercase; }
.theme-results table.results th { border-bottom: 1px dashed #111; text-transform: uppercase; }
.theme-results table.results { border-top: 1px dashed #111; border-bottom: 1px dashed #111; }
.theme-results .error { color: #111; font-weight: bold; }
.theme-results .error::before { content: '** '; }
.theme-results .ad-slot { border: 1px dashed #999; color: #777; }
.theme-results footer { border-top: 3px double #111; }
.theme-results pre.eq { border: 1px dashed #111; font-family: inherit; }
.theme-classic input, .theme-classic select, .theme-classic button { font-family: Verdana, Tahoma, 'DejaVu Sans', sans-serif; font-size: 15px; }
/* Style switcher: buttons drawn as plain links in every style */
html .page .styles button { all: unset; cursor: pointer; text-decoration: underline; white-space: nowrap; color: inherit; font: inherit; }
html .page .styles button.active { text-decoration: none; font-weight: 600; cursor: default; }
html .page .styles button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
html.theme-classic .page .styles button { color: #00c; }
html.theme-classic .page .styles button.active { color: #000; }
@media (max-width: 480px) { .theme-classic table.results { font-size: 15px; } }
