/* The exercise and the report screen (builds on site.css). */

/* ---------- report ---------- */
.tp-report { display: grid; gap: 22px; }
.tp-report__head { display: grid; gap: 6px; }
.tp-report__title { font-size: 1.875rem; line-height: 1.45; font-weight: 600; }
h2.tp-report__title { font-size: 1.5625rem; }
.tp-report__meta { color: var(--tp-sub); font-size: 1rem; display: flex; flex-wrap: wrap; gap: 0 18px; }
.tp-report__lead { display: grid; gap: 6px; }
.tp-eyebrow-heading { font-size: 0.9375rem; font-weight: 600; color: var(--tp-gold-text); }
.tp-report__lead-item { font-size: 1.0625rem; color: var(--tp-sub); }
.tp-report__lead-move { font-size: 1.3125rem; font-weight: 600; line-height: 1.6; }
.tp-report__section { display: grid; gap: 14px; }
.tp-report__section-title { font-size: 1.3125rem; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--tp-line); }
.tp-report__item { display: grid; gap: 12px; }
.tp-report__item-title { font-size: 1.25rem; font-weight: 600; line-height: 1.6; }
.tp-report__group { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--tp-line); }
.tp-report__group-title { font-size: 1rem; font-weight: 600; color: var(--tp-sub); }
.tp-report__list { list-style: none; padding: 0; display: grid; gap: 12px; }
.tp-report__entry { display: grid; gap: 4px; padding-inline-start: 14px; border-inline-start: 3px solid var(--tp-success); }
.tp-report__entry.is-blocked { border-inline-start-color: var(--tp-wait); }
.tp-report__entry.is-resolved { border-inline-start-color: var(--tp-line); }
.tp-report__entry-title { font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.tp-report__plain-list { padding-inline-start: 22px; }
.tp-report__storage { font-size: 0.9375rem; color: var(--tp-sub); }
.tp-report__actions { margin-top: 8px; }
.tp-rows { display: grid; gap: 6px; }
.tp-row { display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr); gap: 2px 14px; font-size: 1.0625rem; line-height: 1.7; }
.tp-row:not(:has(.tp-row__label)) { grid-template-columns: minmax(0, 1fr); }
.tp-row__label { color: var(--tp-sub); font-size: 1rem; }
.tp-row__value { min-width: 0; overflow-wrap: anywhere; }
.tp-row--move .tp-row__value { font-weight: 600; }
.tp-row--muted .tp-row__value { color: var(--tp-sub); font-size: 1rem; }
.tp-row--warn .tp-row__value { color: var(--tp-wait); font-weight: 600; }
.tp-row--quote .tp-row__value { white-space: pre-wrap; background: var(--tp-soft); border-radius: 8px; padding: 8px 12px; }
.tp-report__appendix > summary { font-size: 1.0625rem; }

/* ---------- continuations, examples ---------- */
.tp-continue { margin-top: 32px; padding-top: 4px; border-top: 1px solid var(--tp-line); }
.tp-continue .tp-h2 { margin-top: 16px; }
.tp-example { border: 2px dashed var(--tp-gold); border-radius: 16px; padding: 18px 20px 22px; background: var(--tp-paper); display: grid; gap: 14px; }
.tp-example > .tp-tag { justify-self: start; }
.tp-segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-segmented__item { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1px solid var(--tp-control); border-radius: 999px; text-decoration: none; background: var(--tp-white); font-weight: 600; font-size: 1rem; }
.tp-segmented__item[aria-current="page"] { background: var(--tp-ink); color: var(--tp-white); border-color: var(--tp-ink); }

@media (max-width: 560px) {
  .tp-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tp-report__title { font-size: 1.5625rem; }
  .tp-report__lead-move { font-size: 1.1875rem; }
  .tp-example { padding: 14px 12px 18px; }
}

/* ---------- continued use: lists, the work chooser, the review ---------- */
.tp-section { display: grid; gap: 10px; }
.tp-section > .tp-h2 { margin: 12px 0 0; }
.tp-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.tp-entry { background: var(--tp-white); border: 1px solid var(--tp-line); border-inline-start: 4px solid var(--tp-success); border-radius: 10px; padding: 10px 14px; display: grid; gap: 4px; }
.tp-entry--muted { border-inline-start-color: var(--tp-line); background: var(--tp-paper); }
.tp-entry--wait { border-inline-start-color: var(--tp-wait); }
.tp-entry--cal { border-inline-start-color: var(--tp-gold); }
.tp-entry.is-warn { border-inline-start-color: var(--tp-error); }
.tp-entry.is-done { border-inline-start-color: var(--tp-line); }
.tp-entry.is-done .tp-entry__title { color: var(--tp-sub); }
.tp-entry__kind { font-size: 0.875rem; font-weight: 600; color: var(--tp-gold-text); }
.tp-entry__title { font-size: 1.125rem; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.tp-entry__title a { display: inline-block; min-height: 32px; text-decoration-thickness: 1px; }
.tp-entry__meta { font-size: 1rem; color: var(--tp-sub); line-height: 1.6; overflow-wrap: anywhere; }
.tp-entry__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-entry__actions { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 2px; }
.tp-entry__actions .tp-button { min-height: 44px; }
.tp-entry__actions .tp-button--secondary { padding: 6px 14px; font-size: 1rem; }
.tp-entry .tp-rows { margin-top: 4px; }
.tp-entry .tp-row { font-size: 1rem; }
.tp-tag--warn { background: #f6e3e1; color: var(--tp-error); }
.tp-tag--done { background: var(--tp-success-bg); color: var(--tp-success); }
.tp-bullets { padding-inline-start: 22px; display: grid; gap: 2px; }
.tp-back-line { margin-top: 24px; }
.tp-menu { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 8px; }
.tp-menu__link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: var(--tp-radius);
  background: var(--tp-white); border: 1px solid var(--tp-line); text-decoration: none; color: var(--tp-ink);
}
.tp-menu__link:hover { border-color: var(--tp-ink); }
.tp-menu__name { font-weight: 600; font-size: 1.125rem; }
.tp-menu__count { min-width: 32px; padding: 0 8px; border-radius: 999px; background: var(--tp-soft); color: var(--tp-sub); font-weight: 600; text-align: center; }
.tp-filters { margin-top: 20px; }
.tp-filters__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.tp-filters__grid .tp-field { margin-top: 10px; }
.tp-day__title { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 10px; }
.tp-review-checks { padding-inline-start: 26px; display: grid; gap: 6px; }
.tp-review-check { line-height: 1.7; }
.tp-review-check a { font-weight: 600; }
.tp-steps { border-inline-start: 3px solid var(--tp-line); padding-inline-start: 12px; margin-top: 10px; }
.tp-file { position: relative; }
.tp-file-input { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.tp-file:focus-within .tp-file__button { outline: 3px solid var(--tp-focus); outline-offset: 3px; }
.tp-file__button { cursor: pointer; }

@media (max-width: 560px) {
  .tp-filters__grid { grid-template-columns: minmax(0, 1fr); }
  .tp-entry { padding: 10px 12px; }
  .tp-entry .tp-row { grid-template-columns: minmax(92px, 38%) minmax(0, 1fr); gap: 0 10px; }
}

/* ---------- printing the report (an extra; the download is the report file) ---------- */
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff; font-size: 12pt; line-height: 1.6; }
  .tp-header .tp-nav, .tp-footer, .tp-skip, .tp-actions, .tp-continue, .tp-notice, .tp-report__appendix, .tp-back { display: none !important; }
  .tp-header { border: 0; }
  .tp-main { max-width: none; padding: 0; }
  .tp-card { border-color: #bbb; break-inside: avoid; }
  .tp-report__item { break-inside: avoid; }
  .tp-report__section-title { break-after: avoid; }
  a { text-decoration: none; }
}
