/* Styles several screens share, none of them a first screen (Home, Today, the crew's day): moved from styles.css
   (Oct 21, 2026) so a first visit doesn't wait for them; js/screen-css.js loads this file with any screen that needs it.
   Kept in their old order. */

/* ---------- the website's spec box (load list) ---------- */
.spec li:last-child { border-bottom: 0; }
.spec li.y { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.spec.tight li { padding-block: 7px; }
.spec.tight li::before { top: .95em; }
.spec li.y .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* ---------- folds ---------- */
.s-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- Board: chips, search, rows ---------- */
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-body { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 20px; }

/* ---------- Wrap-up ---------- */
.opt .s-main { gap: 3px; }

/* ---------- Find a plant ---------- */
/* Browse everything as one list (Oct 11, 2026): the name box, Filters and Sort; the count and the filters in use as chips;
   then every supplier row. A phone shows each row in three short lines (name and price; size; form · supplier · how many ·
   list date); a computer 1100 px and wider shows a table with column heads. A row opens to show the supplier's own words. */
.pl { display: flex; flex-direction: column; gap: 12px; }
.pl-n { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--solid); color: var(--on-solid); font: 700 .8125rem/1 var(--rt-body); font-variant-numeric: tabular-nums; }

/* ---------- Brandon's Today ---------- */
.status .s-main strong { font: 600 1.25rem/1.25 var(--rt-body); }

/* ---------- Ads: the Audience Lab editor (js/ads/ads-editor.js and its sections) ---------- */
/* Generate and Discovery. */
.gen { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.gen:last-child { border-bottom: 0; }

/* ---------- the Ads redesign (docs/ads-redesign.md): drop-downs, Running now rows, test cards, questions ---------- */
.questions .searchbar select { min-width: 0; }

/* ---------- Tree tags (tags/tags.js; docs/tag-printing.md) ---------- */
.tag-box { padding: 8px 0 2px; }
.tag-preview { display: block; width: 100%; height: auto; }
.tag-preview .tg-tag { fill: var(--rt-tag); }
.tag-preview .tg-keyzone { fill: var(--rt-tag-zone); stroke: var(--rt-white); stroke-width: .25; stroke-dasharray: 1 1; }
.tag-preview .tg-hole, .tag-preview .tg-notch { fill: var(--rt-white); }
.tag-preview .tg-perf { stroke: var(--rt-tag-ink); stroke-width: .35; stroke-dasharray: 1.5 1; }
/* The printer's own font is a condensed one; textLength keeps each line the printed length. */
.tag-preview .tg-words { fill: var(--rt-tag-ink); font-family: var(--rt-cond); }
.tag-sheet [data-problems]:empty { display: none; }
.key-once { display: block; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-box); overflow-wrap: anywhere; font-size: 1rem; }

/* ---------- Ads, to the Hub design standard (Oct 11, 2026) ----------
   Brandon's design standard (Docs/Hub design standard.md) on every Ads view: the Ads tab ([data-screen="ads"]) and the
   builder ([data-screen="ads-builder"]), on top of the shared look (Hub polish, phase 1, PR #59: type scale, pills,
   cards, sheets, solid lines); only what is the Ads screens' own is here, scoped to those two. No ALL-CAPS, no emoji, no coloured left stripes, no dashed lines, nothing that scrolls sideways, and every
   number one unbroken piece. Tokens only (test/web/look.test.mjs). Screen only: the printed audience cards keep their
   own look. */
@media screen {
  :is([data-screen="ads"], [data-screen="ads-builder"]) .pill.wrapok { white-space: normal; }
  :is([data-screen="ads"], [data-screen="ads-builder"]) .fold .s-main strong { font: 700 1.0625rem/1.3 var(--rt-body); letter-spacing: 0; color: var(--text); }
}

/* ===== Design match: ads ===== */
@media screen {
  .pl-n { flex: none; font-size: .75rem; color: var(--text-3); white-space: nowrap; }
}

/* ---------- Tree tags (redesign round 5, step 8) ----------
   Each tree's row: − / + with how many tags between; "Print N tags" held above the bar under the list. Check the tags: a
   card per tree chosen, Print / Save the words only / Not now at the foot. */
.stp { display: inline-flex; align-items: center; gap: 4px; }
.stp-b { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font: 600 1.25rem/1 var(--rt-body); cursor: pointer; }
.stp-b:hover { background: var(--rt-hover); }
.stp-n { min-width: 32px; text-align: center; font: 700 1.375rem/1 var(--rt-cond); font-variant-numeric: tabular-nums; }
.stp input[type="number"]::-webkit-inner-spin-button, .stp input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tg-cards { display: flex; flex-direction: column; gap: 14px; }
.tg-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-box); background: var(--bg); }
.tg-foot { position: sticky; bottom: 0; z-index: 1; margin: 0 -20px; padding: 12px 20px 4px; border-top: 1px solid var(--border); background: var(--surface); }

/* ---------- Tree tags ---------- */
.tg-pc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.tg-pc.on::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }
.stp { flex: none; gap: 4px; }
.stp-b { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); font: 400 1.25rem/1 var(--rt-body); }
.stp-n { min-width: 28px; font: 800 1.375rem/1 var(--rt-cond); }
/* Check the tags: the head says what it is for, a card per tree, Print / Save the words only / Not now held at the foot. */
.sheet.tag-sheet { padding-bottom: 0; max-height: calc(94 * var(--vh)); border-radius: 22px 22px 0 0; }
.tag-sheet .sheet-title { grid-column: 1; font: 800 1.625rem/1 var(--rt-cond); letter-spacing: .01em; text-transform: uppercase; color: var(--text); }
.tag-sheet .sheet-body { gap: 14px; padding: 14px 18px 0; }
.tg-cards { gap: 14px; }
.tg-card { gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.tg-card .tag-box { padding: 0; border-radius: 6px; overflow: hidden; }
.tag-sheet .field label { font: 600 .8125rem/1.3 var(--rt-body); color: var(--text-2); }
.tag-sheet .field label .why { margin-left: 6px; font: 400 .75rem/1.3 var(--rt-body); color: var(--text-3); }
.tag-sheet .field input:not(.stp-in) { min-height: 46px; height: 46px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2);
  font: 400 1rem/1.2 var(--rt-body); }
.tag-sheet .two.tg-pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tg-price { display: flex; flex-direction: column; gap: 5px; }
.tag-sheet .hint.tg-price-line { margin: 0; font-size: .75rem; color: var(--text-3); }
.tg-how { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.tg-how-w { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.stp.big .stp-b { width: 44px; height: 44px; }
.tag-sheet .tg-how .stp input.stp-in { width: 48px; min-height: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--text); text-align: center;
  font: 800 1.5rem/1 var(--rt-cond); }
.tag-sheet .tg-how .stp input.stp-in:focus { outline: 3px solid var(--focus); outline-offset: 0; border-radius: 8px; }
.check.tg-fill[hidden] { display: none; }
.check.tg-fill input:checked { border-color: var(--cta); background: var(--cta); }
.check.tg-fill input:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--on-cta); border-width: 0 3px 3px 0;
  transform: rotate(45deg); }
.check.tg-fill input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tg-foot { position: sticky; bottom: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 -18px;
  padding: 12px 18px calc(24px + var(--safe-b)); border-top: 1px solid var(--border); background: var(--surface); }
.tg-foot .btn.tg-keep { background: var(--surface-2); color: var(--text); }
.tg-foot .btn.tg-not { background: none; color: var(--text-2); font-weight: 600; }
@media (min-width: 720px) {
  .sheet.tag-sheet { width: 600px; max-height: calc(88 * var(--vh)); border-radius: 20px; }
  .tag-sheet .two.tg-pair { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .tg-foot { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; padding-bottom: 16px; }
}

/* ---------- Stock ---------- */
.st-tile { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 3.5rem; height: 3.5rem; border-radius: 10px;
  background: var(--pick); color: var(--on-pick); }
.st-tile-n { display: inline-flex; align-items: center; font: 800 1.625rem/.9 var(--rt-cond); font-variant-numeric: tabular-nums; }
.st-tile-n.dot-before { flex-direction: column; gap: 3px; }
.st-tile-n.dot-before::before { margin: 0; }
.st-tile.low:not(.big) { gap: 1px; }
.st-tile-w { font: 800 .75rem/1 var(--rt-cond); letter-spacing: .06em; text-transform: uppercase; }
.st-tile.big { width: 3.25rem; height: 3.25rem; }
.card.fold.st-fold .s-main strong, .card.fold.drift-quiet .s-main strong { font: 700 .875rem/1.3 var(--rt-body); color: var(--text); }
.card.fold.st-fold .fold-body, .card.fold.drift-quiet .fold-body { padding: 12px; }
.card.drift .card-t { font: 700 .9375rem/1.3 var(--rt-body); }
.card.drift .card-s { font-size: .8125rem; color: var(--text-2); }
.card.drift .acts { gap: 6px; }

/* ---------- Find a plant ---------- */
.pl-yards, .spec.bare ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* ---------- Fill a computer screen (Brandon, Oct 13, 2026: "too much empty space", "no defining each job") ----------
   The Board's jobs are split by a thin line, and on a wide computer each row spreads into columns (the name and its line,
   the crew, the steps) instead of leaving the middle empty. Equipment is two columns (problems and service | the
   equipment). (Tree tags is the design's one column now: css/tags.css.) Phones are unchanged but for the lines. */
