/* The calm redesign (Oct 16, 2026): Tree tags (tags/tags.js). Loaded after styles.css, so a rule here wins over the same rule there.
   Docs/Hub design standard.md has the rules (Motion; Calm and focus). Colours only from the tokens in styles.css. */

/* ---------- the screen: the hero (Print with how many tags), the trees right under it, Latest prints quieter below ---------- */
.tg-screen { gap: 16px; }
.tg-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* The office PC: a small dot beside the title. Plain when it is on; a red dot with a few words when it is not. */
.tg-pc { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font: 600 .8125rem/1 var(--rt-body); cursor: pointer; }
.tg-pc:hover { background: var(--rt-hover); }
.tg-pc.on::before, .tg-pc.off::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--rt-dot); }
.tg-pc.off::before { background: var(--alert); }

/* The hero: how many tags, and Print. A slim bar that stays under the header (in a wrapper that hides the list behind it) while the list scrolls. */
.tg-stick { position: sticky; top: 57px; z-index: 3; margin-block: -8px; padding-block: 8px; background: var(--bg); }
.tg-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 12px 12px 22px; }
.tg-hero .hero-k { grid-column: 1 / -1; font-size: .875rem; }
.tg-hero .hero-v { min-width: 0; font-size: 2.75rem; line-height: 1; }
.tg-hero .hero-n { font-variant-numeric: tabular-nums; }
.tg-hero.none .hero-n, .tg-hero.none .hero-u { opacity: .7; }
.tg-hero .hero-a { margin: 0; }
.tg-hero .btn.tg-print { min-height: 52px; padding: 0 30px; border: 0; font: 800 1.5rem/1 var(--rt-cond); letter-spacing: .02em; text-transform: none; }
body.big-text .tg-hero .hero-v { font-size: 3rem; }
body.big-text .tg-hero .btn.tg-print { min-height: 56px; }

/* The trees: a row each, one soft line between. − / + at the right; at 0 the − hides (its place stays) and the 0 goes quiet. */
.tg-trees { gap: 12px; }
.tg-rows { gap: 0; }
.tg-row { gap: 14px; padding-block: 10px; }
.tg-row + .tg-row { border-top: 1px solid var(--border); }
.tg-row-t { font: 700 1rem/1.3 var(--rt-body); }
.tg-row-s { font-size: .8125rem; color: var(--text-2); }
.stp { gap: 6px; }
.stp-b { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text); }
.stp-b .ic { width: 18px; height: 18px; }
.stp-n { min-width: 30px; text-align: center; font: 800 1.5rem/1 var(--rt-cond); }
.stp.zero .stp-n { opacity: .55; font-weight: 600; }
.stp.zero .stp-b[data-step="-1"] { visibility: hidden; }
body.big-text .stp-b { width: 52px; height: 52px; }
body.big-text .stp-b .ic { width: 22px; height: 22px; }
body.big-text .tg-row-s { font-size: .9375rem; }
/* Larger text on a phone: the − / + sit under the name, so the name keeps its room. */
@media (max-width: 520px) {
  body.big-text .tg-tile { display: none; }
  body.big-text .tg-row { gap: 8px; }
  body.big-text .stp { gap: 2px; }
}
@media (max-width: 379px) { .tg-tile { max-width: 4.5rem; } .tg-row { gap: 10px; } }

/* Latest prints: smaller and quieter than the trees. One soft card; the newest three (and any that need you) show, the rest open. */
.tg-jobs { gap: 4px; margin-top: 8px; }
.tg-jobs-h { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding-left: 4px; }
.tg-h { font: 600 .875rem/1.3 var(--rt-body); color: var(--text-2); }
.tg-job-list { gap: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.tg-job { gap: 6px 10px; padding: 10px 14px; border-radius: 0; background: none; }
.tg-job + .tg-job { border-top: 1px solid var(--border); }
.tg-job-t { font: 600 .875rem/1.35 var(--rt-body); }
.tg-job-s { font-size: .75rem; color: var(--text-3); }
.tg-job-st { font: 600 .8125rem/1.3 var(--rt-body); }
.tg-job-acts { flex: none; margin-left: auto; align-items: center; }
.tg-job[data-status="failed"] .tg-job-acts, .tg-job[data-status="unknown"] .tg-job-acts { flex-basis: 100%; margin-left: 0; }
.tg-job .btn.small { min-height: 40px; padding: 0 16px; border: 1px solid var(--btn-line); border-radius: var(--r-pill); background: transparent; color: var(--ink-strong); }
.tg-job .btn.small:hover { background: var(--rt-hover); }
.tg-jobs .more { margin-top: 2px; }
.tg-jobs .more-b { padding: 4px 0 8px; }
.tg-jobs .more .tg-job-list { margin: 0; padding: 0; list-style: none; }
.tg-jobs .tg-job-list { margin: 0; padding: 0; list-style: none; }
@media screen and (min-width: 1200px) {
  .tg-cols { gap: 48px; }
  .tg-side .tg-jobs { margin-top: 0; }
}

/* ---------- Check the tags: the cards, and Print with two quiet choices under it ---------- */
.tg-wait { gap: 12px; padding: 4px 0 16px; }
.tag-sheet .tg-sub { display: inline-flex; align-items: center; color: var(--text-2); }
.tg-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.tg-foot .btn.tg-go { min-height: 54px; border-radius: var(--r-pill); }
.tg-foot-2 { display: flex; gap: 8px; }
.tg-foot-2 .btn.full { width: auto; flex: 1; min-height: 44px; border-radius: var(--r-pill); }
.tg-foot .btn.tg-keep { background: none; color: var(--ink-strong); border: 1px solid var(--btn-line); }
.tg-foot .btn.tg-not { color: var(--text-2); }
@media (min-width: 720px) { .tg-foot { padding-bottom: 16px; } }
.tg-card .stp-b { width: 44px; height: 44px; }
.tg-card .tg-price-line:empty, .tg-card [hidden] { display: none; }

.tg-row-s .ic { width: 14px; height: 14px; vertical-align: -2px; }
