:root {
  --paper: #f7f5ee;
  --surface: #fffef9;
  --ink: #23332e;
  --muted: #58665e;
  --primary: #2f5547;
  --primary-dark: #203f35;
  --accent: #826335;
  --line: #d9d8cc;
  --soft: #ebe9df;
  --danger: #8a342c;
  --reading-scale: 1;
  --shell: min(1160px, calc(100vw - 40px));
  --reading: min(720px, calc(100vw - 40px));
  color-scheme: light;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-wrap: anywhere; background: var(--paper); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; text-rendering: optimizeLegibility; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.45rem; }
:focus-visible { outline: 3px solid #a96d16; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: var(--shell); max-width: 100%; margin-inline: auto; }
.narrow { width: min(760px, calc(100vw - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(247,245,238,.96); }
.header-inner { width: var(--shell); max-width: 100%; min-height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; font-family: Georgia, serif; font-size: 1.35rem; text-decoration: none; }
.brand > span:last-child { overflow-wrap: normal; }
.brand-mark { position: relative; width: 31px; height: 25px; display: inline-flex; gap: 2px; align-items: end; }
.brand-mark i { width: 50%; height: 21px; border: 2px solid var(--primary); display: block; }
.brand-mark i:first-child { border-radius: 12px 2px 2px 3px; transform: skewY(8deg); }
.brand-mark i:last-child { border-radius: 2px 12px 3px 2px; transform: skewY(-8deg); }
.brand-mark::after { content: ""; position: absolute; left: 50%; bottom: -2px; height: 25px; border-left: 2px solid var(--primary); }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); font-size: .91rem; font-weight: 650; }
.main-nav a { text-decoration: none; padding-block: 11px; }
.main-nav a:hover { color: var(--primary); }
.main-nav .booklet-link { border: 1px solid var(--primary); padding: 10px 15px; }
.nav-count { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding-inline: 5px; margin-left: 3px; border-radius: 20px; background: var(--primary); color: white; font-size: .72rem; }
.menu-toggle { display: none; min-height: 44px; flex: 0 0 auto; padding: 7px 14px; border: 1px solid var(--ink); background: transparent; }
.preview-banner { border-bottom: 1px solid #d5c29b; background: #f4ead5; color: #513f22; font-size: .84rem; }
.preview-banner > div { width: var(--shell); max-width: 100%; margin: auto; padding: 9px 0; }

.hero { min-height: 0; padding-block: clamp(52px, 7vw, 86px); }
.hero-copy { max-width: 900px; }
.hero h1 { max-width: 900px; margin-bottom: 24px; font-size: clamp(3rem, 6.5vw, 5.6rem); }
.eyebrow, .card-kicker { margin-bottom: 14px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase; font-family: system-ui, sans-serif; }
.hero-intro { max-width: 650px; margin-bottom: 30px; color: var(--muted); font: 1.28rem/1.6 Georgia, serif; }
.local-note { margin: 13px 0 0; color: var(--muted); font-size: .82rem; }
.quick-links { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 18px; font-size: .86rem; }
.quick-links strong { width: 100%; color: var(--accent); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.quick-links a { color: var(--primary); font-weight: 700; }
.search-form { position: relative; width: min(680px, 100%); display: flex; border: 1px solid #bdbeb5; background: var(--surface); }
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,85,71,.15); }
.search-form input { flex: 1; min-width: 0; min-height: 58px; padding: 12px 16px 12px 52px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-form button { min-width: 96px; border: 0; background: var(--primary); color: white; font-weight: 750; cursor: pointer; }
.search-form button:hover { background: var(--primary-dark); }
.search-icon { position: absolute; left: 20px; top: 19px; width: 16px; height: 16px; border: 2px solid var(--muted); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 7px; border-top: 2px solid var(--muted); right: -6px; bottom: -3px; transform: rotate(45deg); }
.quiet-card { position: relative; padding: 42px 32px 34px; border: 1px solid var(--line); background: rgba(255,254,249,.48); }
.quiet-card p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: Georgia, serif; font-size: 1.08rem; }
.quiet-card p:last-child { border: 0; }
.line-mark { position: absolute; top: -20px; left: 32px; width: 34px; height: 70px; border: 1px solid var(--accent); border-top: 0; opacity: .7; }

.section { padding-block: clamp(65px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 38px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading h2 { margin: 0; }
.section-heading > div { min-width: 0; }
.section-intro { max-width: 760px; margin: 20px 0 0; color: var(--muted); }
.underlink, .text-action { display: inline-block; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--primary); font-weight: 750; text-decoration: none; cursor: pointer; }
.collection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.collection-card { min-height: 140px; padding: 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.collection-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.collection-number, .item-number { color: var(--accent); font: .78rem/1 system-ui, sans-serif; font-weight: 800; letter-spacing: .12em; }
.collection-card strong { display: block; margin-bottom: 8px; font: 1.65rem/1.1 Georgia, serif; font-weight: 500; }
.collection-card small { color: var(--muted); }
.arrow { font-size: 1.3rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.prayer-card { min-width: 0; min-height: 310px; padding: clamp(25px, 3vw, 36px); display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); }
.prayer-card h2, .prayer-card h3 { margin-bottom: 18px; font-size: 2rem; }
.prayer-card h2 a, .prayer-card h3 a { text-decoration: none; }
.prayer-card h2 a:hover, .prayer-card h3 a:hover { color: var(--primary); text-decoration: underline; }
.prayer-card > p:not(.card-kicker) { color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: auto; padding-top: 24px; }
.card-actions .text-action { font-size: .84rem; }
.text-action[aria-pressed="true"] { color: var(--accent); }

.booklet-callout { padding-block: clamp(70px, 10vw, 126px); background: var(--primary-dark); color: #f7f5ee; }
.callout-inner { display: grid; grid-template-columns: 1.1fr .8fr; gap: clamp(40px, 10vw, 130px); align-items: end; }
.callout-inner h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 4.8rem); }
.callout-inner p { max-width: 520px; color: #d7e0dc; font-family: Georgia, serif; font-size: 1.18rem; }
.eyebrow.light { color: #d8bd86; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 19px; border: 1px solid var(--primary); background: var(--primary); color: white; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button-light { border-color: #f7f5ee; background: #f7f5ee; color: var(--primary-dark); }
.button-light:hover { background: transparent; color: white; border-color: white; }
.button-secondary { background: transparent; color: var(--primary); }
.principles { display: grid; grid-template-columns: 1fr 1fr; padding-block: 55px; }
.principles a { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 28px; border-right: 1px solid var(--line); text-decoration: none; }
.principles a:last-child { border-right: 0; }
.principles span { grid-row: 1 / 3; color: var(--accent); font-size: .75rem; font-weight: 800; }
.principles strong { font-family: Georgia, serif; font-size: 1.25rem; }
.principles small { color: var(--muted); }

.page-hero { padding-block: clamp(68px, 10vw, 118px); }
.page-hero h1 { margin-bottom: 22px; font-size: clamp(3rem, 7vw, 5.2rem); }
.page-hero > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font: 1.17rem/1.7 Georgia, serif; }
.page-hero .search-form { margin-top: 30px; }
.page-hero .button { margin-top: 16px; }
.collection-page .page-hero { padding-bottom: 34px; }
.collection-page .page-hero + .section { padding-top: 22px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { color: var(--primary); }
.reading-shell { width: var(--reading); margin: auto; padding-block: 28px 100px; }
.prayer-header { padding-block: 0 24px; text-align: center; }
.prayer-header h1 { margin-bottom: 12px; font-size: clamp(3.2rem, 8vw, 5.4rem); }
.prayer-version { margin: 11px 0 0; color: var(--muted); font: .86rem/1.55 system-ui, sans-serif; }
.prayer-version span + span { display: block; }
.prayer-intro { max-width: 660px; margin: 0 auto; color: var(--muted); font: 1.02rem/1.55 Georgia, serif; }
.reading-toolbar { position: sticky; z-index: 10; top: 0; margin: 0 -18px 26px; padding: 10px; display: flex; justify-content: center; gap: 4px; border: 1px solid var(--line); background: rgba(255,254,249,.97); }
.reading-toolbar button { min-width: 62px; min-height: 46px; padding: 7px 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: var(--primary); font-size: .79rem; font-weight: 750; cursor: pointer; }
.reading-toolbar button:hover, .reading-toolbar button[aria-pressed="true"] { background: var(--soft); }
.font-controls { display: flex; border-inline: 1px solid var(--line); }
.font-controls button { min-width: 47px; font-family: Georgia, serif; font-size: .95rem; }
.prayer-content { font: calc(1.48rem * var(--reading-scale))/1.78 Georgia, "Times New Roman", serif; letter-spacing: .002em; }
.prayer-content h2 { margin: 0 0 1.15em; font-size: 1.75rem; }
.prayer-content p { margin-bottom: 1.5em; white-space: normal; }
.editorial-notes { margin-top: 70px; }
.editorial-notes section { padding-block: 28px; border-top: 1px solid var(--line); }
.editorial-notes h2, .source-panel h2, .related-links h2 { margin-bottom: 18px; font-size: 1.85rem; }
.editorial-notes p, .related-links p { color: var(--muted); }
.editorial-notes .note-source { margin-bottom: 0; font-size: .85rem; }
.source-panel { margin-top: 46px; padding: 32px; border: 1px solid var(--line); background: rgba(255,254,249,.55); }
.source-panel { scroll-margin-top: 24px; }
.source-panel dl, .source-panel dd { margin: 0; }
.source-panel dl > div { padding-block: 15px; border-top: 1px solid var(--line); }
.source-panel dt { margin-bottom: 5px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.source-panel dd { font-size: .92rem; }
.source-panel dd span { color: var(--muted); font-size: .82rem; }
.related-links { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.related-links p { margin-bottom: 8px; }
.reading-mode .site-header, .reading-mode .preview-banner, .reading-mode .breadcrumbs, .reading-mode .source-panel, .reading-mode .site-footer { display: none; }
.reading-mode .reading-shell { padding-top: 35px; }
.reading-mode .reading-toolbar { position: static; }

.collection-index { border-top: 1px solid var(--line); }
.collection-index a { min-height: 150px; padding: 32px 10px; display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; }
.collection-index a:hover strong { color: var(--primary); }
.collection-index strong { display: block; margin-bottom: 10px; font: 2.1rem/1.1 Georgia, serif; }
.collection-index small { max-width: 720px; display: block; color: var(--muted); }
.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.template-grid article { padding: 36px; border: 1px solid var(--line); background: var(--surface); }
.template-grid h3 { font-size: 2rem; }
.template-grid p:not(.card-kicker) { color: var(--muted); }
.steps { padding-block: 40px 100px; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps > div { padding: 25px 32px; border-left: 1px solid var(--line); }
.steps span { color: var(--accent); font-size: .75rem; font-weight: 800; }
.steps h2 { margin: 20px 0 10px; font-size: 1.8rem; }
.steps p { color: var(--muted); }
.empty-state { padding: 58px 30px; border: 1px dashed #b8b9af; text-align: center; background: rgba(255,255,255,.25); }
.empty-state h2, .empty-state h3 { margin-bottom: 12px; }
.empty-state p { color: var(--muted); }
.empty-state.compact { padding-block: 42px; }
.error-note, .storage-warning, .print-warning { padding: 14px 17px; border-left: 4px solid var(--danger); background: #f4e7e4; color: #652923; }

.booklet-shell { padding-block: 65px 100px; }
.booklet-heading { margin-bottom: 45px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.booklet-heading h1 { margin-bottom: 10px; font-size: clamp(3rem, 6vw, 5rem); }
.booklet-heading p:not(.eyebrow) { color: var(--muted); }
.booklet-top-actions { display: flex; gap: 10px; }
.booklet-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.booklet-editor, .booklet-settings { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); background: var(--surface); }
.booklet-settings { position: sticky; top: 18px; }
.field label, .booklet-settings legend { display: block; margin-bottom: 9px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.field input { width: 100%; min-height: 52px; padding: 10px 13px; border: 1px solid #adafa7; background: white; color: var(--ink); font: 1.15rem Georgia, serif; }
.panel-heading { margin: 40px 0 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 0; font-size: 2rem; }
.panel-heading h2 span { color: var(--accent); font: .8rem system-ui, sans-serif; vertical-align: top; }
.booklet-items { margin: 0; padding: 0; list-style: none; }
.booklet-item { min-height: 110px; padding: 18px 0; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.booklet-item:last-child { border-bottom: 1px solid var(--line); }
.item-copy strong, .item-copy small { display: block; }
.item-copy strong { font: 1.25rem Georgia, serif; }
.item-copy small { margin-top: 5px; color: var(--muted); }
.item-controls { display: flex; align-items: center; gap: 4px; }
.item-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.item-controls button:disabled { opacity: .35; cursor: default; }
.item-controls .remove-item { width: auto; margin-left: 6px; padding-inline: 10px; color: var(--danger); font-size: .75rem; }
.version-update { margin-top: 8px; padding: 5px 0; border: 0; border-bottom: 1px solid; background: none; color: var(--accent); font-size: .75rem; font-weight: 750; cursor: pointer; }
.booklet-settings h2 { font-size: 1.8rem; }
.booklet-settings fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.booklet-settings fieldset label { display: block; padding-block: 6px; }
.check-row { padding-block: 15px; display: grid; grid-template-columns: auto 1fr; gap: 10px; border-top: 1px solid var(--line); cursor: pointer; }
.check-row input { width: 19px; height: 19px; }
.check-row strong, .check-row small { display: block; }
.check-row small { margin-top: 3px; color: var(--muted); }
.booklet-settings hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.data-actions { display: flex; flex-direction: column; align-items: start; gap: 6px; }
.file-action { position: relative; overflow: hidden; }
.file-action input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.text-action.danger { color: var(--danger); }
.fine-print { margin-top: 25px; color: var(--muted); font-size: .78rem; }
.storage-warning { margin-bottom: 22px; }

.print-controls { padding-block: 45px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.print-controls h1 { margin-bottom: 10px; font-size: clamp(2.5rem, 5vw, 4.2rem); }
.print-controls p:not(.eyebrow) { max-width: 740px; color: var(--muted); }
.print-controls > div:last-child { display: flex; gap: 10px; flex-shrink: 0; }
.print-document { width: min(794px, calc(100vw - 40px)); min-height: 1122px; margin: 0 auto 100px; padding: 70px 74px; background: white; box-shadow: 0 12px 40px rgba(35,51,46,.10); }
.print-cover { min-height: 830px; display: grid; align-content: center; justify-items: center; text-align: center; page-break-after: always; }
.print-cover h1 { max-width: 600px; font-size: 3.8rem; }
.print-overline { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.print-mark { width: 65px; margin-top: 34px; border-top: 2px solid var(--accent); }
.print-prayer { margin-bottom: 60px; font: 1.16rem/1.72 Georgia, serif; }
.print-prayer h2 { margin-bottom: 28px; font-size: 2.3rem; }
.print-prayer p { white-space: normal; }
.print-credit { margin-top: 30px; color: var(--muted); font: .72rem/1.5 system-ui, sans-serif !important; }
.large-print .print-prayer { font-size: 1.38rem; }
.new-page-print .print-prayer { break-before: page; }

.prose { padding-bottom: 100px; font: 1.16rem/1.82 Georgia, serif; }
.collection-after { padding-top: 10px; max-width: min(760px, var(--shell)); }
.prose h2 { margin: 2.3em 0 .7em; font-size: 2rem; }
.prose li { margin-bottom: .65em; }
.error-page { min-height: 55vh; padding-block: 100px; }
.error-page h1 { font-size: 3.8rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { width: var(--shell); margin: auto; padding-block: 55px; display: flex; justify-content: space-between; gap: 40px; }
.footer-brand { font: 1.5rem Georgia, serif; }
.footer-inner p { max-width: 500px; margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-content: start; gap: 12px 24px; font-size: .82rem; }
.toast { position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: min(420px, calc(100vw - 44px)); padding: 14px 18px; border: 1px solid var(--primary); background: var(--ink); color: white; box-shadow: 0 12px 40px rgba(0,0,0,.18); }

@media (max-width: 900px) {
  .header-inner { position: relative; min-height: 70px; }
  .menu-toggle { display: inline-block; }
  .main-nav { position: absolute; z-index: 30; inset: 70px 0 auto; display: none; padding: 18px; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid var(--line); background: var(--surface); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .hero { min-height: 0; }
  .quiet-card { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .callout-inner { grid-template-columns: 1fr; }
  .booklet-layout { grid-template-columns: 1fr; }
  .booklet-settings { position: static; }
  .print-controls { align-items: start; flex-direction: column; }
  .reading-toolbar { margin-inline: 0; }
}

@media (max-width: 650px) {
  :root { --shell: min(calc(100% - 28px), 1160px); --reading: min(calc(100% - 28px), 720px); }
  body { font-size: 16px; }
  main, section, article, nav, header, footer, form, div { min-width: 0; }
  .brand { gap: 9px; font-size: 1.08rem; }
  .brand-mark { width: 27px; flex: 0 0 27px; }
  .preview-banner > div { padding-block: 8px; }
  .hero { padding-block: 42px 52px; }
  .hero h1 { margin-bottom: 16px; font-size: clamp(2.15rem, 11vw, 3.25rem); }
  .hero-intro { font-size: 1.1rem; }
  .search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .search-form input { min-height: 56px; padding-left: 45px; }
  .search-form button { min-width: 82px; }
  .search-icon { left: 16px; }
  .quick-links { margin-top: 14px; gap: 5px 14px; }
  .local-note { margin-top: 9px; }
  .section-heading { align-items: start; flex-direction: column; }
  .collection-grid, .card-grid, .template-grid, .principles, .steps { grid-template-columns: 1fr; }
  .collection-card { padding: 22px; gap: 15px; }
  .prayer-card { min-height: 270px; }
  .principles a { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps > div { border-left: 0; border-top: 1px solid var(--line); }
  .collection-index a { grid-template-columns: 45px 1fr auto; gap: 10px; padding-block: 25px; }
  .collection-index strong { font-size: 1.55rem; }
  .collection-page .page-hero { padding-block: 28px 24px; }
  .collection-page .page-hero + .section { padding-top: 16px; }
  .collection-page .breadcrumbs { margin-bottom: 18px; }
  .reading-shell { padding-top: 20px; }
  .prayer-header { text-align: left; }
  .prayer-header h1 { font-size: 2.85rem; }
  .prayer-header { padding-bottom: 18px; }
  .reading-toolbar { position: static; margin-inline: 0; justify-content: center; flex-wrap: wrap; }
  .reading-toolbar button { min-width: 58px; padding-inline: 6px; flex-direction: column; gap: 0; font-size: .72rem; }
  .font-controls button { min-width: 44px; }
  .prayer-content { font-size: calc(1.32rem * var(--reading-scale)); line-height: 1.72; }
  .source-panel { padding: 22px; }
  .prayer-intro { margin-top: 0; }
  .editorial-notes { margin-top: 48px; }
  .booklet-heading { align-items: start; flex-direction: column; }
  .booklet-top-actions { width: 100%; }
  .booklet-top-actions > * { flex: 1; }
  .booklet-editor, .booklet-settings { padding: 20px; }
  .booklet-item { grid-template-columns: 30px 1fr; }
  .item-controls { grid-column: 2; }
  .print-document { min-height: 0; padding: 35px 28px; }
  .print-cover { min-height: 650px; }
  .print-controls > div:last-child { width: 100%; }
  .print-controls .button { flex: 1; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 380px) {
  :root { --shell: min(calc(100% - 20px), 1160px); --reading: min(calc(100% - 20px), 720px); }
  .header-inner { gap: 10px; }
  .menu-toggle { padding-inline: 10px; }
  .search-form { grid-template-columns: 1fr; }
  .search-form button { min-height: 48px; }
  .search-icon { top: 19px; }
  .booklet-top-actions, .print-controls > div:last-child { flex-direction: column; }
  .collection-card { grid-template-columns: auto 1fr; }
  .collection-card .arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@page { size: A4 portrait; margin: 17mm; }
@media print {
  :root { --paper: white; }
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .preview-banner, .site-footer, .toast, .print-controls, .reading-toolbar, .breadcrumbs, .source-panel { display: none !important; }
  main { display: block; }
  .reading-shell { width: auto; padding: 0; }
  .prayer-header { padding: 0; text-align: left; }
  .prayer-header .eyebrow, .prayer-version { display: none; }
  .prayer-header h1 { margin-bottom: 9mm; font-size: 24pt; }
  .prayer-content { font-size: 13pt; line-height: 1.65; }
  .prayer-content p { orphans: 3; widows: 3; }
  .print-document { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  .print-cover { min-height: 240mm; }
  .print-prayer { margin: 0 0 12mm; font-size: 12pt; line-height: 1.62; orphans: 3; widows: 3; }
  .print-prayer h2 { break-after: avoid-page; font-size: 21pt; }
  .print-prayer p { orphans: 3; widows: 3; }
  .large-print .print-prayer { font-size: 15pt; line-height: 1.6; }
  .print-credit { font-size: 8pt !important; }
  a { text-decoration: none; }
}
