/* Ticking off staffing changes (templates/_ticks.html, static/ticks.js), in Trueread Noir.
   A suggestion reads as a signed line with a square box in front: "+" in Sodium for a person to add, "−" in
   Mercury for one to take off, and the words say which. Done is the kit's done style, not a colour (Noir has no
   green): the box fills White with a Void tick, the line steps back to Smoke and is struck through, and "Done"
   follows it; "2 of 3 done" counts them. */
.tick-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
form.tick { display: inline; margin: 0; }
.tick-box { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 2px 0; border: 0; background: none;
  color: var(--tr-text); font: inherit; text-align: left; cursor: pointer; }
.tick-box:focus-visible { outline: 2px solid var(--tr-focus); outline-offset: 2px; border-radius: var(--tr-radius); }
.tick-mark { flex: none; position: relative; width: 18px; height: 18px; border: 1px solid var(--tr-field-edge); border-radius: var(--tr-radius);
  background: var(--tr-well); }
.tick-box:hover .tick-mark { border-color: var(--tr-text); }
.tick-box.is-done .tick-mark { border-color: var(--tr-text); background: var(--tr-text); }
.tick-box.is-done .tick-mark::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid var(--tr-on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* The line: words in White (the tone class on it says busier or quieter), led by its sign in the reading colour. */
.tick-text { color: var(--tr-text); }
.tick-text:is(.busier, .quieter)::before { display: inline-block; min-width: 1ch; margin-right: 6px; font-family: var(--tr-font-mono); font-weight: 500; }
.tick-text.busier::before { content: "+"; content: "+" / ""; color: var(--tr-above); }
.tick-text.quieter::before { content: "\2212"; content: "\2212" / ""; color: var(--tr-below); }
.tick-box.is-done .tick-text { color: var(--tr-text-2); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--tr-text-2); }
.tick-box.is-done .tick-text::before { color: var(--tr-text-2); }
/* "Done" after a ticked line, in words; screen readers hear ", done" from the button itself. */
.tick-box.is-done .tick-text::after { content: "Done"; content: "Done" / ""; display: inline-block; margin-left: 10px;
  font: var(--tr-label); letter-spacing: .02em; color: var(--tr-text); text-decoration: none; }
.tick-changed { font: var(--tr-label); letter-spacing: .02em; color: var(--tr-text-2); }
.tick-changed::before { content: "(Check) "; content: "(Check) " / ""; }
.tick-progress { font: var(--tr-label); letter-spacing: .02em; color: var(--tr-text-2); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .tick-mark { transition: background-color var(--tr-dur-1, 120ms) linear, border-color var(--tr-dur-1, 120ms) linear; }
}
@media (pointer: coarse) {
  .tick-box { min-height: 44px; }
  .tick-mark { width: 22px; height: 22px; }
  .tick-box.is-done .tick-mark::after { left: 7px; top: 3px; }
}
@media (forced-colors: active) {
  .tick-box.is-done .tick-mark { background: Highlight; border-color: Highlight; }
  .tick-box.is-done .tick-mark::after { border-color: HighlightText; }
}

/* Day page: "2 of 3 done" above the staffing changes. */
.staff-progress { margin: 0 0 12px; }
