/* Lockett Lesson Tools 3.0 — guided journey
   One screen. One purpose. One obvious next step. */

.lhp-journey-active .lhp-main,
.lhp-journey-main {
  font-size: 1.125rem; /* 18px */
  line-height: 1.55;
  color: var(--lhp-ink);
  max-width: 46rem;
  padding-bottom: 3rem;
}

.lhp-journey-main .lhp-crumb { font-size: 1rem; margin-bottom: 0.85rem; }

.lhp-step-meta {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lhp-green);
}

.lhp-journey-main h1 {
  margin: 0 0 0.85rem;
  font-family: var(--lhp-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--lhp-navy);
  letter-spacing: -0.02em;
}

.lhp-tag {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-family: var(--lhp-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lhp-navy);
  background: var(--lhp-how);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.lhp-tag[data-tag="WHY"] { background: var(--lhp-why); }
.lhp-tag[data-tag="HOW"] { background: var(--lhp-how); }
.lhp-tag[data-tag="DISCOVER"] { background: var(--lhp-discover); }

/* Compact 5-step progress: only the current step is emphasized */
.lhp-progress-strip {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
}
.lhp-progress-strip > li { margin: 0; }
.lhp-progress-dot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.35rem 0.55rem;
  border: 2px solid transparent;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--lhp-muted);
  font: inherit;
  font-weight: 700;
  cursor: default;
  text-align: left;
}
.lhp-progress-dot.is-visited {
  cursor: pointer;
  color: var(--lhp-navy);
}
.lhp-progress-dot.is-visited:hover,
.lhp-progress-dot.is-visited:focus-visible {
  border-color: var(--lhp-sage);
  outline: none;
}
.lhp-progress-dot.is-current {
  background: var(--lhp-how);
  border-color: var(--lhp-green);
  color: var(--lhp-navy);
  box-shadow: 0 0 0 3px rgba(74, 121, 30, 0.14);
  cursor: default;
  padding-right: 0.8rem;
}
.lhp-progress-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #D9E0E6;
  color: var(--lhp-navy);
  font-size: 0.95rem;
}
.lhp-progress-dot.is-visited .lhp-progress-num { background: #C9DDB0; }
.lhp-progress-dot.is-current .lhp-progress-num { background: var(--lhp-green); color: #fff; }
.lhp-progress-name { display: none; font-size: 0.95rem; font-weight: 700; }
.lhp-progress-dot.is-current .lhp-progress-name { display: inline; }
.lhp-progress-start {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--lhp-green);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}
.lhp-progress-dot.is-current .lhp-progress-start { display: inline-block; }

/* The stage: one screen at a time */
.lhp-stage {
  background: #fff;
  border-radius: var(--lhp-radius);
  box-shadow: var(--lhp-shadow);
  padding: 1.5rem 1.5rem 1.35rem;
}
.lhp-screen { display: none; }
.lhp-screen.is-active { display: block; }
.lhp-screen:focus { outline: none; }

.lhp-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lhp-green);
}
.lhp-prompt,
.lhp-screen h2.lhp-prompt {
  margin: 0 0 0.7rem;
  font-family: var(--lhp-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--lhp-navy);
}
.lhp-lead {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--lhp-navy);
}
.lhp-hint, .lhp-quiet { color: var(--lhp-ink); }
.lhp-quiet { font-size: 1.05rem; margin: 0.8rem 0 0; }
.lhp-screen p { margin: 0 0 0.9rem; }
.lhp-screen h3 {
  font-family: var(--lhp-serif);
  color: var(--lhp-navy);
  font-size: 1.3rem;
  margin: 1.3rem 0 0.5rem;
}

/* Read / listen */
.lhp-listen { margin: 0 0 1rem; }
.lhp-listen[hidden],
.lhp-listen.is-pending { display: none !important; }
.lhp-listen .lhp-listen-label {
  display: block;
  font-weight: 700;
  color: var(--lhp-navy);
  margin: 0 0 0.45rem;
}
.lhp-journey-main .lhp-player {
  max-width: 100%;
}

.lhp-read-toggle { margin: 0 0 0.5rem; }
.lhp-read-toggle summary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.35rem 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--lhp-green-type);
  list-style: none;
}
.lhp-read-toggle summary::-webkit-details-marker { display: none; }
.lhp-read-toggle summary::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-right: 0.55rem;
  transition: transform 0.15s ease;
}
.lhp-read-toggle[open] summary::before { transform: rotate(45deg); }
.lhp-read-body { margin: 0.4rem 0 0.8rem; }

/* Chips and fields */
.lhp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.lhp-chips button {
  min-height: 48px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 700;
  color: var(--lhp-navy);
  background: var(--lhp-how);
  border: 2px solid var(--lhp-navy);
  border-radius: 999px;
  cursor: pointer;
}
.lhp-chips button:hover,
.lhp-chips button:focus-visible,
.lhp-chips button.is-selected {
  background: var(--lhp-green);
  border-color: var(--lhp-green);
  color: #fff;
  outline: none;
}

.lhp-field { margin: 0 0 1.1rem; }
.lhp-field label,
.lhp-score legend {
  display: block;
  font-weight: 700;
  color: var(--lhp-navy);
  margin: 0 0 0.4rem;
}
.lhp-journey-main .lhp-field input[type="text"],
.lhp-journey-main .lhp-field textarea {
  width: 100%;
  font: inherit;
  color: var(--lhp-navy);
  background: #fff;
  border: 2px solid var(--lhp-navy);
  border-radius: 0.45rem;
  padding: 0.7rem 0.8rem;
  min-height: 48px;
}
.lhp-journey-main .lhp-field textarea { min-height: 6rem; resize: vertical; }

.lhp-score { border: 0; margin: 0 0 0.5rem; padding: 0; }
.lhp-score-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.lhp-score-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 2px solid var(--lhp-navy);
  border-radius: 50%;
  font-weight: 700;
  color: var(--lhp-navy);
  cursor: pointer;
}
.lhp-score-grid input { position: absolute; opacity: 0; pointer-events: none; }
.lhp-score-grid label:has(input:checked),
.lhp-score-grid label.is-selected,
.lhp-score-grid label:focus-within {
  background: var(--lhp-green);
  border-color: var(--lhp-green);
  color: #fff;
}
.lhp-score-ends {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.45rem;
  font-size: 1rem;
  font-weight: 600;
}

.lhp-goal-picks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.lhp-goal-picks:empty { display: none; }
.lhp-goal-pick {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: var(--lhp-navy);
  background: var(--lhp-page);
  border: 2px solid var(--lhp-navy);
  border-radius: 0.7rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}
.lhp-goal-pick:hover,
.lhp-goal-pick:focus-visible,
.lhp-goal-pick.is-selected {
  background: var(--lhp-how);
  border-color: var(--lhp-green);
  outline: none;
}
.lhp-goal-pick .lhp-goal-score { margin-left: auto; color: var(--lhp-green); }

.lhp-journal-questions { margin: 0 0 1rem; padding-left: 1.3rem; }
.lhp-journal-questions li { margin: 0 0 0.35rem; }

/* Summary */
.lhp-summary-card {
  background: var(--lhp-page);
  border-radius: 0.8rem;
  padding: 1rem 1.15rem;
  margin: 0 0 1rem;
}
.lhp-summary-card dl { margin: 0; }
.lhp-summary-card dt {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lhp-green-type);
  margin: 0.7rem 0 0.15rem;
}
.lhp-summary-card dt:first-child { margin-top: 0; }
.lhp-summary-card dd { margin: 0; font-weight: 600; color: var(--lhp-navy); }
.lhp-summary-card .is-empty { font-weight: 500; color: var(--lhp-muted); font-style: italic; }
.lhp-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

/* Persistent back / continue */
.lhp-stage-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.1rem;
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--lhp-line);
}
.lhp-back {
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--lhp-navy);
  background: none;
  border: 0;
  padding: 0.4rem 0;
  min-height: 48px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.lhp-back:hover, .lhp-back:focus-visible { color: var(--lhp-green-type); }
.lhp-back[hidden] { display: none !important; }
.lhp-continue {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.4rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: var(--lhp-green);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(14, 58, 81, 0.12);
}
.lhp-continue:hover, .lhp-continue:focus-visible { background: var(--lhp-green-hover); outline: 3px solid var(--lhp-navy); outline-offset: 2px; }
.lhp-continue[hidden] { display: none !important; }
.lhp-continue svg { width: 1.15rem; height: 1.15rem; margin-left: 0.35rem; }

/* Finish */
.lhp-complete-slot { margin: 1rem 0 1.1rem; }
.lhp-journey-main .lhp-btn-complete,
.lhp-btn-next-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  background: var(--lhp-green);
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.lhp-btn-next-seg.is-locked,
.lhp-btn-next-seg[aria-disabled="true"] {
  background: #8AA08A;
  color: #fff;
  cursor: default;
  pointer-events: none;
}
.lhp-next-seg-note { margin: 0.8rem 0; }
.lhp-disclaimer-short {
  margin: 1rem 0;
  font-size: 1.05rem;
  color: var(--lhp-ink);
}
.lhp-optional-block {
  margin: 1.4rem 0 0;
  padding: 1.05rem 1.15rem;
  background: var(--lhp-discover);
  border-radius: 0.8rem;
}
.lhp-optional-block h3 {
  margin: 0 0 0.35rem;
  font-family: var(--lhp-serif);
  color: var(--lhp-navy);
}

.lhp-journey-main .lhp-btn,
body .lhp-journey-main .lhp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.05rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--lhp-green);
  border: 2px solid var(--lhp-green);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
body .lhp-journey-main .lhp-btn-secondary {
  color: var(--lhp-navy);
  background: #fff;
  border-color: var(--lhp-navy);
}
.lhp-text-link {
  font-weight: 700;
  color: var(--lhp-green-type);
  text-underline-offset: 0.15em;
}

/* Disclaimer always visible under the stage */
.lhp-disclaimer-bar {
  margin: 1.15rem 0 0;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1.5px solid var(--lhp-navy);
  border-radius: 0.6rem;
  font-size: 1.05rem;
}
.lhp-disclaimer-bar p { margin: 0; }

.lhp-refs { margin: 0 0 1rem; padding-left: 1.25rem; }
.lhp-refs li { margin: 0 0 0.45rem; }

/* Beat theme button resets */
body .lhp-continue,
body .lhp-journey-main .lhp-btn-complete { background: var(--lhp-green) !important; color: #fff !important; border: 0 !important; }
body .lhp-back { background: none !important; color: var(--lhp-navy) !important; border: 0 !important; }
body .lhp-chips button { background: var(--lhp-how) !important; color: var(--lhp-navy) !important; border: 2px solid var(--lhp-navy) !important; }
body .lhp-chips button.is-selected { background: var(--lhp-green) !important; color: #fff !important; border-color: var(--lhp-green) !important; }

@media (max-width: 960px) {
  .lhp-journey-main { max-width: none; }
  .lhp-stage { padding: 1.2rem 1.05rem 1.15rem; }
  .lhp-continue { width: 100%; margin-left: 0; }
  .lhp-stage-nav { flex-direction: column; align-items: stretch; }
  .lhp-back { order: 2; }
  .lhp-continue { order: 1; }
  .lhp-summary-actions { flex-direction: column; align-items: stretch; }
  /* Keep the five dots on one row; the screen title already names the step. */
  .lhp-progress-strip { flex-wrap: nowrap; gap: 0.3rem; }
  .lhp-progress-dot { padding: 0.25rem; }
  .lhp-progress-dot.is-current { padding: 0.25rem 0.35rem; }
  .lhp-progress-dot.is-current .lhp-progress-name { display: none; }
}

.lhp-journey-main .lhp-cal-time,
.lhp-journey-main .lhp-cal-ics {
  min-height: 48px;
  font-size: 1.05rem;
}
.lhp-journey-main .lhp-cal-gcal {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.05rem;
}

@media (max-width: 360px) {
  .lhp-score-grid label { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .lhp-read-toggle summary::before { transition: none; }
}

@media print {
  .lhp-header, .lhp-sidebar, .lhp-wave, .lhp-contents-toggle,
  .lhp-progress-strip, .lhp-stage-nav, .lhp-listen, .lhp-chips,
  .lhp-add-to-calendar, .lhp-optional-block { display: none !important; }
  .lhp-screen { display: block !important; break-inside: avoid; }
  .lhp-stage { box-shadow: none; }
}
