/* Boundaries continuation: reading, private wording, and a chosen first step. */
.journey-page {
  min-height: calc(100svh - 84px);
  padding: 42px 32px max(52px, env(safe-area-inset-bottom));
  text-align: left;
}
.journey-inner {
  width: 100%;
  max-width: 710px;
  margin: 0 auto;
}
.chapter-heading { margin-bottom: 29px; }
.chapter-heading .eyebrow { font-size: 11px; letter-spacing: 1.4px; margin-bottom: 17px; }
.chapter-heading h1 {
  max-width: 630px;
  font-size: clamp(36px, 3.6vw, 48px);
  line-height: 1.13;
  letter-spacing: -1.3px;
  text-wrap: balance;
}
.chapter-heading .lead {
  font-size: 17px;
  line-height: 1.6;
  max-width: 600px;
  margin: 19px 0 0;
}
.chapter-art {
  width: min(100%, 265px);
  margin: 24px auto 30px;
}
.chapter-art img { display: block; width: 100%; height: auto; }
.chapter-art figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; }
.checkpoint-page .journey-inner > .lead { margin: 18px 0 0; max-width: 650px; text-align: left; }
.journey-page.is-private .chapter-art,
.journey-page.is-private .plan-art { display: none; }
.journey-context {
  display: block;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}
.evidence-list {
  border-top: 1px solid var(--line);
  margin: 25px 0 0;
  width: 100%;
}
.evidence-list > div {
  display: grid;
  grid-template-columns: minmax(100px, .35fr) 1fr;
  gap: 22px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.evidence-list > div > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.evidence-list > div > strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}
.checkpoint-finding {
  margin: 27px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.checkpoint-finding p + p { margin-top: 16px; }
.journey-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-top: 32px;
}
.journey-actions > .primary { max-width: 390px; }
.journey-actions > .text-button { margin-left: -8px; }

/* A decision keeps its source visible while a new choice is being considered. */
.decision-canvas {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 21px 0 22px;
  text-align: left;
}
.decision-source {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.decision-source small,
.decision-source .decision-label,
.decision-target .decision-label {
  display: block;
  color: var(--muted);
  font: 11px/1.5 Switzer, Arial, sans-serif;
  letter-spacing: .25px;
  margin-bottom: 8px;
}
.decision-source > span {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.decision-target {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #ddcec68a;
}
.decision-target > strong {
  display: block;
  font: 400 27px/1.25 Gambetta, Georgia, serif;
  color: var(--plum);
  min-height: 1.25em;
}
.journey-answer-note {
  margin: 15px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}
.journey-answer-note:empty { display: none; }

/* The wording is the focus, with quiet controls for trying another version. */
.rehearsal-page .journey-inner { max-width: 700px; }
.rehearsal-page .chapter-heading { margin-bottom: 0; }
.reply-editor {
  margin-top: 31px;
  padding: 25px 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reply-editor .reply-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 20px;
  letter-spacing: .1px;
}
.reply-editor blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--plum);
  font: 400 clamp(25px, 2.3vw, 31px)/1.35 Gambetta, Georgia, serif;
  overflow-wrap: anywhere;
}
.reply-editor #reply-why {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.reply-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 22px;
  margin: 15px 0 0;
}
.reply-tabs button {
  position: relative;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  padding: 12px 0 13px;
  min-height: 46px;
  min-width: 44px;
  text-align: left;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}
.reply-tabs button[aria-pressed="true"] {
  color: var(--plum);
  border-bottom-color: var(--plum);
  font-weight: 500;
}
.rehearsal-caption,
.reply-status {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.reply-status { color: var(--plum); }
.reply-status:empty { margin-top: 0; }
.reply-own {
  margin: 24px 0 0;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}
.reply-own > summary {
  cursor: pointer;
  min-height: 48px;
  padding: 15px 0 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-underline-offset: 4px;
}
.reply-own > label {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 11px;
  color: var(--muted);
}
.reply-own textarea {
  display: block;
  width: 100%;
  min-height: 145px;
  resize: vertical;
  padding: 16px 17px;
  border: 1px solid #cbb5bf;
  border-radius: 7px;
  background: #fffaf5b3;
  color: var(--ink);
  font: 16px/1.6 Switzer, Arial, sans-serif;
}
.reply-own textarea:focus-visible,
.reply-own summary:focus-visible,
.letter-evidence summary:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 5px;
}
.reply-own button[data-action="apply-words"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  margin-top: 12px;
  background: transparent;
  border: 1px solid #b99eac;
  border-radius: 7px;
  color: var(--plum);
  font-size: 13px;
  line-height: 1.5;
}
.reply-own button[data-action="apply-words"].primary { width: auto; }

/* One sheet, one voice. No inset panels or imitation stationery effects. */
.letter-page .journey-inner { max-width: 740px; }
.letter-sheet {
  padding: 38px 40px 39px;
  background: #fffaf4;
  border-top: 1px solid #cdb9ad;
  border-bottom: 1px solid #d9c8bf;
}
.letter-sheet > .eyebrow { font-size: 11px; letter-spacing: 1.3px; margin-bottom: 21px; }
.letter-sheet h1 {
  max-width: 600px;
  font-size: clamp(34px, 3.4vw, 43px);
  line-height: 1.16;
  letter-spacing: -1px;
  margin-bottom: 28px;
  text-wrap: balance;
}
.letter-intro {
  color: var(--ink);
  font: 400 25px/1.3 Gambetta, Georgia, serif;
  margin: 0 0 21px;
}
.letter-body { color: var(--ink); }
.letter-body p,
.letter-sheet > p:not(.eyebrow):not(.letter-intro):not(.letter-signoff) {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.75;
}
.letter-body p:last-child { margin-bottom: 0; }
.letter-reply { margin-top: 30px; }
.letter-reply > .eyebrow { display: block; margin-bottom: 14px; }
.letter-sheet [data-reply-anchor] {
  display: block;
  margin: 0 0 29px;
  padding: 0 0 0 19px;
  border-left: 2px solid #b69cac;
  color: var(--plum);
  font: 400 27px/1.4 Gambetta, Georgia, serif;
  overflow-wrap: anywhere;
}
.letter-signoff {
  margin: 29px 0 0;
  padding-top: 7px;
  color: var(--plum);
  font: 400 23px/1.35 Gambetta, Georgia, serif;
}
.letter-evidence {
  margin: 24px 0 0;
  padding-top: 3px;
}
.letter-evidence summary {
  min-height: 44px;
  padding: 11px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}
.letter-evidence .evidence-list { margin-top: 12px; }
.letter-evidence .evidence-list > div { padding: 13px 0; }
.letter-evidence .evidence-list > div > strong { font-size: 14px; }
.letter-page .journey-actions { margin-top: 26px; }

/* A sequence to use, not a dashboard of exercises or a completion checklist. */
.plan-page .journey-inner { max-width: 760px; }
.plan-art { width: min(100%, 215px); margin: 21px auto 26px; }
.plan-art img { width: 100%; height: auto; }
.plan-note {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 650px;
}
.plan-list { margin: 27px 0 0; border-top: 1px solid var(--line); }
.plan-list > article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 19px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.plan-index {
  display: block;
  margin-top: 3px;
  font: 500 12px/1.5 Switzer, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .6px;
  color: var(--plum);
}
.plan-list h2 {
  margin: 0;
  font: 400 28px/1.2 Gambetta, Georgia, serif;
  color: var(--ink);
}
.plan-list p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.plan-list article div > button[data-plan-index] {
  min-height: 44px;
  padding: 10px 0;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--plum);
  background: transparent;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.plan-list article div > button[data-plan-index][aria-pressed="true"] { text-decoration: none; font-weight: 500; }
.completion-note {
  margin: 27px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.plan-page .journey-actions { margin-top: 27px; }

@media (hover: hover) and (pointer: fine) {
  .reply-tabs button:hover { color: var(--plum); border-bottom-color: #c5afbb; }
  .reply-tabs button[aria-pressed="true"]:hover { border-bottom-color: var(--plum); }
  .reply-own button[data-action="apply-words"]:hover { background: #f2e4e8; }
  .plan-list article div > button[data-plan-index]:hover { color: var(--ink); }
}

@media (min-width: 920px) {
  body[data-screen="checkpoint"] .journey-inner:has(.chapter-art) {
    max-width: 880px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 0 38px;
  }
  body[data-screen="checkpoint"] .journey-inner:has(.chapter-art) .chapter-heading { grid-column: 1; margin-bottom: 0; }
  body[data-screen="checkpoint"] .journey-inner:has(.chapter-art) .chapter-art { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 100%; margin: 0; }
  body[data-screen="checkpoint"] .journey-inner:has(.chapter-art) .evidence-list { grid-column: 1; }
  body[data-screen="checkpoint"] .journey-inner:has(.chapter-art) > .lead,
  body[data-screen="checkpoint"] .journey-inner:has(.chapter-art) .checkpoint-finding,
  body[data-screen="checkpoint"] .journey-inner:has(.chapter-art) .journey-actions { grid-column: 1 / -1; }
  .plan-page .plan-art { float: right; margin: -8px 0 24px 31px; }
  .plan-list { clear: both; }
}

@media (max-width: 700px) {
  .journey-page { padding: 29px 24px max(36px, env(safe-area-inset-bottom)); min-height: calc(100svh - 72px); }
  .chapter-heading { margin-bottom: 24px; }
  .chapter-heading .eyebrow { font-size: 10px; letter-spacing: 1.15px; margin-bottom: 15px; }
  .chapter-heading h1 { font-size: 36px; line-height: 1.14; letter-spacing: -1px; }
  .chapter-heading .lead { font-size: 15px; line-height: 1.6; margin-top: 17px; }
  .chapter-art { width: min(100%, 225px); margin: 19px auto 24px; }
  .journey-context { font-size: 11px; }
  .evidence-list { margin-top: 22px; }
  .evidence-list > div { grid-template-columns: minmax(82px, .36fr) 1fr; gap: 15px; padding: 14px 0; }
  .evidence-list > div > span { font-size: 11px; }
  .evidence-list > div > strong { font-size: 14px; line-height: 1.5; }
  .checkpoint-finding { font-size: 16px; line-height: 1.65; margin-top: 24px; }
  .journey-actions { margin-top: 27px; }
  .journey-actions > .primary { max-width: none; }
  .journey-actions > .text-button { margin-left: auto; margin-right: auto; }
  .decision-canvas { margin-top: 25px; padding: 19px 0 20px; }
  .decision-source, .decision-source > span { font-size: 13px; }
  .decision-source small, .decision-source .decision-label, .decision-target .decision-label { font-size: 11px; }
  .decision-target { margin-top: 17px; padding-top: 16px; }
  .decision-target > strong { font-size: 25px; }
  .journey-answer-note { font-size: 11px; }
  .reply-editor { margin-top: 26px; padding: 22px 0 23px; }
  .reply-editor .reply-label { font-size: 11px; margin-bottom: 18px; }
  .reply-editor blockquote { font-size: 26px; line-height: 1.35; }
  .reply-editor #reply-why { font-size: 13px; line-height: 1.65; margin-top: 18px; }
  .reply-tabs { gap: 3px 20px; margin-top: 12px; }
  .reply-tabs button { font-size: 12px; min-height: 45px; padding: 12px 0; }
  .rehearsal-caption, .reply-status { font-size: 12px; }
  .reply-own { margin-top: 22px; }
  .reply-own > summary { font-size: 14px; min-height: 48px; }
  .reply-own > label { font-size: 12px; }
  .reply-own textarea { font-size: 16px; min-height: 145px; padding: 14px; }
  .letter-sheet { padding: 28px 24px 30px; margin-left: -8px; margin-right: -8px; }
  .letter-sheet > .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .letter-sheet h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.8px; margin-bottom: 24px; }
  .letter-intro { font-size: 23px; margin-bottom: 20px; }
  .letter-body p, .letter-sheet > p:not(.eyebrow):not(.letter-intro):not(.letter-signoff) { font-size: 16px; line-height: 1.75; margin-bottom: 17px; }
  .letter-sheet [data-reply-anchor] { font-size: 25px; line-height: 1.38; padding-left: 16px; margin: 0 0 26px; }
  .letter-signoff { font-size: 22px; margin-top: 25px; }
  .letter-evidence { margin-top: 22px; }
  .letter-evidence summary { font-size: 12px; line-height: 1.6; min-height: 46px; }
  .letter-evidence .evidence-list > div > strong { font-size: 13px; }
  .plan-art { width: min(100%, 200px); margin: 19px auto 23px; }
  .plan-note { font-size: 14px; margin-top: 22px; }
  .plan-list { margin-top: 24px; }
  .plan-list > article { grid-template-columns: 29px 1fr; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
  .plan-index { font-size: 11px; letter-spacing: .5px; }
  .plan-list h2 { font-size: 25px; line-height: 1.24; }
  .plan-list p { font-size: 15px; line-height: 1.65; margin-top: 10px; }
  .completion-note { font-size: 12px; margin-top: 24px; }
}

@media (max-width: 350px) {
  .journey-page { padding-left: 19px; padding-right: 19px; }
  .chapter-heading h1 { font-size: 32px; letter-spacing: -.8px; }
  .chapter-heading .lead { font-size: 14px; }
  .evidence-list > div { grid-template-columns: 78px 1fr; gap: 12px; }
  .evidence-list > div > strong { font-size: 13px; }
  .checkpoint-finding { font-size: 15px; }
  .decision-target > strong { font-size: 24px; }
  .reply-editor blockquote { font-size: 24px; }
  .reply-tabs { gap: 2px 17px; }
  .reply-tabs button { font-size: 12px; }
  .letter-sheet { padding: 25px 20px 27px; margin-left: -6px; margin-right: -6px; }
  .letter-sheet h1 { font-size: 31px; }
  .letter-body p, .letter-sheet > p:not(.eyebrow):not(.letter-intro):not(.letter-signoff) { font-size: 15px; line-height: 1.75; }
  .letter-sheet [data-reply-anchor] { font-size: 23px; padding-left: 14px; }
  .letter-intro { font-size: 22px; }
  .plan-list > article { grid-template-columns: 24px 1fr; gap: 12px; }
  .plan-list h2 { font-size: 24px; }
  .plan-list p { font-size: 14px; }
}

/* Reviewing an answer is an explicit action, kept beside its original wording. */
.review-page .journey-inner > .lead { margin-left: 0; margin-right: 0; max-width: 620px; }
.review-page .evidence-list > div { grid-template-columns: minmax(110px, .4fr) 1fr 64px; align-items: center; }
.review-page .evidence-list button {
  min-height: 44px;
  min-width: 56px;
  padding: 10px 0;
  color: var(--plum);
  background: transparent;
  border-radius: 0;
  font: 400 13px/1.5 Switzer, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  .review-page .evidence-list > div { grid-template-columns: minmax(0, 1fr) 56px; gap: 8px 16px; padding: 16px 0; }
  .review-page .evidence-list > div > span { grid-column: 1; font-size: 10px; letter-spacing: .4px; }
  .review-page .evidence-list > div > strong { grid-column: 1; }
  .review-page .evidence-list button { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 12px; }
}
