/* ============================================================
   reading-modal.css — the card of the Scripture popup that
   reading-modal.js builds: the "Today in the Church" readings on / and
   /calendar, and the Scripture badges on /apologetics. The overlay itself
   (.reading-modal, its hidden and active states, the focus rings and the
   print rule) stays in styles.css; these are the rules that dress the card,
   moved here from liturgical-day.css so that a page which only wants the
   popup does not download the calendar's sheet.
   Linked after the page's family sheet.
   ============================================================ */

body.reading-modal-open{overflow:hidden;}

.reading-modal-card{
  width:100%;max-width:640px;
  margin:min(9vh,80px) 0 48px;
  background:var(--paper-card);
  border:1px solid var(--rule);
  border-radius:3px;
  display:flex;flex-direction:column;
}

.reading-modal-head{padding:20px 26px 14px;border-bottom:1px solid var(--rule);}
.reading-modal-head-row{
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
}
.reading-modal-kicker{
  font-family:var(--display);font-size:12px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--gold-deep);padding-top:4px;
}
.reading-modal-close{
  flex:none;background:none;cursor:pointer;
  border:1px solid var(--rule);border-radius:2px;
  color:var(--muted);padding:4px 8px;
  font-family:var(--display);font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  transition:color .2s,border-color .2s;
}
.reading-modal-title{
  margin:6px 0 0;
  font-family:var(--head);font-size:clamp(22px,3.4vw,28px);font-weight:600;
  color:var(--ink);line-height:1.2;
}

.reading-modal-status{
  margin:0;padding:14px 26px 0;
  font-family:var(--head);font-style:italic;font-size:16px;color:var(--muted);
}
.reading-modal-status:empty{padding:0;}

/* The text scrolls inside the card rather than pushing it down the page, so
   Psalm 118 and a three-verse Gospel open to the same shape. */
.reading-modal-body{
  padding:18px 26px 4px;
  max-height:min(58vh,560px);
  overflow-y:auto;overscroll-behavior:contain;
}
.reading-modal-seg + .reading-modal-seg{
  margin-top:20px;padding-top:16px;border-top:1px solid var(--rule);
}
.reading-modal-seg-ref{
  margin:0 0 8px;
  font-family:var(--display);font-size:12px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--gold-deep);font-weight:600;
}
.reading-modal-text{
  margin:0;
  font-family:var(--body);font-size:17.5px;line-height:1.72;color:var(--ink);
}
/* Where the citation skips a verse, say so rather than run the two together. */
.reading-modal-gap{color:var(--muted);opacity:.6;letter-spacing:.1em;}

.reading-modal-foot{
  margin:0;padding:14px 26px;
  border-top:1px solid var(--rule);
  display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;
  font-family:var(--body);font-size:12px;color:var(--muted);
}
.reading-modal-more{
  margin-left:auto;color:var(--gold-deep);text-decoration:underline;
  text-decoration-color:var(--rule);text-underline-offset:2px;
}

@media(max-width:560px){
  .reading-modal-card{margin-top:14px;}
  .reading-modal-body{max-height:64vh;}
  .reading-modal-head,.reading-modal-status,
  .reading-modal-body,.reading-modal-foot{padding-left:17px;padding-right:17px;}
  .reading-modal-text{font-size:16.5px;}
}
