/* Representative Conversion Journey Diagnostic */
.cjd-page { background: var(--bg); }
.cjd-main { padding-top: var(--header-h); }
.cjd-hero { padding-top: clamp(4.5rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.cjd-hero h1 { max-width: 900px; margin-bottom: 1rem; font-size: clamp(2.8rem, 6.5vw, 5rem); }
.cjd-deck { max-width: 800px; margin-bottom: 1.15rem; color: #333833; font-size: clamp(1.28rem, 2.6vw, 1.7rem); line-height: 1.38; }
.cjd-byline { margin-bottom: 1.7rem; color: var(--teal); font-size: 0.95rem; font-weight: 650; }
.cjd-disclosure { max-width: 770px; margin-bottom: 0; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.cjd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

.cjd-decision, .cjd-bottom-line { padding: clamp(4.5rem, 8vw, 7rem) 0; border-block: 1px solid rgba(47,103,95,.18); background: rgba(232,239,236,.58); }
.cjd-section { padding: clamp(4.5rem, 8vw, 7rem) 0; border-bottom: 1px solid var(--line); }
.cjd-section-wide { background: rgba(255,255,255,.16); }
.cjd-reading-grid { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 760px); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.cjd-reading-copy { min-width: 0; }
.cjd-reading-copy h2, .cjd-wide-heading h2 { max-width: 760px; font-size: clamp(2rem, 4.3vw, 3.15rem); }
.cjd-reading-copy h3 { margin-top: 2rem; font-size: clamp(1.2rem, 2.3vw, 1.55rem); }
.cjd-reading-copy > p, .cjd-reading-copy > ul { max-width: 720px; }
.cjd-reading-copy > ul { margin: 0 0 1.5rem; padding-left: 1.35rem; }
.cjd-reading-copy > ul li { margin-bottom: .65rem; padding-left: .15rem; }
.cjd-reading-copy > ul li::marker { color: var(--teal); }
.cjd-margin-label, .cjd-section-number { color: var(--teal); font-size: .77rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cjd-margin-label { padding-top: .55rem; }
.cjd-margin-label span { display: inline-block; padding-top: .65rem; border-top: 2px solid var(--teal); }
.cjd-section-number { padding-top: .5rem; }
.cjd-lead { font-size: clamp(1.18rem, 2vw, 1.35rem); line-height: 1.55; color: #333833; }
.cjd-closing-line { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(47,103,95,.24); font-weight: 650; }

.cjd-decision-rows { margin-top: 2.5rem; border-top: 1px solid rgba(47,103,95,.28); }
.cjd-decision-row { display: grid; grid-template-columns: minmax(130px, .32fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(47,103,95,.22); }
.cjd-decision-row h3 { margin: .15rem 0 0; font-size: 1rem; letter-spacing: 0; }
.cjd-decision-row p { margin: 0; }
.cjd-decision-row ol { margin: 0; padding-left: 1.25rem; }
.cjd-decision-row li { margin-bottom: .65rem; padding-left: .25rem; }
.cjd-decision-row li:last-child { margin-bottom: 0; }
.cjd-decision-row li::marker { color: var(--teal); font-weight: 700; }

.cjd-journey { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem .85rem; margin: 2rem 0 2.2rem; padding: 1rem 0; border-block: 1px solid var(--line); font-size: .98rem; }
.cjd-journey strong { color: var(--teal-dark); }
.cjd-journey-arrow { color: var(--teal); font-weight: 700; }
.cjd-journey-compact { margin-top: 1.5rem; }

.cjd-wide-heading { display: grid; grid-template-columns: 80px minmax(0, 760px); gap: 1.5rem; align-items: start; margin-bottom: 2.5rem; }
.cjd-wide-heading p { max-width: 720px; color: var(--muted); }
.cjd-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cjd-table-wrap:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 4px; }
.cjd-table-hint { display: none; margin: 0 0 .7rem; color: var(--muted); font-size: .8rem; }
.cjd-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .94rem; line-height: 1.5; }
.cjd-table th, .cjd-table td { padding: 1rem 1rem 1.05rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.cjd-table th:last-child, .cjd-table td:last-child { padding-right: 0; }
.cjd-table thead th { padding-top: 0; color: var(--muted); font-size: .76rem; line-height: 1.25; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid rgba(47,103,95,.35); }
.cjd-table tbody th { color: var(--ink); font-weight: 650; }
.cjd-table-evidence th:nth-child(1), .cjd-table-evidence td:nth-child(1) { width: 23%; }
.cjd-table-evidence th:nth-child(2), .cjd-table-evidence td:nth-child(2) { width: 38%; }
.cjd-table-evidence th:nth-child(3), .cjd-table-evidence td:nth-child(3) { width: 39%; }
.cjd-table-hypotheses th:nth-child(1), .cjd-table-hypotheses td:nth-child(1) { width: 23%; }
.cjd-table-hypotheses th:nth-child(2), .cjd-table-hypotheses td:nth-child(2) { width: 43%; }
.cjd-table-hypotheses th:nth-child(3), .cjd-table-hypotheses td:nth-child(3) { width: 34%; }
.cjd-table-confidence th:nth-child(1), .cjd-table-confidence td:nth-child(1) { width: 30%; }
.cjd-table-confidence th:nth-child(2), .cjd-table-confidence td:nth-child(2) { width: 20%; }
.cjd-table-confidence th:nth-child(3), .cjd-table-confidence td:nth-child(3) { width: 50%; }

.cjd-denominator { display: grid; grid-template-columns: minmax(170px, .5fr) minmax(0, 1.5fr); gap: clamp(2rem, 6vw, 5rem); margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 2px solid var(--teal); }
.cjd-denominator-stat { padding-top: .35rem; }
.cjd-denominator-main { display: block; color: var(--teal-dark); font-size: clamp(3.2rem, 7vw, 5.4rem); line-height: .9; font-weight: 700; letter-spacing: -.055em; }
.cjd-denominator-main small { font-size: .32em; font-weight: 600; letter-spacing: -.02em; }
.cjd-denominator-sub { display: block; margin-top: .75rem; color: var(--muted); font-size: .92rem; font-weight: 650; }
.cjd-denominator-copy { max-width: 720px; }
.cjd-denominator-copy h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); }

.cjd-recommendation-list { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.cjd-recommendation-list > li { padding: clamp(2rem, 5vw, 3.2rem) 0; border-bottom: 1px solid var(--line); }
.cjd-recommendation-head { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 1rem; align-items: start; }
.cjd-recommendation-head > span { padding-top: .35rem; color: var(--teal); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.cjd-recommendation-head h3 { margin: 0 0 1.1rem; }
.cjd-recommendation-list > li > p, .cjd-recommendation-list > li > ul { margin-left: 58px; }
.cjd-recommendation-list > li > ul { padding-left: 1.2rem; }
.cjd-recommendation-list > li > ul li { margin-bottom: .45rem; }
.cjd-done-when { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(47,103,95,.22); font-size: .95rem; }
.cjd-done-when span { display: block; margin-bottom: .35rem; color: var(--teal); font-size: .73rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.cjd-two-column-analysis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 8vw, 6rem); }
.cjd-two-column-analysis > div { min-width: 0; }
.cjd-two-column-analysis h3 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
.cjd-compact-list { columns: 2; column-gap: 2rem; margin: 1.5rem 0 2rem; padding-left: 1.2rem; }
.cjd-compact-list li { break-inside: avoid; margin: 0 0 .65rem; padding-left: .15rem; }
.cjd-compact-list li::marker { color: var(--teal); }
.cjd-measure-list { margin: 1.6rem 0 2rem; border-top: 1px solid var(--line); }
.cjd-measure-list > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cjd-measure-list dt { margin-bottom: .35rem; font-weight: 650; }
.cjd-measure-list dd { margin: 0; color: var(--muted); }
.cjd-change-mind { max-width: 860px; margin: 2.7rem 0 0; padding-top: 1.7rem; border-top: 1px solid rgba(47,103,95,.3); font-weight: 600; }

.cjd-bottom-line-list { margin: 2rem 0 2.2rem; border-top: 1px solid rgba(47,103,95,.3); }
.cjd-bottom-line-list > div { display: grid; grid-template-columns: minmax(145px, .32fr) minmax(0, 1fr); gap: 1.5rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(47,103,95,.22); }
.cjd-bottom-line-list dt { color: var(--teal-dark); font-weight: 700; }
.cjd-bottom-line-list dd { margin: 0; }
.cjd-final-line { max-width: 700px; margin: 0; font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.5; font-weight: 650; }

.cjd-about-sample { padding: clamp(4rem, 7vw, 6rem) 0; }
.cjd-about-sample h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.cjd-about-sample p { color: var(--muted); }
.cjd-end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

@media (max-width: 900px) {
  .cjd-reading-grid { grid-template-columns: 70px minmax(0, 1fr); gap: 1.5rem 2.5rem; }
  .cjd-two-column-analysis { grid-template-columns: 1fr; }
  .cjd-compact-list { columns: 1; }
}

@media (max-width: 700px) {
  .cjd-main { padding-top: var(--header-h); }
  .cjd-hero { padding-top: 3.5rem; }
  .cjd-hero h1 { font-size: clamp(2.35rem, 11.5vw, 3.35rem); }
  .cjd-actions, .cjd-end-actions { align-items: flex-start; flex-direction: column; }
  .cjd-actions .button, .cjd-end-actions .button { width: 100%; }
  .cjd-reading-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cjd-margin-label, .cjd-section-number { padding-top: 0; }
  .cjd-margin-label span { padding-top: .5rem; }
  .cjd-decision-row { grid-template-columns: 1fr; gap: .7rem; }
  .cjd-decision-row h3 { margin: 0; }
  .cjd-journey { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .cjd-journey-arrow { transform: rotate(90deg); margin-left: .15rem; }
  .cjd-wide-heading { grid-template-columns: 1fr; gap: .7rem; }
  .cjd-table-hint { display: block; }
  .cjd-table { min-width: 720px; font-size: .9rem; }
  .cjd-denominator { grid-template-columns: 1fr; gap: 1.8rem; }
  .cjd-denominator-stat { display: flex; align-items: baseline; gap: 1rem; }
  .cjd-denominator-sub { margin-top: 0; }
  .cjd-recommendation-list > li > p, .cjd-recommendation-list > li > ul { margin-left: 0; }
  .cjd-bottom-line-list > div { grid-template-columns: 1fr; gap: .45rem; }
}

@media (max-width: 420px) {
  .cjd-table { min-width: 660px; }
}

@media print {
  .cjd-main { padding-top: 0; }
  .cjd-actions, .cjd-end-actions, .cjd-table-hint { display: none !important; }
  .cjd-hero { padding: 2.5rem 0 3rem; }
  .cjd-section, .cjd-decision, .cjd-bottom-line, .cjd-about-sample { padding: 2.2rem 0; background: transparent; }
  .cjd-table-wrap { overflow: visible; }
  .cjd-table { min-width: 0; font-size: 8.5pt; }
  .cjd-denominator, .cjd-recommendation-list > li, .cjd-bottom-line-list > div { break-inside: avoid; page-break-inside: avoid; }
}