/* ==================================================
   DAILY SCRIPTURE

   Contains:
   - Header-specific Scripture layout
   - Reusable Scripture presentation styles
   - Verse reference interaction
   - Translation and copyright display

   Responsive overrides belong in responsive.css.
   ================================================== */


/* ==================================================
   1. HEADER SCRIPTURE CONTAINER
   ================================================== */

.daily-scripture {
  display: flex;
  flex-direction: column;

  min-width: 0;
  width: 100%;
  max-width: 620px;

  gap: 4px;
}


/* ==================================================
   2. REUSABLE SCRIPTURE CONTENT
   ================================================== */

.scripture-content {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;

  min-width: 0;
  column-gap: 8px;
  row-gap: 2px;

  color: var(--muted);

  font-size: 0.82rem;
  line-height: 1.4;

  text-align: center;
}

.scripture-cross {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;

  color: var(--gold);

  font-size: 1.05rem;
  line-height: 1;
}

.scripture-text {
  grid-column: 2 / 4;
  grid-row: 1;

  min-width: 0;
  overflow: visible;

  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;

  text-overflow: clip;
  white-space: normal;
}


/* ==================================================
   3. SCRIPTURE REFERENCE
   ================================================== */

.scripture-reference {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;

  position: relative;
  flex-shrink: 0;

  padding-bottom: 2px;

  color: var(--teal);

  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.scripture-reference::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  height: 1px;

  background: currentColor;

  content: "";

  transform: scaleX(0);
  transform-origin: right;

  transition: transform 220ms ease;
}

.scripture-reference:hover::after,
.scripture-reference:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.scripture-reference:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}


/* ==================================================
   4. SCRIPTURE TRANSLATION
   ================================================== */

.scripture-translation {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;

  color: var(--charcoal);

  font-size: 0.66rem;
  font-weight: 700;

  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ==================================================
   5. SCRIPTURE COPYRIGHT
   ================================================== */

.scripture-copyright {
  margin: 0;
  overflow: hidden;

  color: var(--muted);

  font-size: 0.58rem;
  line-height: 1.35;

  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scripture-copyright a {
  color: inherit;

  text-decoration: underline;
  text-underline-offset: 2px;
}

.scripture-copyright a:hover,
.scripture-copyright a:focus-visible {
  color: var(--teal);
}


/* ==================================================
   6. DAILY SCRIPTURE STATES
   ================================================== */

.daily-scripture.is-loading {
  opacity: 0.6;
}

.daily-scripture.has-error .scripture-text {
  font-family: var(--font-body);
  font-style: normal;
}