:root {
  --green: #214f2e;
  --green-soft: #4d7a5a;
  --sage: #e8f1e8;
  --cream: #fffaf1;
  --cream-deep: #f8efd9;
  --orange: #f28b43;
  --orange-soft: #fff0df;
  --purple: #8260a8;
  --purple-soft: #f2ebfb;
  --ink: #293530;
  --muted: #64716a;
  --paper: #fffdf8;
  --line: rgba(72, 92, 74, .08);
  --card-border: rgba(33, 79, 46, .15);
  --shadow: 0 18px 48px rgba(35, 58, 42, .14);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(0deg, rgba(255,255,255,.72), rgba(255,255,255,.72)),
    repeating-linear-gradient(to bottom, var(--cream) 0 33px, var(--line) 34px 36px),
    radial-gradient(circle at 85% 15%, rgba(242, 139, 67, .16), transparent 24rem),
    radial-gradient(circle at 10% 90%, rgba(130, 96, 168, .10), transparent 22rem);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "♡";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  color: rgba(130, 96, 168, .22);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
}

body::before { top: 1.4rem; right: 5vw; }
body::after { bottom: 2rem; left: 4vw; transform: rotate(-12deg); color: rgba(33, 79, 46, .13); }

.soft-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.orb-one {
  width: 21rem;
  height: 21rem;
  right: -8rem;
  top: 12rem;
  background: rgba(242, 139, 67, .09);
}

.orb-two {
  width: 18rem;
  height: 18rem;
  left: -7rem;
  bottom: 12rem;
  background: rgba(130, 96, 168, .08);
}

.site-header,
.music-panel,
.journal-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1060px, calc(100% - 2rem));
  margin: 1.35rem auto 0;
  text-align: center;
  background: rgba(255, 253, 248, .88);
  border: 1px solid rgba(33, 79, 46, .12);
  border-radius: 32px;
  box-shadow: 0 12px 36px rgba(44, 59, 45, .08);
  padding: clamp(1.35rem, 3vw, 2.25rem);
  backdrop-filter: blur(10px);
}

.mini-kicker {
  margin: 0 0 .45rem;
  color: var(--purple);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
}

.site-header h1 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 5vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.header-logo-link {
  display: inline-flex;
  justify-content: center;
  margin: 1.15rem auto .8rem;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: clamp(130px, 15vw, 190px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(33,79,46,.10);
}

.designed-line,
.tagline {
  margin: .4rem auto 0;
}

.designed-line {
  color: var(--green);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.designed-line a {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 2px solid rgba(130, 96, 168, .24);
}

.designed-line a:hover,
.designed-line a:focus-visible { border-bottom-color: currentColor; }

.tagline {
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.24rem);
  font-weight: 700;
}

.music-panel {
  display: flex;
  justify-content: center;
  margin: 1rem auto 1.2rem;
}

button,
input,
textarea { font: inherit; }

button { cursor: pointer; }

.music-button,
.nav-button,
.action-button,
.link-button {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.music-button {
  padding: .9rem 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #347043);
  box-shadow: 0 12px 28px rgba(33,79,46,.22);
}

.music-button:hover,
.nav-button:hover,
.action-button:hover,
.link-button:hover { transform: translateY(-1px); }

.music-button:focus-visible,
.nav-button:focus-visible,
.action-button:focus-visible,
.link-button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(130,96,168,.55);
  outline-offset: 3px;
}

.journal-shell {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto 2.2rem;
}

.book-wrap {
  position: relative;
  border-radius: 34px;
  padding: clamp(.5rem, 1.2vw, .9rem);
  background: linear-gradient(145deg, rgba(255,255,255,.55), rgba(248,239,217,.74));
  box-shadow: var(--shadow);
  border: 1px solid rgba(33, 79, 46, .12);
}

.book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 670px;
  overflow: visible;
}

.spine {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(33,79,46,.10), rgba(255,255,255,.76) 44%, rgba(33,79,46,.12)),
    repeating-linear-gradient(to bottom, rgba(33,79,46,.10) 0 18px, transparent 18px 36px);
  box-shadow: inset 8px 0 16px rgba(33, 79, 46, .06), inset -8px 0 16px rgba(33, 79, 46, .06);
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-width: 0;
  min-height: 670px;
  padding: clamp(1rem, 1.55vw, 1.45rem);
  background:
    linear-gradient(0deg, rgba(255,253,248,.94), rgba(255,253,248,.94)),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(33,79,46,.08) 32px 34px);
  border: 1px solid rgba(33,79,46,.15);
  overflow: visible;
}

.page.left-page {
  border-radius: 28px 8px 8px 28px;
  border-right: 0;
}

.page.right-page {
  border-radius: 8px 28px 28px 8px;
  border-left: 0;
}

.page::before {
  content: "✦";
  position: absolute;
  top: .9rem;
  right: 1rem;
  color: rgba(130,96,168,.24);
  font-size: 1.4rem;
}

.page.left-page::before { content: "❧"; }

.page-title {
  margin: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  padding-right: 2rem;
  overflow-wrap: anywhere;
}

.page-intro {
  margin: -.1rem 0 .2rem;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.42;
  font-size: clamp(.95rem, 1.4vw, 1.03rem);
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1 1 auto;
  min-height: 0;
}

.question-card,
.info-card,
.review-card,
.final-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--card-border);
  border-radius: 19px;
  padding: .85rem .9rem;
  box-shadow: 0 8px 20px rgba(33,79,46,.065);
}

.question-card h3,
.info-card h3,
.review-card h3 {
  margin: 0 0 .55rem;
  color: var(--green);
  font-size: 1rem;
  line-height: 1.25;
}

.question-card p,
.info-card p,
.review-card p,
.final-card p {
  margin: .35rem 0;
  line-height: 1.42;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .42rem .5rem;
  margin-top: .3rem;
}

.option-label {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .4rem;
  padding: .45rem .5rem;
  border-radius: 999px;
  background: var(--sage);
  color: #26372b;
  font-size: .9rem;
  font-weight: 720;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.option-label input {
  flex: 0 0 auto;
  accent-color: var(--green);
}

.answer-field {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid rgba(33,79,46,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  padding: .68rem .75rem;
  line-height: 1.35;
  box-shadow: inset 0 2px 5px rgba(33,79,46,.035);
}

.answer-field.short-field { min-height: 48px; }

.other-input {
  width: 100%;
  margin-top: .58rem;
  border: 1px solid rgba(33,79,46,.18);
  border-radius: 999px;
  padding: .55rem .75rem;
  background: #fff;
}

.page-gap { height: .35rem; flex: 0 0 .35rem; }

.page-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .45rem;
  padding-top: .55rem;
  flex: 0 0 auto;
}

.crisis-box {
  max-width: min(78%, 390px);
  background: var(--orange-soft);
  border: 1px solid rgba(242,139,67,.42);
  border-left: 6px solid var(--orange);
  color: #5e371e;
  border-radius: 15px;
  padding: .5rem .7rem;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.22;
}

.crisis-box .crisis-line-one,
.crisis-box .crisis-line-two {
  display: block;
}

.crisis-box .crisis-line-two {
  margin-top: .32rem;
}

.crisis-box a {
  color: #714314;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-number {
  flex: 0 0 auto;
  color: var(--green);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(33,79,46,.16);
  border-radius: 999px;
  padding: .4rem .68rem;
  font-weight: 900;
  white-space: nowrap;
  font-size: .86rem;
}

.cta-strip {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .15rem;
}

.action-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .65rem .9rem;
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.15;
}

.action-button {
  background: var(--green);
  color: white;
  box-shadow: 0 8px 18px rgba(33,79,46,.18);
}

.link-button {
  background: var(--purple-soft);
  color: var(--purple);
  border: 1px solid rgba(130,96,168,.22);
}

.cover-page {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.cover-logo-link {
  display: inline-flex;
  margin-bottom: .7rem;
}

.cover-logo {
  width: clamp(155px, 18vw, 230px);
  max-height: 305px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 26px rgba(33,79,46,.12);
}

.cover-title {
  margin: .35rem 0 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.cover-title span { display: block; }

.cover-credit {
  margin: .75rem 0 .55rem;
  color: var(--green);
  font-size: clamp(.98rem, 2vw, 1.15rem);
  font-weight: 900;
}

.cover-credit a,
.final-card a { color: var(--purple); text-decoration: none; border-bottom: 2px solid rgba(130,96,168,.25); }

.cover-desc {
  max-width: 30rem;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
  font-size: clamp(.98rem, 2vw, 1.13rem);
}

.decor-row {
  margin-top: 1.1rem;
  color: rgba(33,79,46,.66);
  letter-spacing: .18em;
  font-size: 1.1rem;
}

.review-list {
  display: grid;
  gap: .45rem;
  max-height: 485px;
  overflow: auto;
  padding-right: .25rem;
}

.review-item {
  background: rgba(232,241,232,.8);
  border-radius: 14px;
  padding: .55rem .62rem;
  border: 1px solid rgba(33,79,46,.10);
}

.review-item strong {
  display: block;
  color: var(--green);
  margin-bottom: .18rem;
  font-size: .88rem;
}

.review-item span {
  color: #3e4b43;
  font-size: .88rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.final-card {
  text-align: center;
}

.final-card h3 {
  margin: 0 0 .45rem;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  margin: .8rem 0 .75rem;
}

.final-banner {
  display: block;
  max-width: min(100%, 420px);
  width: 100%;
  height: auto;
  margin: .5rem auto 0;
  border-radius: 18px;
  border: 1px solid rgba(33,79,46,.12);
  box-shadow: 0 10px 26px rgba(33,79,46,.10);
}

.controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: .9rem;
  margin: 1rem auto 0;
  padding: .8rem;
  background: rgba(255,253,248,.92);
  border: 1px solid rgba(33,79,46,.13);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(33,79,46,.08);
}

.nav-button {
  min-width: 120px;
  padding: .76rem 1rem;
  color: white;
  background: var(--green);
}

.nav-button:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

.spread-status {
  text-align: center;
  font-weight: 900;
  color: var(--green);
}

.progress-track {
  width: min(360px, 100%);
  height: 10px;
  border-radius: 999px;
  margin: .35rem auto 0;
  background: rgba(33,79,46,.12);
  overflow: hidden;
}

.progress-fill {
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--purple));
  transition: width .2s ease;
}

@media (max-width: 1080px) {
  .book { min-height: 700px; }
  .page { min-height: 700px; }
  .options-grid { grid-template-columns: 1fr; }
  .cover-title { font-size: clamp(1.85rem, 5vw, 2.85rem); }
}

@media (max-width: 780px) {
  .site-header { border-radius: 24px; width: min(100% - 1rem, 650px); }
  .journal-shell { width: min(100% - .7rem, 650px); }
  .book-wrap { border-radius: 22px; }
  .book {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    min-height: 0;
  }
  .spine { display: none; }
  .page,
  .page.left-page,
  .page.right-page {
    min-height: 0;
    border: 1px solid rgba(33,79,46,.15);
    border-radius: 24px;
    padding: 1rem;
  }
  .cover-page { min-height: 650px; }
  .cover-logo { width: min(210px, 62vw); }
  .cover-title { font-size: clamp(2rem, 9vw, 3rem); }
  .page-footer {
    align-items: stretch;
    flex-direction: column;
    gap: .55rem;
  }
  .crisis-box { max-width: 100%; width: 100%; }
  .page-number { align-self: flex-end; }
  .controls {
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
  }
  .spread-status { grid-column: 1 / -1; grid-row: 1; }
  #prevBtn { grid-column: 1; grid-row: 2; }
  #nextBtn { grid-column: 2; grid-row: 2; }
  .nav-button { min-width: 0; }
  .final-actions .action-button,
  .final-actions .link-button { width: 100%; }
}

@media (max-width: 430px) {
  .site-header { padding: 1rem; }
  .site-header h1 { font-size: 2.1rem; }
  .header-logo { width: 128px; border-radius: 19px; }
  .book-wrap { padding: .35rem; }
  .page-title { font-size: 1.55rem; padding-right: 1.5rem; }
  .question-card,
  .info-card,
  .review-card,
  .final-card { padding: .78rem; }
  .option-label { font-size: .84rem; border-radius: 15px; }
  .cover-title { font-size: 2.12rem; }
  .cover-logo { width: 182px; }
  .cover-page { min-height: 630px; }
  .review-list { max-height: none; }
}

@media print {
  body { background: white; }
  .site-header, .music-panel, .controls { display: none; }
  .book-wrap { box-shadow: none; border: 0; }
  .book { display: block; }
  .spine { display: none; }
  .page { page-break-after: always; border: 1px solid #ccc; }
}

.cover-page-number {
  display: flex;
  justify-content: center;
  margin-top: .7rem;
}

/* Revision overrides from correction notes */
.site-header {
  margin-top: .75rem;
  padding: clamp(.85rem, 1.7vw, 1.25rem);
}

.site-header h1 {
  font-size: clamp(1.9rem, 4.1vw, 3.55rem);
  line-height: 1.02;
  white-space: nowrap;
  letter-spacing: -.04em;
}

.mini-kicker {
  margin: .45rem 0 .25rem;
}

.header-logo-link {
  margin: .45rem auto .35rem;
}

.header-logo {
  width: clamp(108px, 10.5vw, 145px);
  border-radius: 20px;
}

.designed-line {
  margin-top: .25rem;
}

.tagline {
  margin-top: .18rem;
  font-size: clamp(.92rem, 1.55vw, 1.06rem);
}

.music-panel {
  margin: .55rem auto .65rem;
}

.music-button {
  padding: .65rem 1.35rem;
}

.journal-shell {
  margin-bottom: 1.3rem;
}

.book-wrap {
  padding: clamp(.38rem, .9vw, .7rem);
}

.book {
  min-height: clamp(560px, calc(100vh - 275px), 650px);
}

.page {
  min-height: clamp(560px, calc(100vh - 275px), 650px);
  padding: clamp(.9rem, 1.25vw, 1.18rem);
  gap: .45rem;
  overflow: hidden;
}

.page-title {
  font-size: clamp(1.55rem, 2.15vw, 2.05rem);
  line-height: 1.02;
}

.page-intro {
  font-size: clamp(.88rem, 1.15vw, .98rem);
  margin: -.08rem 0 0;
}

.page-content {
  justify-content: center;
  gap: .62rem;
}

.question-card,
.info-card,
.review-card,
.final-card {
  padding: .72rem .82rem;
}

.question-card h3,
.info-card h3,
.review-card h3 {
  margin-bottom: .45rem;
  font-size: clamp(.87rem, 1.05vw, .96rem);
}

.answer-field {
  min-height: clamp(58px, 7vh, 72px);
  padding: .56rem .66rem;
}

.options-grid {
  gap: .36rem .46rem;
}

.option-label {
  padding: .38rem .48rem;
  font-size: clamp(.78rem, .95vw, .86rem);
}

.other-input {
  margin-top: .48rem;
  padding: .48rem .66rem;
}

.page-cta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: .15rem 0 .2rem;
  flex: 0 0 auto;
}

.page-cta .action-button {
  min-height: 36px;
  padding: .52rem .82rem;
  font-size: clamp(.76rem, .95vw, .86rem);
  max-width: 100%;
}

.page-gap {
  height: .12rem;
  flex-basis: .12rem;
}

.page-footer {
  margin-top: 0;
  padding-top: .25rem;
  align-items: flex-end;
}

.crisis-box {
  max-width: min(76%, 380px);
  padding: .43rem .62rem;
  font-size: clamp(.7rem, .9vw, .78rem);
  line-height: 1.18;
}

.crisis-box .crisis-line-two {
  margin-top: .26rem;
}

.page-number {
  padding: .34rem .6rem;
  font-size: clamp(.74rem, .9vw, .82rem);
}

.cover-page {
  justify-content: center;
  gap: .38rem;
}

.cover-logo-link {
  margin-bottom: .35rem;
}

.cover-logo {
  width: clamp(175px, 16vw, 225px);
  max-height: 255px;
}

.cover-title {
  font-size: clamp(1.55rem, 2.75vw, 2.65rem);
  line-height: 1.01;
  margin-top: .18rem;
  max-width: 100%;
}

.cover-title .nowrap {
  white-space: nowrap;
}

.cover-credit {
  margin: .48rem 0 .35rem;
  font-size: clamp(.84rem, 1.3vw, .98rem);
}

.cover-desc {
  max-width: 28rem;
  font-size: clamp(.82rem, 1.25vw, .95rem);
  line-height: 1.36;
}

.decor-row {
  margin-top: .58rem;
  font-size: .95rem;
}

.cover-page-number {
  margin-top: .3rem;
}

.review-list {
  max-height: clamp(350px, 48vh, 445px);
}

.final-card {
  max-width: 96%;
  margin: 0 auto;
}

.final-card h3 {
  font-size: clamp(1.28rem, 1.9vw, 1.65rem);
  line-height: 1.08;
}

.final-actions {
  flex-direction: column;
  align-items: center;
  gap: .46rem;
  margin: .7rem auto .65rem;
}

.final-card .final-action-button,
.final-card .action-button,
.final-card .link-button {
  width: min(360px, 100%);
  min-height: 40px;
  background: #fff;
  color: var(--green);
  border: 1px solid rgba(33,79,46,.28);
  box-shadow: 0 7px 16px rgba(33,79,46,.09);
}

.final-card .final-action-button:hover,
.final-card .action-button:hover,
.final-card .link-button:hover {
  background: var(--sage);
}

.final-banner {
  max-width: min(100%, 385px);
}

.controls {
  margin-top: .7rem;
  padding: .62rem;
}

@media (max-width: 1080px) {
  .book { min-height: clamp(585px, calc(100vh - 260px), 660px); }
  .page { min-height: clamp(585px, calc(100vh - 260px), 660px); }
  .cover-title { font-size: clamp(1.55rem, 3.4vw, 2.35rem); }
}

@media (max-width: 780px) {
  .site-header h1 {
    white-space: normal;
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .book,
  .page,
  .page.left-page,
  .page.right-page {
    min-height: auto;
  }
  .page-content {
    justify-content: flex-start;
  }
  .cover-page {
    min-height: 620px;
  }
  .cover-title {
    font-size: clamp(1.78rem, 7vw, 2.65rem);
  }
  .cover-title .nowrap {
    white-space: normal;
  }
  .page-cta {
    margin-top: .6rem;
  }
  .page-footer {
    align-items: stretch;
    flex-direction: column;
    gap: .45rem;
  }
  .crisis-box {
    max-width: 100%;
    width: 100%;
  }
  .final-card .final-action-button,
  .final-card .action-button,
  .final-card .link-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .site-header h1 { font-size: 2rem; }
  .header-logo { width: 116px; }
  .cover-logo { width: min(205px, 64vw); }
  .cover-title { font-size: clamp(1.7rem, 8vw, 2.28rem); }
  .cover-page { min-height: 590px; }
}

/* Final viewport-fit revision: keep progress bar and navigation visible on desktop */
@media (min-width: 781px) {
  html,
  body {
    height: 100%;
  }

  body {
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .site-header {
    flex: 0 0 auto;
    margin-top: clamp(.35rem, .8vh, .65rem);
    padding: clamp(.58rem, 1.15vh, .95rem) clamp(1rem, 2vw, 1.65rem);
    max-height: 25dvh;
  }

  .site-header h1 {
    font-size: clamp(2.15rem, 4.25vw, 3.35rem);
    line-height: .96;
  }

  .mini-kicker {
    margin: .22rem 0 .16rem;
    font-size: .68rem;
  }

  .header-logo-link {
    margin: .35rem auto .22rem;
  }

  .header-logo {
    width: clamp(88px, 8.8vw, 118px);
    border-radius: 17px;
  }

  .designed-line {
    margin-top: .18rem;
    font-size: clamp(.82rem, 1.35vw, .96rem);
  }

  .tagline {
    margin-top: .1rem;
    font-size: clamp(.78rem, 1.25vw, .92rem);
  }

  .music-panel {
    flex: 0 0 auto;
    margin: clamp(.28rem, .65vh, .48rem) auto clamp(.28rem, .7vh, .5rem);
  }

  .music-button {
    min-height: 34px;
    padding: .42rem 1.1rem;
    font-size: .88rem;
  }

  .journal-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: min(1160px, calc(100% - 1.2rem));
    margin: 0 auto clamp(.35rem, .75vh, .55rem);
  }

  .book-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    padding: clamp(.32rem, .72vw, .58rem);
    border-radius: 28px;
  }

  .book {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
  }

  .page {
    height: 100%;
    min-height: 0;
    padding: clamp(.72rem, 1.05vw, 1rem);
    gap: .36rem;
  }

  .page-title {
    font-size: clamp(1.36rem, 2vw, 1.88rem);
    line-height: 1;
  }

  .page-intro {
    font-size: clamp(.78rem, 1vw, .9rem);
    line-height: 1.28;
  }

  .page-content {
    gap: .48rem;
    justify-content: center;
  }

  .question-card,
  .info-card,
  .review-card,
  .final-card {
    padding: .58rem .68rem;
    border-radius: 16px;
  }

  .question-card h3,
  .info-card h3,
  .review-card h3 {
    font-size: clamp(.76rem, .95vw, .88rem);
    margin-bottom: .35rem;
    line-height: 1.17;
  }

  .question-card p,
  .info-card p,
  .review-card p,
  .final-card p {
    line-height: 1.28;
    margin: .22rem 0;
  }

  .answer-field {
    min-height: clamp(46px, 6.1vh, 62px);
    padding: .46rem .58rem;
    border-radius: 13px;
  }

  .answer-field.short-field {
    min-height: 40px;
  }

  .options-grid {
    gap: .28rem .38rem;
  }

  .option-label {
    padding: .31rem .42rem;
    font-size: clamp(.68rem, .82vw, .78rem);
  }

  .other-input {
    margin-top: .36rem;
    padding: .39rem .55rem;
  }

  .page-cta {
    margin: .05rem 0 .12rem;
  }

  .page-cta .action-button {
    min-height: 31px;
    padding: .4rem .68rem;
    font-size: clamp(.68rem, .82vw, .78rem);
  }

  .page-footer {
    gap: .55rem;
    padding-top: .16rem;
  }

  .crisis-box {
    max-width: min(74%, 350px);
    padding: .34rem .52rem;
    border-left-width: 5px;
    border-radius: 13px;
    font-size: clamp(.62rem, .74vw, .7rem);
    line-height: 1.12;
  }

  .crisis-box .crisis-line-two {
    margin-top: .2rem;
  }

  .page-number {
    padding: .28rem .52rem;
    font-size: clamp(.66rem, .78vw, .74rem);
  }

  .cover-logo {
    width: clamp(140px, 12.5vw, 185px);
    max-height: 210px;
  }

  .cover-title {
    font-size: clamp(1.42rem, 2.45vw, 2.24rem);
    line-height: 1;
  }

  .cover-credit {
    margin: .34rem 0 .22rem;
    font-size: clamp(.74rem, 1vw, .88rem);
  }

  .cover-desc {
    max-width: 26rem;
    font-size: clamp(.72rem, .95vw, .86rem);
    line-height: 1.3;
  }

  .decor-row {
    margin-top: .38rem;
    font-size: .82rem;
  }

  .review-list {
    max-height: min(42dvh, 390px);
  }

  .review-item {
    padding: .45rem .52rem;
  }

  .review-item strong,
  .review-item span {
    font-size: .78rem;
  }

  .final-card {
    max-width: min(92%, 520px);
  }

  .final-card h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.48rem);
    margin-bottom: .28rem;
  }

  .final-actions {
    gap: .34rem;
    margin: .48rem auto .46rem;
  }

  .final-card .final-action-button,
  .final-card .action-button,
  .final-card .link-button {
    width: min(330px, 100%);
    min-height: 32px;
    padding: .42rem .65rem;
    font-size: clamp(.72rem, .88vw, .82rem);
  }

  .final-banner {
    max-width: min(100%, 345px);
    border-radius: 14px;
  }

  .controls {
    flex: 0 0 auto;
    margin: clamp(.32rem, .7vh, .48rem) auto 0;
    padding: .42rem .55rem;
    width: min(100%, 760px);
    gap: .55rem;
  }

  .nav-button {
    min-width: 104px;
    padding: .5rem .82rem;
    font-size: .86rem;
  }

  .spread-status {
    font-size: .82rem;
  }

  .progress-track {
    height: 8px;
    margin-top: .22rem;
    width: min(320px, 100%);
  }
}

@media (min-width: 781px) and (max-height: 760px) {
  .site-header {
    width: min(960px, calc(100% - 1rem));
    padding: .42rem 1rem;
  }

  .site-header h1 {
    font-size: clamp(1.8rem, 3.7vw, 2.75rem);
  }

  .mini-kicker {
    font-size: .62rem;
  }

  .header-logo {
    width: clamp(72px, 7.5vw, 92px);
  }

  .designed-line,
  .tagline {
    font-size: .72rem;
  }

  .music-button {
    min-height: 30px;
    padding: .32rem .9rem;
    font-size: .78rem;
  }

  .page-title {
    font-size: clamp(1.16rem, 1.75vw, 1.55rem);
  }

  .cover-logo {
    width: clamp(115px, 11vw, 155px);
  }

  .cover-title {
    font-size: clamp(1.18rem, 2.1vw, 1.78rem);
  }
}

/* Safety patch for desktop viewport-fit: prevent header content from overflowing into music controls */
@media (min-width: 781px) {
  .site-header {
    max-height: none;
    overflow: visible;
    padding-top: clamp(.45rem, .85vh, .75rem);
    padding-bottom: clamp(.45rem, .85vh, .75rem);
  }

  .site-header h1 {
    font-size: clamp(2rem, 3.9vw, 3.05rem);
  }

  .header-logo {
    width: clamp(72px, 6.8vw, 96px);
  }

  .header-logo-link {
    margin: .26rem auto .18rem;
  }

  .designed-line {
    margin-top: .08rem;
    line-height: 1.1;
  }

  .tagline {
    line-height: 1.1;
  }

  .music-panel {
    margin-top: clamp(.36rem, .7vh, .55rem);
  }
}

/* Keep the full cover worksheet title on one line on desktop */
@media (min-width: 781px) {
  .cover-title .long-title {
    white-space: nowrap;
    font-size: .82em;
    letter-spacing: -.055em;
  }
}

/* Daily journal + optional therapist connection additions */
.date-share-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: .58rem .68rem;
  box-shadow: 0 8px 18px rgba(33,79,46,.06);
}

.date-share-card h3 {
  margin: 0 0 .35rem;
  color: var(--green);
  font-size: clamp(.78rem, .95vw, .9rem);
  line-height: 1.15;
}

.date-share-card p {
  margin: 0 0 .42rem;
  color: var(--muted);
  font-size: clamp(.67rem, .82vw, .76rem);
  line-height: 1.22;
}

.short-input-label {
  display: grid;
  gap: .18rem;
  color: var(--green);
  font-weight: 800;
  font-size: clamp(.66rem, .8vw, .76rem);
}

.short-input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(33,79,46,.18);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: .34rem .48rem;
  font-weight: 700;
  font-size: clamp(.72rem, .85vw, .8rem);
  outline: none;
}

.short-input:focus {
  border-color: rgba(33,79,46,.45);
  box-shadow: 0 0 0 3px rgba(33,79,46,.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .38rem .5rem;
  margin-top: .42rem;
}

.single-column-options {
  grid-template-columns: 1fr;
}

.option-label.full-option {
  grid-column: 1 / -1;
}

.compact-review-card .review-list {
  max-height: clamp(155px, 23vh, 240px);
}

.clear-form-button {
  border-color: rgba(115, 64, 20, .32) !important;
  color: #734014 !important;
}

@media (min-width: 781px) {
  .date-share-card {
    padding: .48rem .58rem;
  }

  .therapist-share-card p {
    font-size: clamp(.61rem, .72vw, .7rem);
  }

  .contact-grid {
    gap: .28rem .4rem;
  }

  .short-input {
    min-height: 28px;
    padding: .26rem .42rem;
  }

  .compact-review-card .review-list {
    max-height: min(20dvh, 210px);
  }

  .final-card .clear-form-button {
    min-height: 30px;
  }
}

@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .compact-review-card .review-list {
    max-height: none;
  }
}


/* V7 revision: top clear form button, side navigation, and tighter progress controls */
.music-panel {
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.clear-top-button {
  min-height: 34px;
  padding: .42rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(33,79,46,.22);
  background: rgba(255,255,255,.94);
  color: var(--green);
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(33,79,46,.10);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.clear-top-button:hover { transform: translateY(-1px); background: var(--sage); }

.book-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 0;
}

.side-nav {
  align-self: center;
  min-width: 98px;
  min-height: 44px;
  padding: .72rem .88rem;
  box-shadow: 0 12px 24px rgba(33,79,46,.16);
  z-index: 2;
}

.controls {
  display: flex;
  justify-content: center;
  width: min(100%, 460px);
  border-radius: 999px;
}

.spread-status { width: 100%; }

@media (min-width: 781px) {
  .journal-shell {
    gap: clamp(.26rem, .58vh, .45rem);
  }

  .book-stage {
    flex: 1 1 auto;
    min-height: 0;
  }

  .book-wrap {
    width: 100%;
  }

  .side-nav {
    min-width: clamp(78px, 7.5vw, 104px);
    padding: .46rem .62rem;
    font-size: clamp(.76rem, .9vw, .86rem);
  }

  .controls {
    margin-top: 0;
    padding: .38rem .58rem;
  }
}

@media (min-width: 781px) and (max-width: 1040px) {
  .book-stage { gap: .45rem; }
  .side-nav {
    min-width: 72px;
    padding: .42rem .5rem;
    font-size: .76rem;
  }
}

@media (max-width: 780px) {
  .music-panel {
    gap: .5rem;
    margin-bottom: .75rem;
  }

  .clear-top-button,
  .music-button {
    min-width: min(46%, 190px);
  }

  .book-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
  }

  .book-wrap {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .side-prev {
    grid-column: 1;
    grid-row: 2;
  }

  .side-next {
    grid-column: 2;
    grid-row: 2;
  }

  .side-nav {
    width: 100%;
    min-width: 0;
  }

  .controls {
    border-radius: 24px;
    width: 100%;
  }
}


/* V9 surgical correction only:
   - keep the last stable layout
   - keep side Previous/Next navigation
   - make Poinciana Therapy LLC and CourageCoachJess.org red
   - fit the cover title without changing unrelated pages */
:root {
  --brand-red: #c62828;
}

.mini-kicker,
.designed-line a,
.cover-credit a {
  color: var(--brand-red) !important;
  border-bottom-color: rgba(198, 40, 40, .28) !important;
}

/* Keep the side Previous/Next buttons beside the book on desktop. */
@media (min-width: 781px) {
  .book-stage {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: .75rem !important;
  }

  .side-prev,
  .side-next {
    grid-row: 1 !important;
    align-self: center !important;
    width: auto !important;
  }

  .side-prev { grid-column: 1 !important; }
  .book-wrap { grid-column: 2 !important; grid-row: 1 !important; }
  .side-next { grid-column: 3 !important; }

  /* Only adjust cover title sizing so the word Worksheet is not cut off. */
  .cover-title {
    max-width: 100% !important;
  }

  .cover-title .nowrap {
    white-space: nowrap !important;
  }

  .cover-title .long-title {
    white-space: nowrap !important;
    font-size: .70em !important;
    letter-spacing: -.052em !important;
  }
}

/* V10 targeted page-size fix:
   Make all spreads use the same larger page size as the approved final spread.
   Preserve side navigation and existing layout choices. */
@media (min-width: 781px) {
  .book-wrap {
    min-height: 770px !important;
  }

  .book {
    min-height: 770px !important;
    height: auto !important;
  }

  .page,
  .cover-page,
  .page.left-page,
  .page.right-page {
    min-height: 770px !important;
    height: auto !important;
  }

  /* Keep the interior content positioned naturally within the taller page. */
  .page-content {
    justify-content: flex-start !important;
  }

  /* Keep the cover visually balanced within the same taller size. */
  .cover-page {
    justify-content: center !important;
  }
}


/* V11 alignment correction:
   Keep the V10 page size, but restore the approved centered interior alignment.
   This fixes the pages becoming the right height but visually unbalanced/unaligned. */
@media (min-width: 781px) {
  .book-stage {
    align-items: center !important;
  }

  .book-wrap,
  .book {
    align-items: stretch !important;
  }

  .page,
  .page.left-page,
  .page.right-page,
  .cover-page {
    min-height: 770px !important;
    height: auto !important;
  }

  .page-content {
    justify-content: center !important;
  }

  .page-footer {
    margin-top: auto !important;
  }

  .page-cta {
    margin-top: auto !important;
  }

  /* Pages that do not have appointment buttons still keep the crisis/footer row aligned at the same bottom level. */
  .page:not(.cover-page) .page-gap {
    margin-top: auto !important;
  }

  /* Keep the cover centered inside the same full-size page without changing other spreads. */
  .cover-page {
    justify-content: center !important;
  }

  /* Keep final/review spread readable while preserving the same outside page size. */
  .compact-review-card .review-list {
    max-height: 300px !important;
  }
}


/* V15 alignment refinement:
   Keep the approved V14 layout and email fix.
   Only normalize title/intro space so left and right page question cards line up more evenly. */
@media (min-width: 781px) {
  .page:not(.cover-page) .page-title {
    min-height: 2.15em !important;
    display: flex !important;
    align-items: flex-end !important;
  }

  .page:not(.cover-page) .page-intro {
    min-height: 2.4em !important;
  }

  .page:not(.cover-page) .page-content {
    justify-content: center !important;
  }
}
