/* APT POY Standings (0.12.0, 0.12.1) — rides on the leaderboard's look (.apt-lb tokens, tabs, table); only what is new is here.
   Approved exception (Matt 2026-11-20: "Plugin element"): the plugin keeps its own CSS on the site's --apt-* tokens. */
.apt-poy-wait { display: none; }
.apt-poy .apt-lb-head { align-items: center; }
/* 0.18.0: the POY sponsor's logo sits above the title */
.apt-poy-logolink { display: inline-block; }
.apt-poy-logo { display: block; max-height: 56px; max-width: 240px; width: auto; height: auto; margin: 0 0 8px; object-fit: contain; }
/* 0.19.0: unofficial (unpublished) points */
.apt-poy-unoff { display: block; font-size: 11px; font-weight: 600; color: var(--lb-muted); white-space: nowrap; }
.apt-poy-events .apt-poy-unoff { display: inline; color: #a15c00; }
.apt-poy-unofffoot { margin: 6px 0 0; font-size: var(--apt-text-xs, 13px); color: var(--lb-muted); }
/* 0.20.2: switching contest keeps the board (dimmed) until the next one arrives — no collapse, no page jump */
.apt-poy-busy .apt-lb-tablewrap, .apt-poy-busy .apt-poy-note, .apt-poy-busy .apt-poy-unofffoot { opacity: .45; transition: opacity .15s; pointer-events: none; }
.apt-poy-draft { background: #ffd400; color: var(--lb-navy); }
.apt-poy-tabs { margin-bottom: 4px; flex-wrap: wrap; overflow-x: visible; }   /* 0.12.1: twelve contests — wrap, never hide Senior Div 4–5 off the edge */
/* 0.17.1 (Matt, 2026-11-21: "the national doesn't look like a dropdown - can we move it to right side of page and make it
   look more like a dropdown menu?"): the picker sits at the right of the title row (the title takes the rest and wraps
   within it) and is drawn as a menu button — navy border, bold label, a chevron. */
.apt-poy .apt-lb-head { flex-wrap: nowrap; }
.apt-poy .apt-lb-head .apt-lb-title { flex: 1 1 auto; min-width: 0; }
.apt-poy-pick { display: flex; flex: 0 0 auto; margin-left: auto; align-self: flex-start; flex-direction: column; align-items: stretch; gap: 4px; font-weight: 700; color: var(--lb-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.apt-poy-pick select { -webkit-appearance: none; appearance: none; font: inherit; font-size: var(--apt-text-sm, 15px); font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--lb-navy); min-width: 15em; max-width: 20em; padding: 10px 40px 10px 14px; border: 2px solid var(--lb-navy); border-radius: 8px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23001F4D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.apt-poy-pick select:hover { background-color: var(--lb-light); }
.apt-poy-pick select:focus-visible { outline: 3px solid var(--lb-blue); outline-offset: 2px; }
.apt-poy-q { display: block; width: 100%; max-width: 22em; margin: 6px 0 10px; padding: 9px 12px; font: inherit; border: 1.5px solid var(--lb-grey); border-radius: 999px; }
.apt-poy-table td.ch, .apt-poy-table th.ch { text-align: left; color: var(--lb-muted); white-space: normal; }
.apt-poy-table td.evn { color: var(--lb-muted); }
/* 0.17.0: Events = one count per event type ("6/8 Locals · 1/2 Elevated …"); stacked on a phone */
.apt-poy-evs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; font-size: var(--apt-text-xs, 13px); white-space: nowrap; }
.apt-poy-ev b { color: var(--lb-navy); }
.apt-poy-ev.none { opacity: .55; }
/* 0.17.2: a full type — light green, ✓ */
.apt-poy-ev.full { background: #e7f4e4; color: #2f6b2a; border-radius: 999px; padding: 1px 8px 1px 6px; margin: -1px -4px; }
.apt-poy-ev.full b { color: #2f6b2a; }
.apt-poy-ev.full i { font-style: normal; font-weight: 800; margin-right: 3px; }
.apt-poy-sum li.full { color: #2f6b2a; }
.apt-poy-fullnote { font-weight: 700; color: #2f6b2a; }
.apt-poy-note { margin: 2px 0 10px; padding: 8px 12px; background: var(--lb-light); border-left: 3px solid var(--lb-navy); border-radius: 4px; color: var(--lb-text); font-size: var(--apt-text-xs, 13px); line-height: 1.5; }
.apt-poy-note .apt-poy-ev.full { margin: 0 2px; }
.apt-poy-chsub { display: none; }
.apt-poy-table td.tot { color: var(--lb-navy); }
.apt-poy-more { width: 100%; margin-top: 12px; padding: 11px; border: 2px solid var(--lb-navy); border-radius: 999px; background: #fff; color: var(--lb-navy); font-weight: 700; }
.apt-poy-more:hover { background: var(--lb-navy); color: #fff; }
/* the breakdown: what counts is highlighted, what doesn't is muted (Matt 2026-11-20) */
.apt-poy-open > td { background: var(--lb-light); padding: 6px 10px 16px; white-space: normal; text-align: left; }
.apt-poy-sum { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--lb-navy); font-size: var(--apt-text-xs, 13px); }
.apt-poy-events { width: 100%; border-collapse: separate; border-spacing: 0 3px; font-size: var(--apt-text-xs, 13px); font-variant-numeric: tabular-nums; }
.apt-poy-events th { text-align: left; color: var(--lb-muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; }
.apt-poy-events td { padding: 7px 8px; background: #fff; vertical-align: top; }
/* 0.12.1: the breakdown sits INSIDE .apt-lb-table, so ".apt-lb-table td" (nowrap, centred) reached its cells too — one long
   event name widened the whole standings table past a phone screen and pushed Points off the edge. Undo both here. */
.apt-poy-events th, .apt-poy-events td { white-space: normal; text-align: left; }
.apt-poy-events td.d, .apt-poy-events td.sc, .apt-poy-events td.fn, .apt-poy-events td.ct, .apt-poy-events td.pt { white-space: nowrap; }
/* 0.14.0: Event Type · Score · Finish each in their own column; the headers sit over their own cells */
.apt-poy-events th.sc, .apt-poy-events td.sc { text-align: right; }
/* 0.16.1 (Matt, 2026-11-21: "could we center the finish?"): Finish sits centred, header and cells alike */
.apt-poy-events th.fn, .apt-poy-events td.fn { text-align: center; }
/* 0.14.0: the breakdown sits inside .apt-lb-table, whose "thead th { text-align: center }" outranks ours — so every header was
   centred over a left-aligned column. Matched specificity + one class, so each header sits over its own cells. */
.apt-lb-table .apt-poy-events thead th { text-align: left; padding: 2px 8px; }
.apt-lb-table .apt-poy-events thead th.sc, .apt-lb-table .apt-poy-events thead th.pt { text-align: right; }
.apt-lb-table .apt-poy-events thead th.fn { text-align: center; }
.apt-poy-events td.sc { padding-left: 14px; }
.apt-poy-events td.fn { padding-left: 14px; padding-right: 14px; }
.apt-poy-rounds { color: var(--lb-muted); font-weight: 500; margin-right: 2px; }
.apt-poy-field { color: var(--lb-muted); font-weight: 500; }
.apt-poy-events td.ct { font-size: 11px; }
/* 0.13.0: Finish (74 · T2/8) and the event name as a link to its leaderboard */
.apt-poy-events a.apt-poy-evlink { color: inherit; text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 2px; }
.apt-poy-events a.apt-poy-evlink:hover { text-decoration-color: currentColor; }
.apt-poy-events th.pt, .apt-poy-events td.pt { text-align: right; }
.apt-poy-events tr.counted td { background: #e7f3ea; font-weight: 600; color: var(--lb-text); }
.apt-poy-events tr.counted td:first-child { box-shadow: inset 4px 0 0 #2e7d32; }
.apt-poy-events tr.dropped td { color: var(--lb-muted); }
.apt-poy-events tr.dropped td.pt { text-decoration: line-through; }
.apt-poy-yes { color: #2e7d32; font-weight: 700; white-space: nowrap; }
.apt-poy-no { color: var(--lb-muted); white-space: nowrap; }
.apt-poy-carry { color: var(--lb-blue); font-weight: 600; }
/* 0.22.0 movement (worker poymove-r1): ▲ green / ▼ red / – grey / New, in a narrow column after Pos */
.apt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.apt-poy-table th.mv, .apt-poy-table td.mv { width: 3.5em; text-align: left; padding-left: 0; padding-right: 4px; white-space: nowrap; }
.apt-poy-mv { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.apt-poy-mv i { font-style: normal; font-size: 9px; }
.apt-poy-mv.up { color: #2e7d32; }
.apt-poy-mv.down { color: #c62828; }
.apt-poy-mv.same { color: var(--lb-muted); font-weight: 400; }
.apt-poy-mv.new { color: var(--lb-blue); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.apt-poy-mvfoot, .apt-poy-linefoot { margin: 6px 0 0; font-size: var(--apt-text-xs, 13px); color: var(--lb-muted); }
/* 0.22.0 NAC priority-exemption line (worker poyexempt-r1, Admin Setting "POY Exemption Line") */
.apt-poy-table tr.apt-poy-in td.pos { box-shadow: inset 3px 0 0 #2e7d32; }
.apt-poy-table tr.apt-poy-line td { padding: 0; height: 0; border: 0; }
.apt-poy-table tr.apt-poy-line td span { display: block; margin: 2px 0; padding: 3px 10px; border-top: 2px dashed #2e7d32; color: #2e7d32; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: center; }
@media (max-width: 767px) {
  .apt-poy-events th.sl, .apt-poy-events td.sl { display: none; }
  /* 0.22.0 (Matt: "We could suppress or shrink the event totals on mobile for space to show movement"): the per-type counts
     go on a phone — a tap on the player still shows every event */
  .apt-poy-table th.evn, .apt-poy-table td.evn { display: none; }
  .apt-poy-table td.ch, .apt-poy-table th.ch { display: none; }
  .apt-poy-chsub { display: block; }
  .apt-poy-evs { flex-direction: column; align-items: center; gap: 0; font-size: 11px; }
  .apt-poy .apt-lb-head { flex-wrap: wrap; }
  .apt-poy-pick { width: 100%; margin-left: 0; }
  .apt-poy-pick select { min-width: 0; max-width: none; width: 100%; }
  .apt-poy-tabs .apt-lb-tab { padding: 6px 11px; }
  .apt-poy-events th, .apt-poy-events td { padding-left: 6px; padding-right: 6px; }
  /* 0.13.4 / 0.14.0: on a phone the Counts label goes (the green highlight and the struck-through points already say it) and
     a multi-round score drops its rounds under the total, so Score · Finish · Pts stay on screen */
  .apt-poy-events th.ct, .apt-poy-events td.ct { display: none; }
  .apt-poy-events td.sc, .apt-poy-events td.fn { padding-left: 6px; }
  .apt-poy-events td.sc { white-space: normal; }
  .apt-poy-events td.sc .apt-poy-rounds { display: block; margin: 0; font-size: 11px; }
}
