#lexia,
.lexia-container,
#jump-modal,
.study-question-box,
#toast {
  --primary: #54292f;
  --primary-hover: #6d353d;
  --primary-light: #f5ebeb;
  --primary-dark: #38191e;
  --accent-gold: #c59b27;
  --accent-gold-light: #fdf6e2;
  --accent-gold-dark: #8c6d15;
  --text-main: #1f2421;
  --text-muted: #5c6460;
  --text-light: #8a928e;
  --bg-app: #fbf9f5;
  --bg-card: #ffffff;
  --bg-card-subtle: #f7f4ee;
  --border-color: #e6e0d5;
  --border-light: #f0ebe2;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cinzel', serif;
}

#lexia.theme-sepia,
#lexia.theme-sepia .lexia-container,
#jump-modal.theme-sepia,
body.theme-sepia #lexia,
body.theme-sepia #jump-modal {
  --bg-app: #f4eedb;
  --bg-card: #faf6ea;
  --bg-card-subtle: #f0e8d0;
  --text-main: #33271e;
  --text-muted: #665545;
  --text-light: #8a7866;
  --border-color: #ded5bf;
  --border-light: #e6dfcc;
  --primary: #4e272c;
  --primary-light: #ebdcc9;
}

#lexia.theme-dark,
#lexia.theme-dark .lexia-container,
#jump-modal.theme-dark,
body.theme-dark #lexia,
body.theme-dark #jump-modal {
  --bg-app: #14151b;
  --bg-card: #1d1f27;
  --bg-card-subtle: #252833;
  --text-main: #e2e4ec;
  --text-muted: #9da3b4;
  --text-light: #6d7385;
  --border-color: #2e3240;
  --border-light: #252936;
  --primary: #c9737f;
  --primary-hover: #dd8a96;
  --primary-light: #2c1d22;
  --primary-dark: #f0a3ae;
  --accent-gold: #e2ba4d;
  --accent-gold-light: #2f2a1b;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lexia-container {
  background-color: var(--bg-card);
  color: var(--text-main);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ================= LEXIA CONTROLS BAR ================= */
.lexia-controls-bar {
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lexia-controls-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lexia-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.lexia-subbadge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lexia-controls-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.brand-link:hover .brand-church span:first-of-type {
  text-decoration: underline;
}

.brand-church {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}

.brand-church span.dot {
  color: var(--accent-gold);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-quarter {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  font-family: inherit;
}

.header-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.header-btn.highlight {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.header-btn.highlight:hover {
  background: var(--primary-hover);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  padding: 0.35rem;
  z-index: 110;
}

.dropdown-content.show {
  display: block;
}

.dropdown-item {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.dropdown-item:hover, .dropdown-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ================= STICKY DAY NAV BAR ================= */
.day-nav-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  position: sticky;
  top: 80px;
  z-index: 30;
  backdrop-filter: blur(8px);
}

.day-nav-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav-arrow-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.nav-arrow-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-center-info {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.nav-meta-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.nav-current-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ================= MAIN CONTAINER ================= */
.main-wrapper {
  max-width: 780px;
  width: 100%;
  margin: 1.5rem auto 3rem;
  padding: 0 1.25rem;
  flex: 1;
}

/* ================= LESSON HEADER & METADATA ================= */
.lesson-meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lmc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lmc-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.lmc-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.lmc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.memory-verse-box {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-main);
  border-left: 3px solid var(--primary);
  margin-top: 0.25rem;
  position: relative;
}

.mv-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
}

.mv-copy-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ================= ARTICLE BODY ================= */
.day-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.day-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.day-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.day-date-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-progress-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.day-main-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.day-en-title {
  display: none !important;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
}

/* Paragraph styling */
.day-prose {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
}

.day-prose p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* ================= INLINE EXPANDABLE SCRIPTURE VERSES ================= */
.inline-verse-wrapper {
  display: inline;
  position: relative;
}

.inline-verse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: baseline;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(84, 41, 47, 0.28);
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.6rem;
  margin: 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.88em;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.inline-verse-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(84, 41, 47, 0.25);
}

.inline-verse-btn .ivb-btn-icon {
  font-size: 0.95em;
}

.inline-verse-btn .ivb-btn-arrow {
  font-size: 0.75em;
  display: inline-block;
  transition: transform 0.25s ease;
}

.inline-verse-btn.is-open {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold-dark);
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.35);
}

.inline-verse-btn.is-open .ivb-btn-arrow {
  transform: rotate(180deg);
}

/* Expanded Card in another color */
.inline-verse-box {
  display: none;
  width: 100%;
  margin: 0.85rem 0 1.25rem 0;
  clear: both;
  animation: ivbFadeSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.inline-verse-box.open {
  display: block;
}

@keyframes ivbFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ivb-card {
  display: block;
  background: linear-gradient(135deg, #fdf8ee 0%, #faf1da 100%);
  border: 1px solid #e5d1a4;
  border-left: 5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.35rem;
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
  color: #3b2812;
  font-family: var(--font-serif);
}

.ivb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(197, 155, 39, 0.25);
  font-family: var(--font-sans);
}

.ivb-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #7a5808;
  letter-spacing: 0.01em;
}

.ivb-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ivb-ver-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid rgba(197, 155, 39, 0.4);
  color: #6e4d03;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.ivb-ver-btn:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.ivb-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 1px solid rgba(197, 155, 39, 0.35);
  color: #7a5808;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.ivb-close-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.ivb-verse-body {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: #3b2812;
  font-style: italic;
  padding: 0.2rem 0.2rem;
  text-align: left;
}

.ivb-multiverse-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ivb-multiverse-item {
  display: block;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  border: 1px dashed rgba(197, 155, 39, 0.35);
}

.ivb-subref {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: #7a5808;
  margin-bottom: 0.35rem;
}

/* Sepia theme overrides */
#lexia.theme-sepia .ivb-card,
body.theme-sepia #lexia .ivb-card {
  background: linear-gradient(135deg, #eee3c8 0%, #e6d5b3 100%);
  border-color: #cdb98e;
  border-left-color: #a47d1a;
  color: #2e1d0d;
}

#lexia.theme-sepia .ivb-card-title,
#lexia.theme-sepia .ivb-subref,
body.theme-sepia #lexia .ivb-card-title,
body.theme-sepia #lexia .ivb-subref {
  color: #634305;
}

#lexia.theme-sepia .ivb-verse-body,
body.theme-sepia #lexia .ivb-verse-body {
  color: #2e1d0d;
}

/* Dark theme overrides */
#lexia.theme-dark .inline-verse-btn,
body.theme-dark #lexia .inline-verse-btn {
  background: rgba(201, 115, 127, 0.15);
  color: #f0a3ae;
  border-color: rgba(201, 115, 127, 0.35);
}

#lexia.theme-dark .inline-verse-btn:hover,
body.theme-dark #lexia .inline-verse-btn:hover {
  background: #c9737f;
  color: #ffffff;
}

#lexia.theme-dark .inline-verse-btn.is-open,
body.theme-dark #lexia .inline-verse-btn.is-open {
  background: #e2ba4d;
  color: #14151b;
  border-color: #e2ba4d;
}

#lexia.theme-dark .ivb-card,
body.theme-dark #lexia .ivb-card {
  background: linear-gradient(135deg, #1e212b 0%, #161820 100%);
  border-color: #383c4e;
  border-left-color: #e2ba4d;
  color: #fef3c7;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#lexia.theme-dark .ivb-card-header,
body.theme-dark #lexia .ivb-card-header {
  border-bottom-color: rgba(226, 186, 77, 0.25);
}

#lexia.theme-dark .ivb-card-title,
#lexia.theme-dark .ivb-subref,
body.theme-dark #lexia .ivb-card-title,
body.theme-dark #lexia .ivb-subref {
  color: #fcd34d;
}

#lexia.theme-dark .ivb-verse-body,
body.theme-dark #lexia .ivb-verse-body {
  color: #fef9c3;
}

#lexia.theme-dark .ivb-multiverse-item,
body.theme-dark #lexia .ivb-multiverse-item {
  background: rgba(20, 21, 27, 0.7);
  border-color: #383c4e;
}

#lexia.theme-dark .ivb-ver-btn,
body.theme-dark #lexia .ivb-ver-btn {
  background: rgba(226, 186, 77, 0.15);
  border-color: rgba(226, 186, 77, 0.4);
  color: #fcd34d;
}

#lexia.theme-dark .ivb-ver-btn:hover,
body.theme-dark #lexia .ivb-ver-btn:hover {
  background: #e2ba4d;
  color: #14151b;
}

#lexia.theme-dark .ivb-close-btn,
body.theme-dark #lexia .ivb-close-btn {
  border-color: rgba(226, 186, 77, 0.35);
  color: #fcd34d;
}

/* Study question box */
.study-question-box {
  background: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  border-left: 5px solid var(--accent-gold-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.study-question-box strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

/* Embedded Verses accordion within question */
.qev-wrapper {
  margin-top: 1rem;
  border-top: 1px dashed var(--accent-gold);
  padding-top: 0.75rem;
}

.qev-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.qev-toggle-btn:hover {
  background: var(--primary-light);
}

.qev-toggle-btn .arrow {
  transition: transform 0.2s ease;
}

.qev-toggle-btn.open .arrow {
  transform: rotate(180deg);
}

.qev-content {
  display: none;
  margin-top: 0.75rem;
  flex-direction: column;
  gap: 0.75rem;
}

.qev-content.show {
  display: flex;
}

.verse-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.verse-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.verse-card-ref {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
}

.verse-ver-toggle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--bg-card-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.verse-ver-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.verse-card-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-main);
  font-style: italic;
}

/* ================= BOTTOM NAVIGATION & ACTIONS ================= */
.bottom-nav-section {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nav-card-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
  font-family: inherit;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.nav-card-btn.next {
  text-align: right;
  align-items: flex-end;
  border-color: var(--primary-light);
}

.nav-card-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-card-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.ncb-direction {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ncb-day-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.ncb-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Secondary Actions Bar */
.secondary-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  border-top: 1px solid var(--border-color);
}

.action-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  font-family: inherit;
}

.action-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.action-btn.active {
  background: #2e7d32;
  color: #ffffff;
  border-color: #2e7d32;
}

.keyboard-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kbd-key {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.7rem;
  font-family: monospace;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ================= JUMP MODAL / PICKER ================= */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.show {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  font-family: var(--font-display);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-lesson-group {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  background: var(--bg-card-subtle);
}

.mlg-header {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.mlg-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.4rem;
}

.mlg-day-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.15s ease;
  font-family: inherit;
}

.mlg-day-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.mlg-day-btn.current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
}

/* ================= SITE FOOTER ================= */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.25rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-church-brand {
  margin-bottom: 0.25rem;
}

.footer-church-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.footer-church-link:hover {
  color: var(--primary);
}

.footer-church-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-credits {
  line-height: 1.6;
}

.footer-credits strong {
  color: var(--text-main);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-bottom-copy {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ================= TOAST NOTIFICATION ================= */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2421;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 680px) {
  .header-container {
    padding: 0.6rem 1rem;
  }
  .brand-title {
    font-size: 1rem;
  }
  .day-nav-bar {
    top: 55px;
    padding: 0.5rem 0.75rem;
  }
  .nav-arrow-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }
  .nav-arrow-btn span.btn-label,
  .btn-label-site {
    display: none;
  }
  .day-article {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
  .day-main-title {
    font-size: 1.4rem;
  }
  .day-prose {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  .day-prose p {
    text-align: left;
  }
  .bottom-nav-grid {
    grid-template-columns: 1fr;
  }
  .nav-card-btn.next {
    text-align: left;
    align-items: flex-start;
  }
}
