/* Collections are prominent; individual prayers remain a compact reference library. */
#collectionNote{color:var(--muted);font-size:14px;max-width:65ch;margin-bottom:18px}
#prayerCards .prayer-card{align-items:stretch;padding:0;gap:0;flex-direction:column}
#prayerCards .prayer-card>img{width:100%;height:170px;object-fit:cover;border-radius:0}
#prayerCards .cardText{padding:18px;min-width:0}
#prayerCards h3{font-size:26px;line-height:1.2;letter-spacing:-.5px}
.prayerCardActions{display:flex;gap:10px;margin-top:12px}
.prayerCardActions button,.prayerGroup button{border:1px solid var(--line-strong);border-radius:24px;min-height:44px;padding:8px 16px;font-size:14px}
.prayerCardActions button:first-child{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.prayerCardActions button:hover,.prayerGroup button:hover{background:var(--hover);color:var(--ink)}
#prayerLibrary>p{color:var(--muted);font-size:14px}
.prayerSearchLabel{display:block;margin:20px 0 6px;font-size:14px;font-weight:600}
#prayerSearch{width:100%;max-width:520px;background:var(--raised);color:var(--ink);border:1px solid var(--line-strong);border-radius:10px;padding:12px 14px;min-height:48px}
#prayerSearchStatus{margin-top:8px;min-height:24px}
#prayerLibraryGroups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 32px;margin-top:22px}
.prayerGroup h3{font-size:24px;margin-bottom:8px}
.prayerGroup ul{list-style:none;padding:0;margin:0}
.prayerGroup li{display:flex;align-items:center;gap:12px;min-height:76px;border-bottom:1px solid var(--line);padding-block:10px}
.prayerGroup img{height:48px;width:48px;object-fit:cover;border-radius:8px;flex:none}
.prayerGroup li>span{flex:1;min-width:0;font-size:15px}
.prayerGroup li>div{display:flex;gap:6px;flex:none}
.prayerGroup button{padding-inline:12px}
#devotionFocus .prayerText{white-space:pre-line}
#pausePrayer{text-decoration:underline;min-height:44px;padding:8px}
@media(max-width:1000px){#prayerLibraryGroups{grid-template-columns:1fr}}
@media(max-width:700px){#prayerCards .prayer-card{flex-direction:row}#prayerCards .prayer-card>img{width:30%;height:auto;min-height:155px}#prayerCards .cardText{padding:14px}#prayerCards h3{font-size:24px}}
@media(max-width:380px){.prayerGroup img{display:none}.prayerGroup li{gap:8px}.prayerGroup button{padding-inline:10px}}

/* The daily devotion opens on its artwork and invitation to read. */
body[data-view=today] main.daily{gap:18px}
body[data-view=today] main.daily>.intro{padding:16px 0 0;gap:8px;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}
body[data-view=today] .intro p{font-family:inherit;font-size:14px;line-height:1.5;font-style:normal;margin:0}
body[data-view=today] .days{background:transparent;border-color:transparent}
body[data-view=today] .days .date{font-size:14px;padding-inline:8px}
body[data-view=today] .days>button:not(.date){width:36px;min-width:36px}
body[data-view=today] #dailyReadingCard.combinedReadings{border:0;background:transparent;border-radius:0;overflow:visible}
body[data-view=today] #feature{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);border-radius:22px;overflow:hidden;background:#203c32;box-shadow:0 14px 42px #152d2112;color:#fff9ed}
body[data-view=today] #feature figure{grid-column:1;grid-row:1;min-height:0;align-self:center;background:#203c32;position:relative}
body[data-view=today] #feature figure>img{display:block;position:static;width:100%;height:auto;object-fit:contain;min-height:180px}
body[data-view=today] #feature .gospel{grid-column:2;grid-row:1;padding:clamp(24px,3.5vw,48px);justify-content:center;background:transparent}
body[data-view=today] #feature .label{color:#e4ce9d;font-size:12px;letter-spacing:.15em}
body[data-view=today] #feature h2{font-size:clamp(36px,4vw,60px);line-height:1.06;letter-spacing:-.04em;margin:18px 0 14px;text-wrap:balance}
body[data-view=today] #feature .ref{color:#e0e8dd;font-size:14px;letter-spacing:0}
body[data-view=today] #feature .excerptLabel{display:block;color:#cbd7cd;font-size:12px;margin-top:3px}
body[data-view=today] #feature blockquote{font:20px/1.5 var(--serif);color:#f1efe5;border:0;padding:0;margin:20px 0 26px}
body[data-view=today] #feature .gospelActions{margin-top:0;gap:10px}
body[data-view=today] #feature .gospelActions>#listenToday{flex-basis:100%;justify-content:center}
body[data-view=today] #feature .primaryAction{background:#f7edda;color:#203c32;border:1px solid #f7edda;min-height:46px;padding:10px 18px;border-radius:26px}
body[data-view=today] #feature .readerListen{background:transparent;color:#fff9ed;border:1px solid #a6b9ad;min-height:46px;padding:10px 18px}
body[data-view=today] #feature button:focus-visible{outline-color:#f4d28f}
body[data-view=today] #dailyReadingCard #resumePrayer{display:flex;align-items:center;gap:10px;padding:14px 4px;margin:0;width:100%;min-height:52px;border:0;border-radius:0;background:transparent;font-size:14px;font-weight:600}
body[data-view=today] #resumePrayer>.icon{color:var(--gold);width:15px;flex:none}
body[data-view=today] #resumePrayer small{margin-left:auto;font-size:12px;font-weight:400;color:var(--muted)}
body[data-view=today] #dailyReadingCard.combinedReadings #readingSection{margin-top:20px;padding:22px var(--card-pad);border:1px solid var(--line);border-radius:18px;background:var(--raised)}
body[data-view=today] #dailyReadingCard #prayerResumeSlot:has(#resumePrayer:not([hidden]))+#readingSection{margin-top:2px}
@media(max-width:900px){
 body[data-view=today] #feature{display:flex;flex-direction:column}
 body[data-view=today] #feature figure{width:100%;order:-1}
 body[data-view=today] #feature .gospel{width:100%;padding:24px 28px 28px}
 body[data-view=today] #feature h2{font-size:42px;margin:12px 0 10px}
 body[data-view=today] #feature blockquote{font-size:19px;margin:16px 0 22px}
}
@media(max-width:700px){
 body[data-view=today] header .brand{font-size:27px}
 body[data-view=today] header .mark{width:30px;height:30px}
 body[data-view=today] main.daily{width:calc(100% - 28px);gap:12px}
 body[data-view=today] main.daily>.intro{padding-top:8px;gap:3px}
 body[data-view=today] .intro .dayControls{width:100%;justify-content:space-between}
 body[data-view=today] .intro p{font-family:inherit;font-size:13px;line-height:1.5;padding:0 5px}
 body[data-view=today] #feature{border-radius:18px}
 body[data-view=today] #feature .gospel{padding:22px}
 body[data-view=today] #feature h2{font-size:38px}
 body[data-view=today] #feature blockquote{font-size:18px}
 body[data-view=today] #feature .gospelActions{width:100%}
 body[data-view=today] #feature .gospelActions>button{flex:1 1 auto;font-size:14px;padding-inline:12px}
 body[data-view=today] #resumePrayer small{max-width:95px;text-align:right;line-height:1.4}
}
@media(prefers-reduced-motion:no-preference){
 body[data-view=today] #feature{animation:home-reveal .45s ease-out both}
 @keyframes home-reveal{from{opacity:.65;transform:translateY(8px)}to{opacity:1;transform:none}}
}
@media(forced-colors:active){body[data-view=today] #feature{border:1px solid CanvasText}body[data-view=today] #feature button{border:1px solid ButtonText}}

/* Shared date controls and illustrated daily readings. */
#prevDay .prevDateIcon{transform:none}
body[data-view=today] main.daily>.intro{padding-block:10px 0}
body[data-view=today] main.daily>.intro p{font-size:14px}
body[data-view=readings] #dailyReadingCard #readingSection{border:0;padding:0;background:transparent}
body[data-view=readings] #readingList{display:grid;gap:22px}
body[data-view=readings] .illustratedReading{display:grid;grid-template-columns:1fr 1fr;padding:0;border:0;border-radius:20px;overflow:hidden;background:#203c32;color:#fff9ed;gap:0}
.illustratedReading figure{margin:0;background:#203c32;align-self:center}
.illustratedReading figure img{display:block;width:100%;height:auto;object-fit:contain}
.illustratedReading .readingCardBody{padding:clamp(22px,3vw,40px)}
.illustratedReading .passageOpen{color:#fff9ed;width:100%}
.illustratedReading .passageOpen strong{color:#e4ce9d;font-size:14px;letter-spacing:.03em}
.illustratedReading .passageOpen span{font:clamp(26px,3vw,36px)/1.2 var(--serif);color:#fff9ed;margin-top:12px}
.illustratedReading .readingExcerpt{font:20px/1.55 var(--serif);margin:20px 0;color:#f1efe5}
.illustratedReading .readingCardActions{display:flex;gap:10px}
.illustratedReading .readAction{background:#f7edda;color:#203c32;border-color:#f7edda}
.illustratedReading .readerListen{background:transparent;color:#fff9ed;border:1px solid #a6b9ad}
.illustratedReading button:focus-visible{outline-color:#f4d28f}
footer .footerEnd{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
@media(max-width:700px){body[data-view=readings] .illustratedReading{grid-template-columns:1fr}.illustratedReading .readingExcerpt{font-size:18px}footer{gap:18px;flex-wrap:wrap}footer .footerEnd{justify-content:flex-start}}

body[data-view=today] main.daily>.intro>.dayControls{display:none}

/* Fill the artwork column when cards sit side by side. */
@media(min-width:701px){
 body[data-view=readings] .illustratedReading figure{position:relative;align-self:stretch;min-height:280px}
 body[data-view=readings] .illustratedReading figure img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
}
@media(min-width:901px){
 body[data-view=today] #feature figure{position:relative;align-self:stretch;min-height:320px}
 body[data-view=today] #feature figure>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
}

/* Keep the opening artwork first; the liturgical context follows its card. */
body[data-view=today] main.daily>.intro{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-view=today] #dailyReadingCard{margin-top:16px}
body[data-view=today] #dailyReadingCard>#occasion{margin:14px 4px 4px;font-size:14px;line-height:1.5;color:var(--muted)}

/* Commentary follows the Scripture list without becoming another reading task. */
.dailyReflectionEntry{margin-top:28px;padding:24px;border-top:1px solid var(--line-strong);background:var(--panel);border-radius:0 0 14px 14px}
.dailyReflectionEntry h3{font:clamp(24px,4vw,30px)/1.2 var(--serif);margin:10px 0}
.dailyReflectionEntry p{color:var(--muted);font-size:15px;line-height:1.6;margin:0 0 12px}
.dailyReflectionEntry button{min-height:44px;white-space:normal;text-align:left}
.dailyReflectionEntry button:focus-visible{outline:3px solid var(--focus);outline-offset:4px}

/* A viewport-sized invitation, with natural overflow for long text and zoom. */
body[data-view=today] #feature{min-height:min(850px,calc(100svh - 120px));grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(280px,1fr) auto auto}
body[data-view=today] #feature .heroExplore{grid-column:1/-1;grid-row:3;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border-top:1px solid #ffffff24;color:#dce4da;font-size:13px;letter-spacing:.03em;background:#1b342c}
.heroExplore svg{width:16px;height:16px}
body[data-view=today] #feature figure{grid-column:1;grid-row:1;align-self:stretch;min-height:280px}
body[data-view=today] #feature figure>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body[data-view=today] #feature .gospel{grid-column:1;grid-row:2;align-self:center;width:100%;max-width:820px;justify-self:center;align-items:center;padding:24px 32px;text-align:center}
body[data-view=today] #feature .label,body[data-view=today] #feature .gospelActions{justify-content:center}
body[data-view=today] #feature h2{font-size:clamp(36px,3.5vw,48px);margin:10px 0}
body[data-view=today] #feature blockquote{margin:14px 0 18px}
@media(max-width:900px){
 body[data-view=today] #feature{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(220px,1fr) auto auto;min-height:calc(100svh - 180px)}
 body[data-view=today] #feature figure{grid-column:1;grid-row:1;align-self:stretch;position:relative;min-height:220px}
 body[data-view=today] #feature figure>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
 body[data-view=today] #feature .gospel{grid-column:1;grid-row:2;padding:22px}
 body[data-view=today] #feature .heroExplore{grid-row:3}
}
@media(max-width:700px){
 body[data-view=today] #feature{min-height:calc(100svh - 92px - env(safe-area-inset-bottom));grid-template-rows:minmax(200px,1fr) auto auto}
 body[data-view=today] #feature figure{min-height:200px}
 body[data-view=today] #feature .gospel{padding:20px 22px}
 body[data-view=today] #feature h2{margin-block:10px 8px}
 body[data-view=today] #feature blockquote{margin-block:14px 18px}
}
