/* Coach's Team Recovery Plan Template. Classes prefixed ctp-. */
.ctp-form .hint { margin: 0 0 12px; }
.ctp-contacts { border: 3px solid var(--ink); padding: 14px 18px 8px; margin: 0; min-width: 0; }
.ctp-contacts legend { font-weight: 800; padding: 0 8px; }
.ctp-contacts .form-field { margin-bottom: 14px; }
.ctp-contacts .row { margin-bottom: 0; }
.ctp-remember { font-weight: 600; }
.ctp-actions { margin: 22px 0 10px; }
.ctp-actions .btn { min-height: 44px; }

.ctp-sheet { background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 26px 28px 20px; margin: 28px 6px 0 0; }
.ctp-sheet-head h3 { margin: 0 0 6px; font-size: 1.6rem; }
.ctp-meta { margin: 0 0 14px; font-weight: 700; color: var(--muted); font-size: .92rem; }
.ctp-sec { padding: 14px 0 6px; border-top: 3px solid var(--ink); }
.ctp-sec h4 { margin: 0 0 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red-dark); font-weight: 800; }
.ctp-list { margin: 0 0 10px; padding-left: 1.2em; display: grid; gap: 6px; }
.ctp-check { list-style: none; padding-left: 0; }
.ctp-ck { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; min-height: 44px; padding: 6px 0; }
.ctp-ck input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--red); }
.ctp-week { max-width: 520px; margin: 4px 0 8px; }
.ctp-week-svg { width: 100%; height: auto; display: block; }
.ctp-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0 0 10px; font-size: .88rem; }
.ctp-key b { display: inline-block; min-width: 1.6em; text-align: center; background: var(--ink); color: var(--white); padding: 0 4px; margin-right: 4px; }
.ctp-daylist { list-style: none; columns: 2; padding-left: 0; margin: 0 0 10px; font-size: .92rem; }
.ctp-lines p { margin: 0 0 10px; font-weight: 700; overflow-wrap: anywhere; }
.ctp-letter p { margin: 0 0 8px; }
.ctp-src { margin: 4px 0 10px; font-size: .88rem; }
.ctp-src summary { cursor: pointer; font-weight: 800; color: var(--link); min-height: 44px; display: flex; align-items: center; }
.ctp-src ul { margin: 0; padding-left: 1.2em; }
.ctp-src li { margin-bottom: 6px; overflow-wrap: anywhere; }
.ctp-sheet-blank { margin-top: 28px; }

.ctp-split { display: grid; gap: 28px; align-items: start; }
.ctp-last { margin-top: 48px; }
.ctp-photo { margin: 0; max-width: 300px; }
.ctp-photo img { width: 100%; height: auto; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--yellow); }
.ctp-photo figcaption { margin-top: 14px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.ctp-steps { padding-left: 1.4em; display: grid; gap: 8px; }
.ctp-table th, .ctp-table td { font-size: .92rem; }
.ctp-table td:last-child { white-space: normal; font-weight: 600; }

@media (min-width: 900px) {
  .ctp-split { grid-template-columns: 1.4fr 300px; }
  .ctp-split-rev { grid-template-columns: 300px 1.4fr; }
}
@media (max-width: 480px) {
  .tool-panel.ctp-form { padding: 20px 14px; margin-right: 0; }
  .ctp-remember { padding: 12px; }
  .ctp-sheet { padding: 20px 16px 14px; margin-right: 0; }
  .ctp-daylist { columns: 1; }
}

/* Print: the plan (or the blank template) only. */
@media print {
  @page { size: letter; margin: .4in .4in .5in; }
  .tool-sources, .tool-disclaimer, .ctp-form, .tool-meta { display: none !important; }
  #tool .container { max-width: none; padding: 0; }
  .ctp-sheet { box-shadow: none !important; border: 0; padding: 0; margin: 0; font-size: 6.9pt; line-height: 1.2; }
  .ctp-sheet-head h3 { font-size: 15pt; }
  .ctp-meta { font-size: 8pt; margin-bottom: 6px; }
  .ctp-sec { padding: 4px 0 2px; border-top: 1.5px solid #000; break-inside: avoid; }
  .ctp-sec h4 { font-size: 9pt; margin-bottom: 3px; color: #000; }
  .ctp-list { gap: 1px; margin-bottom: 4px; }
  .ctp-ck { min-height: 0; padding: 0; gap: 6px; }
  .ctp-ck input { width: 11px; height: 11px; margin-top: 2px; }
  .ctp-week { max-width: 3.9in; margin: 2px 0 2px; }
  .ctp-week-svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ctp-key { font-size: 7.5pt; margin-bottom: 3px; }
  .ctp-key b { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ctp-daylist { display: none; }
  #ctp-sec-week .ctp-list, #ctp-sec-week-b .ctp-list { column-count: 2; column-gap: .25in; display: block; }
  #ctp-sec-week .ctp-list li, #ctp-sec-week-b .ctp-list li { break-inside: avoid; margin-bottom: 2px; }
  .ctp-lines p { margin-bottom: 7px; }
  .ctp-letter p { margin-bottom: 3px; }
  .ctp-cols { column-count: 2; column-gap: .25in; }
  .ctp-srcline { display: block; font-size: 5.5pt; line-height: 1.2; margin: 4px 0 0; color: #222; border-top: 1px solid #000; padding-top: 2px; }
  .ctp-foot { position: fixed; left: 0; right: 0; bottom: 0; text-align: center; font-size: 7pt; font-weight: 700; margin: 0; display: block; }
  body.ctp-mode-blank #ctp-plan { display: none !important; }
  body.ctp-mode-plan #ctp-blank { display: none !important; }
  #ctp-blank[hidden] { display: none !important; }
  /* Keep the page text out of the way when only the sheet prints. */
  .no-print { display: none !important; }
}
