/* Bible Tools — Concordance: blue accordion, numbered list, hover glow */

.bible-tools-inner {
  max-width: min(72rem, calc(100% - 1.75rem));
  margin: 0 auto;
  padding: 0 0 2rem;
}

/* Concordance accordion section */
.concordance-section {
  background: var(--bible-card);
  border: 2px solid var(--bible-blue-dim);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.concordance-section-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-bottom: 1px solid var(--bible-blue-dim);
}

.concordance-section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bible-blue);
  margin: 0 0 0.25rem;
}

.concordance-hint {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
  margin: 0 0 0.75rem;
}

.concordance-search-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.concordance-search-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.6rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid var(--bible-blue-dim);
  border-radius: 10px;
  box-sizing: border-box;
}

.concordance-search-input:focus {
  outline: none;
  border-color: var(--bible-blue);
  box-shadow: 0 0 0 2px var(--bible-blue-dim);
}

.concordance-search-input::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

.concordance-search-btn {
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  color: #fff;
  background: var(--bible-blue);
  border: 2px solid var(--bible-blue);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.concordance-search-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--bible-blue-dim);
}

/* Results: numbered list */
.concordance-results {
  padding: 1rem 1.25rem;
}

.concordance-count {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: 0.75rem;
}

.concordance-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.concordance-ref-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.concordance-ref-item:hover {
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.concordance-ref-item:focus {
  outline: none;
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 0 2px var(--bible-blue-dim);
}

.concordance-ref-num {
  font-weight: 700;
  color: var(--bible-blue);
  font-size: 0.9rem;
  min-width: 1.5rem;
}

.concordance-ref-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.concordance-empty {
  font-family: 'Nunito', sans-serif;
  color: rgba(226, 232, 240, 0.6);
  font-style: italic;
  margin: 0;
}

/* Verse card (shown when ref clicked) */
.concordance-verse-card {
  background: var(--bible-card);
  border: 2px solid var(--bible-gold-dim);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.concordance-verse-card.hidden {
  display: none;
}

.concordance-verse-ref {
  font-weight: 700;
  color: var(--bible-gold);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.concordance-verse-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

/* KJV word helps (Hub) — same data as Bible Tool study pane */
.kjv-word-helps-section {
  margin-bottom: 1.25rem;
}

.kjv-word-helps-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  max-height: min(55vh, 22rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.35);
}

.kjv-word-helps-item {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.kjv-word-helps-item:last-child {
  border-bottom: none;
}

.kjv-word-helps-row {
  line-height: 1.45;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.kjv-word-helps-headlink {
  font-weight: 700;
  color: var(--bible-gold);
  text-decoration: none;
}

.kjv-word-helps-headlink:hover,
.kjv-word-helps-headlink:focus-visible {
  text-decoration: underline;
  outline: none;
}

.kjv-word-helps-snippet {
  color: #cbd5e1;
  font-weight: 400;
}

.kjv-word-helps-examples {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
}

.kjv-word-helps-ref {
  color: #93c5fd;
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 197, 253, 0.35);
}

.kjv-word-helps-ref:hover,
.kjv-word-helps-ref:focus-visible {
  color: #bfdbfe;
  outline: none;
}

.concordance-chain-refs {
  margin-bottom: 0.85rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.concordance-chain-refs.hidden {
  display: none;
}

.concordance-chain-blurb {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 0.6rem;
  padding-left: 0.65rem;
  border-left: 3px solid rgba(212, 175, 55, 0.45);
  max-width: 40rem;
}

.concordance-chain-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bible-gold);
  margin: 0 0 0.45rem;
}

.concordance-chain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.concordance-chain-list li {
  margin: 0.35rem 0;
}

.concordance-chain-btn {
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--bible-gold-dim);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, color 0.15s;
}

.concordance-chain-btn:hover,
.concordance-chain-btn:focus-visible {
  border-color: var(--bible-gold);
  color: #fff;
  outline: none;
}

.concordance-word-highlight {
  background: linear-gradient(transparent 60%, rgba(255, 217, 61, 0.5) 60%);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.concordance-highlight-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--bible-gold);
  background: transparent;
  border: 2px solid var(--bible-gold);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.concordance-highlight-btn:hover {
  background: var(--bible-gold-dim);
  color: #fff;
}

/* Note modal (shared pattern with study) */
.concordance-note-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
}

.concordance-note-modal.hidden {
  display: none;
}

.concordance-note-modal-inner {
  background: var(--bible-bg);
  border: 4px solid var(--bible-gold);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 24rem;
  width: 100%;
  font-family: 'Nunito', sans-serif;
}

.concordance-note-title {
  font-size: 1.2rem;
  color: var(--bible-gold);
  margin: 0 0 0.25rem;
}

.concordance-note-ref {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.8);
  margin: 0 0 0.75rem;
}

.concordance-note-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #e2e8f0;
  background: var(--bible-card);
  border: 2px solid var(--bible-gold-dim);
  border-radius: 10px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.concordance-note-input:focus {
  outline: none;
  border-color: var(--bible-gold);
}

.concordance-note-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Verse Maps — blue frame, map 80% width, accordion */
.verse-maps-section {
  background: var(--bible-card);
  border: 2px solid var(--bible-blue-dim);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.verse-maps-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-bottom: 1px solid var(--bible-blue-dim);
}

.verse-maps-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bible-blue);
  margin: 0 0 0.25rem;
}

.verse-maps-hint {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
  margin: 0 0 0.75rem;
}

.verse-maps-search-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.verse-maps-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.6rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid var(--bible-blue-dim);
  border-radius: 10px;
  box-sizing: border-box;
}

.verse-maps-input:focus {
  outline: none;
  border-color: var(--bible-blue);
  box-shadow: 0 0 0 2px var(--bible-blue-dim);
}

.verse-maps-input::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

.verse-maps-show-btn {
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  color: #fff;
  background: var(--bible-blue);
  border: 2px solid var(--bible-blue);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.verse-maps-show-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--bible-blue-dim);
}

.verse-maps-content {
  padding: 1rem 1.25rem;
}

.verse-maps-content.hidden {
  display: none;
}

.verse-maps-frame {
  width: 80%;
  max-width: 600px;
  margin: 0 auto 1rem;
  border: 3px solid var(--bible-blue);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.verse-maps-iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block;
}

.verse-maps-accordion {
  margin-top: 1rem;
  border: 1px solid var(--bible-blue-dim);
  border-radius: 10px;
  overflow: hidden;
}

.verse-maps-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bible-blue);
  background: rgba(59, 130, 246, 0.08);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.verse-maps-accordion-trigger:hover {
  background: rgba(59, 130, 246, 0.15);
}

.verse-maps-accordion-trigger:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--bible-blue-dim);
}

.verse-maps-accordion-icon {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.verse-maps-accordion-trigger[aria-expanded="false"] .verse-maps-accordion-icon {
  transform: rotate(-90deg);
}

.verse-maps-accordion-trigger[aria-expanded="false"] + .verse-maps-verse-list {
  display: none;
}

.verse-maps-verse-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  border-top: 1px solid var(--bible-blue-dim);
}

.verse-maps-verse-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.verse-maps-verse-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.verse-maps-verse-item:hover {
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.verse-maps-verse-item:focus {
  outline: none;
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 0 2px var(--bible-blue-dim);
}

.verse-maps-verse-item .verse-ref {
  font-weight: 700;
  color: var(--bible-blue);
}

.verse-maps-verse-item .verse-label {
  color: rgba(226, 232, 240, 0.85);
}

.verse-maps-no-verses {
  font-family: 'Nunito', sans-serif;
  color: rgba(226, 232, 240, 0.6);
  font-style: italic;
  margin: 0;
  padding: 0.5rem 0;
}

.verse-maps-verse-card {
  background: var(--bible-card);
  border: 2px solid var(--bible-gold-dim);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.verse-maps-verse-card.hidden {
  display: none;
}

.verse-maps-verse-ref {
  font-weight: 700;
  color: var(--bible-gold);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.verse-maps-verse-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.verse-maps-highlight-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--bible-gold);
  background: transparent;
  border: 2px solid var(--bible-gold);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.verse-maps-highlight-btn:hover {
  background: var(--bible-gold-dim);
  color: #fff;
}

@media (max-width: 640px) {
  .verse-maps-frame {
    width: 100%;
  }
}

/* Bible Quiz — blue modal, green/red, trophy */
.bible-quiz-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 2px solid var(--bible-blue-dim);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.bible-quiz-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bible-blue);
  margin: 0 0 0.25rem;
}

.bible-quiz-hint {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
  margin: 0 0 0.75rem;
}

.take-quiz-btn {
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  color: #fff;
  background: var(--bible-blue);
  border: 2px solid var(--bible-blue);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.take-quiz-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--bible-blue-dim);
}

.bible-quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  padding: 1rem;
  overflow-y: auto;
}

.bible-quiz-modal.hidden {
  display: none;
}

.bible-quiz-modal-inner {
  background: var(--bible-bg);
  border: 4px solid var(--bible-blue);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 24rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  font-family: 'Nunito', sans-serif;
}

.bible-quiz-modal-title {
  font-size: 1.25rem;
  color: var(--bible-blue);
  margin: 0 0 0.25rem;
}

.bible-quiz-chapter {
  font-size: 0.95rem;
  color: var(--bible-gold);
  margin: 0 0 1rem;
}

.bible-quiz-questions {
  margin-bottom: 1rem;
}

.bible-quiz-q-text {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.75rem;
}

.bible-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bible-quiz-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 2px solid var(--bible-blue-dim);
  background: rgba(59, 130, 246, 0.06);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.bible-quiz-option:hover {
  border-color: var(--bible-blue);
  background: rgba(59, 130, 246, 0.12);
}

.bible-quiz-option input {
  accent-color: var(--bible-blue);
}

.bible-quiz-result {
  margin-bottom: 1rem;
}

.bible-quiz-result.hidden {
  display: none;
}

.bible-quiz-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bible-gold);
  margin: 0 0 0.5rem;
}

.bible-quiz-message {
  font-size: 1rem;
  color: #e2e8f0;
  margin: 0 0 1rem;
}

.bible-quiz-message.bible-quiz-win {
  color: var(--bible-gold);
  font-weight: 700;
}

.bible-quiz-review-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.bible-quiz-review-item:last-child {
  border-bottom: none;
}

.bible-quiz-review-item.correct {
  color: #86efac;
}

.bible-quiz-review-item.wrong {
  color: #fca5a5;
}

.bible-quiz-icon-ok {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

.bible-quiz-icon-x {
  color: #ef4444;
  font-weight: 700;
  flex-shrink: 0;
}

.bible-quiz-actions {
  display: flex;
  justify-content: flex-end;
}

.bible-quiz-actions.hidden {
  display: none;
}

/* Verse Memory — blue card flip, gold Next */
.verse-memory-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 2px solid var(--bible-blue-dim);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.verse-memory-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bible-blue);
  margin: 0 0 0.25rem;
}

.verse-memory-hint {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
  margin: 0 0 0.75rem;
}

.memorize-verse-btn {
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  color: #fff;
  background: var(--bible-blue);
  border: 2px solid var(--bible-blue);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.memorize-verse-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--bible-blue-dim);
}

.memorize-verse-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.verse-memory-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  padding: 1rem;
  overflow-y: auto;
}

.verse-memory-modal.hidden {
  display: none;
}

.verse-memory-modal-inner {
  background: var(--bible-bg);
  border: 4px solid var(--bible-blue);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 26rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  font-family: 'Nunito', sans-serif;
}

.verse-memory-modal-title {
  font-size: 1.25rem;
  color: var(--bible-blue);
  margin: 0 0 1rem;
}

.verse-memory-cards {
  margin-bottom: 1rem;
  min-height: 120px;
}

.verse-memory-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 2px solid var(--bible-blue-dim);
  border-radius: 12px;
  padding: 1.25rem;
  animation: verse-memory-card-in 0.4s ease-out;
}

.verse-memory-card-flipped {
  animation: verse-memory-card-flip 0.4s ease-out;
}

@keyframes verse-memory-card-in {
  from {
    opacity: 0;
    transform: rotateY(-10deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: rotateY(0) scale(1);
  }
}

@keyframes verse-memory-card-flip {
  0% {
    transform: rotateY(0) scale(1);
  }
  50% {
    transform: rotateY(90deg) scale(1.02);
  }
  100% {
    transform: rotateY(0) scale(1);
  }
}

.verse-memory-blanked {
  font-size: 1rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0 0 1rem;
}

.verse-memory-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid var(--bible-blue-dim);
  border-radius: 10px;
  box-sizing: border-box;
}

.verse-memory-input:focus {
  outline: none;
  border-color: var(--bible-blue);
  box-shadow: 0 0 0 2px var(--bible-blue-dim);
}

.verse-memory-feedback {
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verse-memory-feedback.correct {
  color: #86efac;
}

.verse-memory-feedback.wrong {
  color: #fca5a5;
}

.verse-memory-icon-ok {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

.verse-memory-icon-x {
  color: #ef4444;
  font-weight: 700;
  flex-shrink: 0;
}

.verse-memory-actions {
  display: flex;
  justify-content: flex-end;
}

.verse-memory-actions.hidden {
  display: none;
}

.verse-memory-next-btn {
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  color: var(--bible-bg);
  background: var(--bible-gold);
  border: 2px solid var(--bible-gold);
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.verse-memory-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--bible-gold-dim);
}

.verse-memory-result {
  margin-bottom: 1rem;
}

.verse-memory-result.hidden {
  display: none;
}

.verse-memory-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bible-gold);
  margin: 0 0 0.5rem;
}

.verse-memory-message {
  font-size: 1rem;
  color: #e2e8f0;
  margin: 0 0 1rem;
}

.verse-memory-message.verse-memory-win {
  color: var(--bible-gold);
  font-weight: 700;
}

.verse-memory-review-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.verse-memory-review-item:last-child {
  border-bottom: none;
}

.verse-memory-review-item.correct {
  color: #86efac;
}

.verse-memory-review-item.wrong {
  color: #fca5a5;
}

.concordance-verse-actions,
.verse-maps-verse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Book introductions (Hub Tools) */
.book-intros-section .hub-book-intro-controls {
  padding: 0 1.25rem 0.35rem;
}

.hub-book-intro-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--bible-blue-dim);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
}

.hub-book-intro-body .reader-book-intro-anchors {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  color: rgba(226, 232, 240, 0.92);
}

.hub-book-intro-body .reader-book-intro-anchors li {
  margin: 0.2rem 0;
}

/* ── Tools hub layout: intro, jump grid, grouped sections (Mar 2026) ── */
.bible-tools-hero {
  margin-bottom: 0.35rem;
  padding: 1.2rem 1rem 1.45rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 115% 85% at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 55%),
    rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-sizing: border-box;
}

.bible-tools-eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.88);
  margin: 0 auto 0.45rem;
}

.bible-tools-hero .bible-hub-tagline {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.bible-tools-intro {
  max-width: 38rem;
  margin: 1rem auto 0;
  padding: 0 0.25rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
  text-align: center;
}

.bible-tools-hub-bridge {
  max-width: 38rem;
  margin: 0 auto 1.35rem;
  padding: 0.85rem 1.05rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  line-height: 1.58;
  color: rgba(226, 232, 240, 0.88);
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.38);
}

.bible-tools-hub-bridge a {
  color: #e8cf7a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bible-tools-hub-bridge a:hover,
.bible-tools-hub-bridge a:focus-visible {
  color: #f5e3aa;
}

.bible-tools-lanes {
  margin: 0 0 1.1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.35);
}

.bible-tools-lanes-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 840px) {
  .bible-tools-lanes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bible-tools-lane-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 44px;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.52);
  text-decoration: none;
  color: inherit;
}

.bible-tools-lane-card:hover,
.bible-tools-lane-card:focus-visible {
  border-color: var(--bible-gold);
  outline: none;
}

.bible-tools-lane-step {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.bible-tools-lane-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
}

.bible-tools-lane-copy {
  font-family: 'Nunito', sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.86);
}

.bible-tools-overview-shell {
  margin: 0 0 2.5rem;
  padding: 1.15rem 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.32);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.14);
}

.bible-tools-overview {
  margin: 0;
  padding: 0;
}

.bible-tools-overview-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.85);
  margin: 0 0 0.75rem;
  text-align: center;
}

.bible-tools-overview-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 520px) {
  .bible-tools-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .bible-tools-overview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.bible-tools-overview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
}

/* Shared site surface tokens (styles.css) — explicit .tdb-surface-card on workshop jump links */
.bible-tools-overview-card.tdb-surface-card {
  background: var(--tdb-surface-card-bg);
  border: 1px solid var(--tdb-surface-card-border);
  border-radius: var(--tdb-surface-radius);
  box-shadow: var(--tdb-surface-card-shadow);
  transition: border-color 0.25s ease, box-shadow 0.35s cubic-bezier(0.33, 1, 0.68, 1), transform 0.2s ease;
}

.bible-tools-overview-card.tdb-surface-card:hover {
  border-color: color-mix(in srgb, var(--tdb-surface-card-border) 65%, rgba(227, 188, 103, 0.38));
  box-shadow: var(--tdb-surface-card-shadow-hover);
}

@media (prefers-reduced-motion: no-preference) {
  .bible-tools-overview-card.tdb-surface-card:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bible-tools-overview-card.tdb-surface-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .bible-tools-overview-card.tdb-surface-card:hover {
    transform: none;
  }
}

.bible-tools-overview-card.tdb-surface-card:focus-visible {
  outline: 3px solid var(--bible-gold, #d4af37);
  outline-offset: 3px;
}

:root[data-theme="light"] .bible-tools-overview-card.tdb-surface-card {
  background: var(--tdb-surface-card-bg);
  border-color: var(--tdb-surface-card-border);
  box-shadow: var(--tdb-surface-card-shadow);
}

:root[data-theme="light"] .bible-tools-overview-card.tdb-surface-card:hover {
  box-shadow: var(--tdb-surface-card-shadow-hover);
}

.bible-tools-overview-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
}

.bible-tools-overview-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.9);
}

.bible-tools-group {
  margin-bottom: 2.5rem;
}

.bible-tools-group-title {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.35rem;
  letter-spacing: 0.01em;
}

.bible-tools-group-lead {
  font-family: 'Nunito', sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

/* Anchor scroll: clear sticky header */
#verse-maps-section,
#verse-memory-section,
#bible-quiz-section,
#book-intros,
#kjv-word-helps,
#concordance-section {
  scroll-margin-top: 5.5rem;
}

/* Panel titles demoted to h3 — keep visual weight */
h3.verse-maps-title,
h3.verse-memory-title,
h3.bible-quiz-title,
h3.concordance-section-title {
  margin-top: 0;
}
