/* Keyboard-accessible skip navigation for Framework 119. */
.skip-link {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 10001;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1rem;
  border: 2px solid #e5c991;
  border-radius: 0.25rem;
  background: #07141d;
  color: #ffffff;
  font: 700 1rem/1.4 Arial, Helvetica, sans-serif;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus {
  outline: 3px solid #e5c991;
  outline-offset: 3px;
  transform: translateY(0);
}

/* Consistent visible focus for keyboard-operable controls. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #e5c991;
  outline-offset: 3px;
}

/* Respect visitors who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Shared, language-aware navigation for the site footer. */
.site-footer-tagline {
  margin: 0;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 0.85rem;
  font: 0.9rem/1.5 Arial, Helvetica, sans-serif;
}

.site-footer-nav a {
  text-underline-offset: 0.2em;
}

.site-footer-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

/* Clear recovery action when Daily Prayer data cannot be loaded. */
.prayer-retry {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid #d7b978;
  border-radius: 6px;
  background: #d7b978;
  color: #101d24;
  font: 700 1rem/1.3 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.prayer-retry:hover {
  filter: brightness(1.08);
}

/* Compact Scripture references beneath each Terms Guide definition. */
.term .scripture-references {
  margin: 0;
  padding-top: 0.45rem;
  color: #d7b978;
  font: 0.9rem/1.55 Arial, Helvetica, sans-serif;
}

.term .scripture-references strong {
  color: #f5f0e6;
}


/* Linear, touch-friendly navigation between published Acts studies.
   Links remain real anchors for keyboard, screen reader and no-JS readers. */
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 1rem;
  border: 1px solid #38514f;
  border-radius: 10px;
  background: #17292f;
  font: 700 0.95rem/1.45 Arial, Helvetica, sans-serif;
}

.chapter-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #92794b;
  border-radius: 6px;
  color: #f1d397;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.chapter-nav a:hover {
  background: #243d42;
}

/* The verified latest-study message shares the existing chapter navigation. */
.chapter-nav[data-latest-study-endpoint] h2,
.chapter-nav[data-latest-study-endpoint] p {
  flex-basis: 100%;
  margin: 0;
}

@media (max-width: 540px) {
  .chapter-nav {
    flex-direction: column;
  }
  .chapter-nav a {
    width: 100%;
  }
}
