/* ===========================
   0) DESIGN TOKENS (THEME)
   =========================== */
:root {
  /* brand palette */
  --brand: #DA291C;           
  --brand-strong: #B82015;
  --bg: #FAA21A;              
  --text: #000000;

  /* accents */
  --focus: #1e40ff;          
  --current: blue;           
  --card-bg: #ffffff;

  /* sizing */
  --radius: 12px;
  --border: 3px;
  --gap: 1.5rem;

  /* type scale (px) */
  --fs-base: 16;
  --fs-h1: 32;
  --fs-h2: 24;
  --fs-h3: 20;
  --fs-h4: 18;

  /* spacing */
  --pad-lg: 16px;
  --pad: 16px;
}


:root[data-all-uppercase="true"] *:not(audio):not(video):not(source) {
  text-transform: uppercase;
}

/* ===========================
   1) BASE / RESET
   =========================== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 700 calc(var(--fs-base) * 1px)/1.7 Arial, sans-serif;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Visually-hidden screen reader helper */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===========================
   2) LAYOUT
   =========================== */
#layout { display: flex; flex-direction: row; min-height: 100vh; width: 100%; }

main, #content, #mainContent, #videoContent {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  padding: var(--pad);
  background: var(--bg);
}

/* ===========================
   HOME PAGE (inline menu)
   =========================== */

body.inline-menu main,
body.inline-menu #content,
body.inline-menu #mainContent {
  margin-left: 0;
  width: 100%;
  max-width: none;
}


body.inline-menu .layout {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
}


body.inline-menu main#content {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}


body.inline-menu .homeMenu,
body.inline-menu .footer-images {
  padding-left: 0;
  padding-right: 0;
}


.homeMenu {
  margin: 1rem 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  padding-block: 0;  
  box-shadow: none;
}

.homeMenu ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.homeMenu li { margin: 0 0 .75rem 0; }


.homeMenu a.menu-item,
.homeMenu button.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}


.menu-heading {
  margin: 0 0 .5rem 0;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
}
.menu-heading a.menu-item { display: block; }


.page-title {
  background: var(--brand);
  color: #fff;
  border: var(--border) solid #000;
  border-radius: var(--radius);
  padding: 10px var(--pad-lg);
}


.footer-images img {
  background: transparent;
  border: 0;
  padding: 0;
}


.footer-images img[tabindex="0"]:focus {
  outline: 3px solid blue;
  outline-offset: 4px;
  border-radius: 8px;
}

/* ===========================
   4) HEADINGS (unified red block)
   =========================== */

h1,
h2,
h3
{
  display: block;
  width: 100%;
  margin: 10px 0 30px 0;
  padding: 10px var(--pad-lg);
  text-align: left;
  color: #fff;
  background: var(--brand);
  border: var(--border) solid #000;
  border-radius: var(--radius);


  box-shadow:
    0 2px 6px rgba(0,0,0,.12),
    0 8px 10px rgba(0,0,0,.18);
}

h4
{
  display: block;
  width: 100%;
  margin: 50px 0 20px 0;
  padding: 10px var(--pad-lg);
  text-align: left;
  color: #fff;
  background: var(--brand);
  border: var(--border) solid #000;
  border-radius: var(--radius);


  box-shadow:
    0 2px 6px rgba(0,0,0,.12),
    0 8px 10px rgba(0,0,0,.18);
}

h1 { font-size: calc(var(--fs-h1) * 1px); }
h2 { font-size: calc(var(--fs-h2) * 1px); }
h3 { font-size: calc(var(--fs-h3) * 1px); }
h4 { font-size: calc(var(--fs-h4) * 1px); }

/* Audio spacing helpers (if you set .has-audio) */
body:not(.has-audio) #content h1 { margin-top: 10px; }
body.has-audio #content h1      { margin-top: 90px; }

:root {
  --fs-btn: 18; 
}


/* ===========================
   5) BUTTONS
   =========================== */

.btn,
.menu-item,
.toggle-button,
.btn-red {
  display: inline-block;
  width: auto;
  text-align: left;
  font-weight: 700;
  font-size: calc(var(--fs-btn) * 1px); 
  padding: 14px 24px;
  border: var(--border) solid #000;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.btn:hover,
.menu-item:hover,
.toggle-button:hover,
.btn-red:hover {
  background: var(--bg);
  color: var(--text);
}


.btn--block,
#menu a,
#videoMenu a,
#adVideoMenu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* ===========================
   6) MENUS 
   =========================== */
#menu, #videoMenu, #adVideoMenu, #lessonMenuContainer {
  width: 260px; min-width: 260px; flex-shrink: 0;
  background: var(--brand);
  padding: 10px;
  border-right: var(--border) solid #000;
  position: relative; z-index: 10;
}

#menu a, #videoMenu a, #adVideoMenu a {
  background: var(--brand);
  color: #fff;
  margin-bottom: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: var(--border) solid #000;
}

#menu a.today,
#videoMenu a.today,
#adVideoMenu a.today {
  background: var(--bg);
  color: var(--text);
  border-color: var(--current);
}

/* ===========================
   7) CARDS / BOXES
   =========================== */
.box,
.reading-group,
.song-access-container,
.quick-access-section {
  background: var(--bg);
  color: var(--text);
  border: var(--border) solid #000;
  border-radius: var(--radius);
  padding: 20px var(--pad-lg);
  margin: 30px 0;
}
.box h1, h2, h3 {
  background: var(--brand) !important;
  color: #fff !important;
}

/* ===========================
   8) MEDIA
   =========================== */
video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  border: var(--border) solid var(--bg);
  padding: 8px;
  margin: 2rem 0;
}

audio { width: 100%; display: block; margin: 1.25rem 0; }
/* ===========================
   9) PAGE ACTIONS 
   =========================== */


.page-nav-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin: 1.25rem 0 2rem;
 	
}
.page-nav-buttons:focus { outline: none; }

.page-nav-buttons .toggle-button,
.page-nav-buttons a.toggle-button {
  display: block;
  width: 100%;
  padding: 18px 24px;
  border: var(--border) solid #000;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: calc(var(--fs-h3) * 1px); 
  line-height: 1.15;
  cursor: pointer;
}

.page-nav-buttons .toggle-button:hover,
.page-nav-buttons .toggle-button:focus,
.page-nav-buttons a.toggle-button:hover,
.page-nav-buttons a.toggle-button:focus {
  background: var(--brand-strong);
  color: #fff;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
/* make specific items span the whole grid width */
.page-nav-buttons .full { grid-column: 1 / -1; }

/* ===========================
   10) FOOTER & IMAGES
   =========================== */
.footer-images { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 1rem; margin: 2rem 0 0; }
.footer-images img { width: 150px; height: auto; border-radius: 8px; object-fit: contain; }

footer {
  padding: 1rem;
  color: #fff;
  background: var(--brand);
  border-top: 2px solid var(--bg);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

/* ===========================
   11) RESPONSIVE
   =========================== */
@media (max-width: 900px) {

  #menu {
    position: fixed; inset: 0 auto auto 0; right: 0;
    width: 100%; max-height: 70vh;
    transform: translateY(-110%);
    transition: transform .25s ease;
    border-right: 0;
    border-bottom: 4px solid #000;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
    padding: calc(env(safe-area-inset-top, 0) + 8px) 12px 12px;
  }
  body.menu-open #menu { transform: translateY(0); }

  main, #content, #mainContent, #videoContent {
    margin-left: 0;
    width: 100%;
  }
}

/* ===========================
   12) UTILITIES
   =========================== */
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.left   { text-align: left; }
.right  { text-align: right; }


/* ===========================
   13) BIBLE MENU
   =========================== */

/* Container matches landing quick menu */
#bibleQuickMenu,
#chapterQuickMenu {
  background-color: var(--bg, #F7A800);
  padding: 1em;
  border-radius: 12px;
  margin-top: 1em;
  display: block;
}

/* Grid */
#bibleQuickMenu .quick-access-grid,
#chapterQuickMenu .quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1rem;
  justify-items: stretch;
}


#bibleQuickMenu .book-button,
#chapterQuickMenu .book-button {
  width: 100%;
  aspect-ratio: 1 / 1;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: var(--brand);
  color: #fff;
  border: 4px solid #000;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, outline 0.3s ease;
}

#bibleQuickMenu .book-button:hover,
#chapterQuickMenu .book-button:hover {
  background-color: var(--bg);
  color: var(--text);
}

#bibleQuickMenu .book-button:focus,
#chapterQuickMenu .book-button:focus {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

/* Bible long menu*/

#bibleLongMenu { padding: 0 1rem 2rem; }

#bibleLongMenu .book-item {   
  margin: .5rem 0;
  list-style: none;
}

#bibleLongMenu .book-button {
  display: block;
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: var(--border) solid #000;
  border-radius: var(--radius);
  padding: 16px var(--pad-lg);
  margin: 0.5rem 0;
  text-align: left;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  box-sizing: border-box;
  transition: background .2s ease, color .2s ease;
}

#bibleLongMenu .book-button:hover,
#bibleLongMenu .book-button:focus {
  background: var(--bg);
  color: var(--text);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}


/* ===========================
   14) HOME BUTTON (as h4)
   =========================== */

.home-heading {
  margin: 2rem 0 0;
  background: none;  
  border: none;      
  padding: 0;
}

.home-heading a {
  display: block;
  width: 100%;
  padding: 18px var(--pad-lg);
  background: var(--brand); 
  color: #fff;
  border: var(--border) solid #000;
  border-radius: var(--radius);
  font-size: calc(var(--fs-h2) * 1px);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.home-heading a:hover,
.home-heading a:focus {
  background: var(--brand-strong);
  color: #fff;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
/* ===========================
   15) ANSWER BOX 
   =========================== */

.qa-box {
  background: transparent; 
  border: var(--border, 3px) solid #000;
  border-radius: var(--radius, 12px);
  padding: 1rem;
  margin: 1.5rem 0;
  max-width: 800px;
  text-align: left;
}

.qa-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text, #000);
  text-align: left;
}

.qa-box textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem;
  border: 2px solid #000;
  border-radius: 8px;
  resize: vertical;
  background: #fff;
  color: #000;
  text-align: left;
}

.qa-box textarea:focus {
  outline: 3px solid var(--focus, #1e40ff);
  outline-offset: 3px;
}
/* ===========================
   16) SUBHEADING REGION
   =========================== */
section.cue {
  position: relative;
  margin: 1.25rem auto;     
  padding: 0.75rem 1rem 0.85rem 1.15rem;
  border-radius: 12px;
  background: transparent;
  border: 0;
  max-width: 900px;          
  box-shadow:
    0 2px 6px rgba(0,0,0,.12),
    0 10px 24px rgba(0,0,0,.18);
}


section.cue:focus-visible {
  outline: 3px solid var(--focus, #1e40ff);
  outline-offset: 0;           
}

section.cue > :first-child {
  margin: 0;
  font-weight: 800;
  font-size: calc(var(--fs-h2) * 1px);
  line-height: 1.25;
}


/* ===========================
   17) 	PUBLICATION AUDIO CHAPTERS
   =========================== */

.pub-block {
  border: 3px solid #000;        
  border-radius: 8px 8px 8px 8px;
  margin: 1rem 0;
  background: var(--bg, #FAA21A); 
  transition: border-color 0.2s ease;
}


.pub-block .chapters {
  max-height: 0;
  overflow: hidden;
  background: transparent;
  transition: max-height 0.35s ease;
}
.pub-block:not(.collapsed) .chapters { max-height: 1000px; }

/* =========================
   Book title (red heading bar)
   ========================= */
.pub-title-btn {
  display: block;
  width: 100%;
  background: #DA291C;
  color: #fff;
  padding: 20px 18px;
  border: 0;
  border-radius: 0px;
  font-weight: 600;
  font-size: clamp(1.125rem, 2vw, 1.35rem); 
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pub-title-btn:hover,
.pub-title-btn:focus,
.pub-title-btn:focus-visible {
  background: var(--bg, #FAA21A);
  color: #000;
  outline: 4px solid var(--focus, #1e40ff);
  outline-offset: -3px;
}
.pub-title-btn:active {
  background: #DA291C;
  color: #fff; 	
}


/* =========================
   Chapter list items
   ========================= */
.chapter-btn {
  display: block;
  width: 100%;
  background: transparent;         
  color: #000;                   
  padding: 16px 18px;             
  border: 0;
  border-radius: 0;
  text-align: left;
  font-weight: 600;
  font-size: clamp(1.0625rem, 1.7vw, 1.2rem); 
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.pub-block .chapters li + li .chapter-btn {
  border-top: 2px solid #000;
}


.chapter-btn:hover,
.chapter-btn:focus,
.chapter-btn:focus-visible {
  background: var(--brand-red, #DA291C);
  color: #fff;
  outline: 3px solid var(--focus, #1e40ff); 
  outline-offset: 2px;
}
.chapter-btn:active {
  background: color-mix(in srgb, var(--brand-red, #DA291C) 80%, black 20%);
  color: #fff;
}


.chapters li.playing .chapter-btn,
.chapter-btn[aria-current="true"] {
  background: var(--brand-strong, #DA291C);
  color: #fff;
  box-shadow: 0 0 0 3px var(--focus, #1e40ff); 
  border-radius: 6px; 
}

/* =========================
   Extras for accessibility
   ========================= */

@media (prefers-reduced-motion: reduce) {
  .pub-block .chapters { transition: none; }
  .pub-title-btn, .chapter-btn { transition: none; }
}


@media (forced-colors: active) {
  .pub-title-btn,
  .chapter-btn {
    forced-color-adjust: none;
    background: CanvasText;
    color: Canvas;
    border: 2px solid CanvasText;
  }
  .chapter-btn:hover,
  .chapter-btn:focus,
  .chapter-btn[aria-current="true"] {
    background: Highlight;
    color: HighlightText;
    outline: 3px solid Highlight;
  }
}


/* ===========================
   18) CONTACT FORM
   =========================== */

.contact-form {
  max-width: 820px;
  margin: 2rem auto;
  padding: 0;
  background: transparent;
  border: 0;
}


.contact-form h1 {
  margin-bottom: 1.5rem;
}

.contact-form .form-row {
  margin: 0 0 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  line-height: 1.5;
  padding: 14px 16px;
  border: var(--border) solid #000;
  border-radius: var(--radius);
  background: #fff;
  color: #000;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.contact-form .form-actions {
  margin-top: 1.5rem;
}

.contact-form button[type="submit"] {
  all: unset; /* Reset ALL browser defaults */
  display: block;
  width: 100%;
  padding: 18px 24px;
  border: var(--border) solid #000;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: calc(var(--fs-h3) * 1px);
  line-height: 1.15;
  cursor: pointer;
  box-sizing: border-box;
}

.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus {
  background: var(--brand-strong);
  color: #fff;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.form-status {
  margin-top: 1rem;
  font-weight: 800;
  padding: 0.75rem;
  border-radius: var(--radius);
}

.form-success{
  margin:1rem 0 3rem;
  padding:1rem 1.25rem;
  border:var(--border) solid #000;
  border-radius:var(--radius);
  background:var(--bg);  
  color:var(--text);      
  font-weight:800;
  box-shadow:0 2px 6px rgba(0,0,0,.12), 0 8px 10px rgba(0,0,0,.18);
}
.form-success:focus,
.form-success:focus-visible{
  outline:4px solid var(--focus);
  outline-offset:2px;
}

.success-title {
  margin: 0 0 .5rem;
  font-size: calc(var(--fs-h2) * 1px);
  line-height: 1.25;
}


.form-success .toggle-button {
  display: inline-block;
  margin-top: .5rem;
}

.submit-heading { 
  margin: 0; 
  padding: 0; 
  background: transparent; 
  color: inherit; 
  border: 0; 
}

.contact-form fieldset div,
.contact-form .checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem; 
  margin: 0.5rem 0;
}

.contact-form input[type="radio"],
.contact-form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--brand); 
  cursor: pointer;
}

.contact-form fieldset label,
.contact-form .checkbox-row label {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
}



/* ===========================
   19) ENJOY LIFE FOREVER 
   =========================== */

.lff-list nav .menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px var(--pad-lg);
  margin: 10px 0;
}

.landing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.landing-list li {
  margin: .5rem 0;
}
.lff-list h2.section-heading,
.lff-list h3.section-heading {
  margin-top: 3rem;   
  margin-bottom: 1.5rem; 
}


/* Bigger touch/reading targets (keeps your brand font) */
.lff-list .paragraph,
.lff-list .question,
.lff-list .verse,
.lff-list .caption,
.lff-list .books {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.8;
}

/* More vertical space between sections & headings */
.lff-list section { margin-block: 2.25rem; }
.lff-list .heading { margin-top: 2rem; margin-bottom: .75rem; }
.lff-list .summary,
.lff-list .review,
.lff-list .goal,
.lff-list .explore { margin-top: 2.25rem; }

/* Make the 4 big red heading blocks breathe a bit more on this page */
.lff-list h1,
.lff-list h2:not(.section-heading),
.lff-list h3,
.lff-list h4 {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

/* Lists of questions */
.lff-list .question-list { 
  margin: .75rem 0 1rem 1.25rem; 
}
.lff-list .question-list li { 
  margin: .4rem 0; 
}

/* Textareas feel roomier */
.lff-list .qa-box textarea { 
  min-height: 110px; 
}

/* Hide-only-for-vision (kept for screen readers) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link styling (if you add it in HTML) */
.skip-link { 
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; 
}
.skip-link:focus { 
  position: static; width: auto; height: auto; 
  padding: .5rem 1rem; border: 3px solid #000; background: #fff; 
}

/* Make any focusable text (with tabindex) clearly visible on focus */
.lff-list :where(h1,h2,h3,h4,p,blockquote,figure,figcaption,[role="region"])[tabindex="0"]:focus {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Tighter control of figure spacing */
.lff-list figure.image-block { margin: 1.25rem 0; }
.lff-list figure.image-block img { border-radius: var(--radius); }
.lff-list figure.image-block .caption { margin-top: .5rem; }

/* Details/transcript summary target size */
.lff-list details > summary {
  cursor: pointer;
  padding: .5rem 0;
  font-weight: 800;
}

/* ===========================
   Fixed lesson audio under H1
   =========================== */


.fixed-audio {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--audio-top);
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  border-bottom: var(--border) solid #000;
  padding: 8px 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.fixed-audio audio {
  width: 100%;
  height: 48px; 
  display: block;
  border-radius: 8px;
  background: #000;
}

body.has-sticky-audio main,
body.has-sticky-audio #content {

  padding-top: calc(var(--audio-top) + var(--audio-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  .sticky-audio { transition: none; }
}

@media (max-width: 480px) {
  .sticky-audio { padding: 10px; }
  .sticky-audio audio { height: 56px; }
}

/* ===========================
   Low-vision friendly cue/verse highlighting
   =========================== */

:root {
  --lv-active-bg: transparent;
  --lv-active-border: #1e40ff;
  --lv-outline: #000000;
  --controls-h: 80px; /* JS updates this; fallback default */
}

.verse,
.cue {
  line-height: 1.5;
  padding: 0.5rem 0.5rem;
  background: transparent;
  border-radius: 10px;
}

.is-active { 
  scroll-margin-block: 25vh;
}

.verse.is-active,
.cue.is-active {
  background: var(--lv-active-bg);
  color: #000;
  border-left: 2px solid var(--lv-active-border);
  box-shadow: 0 0 0 4px rgba(0,0,0,.55) inset;
  outline: 4px solid var(--lv-active-border);
  outline-offset: 2px;
}

/* Strong keyboard focus on the active line */
:is(.verse,.cue).is-active:focus-visible {
  outline: 5px solid var(--lv-active-border);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Clickable cues: keep the focus ring thick and clear */
.cue-clickable:focus-visible {
  outline: 5px solid var(--lv-active-border);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ===========================
   Audio Buttons ES/LFF/Meetings
   =========================== */

/* Single, non-duplicated definition */
.site-audio-controls {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  background: #FAA21A;
  padding-top: env(safe-area-inset-top, 0);
  /* The wrapper doesn't intercept clicks */
  pointer-events: none;
}

/* Only the inner row is interactive */
.site-audio-controls .controls-inner {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px var(--pad-lg, 16px);
  flex-wrap: nowrap;
  pointer-events: auto;
}

.playall-btn {
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
  padding: 0.75rem 1.25rem;
  border: 3px solid #000;
  border-radius: 12px;
  background: #B82015;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  min-width: 100px;
  text-align: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

.playall-btn:hover,
.playall-btn:focus {
  background: #d00000;
  outline: 3px solid #000;
  outline-offset: 2px;
  transform: scale(1.05);
}

@media (max-width: 560px) {
  .site-audio-controls .controls-inner { flex-wrap: wrap; }
  .playall-btn { flex-basis: 76px; padding: .5rem .6rem; }
}

/* Screen-reader focus proxy (remains invisible) */
.controls-focus-proxy {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

/* --- Spacing behavior with a fixed bar ---
   We don't pad the whole document; we let native focus/anchors leave space.
*/

/* Native anchor/focus scroll leaves headroom for the fixed bar */
html {
  scroll-padding-top: calc(var(--controls-h, 80px) + env(safe-area-inset-top, 0));
}

/* Headings (including H1) stop below the bar when scrolled/focused */
:where(h1, h2, h3, [role="heading"]) {
  scroll-margin-top: calc(var(--controls-h, 80px) + env(safe-area-inset-top, 0) + 8px);
}

/* Ensure focus ring is visible on headings */
:where(h1, h2, h3, [role="heading"]):focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
}
.has-fixed-controls main {
  padding-top: var(--controls-h, 80px);
}

#daily-content h1 {
  background-color: #DA291C; 
  color: #fff;              
  padding: 6px;            
  margin: 60px 0px 0px 1rem;         
  border-radius: var(--radius, 4px); 
}
/* Keep page headings clear of the fixed audio controls */
body.has-fixed-controls h1.page-title,
body.has-fixed-controls #content h1,
body.has-fixed-controls main h1 {
  margin-top: calc(var(--controls-h, 48px) + 0.75rem);
  scroll-margin-top: calc(var(--controls-h, 48px) + 0.75rem);
}

/* When jumping to chapters, keep titles below the bar */
body.has-fixed-controls h2.chapter-title,
body.has-fixed-controls [id^="ch-"][id$="-title"] {
  scroll-margin-top: calc(var(--controls-h, 48px) + 0.5rem);
}