/*
  Try Jesus Media — site-wide clarity and accessibility layer

  This file intentionally loads after each page's local stylesheet. It keeps
  the plum, gold, ivory, serif-heading visual system while applying one
  readable set of type, control, focus, contrast, and mobile standards.
*/

:root {
  --tjm-readable-ink: #302831;
  --tjm-readable-muted: #5f5660;
  --tjm-readable-ivory: #fffdf9;
  --tjm-readable-gold: #eebd4a;
  --tjm-readable-plum: #311e33;
  --tjm-reading-width: 65ch;
  --tjm-control-height: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 110px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-wrap: break-word;
  font-size: 19px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main,
#app-main,
.lesson-main,
.page-main,
.legal-page {
  min-width: 0;
}

/* Comfortable reading measure and a consistent body size. Embedded marketing
   forms are excluded so their provider-controlled layout remains intact. */
:where(main, #app-main, .lesson-main, .page-main, .legal-page)
  :where(p, li, dd, dt):not(.eyebrow):not(.microcopy):not([class*="label"]):not([class*="meta"]):not([class*="caption"]):not([class*="kicker"]):not([class*="note"]):not(#omnisend-embedded-v2-69965e87faf307608c8f562a *):not(#omnisend-embedded-v2-6a6ec2f44b0e701059793992 *) {
  font-size: clamp(1.125rem, 1.075rem + .2vw, 1.25rem) !important;
  line-height: 1.72 !important;
}

:where(main, #app-main, .lesson-main, .page-main, .legal-page)
  p:not(.eyebrow):not(.microcopy):not([class*="meta"]):not([class*="caption"]):not(#omnisend-embedded-v2-69965e87faf307608c8f562a *):not(#omnisend-embedded-v2-6a6ec2f44b0e701059793992 *) {
  max-width: var(--tjm-reading-width);
}

/* Headings retain the editorial serif treatment but gain enough leading to
   remain readable when a visitor enlarges the page. */
:where(main, #app-main, .lesson-main, .page-main, .legal-page) :where(h1, h2, h3) {
  max-width: 24ch;
  text-wrap: balance;
  overflow-wrap: normal;
}

:where(main, #app-main, .lesson-main, .page-main, .legal-page) h1 {
  line-height: .98 !important;
}

:where(main, #app-main, .lesson-main, .page-main, .legal-page) h2 {
  line-height: 1.03 !important;
}

:where(main, #app-main, .lesson-main, .page-main, .legal-page) h3 {
  line-height: 1.14 !important;
}

/* Small editorial labels remain premium, but are no longer fine print. */
:where(main, #app-main, .lesson-main, .page-main, .legal-page)
  :where(.eyebrow, [class*="kicker"], [class*="label"], [class*="meta"], [class*="caption"]) {
  font-size: max(.875rem, 14px) !important;
  line-height: 1.45 !important;
}

:where(main, #app-main, .lesson-main, .page-main, .legal-page)
  :where(.microcopy, [class*="note"], small) {
  font-size: max(.875rem, 14px) !important;
  line-height: 1.55 !important;
}

/* Stronger text contrast without changing the brand palette. */
:where(.section-dark, .lesson-shell, .hero-welcome, .result-wrap, .experience-section,
  .request-section, .urgency-section, .continue-card, .dashboard-side-card.dark)
  p:not(.eyebrow) {
  color: rgba(255, 253, 249, .88) !important;
}

:where(.section-light, .section-cream, .story, .watch-section, .topics-section,
  .faq-section, .legal-section, .topic-card, .benefit-card)
  p:not(.eyebrow) {
  color: var(--tjm-readable-muted) !important;
}

/* Body links look like links; navigation, cards, and buttons keep their own
   component styling. */
:where(main, #app-main, .lesson-main, .page-main, .legal-page)
  :where(p, li, dd) a:not(.button):not(.primary-button):not(.secondary-button):not(.text-link):not(.next-card-link) {
  text-decoration-thickness: .1em;
  text-underline-offset: .2em;
}

/* Large, forgiving controls for mouse, touch, and reduced dexterity. */
:where(.button, .primary-button, .secondary-button, .nav-button, .header-link,
  .listen-button, .live-zoom-link, .channel-link, .lesson-return-link,
  .social-link, .mobile-sticky, .nav-cta, input, select, textarea) {
  min-height: var(--tjm-control-height);
  font-size: max(1rem, 16px) !important;
}

:where(.button, .primary-button, .secondary-button, .nav-button, .live-zoom-link,
  .channel-link, .lesson-return-link, .social-link, .mobile-sticky, .nav-cta) {
  padding-block: 12px;
  white-space: normal;
  text-align: center;
}

:where(.site-nav a, .side-nav button, .bottom-nav button, summary) {
  min-height: 48px;
}

:where(.site-nav a) {
  display: inline-flex;
  align-items: center;
  font-size: max(.875rem, 14px) !important;
  line-height: 1.35 !important;
}

summary {
  padding-block: 16px;
}

input,
select,
textarea {
  border-width: 2px !important;
}

/* The small guide-progress dots are supplemental navigation. Their spacing
   and labels provide a usable target without turning them into large pills. */
.lesson-dots button {
  min-width: 28px !important;
  min-height: 28px !important;
}

/* A clear focus ring works on both cream and plum surfaces. */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--tjm-readable-gold) !important;
  outline-offset: 4px !important;
}

/* Footer links should not become small again after the main content. */
:where(.site-footer, .footer-inner) :where(p, a, span:not(.brand-mark):not(.brand-type)) {
  font-size: max(.9375rem, 15px);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .site-nav {
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 14px !important;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 92px;
  }

  body {
    font-size: 18px;
  }

  :where(main, #app-main, .lesson-main, .page-main, .legal-page)
    :where(p, li, dd, dt):not(.eyebrow):not(.microcopy):not([class*="label"]):not([class*="meta"]):not([class*="caption"]):not([class*="kicker"]):not([class*="note"]):not(#omnisend-embedded-v2-69965e87faf307608c8f562a *):not(#omnisend-embedded-v2-6a6ec2f44b0e701059793992 *) {
    font-size: 1.125rem !important;
    line-height: 1.68 !important;
  }

  :where(.button, .primary-button, .secondary-button, .nav-button,
    .live-zoom-link, .channel-link, .lesson-return-link, .mobile-sticky) {
    width: 100%;
    min-height: 56px;
    justify-content: center;
  }

  :where(.completion-actions, .hero-actions, .button-row, .shop-actions) {
    gap: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  body {
    color: #171418 !important;
    background: #fff !important;
    font-size: 12pt;
  }

  .site-header,
  .page-progress,
  .lesson-navigation,
  .site-footer,
  .toast,
  .pk-launcher,
  .pk-panel,
  .completion-actions,
  .hero-visual,
  .lesson-shell-glow {
    display: none !important;
  }

  .lesson-main,
  .lesson-shell,
  .lesson-panel,
  .panel-copy,
  .panel-copy-wide {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #171418 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .lesson-panel[hidden] {
    display: block !important;
  }

  .lesson-panel + .lesson-panel {
    margin-top: 36pt !important;
    padding-top: 28pt !important;
    border-top: 1px solid #bbb !important;
  }

  .lesson-panel :where(h1, h2, h3, p, li, strong, span, small, blockquote) {
    color: #171418 !important;
    text-shadow: none !important;
  }

  details,
  details[open] {
    display: block !important;
  }

  details > *:not(summary) {
    display: block !important;
  }

  a {
    color: #171418 !important;
  }
}

/* Welcome and signup-complete use the same Bible Guides experience as the app. */
#bible-guides.app-guide-library {
  min-height: 0;
  color: #fff9ee;
  background: #171418;
}

#bible-guides.app-guide-library::before,
#bible-guides.app-guide-library .ambient {
  display: none;
}

#bible-guides.app-guide-library .guides-inner {
  width: min(760px, calc(100% - 32px));
  padding: 52px 0 110px;
}

#bible-guides.app-guide-library .section-heading {
  max-width: none;
  margin: 0 0 20px;
  text-align: left;
}

#bible-guides.app-guide-library .section-heading h2 {
  margin: 0 0 8px;
  color: #fff9ee;
  font-family: inherit;
  font-size: 30px !important;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

#bible-guides.app-guide-library .section-heading > p:not(.eyebrow) {
  max-width: none;
  margin: 0;
  color: #bfb2c2;
  font-size: 14px !important;
  line-height: 21px !important;
}

#bible-guides.app-guide-library .journey-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

#bible-guides.app-guide-library .journey-card,
#bible-guides.app-guide-library .journey-jesus,
#bible-guides.app-guide-library .journey-prophecy {
  border: 1px solid rgba(238, 189, 74, .24);
  border-radius: 18px;
  background: #311e33;
  box-shadow: none;
  backdrop-filter: none;
}

#bible-guides.app-guide-library .journey-card::before {
  display: none;
}

#bible-guides.app-guide-library .journey-card:hover,
#bible-guides.app-guide-library .journey-card[open] {
  border-color: rgba(238, 189, 74, .24);
  box-shadow: none;
}

#bible-guides.app-guide-library .journey-summary {
  min-height: 0;
  padding: 20px;
}

#bible-guides.app-guide-library .journey-label {
  margin: 0 0 8px;
  color: #eebd4a;
  font-size: 11px !important;
  font-weight: 900;
  letter-spacing: 1.4px;
  line-height: 16px !important;
}

#bible-guides.app-guide-library .journey-summary h2 {
  margin: 0 0 7px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: #fff9ee;
  font-family: inherit;
  font-size: 24px !important;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 30px !important;
}

#bible-guides.app-guide-library .journey-summary h2::after {
  content: "+";
  flex: 0 0 auto;
  color: #eebd4a;
  font-size: 28px;
  font-weight: 500;
  line-height: 30px;
}

#bible-guides.app-guide-library .journey-card[open] .journey-summary h2::after {
  content: "−";
}

#bible-guides.app-guide-library .journey-summary p {
  max-width: none;
  margin: 0 0 16px;
  color: #f3e8d0 !important;
  font-size: 14px !important;
  line-height: 21px !important;
}

#bible-guides.app-guide-library .app-guide-progress {
  margin: 0 0 18px;
}

#bible-guides.app-guide-library .app-guide-progress > div:first-child {
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

#bible-guides.app-guide-library .app-guide-progress strong,
#bible-guides.app-guide-library .app-guide-progress span {
  font-size: 12px !important;
  line-height: 16px !important;
}

#bible-guides.app-guide-library .app-guide-progress strong {
  color: #eebd4a;
  font-weight: 900;
}

#bible-guides.app-guide-library .app-guide-progress > div:first-child > span {
  color: #bfb2c2;
  font-weight: 700;
}

#bible-guides.app-guide-library .app-guide-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #2a222b;
}

#bible-guides.app-guide-library .app-guide-progress-track > span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #eebd4a;
}

#bible-guides.app-guide-library .journey-toggle {
  min-height: 50px;
  padding: 12px 18px;
  justify-content: center;
  border-radius: 12px;
  color: #171418;
  background: #eebd4a;
  font-size: 15px !important;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 20px !important;
  text-transform: none;
}

#bible-guides.app-guide-library .journey-toggle b {
  display: none;
}

#bible-guides.app-guide-library .guide-list {
  padding: 0 20px 20px;
  gap: 9px;
  border: 0;
  background: transparent;
}

#bible-guides.app-guide-library .guide-item {
  min-height: 62px;
  padding: 10px 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid rgba(238, 189, 74, .24);
  border-radius: 14px;
  color: #f3e8d0;
  background: #2a222b;
}

#bible-guides.app-guide-library .guide-item:hover {
  border-color: rgba(238, 189, 74, .24);
  background: #2a222b;
  opacity: .75;
  transform: none;
}

#bible-guides.app-guide-library .guide-index {
  width: 34px;
  height: 34px;
  color: #171418;
  background: #eebd4a;
  font-family: inherit;
  font-size: 11px !important;
  font-weight: 900;
}

#bible-guides.app-guide-library .guide-item-copy strong {
  color: #f3e8d0;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 19px !important;
}

#bible-guides.app-guide-library .guide-item > b {
  color: #eebd4a;
  font-size: 27px;
  font-weight: 400;
  line-height: 30px;
}

@media (max-width: 520px) {
  #bible-guides.app-guide-library .guides-inner {
    width: auto;
    margin: 0;
    padding: 52px 20px 110px;
  }
}

/* =========================================================
   Bible guide reader — calm, premium, senior-friendly layer
   ========================================================= */

.guide-reader-page {
  --tjm-guide-copy: 1.2rem;
  padding-bottom: 0;
}

.guide-reader-page .lesson-shell {
  isolation: isolate;
}

.guide-reader-page .lesson-panel :where(p, li, dd),
.guide-reader-page .drawer-content p,
.guide-reader-page .drawer-list,
.guide-reader-page .contrast-card li,
.guide-reader-page .discovery-summary li,
.guide-reader-page .reflection-card p,
.guide-reader-page .next-lesson-card p,
.guide-reader-page .discussion-invite p {
  max-width: 65ch;
  font-size: var(--tjm-guide-copy) !important;
  line-height: 1.72 !important;
}

.guide-reader-page .lesson-panel :where(
  .story-rail,
  .history-timeline,
  .scripture-path,
  .diagnosis-grid,
  .comparison-grid,
  .prophet-pattern-grid,
  .interpretation-list,
  .authority-profile,
  .clue-ledger
) strong {
  font-size: max(1.0625rem, calc(var(--tjm-guide-copy) * .9)) !important;
  line-height: 1.42 !important;
}

.guide-reader-page .lesson-panel :where(
  .story-rail,
  .history-timeline,
  .scripture-path,
  .diagnosis-grid,
  .comparison-grid,
  .prophet-pattern-grid,
  .interpretation-list,
  .authority-profile,
  .clue-ledger
) p {
  color: rgba(255, 253, 249, .86) !important;
}

.guide-reader-page .lesson-shell :where(
  .source-links a span,
  .source-links a small,
  .study-chips span,
  .insight-band span,
  .question-callout small,
  .discovery-summary > span,
  .reflection-card small,
  .next-lesson-card > span,
  .discussion-invite > div > span
) {
  font-size: max(.9375rem, 15px) !important;
  line-height: 1.5 !important;
}

.guide-reader-page .source-links a {
  min-height: 58px;
  padding: 13px 15px;
}

.guide-reader-page .source-links a small,
.guide-reader-page .save-note,
.guide-reader-page .lesson-topline,
.guide-reader-page .lesson-shell :where(.drawer-note, [class*="note"]) {
  color: rgba(255, 253, 249, .78) !important;
}

.guide-reader-page .lesson-topline {
  min-height: 54px;
  font-size: .9375rem !important;
  letter-spacing: .075em;
}

.guide-reader-page .panel-copy,
.guide-reader-page .panel-copy-wide {
  width: 100%;
}

.guide-reader-page h1 {
  font-size: clamp(3rem, 6vw, 4.875rem);
  line-height: 1 !important;
}

.guide-reader-page h2 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  line-height: 1.05 !important;
}

.guide-reader-page :where(.header-link, .listen-button) {
  min-height: 46px;
  font-size: .9375rem !important;
}

.guide-reader-toolbar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
}

.guide-reading-controls,
.guide-text-controls,
.guide-audio-speed,
.guide-reader-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-audio-speed {
  color: rgba(255, 253, 249, .82);
  font-size: .9375rem;
  font-weight: 700;
}

.guide-reading-controls {
  gap: 12px;
  flex-wrap: nowrap;
}

.guide-text-controls {
  flex: 0 0 auto;
  gap: 0;
}

.guide-audio-speed,
.guide-audio-speed > span {
  min-width: 0;
}

.guide-audio-speed > span {
  overflow-wrap: anywhere;
}

.guide-text-controls button {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  color: var(--tjm-readable-ivory);
  background: rgba(255, 255, 255, .055);
  font-size: 1rem;
  font-weight: 800;
}

.guide-text-controls button:disabled {
  opacity: .4;
  cursor: default;
}

.guide-text-controls [data-text-size="decrease"] {
  border-radius: 10px 0 0 10px;
}

.guide-text-controls [data-text-size="increase"] {
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.guide-text-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Let enlarged guide text reflow instead of being clipped by fixed tracks. */
.guide-reader-page :where(.lesson-panel, .lesson-panel *, .header-actions,
  .lesson-topline *, .guide-reader-toolbar > *, .guide-outline *, .guide-glossary *) {
  min-width: 0;
}

.guide-reader-page .lesson-panel :where(h1, h2, h3, p, strong, em, span, a, li) {
  overflow-wrap: anywhere;
}

.guide-reader-page .lesson-topline span {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .guide-reader-page,
  .guide-reader-page * {
    transition: none !important;
  }
}

.guide-reader-page .header-actions {
  flex-wrap: wrap;
}

.guide-reader-page .guide-reader-toolbar {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
}

html[data-guide-text-enlarged="true"] .guide-reader-page .lesson-panel :where(
  [class*="-card-front"], [class*="-card-back"]) {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  margin-block: 16px;
  transform: none;
}

@media (max-width: 940px) {
  .guide-reader-page .guide-reader-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .guide-reader-page .guide-reader-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-guide-text-enlarged="true"] .guide-reader-page .mobile-guide-navigation {
    position: static;
    margin: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-guide-text-enlarged="true"] .guide-reader-page .mobile-guide-status {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .guide-reader-page .mobile-guide-navigation button {
    min-width: 0;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }
}

.guide-audio-speed select {
  flex-shrink: 0;
  min-width: 0;
  max-width: 70%;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  color: var(--tjm-readable-ivory);
  background: #311e33;
  font-size: 1rem !important;
}

.guide-reader-links {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.guide-reader-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 253, 249, .9);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(238, 189, 74, .7);
  text-underline-offset: .22em;
}

.guide-reader-links a:last-child {
  border: 1px solid rgba(238, 189, 74, .5);
  color: var(--tjm-readable-gold);
  text-decoration: none;
}

.guide-outline,
.guide-glossary {
  position: relative;
  z-index: 3;
  margin: 16px 28px 0;
  overflow: hidden;
  border: 1px solid rgba(238, 189, 74, .28);
  border-radius: 17px;
  background: rgba(8, 4, 9, .19);
}

.guide-glossary {
  margin-top: 10px;
}

.guide-outline summary,
.guide-glossary summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  color: var(--tjm-readable-ivory);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.guide-outline summary::-webkit-details-marker,
.guide-glossary summary::-webkit-details-marker {
  display: none;
}

.guide-outline summary span:last-child,
.guide-glossary summary span:last-child {
  color: var(--tjm-readable-gold);
  font-size: 1.3rem;
  transition: transform .2s ease;
}

.guide-outline[open] summary span:last-child,
.guide-glossary[open] summary span:last-child {
  transform: rotate(45deg);
}

.guide-outline ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 4px 16px 18px;
  list-style: none;
}

.guide-outline button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 12px;
  color: rgba(255, 253, 249, .88);
  background: rgba(255, 255, 255, .04);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.guide-outline button > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tjm-readable-gold);
  background: rgba(238, 189, 74, .1);
  font-family: Georgia, serif;
  font-weight: 700;
}

.guide-outline button.is-current {
  border-color: rgba(238, 189, 74, .72);
  background: rgba(238, 189, 74, .1);
}

.guide-glossary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 4px 18px 20px;
}

.guide-glossary dl > div {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
}

.guide-glossary dt {
  color: var(--tjm-readable-gold);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: capitalize;
}

.guide-glossary dd {
  margin: 6px 0 0;
  color: rgba(255, 253, 249, .86);
  font-size: 1rem !important;
  line-height: 1.58 !important;
}

.main-point {
  margin-top: 32px;
  padding: 23px 25px;
  border: 1px solid rgba(238, 189, 74, .5);
  border-radius: 18px;
  color: #311e33;
  background: linear-gradient(145deg, #fffdf9, #f3e8d0);
  box-shadow: 0 16px 38px rgba(8, 4, 9, .18);
}

.main-point > span {
  display: block;
  color: #8b5c00;
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.main-point p {
  margin: 9px 0 0 !important;
  color: #403641 !important;
  font-size: var(--tjm-guide-copy) !important;
  font-weight: 600;
  line-height: 1.62 !important;
}

.guide-reader-page .evidence-drawer > summary {
  font-size: 1rem !important;
  line-height: 1.45 !important;
}

.guide-reader-page .lesson-navigation {
  min-height: 92px;
  display: grid !important;
  grid-template-columns: minmax(175px, .8fr) minmax(220px, 1.4fr) minmax(210px, .9fr);
  gap: 14px;
  padding: 14px 28px;
  background: rgba(8, 4, 9, .32);
}

.guide-reader-page .lesson-dots {
  display: none;
}

.guide-section-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255, 253, 249, .76);
  text-align: center;
}

.guide-section-status span {
  color: var(--tjm-readable-gold);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.guide-section-status strong {
  max-width: 32ch;
  color: var(--tjm-readable-ivory);
  font-size: 1rem;
  line-height: 1.35;
}

.guide-reader-page .nav-button {
  min-height: 56px;
  padding: 10px 18px;
  border-color: rgba(255, 255, 255, .2);
  color: var(--tjm-readable-ivory);
  font-size: 1rem !important;
}

.guide-reader-page .nav-next {
  border-color: var(--tjm-readable-gold);
  color: #211323;
  background: linear-gradient(135deg, #f7d983, #eebd4a);
}

.mobile-guide-navigation {
  display: none;
}

/* Guide library status and actions */
#bible-guides .guide-item {
  min-height: 104px;
  padding: 16px;
}

#bible-guides .guide-item-copy strong {
  font-size: clamp(1.2rem, 1.1rem + .25vw, 1.4rem) !important;
  line-height: 1.22 !important;
}

#bible-guides .guide-item-copy > small {
  margin-top: 7px;
  color: rgba(255, 253, 249, .82);
  font-size: 1rem !important;
  line-height: 1.58 !important;
}

.guide-item-meta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 13px;
}

.guide-item-status,
.guide-item-action {
  font-size: .9375rem !important;
  font-weight: 750;
  line-height: 1.35;
}

.guide-item-status {
  color: rgba(255, 253, 249, .76);
}

.guide-item-action {
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(238, 189, 74, .62);
  border-radius: 999px;
  color: #211323;
  background: #eebd4a;
}

#bible-guides .journey-label,
#bible-guides .journey-toggle {
  font-size: .9375rem !important;
  line-height: 1.45 !important;
}

#bible-guides .journey-card p {
  color: rgba(255, 253, 249, .86) !important;
}

#bible-guides .journey-summary {
  min-height: 310px;
}

@media (max-width: 940px) {
  .guide-reader-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .guide-reader-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .guide-outline ol,
  .guide-glossary dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .guide-reader-page {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .guide-reader-page .site-header {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-block: 8px;
  }

  .guide-reader-page .header-actions {
    flex: 1 1 100%;
    justify-content: center;
  }

  .guide-reader-page .page-progress {
    top: 116px;
  }

  .guide-reader-page .lesson-main {
    padding-top: 18px;
  }

  .guide-reader-page h1 {
    font-size: clamp(2.65rem, 12vw, 3.85rem);
  }

  .guide-reader-page h2 {
    font-size: clamp(2.15rem, 10vw, 3.3rem);
  }

  .guide-reader-page .lesson-topline {
    display: grid;
    justify-items: start;
    gap: 3px;
    padding: 10px 16px;
  }

  .guide-reader-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .guide-reader-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guide-reader-links a {
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, .16);
  }

  .guide-outline,
  .guide-glossary {
    margin-inline: 16px;
  }

  .guide-outline ol {
    padding-inline: 10px;
  }

  .guide-reader-page .lesson-panel {
    padding: 36px 20px 38px;
  }

  .guide-reader-page .lesson-navigation {
    display: none !important;
  }

  .mobile-guide-navigation {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 1900;
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(238, 189, 74, .48);
    border-radius: 20px;
    color: #fffdf9;
    background: rgba(28, 17, 29, .96);
    box-shadow: 0 18px 48px rgba(10, 5, 11, .4);
    backdrop-filter: blur(18px);
  }

  .mobile-guide-navigation button {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    color: #fffdf9;
    background: rgba(255, 255, 255, .06);
    font-size: .9375rem;
    font-weight: 800;
  }

  .mobile-guide-navigation .mobile-guide-next {
    border-color: #eebd4a;
    color: #211323;
    background: #eebd4a;
  }

  .mobile-guide-navigation button:disabled {
    opacity: .42;
  }

  .mobile-guide-status {
    min-width: 52px;
    color: #f7d983;
    font-size: .875rem;
    font-weight: 800;
    text-align: center;
  }

  #bible-guides .guide-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 14px;
  }

  #bible-guides .guide-item > b {
    display: none;
  }

  .guide-item-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-item-action {
    min-height: 46px;
    justify-content: center;
  }

  #bible-guides .journey-summary {
    min-height: 0;
  }
}

@media print {
  .guide-reader-page {
    --tjm-guide-scale: 1 !important;
  }

  .guide-reader-toolbar,
  .guide-outline,
  .guide-glossary,
  .mobile-guide-navigation {
    display: none !important;
  }

  .guide-reader-page .lesson-panel :where(p, li, dd),
  .guide-reader-page .drawer-content p,
  .guide-reader-page .drawer-list {
    max-width: none;
    font-size: 14pt !important;
    line-height: 1.55 !important;
  }

  .main-point {
    break-inside: avoid;
    border: 2px solid #311e33 !important;
    box-shadow: none !important;
  }
}
