@font-face { font-family: "Overpass"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/overpass-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/overpass-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/overpass-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/overpass-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/overpass-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/overpass-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/overpass-mono-latin-600-normal.woff2") format("woff2"); }

/* Seppy Trash. The world: Alberta roadside and the municipal scale house.
   Masthead is a Canada-red guide sign; results sit on an Alberta-blue services sign; the finder prints a
   scale-house ticket; exhibits are "load rejected" slips; bingo is a punch card; the ranking is the load log.
   Colour: Canada red and white lead, Alberta blue and gold support, Option 2 is bin-lid grey. */
:root {
  color-scheme: light;
  --bg: #F6F6F7;
  --surface: #FFFFFF;
  --ink: #15171D;
  --muted: #555A65;
  --line: #D6D9DE;
  --red: #C8281C;          /* text and marks on the page background */
  --sign: #D52B1E;         /* sign faces and filled buttons: white text passes AA in both themes */
  --sign-ink: #FFFFFF;
  --blue: #0A3A8C;         /* the services sign and the ticket header */
  --blue-ink: #FFFFFF;
  --gold: #F2B51D;
  --gold-ink: #1D1606;
  --tint: #FFF6DC;         /* attendant's note paper */
  --opt2: #8D929B;         /* bars for Option 2 */
  --pill-opt2: #C9CDD3;
  --display: "Overpass", "Arial Narrow", system-ui, sans-serif;
  --body: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1116; --surface: #171A21; --ink: #ECEDF0; --muted: #A9AEB8; --line: #2C303A;
    --red: #FF6B5E; --blue: #1E4FAE; --gold: #F2BE3A; --tint: #2A2414; --opt2: #7D838E; --pill-opt2: #C9CDD3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1116; --surface: #171A21; --ink: #ECEDF0; --muted: #A9AEB8; --line: #2C303A;
  --red: #FF6B5E; --blue: #1E4FAE; --gold: #F2BE3A; --tint: #2A2414; --opt2: #7D838E; --pill-opt2: #C9CDD3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 28px 48px;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .005em; }
h3 { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.hint { font-size: .9rem; color: var(--muted); max-width: 62ch; }

.wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 64px; }
.sec-head { display: grid; gap: 10px; max-width: 64ch; }
.sec-head p { color: var(--muted); }

/* Division pages lead with the dump, then the results. */
body[data-division] .finder { order: 1; }
body[data-division] .board { order: 2; }
body[data-division] .guide { order: 3; }
body[data-division] .closer, body[data-division] footer { order: 4; }

/* On its own page a section's heading repeats the sign, so only screen readers get it. */
body[data-page] .page-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top nav ---------- */
.topnav { display: flex; flex-wrap: wrap; gap: 4px; margin: -16px 0 -36px; }
@media (max-width: 520px) { .topnav a { padding: 8px 10px 6px; font-size: .88rem; } }
.topnav a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px 7px; border-radius: 6px;
  font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.topnav a:hover { background: color-mix(in srgb, var(--gold) 28%, transparent); }
.topnav a[aria-current="page"] { background: var(--sign); color: var(--sign-ink); }

/* ---------- Masthead: Canada-red guide sign ---------- */
.masthead { display: grid; gap: 20px; }
.sign { position: relative; background: var(--sign); color: var(--sign-ink); border-radius: 16px; padding: 7px; box-shadow: 0 10px 28px -16px rgba(80, 10, 5, .55); }
.sign-inner { border: 3px solid var(--sign-ink); border-radius: 11px; padding: 34px clamp(18px, 4vw, 44px) 26px; display: grid; gap: 16px; }
.title-row { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.titles { display: grid; gap: 6px; min-width: 0; }
.leaf { width: clamp(52px, 10vw, 104px); height: auto; flex: none; }
.brand { font-family: var(--display); font-weight: 900; font-size: clamp(1rem, 2.2vw, 1.3rem); letter-spacing: .08em; text-transform: uppercase; }
.sign h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.3rem, 7.6vw, 5rem); line-height: .92; letter-spacing: .005em; overflow-wrap: anywhere; }
body[data-division] .sign h1, body[data-exhibit] .sign h1 { font-size: clamp(1.7rem, 5.2vw, 3.4rem); line-height: 1; }
.sign-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 3px solid var(--sign-ink); padding-top: 14px; }
.sign-row p { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(1.05rem, 2.6vw, 1.45rem); line-height: 1.15; min-width: 0; }
.ahead { width: clamp(38px, 6vw, 54px); height: auto; flex: none; }
.lede { max-width: 60ch; font-size: 1.15rem; }

/* ---------- Results: Alberta-blue services sign ---------- */
.board { display: grid; gap: 12px; }
.board-sign { background: var(--blue); color: var(--blue-ink); border-radius: 14px; padding: 6px; max-width: 760px; }
.board-inner { border: 3px solid var(--blue-ink); border-radius: 9px; padding: 14px clamp(16px, 3vw, 28px); display: grid; gap: 4px; }
.dest { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--display); text-transform: uppercase; }
.dest + .dest { border-top: 2px solid color-mix(in srgb, var(--blue-ink) 35%, transparent); padding-top: 6px; }
.dest-name { font-weight: 800; font-size: clamp(1.1rem, 3.2vw, 1.8rem); letter-spacing: .03em; }
.dest-val { font-weight: 900; font-size: clamp(1.6rem, 5vw, 2.9rem); line-height: 1.05; }
.board-note { font-size: .9rem; color: var(--muted); max-width: 68ch; }
.live-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--sign); margin-right: .4em; vertical-align: .05em; }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: pulse 2.4s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Finder ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: start; }
@media (max-width: 800px) {
  .finder { grid-template-columns: minmax(0, 1fr); }
  body[data-division] .finder .ticket { order: -1; }
}
.controls { display: grid; gap: 22px; }
.controls label { font-weight: 700; display: block; margin-bottom: 6px; }
.search { position: relative; display: grid; gap: 8px; }
input[type="search"], select {
  width: 100%; min-height: 48px; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); border-radius: 6px; padding: 10px 12px 8px;
}
select {
  appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.results { list-style: none; margin: 0; padding: 4px; border: 2px solid var(--ink); border-radius: 6px; background: var(--surface); display: grid; gap: 2px; }
.results li { display: block; }
.result { width: 100%; min-height: 44px; text-align: left; font: inherit; color: inherit; background: transparent; border: 0; border-radius: 4px; padding: 8px 10px 6px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.result:hover, .result:focus-visible { background: color-mix(in srgb, var(--gold) 28%, var(--surface)); }
.result strong { font-weight: 800; }
.result span { font-size: .88rem; color: var(--muted); }
.results .more { padding: 8px 10px; font-size: .88rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { min-height: 44px; font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; color: var(--gold-ink); background: var(--gold); border: 0; border-radius: 999px; padding: 8px 16px 6px; }
.chip:hover { filter: brightness(1.05); }

/* ---------- Scale ticket ---------- */
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; scroll-margin-top: 16px; box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .45); }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--blue); color: var(--blue-ink); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; font-size: .9rem; }
.sample { margin: 16px 18px 0; padding: 10px 14px; border: 1px dashed var(--muted); border-radius: 4px; font-size: .95rem; }
.ticket-body { padding: 18px; display: grid; gap: 16px; font-family: var(--mono); font-size: .92rem; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0; }
.kv dt { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; padding-top: 3px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv dd.site { font-family: var(--display); font-weight: 900; font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.1; text-transform: uppercase; }
.rule { border: 0; border-top: 2px dashed var(--line); margin: 0; }
.verdict { font-family: var(--body); font-size: 1.02rem; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px 1px; border-radius: 4px; }
.pill.remain { background: var(--sign); color: var(--sign-ink); }
.pill.opt2 { background: var(--pill-opt2); color: #15171D; }
.note { font-family: var(--body); font-size: 1.02rem; font-weight: 600; background: var(--tint); border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); border-radius: 4px; padding: 10px 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.btn { min-height: 44px; font: inherit; font-family: var(--body); font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--sign-ink); background: var(--sign); border: 0; border-radius: 6px; padding: 10px 16px 8px; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { color: var(--ink); background: transparent; border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.status { font-family: var(--body); font-size: .9rem; color: var(--muted); }
.copy-fallback { font: inherit; font-size: .85rem; flex: 1 1 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .ticket-body.printing { animation: print .42s cubic-bezier(.16, 1, .3, 1); }
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-10px); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* ---------- Sorting guide ---------- */
.guide { display: grid; gap: 24px; }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.part { display: grid; gap: 6px; align-content: start; }
.part h3 { text-transform: uppercase; letter-spacing: .02em; }
.mat { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.reuse { display: grid; gap: 10px; }
.reuse h3 { text-transform: uppercase; letter-spacing: .02em; }
.reuse ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.reuse li { font-size: 1rem; }
.reuse li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--gold); border-radius: 2px; margin-right: 10px; vertical-align: .15em; }

/* ---------- How wrong were they: load-rejected slips ---------- */
.wrong { display: grid; gap: 24px; }
.slips { display: grid; gap: 20px; }
.slip { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; scroll-margin-top: 16px; }
.slip.is-target { outline: 3px solid var(--gold); outline-offset: 3px; }
.slip-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 10px 18px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.slip-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .slip-body { grid-template-columns: minmax(0, 1fr); } .slip-math { border-left: 0 !important; border-top: 1px dashed var(--line); } }
.slip-claim { padding: 20px; display: grid; gap: 10px; align-content: start; }
.slip-who { font-family: var(--display); font-weight: 900; font-size: 1.3rem; text-transform: uppercase; line-height: 1.1; }
.slip-role { font-size: .92rem; color: var(--muted); }
.slip-said { font-size: 1.05rem; max-width: 52ch; }
.slip-quip { font-size: 1rem; }
.slip-srcs { font-size: .9rem; color: var(--muted); }
.slip-math { padding: 20px; display: grid; gap: 10px; align-content: start; border-left: 1px dashed var(--line); }
.slip-big { font-family: var(--display); font-weight: 900; font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.slip-cap { font-weight: 700; margin-top: -4px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 4px 16px; margin: 4px 0 0; font-family: var(--mono); font-size: .88rem; }
.calc dt { color: var(--muted); min-width: 0; }
.calc dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.calc .total { border-top: 2px solid var(--ink); padding-top: 6px; margin-top: 2px; color: var(--ink); font-weight: 600; }
.slip-flag { font-size: .88rem; color: var(--muted); }
.slip-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 18px; border-top: 1px dashed var(--line); }
.stamp { display: inline-block; font-family: var(--display); font-weight: 900; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); border: 3px solid currentColor; border-radius: 6px; padding: 4px 12px 1px; transform: rotate(-4deg); }
.slip-foot .share-row { margin-left: auto; }

/* ---------- Cope bingo: punch card ---------- */
.bingo { display: grid; gap: 22px; }
.card { max-width: 660px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 12px; }
.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sq {
  position: relative; min-height: 7.5rem; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 18px 10px 12px;
  font: inherit; font-family: var(--display); font-weight: 800; font-size: clamp(.82rem, 2.4vw, 1rem); line-height: 1.15;
  text-transform: uppercase; text-align: center; color: var(--ink); background: var(--bg);
  border: 2px dashed var(--line); border-radius: 6px; cursor: pointer; overflow-wrap: anywhere;
}
.sq small { font-family: var(--body); font-weight: 600; font-size: .78rem; text-transform: none; color: var(--muted); }
.sq:hover { border-color: var(--ink); }
.sq[aria-pressed="true"] { background: color-mix(in srgb, var(--gold) 30%, var(--surface)); border-style: solid; border-color: var(--gold); }
.sq[aria-pressed="true"]::after { content: ""; position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); }
.sq.free { cursor: default; }
.sq.win, .sq.win.free { background: var(--sign); color: var(--sign-ink); border-color: var(--sign); }
.sq.win small { color: var(--sign-ink); }
.card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.bingo-msg { font-family: var(--display); font-weight: 900; font-size: 1.2rem; text-transform: uppercase; color: var(--red); }

/* ---------- Seppy Math ---------- */
.math { display: grid; gap: 28px; justify-items: start; }
.math > * { width: 100%; }
.math > #rank-more { width: auto; }
.sums { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 3px solid var(--ink); }
.sum { display: grid; gap: 6px; padding: 18px 0 16px; border-bottom: 1px dashed var(--line); }
.sum-eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--mono); font-size: clamp(1rem, 2.4vw, 1.25rem); font-variant-numeric: tabular-nums; }
.sum-eq .op { color: var(--muted); }
.sum-eq .ans { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 5.4vw, 3.2rem); line-height: 1; color: var(--red); }
.sum-eq .unit { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.sum-say { font-size: 1.05rem; max-width: 64ch; }

/* ---------- Hall of Fame ---------- */
.hof { display: grid; gap: 24px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.post-tag { justify-self: start; font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px 1px; border-radius: 4px; }
.post-tag.cope { background: var(--pill-opt2); color: #15171D; }
.post-tag.solid { background: var(--sign); color: var(--sign-ink); }
.post-who { font-family: var(--display); font-weight: 900; font-size: 1.15rem; text-transform: uppercase; line-height: 1.15; }
.post-meta { font-size: .88rem; color: var(--muted); }
.post blockquote { margin: 0; font-size: 1.08rem; }
.post-why { font-weight: 700; }

/* ---------- Seppiest divisions ---------- */
.log { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rrow {
  width: 100%; min-height: 48px; font: inherit; color: inherit; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
  display: grid; grid-template-columns: 2.4rem minmax(0, 1.2fr) minmax(120px, 1fr) 4rem; grid-template-areas: "rk nm tr pc"; gap: 4px 14px; align-items: center; padding: 8px 14px;
}
.rrow:last-child { border-bottom: 0; }
.rrow:hover { background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.rrow[aria-pressed="true"] { background: color-mix(in srgb, var(--gold) 28%, var(--surface)); }
.rrow .rk { grid-area: rk; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.rrow .nm { grid-area: nm; font-size: .98rem; min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.rrow .pc { grid-area: pc; font-family: var(--mono); font-size: .9rem; text-align: right; }
.track { grid-area: tr; position: relative; height: 12px; background: color-mix(in srgb, var(--line) 60%, transparent); border-radius: 2px; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--opt2); border-radius: 2px; }
.track b { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--red); border-radius: 1px; }
.rrow.won .nm { font-weight: 800; }
.rrow.won .track i { background: var(--ink); }
@media (max-width: 560px) {
  .rrow { grid-template-columns: 1.8rem minmax(0, 1fr) 3.6rem; grid-template-areas: "rk nm pc" "rk tr pc"; }
  .track { height: 8px; }
}

/* ---------- Ending ---------- */
.closer { border-top: 6px solid var(--sign); padding-top: 22px; }
.closer p { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 4.4vw, 2.7rem); line-height: 1.08; max-width: 26ch; text-wrap: balance; }
footer { display: grid; gap: 8px; font-size: .88rem; color: var(--muted); margin-top: -32px; }
footer p { max-width: 68ch; }
