/* ==========================================================================
   Huda Academy — verse or hadith of the day, beside today's prayer times.
   Look A, "quiet line", from lab/daily-01.html (client, 2026-10-13: "do quiet
   line ... put it on the right side of the prayer thing, there's a lot of
   white space in that area"). Words and behaviour: assets/js/daily-text.js.

   .today holds two sibling sections, the prayer band (.pt, prayer.css) and
   this one (.daily). They stay siblings on purpose: the prayer band ships
   `hidden` until its script has rendered, and the verse must never depend on
   that. With the band hidden, .daily simply stands on its own.

   Wide (>=1200px, band showing): one row of three, prayer heading | table |
   verse, the verse taking the space the band used to leave empty on the
   right. Narrower: the verse sits under the table as a centred line.
   ========================================================================== */
.today{background:var(--paper)}
/* both sections share one .wrap here, so their own .wrap must not shrink a
   second time (88% of 88%) */
.today__in>.pt>.wrap,.today__in>.daily>.wrap{width:auto}

.daily{position:relative;padding:0 0 clamp(2.4rem,6vh,3.8rem)}
.daily__in{max-width:56rem;margin-inline:auto;text-align:center}
.daily__in::before{content:"";display:block;width:64px;height:3px;border-radius:2px;
  background:var(--flame);margin:0 auto clamp(2rem,5vh,2.8rem)}
.daily .kicker{margin:0 0 1rem}
.daily__q{margin:0;padding:0;border:0}
.daily__card{margin:0}
.daily__en{margin:0 auto;max-width:34ch;font-family:"Cormorant Garamond",Georgia,serif;font-style:italic;
  font-weight:600;font-size:clamp(1.55rem,2.6vw,2.3rem);line-height:1.32;color:var(--ink);
  text-wrap:balance}
.daily.is-long .daily__en{max-width:44ch;font-size:clamp(1.3rem,2vw,1.8rem);line-height:1.38}
.daily__cite{display:block;margin-top:1.1rem;font-style:normal;font-size:.74rem;
  letter-spacing:.14em;font-weight:600;text-transform:uppercase;color:var(--terracotta)}
/* standing alone (prayer band not shown): give it the band's own top padding */
.today__in:has(>.pt[hidden])>.daily{padding-top:clamp(2.4rem,6vh,3.8rem)}
.today__in:has(>.pt[hidden])>.daily .daily__in::before{display:none}

@media (min-width:1200px){
  .today__in:not(:has(>.pt[hidden])){display:grid;align-items:center;
    grid-template-columns:minmax(0,2fr) minmax(0,1fr);column-gap:clamp(2rem,3.5vw,3.5rem);
    padding-block:clamp(2.4rem,6vh,3.8rem)}
  .today__in:not(:has(>.pt[hidden]))>.pt{padding:0}
  /* the seal-sized space the band reserved on its right is where the verse
     now goes, so the band takes its full column */
  .today__in:not(:has(>.pt[hidden])) .pt__in{padding-right:0;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
  .today__in:not(:has(>.pt[hidden]))>.daily{padding:0 0 0 clamp(2rem,3.5vw,3.5rem);
    border-left:1px solid rgba(52,35,26,.1)}
  .today__in:not(:has(>.pt[hidden])) .daily__in::before{margin-bottom:1.6rem}
  .today__in:not(:has(>.pt[hidden])) .daily__en{max-width:22ch;font-size:clamp(1.5rem,1.9vw,2.05rem)}
  .today__in:not(:has(>.pt[hidden])) .daily.is-long .daily__en{max-width:30ch;font-size:clamp(1.2rem,1.4vw,1.5rem)}
}
@media (max-width:620px){
  .daily__en{font-size:1.4rem}
  .daily.is-long .daily__en{font-size:1.22rem}
}

/* ==========================================================================
   IN THE FOOTER, on every page (client, 2026-11-22). The band and the verse
   moved off the home page into the shared footer, so they sit on its dark
   espresso ground: cream type, gold labels (terracotta is near-invisible on
   the footer), a faint glass table, and the next prayer keeps its red. It
   reads as a row of the footer, ruled off like .footer__bottom.
   ========================================================================== */
.footer .today{background:none;margin-top:clamp(2rem,5vh,3rem);
  padding-top:clamp(1.8rem,4vh,2.6rem);border-top:1px solid rgba(244,238,228,.14)}
.footer .pt{background:none;padding:0}
.footer .daily{padding:clamp(1.6rem,4vh,2.2rem) 0 0}  /* under the table on narrow screens: room for the flame rule */
.footer .today__in:has(>.pt[hidden])>.daily{padding-top:0}
.footer .today .kicker{color:var(--gold)}
.footer .pt__place{color:var(--cream)}
.footer .pt__place a{text-decoration-color:rgba(242,163,58,.5)}
.footer .pt__place a:hover{text-decoration-color:var(--gold)}
.footer .pt__next{color:rgba(244,238,228,.7)}
.footer .pt__next strong{color:var(--gold)}
.footer .pt__table{background:rgba(244,238,228,.04);border-color:rgba(244,238,228,.14)}
.footer .pt__table th,.footer .pt__table td{border-top-color:rgba(244,238,228,.08)}
.footer .pt__table thead th{border-bottom-color:rgba(244,238,228,.14);color:rgba(244,238,228,.6)}
.footer .pt__table thead th.pt__iqcol{color:var(--gold)}
.footer .pt__table tbody th{color:var(--cream)}
.footer .pt__table td[data-pt-time]{color:rgba(244,238,228,.7)}
.footer .pt__table td[data-pt-iq]{color:var(--cream)}
.footer .pt__sun>*{color:rgba(244,238,228,.55)!important}
.footer .pt__table tr.is-next td[data-pt-time]{color:rgba(244,238,228,.85)}
.footer .daily__en{color:var(--cream)}
.footer .daily__cite{color:var(--gold)}
@media (min-width:1200px){
  .footer .today__in:not(:has(>.pt[hidden])){padding-block:0}
  .footer .today__in:not(:has(>.pt[hidden]))>.daily{border-left-color:rgba(244,238,228,.14)}
}
