/* Study controls: keyboard access, readable metadata, and narrow-screen layout. */
.study-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.study-shell { --study-muted: var(--brand-dark-gray, #475569); }
.study-shell :is(.text-slate-400, .text-slate-500) { color: var(--study-muted) !important; }
.study-shell .study-muted.opacity-50 { opacity: 1 !important; }
.study-shell .text-brand-orange { color: var(--brand-navy, #2b3a7f) !important; }
.study-shell .study-cta.bg-brand-orange { color: var(--brand-navy-dark, #172554) !important; }
.study-shell :is(a, button, input, textarea, select):focus-visible { outline: 3px solid var(--brand-navy, #2b3a7f); outline-offset: 3px; }
.study-hero :is(a, button):focus-visible { outline-color: white; }
.study-shell .study-verse-select { display: flex; flex: 1; align-items: flex-start; gap: 1rem; min-width: 0; padding: .5rem 0; border: 0; border-radius: .25rem; box-shadow: none; background: transparent; color: inherit; text-align: start; font: inherit; cursor: pointer; }
.study-verse-select .study-verse { overflow-wrap: anywhere; }
.study-verse-copy { opacity: 1 !important; flex-shrink: 0; }
/* After a tap, say in words what happened ("Verse copied.") beside the copy button. */
.study-verse-copy { position: relative; }
.study-verse-copy.has-status::after { content: attr(data-status-label); position: absolute; right: calc(100% + .375rem); top: 50%; transform: translateY(-50%); z-index: 5; width: max-content; max-width: min(16rem, 62vw); padding: .375rem .625rem; border-radius: .5rem; background: var(--brand-navy, #2b3a7f); color: #fff; font: 600 .8125rem/1.3 var(--font-sans, system-ui, sans-serif); text-align: start; white-space: normal; box-shadow: 0 4px 12px rgba(15, 23, 42, .18); pointer-events: none; }
.study-shell :is(.study-verse-copy, .js-close-note-selection, #clear-note-selection, .study-note-action) { min-width: 44px; min-height: 44px; }
.study-verse-notes[aria-hidden="true"] { visibility: hidden; }
.study-pagination { flex-wrap: wrap; }
.study-shell :is(input, textarea, select) { font-size: max(1rem, 16px); }
.study-shell .study-hero h1 { overflow-wrap: anywhere; }
@media (max-width: 767px) {
    .study-shell .study-hero { padding: 2rem 1rem; }
    .study-shell .study-hero h1 { font-size: clamp(2rem, 9vw, 3.25rem); line-height: 1.15; }
    .study-shell .study-pane { padding: 1rem; min-width: 0; }
    .study-shell .study-preview-banner { position: static; }
    .study-shell .study-pagination { gap: 1rem; }
    .study-shell .study-note-target-row { flex-wrap: wrap; }
    .study-shell .study-note-target-row > .flex { margin-left: 0; flex-wrap: wrap; }
    .study-shell .study-verse-line { gap: .5rem; padding: .5rem; }
    .study-shell .study-verse-select { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .study-shell *, .study-shell *::before, .study-shell *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Utilities the study templates use that the pre-purged Tailwind build does not ship.
   Without these the detail-page icon tiles have no fill, "The Teaching" border is grey,
   and arbitrary radius/tracking values silently do nothing. */
.study-shell .bg-amber-50 { background-color: var(--accent-wisdom-bg, #fffbeb); }
.study-shell .text-amber-600 { color: var(--accent-wisdom, #b45309); }
.study-shell .bg-emerald-50 { background-color: var(--accent-growth-bg, #f0fdfa); }
.study-shell .text-emerald-600 { color: var(--accent-growth, #0f766e); }
.study-shell .border-brand-orange { border-color: var(--brand-orange, #FA8334); }
.study-shell .text-slate-700 { color: #334155; }
.study-shell .shrink-0 { flex-shrink: 0; }
.study-shell .font-display { font-family: var(--font-display, 'Playfair Display', serif); }
.study-shell .hover\:bg-brand-navy-light:hover { background-color: var(--brand-navy-light, #4b5ba3); }
.study-shell .tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.study-shell .tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.study-shell .rounded-\[2rem\] { border-radius: 2rem; }
.study-shell .rounded-\[2\.5rem\] { border-radius: 2.5rem; }

/* Highlight legend: the chip/swatch classes had no rules, so each swatch was an
   empty zero-width span and the legend showed labels with no colors. Swatches
   reuse the verse highlight fills and add a same-hue edge so the pale fills
   stay visible on the legend's light background. */
.study-shell .study-highlight-chip { display: inline-flex; align-items: center; gap: 0.5rem; }
.study-shell .study-highlight-swatch {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
    flex-shrink: 0;
}
.study-shell .study-highlight-swatch.study-highlight-focus { box-shadow: inset 0 0 0 1.5px rgba(202, 138, 4, 0.6); }
.study-shell .study-highlight-swatch.study-highlight-word { box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, 0.5); }
.study-shell .study-highlight-swatch.study-highlight-theme { box-shadow: inset 0 0 0 1.5px rgba(5, 150, 105, 0.5); }
