:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --ink: #1f1814;
  --muted: #675b51;
  --cedar: #4b1611;
  --blue: #294761;
  --sage: #53695d;
  --gold: #b1843d;
  --line: rgba(52, 30, 22, 0.16);
  --panel: #fffdf7;
  --panel-blue: #f0f4f5;
  --serif: "Fraunces", Georgia, serif;
  --ui: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 17px; line-height: 1.55; letter-spacing: 0; }
a { color: inherit; }
.prayer-site-header, .prayer-hub, .prayer-detail { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.prayer-site-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.prayer-brand, .prayer-nav { display: flex; align-items: center; gap: 14px; }
.prayer-brand { font-family: var(--serif); font-weight: 700; text-decoration: none; color: var(--cedar); }
.prayer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.prayer-nav { flex-wrap: wrap; }
.prayer-nav a { font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--muted); }
.prayer-nav a:hover { color: var(--cedar); }
.prayer-nav a:last-child { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid var(--cedar); border-radius: 6px; padding: 9px 12px; color: var(--cedar); font-weight: 800; }
.prayer-hub, .prayer-detail { padding: clamp(22px, 4vw, 46px) 0; }
.prayer-hero { padding: clamp(24px, 4vw, 44px) 0 30px; border-bottom: 1px solid var(--line); max-width: 900px; }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; color: var(--blue); text-transform: uppercase; letter-spacing: 0; font-weight: 800; }
h1, h2, h3 { font-family: var(--serif); color: var(--cedar); letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1; max-width: 800px; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; }
.lede { margin: 18px 0 0; max-width: 720px; color: var(--muted); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; }
.library-note { margin: 24px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 780px; }
.library-note p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.library-note strong { color: var(--ink); font-weight: 900; }
.sample-section { margin: 28px 0 48px; }
.section-heading { display: grid; gap: 8px; margin-bottom: 18px; max-width: 760px; }
.section-heading--split { grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); align-items: end; max-width: none; }
.section-heading--split p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
.prayer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0; }
.prayer-card, .browse-card, .empty-state, .prayer-article, .scripture-box, .author-note { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.prayer-card { min-height: 280px; display: grid; align-content: start; gap: 12px; padding: 22px; color: inherit; text-decoration: none; box-shadow: 0 18px 44px rgba(52, 30, 22, 0.06); }
.prayer-card span, .prayer-card small { color: var(--sage); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.prayer-card h2 { margin: 0; font-size: 1.55rem; line-height: 1.1; }
.prayer-card p { margin: 0; color: var(--muted); }
.prayer-card:hover { transform: translateY(-2px); border-color: rgba(75, 22, 17, 0.32); }
.browse-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0 54px; }
.browse-card { display: grid; gap: 12px; padding: 24px; text-decoration: none; background: var(--panel-blue); }
.browse-card span { color: var(--blue); font-family: var(--mono); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.browse-card strong { font-family: var(--serif); color: var(--cedar); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.05; }
.browse-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.directory-section, .filter-panel, .compact-results { margin-top: 52px; }
.directory-list { border-top: 1px solid var(--line); }
.directory-row { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.directory-row__label { font-family: var(--serif); color: var(--cedar); font-size: 1.35rem; line-height: 1.1; }
.directory-row__description { color: var(--muted); }
.directory-row__count { color: var(--sage); font-family: var(--mono); font-size: 12px; font-weight: 800; white-space: nowrap; }
.text-link { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill { border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); padding: 10px 14px; text-decoration: none; font-weight: 800; font-size: 14px; }
.filter-pill.is-active { background: var(--cedar); border-color: var(--cedar); color: #fffdf7; }
/* CP-15 Year of Prayers calendar — primary view of a complete daily audience page. */
.year-calendar { margin: 28px 0 48px; }
.year-calendar__note { margin: -6px 0 22px; color: var(--muted); font-size: 15px; }
.calendar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 30px); }
.calendar-month { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 18px 18px 8px; }
.calendar-month__name { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.calendar-month__rows { display: grid; }
.calendar-row { display: block; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--cedar); }
.calendar-month__rows .calendar-row:first-child { border-top: 0; }
.calendar-row:hover { color: #3a110c; }
.calendar-row__title { font-size: 15px; font-weight: 700; line-height: 1.35; }
/* CP-17 Today's Prayer subsection — client-rendered enhancement on the prayer hub. */
.today-prayer { margin: 24px 0 48px; }
.today-prayer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.today-prayer__card { display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 18px 20px; text-decoration: none; color: inherit; box-shadow: 0 14px 36px rgba(52, 30, 22, 0.05); }
.today-prayer__card:hover { transform: translateY(-2px); border-color: rgba(75, 22, 17, 0.32); }
.today-prayer__audience { font-family: var(--mono); font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--sage); }
.today-prayer__title { font-family: var(--serif); color: var(--cedar); font-size: 1.2rem; line-height: 1.15; }
.today-prayer__subject { color: var(--muted); font-size: 14px; }
.prayer-link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.prayer-link-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--cedar); }
.prayer-link-row span { font-weight: 800; }
.prayer-link-row small { color: var(--sage); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.list-note { grid-column: 1 / -1; margin: 14px 0 0; color: var(--muted); }
.empty-state { padding: 24px; }
.empty-state p { color: var(--muted); line-height: 1.45; }
.verse-line, .back-link { color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.back-link { display: inline-block; margin-bottom: 18px; text-decoration: none; }
.prayer-article { padding: clamp(22px, 5vw, 56px); }
.prayer-body { margin: 34px 0; font: 22px/1.68 var(--serif); max-width: 760px; }
.author-note { border-left: 4px solid var(--gold); background: rgba(177, 132, 61, .12); padding: 14px 18px; max-width: 720px; }
.author-note p, .prayer-footer p { color: var(--muted); line-height: 1.5; }
.share-card-preview { width: min(420px, 100%); border-radius: 8px; margin: 22px 0; border: 1px solid var(--line); }
.prayer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; }
button { border: 0; border-radius: 999px; background: var(--cedar); color: #fffdf7; padding: 12px 18px; font: 800 14px/1 var(--ui); }
.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; }
.primary-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; background: var(--cedar); color: #fffdf7; padding: 14px 24px; font: 800 15px/1 var(--ui); text-decoration: none; box-shadow: 0 16px 36px rgba(75, 22, 17, 0.22); }
.primary-cta:hover { background: #3a110c; }
.brand-hero { display: grid; }
.brand-hero__copy { display: grid; gap: 0; }
.brand-hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.brand-hero__cta-note { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.brand-hero__cta-note strong { color: var(--cedar); font-weight: 800; }
/* CP-13 editorial polish — dark prayer-card hero + pill-style jump-link TOC.
   The detail/topical pages wrap their hero in .cp-hero--feature, show the prayer in a
   .prayer-card-dark cedar card, and render the TOC as a row of mono pills. */
.cp-detail { padding-top: clamp(18px, 3vw, 32px); }
.cp-hero--feature { position: relative; margin: 0 0 8px; padding: clamp(26px, 4vw, 44px) clamp(24px, 4vw, 44px) clamp(28px, 4vw, 46px); border: 1px solid var(--line); border-radius: 18px; background:
    radial-gradient(120% 140% at 12% -10%, rgba(177, 132, 61, 0.16), transparent 58%),
    radial-gradient(120% 150% at 110% 120%, rgba(41, 71, 97, 0.12), transparent 60%),
    var(--panel); box-shadow: 0 26px 60px rgba(52, 30, 22, 0.10); overflow: hidden; max-width: none; }
.cp-hero--feature .eyebrow { color: var(--blue); }
.cp-hero--feature h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 18ch; }
.cp-hero--feature .lede { max-width: 60ch; }
.cp-hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.cp-toc { margin: 22px 0 8px; max-width: none; }
.cp-toc__title { margin: 0 0 12px; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.cp-toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: cp-toc; }
.cp-toc li { margin: 0; }
.cp-toc a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); padding: 9px 16px; color: var(--cedar); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.cp-toc a::before { counter-increment: cp-toc; content: counter(cp-toc, decimal-leading-zero); color: var(--gold); font-weight: 800; }
.cp-toc a:hover { background: var(--cedar); border-color: var(--cedar); color: #fffdf7; }
.cp-toc a:hover::before { color: rgba(255, 253, 247, 0.7); }
/* Dark prayer card — the prayer text on a cedar field, the centerpiece of the page. */
.prayer-card-dark { margin: 30px 0; max-width: none; border-radius: 18px; padding: clamp(26px, 4vw, 46px); color: #f6ece1; background:
    radial-gradient(130% 120% at 8% 0%, rgba(177, 132, 61, 0.30), transparent 55%),
    linear-gradient(160deg, #3a110c 0%, var(--cedar) 48%, #321a14 100%); box-shadow: 0 30px 70px rgba(40, 16, 10, 0.34); border: 1px solid rgba(177, 132, 61, 0.32); }
.prayer-card-dark .prayer-card-dark__eyebrow { margin: 0 0 18px; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.prayer-card-dark .prayer-card-dark__body { font: 500 clamp(1.3rem, 2.6vw, 1.7rem)/1.62 var(--serif); color: #f6ece1; }
.prayer-card-dark .prayer-card-dark__body p { margin: 0 0 1.1rem; }
.prayer-card-dark .prayer-card-dark__body p:last-child { margin-bottom: 0; }
.prayer-card-dark .copy-prayer { margin-top: 24px; background: rgba(246, 236, 225, 0.12); border: 1px solid rgba(246, 236, 225, 0.4); color: #f6ece1; }
.prayer-card-dark .copy-prayer:hover { background: rgba(246, 236, 225, 0.22); }
.cp-section { margin: 40px 0; max-width: 760px; scroll-margin-top: 24px; }
.cp-section > h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.05; margin-bottom: 14px; }
.cp-section__lede { margin: 0 0 16px; color: var(--muted); }
.copy-prayer { margin-top: 18px; }
.how-steps { margin: 0; padding-left: 22px; display: grid; gap: 14px; color: var(--ink); line-height: 1.55; }
.how-steps strong { color: var(--cedar); }
.verse-pray-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 18px; }
.verse-pray-list li { border-left: 4px solid var(--gold); padding: 4px 0 4px 18px; }
.verse-pray-list blockquote { margin: 0 0 6px; font: 500 1.25rem/1.5 var(--serif); color: var(--ink); }
.verse-pray-list cite { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--blue); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 4px 18px; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-family: var(--serif); font-size: 1.15rem; color: var(--cedar); font-weight: 600; }
.faq-item p { margin: 0 0 16px; color: var(--muted); line-height: 1.55; }
.devotional-capture { margin: 44px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-blue); padding: clamp(22px, 4vw, 36px); max-width: 760px; }
.devotional-capture h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.05; margin-bottom: 10px; }
.devotional-capture p.devotional-capture__lede { margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
.devotional-capture form { display: grid; gap: 14px; max-width: 460px; }
.devotional-capture__field { display: grid; gap: 6px; }
.devotional-capture__field span { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--blue); }
.devotional-capture input[type="email"] { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 13px 14px; font: 400 16px/1.3 var(--ui); color: var(--ink); }
.devotional-capture__consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; line-height: 1.4; }
.devotional-capture__consent input { margin-top: 3px; }
.devotional-capture__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.devotional-capture__status { margin: 2px 0 0; min-height: 18px; font-size: 14px; color: var(--muted); }
.devotional-capture__status[data-state="error"] { color: var(--cedar); }
.devotional-capture__status[data-state="success"] { color: var(--sage); font-weight: 700; }
.devotional-capture button[type="submit"] { justify-self: start; border-radius: 999px; background: var(--cedar); color: #fffdf7; padding: 14px 22px; font: 800 15px/1 var(--ui); }
.topic-cross-links { margin: 40px 0; max-width: 760px; }
.topic-cross-links ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.topic-cross-links a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; text-decoration: none; color: var(--cedar); font-weight: 700; font-size: 14px; }
/* CP-11 rich multi-column sitemap footer (shared by prayer detail + topical pages). */
.site-footer { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); background:
    linear-gradient(180deg, rgba(52, 30, 22, 0.03), transparent 40%); }
.site-footer__inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: clamp(34px, 5vw, 56px) 0 clamp(22px, 3vw, 30px); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.site-footer__col h2 { margin: 0 0 16px; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__col a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-footer__col a:hover { color: var(--cedar); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__brand { margin-top: clamp(30px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer__brand-copy { display: grid; gap: 4px; }
.site-footer__brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--cedar); }
.site-footer__brand-tagline { color: var(--muted); font-size: 15px; }
.site-footer__brand-legal { margin: 6px 0 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
@media (max-width: 980px) {
  .prayer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading--split, .directory-row, .prayer-link-list { grid-template-columns: 1fr; }
  .directory-row { gap: 8px; }
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .prayer-site-header, .prayer-footer { align-items: flex-start; flex-direction: column; }
  .prayer-hero { padding-top: 24px; }
  .browse-rail, .prayer-grid { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: 1fr; }
  .prayer-card { min-height: 220px; }
  .prayer-body { font-size: 20px; }
  .prayer-link-row { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 0; }
  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__brand { flex-direction: column; align-items: flex-start; }
}