/* H3: dlouhá slova nesmí roztáhnout stránku, sbalitelný popis projektu, tabulka odchylek, dotykové odkazy, výběr barvy. */
body, body :where(div, p, span, a, li, td, th, dd, dt, h1, h2, h3, h4, h5, label, button, small, b, strong, em, summary, blockquote, figcaption) { overflow-wrap: anywhere; }
.grow, .row > div, .card, .modal, .page, .page-h > div, .tm-side, .prop dd { min-width: 0; }
.ellipsis { overflow-wrap: normal; }
input, textarea, select { max-width: 100%; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
.wiki-body table, .md table, .wiki-view table { display: block; max-width: 100%; overflow-x: auto; }
.wiki-body td, .wiki-body th, .md td, .md th, .wiki-view td, .wiki-view th { overflow-wrap: anywhere; word-break: break-word; min-width: 4ch; }
img, svg, video { max-width: 100%; }

/* dlouhý popis projektu: tři řádky + „Zobrazit více“ */
.ph-descw { margin-top: 10px; max-width: 820px; }
.ph-desc { margin: 0; white-space: pre-line; }
.ph-desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph-descw .btn { margin-top: 4px; }

/* Reporty: tabulka odchylek se vejde do karty, první sloupec se zalamuje, ostatní zůstávají celé */
.tbl-wrap { max-width: 100%; position: relative; background: linear-gradient(to right, var(--surface), transparent 14px) left / 40px 100% no-repeat local, linear-gradient(to left, var(--surface), transparent 14px) right / 40px 100% no-repeat local, linear-gradient(to right, var(--border), transparent) left / 10px 100% no-repeat scroll, linear-gradient(to left, var(--border), transparent) right / 10px 100% no-repeat scroll; }
.tbl td:first-child, .tbl th:first-child { white-space: normal; min-width: 140px; max-width: 360px; overflow-wrap: anywhere; }
.tbl td:last-child, .tbl th:last-child { padding-right: 14px; }

/* výběr barvy avataru */
.color-pick { display: flex; align-items: center; gap: 12px; }
.color-sw { width: 56px; height: 44px; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); cursor: pointer; }

/* textové odkazy na dotykových zařízeních: skutečná plocha aspoň 44 px na výšku */
@media (max-width: 768px), (pointer: coarse) and (max-width: 1100px) {
  a.wp-name, a.fp-task, a.pt-name, a.hb-l, .f3-imp a, .banner a, a.ph-proj, a.t-proj, .proj-link, .task-modal a.crumb, .td-crumb a, .bp-foot, .tm-head a, .breadcrumb a, .t-sub a, .f3-trow, .heat-who, a.pt-link, .tm-crumbs a, .wiki-crumbs a, .bp-list a {
    display: inline-flex; align-items: center; min-height: 44px; padding-block: 2px;
  }
  .pt-name { display: flex; }
  .banner a { margin-inline: 2px; }
  .f3-imp li { margin-block: 2px; }
}
