/* Carved content pages: dated readings, Advent, the Rosary walk-through. Tokens, cut shapes, Block, chips and
   type come from carved.css; the cut shapes are printed by carved-kit.js. Season ink is a class on <html>. */
.pg { min-height: 100svh; display: flex; flex-direction: column; }
.pg main { flex: 1; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 14px; background: var(--sheet-solid); color: var(--ink); border-radius: 8px; }
.skip:focus { top: 12px; }

/* Header and footer */
.pg-head .nav { height: 72px; }
.pg-head .links a:not(.block):hover, .pg-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-head .block { min-height: 44px; padding: 0 18px; font-size: 15px; }
.pg-head .block .ico { width: 20px; height: 20px; }
@media (max-width: 760px) { .pg-head .block span:not(.ico) { white-space: nowrap; } }
/* The shared Carved footer (renderCarvedFooter) inside a content page. */
.pg .site-foot { margin-top: 72px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.pg .site-foot .cols { display: grid; gap: 28px; padding: 44px 0 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pg .site-foot h3 { font: 600 13px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ochre-text); margin: 0 0 14px; }
.pg .site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font: 400 15px/1.35 var(--sans); }
.pg .site-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg .site-foot p { margin: 0; font: 400 15px/1.5 var(--sans); }
.pg .site-foot details { padding: 0 0 28px; font: 400 14px/1.55 var(--sans); color: var(--muted); max-width: 80ch; }
.pg .site-foot summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.pg .site-foot details p { margin-top: 10px; font-size: 14px; }
.pg .site-foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px 0 40px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); font: 400 13px/1.4 var(--sans); color: var(--muted); }
.pg-foot { margin-top: 72px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.pg-foot .cols { display: grid; gap: 28px; padding: 44px 0 24px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pg-foot h3 { font: 600 13px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ochre-text); margin: 0 0 14px; }
.pg-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font: 400 15px/1.35 var(--sans); }
.pg-foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px 0 40px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); font: 400 13px/1.4 var(--sans); color: var(--muted); }

/* Page column */
.col { width: min(720px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.col.wide { width: min(1040px, calc(100% - 2 * var(--gutter))); }
.pg-title, .pg h1 { font: 700 clamp(32px, 5.4vw, 52px)/1.06 var(--serif); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.pg-lede { font: 400 clamp(18px, 1.6vw, 21px)/1.5 var(--sans); color: var(--muted); margin: 14px 0 0; max-width: 46ch; text-wrap: pretty; }
.rule { width: 48px; height: 3px; border-radius: 3px; background: var(--season); margin: 0 0 16px; }
.kicker-line { margin: 0 0 8px; font: 600 14px/1.3 var(--sans); color: var(--ochre-text); }
.sec-title { font: 700 clamp(24px, 3vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; margin: 0 0 14px; }
.stack > * + * { margin-top: 20px; }

/* Date strip */
.datestrip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 28px 0 32px; }
.datestrip a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; font: 600 15px/1 var(--sans); white-space: nowrap; }
.datestrip .gap { display: inline-block; min-width: 44px; }
.datestrip .now { border-bottom: 2px solid var(--season); padding: 0 2px; border-radius: 0; min-height: 0; padding-bottom: 4px; }

/* Day head */
.day-meta { margin: 0 0 10px; font: 600 14px/1.3 var(--sans); color: var(--ochre-text); }
.day-title { margin: 0; }
.feature { margin: 30px 0 0; padding: 26px 22px 22px; }
@media (min-width: 720px) { .feature { padding: 36px 40px 30px; } }
.feature .scripture { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.45; }
.feature .cite { margin-top: 12px; }

/* Narrated Gospel: the native audio element is the fallback; the script swaps in this player. */
.player { margin-top: 24px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.player .item { margin: 0 0 12px; }
.player audio { display: block; width: 100%; }
.player.is-custom audio { display: none; }
.player .custom { display: flex; align-items: center; gap: 14px; }
.player .custom[hidden] { display: none; }
.player .roundel { border: 0; background: none; padding: 0; color: var(--ink); flex: none; }
.player .roundel > svg { width: 20px; height: 20px; display: block; }
.player .roundel > .pause, .player.is-playing .roundel > .play { display: none; }
.player.is-playing .roundel > .pause { display: block; }
.player .track { flex: 1; min-width: 0; }
.player .time { flex: none; min-width: 5.6em; text-align: right; font: 400 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.player input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.player input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--season) var(--p, 0%), color-mix(in srgb, var(--ink) 16%, transparent) var(--p, 0%)); }
.player input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.player input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--season); }
.player input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--season); border: 2px solid var(--sheet-solid); }
.player input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--season); border: 2px solid var(--sheet-solid); }
.player-note { margin: 10px 0 0; font: 400 13px/1.4 var(--sans); color: var(--muted); }

/* Readings */
.reading { margin: 52px 0 0; }
.reading .role { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.reading .role h2 { margin: 0; font: 600 17px/22px var(--sans); }
.reading .role .cite { margin: 0; font: 400 14px/1.3 var(--sans); color: var(--muted); text-align: right; }
.reading .response { margin: 0 0 12px; color: var(--season); font: 600 16px/22px var(--sans); }
.reading p.prayer { text-wrap: pretty; }
@media (max-width: 480px) { .reading p.prayer { font-size: 19px; line-height: 30px; } }

/* Reflection and journal question */
.bridge { margin: 60px 0 0; }
.bridge .prayer { margin: 0; }
.question { margin: 26px 0 0; padding: 20px 22px; }
.question .meta { margin: 0 0 6px; }
.question .prayer { margin: 0; }

/* The app card and the email door */
.appcard { margin: 44px 0 0; padding: 26px 22px; display: grid; gap: 18px; }
@media (min-width: 720px) { .appcard { grid-template-columns: 1fr auto; align-items: center; padding: 30px 36px; gap: 32px; } }
.appcard p.item { margin: 0; font: 600 17px/22px var(--sans); color: var(--ink); max-width: none; }
.appcard p { margin: 6px 0 0; font: 400 15px/1.5 var(--sans); color: var(--muted); max-width: 46ch; }
.maildoor { margin: 32px 0 0; }
.maildoor .item { margin: 0 0 12px; }
.mail { display: flex; gap: 10px; flex-wrap: wrap; }
.mail .box { flex: 1 1 220px; }
.mail .daily-email-status { flex-basis: 100%; margin: 4px 0 0; font: 600 15px/1.4 var(--sans); min-height: 1.4em; }
.mail .daily-email-status[data-state="error"] { color: #A33A2F; }
html:not(.js) .mail .box { border: 1.5px solid var(--ink); border-radius: 10px; }
.mail .box:focus-within { outline: 2px solid var(--season); outline-offset: 4px; border-radius: 10px; }
.mail-note { margin: 12px 0 0; }
.source { margin: 40px 0 0; color: var(--muted); font: 400 13px/1.5 var(--sans); max-width: 62ch; }
html:not(.js) .card, html:not(.js) .tile { border: 1.5px solid var(--ink); border-radius: 12px; background: var(--sheet-solid); }

/* Lists of days */
.month { margin: 40px 0 0; }
.month h2 { margin: 0 0 14px; font: 700 clamp(24px, 3vw, 30px)/1.15 var(--serif); }
.month h2 a { border-bottom: 1px solid color-mix(in srgb, var(--ochre) 60%, transparent); }
.days { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; font: 400 16px/1.4 var(--sans); }
.days li { margin: 0 0 6px; break-inside: avoid; }
.days a { display: inline-block; padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.days a:hover { border-bottom-color: var(--season); }
@media (max-width: 560px) { .days { columns: 1; } }
.guides { display: flex; flex-direction: column; gap: 4px; margin: 22px 0 0; font: 600 16px/1.4 var(--sans); }
.guides a { display: inline-block; padding: 8px 0; color: var(--season); }
.todaycard { margin: 32px 0 0; padding: 24px 22px; display: grid; gap: 16px; }
@media (min-width: 720px) { .todaycard { grid-template-columns: 1fr auto; align-items: center; padding: 28px 34px; } }
.todaycard h2 { margin: 0; font: 700 clamp(22px, 2.6vw, 28px)/1.15 var(--serif); }
.todaycard p { margin: 6px 0 0; font: 400 15px/1.5 var(--sans); color: var(--muted); max-width: 46ch; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Advent: today's card, the four weeks, the O Antiphons */
.adv-status { margin: 36px 0 0; font: 600 14px/1.3 var(--sans); color: var(--ochre-text); }
.adv-card { margin: 14px 0 0; padding: 28px 22px; }
@media (min-width: 720px) { .adv-card { padding: 40px 44px; } }
.adv-card h2 { margin: 0; font: 700 clamp(26px, 3.4vw, 38px)/1.1 var(--serif); letter-spacing: -.01em; }
.adv-card .scripture { margin: 22px 0 0; font-size: clamp(20px, 2.2vw, 26px); }
.adv-card .cite { margin-top: 10px; }
.adv-card .label { margin: 26px 0 6px; font: 600 13px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ochre-text); }
.adv-card .prayer { margin: 0; }
.adv-card .question { margin: 26px 0 0; padding: 18px 20px; }
.adv-card .question .prayer { font-style: italic; }
.adv-actions { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.adv-christmas { margin: 28px 0 0; padding: 28px 22px; }
.adv-christmas h2 { margin: 0 0 8px; font: 700 clamp(26px, 3.4vw, 36px)/1.1 var(--serif); }
.adv-christmas p { margin: 0 0 18px; font: 400 17px/1.5 var(--sans); max-width: 46ch; }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.weeks li { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-top: 3px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.weeks li[data-current] { border-top-color: var(--season); }
.weeks .wk { font: 600 13px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ochre-text); }
.weeks .when { font: 600 17px/1.2 var(--serif); }
.weeks .q { margin: 0; font: 400 16px/1.45 var(--serif); color: var(--ink); }
.antiphons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.antiphons li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); align-items: baseline; }
.antiphons .d { font: 600 15px/1.3 var(--sans); color: var(--ochre-text); }
.antiphons .n { font: 700 19px/1.25 var(--serif); }
.antiphons .t { grid-column: 2; margin: 0; font: 400 15px/1.4 var(--sans); color: var(--muted); }
.block-sec { margin-top: 56px; }
.block-sec > p { margin: 0 0 18px; font: 400 17px/1.5 var(--sans); color: var(--muted); max-width: 54ch; }
.adv-more { margin-top: 28px; font: 400 16px/1.5 var(--sans); }
.adv-more a { color: var(--season); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--season) 40%, transparent); }

/* Rosary: today's mysteries, the walk-through, the how-to sections */
.today-mysteries { margin: 32px 0 0; padding: 22px 22px 18px; }
.today-mysteries h2 { margin: 0; font: 700 clamp(24px, 3vw, 32px)/1.15 var(--serif); }
.today-mysteries .meta { margin: 4px 0 0; }
.today-mysteries ol { margin: 14px 0 0; padding-left: 1.3em; font: 400 18px/1.5 var(--serif); }
.sets-static { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font: 400 16px/1.5 var(--sans); }
.sets-static strong { font-family: var(--serif); }
/* Keep the weekday schedule available alongside the interactive picker. */
.walk { margin: 40px 0 0; padding: 26px 22px; }
@media (min-width: 720px) { .walk { padding: 36px 40px; } }
.walk h2 { margin: 0 0 8px; font: 700 clamp(24px, 3vw, 32px)/1.15 var(--serif); }
.walk .intro { margin: 0 0 18px; font: 400 16px/1.5 var(--sans); color: var(--muted); max-width: 56ch; }
.walk .live-only { display: none; }
.walk.is-live .live-only { display: block; }
.walk.is-live .nojs-only { display: none; }
.walk .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.walk .mysteries { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 4px; }
.mystery-pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 12px; border: 0; border-left: 3px solid transparent; background: none; color: var(--ink); font: 400 17px/1.3 var(--serif); text-align: left; cursor: pointer; border-radius: 0 8px 8px 0; }
.mystery-pick .num { flex: none; width: 24px; font: 600 14px/1 var(--sans); color: var(--ochre-text); }
.mystery-pick[aria-pressed="true"] { border-left-color: var(--season); background: color-mix(in srgb, var(--season) 9%, transparent); font-weight: 700; }
.walk .stage { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 720px) { .walk .stage { grid-template-columns: 200px 1fr; gap: 40px; align-items: start; } }
.walk .loop { width: 160px; margin: 0 auto; }
@media (min-width: 720px) { .walk .loop { width: 200px; } }
.walk .loop svg { display: block; width: 100%; height: auto; }
.walk .where { margin: 0 0 12px; font: 600 14px/1.3 var(--sans); color: var(--ochre-text); }
.walk .live { min-height: 150px; }
.walk .live .item { margin: 0 0 8px; font: 700 clamp(22px, 2.6vw, 28px)/1.2 var(--serif); }
.walk .live .prayer { margin: 0; }
.walk .live .meta { margin: 10px 0 0; }
.walk .controls { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.walk .controls .chip[disabled] { opacity: .4; cursor: default; }
.walk .count { margin: 18px 0 0; font: 400 14px/1.5 var(--sans); color: var(--muted); max-width: 60ch; }
.rs-sec { margin: 52px 0 0; }
.rs-sec h2 { margin: 0 0 12px; font: 700 clamp(24px, 3vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; }
.rs-sec p { margin: 0 0 14px; font: 400 17px/1.6 var(--sans); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.rs-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 14px; }
.rs-grid .tile { align-items: flex-start; justify-content: flex-start; text-align: left; gap: 6px; padding: 18px; font: 400 15px/1.5 var(--sans); }
.rs-grid .tile h3 { margin: 0; font: 700 19px/1.2 var(--serif); }
.rs-grid .tile p { margin: 0; font-size: 15px; line-height: 1.5; }
.rs-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rs-list li { position: relative; padding-left: 22px; font: 400 17px/1.55 var(--sans); color: var(--muted); max-width: 62ch; }
.rs-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); }
.rs-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font: 600 16px/1.4 var(--sans); }
.rs-links a { padding: 8px 0; color: var(--season); border-bottom: 1px solid color-mix(in srgb, var(--season) 40%, transparent); }

/* Articles (/blog/) and comparisons (/compare/): the Rosary page's sections plus a verse, a prayer and a table. */
.art .kicker-line a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.art-date { margin: 10px 0 0; font: 400 14px/1.4 var(--sans); color: var(--muted); }
.art-verse { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--season); }
.art-verse p { margin: 0 0 6px; font: 400 19px/1.55 var(--serif); color: var(--ink); max-width: 58ch; }
.art-verse cite { font: 600 14px/1.3 var(--sans); font-style: normal; color: var(--ochre-text); }
.art-prayer { display: block; text-align: left; padding: 20px 22px; margin: 16px 0; }
.art-prayer h3 { margin: 0 0 8px; font: 700 19px/1.2 var(--serif); }
.art-prayer p { margin: 0; font: 400 18px/1.6 var(--serif); color: var(--ink); }
.cmp-wrap { margin-top: 14px; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--sans); }
.cmp caption { text-align: left; padding: 0 0 10px; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.cmp thead th { font: 700 16px/1.2 var(--serif); border-bottom: 2px solid var(--ink); }
.cmp tbody th { font-weight: 600; width: 28%; }
@media (max-width: 560px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
  .cmp th, .cmp td { border: 0; padding: 2px 0; }
  .cmp tbody th { width: auto; margin-bottom: 4px; }
  .cmp td::before { content: attr(data-label) ": "; font-weight: 600; }
}
.art-sources ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font: 400 15px/1.5 var(--sans); color: var(--muted); }
.art-sources a { color: var(--season); }
.art-index { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 26px; }
.art-index a { font: 700 clamp(22px, 2.6vw, 28px)/1.2 var(--serif); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.art-index p { margin: 8px 0 0; font: 400 17px/1.55 var(--sans); color: var(--muted); max-width: 62ch; }
.art-index .art-date { font-size: 14px; }
.rs-sec .rs-list + p, .rs-sec .cmp-wrap + p { margin-top: 18px; }
