/* Salmon Run results. Palette: spawning sockeye in a glacial river; every green is the WWDXC logo green
   (#00843E, oklch hue 150.9) at different lightness. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/atkinson-hyperlegible-latin-400-normal.d64ba838ef.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/atkinson-hyperlegible-latin-400-italic.bc8825fd43.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/atkinson-hyperlegible-latin-700-normal.140e2bd25a.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/barlow-condensed-latin-600-normal.215a93c696.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/barlow-condensed-latin-700-normal.3787a5a419.woff2") format("woff2"); }

:root {
  --glacier: #F3F6F5;      /* page */
  --paper: #FBFCFC;        /* inputs, popups */
  --fir: #0E1F12;          /* ink: WWDXC green near black, 15.8:1 on glacier */
  --muted: #52625C;        /* 5.9:1 */
  --sockeye: #C0262D;      /* winners, 5.4:1 */
  --wwdxc: #00843E;        /* the WWDXC logo green: rules, bars, fills (4.4:1, graphics only) */
  --kype: #076D33;         /* WWDXC green for text, 6.0:1 */
  --slate: #3B6B85;        /* links, out of state, 5.3:1 */
  --gravel: #D5DDD9;       /* rules */
  --shoal: #E6ECE9;        /* hover / selected rows */
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --glacier: #14211C; --paper: #1A2A24; --fir: #E3EBE7; --muted: #9AABA4; --sockeye: #F06A6E;
    --wwdxc: #4FBF73; --kype: #6DD088; --slate: #8CBEDA; --gravel: #2F403A; --shoal: #22342D; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--glacier); color: var(--fir);
  font: 400 1.0625rem/1.5 var(--body);
}
a { color: var(--slate); text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; border-radius: 2px; }
abbr[title] { text-decoration: underline dotted 1px; text-underline-offset: 0.2em; cursor: help; }
code { font-size: 0.95em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--fir); color: var(--glacier); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 75ch; }

/* ---- header ---- */
.site-head { border-bottom: 1px solid var(--gravel); }
.site-head-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { font: 700 1.6rem/1 var(--display); color: var(--fir); text-decoration: none; letter-spacing: 0.01em;
         padding-bottom: 0.15em; }  /* Barlow's capitals sit low in the line box: lift them onto the nav's centre line */
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: var(--fir); text-decoration: none; padding: 0.25rem 0; border-block: 2px solid transparent; white-space: nowrap; }  /* top border balances the underline */
.site-nav a:hover { border-bottom-color: var(--gravel); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--sockeye); }
.site-head .search { margin-left: auto; width: min(100%, 20rem); }

/* ---- search ---- */
.search { position: relative; }
.search label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.search-box { position: relative; display: flex; }
.search input {
  flex: 1; min-width: 0; font: inherit; color: var(--fir); background: var(--paper);
  border: 1px solid var(--muted); border-right: 0; border-radius: 4px 0 0 4px; padding: 0.45rem 0.7rem;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search button {
  font: inherit; font-weight: 700; color: var(--glacier); background: var(--fir);
  border: 1px solid var(--fir); border-radius: 0 4px 4px 0; padding: 0.45rem 0.9rem; cursor: pointer;
}
.search-big input { font: 700 1.75rem/1.1 var(--display); letter-spacing: 0.02em; padding: 0.55rem 0.9rem; }
.search-big input::placeholder { font-weight: 600; letter-spacing: 0.01em; }
.search-big button { font-size: 1.1rem; padding: 0.55rem 1.25rem; }
.search-big label { font-size: 1.1rem; }
.search-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 2px 0 0; padding: 0.25rem 0;
  list-style: none; background: var(--paper); border: 1px solid var(--muted); border-radius: 4px;
  max-height: min(24rem, 60vh); overflow-y: auto;
}
.search-list li { padding: 0.4rem 0.75rem; cursor: pointer; display: flex; gap: 0.75rem; align-items: baseline; flex-wrap: wrap; }
.search-list li[aria-selected="true"] { background: var(--shoal); box-shadow: inset 3px 0 0 var(--slate); }
.search-list .opt-call { font: 700 1.2rem/1.2 var(--display); letter-spacing: 0.02em; }
.search-list .opt-call mark { background: none; color: var(--sockeye); }
.search-list .opt-meta { color: var(--muted); font-size: 0.875rem; }
.search-list .opt-none { color: var(--muted); cursor: default; }
.home-search { max-width: 36rem; margin: 1.25rem 0 1rem; }
.year-sum { max-width: 40rem; margin: 0.75rem 0 0; }

/* ---- headings ---- */
h1, h2, h3 { line-height: 1.15; }
.display { font: 700 clamp(2.5rem, 7vw, 4.25rem)/0.95 var(--display); letter-spacing: 0.005em; margin: 2rem 0 0.5rem; }
h2 { font: 600 clamp(1.6rem, 3.5vw, 2.1rem)/1.1 var(--display); margin: 3rem 0 1rem; padding-top: 0.75rem; border-top: 2px solid var(--fir); }
h3 { font-size: 1.125rem; font-weight: 700; margin: 2rem 0 0.6rem; }
h3 .code { font-weight: 400; color: var(--muted); font-size: 0.875rem; margin-left: 0.35rem; white-space: nowrap; }
#washington > h2 { border-top-color: var(--wwdxc); }
#non-washington > h2, #dx > h2 { border-top-color: var(--slate); }
.rec-group.tone-wa > h2 { border-top-color: var(--wwdxc); }
.rec-group.tone-nonwa > h2 { border-top-color: var(--slate); }
.rec-group > h2 + p { margin-top: -0.4rem; }
.rec-cat .rec-region { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--muted); }

/* ---- year page ---- */
.year-head .status { margin: 0 0 0.75rem; color: var(--muted); }
.status-preliminary { color: var(--sockeye) !important; font-weight: 700; }
.lede p { margin: 0.5rem 0; }
.coverage { color: var(--muted); }
.jump { margin: 1.5rem 0 0; }
.jump ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; list-style: none; padding: 0; margin: 0; }

/* The memorable thing: the plaque board, calls set large like a QSL card. */
.plaques { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1.75rem 2rem; }
.plaques li { border-top: 1px solid var(--gravel); padding-top: 0.6rem; }
.plaque-call { display: inline-block; font: 700 clamp(2.6rem, 6vw, 3.4rem)/0.95 var(--display); color: var(--sockeye); text-decoration: none; letter-spacing: 0.01em; }
.plaque-call:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.plaque-award { font-weight: 700; margin: 0.35rem 0 0.15rem; }
.plaque-meta { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.plaque-meta .score { color: var(--fir); font-variant-numeric: tabular-nums; }

/* ---- tables ---- */
.scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.scroll:focus-visible { outline-offset: 0; }
table.results { border-collapse: collapse; font-size: 0.96875rem; min-width: 100%; }
.results th, .results td { padding: 0.4rem 0.75rem 0.4rem 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--gravel); }
.results th:last-child, .results td:last-child { padding-right: 0; }
.results thead th { font-weight: 700; border-bottom: 2px solid var(--fir); white-space: nowrap; vertical-align: bottom; }
.results tbody th { font-weight: 400; }
.results .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.results .call { white-space: nowrap; font-weight: 700; }
.results .call a { color: var(--fir); }
.results .call a:hover { color: var(--slate); }
.results .ops { font-size: 0.9375rem; max-width: 22rem; }
.results .ops a, .results .ops .same { white-space: nowrap; }
.results .same { color: var(--muted); }
.results .club { min-width: 12rem; }
.results .place { color: var(--muted); }
.results tr.first .place { color: var(--sockeye); font-weight: 700; }
.results tbody tr:hover { background: var(--shoal); }
.results abbr[title] { text-decoration: none; }
.results .cat-code { white-space: nowrap; }
table.callres { min-width: 0; }
.results .note { display: block; font-size: 0.875rem; color: var(--muted); }
.results .awards { min-width: 12rem; font-size: 0.9375rem; }
.results .certs a { margin-right: 0.5rem; }
.cat { margin-bottom: 1.25rem; }
/* Category tables share fixed column widths so they line up down the page. */
table.cat-table { table-layout: fixed; width: 100%; min-width: 58rem; }
.cat-table .w-place { width: 4rem; }
.cat-table .w-call { width: 7.5rem; }
.cat-table .w-loc { width: 6.5rem; }
.cat-table .w-score { width: 6.5rem; }
.cat-table .w-n { width: 4.5rem; }
.cat-table .w-cat { width: 14rem; }
.cat-table .place { padding-right: 1.25rem; }
.cat-table .club { min-width: 0; }
.cat-table .call { overflow-wrap: anywhere; white-space: normal; }
details.more > summary, .about details > summary {
  cursor: pointer; color: var(--slate); padding: 0.5rem 0; width: fit-content; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em;
}
details.more > summary::marker { color: var(--muted); }
details.more .when-open, details.more[open] .when-closed { display: none; }
details.more[open] .when-open { display: inline; }
/* With :has(), the full table replaces the top-N table instead of repeating its first rows. */
.cat:has(> details.more[open]) > .top, .clubs:has(> details.more[open]) > .top { display: none; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 0 3rem; }
.two-col h3 { margin-top: 0.5rem; }
.clubtable th[scope="row"] { min-width: 14rem; }

/* ---- every-entry page ---- */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); gap: 0.75rem 1rem; align-items: end; margin: 1.5rem 0 0.5rem; max-width: 64rem; }
.filters[hidden] { display: none; }
.field label { display: block; font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.2rem; }
.field input, .field select { font: inherit; color: var(--fir); background: var(--paper); border: 1px solid var(--muted); border-radius: 4px; padding: 0.35rem 0.5rem; max-width: 100%; }
.field input, .field select { width: 100%; height: 2.5rem; }
.field-reset button { font: inherit; background: none; border: 0; color: var(--slate); text-decoration: underline; cursor: pointer; padding: 0.35rem 0; }
.count { color: var(--muted); margin: 0.5rem 0; }
th[aria-sort] button, .results thead button {
  font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; white-space: nowrap;
}
.results thead button::after { content: ""; display: inline-block; width: 0.9em; color: var(--muted); }
.results thead th[aria-sort="ascending"] button::after { content: " \2191"; color: var(--fir); }
.results thead th[aria-sort="descending"] button::after { content: " \2193"; color: var(--fir); }
tr[hidden] { display: none; }

/* ---- call pages ---- */
.call-head { margin: 2.25rem 0 0.5rem; }
.call-display {
  font: 700 clamp(4rem, 17vw, 9rem)/0.85 var(--display); letter-spacing: 0.01em; margin: 0 0 1rem;
  overflow-wrap: anywhere; padding-bottom: 0.6rem; border-bottom: 6px solid var(--sockeye); width: fit-content; max-width: 100%;
}
.call-head p { margin: 0.35rem 0; }
.callres td.call { font-weight: 700; }
/* Score-by-year columns: HTML, so labels stay legible at phone widths. */
.strip { margin: 1.75rem 0 0; max-width: 44rem; }
.strip figcaption { font-weight: 700; margin-bottom: 0.75rem; }
.strip-plot { position: relative; height: 12rem; margin-left: 2.75rem; }
.strip-ticks { position: absolute; left: 0; right: 0; top: 1.5rem; bottom: 1.6rem; }
.strip-tick { position: absolute; left: 0; right: 0; border-bottom: 1px solid var(--gravel); }
.strip-tick span { position: absolute; right: calc(100% + 0.4rem); bottom: -0.55em; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.strip-cols { position: absolute; left: 0; right: 0; top: 1.5rem; bottom: 0; display: flex; }
.strip-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.strip-bar-area { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.strip-bar { position: relative; width: min(24px, 60%); background: var(--slate); border-radius: 4px 4px 0 0; min-height: 2px; }
.strip-col:hover .strip-bar { background: var(--fir); }
.strip-val { background: var(--glacier); padding: 0 2px; position: absolute; bottom: calc(100% + 0.2rem); left: 50%; transform: translateX(-50%); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strip-yr { height: 1.6rem; line-height: 1.6rem; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.strip-col.empty .strip-yr { opacity: 0.65; }

/* ---- map ---- */
.map-frame { position: relative; aspect-ratio: 16 / 10; max-height: 80vh; width: 100%; border: 1px solid var(--gravel); background: var(--shoal); display: flex; flex-direction: column; gap: 0.75rem; align-items: center; justify-content: center; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load { font: inherit; font-weight: 700; color: var(--glacier); background: var(--fir); border: 0; border-radius: 4px; padding: 0.55rem 1.1rem; cursor: pointer; }
.map-frame.loaded > .map-load { display: none; }
.map-lede { margin-top: 1.5rem; }
/* square, or shorter where the window is: header, the line of text above and a margin leave 10.5rem */
.map-frame-page { max-width: 75ch; aspect-ratio: 1 / 1; max-height: calc(100vh - 10.5rem); max-height: calc(100svh - 10.5rem); min-height: 22rem; }
@media (max-width: 40rem) { .map-frame-page { aspect-ratio: 3 / 4; } }
.map-actions { margin: 0.75rem 0 0; }
.map-full { font: inherit; font-weight: 700; color: var(--slate); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.map-close { position: absolute; top: 0.4rem; right: 0.75rem; z-index: 2; font: inherit; font-size: 0.875rem; font-weight: 700; color: var(--fir); background: var(--glacier); border: 0; border-radius: 4px; padding: 0.3rem 0.75rem; cursor: pointer; }
.map-close[hidden] { display: none; }
.map-frame:fullscreen { aspect-ratio: auto; max-height: none; max-width: none; border: 0; background: var(--fir); }
.map-frame.map-max { position: fixed; inset: 0; z-index: 1000; aspect-ratio: auto; max-height: none; max-width: none; border: 0; background: var(--fir); }
/* fullscreen: a bar above the map holds the close button, so it covers none of the map's own controls */
.map-frame:fullscreen iframe, .map-frame.map-max iframe { top: 2.6rem; height: calc(100% - 2.6rem); }
html.map-max-open { overflow: hidden; }
@media (max-width: 40rem) { .map-frame { aspect-ratio: 3 / 4; } }

/* ---- footer ---- */
.site-foot { margin-top: 4rem; border-top: 1px solid var(--gravel); color: var(--muted); font-size: 0.9375rem; }
.site-foot p { max-width: 75ch; }
.about { margin-top: 1rem; }
.about ul { padding-left: 1.25rem; }

@media (max-width: 60rem) {
  /* Keep place and callsign in view while a wide table scrolls sideways. */
  .has-place .place, .has-place .call, .has-place thead th:nth-child(-n+2) { position: sticky; z-index: 1; background: var(--glacier); }
  .has-place .place, .has-place thead th:first-child { left: 0; }
  .has-place .call, .has-place thead th:nth-child(2) { left: 4rem; }
  .has-place tbody tr:hover .place, .has-place tbody tr:hover .call { background: var(--shoal); }
}
@media (max-width: 40rem) {
  .cat-table .w-place { width: 2.75rem; }
  .cat-table .place { padding-right: 0.6rem; }
  .has-place .call, .has-place thead th:nth-child(2) { left: 2.75rem; }
  .has-place .call { box-shadow: 1px 0 0 var(--gravel); }
}
@media (max-width: 40rem) { .map-frame { aspect-ratio: 3 / 4; } }

/* ---- footer ---- */
.site-foot { margin-top: 4rem; border-top: 1px solid var(--gravel); color: var(--muted); font-size: 0.9375rem; }
.site-foot p { max-width: 75ch; }
.about { margin-top: 1rem; }
.about ul { padding-left: 1.25rem; }

@media (max-width: 60rem) {
  /* Keep place and callsign in view while a wide table scrolls sideways. */
  .cat-table .place, .cat-table .call { position: sticky; z-index: 1; background: var(--glacier); }
  .cat-table .place { left: 0; }
  .cat-table tr > .place + .call { left: 4rem; }
  .cat-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--glacier); }
  .cat-table thead th:nth-child(2) { position: sticky; left: 4rem; z-index: 1; background: var(--glacier); }
  .cat-table tbody tr:hover .place, .cat-table tbody tr:hover .call { background: var(--shoal); }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .cat-table tr > .place + .call, .cat-table thead th:nth-child(2) { left: 2.75rem; }  /* the place column is 2.75rem here */
  .filters { grid-template-columns: 1fr 1fr; }
  .site-head-inner { gap: 0.5rem 1.25rem; }
  .site-head .search { margin-left: 0; width: 100%; }
  .search-big input { font-size: 1.5rem; }
  .results th, .results td { padding-right: 0.6rem; }
}
@media print {
  .site-head, .jump,   details.more { display: block; }
}

/* ---- search page ---- */
.search-page-list { list-style: none; padding: 0; margin: 1rem 0; columns: 18rem auto; column-gap: 2rem; }
.search-page-list li { break-inside: avoid; padding: 0.3rem 0; border-bottom: 1px solid var(--gravel); }
.search-page-list .opt-call { font: 700 1.35rem/1.2 var(--display); letter-spacing: 0.02em; margin-right: 0.5rem; }
.search-page-list mark { background: none; color: var(--sockeye); }
.search-page-list .opt-meta { color: var(--muted); font-size: 0.9375rem; }

/* ==== county maps: sitegen/counties.py, js/countymap.js (year choropleth, all-entries filter, /county/, /counties/) ====
   Sequential olive ramp (kype family), validated with the dataviz ordinal check: one hue (20 deg spread), monotone
   OKLCH lightness, adjacent dL >= 0.06, light end >= 2:1 on glacier (light) / dark end >= 2:1 on #14211C (dark).
   No-entry counties are hatched gray, so "none" never relies on colour alone. Label ink per step by APCA. */
:root {
  --cm-0: #E3E7E5; --cm-hatch: #B5C0BA;
  --cm-1: #C4F7CF; --cm-2: #74CF8C; --cm-3: #2EA257; --cm-4: #0F7036; --cm-5: #04411D;  /* WWDXC hue, OKLCH L .93-.33 */
  --cm-ink-0: var(--muted); --cm-ink-1: var(--fir); --cm-ink-2: var(--fir); --cm-ink-3: var(--fir); --cm-ink-4: #FFFFFF; --cm-ink-5: #FFFFFF;
  --cm-sel: #3B6B85; --cm-sel-ink: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cm-0: #262E2A; --cm-hatch: #3E4944;
    --cm-1: #163920; --cm-2: #24673A; --cm-3: #379957; --cm-4: #66CA82; --cm-5: #BBF1C6;
    --cm-ink-0: var(--muted); --cm-ink-1: #E3EBE7; --cm-ink-2: #E3EBE7; --cm-ink-3: #0E1713; --cm-ink-4: #0E1713; --cm-ink-5: #0E1713;
    --cm-sel: #8CBEDA; --cm-sel-ink: #0E1713;
  }
}
.cm-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr); gap: 1rem 2.5rem; align-items: start; }
.cm-fig { margin: 0; }
.cm-wrap { position: relative; }
.cm { display: block; width: 100%; height: auto; overflow: visible; }
.cm-c { stroke: var(--glacier); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cm-c.cm-0 { fill: url(#cm-hatch); }
.cm-hatch-bg { fill: var(--cm-0); }
.cm-hatch-ln { stroke: var(--cm-hatch); stroke-width: 2.5; }
.cm-c.cm-1 { fill: var(--cm-1); } .cm-c.cm-2 { fill: var(--cm-2); } .cm-c.cm-3 { fill: var(--cm-3); }
.cm-c.cm-4 { fill: var(--cm-4); } .cm-c.cm-5 { fill: var(--cm-5); }
.cm-c.cm-sel { fill: var(--cm-sel); }
.cm-c.cm-here { fill: var(--wwdxc); }
.cm-c.cm-other { fill: var(--gravel); }
.cm-l, .cm-lt { font: 600 17px/1 var(--display); letter-spacing: 0.03em; text-anchor: middle; pointer-events: none; }
.cm-l { display: none; }
.cm-l.fit-l { display: inline; }
.cm-l.fit-m { font-size: 13px; }
.cm-l.cm-0 { fill: var(--cm-ink-0); } .cm-l.cm-1 { fill: var(--cm-ink-1); } .cm-l.cm-2 { fill: var(--cm-ink-2); }
.cm-l.cm-3 { fill: var(--cm-ink-3); } .cm-l.cm-4 { fill: var(--cm-ink-4); } .cm-l.cm-5 { fill: var(--cm-ink-5); }
.cm-l.cm-sel { fill: var(--cm-sel-ink); font-weight: 700; }
.cm-lt { fill: var(--fir); }
.cm-lead line { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cm-js .cm-lead { cursor: pointer; }
.cm-js .cm-lead .cm-lt { pointer-events: auto; }
.cm-static .cm-labels { display: none; }
.cm a, .cm [role="button"] { cursor: pointer; }
.cm a:focus-visible, .cm [role="button"]:focus-visible { outline: none; }
/* Without JavaScript the link's own outline shows focus; with it, countymap.js draws the outline on top. */
.cm:not(.cm-js) a:focus-visible .cm-c, .cm:not(.cm-js) a:hover .cm-c { stroke: var(--fir); stroke-width: 3; }
.cm-ring { fill: none; pointer-events: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cm-ring-halo { stroke: var(--glacier); stroke-width: 5; }
.cm-ring-line { stroke: var(--fir); stroke-width: 2; }
.cm-ring-focus.cm-ring-halo { stroke-width: 6.5; }
.cm-ring-focus.cm-ring-line { stroke: var(--fir); stroke-width: 3.5; }
.cm-tip {
  position: absolute; z-index: 5; pointer-events: none; background: var(--paper); color: var(--fir);
  border: 1px solid var(--muted); border-radius: 4px; padding: 0.35rem 0.6rem; font-size: 0.875rem; line-height: 1.35;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15); white-space: nowrap;
}
.cm-tip[hidden] { display: none; }
.cm-tip strong, .cm-tip span { display: block; }
.cm-tip strong { font-size: 0.9375rem; }
.cm-side > :first-child { margin-top: 0; }
.cm-legend { margin: 1rem 0; }
.cm-legend-h { font-weight: 700; margin: 0 0 0.35rem; font-size: 0.9375rem; }
.cm-legend ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.cm-legend-row ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.cm-sw { display: inline-block; width: 1.5rem; height: 1rem; border-radius: 3px; vertical-align: -0.15em; margin-right: 0.45rem; }
.cm-sw-0 { background: repeating-linear-gradient(-45deg, var(--cm-hatch) 0 2px, var(--cm-0) 2px 5px); }
.cm-sw-1 { background: var(--cm-1); } .cm-sw-2 { background: var(--cm-2); } .cm-sw-3 { background: var(--cm-3); }
.cm-sw-4 { background: var(--cm-4); } .cm-sw-5 { background: var(--cm-5); } .cm-sw-sel { background: var(--cm-sel); }
table.cty-table { min-width: min(100%, 40rem); }
.cty-table th[scope="row"] { min-width: 11rem; }
/* all-entries filter */
.cm-filter { margin: 0.5rem 0 0.75rem; max-width: 64rem; }
.cm-filter[hidden] { display: none; }
.cm-filter > summary { cursor: pointer; color: var(--slate); padding: 0.4rem 0; width: fit-content; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.cm-filter > p { margin: 0.25rem 0 0.5rem; }
.cm-wrap-filter { max-width: 42rem; }
.cm-status { margin: 0.5rem 0 0; min-height: 1.5em; }
.linkish { font: inherit; background: none; border: 0; color: var(--slate); text-decoration: underline; cursor: pointer; padding: 0 0.25rem; }
/* county pages */
.county-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 22rem); gap: 1rem 3rem; align-items: end; }
.county-kicker { font: 600 1.15rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--kype); margin: 2.25rem 0 0; }
.county-head .display { margin-top: 0.35rem; padding-bottom: 0.5rem; border-bottom: 6px solid var(--wwdxc); width: fit-content; max-width: 100%; }
.county-loc { margin: 0; }
.strip-bar-wa { background: var(--wwdxc); }
.strip-col:hover .strip-bar-wa { background: var(--fir); }
.cty-entries tbody + tbody { border-top: 2px solid var(--gravel); }
.cty-entries .cty-year { vertical-align: top; font-weight: 700; }
.cty-index td:nth-child(3) { font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 60rem) {
  .cm-layout { grid-template-columns: 1fr; }
  .cm-legend ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
}
@media (max-width: 40rem) {
  /* Map about 350px wide: bigger labels where they fit, none elsewhere (the tooltip and the table have them). */
  .cm-l, .cm-lt, .cm-l.fit-m { font-size: 30px; }
  .cm-l.fit-l { display: none; }
  .cm-l.fit-s { display: inline; }
  .cm-lead { display: none; }
  .county-head { grid-template-columns: 1fr; }
  .county-loc { max-width: 15rem; }
}
@media print {
  .cm-filter { display: none; }
}
/* ==== end county maps ==== */

/* ==== clubs (sitegen/clubs.py, clubs.html, club.html) ==== */
.winner { color: var(--sockeye); font-weight: 700; }
.club-head { margin: 2rem 0 0.5rem; }
.club-head .eyebrow { margin: 0; font-size: 0.9375rem; }
.club-display { margin-top: 0.25rem; padding-bottom: 0.5rem; border-bottom: 6px solid var(--fir); width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.club-head p { margin: 0.35rem 0; }
.clubs-index { min-width: 0; }
.clubs-index .club-name { min-width: 14rem; font-weight: 700; }
.clubs-index td .muted { font-size: 0.875rem; }
.h-link { color: inherit; text-decoration: none; }
.h-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.search-list .opt-kind, .search-page-list .opt-kind {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--gravel); border-radius: 3px; padding: 0 0.3rem; align-self: center;
}
.search-list .opt-club { font-weight: 700; }
.search-list .opt-club mark, .search-page-list .opt-club mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; }
.search-page-list .opt-club { font-weight: 700; margin-right: 0.5rem; }
.search-page-list .is-club .opt-kind { margin-right: 0.5rem; }
.club-years .place { white-space: normal; }
@media (max-width: 40rem) {
  .clubs-index { font-size: 0.9375rem; }
  .clubs-index .club-name { min-width: 0; }
  .clubs-index th, .clubs-index td { padding-right: 0.45rem; }
  .clubs-index thead th, .clubs-index thead button { white-space: normal; }
  .clubs-index th:nth-child(2), .clubs-index td:nth-child(2) { display: none; }  /* region: still a filter */
  .clubs-index td .muted { display: none; }
}
/* ==== end clubs ==== */

/* Published results are final: labels we add beside published text, never in place of it. */
.badge {
  display: inline-block; font-family: var(--body); font-size: 0.75rem; font-weight: 400; line-height: 1.3;
  letter-spacing: 0; color: var(--fir); background: var(--shoal); border: 1px solid var(--gravel);
  border-radius: 3px; padding: 0 0.3rem; vertical-align: 0.1em; white-space: nowrap;
}
/* Places this site computed ('*', footnoted by .places-note) and a DX station's DX standing under its place. */
.pl-c { color: var(--muted); margin-left: 0.05em; }
.pl-dx { display: inline-block; white-space: nowrap; }
.club-sum td { border-top: 1px dashed var(--gravel); }
.cat-modern { margin-top: -0.35rem; }
.cat-modern .code { margin-left: 0.35rem; white-space: nowrap; }
.call-note { color: var(--muted); }

/* ---------------------------------------------------------------- glass artwork
   Each year's pint-glass art (tools/extract_glass_art.py) is the glass's etching, used as a CSS mask and drawn in
   deep WWDXC green straight on the page: no panel, no caption. It never sets the height of what sits beside it. */
:root { --glass-ink: #05411D; }
@media (prefers-color-scheme: dark) { :root { --glass-ink: #6DD088; } }
.glass-art {
  width: 100%; height: 100%; background: var(--glass-ink);
  -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat;
}

/* Year header: the glass fills the height of the heading block beside it (height 0, min-height 100% of its
   grid area), so it scales to the text and never pushes the page down. */
.year-head.has-glass { display: grid; grid-template-columns: minmax(0, 1fr) clamp(7rem, 15vw, 11rem);
  column-gap: 2.5rem; }
.year-head.has-glass > .year-head-main { grid-area: 1 / 1; }
.year-head.has-glass > .year-head-more { grid-area: 2 / 1; }
.year-head.has-glass > .glass { grid-area: 1 / 2 / 3 / 3; height: 0; min-height: 100%; padding: 1rem 0 0.25rem; box-sizing: border-box; }
.year-head.has-glass > .glass .glass-art { -webkit-mask-position: right top; mask-position: right top; }

/* Sweeps: the Clean Sweep glass floats beside the tables' first lines. */
.glass-sweep { float: right; width: 6.5rem; height: 6rem; margin: 0 0 0.5rem 1.5rem; }
#sweeps::after { content: ""; display: table; clear: both; }

.year-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.year-num { display: inline-block; min-width: 2.7em; }   /* digits differ in width; keep the glasses in a column */
.glass-thumb { display: inline-block; width: 1.6rem; height: 1.6rem; }

@media (max-width: 40rem) {
  .year-head.has-glass { grid-template-columns: minmax(0, 1fr) 5rem; column-gap: 1rem; }
  .year-head.has-glass > .glass { grid-area: 1 / 2 / 2 / 3; }
  .year-head.has-glass > .year-head-more { grid-column: 1 / -1; }
  .glass-sweep { width: 4.5rem; height: 4.25rem; }
}

/* ==== categories (sitegen/categories.py, categories.html, category.html) ==== */
.results .cat-link { color: inherit; text-decoration: underline dotted 1px; text-underline-offset: 0.2em; }
.results .cat-link:hover { color: var(--slate); text-decoration: underline solid 1px; }
.cat-all { white-space: nowrap; margin-left: 0.35rem; }
.cat-head { margin: 2rem 0 0.5rem; }
.cat-head .eyebrow { margin: 0; font-size: 0.9375rem; }
.cat-display { margin-top: 0.25rem; padding-bottom: 0.5rem; border-bottom: 6px solid var(--fir); width: fit-content; max-width: 100%;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1; overflow-wrap: anywhere; }
.cat-region-wa .cat-display { border-bottom-color: var(--wwdxc); }
.cat-region-nonwa .cat-display, .cat-region-dx .cat-display { border-bottom-color: var(--slate); }
.cat-codeline { margin: 0.6rem 0 0.75rem; }
.cat-codeline .code { font: 600 1.35rem/1 var(--display); letter-spacing: 0.04em; }
.cat-region-wa .cat-codeline .code { color: var(--kype); }
.cat-head p { margin: 0.35rem 0; }
.pubas { white-space: nowrap; }
.strips { gap: 0 3rem; }
.strips .strip { max-width: none; }
.cat-year h3 { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.4rem; }
.cat-year h3 a { font: 700 1.6rem/1 var(--display); letter-spacing: 0.01em; }
.cat-year-n { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.cat-year .cat-modern { margin-top: 0; }
.results.best { min-width: min(100%, 40rem); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 3rem; }
.related h3 { margin-top: 0.75rem; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 0.25rem 0; border-bottom: 1px solid var(--gravel); }
.related .code, .cats-index .code { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; margin-left: 0.25rem; }
.related .muted { font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.related-meta { display: block; }
.related .related-meta .code { margin-left: 0; }
.cats-index { min-width: 0; }
.cats-index .cat-name { min-width: 16rem; }
.cats-index .cat-name a { font-weight: 700; }
.cats-index tr.group-head th { font: 600 1.35rem/1.1 var(--display); padding-top: 1.5rem; border-bottom: 2px solid var(--fir); }
.cats-index .cat-group-wa tr.group-head th { border-bottom-color: var(--wwdxc); }
.cats-index .cat-group-nonwa tr.group-head th, .cats-index .cat-group-dx tr.group-head th { border-bottom-color: var(--slate); }
.cats-index tbody tr.group-head:hover { background: none; }
.cats-index .group-sum { display: block; font: 400 0.875rem/1.4 var(--body); color: var(--muted); margin-top: 0.3rem; max-width: 48rem; }
.cats-index .cat-group-mixed tr.group-head th { border-bottom-color: var(--fir); }
.cats-index .cat-group-special tr.group-head th { border-bottom-color: var(--muted); }
.cats-index td .muted { font-size: 0.875rem; }
.cat-years-m { display: none; color: var(--muted); font-size: 0.8125rem; }
.search-list .opt-cat, .search-page-list .opt-cat { font-weight: 700; }
.search-list li.is-cat { display: block; line-height: 1.3; }
.search-list li.is-cat .opt-kind { display: inline-block; margin-right: 0.4rem; vertical-align: 0.1em; }
.search-list li.is-cat .opt-cat { font-size: 0.9375rem; }
.search-list li.is-cat .opt-meta { display: block; margin-top: 0.1rem; }
.search-list .opt-cat mark, .search-page-list .opt-cat mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; }
.search-page-list .opt-cat { margin-right: 0.5rem; }
.search-page-list .is-cat .opt-kind { margin-right: 0.5rem; }
.search-page-list .is-cat .opt-meta { display: block; }
@media (max-width: 40rem) {
  .site-nav { gap: 0.15rem 0.9rem; }
  .cats-index { font-size: 0.9375rem; }
  .cats-index .cat-name { min-width: 0; }
  .cats-index .cat-name .code { margin-left: 0; }
  .cat-years-m { display: inline; }
  .cats-index th, .cats-index td { padding-right: 0.45rem; }
  .cats-index thead th, .cats-index thead button { white-space: normal; }
  .cats-index td .muted { display: none; }
  .cats-index th:nth-child(2), .cats-index td:nth-child(2) { display: none; }  /* years: shown under the name */
  .cats-index .cat-name .code { display: inline; }
  .cats-index .cat-name a { display: block; }
  .strips .strip + .strip { margin-top: 1.5rem; }
}
/* ==== end categories ==== */
/* ==== records (sitegen/records.py, records.html, records_area.html, _records.html) ==== */
.rec-head .eyebrow { margin: 2rem 0 0; }
.rec-head .eyebrow + .display { margin-top: 0.25rem; }
.rec-jump ul { gap: 0.2rem 0.9rem; font-size: 0.9375rem; }
table.rec-table { table-layout: fixed; width: 100%; min-width: 52rem; }
.rec-table .w-cat { width: 11.5rem; }
.rec-table .w-call { width: 9rem; }
.rec-table .w-ops { width: auto; }
.rec-table .w-loc { width: 8rem; }
.rec-table .w-year { width: 4rem; }
.rec-table .w-score { width: 6.5rem; }
.rec-table .w-src { width: 7.5rem; }
.rec-table tbody.rec > tr > * { border-bottom: 0; }
.rec-table tbody.rec { border-bottom: 1px solid var(--gravel); }
.rec-table tbody.rec:hover { background: var(--shoal); }
.rec-table tbody.rec tr:hover { background: none; }
.rec-table .rec-cat a { color: var(--fir); }
.rec-table .rec-cat a:hover { color: var(--slate); }
.rec-table .rec-cat .code { display: block; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the holder: the callsign face, as on the plaque board, but in ink: red stays for each year's winners */
.rec-table .call, .rec-bonus .call { font: 700 1.2rem/1.15 var(--display); letter-spacing: 0.02em; white-space: normal; overflow-wrap: anywhere; }
.rec-table .call a, .rec-bonus .call a { color: var(--fir); }
.rec-table .call a:hover, .rec-bonus .call a:hover { color: var(--slate); }
.rec-table .loc { overflow-wrap: anywhere; }
.rec-src, .rec-listed { font-size: 0.9375rem; color: var(--muted); }
.rec-table tr.rec-note td { padding-top: 0; font-size: 0.875rem; color: var(--muted); }
/* the note stays readable in the viewport while a narrow screen scrolls the row sideways */
.rec-table tr.rec-note div { position: sticky; left: 0; max-width: min(100%, calc(100vw - 2.5rem)); }
.rec-table tr.rec-note a { color: var(--slate); }
.rec-table td.rec-bonly div { white-space: normal; max-width: min(100%, calc(100vw - 13rem)); }
.rec-new {
  display: inline-block; font: 400 0.75rem/1.3 var(--body); letter-spacing: 0; color: var(--kype);
  border: 1px solid var(--wwdxc); border-radius: 3px; padding: 0 0.3rem; vertical-align: 0.15em; white-space: nowrap;
}
.rec-table tbody.rec-is-new { box-shadow: inset 3px 0 0 var(--wwdxc); }
.rec-table tbody.rec-is-new .rec-cat { padding-left: 0.6rem; }
table.rec-bonus { min-width: min(100%, 52rem); }
.rec-bonus .rec-listed { min-width: 14rem; }
.rec-areas { padding-left: 1.25rem; }
.rec-areas li { margin: 0.3rem 0; }
.rec-area { margin-bottom: 1.25rem; }
.rec-area-h { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 2.25rem; }
#bonus > h2 { border-top-color: var(--gravel); }
.rec-held { font-size: 0.9375rem; font-weight: 700; }
.rec-held a { font-weight: 400; }
@media (max-width: 40rem) {
  table.rec-table { min-width: 48rem; }
  .rec-table .w-cat { width: 8.5rem; }
  .rec-table .w-ops { width: 9rem; }
  .rec-table .w-call { width: 7.5rem; }
  .rec-table .w-loc { width: 6rem; }
  .rec-table .w-src { width: 6rem; }
  /* the category stays in view while the row scrolls */
  .rec-table .rec-cat, .rec-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--glacier); box-shadow: 1px 0 0 var(--gravel); }
  .rec-table tbody.rec:hover .rec-cat { background: var(--shoal); }
}
/* ==== end records ==== */

/* ==== Years menu in the site nav (base.html, nav.js) ==== */
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; padding: 0.25rem 0; border-block: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: ""; width: 0.4em; height: 0.4em; margin-top: -0.2em; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 120ms; }
.nav-menu[open] > summary::after { transform: rotate(225deg); margin-top: 0.2em; }
.nav-menu > summary:hover { border-bottom-color: var(--gravel); }
.nav-menu > summary.current { border-bottom-color: var(--sockeye); }
.nav-menu-panel { position: absolute; top: calc(100% + 0.5rem); left: -0.75rem; z-index: 20; width: 15rem;
  background: var(--paper); border: 1px solid var(--gravel); border-radius: 6px; padding: 0.5rem;
  box-shadow: 0 8px 24px rgb(14 31 18 / 0.12); }
.nav-years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-years a { display: block; padding: 0.3rem 0.5rem; border-radius: 3px; text-align: center; text-decoration: none;
  color: var(--fir); font-variant-numeric: tabular-nums; }
.nav-years a:hover { background: var(--shoal); }
.nav-years a[aria-current="page"] { background: var(--fir); color: var(--glacier); font-weight: 700; }
.nav-menu-foot { display: block; margin-top: 0.4rem; padding: 0.45rem 0.5rem 0.2rem; border-top: 1px solid var(--gravel); }
@media (prefers-reduced-motion: reduce) { .nav-menu > summary::after { transition: none; } }
/* ==== end Years menu ==== */
.places-note { margin-top: 2rem; }
.glass-thumb .glass-art { display: block; }

/* records: the two all-time top-score tables share column widths */
.rec-top { table-layout: fixed; width: 100%; min-width: 52rem; }
.rec-top th:nth-child(1) { width: 4rem; }
.rec-top th:nth-child(2) { width: 7rem; }
.rec-top th:nth-child(3) { width: 11rem; }
.rec-top th:nth-child(4) { width: 13rem; }
.rec-top th:nth-child(6) { width: 4.5rem; }
.rec-top th:nth-child(7) { width: 6rem; }
.rec-top th:nth-child(8) { width: 7.5rem; }
.rec-top td.ops { overflow-wrap: anywhere; }
