/* =========================================================================
   PRINT — US Letter, black-and-white friendly.
   body.print-guide       → entire guide (all content, collapsed sections opened)
   body.print-worksheets  → only blocks marked [data-worksheet] plus section titles
   With neither class (e.g. browser menu > Print) the entire guide prints.
   ========================================================================= */
@page { size: letter portrait; margin: 0.6in 0.6in 0.7in; }

@media print {
  :root { --gutter: 0; }
  html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; line-height: 1.45; }
  * { box-shadow: none !important; text-shadow: none !important; }
  a { color: #000 !important; text-decoration: none; }

  /* Hide interactive chrome */
  .no-print, .brandbar, .secnav, .toolbar, .backtop, .inapp-notice, .skip-link, .btn, .linkbtn,
  .signup, .completion, .site-footer, .confirm-panel, .ph, .res-hero__photo, .opener__photo, .dev-flag, .save-status { display: none !important; }
  .print-only { display: block !important; }

  /* Running brand line */
  .print-header { display: flex !important; justify-content: space-between; align-items: center; border-bottom: 1.5pt solid #000; padding-bottom: 6pt; margin-bottom: 14pt; font: 700 8pt/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; }
  .print-header img { width: 1.9in; }

  /* Dark surfaces become white with black type (ink-friendly) */
  .dark, .res-hero, .opener, .figure-hero, .callout--dark, .site-footer, .poll { background: #fff !important; color: #000 !important; }
  .res-hero .wrap, .opener__text { padding: 0 !important; }
  .res-hero h1 { font-size: 44pt; }
  .res-hero__desc, .res-hero__foot, .stats__l, .figure-hero__l, .dark .smallprint, .site-footer, .poll__kicker { color: #000 !important; }
  .stats { border-color: #000; }
  .green, .opener__num, .figure-hero__n, .directory__n, .qtm__mark, .crossref__n, .steps li::before, .poll__opt b { color: #000 !important; }
  .label, .eyebrow, .qtm__label, .opener__marker, .yn__group { color: #000 !important; }
  .res-hero__rule, .hub-hero__rule, .cover__rule, .qtm::before, .callout::before { background: #000 !important; height: 2pt !important; }

  .wrap { max-width: none; padding: 0; }
  .section { break-before: page; }
  .section:first-of-type { break-before: auto; }
  .opener { border-bottom: 2pt solid #000; margin-bottom: 10pt; }
  .opener__grid { display: block; min-height: 0; }
  .opener__bars { display: none; }
  .opener__head { gap: 10pt; }
  .opener__num { font-size: 64pt; }
  .opener__title { font-size: 24pt; }
  .section__body { padding: 0; }
  .pull { font-size: 22pt; }
  .big-statement { font-size: 26pt; padding: 10pt 0; }
  .block-title, .fin__title, .callout__title, .checklist__head h3 { font-size: 16pt; }
  .qtm__q { font-size: 14pt; }
  .lede-grid { display: block; }
  .body-lg { font-size: 10.5pt; color: #000; }

  .callout, .callout--dark, .poll, .crossref { background: #fff !important; border: 1pt solid #000 !important; padding: 10pt 12pt !important; border-radius: 0; break-inside: avoid; }
  .poll__opt, .poll__sticker { background: #fff !important; border: .75pt solid #000; color: #000; }

  /* Tables: always a real table in print */
  .fin table, .fin thead, .fin tbody, .fin tr, .fin th, .fin td { display: revert !important; }
  .fin thead { position: static !important; width: auto; height: auto; clip: auto; }
  .fin td::before { content: none !important; }
  .fin th, .fin td { border-bottom: .5pt solid #000; padding: 4pt 6pt; color: #000 !important; }
  .fin thead th { border-bottom: 1.5pt solid #000; color: #000; }
  .fin, .figure-hero, .checklist, .callout, details.expand { break-inside: avoid; }
  .qtm__label, .qtm__q { break-after: avoid; }
  .figure-hero { border: 1.5pt solid #000; padding: 10pt; }
  .figure-hero__n { font-size: 40pt; }
  .smallprint, .age-note { color: #000 !important; font-size: 8.5pt; }

  /* Checkboxes: drawn with borders + text tick so they print without background graphics */
  .check input[type="checkbox"], .yn input[type="checkbox"] { width: 14pt; height: 14pt; border: 1.25pt solid #000 !important; background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .check input[type="checkbox"]::after, .yn input[type="checkbox"]::after { color: #000 !important; font-size: 12pt; }
  .check input[type="checkbox"]:checked::after, .yn input[type="checkbox"]:checked::after { transform: scale(1); }
  .check label { min-height: 0; padding: 5pt 0; }
  .check, .yn { border-color: #000; break-inside: avoid; }

  /* Answers: textareas replaced by full-length text so nothing is clipped */
  .field textarea { display: none !important; }
  .field input[type="text"], .field input[type="date"], .field input[type="number"] { border-bottom: .75pt solid #000; padding: 2pt 0; min-height: 0; font-size: 10.5pt; }
  .print-answer { display: block !important; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; min-height: 54pt; padding: 4pt 0; border-bottom: .75pt solid #000; background-image: repeating-linear-gradient(180deg, transparent 0, transparent 17pt, #999 17pt, #999 18pt); line-height: 18pt; }
  .print-answer:not(:empty) { background: none; min-height: 0; }

  /* Expandable: always open when printing */
  details.expand > summary::after { content: "" !important; }
  details.expand > .expand__body { display: block !important; }

  .directory a, .directory .dir-disabled { min-height: 0; padding: 3pt 0; opacity: 1; }
  .directory__s { display: none; }
  .dir-section { break-after: page; }

  .print-footer { display: block !important; margin-top: 18pt; border-top: 1pt solid #000; padding-top: 6pt; font-size: 8pt; letter-spacing: .1em; text-transform: uppercase; }

  /* ---------- Worksheets-only mode ---------- */
  body.print-worksheets main > *:not(.section):not(.print-header):not(.print-ws-title) { display: none !important; }
  body.print-worksheets .section__body > *:not([data-worksheet]) { display: none !important; }
  body.print-worksheets .res-hero { display: none !important; }
  body.print-worksheets .section { break-before: auto !important; margin-bottom: 16pt; }
  body.print-worksheets .opener { border-bottom: 1pt solid #000; margin-bottom: 6pt; }
  body.print-worksheets .opener__num { font-size: 32pt; }
  body.print-worksheets .opener__title { font-size: 16pt; }
  body.print-worksheets .opener__marker { display: none; }
  body.print-worksheets .print-ws-title { display: block !important; font-family: var(--display); font-size: 24pt; text-transform: uppercase; margin-bottom: 10pt; }
}

@media print {
  .print-ws-title { display: none !important; }
  body.print-worksheets .print-ws-title { display: block !important; }
  .res-hero__foot strong, .res-hero__series { color: #000 !important; }
}

/* Assessment template components */
@media print {
  .res-hero__bg, .opener__photo, .closing__photo, .next-res, .score-auto, .stage__tag { display: none !important; }
  .res-hero--r001 .wrap { padding-top: 0 !important; }
  .res-hero--r001 h1 { font-size: 44pt !important; }
  .statement-box, .banner-dark, .score-bar, .closing, .cta-bar { background: #fff !important; color: #000 !important; border: 1pt solid #000; }
  .banner-dark::before, .score-bar::before { display: none; }
  .banner-dark__s, .closing p, .closing strong, .closing .smallprint, .ways .ways__t, .closing p.brand-sub, .opener--text .opener__aside, .opener--text .opener__aside strong, .figure-hero__s { color: #000 !important; }
  .banner-dark__t, .tile__n, .closing p.brand-line, .ways__n, .stage__name, .step-title span, .score-bar__v, .cta-bar__t { color: #000 !important; }
  .score-bar__v { background: #fff !important; border: 1.5pt solid #000; font-size: 40pt; }
  .score-bar__k { font-size: 18pt; }
  .score-bar, .formula, .stages, .tiles, .plan-step, .ways, .score-counts { break-inside: avoid; }
  .formula { background: #fff !important; border: 1pt solid #000; }
  .stage { border-top: 3pt solid #000 !important; background: #fff !important; outline: none !important; padding: 0 !important; }
  .stage.is-active { border: 2pt solid #000 !important; padding: 0 6pt !important; }
  .stage.is-active .stage__name::after { content: "  ◀ MY STAGE"; font-family: var(--body); font-size: 8pt; letter-spacing: .1em; }
  .stages { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10pt; }
  .score-grid, .grid-2, .qtm-row.has-side, .closing__grid, .fig-split { display: block !important; }
  .tiles { grid-template-columns: repeat(4, 1fr) !important; }
  .ways { grid-template-columns: repeat(3, 1fr) !important; display: grid !important; }
  .ways li { border-color: #000; }
  .plan-step__n { background: #fff !important; color: #000 !important; border: 1.25pt solid #000; }
  .section--page { border-top: 0; break-before: page; }
  .page-title { font-size: 30pt; margin-bottom: 8pt; }
  .closing { break-before: page; padding: 0; border: 0; }
  .closing .page-title { color: #000 !important; }
  .closing .label { border-color: #000; }
  .cta-bar { padding: 8pt 10pt; }
  .opener--text .opener__aside { padding: 6pt 0 !important; }
  .opener__pull { color: #000 !important; font-size: 18pt; }
  .inline-field__box input { border-bottom: .75pt solid #000; }
  .priority select { border-bottom: .75pt solid #000; -webkit-appearance: none; appearance: none; background: #fff; }
  .choice input { accent-color: #000; }
  .yn__text em { color: #000; }
  .yn label { min-height: 0; }
  .yn { padding: 4pt 0; }
  .yn-head { color: #000; }
  .footer-links { display: none !important; }
  /* worksheets mode: keep score, plan and checklists */
  body.print-worksheets .section--page .section__body > .page-title { display: block !important; font-size: 20pt; }
  body.print-worksheets .section--page { break-before: page; }
}

/* Compact print rhythm (keeps each area close to one page) */
@media print {
  html, body { font-size: 9.5pt; line-height: 1.4; }
  .dir-section { break-after: auto !important; padding: 6pt 0 0 !important; }
  .dir-section h2 { font-size: 16pt; margin-bottom: 4pt; }
  .directory a, .directory .dir-disabled { padding: 1pt 0 !important; grid-template-columns: 22pt 1fr; }
  .directory__n { font-size: 12pt; }
  .opener__num { font-size: 46pt !important; }
  .opener__title { font-size: 18pt !important; }
  .opener__marker { font-size: 7pt; }
  .opener { margin-bottom: 6pt; padding-bottom: 4pt; }
  .pull { font-size: 16pt !important; margin-bottom: 4pt; }
  .lede-grid { margin-bottom: 8pt; }
  .body-lg, .body-lg p { font-size: 9.5pt; line-height: 1.4; margin-bottom: 4pt; }
  .checklist { margin: 8pt 0; }
  .checklist__head h3 { font-size: 13pt; }
  .yn { padding: 2.5pt 0; }
  .yn__text { font-size: 9.5pt; line-height: 1.35; }
  .yn-head { padding-top: 2pt; font-size: 7pt; }
  .yn__group { padding: 6pt 0 2pt; font-size: 7.5pt; }
  .qtm { margin: 10pt 0 6pt; padding-top: 6pt; }
  .qtm__mark { font-size: 30pt; }
  .qtm__label { font-size: 7.5pt; margin-bottom: 2pt; }
  .qtm__q { font-size: 12pt !important; margin-bottom: 4pt; }
  .print-answer { min-height: 40pt; line-height: 16pt; background-image: repeating-linear-gradient(180deg, transparent 0, transparent 15pt, #999 15pt, #999 16pt); }
  .qtm-row .callout { margin: 6pt 0 !important; }
  .callout, .callout--dark { font-size: 9pt; padding: 6pt 9pt !important; margin: 8pt 0; }
  .callout p { margin-bottom: 4pt; }
  .source { margin-top: 2pt; }
  .block { margin: 12pt 0; }
  .step-title { font-size: 14pt; margin: 12pt 0 6pt; padding-bottom: 3pt; }
  .stage__name { font-size: 16pt; }
  .stage, .stage p { font-size: 8.5pt; }
  .plan-step { padding: 8pt 0; }
  .plan-step__t { font-size: 14pt; margin: 2pt 0 6pt; }
  .field { margin-bottom: 8pt; }
  .tile__n { font-size: 20pt; }
  .closing__head { font-size: 22pt; }
  .brand-line { font-size: 26pt; }
  .brand-sub { font-size: 16pt; }
  .cta-bar__t { font-size: 16pt; }
  .figure-hero__n { font-size: 32pt !important; }
}
@media print {
  .res-hero__single, .calc { display: none !important; }
  .res-hero--single .wrap { padding-top: 0 !important; }
  .model { background: #fff !important; border-top: 2pt solid #000; break-inside: avoid; }
  .models { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8pt; }
  .habits li { background: #fff !important; border-left: 2pt solid #000; }
  .tl__days, .ladder li::before { color: #000 !important; }
  .ladder li::before { background: #fff !important; border: 1pt solid #000; }
  .tl__item { background: #fff !important; break-inside: avoid; }
  .msg { background: #fff !important; color: #000 !important; border: 1pt solid #000; }
  .msgs { display: block !important; }
  .journey li { background: #fff !important; color: #000 !important; border: 1pt solid #000; margin-right: 0 !important; }
  .barcell__bar { background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fin--inputs input { border-bottom: .75pt solid #000; }
  .pricing__grid { grid-template-columns: repeat(4, 1fr) !important; display: grid !important; }
  .closing--text { padding: 0; }
}

/* ---------- Single-tool mode (Resource 003): body.print-tool prints one working tool ---------- */
@media print {
  body.print-tool main > *:not(.is-print-target):not(.print-header) { display: none !important; }
  body.print-tool .res-hero, body.print-tool .dir-section { display: none !important; }
  body.print-tool .section.is-print-target { break-before: auto !important; }
  .tool-actions { display: none !important; }
  /* roomier writing space on paper for the Biography Builder */
  .field--roomy .print-answer:empty { min-height: 126pt; }
  .field--roomier .print-answer:empty { min-height: 234pt; }
  .fin--text td, .fin--text th { text-align: left !important; }
  .fin--inputs.fin--text td input[type="text"] { width: 100%; border: 0; border-bottom: .75pt solid #000; min-height: 20pt; }
  .trio__row input, .inline-field__box--wide input { border-bottom: .75pt solid #000; }
  .scenario__flag, .sources a, .example { color: #000 !important; }
  .example { border-left: 2pt solid #000; }
  .done span { position: static !important; width: auto; height: auto; clip: auto; }
  a.fn { color: #000 !important; }
  .plan-step { break-inside: auto; }
  .field { break-inside: avoid; }
}
@media print {
  .plan-step__t, .step-title, .fin--inputs thead { break-after: avoid; }
  .plan-step .checklist__list, .fin--inputs { break-inside: avoid; }
  [data-tool="blueprint"] .print-answer:empty { min-height: 34pt; }
  [data-tool="blueprint"] .plan-step { padding-top: 6pt; padding-bottom: 4pt; margin-bottom: 0; }
  [data-tool="blueprint"] .field { margin-bottom: 4pt; }
  [data-tool="blueprint"] .lede-grid .pull { font-size: 16pt; }
  .field--roomier .print-answer:empty { min-height: 198pt; }
}
@media print {
  /* Blueprint: "your brand on one page" */
  [data-tool="blueprint"] .page-title { font-size: 22pt; margin-bottom: 2pt; }
  [data-tool="blueprint"] .lede-grid .pull { font-size: 12pt; margin-bottom: 2pt; }
  [data-tool="blueprint"] .lede-grid .body-lg, [data-tool="blueprint"] .lede-grid .body-lg p { font-size: 9pt; margin-bottom: 4pt; }
  [data-tool="blueprint"] .print-answer:empty { min-height: 24pt; }
  [data-tool="blueprint"] .plan-step { padding-top: 4pt; padding-bottom: 2pt; gap: 8pt; }
  [data-tool="blueprint"] .plan-step__t { font-size: 12pt; margin: 2pt 0 3pt; }
  [data-tool="blueprint"] .field { margin-bottom: 2pt; }
  [data-tool="blueprint"] .field__label { margin-bottom: 0; font-size: 9.5pt; }
  [data-tool="blueprint"] .fin th, [data-tool="blueprint"] .fin td { padding: 1pt 6pt 1pt 0; }
  [data-tool="blueprint"] .fin--inputs.fin--text td input[type="text"] { min-height: 17pt; padding: 0; }
  [data-tool="blueprint"] .trio { margin-bottom: 4pt; }
  [data-tool="blueprint"] .trio__row input { min-height: 18pt; padding: 0; }
  [data-tool="blueprint"] .grid-2 { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12pt; }
  [data-tool="blueprint"] .field input[type="date"] { min-height: 16pt; }
}
@media print {
  body.print-tool, body.print-tool main { min-height: 0 !important; height: auto !important; padding: 0 !important; margin: 0 !important; }
  body.print-tool .section.is-print-target, body.print-tool .is-print-target .section__body, body.print-tool .is-print-target .plan { padding-bottom: 0 !important; margin-bottom: 0 !important; border-bottom: 0 !important; }
  body.print-tool .is-print-target .callout:last-child { margin-bottom: 0 !important; }
}
@media print {
  body.print-tool .print-header { margin-bottom: 8pt; padding-bottom: 4pt; }
  [data-tool="blueprint"] .print-answer:empty { min-height: 20pt; }
  [data-tool="blueprint"] .plan-step { padding-top: 3pt; padding-bottom: 1pt; }
  [data-tool="blueprint"] .plan { margin-top: 2pt; }
}
@media print {
  .fin--plan th[scope="row"] { width: 11%; } .fin--plan td:nth-child(2) { width: 33%; } .fin--plan td.done-cell { width: 11%; }
  [data-tool="plan30"] .grid-2 { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12pt; }
  [data-tool="plan30"] .print-answer:empty { min-height: 40pt; }
  .field--roomier .print-answer:empty { min-height: 168pt; }
  .field--roomy .print-answer:empty { min-height: 108pt; }
}
@media print { .fin.fin--plan table { table-layout: fixed; width: 100%; } .fin.fin--plan thead th:nth-child(1) { width: 11%; } .fin.fin--plan thead th:nth-child(2) { width: 34%; } .fin.fin--plan thead th:nth-child(4) { width: 10%; } }
@media print { .fin.fin--groups table { table-layout: fixed; width: 100%; } .fin.fin--groups thead th:first-child { width: 26%; } .priority select { border: 0; border-bottom: .75pt solid #000; -webkit-appearance: none; appearance: none; background: #fff; width: 100%; } }

/* ---------- Media kit export (Resource 005): the athlete's document only, no site branding ---------- */
@media print {
  body.print-kit > *:not(#kit-print) { display: none !important; }
  body.print-kit #kit-print { display: block !important; }
  body.print-kit .kit-doc { max-width: none; padding: 0; box-shadow: none; font-size: 11pt; line-height: 1.5; }
  body.print-kit .kit-doc .kit-name { font-size: 26pt; }
  body.print-kit .kit-line { font-size: 12.5pt; }
  body.print-kit .kit-photo { width: 1.5in; }
  body.print-kit .kit-photo img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-kit .kit-sec, body.print-kit .kit-list li, body.print-kit .kit-head { break-inside: avoid; }
  body.print-kit .kit-doc .kit-h { break-after: avoid; }
  .kit-preview, .kit-actions { display: none !important; }
  .fin.fin--even table, .fin.fin--cred table, .fin.fin--dash table { table-layout: fixed; width: 100%; }
  .fin.fin--dash thead th:first-child { width: 34%; }
  .letter { border-left: 2pt solid #000; color: #000; }
  .field input[type="file"], #mk_photo_clear { display: none !important; }
  .field input[type="email"] { border-bottom: .75pt solid #000; }
}
@media print {
  .fin.fin--even thead th:first-child { width: auto; }
  /* Resource 005: let long tool steps flow across pages instead of jumping whole */
  [data-resource="r005"] .plan-step { display: block; break-inside: auto; }
  [data-resource="r005"] .plan-step__n { float: left; margin: 0 8pt 2pt 0; width: 22pt; height: 22pt; font-size: 11pt; }
  [data-resource="r005"] .plan-step__t { padding-top: 3pt; }
  [data-resource="r005"] .plan-step__body { clear: none; }
  [data-resource="r005"] .print-answer:empty { min-height: 44pt; }
  [data-resource="r005"] .field--roomy .print-answer:empty { min-height: 120pt; }
}
@media print {
  .fin.fin--bg table { table-layout: fixed; width: 100%; }
  .fin.fin--bg thead th:first-child { width: 30%; } .fin.fin--bg thead th:last-child { width: 20%; }
  .fin--cells td .print-answer:empty { min-height: 36pt; }
}
