/* Three routed pages, one inherited Reading Room shell. */
/* Isolated Book entry comparison, within the existing cover. */
.book-entry-preview{flex:0 0 auto;width:min(100%,360px);margin:12px auto 0;font:14px/1.4 Arial,sans-serif;text-align:center}.book-entry-group{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--blue);border-radius:5px;overflow:hidden}.book-entry-group.has-place{grid-template-columns:repeat(2,minmax(0,1fr))}.reading-room .home-cover .book-entry-preview .primary{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;width:100%;min-height:52px;padding:10px 12px;font:14px/1.4 Arial,sans-serif;text-decoration:none}.book-entry-beginning svg{flex-shrink:0}.book-entry-group .book-entry-beginning{border:0;border-radius:0}.book-entry-continue{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--blue);min-height:52px;padding:10px 12px;text-decoration:none;min-width:0}.book-entry-continue>span:last-child{flex-shrink:0}.book-entry-destination{font:13px/1.45 Arial,sans-serif;color:var(--muted);margin:8px 0 0;overflow-wrap:anywhere}.book-entry-random{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:var(--blue);min-height:44px;background:none;border:0;border-radius:0;padding:0 8px;margin:4px auto 0;font:14px/1.4 Arial,sans-serif}.book-entry-b .book-entry-continue{margin-top:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;text-align:left;padding:8px 0}.book-entry-b .book-entry-continue>span:first-child{font-size:14px}.book-entry-b .book-entry-continue>small{grid-row:2;grid-column:1;font:13px/1.4 Arial,sans-serif;color:var(--muted);overflow-wrap:anywhere}.book-entry-b .book-entry-continue>span:last-child{grid-column:2;grid-row:1/3}.book-entry-preview a:focus-visible,.book-entry-preview button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.book-entry-group:focus-within{overflow:visible}.book-entry-group.has-place .book-entry-continue{border-left:1px solid var(--blue)}
.site-surface{background:var(--home-surface);border-radius:5px;padding:20px;min-width:0}
.site-surface--quiet{background:color-mix(in srgb,var(--home-paper) 65%,var(--home-surface))}
#app:has(>.home-header)>main.site-page{padding:40px 32px 32px;max-width:1100px}
.site-page .site-title{display:block;font:2.7rem/1.1 Literary,Georgia,serif;color:var(--ink);text-align:left;margin:0 0 24px}
.site-page{--site-gutter:32px;--book-top-inset:40px}
.home-book{display:flex;flex-direction:column;min-width:0;width:100%;max-width:none;min-height:calc(100dvh - var(--home-header-height,0px) - var(--book-top-inset));padding-bottom:max(16px,env(safe-area-inset-bottom));box-sizing:border-box}
.reading-room .home-cover{margin:0;padding:0;flex:1 0 auto;min-height:0;display:flex}
.reading-room .home-cover .artwork{display:flex;flex-direction:column;flex:1 0 auto;min-height:0;max-width:none!important;width:100%;margin:0!important;align-self:stretch}
/* Keep art proportional to readable text; insufficient viewport space scrolls naturally. */
.reading-room .home-cover .art-image{flex:1 0 12rem;min-height:12rem;max-width:none!important;aspect-ratio:auto!important;background-image:none!important}
.reading-room .home-cover .art-image img{position:absolute;inset:0;width:100%;height:100%;max-height:none!important;object-fit:contain}
.reading-room .home-cover .intro{display:none}
.reading-room .home-cover .art-credit{display:block;flex:0 0 auto;max-width:60ch;margin:8px auto 0;padding:0 18px;font:.75rem/1.4 Arial,sans-serif;text-align:center}
.reading-room .home-cover .art-credit-details{display:none}
.reading-room .home-cover .primary{flex:0 0 auto;width:min(100%,360px);margin:12px auto 0;min-height:56px;padding:14px 20px;font:.85rem/1.5 Arial,sans-serif}
.home-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;margin-top:36px}
.home-previews .home-history{grid-column:1/-1;max-width:720px;width:100%}
.home-previews h2{font:1.6rem/1.15 Literary,Georgia,serif;margin:0}
.home-previews .home-module-head{align-items:start;flex-wrap:wrap;gap:4px 12px}
.home-previews .home-module-head>a{min-height:44px;font:.75rem/1.4 Arial,sans-serif;max-width:none}
.home-preview{min-width:0}
.home-preview .home-continue{min-height:72px}
.home-preview-prayer{display:flex;flex-direction:column;align-items:start;width:100%;padding:12px 0;min-height:64px;text-align:left;font:1.1rem/1.3 Literary,Georgia,serif}
.home-preview-prayer>small{font:.7rem/1.6 Arial,sans-serif;color:var(--muted);margin-top:6px}
.home-previews .home-ongoing>h2{display:none}
.devotions-page .home-collections{margin-top:24px}
.devotions-page .home-collections>h2{display:none}
.devotions-page .home-ongoing{margin-bottom:28px}
.devotions-page .home-collection-grid{grid-template-columns:1fr;max-width:720px;gap:18px}
#app:has(>.home-header)>main.site-page:is(.day-overview,.devotions-page){width:100%;max-width:calc(720px + 2*var(--site-gutter));margin-inline:auto}
#app:has(>.home-header)>main.site-page.day-overview{display:block}
.day-overview .day-heading,.day-overview .day-liturgy{max-width:720px}
.day-overview .day-heading{margin:0 0 28px;max-width:none;width:100%}
.day-overview .datebar{display:flex;justify-content:center;width:100%;gap:8px;margin:0 auto 12px}
.day-overview .datebar>button:not(.date-trigger){width:44px;flex:0 0 44px}
.day-overview .datebar>.date-trigger{width:auto;min-width:0;flex:0 1 200px;max-width:calc(100% - 104px)}
#date-dialog .calendar-head h2{flex:1;min-width:0;text-align:center;margin:0}
#date-dialog .calendar-head>button{width:44px;flex:0 0 44px}
/* The desktop rail grows with text and scrolls when its contents exceed the viewport. */
@container home-window (min-width:60.001rem){
 #app:has(>.home-header){grid-template-columns:max(260px,16.25rem) minmax(0,1fr)}
 .home-header{width:max(260px,16.25rem);overflow-y:auto}
 .home-header>*{flex-shrink:0}
}
.day-overview .day-heading>.eyebrow{margin:0 0 12px;text-align:left}
.day-overview .day-liturgy>h2{font:1.75rem/1.15 Literary,Georgia,serif}
.day-overview .hours-list .source-row{font-size:1.3rem}
.day-overview .official-secondary .source-row{font-size:1.3rem}
.day-overview .quiet-devotions a{font-size:1.2rem}
@container home-window (max-width:60rem){
 #app:has(>.home-header)>main.site-page,#app:has(>.home-header)>main.site-page.reading-room{padding:24px 22px 32px}
 .site-page{--site-gutter:22px;--book-top-inset:24px}
 .site-page .site-title{font-size:2rem;margin-bottom:16px}
 .reading-room .home-cover .primary{max-width:calc(100% - 2*var(--site-gutter))}
 .home-previews{grid-template-columns:1fr;gap:28px;margin-top:28px}
 .home-previews .home-module-head{align-items:center}
 .home-preview .home-continue{min-height:64px}
 .devotions-page .home-collection-grid{grid-template-columns:1fr}
}
@container home-window (max-width:24rem){
 #app:has(>.home-header)>main.site-page,#app:has(>.home-header)>main.site-page.reading-room{padding-left:18px;padding-right:18px}
 .site-page{--site-gutter:18px}
 .home-previews .home-module-head{flex-wrap:wrap}
 .reading-room .compact-history .compact-history-week{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:960px){.reading-room .home-cover{margin-inline:calc(-1*var(--site-gutter));width:calc(100% + 2*var(--site-gutter))}}

/* Today: one prayer row, one fixed-footprint record state/action. */
.day-overview .today-hour-row{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.day-overview .today-hour-row+.today-hour-row{margin-top:4px}
.day-overview .today-hour-row>.source-row{width:auto;flex:1 1 0;min-width:min-content;border-bottom:0;cursor:pointer}
.day-overview .today-hour-row>.source-row>span:first-child{overflow-wrap:normal;font:inherit;color:inherit;flex:1 1 auto;text-align:left}
.day-overview .today-hour-actions{display:grid;grid-template-columns:max(72px,3rem) 44px;gap:4px;flex:0 0 auto;margin-left:auto}
.day-overview .today-hour-open{width:44px;min-height:44px;padding:0;border:0;border-radius:4px;background:transparent;font:20px Arial,sans-serif;color:var(--blue)}
.day-overview .today-hour-open:hover{background:var(--home-tile)}
.day-overview .today-record-control{width:100%;min-width:0;min-height:44px;padding:4px 0;border:1px solid transparent;border-radius:4px;background:transparent;font:.75rem/1.3 Arial,sans-serif;color:var(--muted);white-space:nowrap}
.day-overview .today-record-control.is-recorded{color:var(--blue)}
.day-overview .today-record-control:hover{background:var(--home-tile)}
.day-overview .today-record-count{font-size:.75em;margin-left:4px}
#date-dialog .calendar-details{margin-top:12px;border-top:1px solid var(--line);padding-top:8px}
#date-dialog .calendar-details>summary{min-height:44px;padding:10px 0;font:.75rem/1.4 Arial,sans-serif;color:var(--muted)}
#today-record-dialog{width:min(420px,calc(100vw - 32px));max-height:85dvh;overflow:auto}
#today-record-dialog .dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}
#today-record-dialog .dialog-heading h2{margin:0;font:1.6rem/1.2 Literary,Georgia,serif}
#today-record-dialog .dialog-heading form{margin:0}
#today-record-dialog .dialog-heading button{min-width:44px;min-height:44px}
#today-record-dialog .today-record-times{list-style:none;margin:16px 0;padding:0}
#today-record-dialog .today-record-times>li{padding:10px 0;border-bottom:1px solid var(--line);font:.85rem/1.5 Arial,sans-serif}
#today-record-dialog .today-record-times small{display:block;color:var(--muted);overflow-wrap:anywhere}
#today-record-dialog [data-record-undo]{min-height:44px}
@container home-window (max-width:24rem){.day-overview .today-hour-row{column-gap:4px}.day-overview .today-hour-actions{grid-template-columns:72px 44px}.day-overview .today-record-control{font-size:.65rem;letter-spacing:-.02em}.day-overview .today-record-count{margin-left:2px;font-size:.6em}}
/* The return action owns a horizontal slot; changing date never adds a row. */
.day-overview #prayer-date-controls{display:grid;grid-template-columns:44px 44px minmax(0,200px) 44px 44px;gap:8px;justify-content:center;align-items:center;min-height:44px}
.day-overview #prayer-date-controls>button{height:44px;min-height:44px;margin:0}
#prayer-date-previous{grid-column:2;grid-row:1}
#prayer-date-picker{grid-column:3;grid-row:1;width:100%;max-width:none;min-width:0}
#prayer-date-next{grid-column:4;grid-row:1}
#today-return-current-date{grid-column:1;grid-row:1;width:44px;font-size:12px;line-height:1.2;text-align:center}
@container home-window (max-width:30rem){#prayer-date-picker{grid-template-columns:minmax(0,1fr) 20px;gap:8px}#prayer-date-picker>span:first-child{display:none}}
@container home-window (max-width:24rem){#prayer-date-picker{grid-template-columns:minmax(0,1fr);gap:0;padding-inline:4px}#prayer-date-picker>span[aria-hidden="true"]{display:none}}

/* Reserve consistent label metrics across active navigation states on narrow screens. */
@container home-window (max-width:24rem){.home-header .nav [data-page]{font-weight:600}}

/* Book desktop feature composition; the inherited shell rules remain above. */
@container home-window (min-width:60.001rem){
 #app:has(>.home-header)>main.book-page.site-page{display:flex;flex-wrap:wrap;gap:22px 24px;align-items:start;max-width:none}
 .book-page>.home-book{flex:1.1 1 min(20rem,calc((100% - 24px)*.52));min-height:0;padding-bottom:0}
 .book-page .home-book-label{display:none}
 .book-page .home-cover{flex:none;width:100%;margin:0}
 .book-page .home-cover .artwork{flex:none;align-self:start;align-items:center}
 .book-page .home-cover .art-image{flex:none;min-height:0;width:auto;max-width:100%!important;aspect-ratio:auto!important}
 .book-page .home-cover .art-image img{position:static;display:block;width:auto;height:auto;max-width:100%;max-height:47rem!important;object-fit:contain}
 .book-page .home-cover .art-credit{padding:0;max-width:100%;font-size:.7rem}
 .book-page .home-cover .primary{width:min(100%,288px);max-width:100%;margin-top:12px}
 .book-page>.home-previews{display:flex;flex:1 1 min(18rem,calc((100% - 24px)*.48));flex-direction:column;gap:24px;margin:0;min-width:0}
 .book-page>.home-previews>section{width:100%;max-width:none;min-width:0}
 .book-page>.home-previews>.home-history{order:3;padding:0;container:book-history/inline-size}
 .book-page #home-today{order:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px 20px 20px;background:var(--home-surface);border-radius:8px}
 .book-page #home-today>.home-module-head{order:0;grid-column:1/-1}
 .book-page #home-today>.home-meta{order:1;grid-column:1/-1;margin:0}
 .book-page #home-today>.home-continue{order:2;grid-column:1/-1;min-height:64px;padding:10px 12px;margin:0;background:var(--home-tile);border-radius:4px}
 .book-page [data-book-desktop-hours]{display:contents!important}
 .book-page #home-today [data-official="morning"]{order:3}
 .book-page #home-today [data-official="readings"]{order:4}
 .book-page #home-today [data-official="daytime"]{order:5}
 .book-page #home-today [data-official="evening"]{order:6}
 .book-page #home-today [data-official="night"]{order:7}
 .book-page #home-today [data-official="mass"]{order:8}
 .book-page #home-today .home-preview-prayer{min-height:56px;padding:12px;background:var(--home-tile);border-radius:4px;justify-content:center;font:1.05rem/1.25 Literary,Georgia,serif}
 .book-page #home-today .home-preview-prayer>small{margin-top:4px;font:.65rem/1.4 Arial,sans-serif}
 .book-page #home-today .home-preview-prayer:hover{box-shadow:inset 0 0 0 1px var(--blue)}
 .book-page #home-devotions{order:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .book-page #home-devotions>.home-module-head{order:0;grid-column:1/-1}
 .book-page [data-book-desktop-category]{display:block!important;order:1;grid-column:1/-1;margin:0;font:.7rem/1.6 Arial,sans-serif;color:var(--muted)}
 .book-page #home-devotions>.home-continue,.book-page #home-devotions>.home-ongoing{order:2;margin:0}
 .book-page [data-book-desktop-chaplet]{display:flex!important;order:3}
 .book-page #home-devotions>.home-continue,.book-page #home-devotions>.home-ongoing>.home-continue{height:100%;min-height:88px;padding:12px;background:var(--home-surface);border-radius:4px;font-size:1.05rem}
 .book-page>.home-previews h2{font-size:1.6rem}
 .book-page .home-module-head{align-items:center;gap:4px 12px}
 .book-page .home-module-head>a{font-size:.7rem}
 .book-page>.blue-footer{flex:0 0 100%;width:100%}
 #app:has(>.book-page) [data-book-desktop-label]{display:inline!important;font:.75rem/1.4 Arial,sans-serif}
 @container book-history (max-width:22rem){.book-page .compact-history-week{grid-template-columns:repeat(4,minmax(0,1fr))}}
}

/* Compact cover: keep image, credit and action together; spare height belongs outside the group. */
@container home-window (max-width:60rem){
 #app:has(>.home-header)>main.book-page.site-page{padding-top:0}
 .book-page>.home-book{--book-room:calc(100dvh - var(--home-header-height,0px));min-block-size:var(--book-room);min-height:0;padding-bottom:0;width:calc(100% + 2*var(--site-gutter));margin-inline:calc(-1*var(--site-gutter));display:block}
 .book-page .home-book-label{display:none}
 .book-page .home-cover{width:100%;height:auto;min-height:0;margin:0;flex:none}
 .book-page .home-cover .artwork{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(1rem,1fr) auto auto auto minmax(max(1rem,env(safe-area-inset-bottom)),1fr);min-block-size:var(--book-room);height:auto;flex:none;align-self:stretch;align-items:center;justify-items:center;padding:0;gap:0}
 .book-page .home-cover .art-image{grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:center;flex:none;min-height:0;width:100%;height:auto;max-width:100%!important;aspect-ratio:auto!important}
 /* Pinned 900x1203 cover: cap width by the same height budget to preserve its frame. */
 .book-page .home-cover .art-image img{position:static;display:block;width:min(100%,calc(max(12rem + 1px,var(--book-room) - 10rem) * 900 / 1203));height:auto;min-height:calc(12rem + 1px);max-width:100%;max-height:max(12rem,calc(var(--book-room) - 10rem))!important;object-fit:contain}
 .book-page .home-cover .art-credit{grid-column:1;grid-row:3;max-width:100%;margin:16px 0 0;padding:0 16px;font:.75rem/1.4 Arial,sans-serif}
 .book-page .home-cover .primary{grid-column:1;grid-row:4;width:calc(100% - 2*var(--site-gutter));max-width:none;min-height:56px;padding:14px 20px;margin:16px 0 0;font:1rem/1.5 Arial,sans-serif}
}

/* Compact navigation keeps a flat fill to avoid a variable subpixel rounded edge in sticky Chromium layers. */
@container home-window (max-width:24rem){.home-header .nav a,.home-header .nav button{border-radius:0}}

/* Book entry follows its label; retain viewport gutters when enlarged text wraps. */
.book-page #home-book-entry{width:fit-content;max-width:calc(100% - 2*var(--site-gutter));margin-inline:auto}

/* Brief season focus and a single directly labelled sequence. */
.day-overview .year-cycle-panel{--year-surface:var(--home-surface);--year-ink:var(--ink);--year-muted:var(--muted);--year-line:var(--line);--year-violet:#7d699c;--year-gold:#8d743f;--year-green:#507d64;--year-red:#a86b5b;background:var(--year-surface);color:var(--year-ink);border:1px solid var(--year-line);border-radius:7px;margin-top:24px;padding:22px;min-width:0;text-align:left}
body.dark .year-cycle-panel,html[data-cm-theme="dark"] .year-cycle-panel{--year-violet:#b5a2cf;--year-gold:#cdb47a;--year-green:#89b49b;--year-red:#ca9b88}
.year-kicker{font:14px/1.5 Arial,sans-serif;margin:0 0 8px;color:var(--year-muted)}
.year-labelled-cycle>h2{margin:0 0 8px;font:30px/1.15 Literary,Georgia,serif;color:var(--year-ink)}
.year-meaning{font:17px/1.5 Arial,sans-serif;color:var(--year-ink);margin:0 0 20px}
.year-season-chart{padding:0;margin:0 0 18px;list-style:none;display:flex;flex-direction:column;gap:5px}
.year-chart-season{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;padding:9px 12px;min-height:50px;border:1px solid var(--year-line);border-left:6px solid var(--season-accent);border-radius:4px;font:16px/1.35 Arial,sans-serif;color:var(--year-ink);background:var(--year-surface)}
.year-tone-violet{--season-accent:var(--year-violet)}.year-tone-gold{--season-accent:var(--year-gold)}.year-tone-green{--season-accent:var(--year-green)}.year-tone-red{--season-accent:var(--year-red)}
.year-chart-label,.year-chart-focus{grid-column:1}.year-chart-label small{display:inline;font:14px/1.4 Arial,sans-serif;color:var(--year-muted);margin-left:7px}
.year-chart-focus{font:14px/1.45 Arial,sans-serif;color:var(--year-muted);margin-top:2px}
.year-chart-season[data-season-id^="ordinary-"]{background:color-mix(in srgb,var(--year-green) 9%,var(--year-surface))}
.year-chart-season.is-current{border-color:var(--year-ink);border-left-color:var(--season-accent);outline:1px solid var(--year-ink)}
.year-here{grid-column:2;grid-row:1/3;align-self:center;font:14px/1.4 Arial,sans-serif;color:var(--year-ink);white-space:nowrap}
.year-cycle-panel .year-guide{border-top:1px solid var(--year-line);padding-top:4px;color:var(--year-ink)}
.year-cycle-panel .year-guide summary{display:list-item;min-height:44px;padding:12px 0;font:15px/1.5 Arial,sans-serif;color:var(--year-ink);cursor:pointer}
.year-cycle-panel .year-guide summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.year-cycle-panel .year-guide h3{font:1.3rem/1.3 Literary,Georgia,serif;margin:22px 0 8px;color:var(--year-ink)}
.year-cycle-panel .year-guide p{line-height:1.65;color:var(--year-ink)}.year-cycle-panel .year-guide .note{color:var(--year-muted)}
/* Names and accounts only; provenance stays with each expanded account. */
.today-saints-review{margin:24px 0;padding:22px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}
.today-saints-review h2{margin:0 0 12px}
.today-saint-account{border-top:1px solid var(--line);margin:0;padding:0}
.today-saint-account summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;list-style:none;cursor:pointer;padding:14px 0;font:16px/1.4 Arial,sans-serif}
.today-saint-account summary::-webkit-details-marker{display:none}.today-saint-account summary strong{font-weight:400}
.today-saint-account summary svg{flex:none}.today-saint-account[open] summary svg{transform:rotate(90deg)}
.today-saint-account summary:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:2px}
.saints-editorial-account{padding:10px 0 20px;font:16px/1.65 Arial,sans-serif;overflow:visible;max-height:none}
.saints-editorial-account p{margin:0 0 18px;font:inherit}.saints-editorial-account .saints-reference-heading{font-size:14px;margin:22px 0 8px;color:var(--muted)}
.saints-reference-links{padding-left:18px;margin:0;font:14px/1.6 Arial,sans-serif}.saints-reference-links li+li{margin-top:10px}.saints-reference-links a{color:var(--blue);overflow-wrap:anywhere}
@media(max-width:599px){.day-overview .year-cycle-panel,.today-saints-review{padding:18px 16px}}

.today-saint-name{margin:0;padding:16px 0;border-top:1px solid var(--line);font:16px/1.5 Arial,sans-serif;color:var(--ink)}

/* Dated celebrations are separate from the single season timeline. */
.year-upcoming{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}
.year-upcoming h3{margin:0 0 12px;font:20px/1.3 Literary,Georgia,serif;color:var(--ink)}
.year-guide-events{list-style:none;padding:0;margin:0}
.year-guide-events li{display:grid;grid-template-columns:55px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid var(--line);font:16px/1.4 Arial,sans-serif}
.year-guide-events time{font-size:14px;color:var(--muted)}

.year-guide-events .year-celebration-meaning{margin:5px 0 0;font:15px/1.45 Arial,sans-serif;color:var(--muted)}

/* Browse seasons independently of the prayer date, within the existing timeline. */
.year-explore-hint{margin:-6px 0 14px;font:14px/1.5 Arial,sans-serif;color:var(--year-muted)}
.year-chart-season.has-explorer{display:block;padding:0;min-height:0}
.year-season-trigger{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;width:100%;min-height:64px;margin:0;padding:10px 12px;border:0;border-radius:3px;background:transparent;color:var(--year-ink);font:16px/1.35 Arial,sans-serif;text-align:left;cursor:pointer}
.year-row-cues{grid-column:2;grid-row:1/3;align-self:center;display:flex;align-items:center;gap:8px}
.year-row-cues .year-here{font:14px/1.4 Arial,sans-serif}.year-open-cue{font:23px/1 Arial,sans-serif;color:var(--year-muted)}
.year-selected-cue{font:13px/1.4 Arial,sans-serif;color:var(--blue)}
.year-season-trigger[aria-expanded="true"]{background:var(--paper);box-shadow:inset 0 0 0 2px var(--blue)}
.year-season-trigger:focus-visible,.year-explore-back:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.year-season-detail{border-top:1px solid var(--year-line);padding-top:16px;margin-top:20px}
.year-exploring-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.year-exploring-heading h3{margin:0;font:25px/1.25 Literary,Georgia,serif;color:var(--year-ink)}
.year-explore-back{min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--blue);font:14px/1.4 Arial,sans-serif;cursor:pointer}
.year-explorer-meaning{font:17px/1.5 Arial,sans-serif;margin:12px 0;color:var(--year-ink)}
.year-season-note{font:14px/1.5 Arial,sans-serif;margin:12px 0;color:var(--year-muted)}
.year-season-detail h4{font:19px/1.35 Literary,Georgia,serif;margin:20px 0 10px;color:var(--year-ink)}
.year-christmas-group h4 small{display:block;font:14px/1.45 Arial,sans-serif;color:var(--year-muted);margin-top:3px}
.year-cycle-panel [hidden]{display:none!important}

.year-explorer-year-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:0 0 14px;font:14px/1.45 Arial,sans-serif;color:var(--year-muted)}
.year-explorer-year-tools label{display:flex;align-items:center;gap:9px}.year-explorer-year-tools select{min-width:88px;min-height:44px;padding:8px;border:1px solid var(--year-line);border-radius:4px;background:var(--paper);color:var(--year-ink);font:16px/1.4 Arial,sans-serif}
.year-explorer-year-tools small{font:14px/1.45 Arial,sans-serif}.year-explorer-year-tools select:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

/* Isolated 2026 Saints preview; disclosures follow the existing Today surface. */
.saints-shared-observance{font:16px/1.5 Arial,sans-serif;margin:20px 0 8px}
.saints-calendar-qualification{font:14px/1.6 Arial,sans-serif;margin:12px 0;color:var(--muted)}
.saints-sources{border-top:1px solid var(--line);font:14px/1.6 Arial,sans-serif;overflow-wrap:anywhere}
.saints-sources>summary{cursor:pointer;min-height:44px;padding:12px 0;color:var(--muted)}
.saints-sources>summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.saints-sources p{margin:12px 0}.saints-sources a{color:var(--blue)}
.saints-account-sources{margin:24px 0}.saints-account-sources h3{font:600 14px/1.6 Arial,sans-serif;margin:0 0 12px}

/* Keep the comparison in the cover's existing action row, reserving room for its real controls. */
.reading-room .home-cover .book-entry-preview .primary{grid-area:auto;max-width:none}
@container home-window (max-width:60rem){
 .book-page .home-cover .book-entry-preview{grid-column:1;grid-row:4;width:min(360px,calc(100% - 2*var(--site-gutter)));margin:16px 0 0}
 .home-book:has(.book-entry-preview){--book-entry-reserve:11rem}
 .home-book:has(.book-entry-a[data-has-saved-place=true]){--book-entry-reserve:13rem}
 .home-book:has(.book-entry-b[data-has-saved-place=true]){--book-entry-reserve:16rem}
 .home-book:has(.book-entry-preview) .home-cover .art-image img{width:min(100%,calc(max(12rem + 1px,var(--book-room) - var(--book-entry-reserve)) * 900 / 1203));max-height:max(12rem,calc(var(--book-room) - var(--book-entry-reserve)))!important}
}

/* Repeatable practices use explicit records, never saved scroll as session progress. */
.devotions-page [data-home-practice]>span{min-width:0}
.devotions-page [data-home-practice] small{display:block;margin-top:4px;font:.75rem/1.5 Arial,sans-serif;color:var(--muted)}

/* A bounded Hours group keeps the prayer name beside its Mark/open controls on wider views. */
@container home-window (width>40rem){.day-overview .hours-list{width:fit-content;min-width:min(100%,24rem);max-width:100%;margin-inline:auto}}
.devotions-page .home-ongoing .home-continue{display:flex;align-items:center;justify-content:space-between;gap:16px}
.devotions-page .home-ongoing .home-continue-arrow{flex:0 0 auto;color:var(--blue);font:1.25rem/1 Arial,sans-serif}

/* Book entry actions keep one row; labels wrap within each action at larger text sizes. */
.book-entry-group.has-place{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.book-entry-group.has-place>#book-entry-beginning{grid-area:1 / 1 / 2 / 2}
.book-entry-group.has-place>#book-entry-continue{grid-area:1 / 2 / 2 / 3}
.book-entry-group.has-place>a{min-width:0;max-width:100%;align-self:stretch;white-space:normal}
.book-entry-group.has-place>a>span:not(:last-child),.book-entry-group.has-place>.book-entry-beginning>span{min-width:0;overflow-wrap:anywhere;white-space:normal}

/* With no valid saved place, Beginning and the quieter Random action share the cover row. */
.book-entry-a[data-has-saved-place=false]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
.book-entry-a[data-has-saved-place=false]>.book-entry-group{grid-area:1 / 1 / 2 / 2;min-width:0}
.book-entry-a[data-has-saved-place=false] #book-entry-beginning{min-width:0;max-width:100%;align-self:stretch;white-space:normal}
.book-entry-a[data-has-saved-place=false] #book-entry-beginning>span{min-width:0;overflow-wrap:anywhere}
.book-entry-a[data-has-saved-place=false]>#book-entry-random{grid-area:1 / 2 / 2 / 3;min-width:0;max-width:100%;width:100%;margin:0;gap:6px;white-space:normal;overflow-wrap:anywhere}
.book-entry-a[data-has-saved-place=false]>#book-entry-random>span{flex:0 0 auto}

/* Keep the complete Beginning label readable at narrow enlarged text sizes. */
.book-entry-a[data-has-saved-place=false] #book-entry-beginning{padding-inline:8px;gap:6px}

/* Center the lower Book column as one unit, with a shared heading/content/action edge. */
@container home-window (max-width:60rem){
 .book-page>.home-previews{width:100%;max-width:32rem;margin-inline:auto;gap:28px}
 .book-page>.home-previews>section{width:100%;max-width:none;margin-inline:0}
 .book-page>.home-previews .home-module-head{justify-content:flex-start;text-align:left}
 .book-page>.home-previews>section>.home-meta{text-align:left}
 .book-page>.home-previews .home-preview-more{display:flex;width:fit-content;max-width:100%;margin-inline:0;justify-content:flex-start}
}
