/* KBIBLE Daily Word - compact natural-height scripture card (2026-10-26)
   The content column can be much taller than the Scripture column. Grid's
   default stretch, combined with justify-content:center, previously created
   enormous empty areas above/below the scripture. Scope all rules to #daily-qt.
*/

/* Give each side its own card instead of stretching the scripture background
   down to the bottom of the potentially multi-screen-length right column. */
#daily-qt.kb-qt-daily {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#daily-qt .kb-qt-daily__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(380px, .87fr);
  align-items: start;
  gap: clamp(12px, 1.4vw, 20px);
  min-height: 0;
}
#daily-qt .kb-qt-daily__feature,
#daily-qt .kb-qt-daily__actions {
  box-sizing: border-box;
  min-width: 0;
  align-self: start;
  height: auto;
  min-height: 0;
  border-radius: clamp(19px, 2vw, 28px);
  border: 1px solid rgba(202, 164, 108, .34);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .27);
}
#daily-qt .kb-qt-daily__feature {
  /* Overrides the legacy center alignment from kb-home-qt-premium-v2 and
     kb_home_qt_content.php inline styles (including the :has rule). */
  justify-content: flex-start !important;
  padding: clamp(23px, 2.7vw, 39px);
  overflow: hidden;
}
#daily-qt .kb-qt-daily__actions {
  justify-content: flex-start;
  padding: clamp(20px, 2.7vw, 40px);
  border-left: 1px solid rgba(202, 164, 108, .34);
  overflow: visible;
}

/* Reduce internal gaps without hiding any Hebrew/Korean or WEB/KJV text. */
#daily-qt .kb-qt-daily__feature .kb-qt-scripture { min-width: 0; }
#daily-qt .kb-qt-daily__feature h2 { margin-top: clamp(12px, 1.6vw, 21px); }
#daily-qt .kb-qt-daily__feature .kb-qt-subtitle { margin-bottom: 17px; }
#daily-qt .kb-qt-daily__feature .kb-qt-scripture { padding-top: 19px; padding-bottom: 15px; }
#daily-qt .kb-qt-daily__feature .kbqt-bilingual-verses { margin-top: 17px; }
#daily-qt .kb-qt-daily__feature .kbqt-left-prayer { margin-top: 16px; }
#daily-qt .kb-qt-daily__feature .kb-qt-footnote { margin-top: 14px; }

/* Below tablet breakpoint, stack cards; the image-backed scripture card
   keeps only its intrinsic content height (overrides bg-v2 min-height:480px). */
@media (max-width: 950px) {
  #daily-qt .kb-qt-daily__inner {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
  }
  #daily-qt .kb-qt-daily__feature {
    min-height: 0 !important;
    padding: clamp(21px, 4.5vw, 34px);
  }
  #daily-qt .kb-qt-daily__actions {
    min-height: 0;
    padding: clamp(18px, 4vw, 30px);
    border-top: 1px solid rgba(202, 164, 108, .34);
  }
}
@media (max-width: 550px) {
  #daily-qt.kb-qt-daily { margin: 22px auto 26px; }
  #daily-qt .kb-qt-daily__inner { gap: 12px; }
  #daily-qt .kb-qt-daily__feature,
  #daily-qt .kb-qt-daily__actions { border-radius: 20px; }
  #daily-qt .kb-qt-daily__feature { padding: 23px 18px 21px; }
  #daily-qt .kb-qt-daily__actions { padding: 19px 16px; }
  #daily-qt .kb-qt-daily__feature .kbqt-bilingual-verses { margin-top: 13px; }
  #daily-qt .kb-qt-daily__feature .kbqt-left-prayer { margin-top: 14px; }
  #daily-qt .kb-qt-daily__feature .kb-qt-subtitle { margin-bottom: 14px; }
}
