/* WUSA brand layer—a thin skin over Pico (navy, chartreuse, red).

   The bracket explorer (its own repo) copies these brand and link colors, Pico's
   neutrals, and the header's look into its page at build time
   (generate_bracket_explorer.SITE_CSS), because its sandbox can't load ours. A
   change here doesn't reach it: tell the bracket-explorer session too. */

:root {
  --wusa-navy: #0b2545;
  --wusa-navy-2: #13315c;
  --wusa-chartreuse: #b4d335;
  --wusa-red: #c8102e;
}

/* Map Pico's primary onto WUSA navy; links and buttons follow.

   THE SELECTOR IS THE WHOLE POINT, and it has to match Pico's own. This block
   used to sit on a bare `:root` with a comment claiming that loading after
   pico.min.css was enough to win. It isn't, and load order never entered into
   it: Pico declares these on `:root:not([data-theme=dark]),[data-theme=light]`,
   which is specificity 0,2,0 against a plain `:root`'s 0,1,0. So from the first
   commit until 2026-08-31 the light theme quietly served Pico's stock blue and
   nothing here applied. Don't "simplify" this back to `:root`.

   The dark block below gets away with `[data-theme="dark"]` because that ties
   Pico's own dark selector on specificity and wins on order.

   And it is the whole FAMILY, not just `--pico-primary`. That one colors link
   text; buttons fill from `--pico-primary-background` and underlines from
   `--pico-primary-underline`. Mapping only the first is what makes a navy link
   sit next to a Pico-blue button. */
:root:not([data-theme="dark"]),
[data-theme="light"] {
  --pico-primary: var(--wusa-navy);
  --pico-primary-background: var(--wusa-navy);
  --pico-primary-border: var(--wusa-navy);
  --pico-primary-underline: rgba(11, 37, 69, 0.5);
  --pico-primary-hover: var(--wusa-navy-2);
  --pico-primary-hover-background: var(--wusa-navy-2);
  --pico-primary-hover-border: var(--wusa-navy-2);
  --pico-primary-hover-underline: var(--wusa-navy-2);
  --pico-primary-focus: rgba(11, 37, 69, 0.25);
  --pico-primary-inverse: #fff;
}

/* Dark theme: navy is too dark to read on a dark background, so links and primary
   buttons take a lighter blue. Driven by the toggle's data-theme, with a system
   fallback for when JS hasn't set it. Navy-bg badges get a lighter fill too.

   `[data-theme="dark"]` ties Pico's own dark selector on specificity and wins on
   order, so this block—unlike the light one above—always did apply. What it
   MISSED was the same thing: only `--pico-primary` was mapped, so links took the
   light blue while buttons kept filling from Pico's `--pico-primary-background`
   (a teal `#0172ad`) and the two never matched. The giveaway was already sitting
   here—`--pico-primary-inverse: #0b2545` is dark text, which is only legible on
   a LIGHT fill. That was the intent all along; it just had nothing to act on. */
[data-theme="dark"] {
  --pico-primary: #8ab4f8;
  --pico-primary-background: #8ab4f8;
  --pico-primary-border: #8ab4f8;
  --pico-primary-underline: rgba(138, 180, 248, 0.5);
  --pico-primary-hover: #a9c7fb;
  --pico-primary-hover-background: #a9c7fb;
  --pico-primary-hover-border: #a9c7fb;
  --pico-primary-hover-underline: #a9c7fb;
  --pico-primary-focus: rgba(138, 180, 248, 0.3);
  --pico-primary-inverse: #0b2545;
}
[data-theme="dark"] .wusa-badge--volunteer {
  background: #1f3a63;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pico-primary: #8ab4f8;
    --pico-primary-background: #8ab4f8;
    --pico-primary-border: #8ab4f8;
    --pico-primary-underline: rgba(138, 180, 248, 0.5);
    --pico-primary-hover: #a9c7fb;
    --pico-primary-hover-background: #a9c7fb;
    --pico-primary-hover-border: #a9c7fb;
    --pico-primary-hover-underline: #a9c7fb;
    --pico-primary-focus: rgba(138, 180, 248, 0.3);
    --pico-primary-inverse: #0b2545;
  }
}

/* Site header: navy bar with the logo and chartreuse underline. */
.wusa-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: var(--wusa-navy);
  border-bottom: 4px solid var(--wusa-chartreuse);
}

.wusa-header a.wusa-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.wusa-header img {
  height: 36px;
  width: auto;
}

.wusa-header .wusa-spacer {
  flex: 1;
}

.wusa-header .wusa-user {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.wusa-header a {
  color: #fff;
}

.wusa-theme-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  width: auto;
  margin: 0;
  padding: 0.2rem 0.4rem;
  font-size: 1.15rem;
  line-height: 1;
}
.wusa-theme-toggle:hover {
  opacity: 0.8;
}

/* Index rows: title + access badge on the left, the short URL + actions on the
   right of the same line (wraps below on narrow screens); usage graph beneath. */
.wusa-links {
  list-style: none;
  padding-left: 0;
}

.wusa-links li {
  list-style: none;
  margin-bottom: 1.75rem;
}
.wusa-links li::marker {
  content: "";
}

.wusa-link-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.9rem;
}

.wusa-link-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}

.wusa-link-title {
  font-weight: 600;
}

.wusa-link-title--locked {
  color: var(--pico-muted-color);
  font-weight: 500;
}

/* Access badges. Filled = you already have this level; outlined = a link to
   request it (the badge replaces the old lock + request pill). */
.wusa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
  padding: 0.08rem 0.45rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.wusa-badge--public {
  background: var(--wusa-chartreuse);
  color: var(--wusa-navy);
}
.wusa-badge--volunteer {
  background: var(--wusa-navy);
  color: #fff;
}
.wusa-badge--board {
  background: #9a6b00;
  color: #fff;
}
.wusa-badge--background-checks {
  background: var(--wusa-red);
  color: #fff;
}

.wusa-link-title--pending {
  color: var(--pico-muted-color);
  font-weight: 500;
}

/* Season navigation for the usage graphs—only shown once >1 season has data. */
.wusa-season-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--pico-muted-color);
}
.wusa-season-nav a {
  text-decoration: none;
  font-weight: 700;
}
.wusa-season-current {
  min-width: 7rem;
  text-align: center;
}
.wusa-season-disabled {
  opacity: 0.3;
}

/* Understated per-link usage graph under the link—weekly opens this season,
   shown to everyone (transparency). Full-width line + a small count. */
.wusa-spark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  color: var(--pico-muted-color);
  opacity: 0.85;
}
.wusa-spark-svg {
  flex: 1;
  width: 100%;
  height: 24px;
  display: block;
}
.wusa-spark-n {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Vertical "went live" marker inside the usage graph—chartreuse so it reads on
   both the light and dark themes (navy vanished on dark). */
.wusa-spark-marker {
  stroke: var(--wusa-chartreuse);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  opacity: 0.8;
}
.wusa-badge--pending {
  background: transparent;
  color: var(--pico-muted-color);
  border-color: var(--pico-muted-border-color, currentColor);
  border-style: dashed;
}

/* Advisory link-health marker: the automated checker saw the target change or
   stop responding. Outlined (like the request badge), red so it draws the eye
   without shouting; a normal-case label since it's a prose hint, not a category. */
.wusa-badge--health {
  background: transparent;
  color: var(--wusa-red);
  border-color: var(--wusa-red);
  border-style: dashed;
  text-transform: none;
  cursor: help;
}

/* A known issue — acknowledged by an admin, or manually flagged (e.g. an expired
   form the checker can't see). Still marked so members know what to expect, but
   muted rather than red: it reads as "handled," not "fresh alarm." */
.wusa-badge--health.wusa-badge--health-known {
  color: var(--pico-muted-color, #6c757d);
  border-color: var(--pico-muted-border-color, currentColor);
}

.wusa-badge--request {
  background: transparent;
}
.wusa-badge--request.wusa-badge--volunteer {
  color: var(--wusa-navy);
  border-color: var(--wusa-navy);
}
.wusa-badge--request.wusa-badge--board {
  color: #9a6b00;
  border-color: #9a6b00;
}
.wusa-badge--request.wusa-badge--background-checks {
  color: var(--wusa-red);
  border-color: var(--wusa-red);
}
.wusa-badge--request:hover {
  filter: brightness(0.92);
}

.wusa-share {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* A link's URLs, one per line: a short alias above the full one (views._alias_map). */
.wusa-urls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.wusa-url-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Opens through this URL, on a row with more than one (the sparkline counts them all). */
.wusa-url-n {
  font-size: 0.7rem;
  color: var(--pico-muted-color);
  font-variant-numeric: tabular-nums;
}

.wusa-url {
  font-size: 0.7rem;
  color: var(--pico-muted-color);
  background: var(--pico-code-background-color);
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
}

.wusa-copy.wusa-copy {
  /* icon-only button (GitHub-style); doubled selector beats Pico without !important */
  margin: 0;
  padding: 0.15rem 0.3rem;
  width: auto;
  line-height: 0;
  color: var(--pico-muted-color);
  background: transparent;
  border-color: transparent;
}

.wusa-copy.wusa-copy:hover {
  color: var(--wusa-navy);
}

.wusa-copy svg {
  display: block;
}

.wusa-copied.wusa-copied {
  color: var(--wusa-chartreuse);
}

/* Staff-only inline admin affordances (edit / delete) next to copy. */
.wusa-iconlink {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 0.15rem 0.3rem;
  color: var(--pico-muted-color);
}

.wusa-iconlink:hover {
  color: var(--wusa-navy);
}

.wusa-iconlink--danger:hover {
  color: var(--wusa-red);
}

.wusa-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Live search over the links (built by the index's script), at the left of the
   sticky category bar: compact, wider while focused or holding a search (the
   bar it narrows has fewer categories then anyway). On a phone, a row of its own
   above the bar. Without a bar (one category), a line under the heading. */
.wusa-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.75rem 0 1.25rem;
}
.wusa-toc-dock {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.wusa-toc-dock .wusa-toc {
  flex: 1;
  min-width: 0;
}
.wusa-toc-dock .wusa-search {
  flex: 0 0 13rem;
  margin: 0;
  gap: 0.5rem;
  transition: flex-basis 0.2s ease;
}
.wusa-toc-dock .wusa-search:focus-within,
.wusa-toc-dock .wusa-search--active {
  flex-basis: min(30rem, 50%);
}
@media (prefers-reduced-motion: reduce) {
  .wusa-toc-dock .wusa-search {
    transition: none;
  }
}
.wusa-toc-dock .wusa-search input {
  flex: 1 1 auto;
  height: 100%;
}
@media (max-width: 576px) {
  .wusa-toc-dock {
    flex-wrap: wrap;
  }
  .wusa-toc-dock .wusa-search,
  .wusa-toc-dock .wusa-search:focus-within,
  .wusa-toc-dock .wusa-search--active {
    flex-basis: 100%;
  }
}
/* The size of /video's "Find a team": a tool on the page, not its headline. */
.wusa-search input {
  flex: 0 1 24rem;
  min-width: 0;
  margin: 0;
  height: auto;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}
.wusa-search-count {
  font-size: 0.85rem;
  color: var(--pico-muted-color);
  white-space: nowrap;
}
.search-hidden {
  display: none !important;
}
.wusa-links mark {
  background: color-mix(in srgb, var(--wusa-chartreuse) 55%, transparent);
  color: inherit;
  padding: 0 0.05em;
}

.wusa-addlink {
  margin: 0;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  width: auto;
  white-space: nowrap;
}

.wusa-desc {
  display: block;
  color: var(--pico-muted-color);
  margin-top: 0.15rem;
  font-size: 0.82rem;
}

/* "PDF · 2.4 MB · updated Aug 5" under a hosted file. Quieter than the
   description: it's reference detail, not the reason to click. */
.wusa-filemeta {
  display: block;
  color: var(--pico-muted-color);
  margin-top: 0.15rem;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.wusa-status {
  border-left: 4px solid var(--wusa-chartreuse);
  padding-left: 0.75rem;
}

/* Footer: internal nav grouped left, parent-org attribution set apart right.
   Small and muted throughout; the org link is quieter still—a credit, not nav. */
.wusa-footer {
  margin-top: 2.5rem;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--pico-muted-color);
  border-top: 1px solid var(--pico-muted-border-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
}
/* Group the nav items together at the left. Pico styles <nav> as a
   space-between flex row by default; override so the links cluster instead of
   spreading edge to edge. */
.wusa-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.5rem;
}
.wusa-footer-sep {
  color: var(--pico-muted-border-color);
}
.wusa-version {
  white-space: nowrap;
}
/* The current page: plain bold text, not a link (you-are-here). */
.wusa-footer-here {
  font-weight: 600;
  color: var(--pico-color);
}
/* Attribution to the parent org—muted and undecorated until hover, so it
   reads as a credit rather than competing with the nav links beside it. */
.wusa-footer-org {
  font-size: 0.92em;
}
.wusa-footer-org a {
  color: var(--pico-muted-color);
  text-decoration: none;
}
.wusa-footer-org a:hover {
  text-decoration: underline;
}

/* Sign-in card, centered to match the rest of the brand. */
.wusa-signin {
  max-width: 28rem;
  margin: 2rem auto;
}

.wusa-signin-btn {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  text-align: center;
  background: var(--wusa-navy);
  border-color: var(--wusa-navy);
  color: #fff;
}

.wusa-signin-btn:hover {
  background: var(--wusa-navy-2);
  border-color: var(--wusa-navy-2);
}

/* Flash messages (e.g. the link-suggestion confirmation). */
.wusa-messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.wusa-msg {
  padding: 0.5rem 0.8rem;
  border-radius: var(--pico-border-radius);
  border: 1px solid transparent;
  margin-bottom: 0.5rem;
}
.wusa-msg--success {
  background: var(--wusa-chartreuse);
  color: var(--wusa-navy);
}
.wusa-msg--error {
  background: var(--wusa-red);
  color: #fff;
}

/* "Suggest a link" disclosure at the foot of the index. */
.wusa-suggest {
  margin-top: 2rem;
}
.wusa-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.wusa-addlink--ghost {
  background: transparent;
  color: var(--wusa-navy);
  border-color: var(--wusa-navy);
}
/* Navy on a dark background is unreadable—lighten the outline button + brighten
   icon hovers. Driven by data-theme (set by the toggle), with a no-JS system fallback. */
[data-theme="dark"] .wusa-addlink--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
[data-theme="dark"] .wusa-copy.wusa-copy:hover,
[data-theme="dark"] .wusa-iconlink:hover {
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .wusa-addlink--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
  }
}
.wusa-suggest-page {
  max-width: 32rem;
}
.wusa-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0;
}
.wusa-dialog-actions button,
.wusa-dialog-actions [role="button"] {
  width: auto;
  margin: 0;
}
.wusa-suggest summary {
  cursor: pointer;
  font-weight: 600;
}
/* Contact-form honeypot. Off-screen rather than display:none, which the cruder
   form-filling bots know to skip; aria-hidden and tabindex="-1" on the markup
   keep keyboard and screen-reader users from ever reaching it. */
.wusa-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.wusa-suggest-blurb {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
  margin: 0.6rem 0;
}

/* Narrow screens: stack the share row full-width under the title, and push the
   badges and the copy/edit/delete actions to the right edge (slug stays left). */
@media (max-width: 600px) {
  .wusa-share {
    flex: 1 1 100%;
  }
  /* Keep the access badge on the title's line: let the title take the room and
     wrap if long, instead of pushing the badge to its own line. */
  .wusa-link-head {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .wusa-link-head .wusa-link-title {
    flex: 1;
    min-width: 0;
  }
  .wusa-share .wusa-urls {
    margin-right: auto;
    align-items: flex-start;
  }
}

/* About page: a readable prose column, narrower than the index. */
.wusa-prose {
  max-width: 42rem;
}
.wusa-prose h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}
/* Give the lead "short version" line a little air under the H1 (hgroup packs
   title + subtitle tight by default). */
.wusa-prose hgroup > p {
  margin-top: 0.6rem;
}
.wusa-prose-count {
  color: var(--pico-muted-color);
  font-size: 0.85rem;
}
/* Editorial note: a boxed callout, set apart from the prose but NOT a quote —
   no blockquote bar. For the "how the access layer actually works" explainer. */
.wusa-note {
  background: var(--pico-code-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}
.wusa-faq dt {
  font-weight: 600;
  margin-top: 0.9rem;
}
.wusa-faq dd {
  margin: 0.2rem 0 0;
}

/* Access-request on-ramp: a stacked checkbox list, each a box + label with a
   gloss beneath. The disabled Volunteer box reads as "included, not a choice". */
.wusa-access-choices {
  margin-bottom: 1rem;
}
.wusa-access-choices legend {
  font-weight: 600;
}
.wusa-access-choices label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.wusa-access-choices input[type="checkbox"] {
  flex: none;
}
.wusa-access-choices .wusa-desc {
  margin-top: 0.1rem;
}

/* Section index for the link list. Sticky, because the index is long and the
   whole point of the anchors is getting back out of it.

   IT HAS TO LOOK LIKE NAVIGATION (Joel, 2026-08-31: "it doesn't quite read like
   nav to me"). Muted 0.8rem text at weight 400, floating on the page with only a
   hairline under it, is caption styling—it reads as a line of prose about the
   page rather than a control on it. Three things fix it and none is decoration:
   the bar gets its own surface so it's a discrete component, the items get
   weight and real hit padding so they're targets, and the section you're in is
   marked. Separators were the other candidate and lost: with a surface and a
   pill on hover, eighteen vertical ticks say nothing the container hasn't. */
.wusa-toc-dock {
  position: sticky;
  top: 0;
  z-index: 5;
  /* Opaque, and the full width of the container, because the bar it holds is
     NOT: that one is a translucent tint with rounded corners, and a sticky
     element you can read the page through is worse than no bar at all. The dock
     is what content scrolls under; the bar just floats in it. */
  background: var(--pico-background-color);
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
}
.wusa-toc {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.35rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 10px;
  /* Tinted from the muted text color, not a Pico surface token: in the light
     theme `--pico-card-background-color` IS the page background, so a bar
     filled with it is a bar you can't see. */
  background: color-mix(in srgb, var(--pico-muted-color) 9%, transparent);
  font-size: 0.82rem;
  /* The scroll buttons inherit this—see the note on them below. */
  color: var(--pico-muted-color);
}
/* Sideways, never onto a second line: a wrapped index reads as a paragraph. */
.wusa-toc-links {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* The scroll buttons' animation. In CSS rather than a `behavior` option on
     the `scrollBy` call so the reduced-motion opt-out below can reach it—an
     option baked into the JS can't be overridden by a media query. */
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  .wusa-toc-links {
    scroll-behavior: auto;
  }
}
.wusa-toc-links::-webkit-scrollbar {
  display: none;
}
/* A supporting cue for the buttons, not the affordance itself. On its own the
   fade is luck: it only reads when a label happens to straddle the edge, and
   with nineteen categories the odds that one does at YOUR window width are a
   coin flip—the bar looked complete at 1740px and truncated at 1200px. */
.wusa-toc--more .wusa-toc-links {
  mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
}
.wusa-toc--less .wusa-toc-links {
  mask-image: linear-gradient(90deg, transparent, #000 18px);
}
.wusa-toc--less.wusa-toc--more .wusa-toc-links {
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
/* The scroll affordance. A button, because a fade is a hint and a hint that
   depends on where the text happens to land is not an affordance—and because
   sideways scrolling is a gesture plenty of people don't have. Added from JS
   and only when it can act: a dead control is worse than none, and the strip
   still scrolls natively with scripts off. */
.wusa-toc button.wusa-toc-scroll {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 7px;
  /* `transparent`/`inherit`, NOT `var(--pico-background-color)`: Pico re-scopes
     its color tokens ON the button element, so reading one here hands back the
     primary fill and you get a blue square. */
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}
.wusa-toc button.wusa-toc-scroll:hover {
  background: color-mix(in srgb, currentColor 14%, transparent);
  border-color: currentColor;
}
.wusa-toc button.wusa-toc-scroll[hidden] {
  display: none;
}
.wusa-toc .wusa-toc-links a {
  color: var(--pico-muted-color);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  padding: 0.32rem 0.62rem;
  border-radius: 7px;
  line-height: 1.2;
}
.wusa-toc .wusa-toc-links a:hover {
  color: var(--pico-contrast);
  background: color-mix(in srgb, var(--pico-muted-color) 18%, transparent);
}
/* Where you are. Set from the scroll handler; with scripts off the bar is still
   a working index, just without the marker.

   A raised pill in the brand primary. Against a bar of muted gray on a gray
   surface, another gray is a shade, and a shade is not a marker—the eye has to
   find this one without hunting for it. */
.wusa-toc .wusa-toc-links a.wusa-here {
  color: var(--pico-primary);
  background: var(--pico-background-color);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px var(--pico-muted-border-color);
  font-weight: 600;
}

article.wusa-cat {
  scroll-margin-top: 3.25rem;
}
article.wusa-cat > header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
/* The permalink and the way back, right-aligned on the header's own row.
   Always present rather than hover-only: a control that appears on hover is a
   control a touch screen never has. Quiet enough to ignore, close enough to
   click. */
.wusa-anchors {
  margin-left: auto;
  display: flex;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
}
.wusa-anchors a {
  color: var(--pico-muted-color);
  text-decoration: none;
  padding: 0 0.4rem;
  border-radius: 6px;
  line-height: 1.6;
  opacity: 0.65;
}
.wusa-anchors a:hover {
  color: var(--pico-color);
  background: color-mix(in srgb, var(--pico-muted-color) 12%, transparent);
  opacity: 1;
}

/* /pickups */
.wusa-pickups p,
.wusa-pickups td,
.wusa-pickups label {
  text-wrap: pretty;
}
.wusa-pickups h1,
.wusa-pickups h2,
.wusa-pickups h3 {
  text-wrap: balance;
}
/* One row of equal buttons: one or two, whichever the browser offers. */
.wusa-pickups-export {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.5rem;
}
.wusa-pickups-export > * {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wusa-pickups-export > [hidden] {
  display: none;
}
.wusa-pickups-older {
  border-left: 4px solid var(--pico-del-color);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}
.wusa-pickups details {
  margin-bottom: 1rem;
}
/* On a phone, each row is a card: one labeled line per column, no side scroll. */
@media (max-width: 700px) {
  .wusa-pickups-table thead {
    display: none;
  }
  .wusa-pickups-table,
  .wusa-pickups-table tbody,
  .wusa-pickups-table tr,
  .wusa-pickups-table td {
    display: block;
    width: 100%;
  }
  .wusa-pickups-table tr {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
  }
  .wusa-pickups-table td {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.5rem;
    padding: 0.15rem 0.5rem;
    border: 0;
  }
  .wusa-pickups-table td::before {
    content: attr(data-label);
    color: var(--pico-muted-color);
    font-size: 0.875em;
  }
  .wusa-pickups-table td[data-label="Player"] {
    font-weight: 600;
  }
  .wusa-pickups-table td small {
    font-weight: normal;
  }
  .wusa-pickups-table td.empty {
    display: none;
  }
}

/* --- /fields: field status ---------------------------------------------- */

.wusa-fields table th small {
  display: block;
  color: var(--pico-muted-color);
}
.wusa-fields-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin-bottom: 0.5rem;
}
.wusa-fields-board > li {
  list-style: none;
  margin: 0;
}
.wusa-fields-card {
  border: 1px solid var(--pico-muted-border-color);
  border-left: 4px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 0.75rem 0.9rem;
}
.wusa-fields-card.is-on {
  border-left-color: var(--wusa-chartreuse);
}
.wusa-fields-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.wusa-fields-card h3 small {
  margin-left: 0.4rem;
  font-weight: normal;
  font-size: 0.85rem;
  color: var(--pico-muted-color);
}
.wusa-fields-card p {
  margin: 0 0 0.3rem;
}
.wusa-fields-card p small {
  color: var(--pico-muted-color);
}
.wusa-fields-facts,
.wusa-fields-cage {
  font-size: 0.9rem;
}
.wusa-fields-cage {
  color: var(--pico-muted-color);
}
.wusa-fields-none {
  color: var(--pico-muted-color);
}
.wusa-fields-stale {
  border-left: 4px solid var(--wusa-red);
  padding-left: 0.75rem;
}
.wusa-fields-pill {
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9em;
  border: 1px solid var(--pico-muted-border-color);
}
.wusa-fields-pill.is-on {
  background: var(--wusa-chartreuse);
  border-color: var(--wusa-chartreuse);
  color: var(--wusa-navy);
}
.wusa-fields-bars {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 0.75rem;
  align-items: center;
}
.wusa-fields-bars dt {
  font-weight: normal;
  font-variant-numeric: tabular-nums;
}
.wusa-fields-bars dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--pico-muted-color);
}
.wusa-fields-bars dd span {
  display: block;
  height: 0.9rem;
  min-width: 1px;
  border-radius: 2px;
  background: var(--pico-primary-background);
}
.wusa-fields p,
.wusa-fields small {
  text-wrap: pretty;
}
.wusa-fields section h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.wusa-fields-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--pico-border-radius) / 2);
  margin-bottom: 0.6rem;
  background: var(--pico-muted-border-color);
}
.wusa-fields-shot {
  position: relative;
  display: block;
}
.wusa-fields-shot::after {
  content: "▶ Live";
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}
/* The live stream over the still (static/js/fields.js sizes and clips it to
   the camera's real shape); the still stays, hidden, to hold the box. */
.wusa-fields-live {
  position: absolute;
  max-width: none;
  object-fit: fill;
  background: #000;
}
/* Full screen, while a stream plays (fields.js): the button, and the shot
   taking the whole screen (or the whole window, where a page can't go full
   screen) with the picture letterboxed at its real shape. */
.wusa-fields-full {
  position: absolute;
  right: 0.4rem;
  bottom: 1rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.wusa-fields-shot.is-full {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background: #000;
}
.wusa-fields-shot.is-full > img {
  display: none;
}
.wusa-fields-shot.is-full .wusa-fields-full {
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.9rem;
}
.wusa-fields-shot.is-full::after {
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.9rem;
}
.wusa-fields-shot.is-full.is-live::after {
  content: "Live";
}
.wusa-fields-shot.is-live::after {
  content: "Live ✕";
  background: var(--wusa-red, #c8102e);
}
.wusa-fields-game small,
.wusa-fields-ready small {
  display: block;
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--pico-muted-color);
}
.wusa-fields-ready {
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: calc(var(--pico-border-radius) / 2);
  background: var(--pico-muted-border-color);
}
.wusa-fields-ready.is-ready {
  background: color-mix(in srgb, var(--wusa-chartreuse) 45%, transparent);
}
.wusa-fields-ready.is-not_ready {
  background: color-mix(in srgb, var(--wusa-red) 18%, transparent);
  border-left: 4px solid var(--wusa-red);
}
.wusa-ops-inline {
  display: inline-block;
  margin: 0 0.3rem 0.3rem 0;
}
.wusa-ops-inline button {
  width: auto;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
  margin: 0;
}
.wusa-ops-enter label {
  display: block;
}
.wusa-ops-enter input[type="number"] {
  width: 5em;
  display: inline-block;
}
.wusa-ops-sub.is-refused small,
.wusa-ops-sub.is-failed small {
  color: var(--wusa-red);
}
.wusa-fields-held small {
  color: var(--pico-muted-color);
}
.wusa-fields-fix {
  margin: 0.3rem 0 0.4rem;
  font-size: 0.85rem;
}
.wusa-fields-fix summary {
  color: var(--pico-muted-color);
}
.wusa-fields-fix form {
  margin: 0.4rem 0 0;
}
.wusa-fields-fix select,
.wusa-fields-fix input,
.wusa-fields-fix button {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  padding: 0.3rem 0.5rem;
}
.wusa-fields-lag {
  font-size: 0.85rem;
  color: var(--wusa-red);
}

/* --- /ops: tournament ops ------------------------------------------------ */

.wusa-ops {
  --ops-red: var(--wusa-red);
  --ops-yellow: #e0a800;
  --ops-green: #2e9d4f;
  --ops-gray: var(--pico-muted-border-color);
  text-wrap: pretty;
}
.wusa-ops h1,
.wusa-ops h2,
.wusa-ops h3 {
  text-wrap: balance;
}
.wusa-ops-head h1 {
  margin: 0;
  font-size: 1.4rem;
}
.wusa-ops-head h1 small {
  font-weight: normal;
  color: var(--pico-muted-color);
}
.wusa-ops-days {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wusa-ops-days a,
.wusa-ops-days span {
  font-size: 1.6rem;
  text-decoration: none;
  padding: 0 0.4rem;
}
.wusa-ops-days span {
  color: var(--pico-muted-border-color);
}
/* /ops: the current tournament, called out above the everyday views. */
.wusa-ops-feature {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem 0.25rem;
  border: 1px solid var(--pico-muted-border-color);
  border-left: 0.4rem solid var(--wusa-chartreuse);
  border-radius: var(--pico-border-radius);
  background: var(--pico-card-sectioning-background-color);
}
.wusa-ops-feature > :first-child {
  margin-top: 0;
}
.wusa-ops-feature h2 {
  margin-bottom: 0.4rem;
}
/* The dashboard, opened full screen from /ops or a view (ops.js): a same-origin frame. */
.wusa-ops-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--pico-background-color);
  z-index: 100;
}
.wusa-ops-counts {
  margin: 0.3rem 0;
  font-weight: bold;
}
.wusa-ops-fresh {
  margin: 0 0 0.6rem;
  color: var(--pico-muted-color);
}
.wusa-ops.is-offline .wusa-ops-fresh::after {
  content: " · not updating (signed out or offline?)";
  color: var(--ops-red);
}
.wusa-ops-dot {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  margin: 0 0.3em 0 0.5em;
  vertical-align: baseline;
  background: var(--ops-gray);
}
.wusa-ops-dot.is-red { background: var(--ops-red); }
.wusa-ops-dot.is-yellow { background: var(--ops-yellow); }
.wusa-ops-dot.is-green { background: var(--ops-green); }
.wusa-ops h3 .wusa-ops-dot {
  margin-left: 0;
}
.wusa-ops-notice {
  border-left: 4px solid var(--ops-red);
  padding-left: 0.6rem;
  font-weight: bold;
}
.wusa-ops-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}
.wusa-ops-top h2 {
  font-size: 1.05rem;
  margin: 0.4rem 0;
}
.wusa-ops-top ul {
  margin: 0 0 0.6rem;
  padding-left: 1rem;
}
.wusa-ops-top li.is-on {
  color: var(--ops-red);
}
.wusa-ops-top li.is-canceled {
  color: var(--pico-muted-color);
}
.wusa-ops-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.75rem;
  padding: 0;
}
.wusa-ops-fields > li {
  list-style: none;
  margin: 0;
}
.wusa-ops-tile {
  border: 1px solid var(--pico-muted-border-color);
  border-left: 6px solid var(--ops-gray);
  border-radius: var(--pico-border-radius);
  padding: 0.6rem 0.8rem;
}
.wusa-ops-tile.is-red { border-left-color: var(--ops-red); }
.wusa-ops-tile.is-yellow { border-left-color: var(--ops-yellow); }
.wusa-ops-tile.is-green { border-left-color: var(--ops-green); }
.wusa-ops-tile h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}
.wusa-ops-tile h3 small {
  font-weight: normal;
  font-size: 0.8rem;
  color: var(--pico-muted-color);
}
.wusa-ops-tile p {
  margin: 0 0 0.25rem;
}
.wusa-ops-why {
  font-size: 0.9rem;
  font-weight: bold;
}
.wusa-ops-facts {
  font-size: 0.85rem;
  color: var(--pico-muted-color);
}
.wusa-ops-games {
  padding: 0;
  margin: 0.4rem 0 0;
}
.wusa-ops-game {
  list-style: none;
  border-top: 1px solid var(--pico-muted-border-color);
  padding: 0.35rem 0;
  font-size: 0.9rem;
}
.wusa-ops-game.is-not_played {
  color: var(--pico-muted-color);
}
/* Bracket games (WB, LB) stand out; consolation games (CG) advance nobody and
   sit back: muted, a dashed rule, an outlined tag (Joel, 11/14). */
.wusa-ops-kind {
  display: inline-block;
  padding: 0 0.35em;
  border-radius: 0.25em;
  font-size: 0.75em;
  font-weight: bold;
  line-height: 1.4;
  vertical-align: 0.1em;
  background: var(--pico-color);
  color: var(--pico-background-color);
}
.wusa-ops-kind.is-cg {
  background: transparent;
  color: var(--pico-muted-color);
  border: 1px solid var(--pico-muted-border-color);
  font-weight: normal;
}
.wusa-ops-game.is-cg {
  color: var(--pico-muted-color);
  border-top-style: dashed;
}
.wusa-ops-game.is-cg strong {
  font-weight: 600;
}
.wusa-ops-spot-item li.is-cg {
  color: var(--pico-muted-color);
}
.wusa-ops-spot-item li a {
  color: inherit;
}
/* A game reached from "Needs a look" */
.wusa-ops-game:target {
  outline: 2px solid var(--wusa-chartreuse);
  outline-offset: 2px;
  scroll-margin-top: 4rem;
}
.wusa-ops-game.is-live {
  background: color-mix(in srgb, var(--wusa-chartreuse) 15%, transparent);
}
.wusa-ops-when small {
  display: block;
  color: var(--pico-muted-color);
}
.wusa-ops-when .is-late {
  color: var(--ops-red);
  font-weight: bold;
}
.wusa-ops-forecast small {
  display: block;
  color: var(--pico-muted-color);
}
.wusa-ops-forecast.is-red strong { color: var(--ops-red); }
.wusa-ops-forecast.is-yellow strong { color: var(--ops-yellow); }
.wusa-ops-forecast.is-green strong { color: var(--ops-green); }
.wusa-ops-crops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.wusa-ops-crops img {
  max-width: 9rem;
  height: auto;
  border-radius: 3px;
}
/* On the wall: the live board, small enough to keep the dashboard on one screen. */
.wusa-ops.is-dashboard .wusa-ops-crops img {
  max-height: 3.2em;
  max-width: none;
  width: auto;
}

/* The dashboard: one screen, no scrolling, readable across a room (Joel,
   2026-11-12). The page is exactly the viewport; every size is in em of one
   unit that follows the screen's width and height, so a 16:9 TV, a laptop, and
   a 4:3 screen all fit. One field per column; a column that still runs long
   clips rather than scrolls (the details are on /ops and in the spotlight). */
body:has(.wusa-ops.is-dashboard) > header,
body:has(.wusa-ops.is-dashboard) > footer {
  display: none;
}
body:has(.wusa-ops.is-dashboard) {
  overflow: hidden;
}
body:has(.wusa-ops.is-dashboard) > main {
  max-width: none;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  padding: 1.2vh 1.2vw;
  margin: 0;
}
:fullscreen body:has(.wusa-ops.is-dashboard) {
  cursor: none;
}
.wusa-ops.is-dashboard {
  font-size: clamp(10px, min(1.08vw, 1.95vh), 30px);
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12em, 19%);
  grid-template-areas:
    "head spot"
    "notice spot"
    "top spot"
    "fields spot";
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0 1.2em;
  overflow: hidden;
}
.wusa-ops.is-dashboard .wusa-ops-head {
  grid-area: head;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1.2em;
}
.wusa-ops.is-dashboard .wusa-ops-head h1 {
  font-size: 2em;
  line-height: 1.15;
}
.wusa-ops.is-dashboard .wusa-ops-counts,
.wusa-ops.is-dashboard .wusa-ops-fresh {
  margin: 0;
  font-size: 1em;
}
.wusa-ops.is-dashboard .wusa-ops-fresh small {
  font-size: 0.85em;
}
.wusa-ops.is-dashboard .wusa-ops-notice {
  grid-area: notice;
  margin: 0.4em 0 0;
  font-size: 1.1em;
}
.wusa-ops.is-dashboard .wusa-ops-dashsum {
  grid-area: top;
  font-size: 1.25em;
  margin: 0.3em 0 0.4em;
}
.wusa-ops.is-dashboard .wusa-ops-fields {
  grid-area: fields;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 0.6em;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}
.wusa-ops.is-dashboard .wusa-ops-tile {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0.45em 0.6em;
}
.wusa-ops.is-dashboard .wusa-ops-tile h3 {
  font-size: 1.35em;
  margin-bottom: 0.15em;
}
.wusa-ops.is-dashboard .wusa-ops-tile h3 small,
.wusa-ops.is-dashboard .wusa-ops-facts {
  font-size: 0.8em;
}
.wusa-ops.is-dashboard .wusa-ops-why {
  font-size: 0.85em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.wusa-ops.is-dashboard .wusa-ops-games {
  margin-top: 0.2em;
  min-height: 0;
}
.wusa-ops.is-dashboard .wusa-ops-game {
  font-size: 0.95em;
  padding: 0.25em 0;
}
.wusa-ops.is-dashboard .wusa-ops-game p {
  margin: 0;
}
.wusa-ops.is-dashboard .wusa-ops-when small,
.wusa-ops.is-dashboard .wusa-ops-forecast small {
  display: none;
}
.wusa-ops.is-dashboard .wusa-ops-teams,
.wusa-ops.is-dashboard .wusa-ops-wx {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.wusa-ops.is-dashboard .wusa-ops-wx {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.wusa-ops.is-dashboard .wusa-ops-wx small {
  font-size: 0.85em;
}
/* A finished game is one line: its result says who played. */
.wusa-ops.is-dashboard .wusa-ops-game.is-final .wusa-ops-teams {
  display: none;
}
.wusa-ops-spot {
  grid-area: spot;
}
.wusa-ops.is-dashboard .wusa-ops-spot {
  min-height: 0;
  overflow: hidden;
}
.wusa-ops-spot-item {
  border-left: 10px solid var(--ops-gray);
  padding: 0.5rem 1rem;
  font-size: 1.4rem;
}
.wusa-ops.is-dashboard .wusa-ops-spot-item {
  border-left-width: 0.5em;
  padding: 0.3em 0.8em;
  font-size: 1.3em;
}
.wusa-ops-spot-item.is-red { border-left-color: var(--ops-red); }
.wusa-ops-wait + .wusa-ops-wait::before {
  content: " and ";
}
.wusa-ops-spot-item.is-yellow { border-left-color: var(--ops-yellow); }
.wusa-ops-spot-item.is-green { border-left-color: var(--ops-green); }
.wusa-ops-spot-item h2 {
  font-size: 2.2rem;
}
.wusa-ops.is-dashboard .wusa-ops-spot-item h2 {
  font-size: 1.6em;
  margin-bottom: 0.3em;
}
.wusa-ops.is-dashboard .wusa-ops-spot-item ul {
  margin: 0;
  padding-left: 1em;
}
/* A tall, narrow screen (a phone or a portrait monitor): stack, and let it scroll. */
@media (max-aspect-ratio: 1/1) {
  body:has(.wusa-ops.is-dashboard) {
    overflow: auto;
  }
  body:has(.wusa-ops.is-dashboard) > main {
    height: auto;
  }
  .wusa-ops.is-dashboard {
    display: block;
    height: auto;
    font-size: clamp(12px, 2.4vw, 22px);
  }
  .wusa-ops.is-dashboard .wusa-ops-fields {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr));
    grid-auto-rows: auto;
  }
}

/* --- A view's dashboard (?dashboard) on /fields and /ops/scores ---------------
   One screen, no controls, scaled to the screen (dashboard.js). /ops/tournament's
   own dashboard is .wusa-ops.is-dashboard, above. */
.wusa-dash-titled {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.wusa-dash-titled > h1 {
  margin: 0;
}
.wusa-dash-titled > p {
  flex-basis: 100%;
}
body:has(.wusa-dash) > header,
body:has(.wusa-dash) > footer {
  display: none;
}
body:has(.wusa-dash) {
  overflow: hidden;
}
body:has(.wusa-dash) > main {
  max-width: none;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  padding: 1.2vh 1.2vw;
  margin: 0;
}
:fullscreen body:has(.wusa-dash) {
  cursor: none;
}
.wusa-dash {
  font-size: clamp(10px, min(1.1vw, 2vh), 30px);
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  background: transparent;
}
.wusa-dash > .wusa-dash-head {
  margin: 0 0 0.6em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1.2em;
  padding: 0;
  background: transparent;
  border: 0;
}
.wusa-dash > .wusa-dash-head h1 {
  margin: 0;
  font-size: 2em;
  line-height: 1.15;
}
.wusa-dash-head h1 small {
  font-weight: normal;
  color: var(--pico-muted-color);
}
.wusa-dash-head p {
  margin: 0;
  color: var(--pico-muted-color);
}
.wusa-dash.is-offline .wusa-dash-head p::after {
  content: " · not updating (signed out or offline?)";
}
.wusa-dash .wusa-fields-board {
  flex: 1;
  min-height: 0;
  margin: 0;
  gap: 0.6em;
  grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  overflow: hidden;
}
.wusa-dash .wusa-fields-card {
  padding: 0.5em 0.7em;
  overflow: hidden;
  font-size: 1em;
}
.wusa-dash .wusa-fields-card p {
  margin: 0 0 0.25em;
}
.wusa-dash .wusa-fields-card h3 {
  font-size: 1.25em;
  margin: 0.2em 0;
}
.wusa-dash .wusa-fields-frame {
  width: 100%;
  max-height: 12vh;
  object-fit: cover;
}
.wusa-dash .wusa-fields-stale {
  margin: 0 0 0.4em;
}
.wusa-dash.wusa-ops-scores table {
  font-size: 1.1em;
}
.wusa-dash.wusa-ops-scores .overflow-auto {
  overflow: hidden;
}

/* A dashboard's controls (dashboard.js): theme, Full screen, Close, in the top
   right corner; they and the cursor hide 3 s after the last activity. */
.wusa-dash-controls {
  position: fixed;
  top: max(0.6rem, env(safe-area-inset-top));
  right: max(0.6rem, env(safe-area-inset-right));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: var(--pico-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  box-shadow: var(--pico-card-box-shadow);
  transition: opacity 0.4s;
}
.wusa-dash-controls .wusa-theme-toggle {
  color: var(--pico-contrast); /* Pico sets --pico-color to white on a button */
}
.wusa-dash-controls button,
.wusa-dash-controls [role="button"] {
  width: auto;
  white-space: nowrap;
  margin: 0;
  padding: 0.3em 0.8em;
  font-size: 0.9rem;
}
.wusa-dash-controls .wusa-theme-toggle {
  padding: 0.2rem 0.4rem;
  font-size: 1.15rem;
}
.wusa-dash-controls [hidden] {
  display: none;
}
html.is-idle .wusa-dash-controls {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s,
    visibility 0s 0.4s;
}
html.is-idle,
html.is-idle * {
  cursor: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .wusa-dash-controls,
  html.is-idle .wusa-dash-controls {
    transition: none;
  }
}
/* A view with its dashboard open over it. */
html.has-dash-layer,
html.has-dash-layer body {
  overflow: hidden;
}

/* A dashboard link: the display icon (templates/video/_dash_icon.html), in line
   art that takes the link's color. Beside a title on /ops, and at the right end
   of a view's header. */
/* A trusted report shown at an /ops/ page: its Dashboard button, at the right. */
.wusa-refresh .wusa-ops-dashlink {
  margin-left: auto;
}
.wusa-ops-dashlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  padding: 0.2rem;
  border-radius: var(--pico-border-radius);
  color: var(--pico-muted-color);
  text-decoration: none;
}
.wusa-ops-dashlink:hover,
.wusa-ops-dashlink:focus-visible {
  color: var(--pico-primary);
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.wusa-dash-icon {
  width: 1.35em;
  height: 1.35em;
}
.wusa-ops-feature-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.wusa-ops-feature-title > a:first-child {
  text-decoration: none;
}
.wusa-ops-feature-title > a:first-child:hover {
  text-decoration: underline;
}
.wusa-ops-feature-title .wusa-dash-icon {
  width: 1.6em;
  height: 1.6em;
}
.wusa-ops-days .wusa-ops-dashlink,
.wusa-dash-titled > .wusa-ops-dashlink {
  margin-left: auto;
}
.wusa-ops-days .wusa-dash-icon,
.wusa-dash-titled > .wusa-ops-dashlink .wusa-dash-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.wusa-ops-views .wusa-dash-icon {
  width: 1.2em;
  height: 1.2em;
}

.wusa-nowrap {
  white-space: nowrap;
}

/* /fields: a field with no camera we can read (Pershing, Bayland): a blank band
   where the picture would be, then what's known without one. */
.wusa-fields-nocam {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 7;
  margin-bottom: 0.5rem;
  border: 1px dashed var(--pico-muted-border-color);
  border-radius: calc(var(--pico-border-radius) / 2);
  color: var(--pico-muted-color);
  font-size: 0.9rem;
}
.wusa-dash .wusa-fields-nocam {
  aspect-ratio: auto;
  height: 12vh;
}

/* /fields: hitting and pitching spaces (the pavilion, cages, lanes). On the
   dashboard it's a second pane the screen rotates to (fields.js). */
.wusa-spaces {
  margin-top: 1.5rem;
}
.wusa-spaces-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.6rem;
  padding: 0;
}
.wusa-spaces-item {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--pico-muted-border-color);
  border-left: 4px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
}
.wusa-spaces-item.is-on {
  border-left-color: var(--wusa-chartreuse);
}
.wusa-spaces-item.is-nocam {
  border-style: dashed;
}
.wusa-spaces-item h4 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}
.wusa-spaces-facility {
  margin: 1rem 0 0.4rem;
  font-size: 1.1rem;
  color: var(--pico-muted-color);
}
.wusa-dash .wusa-spaces-facility {
  margin: 0.5em 0 0.3em;
  font-size: 1.1em;
}
.wusa-spaces-item p {
  margin: 0;
}
.wusa-spaces-lanes {
  margin: 0.4rem 0 0;
  padding-left: 0;
  list-style: none;
}
.wusa-spaces-lanes li {
  margin: 0;
  padding: 0.1rem 0;
}
.wusa-spaces-lanes li.is-in_use strong {
  color: var(--pico-primary);
}
.wusa-dash .wusa-spaces {
  margin: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.wusa-dash .wusa-spaces > h2 {
  font-size: 1.4em;
  margin: 0 0 0.5em;
}
.wusa-dash .wusa-spaces-list {
  grid-template-columns: repeat(auto-fill, minmax(14em, 1fr));
  font-size: 1.05em;
}
.wusa-spaces-item .wusa-fields-frame,
.wusa-spaces-item .wusa-fields-nocam {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  margin-bottom: 0.4rem;
}
.wusa-dash .wusa-spaces-item .wusa-fields-frame,
.wusa-dash .wusa-spaces-item .wusa-fields-nocam {
  aspect-ratio: auto;
  height: 9vh;
}
.wusa-dash [data-pane][hidden] {
  display: none;
}

/* On the wall, South Campus takes the full width and the smaller facilities
   share the row below, so the pane fits one screen. */
.wusa-dash .wusa-spaces-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.2em;
}
.wusa-dash .wusa-spaces-group {
  flex: 1 1 0;
  min-width: 0;
}
.wusa-dash .wusa-spaces-group:first-child {
  flex-basis: 100%;
}
.wusa-dash .wusa-spaces-group:first-child .wusa-spaces-list {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.wusa-dash .wusa-spaces-group:not(:first-child) .wusa-spaces-list {
  grid-template-columns: 1fr;
}
.wusa-dash .wusa-spaces-item {
  padding: 0.45em 0.6em;
}
/* The dashboard's views, when it has more than one (dashboard.js). */
.wusa-dash-panes {
  display: inline-flex;
  gap: 0.3rem;
}
.wusa-dash-panes[hidden] {
  display: none;
}
.wusa-dash-panes button[aria-pressed="true"] {
  background: var(--pico-primary-background);
  border-color: var(--pico-primary-background);
  color: var(--pico-primary-inverse);
}
/* Play/pause for a dashboard's views: a media control, not one of the views. */
.wusa-dash-panes {
  align-items: center;
}
.wusa-dash-controls .wusa-dash-play {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: 0 0.25rem 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pico-contrast); /* Pico sets --pico-color to white on a button */
  box-shadow: none;
}
.wusa-dash-controls .wusa-dash-play:hover,
.wusa-dash-controls .wusa-dash-play:focus-visible {
  background: var(--pico-muted-border-color);
}
.wusa-dash-play svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}
/* A dashboard whose views are paused says so, controls shown or not. */
.wusa-dash-paused {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--pico-border-radius);
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  color: var(--pico-muted-color);
  font-size: 0.85rem;
}
.wusa-dash-paused svg {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
}
.wusa-dash-paused[hidden] {
  display: none;
}

/* A wall screen's activation code (video/screens.py): readable across a room. */
.wusa-screen-code {
  text-align: center;
  padding-block: 8vh;
  font-size: clamp(1rem, 2.4vw, 2rem);
  text-wrap: balance;
}
.wusa-screen-code p { margin-block: 0.4em; }
.wusa-screen-where { font-size: 1.4em; }
.wusa-screen-big {
  font-size: 3.6em;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.wusa-inline { display: inline; }
.wusa-inline button { padding: 0.15em 0.6em; margin: 0 0 0 0.4em; width: auto; }

/* The tournament view's field still (Joel, 11/14): tap to watch on /video. */
.wusa-ops-still img {
  display: block;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  margin-block: 0.3rem;
}
.wusa-ops-boardscore { font-weight: 600; margin: 0.1rem 0; }

/* WUSA Ops as a home-screen app (Joel, 11/14): iOS blurs the top of a home-screen
   app unless something is pinned at the very top, and tints from it instead (the
   WUSA Rules fix, e174e43). So the site header stays pinned in the app; a
   dashboard, which hides the header, pins a hairline of its own background. */
@media (display-mode: standalone) {
  .wusa-header {
    position: sticky;
    top: 0;
    z-index: 30;
  }
  body:has(.wusa-ops.is-dashboard)::before,
  body:has(.wusa-dash)::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--pico-background-color);
    z-index: 30;
  }
}

/* Find on the board (Joel, 11/14): a box on the view; on a dashboard, in its
   controls, hidden with them when idle. */
.wusa-ops-searchbar {
  margin: 0 0 0.6rem;
}
.wusa-ops-searchbar .wusa-ops-search {
  margin: 0;
}
.wusa-dash-controls .wusa-ops-search {
  width: 16em;
  margin: 0;
  padding: 0.3em 0.6em;
  height: auto;
  font-size: 0.9rem;
}
.wusa-ops-tile[hidden],
.wusa-ops-game[hidden] {
  display: none;
}
.wusa-ops-nomatch {
  color: var(--pico-muted-color);
}

/* While searching, the board shows only what matches: no work queue, if-needed
   list, spotlight, or summary line (Joel, 11/14). */
.wusa-ops.is-searching .wusa-ops-top,
.wusa-ops.is-searching .wusa-ops-spot,
.wusa-ops.is-searching .wusa-ops-dashsum {
  display: none;
}
/* The work queue: a badged button that opens the list. */
.wusa-ops-queue {
  margin: 0 0 0.6rem;
}
.wusa-ops-queue > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  list-style: none;
  cursor: pointer;
  padding: 0.25em 0.7em;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 999px;
  font-weight: 600;
}
.wusa-ops-queue > summary::-webkit-details-marker {
  display: none;
}
.wusa-ops-queue > summary::after {
  display: none; /* Pico's chevron */
}
.wusa-ops-badge {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: var(--ops-red);
  color: #fff;
  font-size: 0.85em;
  text-align: center;
  line-height: 1.5;
}
.wusa-ops-queue[open] > summary {
  margin-bottom: 0.4rem;
}

/* The search box's × (Joel, 11/14), in place of the browser's own. */
.wusa-ops-searchwrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.wusa-dash-controls .wusa-ops-searchwrap {
  width: auto;
}
.wusa-ops-searchwrap .wusa-ops-search {
  padding-right: 2.2em;
}
.wusa-ops-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}
.wusa-ops-search-clear,
.wusa-dash-controls .wusa-ops-search-clear {
  position: absolute;
  top: 50%;
  right: 0.35em;
  transform: translateY(-50%);
  width: 1.6em;
  height: 1.6em;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pico-muted-color);
  font-size: 1.5rem;
  line-height: 1;
}
.wusa-ops-search-clear:hover,
.wusa-ops-search-clear:focus-visible {
  color: var(--pico-color);
}
.wusa-ops-search-clear[hidden] {
  display: none;
}

/* Code in running text stays inline. Pico makes `code`, `kbd`, and `samp`
   inline-block, which lets a line break between a code span and the
   punctuation after it, stranding a comma at the start of the next line
   (the enrollment methodology, 11/20). Inline, the span keeps its tint across
   a wrap and its padding stays horizontal, so it doesn't crowd the lines
   around it. Code anywhere else (a widget, a big screen code) keeps Pico's. */
:where(p, li, dd, dt, td, th, blockquote, figcaption) :is(code, kbd, samp) {
  display: inline;
  padding: 0.1em 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
