/* Seraphim. One stylesheet for every page. The accent colour follows the liturgical
   colour of the day; pages set --accent from the API (gold is the fallback). */

:root {
  --bg: #F4F5F0;
  --ink: #16211D;
  --ink-2: #3A4540;
  --muted: #5A655F;
  --line: #DADDD5;
  --card: #FFFFFF;
  --soft: #F1F2EC;
  --band: #E8EAE3;
  --dark: #16211D;
  --on-dark: #F4F5F0;
  --on-dark-muted: #B9C2BB;
  --accent: #8A6412;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;
  --wrap: 1064px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  border-top: 5px solid var(--accent);
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow.accent { color: var(--accent); }
.small { font-size: 13px; line-height: 1.45; }
.ph { color: var(--muted); }                       /* bracketed placeholder text in the preview */
.icon { width: 1em; height: 1em; flex: none; }
.link { font-weight: 600; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; text-decoration: underline; }
.link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0 30px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 500 30px/1 var(--serif); letter-spacing: -.01em; }
.logo .icon { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; margin-left: auto; }
.site-header .back { margin-left: auto; }
/* The Feedback button: the last thing in the header, so it sits at the top right of every page. */
.feedback-open { flex: none; }
.nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.nav .cta { background: var(--accent); color: #fff; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.nav .cta:hover { text-decoration: none; filter: brightness(1.08); color: #fff; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 1100px) { .nav { gap: 14px; } .site-header { gap: 14px; } .nav a[href='/how'] { display: none; } }
@media (max-width: 900px) { .nav { gap: 10px; font-size: 13px; } .site-header { gap: 10px; } .nav .cta { padding: 8px 12px; } .nav a[href='/social'] { display: none; } }

/* ---------- This Sunday's top ten preachers (home page) ---------- */
.top-ten-box:empty { display: none; }
.top-ten { margin-top: 28px; padding: 26px 28px 22px; }
.top-ten h2 { font: 500 clamp(24px, 3vw, 30px)/1.12 var(--serif); letter-spacing: -.015em; }
.top-ten .small { margin-top: 6px; max-width: 620px; }
/* Two columns read downwards: 1 to 5, then 6 to 10. */
.top-ten ol { display: grid; grid-template-rows: repeat(var(--rows), auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 36px; margin-top: 14px; }
.top-ten li { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) 38px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.top-ten .play { grid-column: 4; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #A9AEA6; background: transparent; color: var(--ink); padding: 0; cursor: pointer; }
.top-ten .play:hover { border-color: var(--accent); color: var(--accent); }
.top-ten .play.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.top-ten .play .icon { width: 16px; height: 16px; }
.top-ten li .player { grid-column: 2 / -1; margin: 0; max-width: none; }
.top-ten li .player:not(.started) { display: none; }
.top-ten .place { font: 500 21px/1 var(--serif); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.top-ten .face { width: 44px; height: 44px; font-size: 13px; }
.top-ten .who { min-width: 0; display: grid; }
.top-ten .who a { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-ten .who a:hover { text-decoration: underline; text-underline-offset: 3px; }
.top-ten .who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .top-ten { padding: 20px 16px 14px; }
  .top-ten ol { display: block; }
  .top-ten li { grid-template-columns: 20px 38px minmax(0, 1fr) 38px; gap: 10px; }
  .top-ten .face { width: 38px; height: 38px; }
}
.back { font-size: 14px; }

/* ---------- Pills and buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #C9CDC4; border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; border: 1px solid transparent; text-decoration: none; background: var(--dark); color: var(--on-dark); line-height: 1.2; }
.btn:hover { filter: brightness(1.25); }
.btn.outline { background: transparent; color: var(--ink); border-color: #A9AEA6; }
.btn.outline:hover { background: rgba(22, 33, 29, .05); filter: none; }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; filter: none; }
.on-dark .btn { background: var(--on-dark); color: var(--dark); }
.on-dark .btn:hover { filter: brightness(.94); }
.on-dark .btn.outline { background: transparent; color: var(--on-dark); border-color: #5C6863; }
.on-dark .btn.outline:hover { background: rgba(255, 255, 255, .08); }
.btn.following { border-style: dashed; }

/* ---------- Home: hero ---------- */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-meta .date { color: var(--accent); margin-right: 2px; }
/* The date is text of its own width; the real drop-down lies invisibly over it (see sundayPicker). */
.sunday-picker { position: relative; display: inline-flex; align-items: center; max-width: 100%; cursor: pointer; border: 1px solid #C9CDC4; border-radius: 999px; padding: 4px 30px 4px 12px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 9px; transition: border-color .15s ease, box-shadow .15s ease; }
.sunday-picker > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sunday-picker i { font-style: normal; color: var(--muted); padding-left: 8px; border-left: 1px solid #C9CDC4; }
.sunday-picker select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; opacity: 0; cursor: pointer; appearance: none; -webkit-appearance: none; font-family: var(--sans); }
.sunday-picker:hover { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.sunday-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.sunday-picker option { color: var(--ink); text-transform: none; letter-spacing: 0; }
.hero-meta .pill { background: var(--card); }
.hero h1, .page-title { font: 500 clamp(40px, 7.4vw, 78px)/.98 var(--serif); letter-spacing: -.025em; margin: 14px 0 26px; max-width: 760px; text-wrap: balance; }
.page-title { font-size: clamp(34px, 5.4vw, 56px); margin: 10px 0 16px; }
.lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 500px; }
/* The home page sets the lede beside the headline, on its last line, once there is room for both. */
.hero.split h1 { margin: 22px 0 22px; }
@media (min-width: 980px) {
  .hero.split { display: grid; grid-template-columns: minmax(0, 1fr) 272px; column-gap: 44px; align-items: end; }
  .hero.split .hero-meta { grid-column: 1 / -1; }
  .hero.split h1 { font-size: clamp(56px, 6.3vw, 72px); margin-bottom: 0; }
  .hero.split .lede { font-size: 16.5px; line-height: 1.5; padding: 2px 0 6px 20px; border-left: 2px solid var(--accent); margin-bottom: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero.split > *, .finder > .tune { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .hero.split > h1 { animation-delay: .05s; }
  .hero.split > .lede { animation-delay: .12s; }
  .finder > .tune { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }
.hero-links .gospel { font: italic 400 17px var(--serif); }

/* ---------- Home: liturgical year ---------- */
.year { margin-top: 44px; }
.year-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); margin-bottom: 12px; }
.year-head .here { font-size: 13px; }
.year-head .here b { color: var(--ink); }
.year-bar { position: relative; display: flex; gap: 3px; height: 12px; }
.year-bar span { border-radius: 3px; min-width: 4px; }
.year-bar span:first-child { border-radius: 999px 3px 3px 999px; }
.year-bar span:nth-last-child(2) { border-radius: 3px 999px 999px 3px; }
.year-bar .marker { position: absolute; top: -8px; bottom: -8px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 3px var(--bg); min-width: 0; }
.year-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.year-legend li { display: flex; align-items: center; gap: 7px; }
.year-legend i { width: 8px; height: 8px; border-radius: 50%; }
.year-legend b { color: var(--ink); font-weight: 600; }

/* ---------- Home: key message ---------- */
.message { display: grid; grid-template-columns: 200px 1fr; gap: 28px 52px; margin-top: 44px; padding: 34px 0 40px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.message .small { margin-top: 10px; color: var(--muted); }
.message .text { font: 400 clamp(22px, 3vw, 31px)/1.3 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid #E3E5DE; border-radius: var(--radius); }
section, .section { margin-top: 56px; }
h2.title { font: 500 clamp(28px, 3.6vw, 36px)/1.1 var(--serif); letter-spacing: -.015em; }
h2.title + .lede { font-size: 16px; margin-top: 12px; max-width: 540px; }

/* Finder: the question, the answer, and every pick in the reader's order */
.finder { margin-top: 44px; }
/* Personalise panel: switches for the four questions and a few extra filters, ahead of the ranking */
.tune { padding: 26px 28px; }
.tune-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.tune h2 { font: 500 24px/1.15 var(--serif); letter-spacing: -.01em; }
.tune-head .small { margin-top: 6px; }
.tune-reset { font-size: 13.5px; background: none; border: 0; padding: 0; cursor: pointer; }
.tune-reset[hidden] { display: none; }
.pope[hidden] { display: none; }
.tune-group { margin-top: 20px; }
.tune-group h3 { margin-bottom: 10px; }
.switches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.switch { display: flex; align-items: flex-start; gap: 12px; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; }
.switch:hover { border-color: #A9AEA6; }
.switch .track { flex: none; position: relative; width: 36px; height: 20px; border-radius: 999px; background: #C3C8BE; margin-top: 1px; transition: background .15s ease; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.switch b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.switch small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); margin-top: 3px; }
.switch[aria-checked='true'] { border-color: var(--ink); background: var(--card); color: var(--ink); }
.switch[aria-checked='true'] .track { background: var(--accent); }
.switch[aria-checked='true'] .track::after { transform: translateX(16px); }
@media (prefers-reduced-motion: reduce) { .switch .track, .switch .track::after { transition: none; } }
.tune-more { margin-top: 16px; }
.tune-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: border-color .15s ease, color .15s ease; }
.tune-more > summary::-webkit-details-marker { display: none; }
.tune-more > summary::before { content: ''; width: 14px; height: 10px; flex: none; background: linear-gradient(currentColor, currentColor) 0 0 / 14px 1.6px, linear-gradient(currentColor, currentColor) 50% 50% / 9px 1.6px, linear-gradient(currentColor, currentColor) 50% 100% / 4px 1.6px; background-repeat: no-repeat; }
.tune-more > summary::after { content: ''; width: 6px; height: 6px; margin: -3px 2px 0 2px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .2s ease; }
.tune-more[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.tune-more > summary:hover, .tune-more[open] > summary { border-color: #A9AEA6; color: var(--ink); }
.tune-more > summary .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.tune-sets { display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tune-set h3 { margin-bottom: 8px; }
.tune { padding: 26px 28px 24px; box-shadow: 0 1px 2px rgba(22, 33, 29, .04), 0 14px 34px -22px rgba(22, 33, 29, .22); }
.tune h2 { font-size: 26px; }
.tune-head { align-items: flex-start; flex-wrap: nowrap; }
.tune-status { margin-top: 6px; color: var(--muted); font-size: 14px; }
.tune-reset { flex: none; margin-top: 6px; }
/* The extra filters are small pills. */
.tune .switches { display: flex; flex-wrap: wrap; gap: 8px; }
.tune .switch { align-items: center; gap: 9px; border-radius: 999px; padding: 7px 14px 7px 9px; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.tune .switch .track { margin-top: 0; }
.tune .switch b { font-size: 14px; }
/* The four questions are cards that say what each one means, with the switch in the corner. */
.tune .switches.questions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.tune .questions .switch { flex-direction: row-reverse; align-items: flex-start; justify-content: space-between; gap: 12px; border-radius: 14px; padding: 14px 14px 15px 16px; background: var(--soft); border-color: transparent; }
.tune .questions .switch:hover { border-color: #A9AEA6; }
.tune .questions .switch b { font: 500 19px/1.2 var(--serif); letter-spacing: -.005em; }
.tune .questions .switch small { margin-top: 5px; text-wrap: pretty; }
.tune .questions .switch[aria-checked='true'] { background: color-mix(in srgb, var(--accent) 7%, var(--card)); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tune .questions .switch[aria-checked='true']:hover { border-color: var(--accent); }
.tune .questions .switch[aria-checked='false'] b { color: var(--muted); }
.tune .questions .switch:active .track::after { width: 19px; }
.tune .questions .switch[aria-checked='true']:active .track::after { transform: translateX(13px); }
@media (max-width: 900px) { .tune .switches.questions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  /* Two by two on a phone, where four explanations would push the homily off the screen. */
  .tune .questions .switch { align-items: center; padding: 10px 12px 10px 14px; }
  .tune .questions .switch b { font-size: 17px; }
  .tune .questions .switch small { display: none; }
  .tune h2 { font-size: 23px; }
}
/* Readings: one slim card */
.readings { grid-template-columns: 1fr auto; align-items: center; gap: 16px 28px; padding: 24px 28px; }
.readings h2 { font-size: clamp(21px, 2.6vw, 25px); margin-top: 6px; }
.readings .btn { margin-top: 0; }
.readings .days { grid-column: 1 / -1; }
.days a { padding: 7px 4px; border-radius: 10px; display: flex; justify-content: center; align-items: baseline; gap: 6px; }
.days span { margin-top: 0; }
/* The weekly question: the form opens from one button */
.answer-box { margin-top: 22px; }
.answer-box > summary { display: inline-block; cursor: pointer; list-style: none; background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; }
.answer-box > summary::-webkit-details-marker { display: none; }
.answer-box[open] > summary { display: none; }
.answer-box form { margin-top: 0; }
main > .message, #app > .message { margin-top: 56px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tune-result { margin-top: 20px; }
.tune-empty { font-size: 16px; padding: 14px 0; }

/* Stepping between Sundays, the week's readings, and the archive on the home page */
.timenav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 22px; font-size: 14px; }
.timenav .link { display: inline-flex; align-items: center; gap: 6px; }
.timenav.wide { margin-top: 24px; }
.readings { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px 52px; padding: 36px 40px; }
.readings h2 { font: 500 clamp(26px, 3.4vw, 34px)/1.12 var(--serif); letter-spacing: -.015em; margin-top: 10px; }
.readings .small { margin-top: 8px; }
.readings .gospel { font: italic 400 19px var(--serif); margin-top: 16px; }
.readings .btn { margin-top: 22px; }
.readings-week h3 { margin-bottom: 12px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.days a { display: block; text-align: center; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 12px 4px; color: var(--ink); }
.days a:hover { border-color: var(--ink); }
.days a.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.days b { display: block; font-size: 13.5px; font-weight: 600; }
.days span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.readings-week .small { margin-top: 14px; }
.earlier .archive { margin-top: 18px; }
@media (max-width: 760px) {
  .readings { grid-template-columns: 1fr; padding: 20px 18px; }
  .days a { flex-direction: column; align-items: center; gap: 2px; }
  .days { grid-template-columns: repeat(4, 1fr); }
}
.btn.big { width: 100%; padding: 16px 22px; font-size: 17px; }
.top.result { grid-template-columns: 1fr 290px; gap: 28px 52px; padding: 44px 48px; margin-top: 0; align-items: start; }
.top.result .eyebrow { color: var(--on-dark-muted); }
.top.result h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 40px); }
.top.result .takeaway { margin-top: 22px; font-size: 17px; }
.top.result .why { margin-top: 20px; }
.top.result .go { display: flex; flex-direction: column; gap: 12px; }
.top.result .go .btn { width: 100%; }
.top.result .go .player { margin-top: 0; }
.top.result .go .votes { margin-top: 10px; padding-top: 16px; }
.top.result .go .link { font-size: 13.5px; margin-top: 4px; }

/* Top pick */
.top { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 54px 56px 44px; display: grid; grid-template-columns: 110px 1fr; gap: 0 36px; }
.top .rank { text-align: center; color: var(--on-dark-muted); }
.top .rank b { display: block; font: 400 124px/.8 var(--serif); color: var(--on-dark); margin-top: 18px; }
.top h2 { font: 500 clamp(30px, 4.6vw, 46px)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; font-size: 14.5px; }
.byline .who { font-weight: 600; }
.byline .where, .byline .len { color: var(--muted); }
.on-dark .byline .where, .on-dark .byline .len { color: var(--on-dark-muted); }
.tbc { background: #E9EDE4; color: var(--ink-2); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; }
.top .takeaway { font-size: 18px; line-height: 1.5; margin-top: 30px; max-width: 600px; }
.quote { font: italic 400 20px/1.4 var(--serif); border-left: 2px solid #55615B; padding: 4px 0 4px 20px; margin-top: 26px; max-width: 620px; }
.top .share { margin-top: 26px; font-size: 14px; }
.top .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.top .on-dark-muted, .on-dark .small { color: var(--on-dark-muted); }
.top .ph { color: var(--on-dark-muted); }
.top .link:hover { color: #fff; }

.player { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 12.5px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; max-width: 640px; }
.player input[type=range] { flex: 1; appearance: none; -webkit-appearance: none; height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--on-dark) var(--p, 0%), #46524D var(--p, 0%)); cursor: pointer; margin: 8px 0; }
.player input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--on-dark); border: 0; }
.player input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--on-dark); border: 0; }
.player + .small { margin-top: 6px; }
.light .player, .player.light { color: var(--muted); margin-top: 14px; }
.player.light input[type=range] { background: linear-gradient(to right, var(--ink) var(--p, 0%), var(--line) var(--p, 0%)); }
.player.light input[type=range]::-webkit-slider-thumb { background: var(--ink); }
.player.light input[type=range]::-moz-range-thumb { background: var(--ink); }

.votes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vote { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #A9AEA6; background: transparent; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14.5px; }
.vote.down { padding: 7px; width: 36px; height: 36px; justify-content: center; }
.vote:hover:not([disabled]) { background: rgba(22, 33, 29, .06); }
.vote[aria-pressed='true'] { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.vote[disabled] { opacity: .5; cursor: default; }
.vote .n { font-variant-numeric: tabular-nums; }
.on-dark .vote { border-color: #5C6863; color: var(--on-dark); }
.on-dark .vote:hover:not([disabled]) { background: rgba(255, 255, 255, .08); }
.on-dark .vote[aria-pressed='true'] { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }
.top .votes { margin-top: 26px; padding-top: 22px; border-top: 1px solid #36423D; }
.votes .note { font-size: 13px; color: var(--muted); margin-left: 6px; }
.on-dark .votes .note { color: var(--on-dark-muted); }

/* Home page comparison: one row per homily */
.glance-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 28px; }
.glance-head .link { font-size: 14px; }
.finder .table-card { margin-top: 12px; }
.sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.sort span { margin-right: 4px; }
.sort-by { border: 1px solid #B9BEB5; background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.sort-by:hover { background: rgba(22, 33, 29, .05); }
.sort-by[aria-pressed='true'] { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.glance-table th, .glance-table td { padding: 18px 8px; vertical-align: middle; }
.glance-table th:first-child { padding-left: 24px; }
.glance-table td:last-child { padding-right: 24px; }
.glance-table thead th { font-size: 12px; font-weight: 600; line-height: 1.25; vertical-align: bottom; color: var(--ink-2); }
.glance-table thead th small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.glance-table .num { width: 116px; }
.glance-table tbody th { font-weight: 400; min-width: 290px; }
.glance-table .homily { display: flex; align-items: center; gap: 13px; }
.glance-table .homily .what { flex: 1; min-width: 0; }
.glance-table .face { width: 46px; height: 46px; font-size: 14px; }
.glance-table .face .icon { width: 20px; height: 20px; color: var(--muted); }
.glance-table .who { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-top: 5px; }
.glance-table .name { display: block; font: 500 20px/1.2 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.glance-table .by { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 1px; }
.glance-table .badge { display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.glance-table .score { font: 400 19px var(--serif); }
.glance-table .score .ph { font-size: 13.5px; }
.glance-table .meter { margin: 6px 0 0; }
.glance-table .total { font: 400 25px var(--serif); border-left: 1px solid #E6E8E1; padding-left: 18px; }
.glance-table .total .ph { font-size: 15px; }
.glance-table thead th:nth-last-child(2) { padding-left: 18px; }
.glance-table thead th.on { color: var(--accent); }
.glance-table tr.best > * { background: #FBF8EF; }
/* The leading homily: a rule in the day's colour down its edge and a ring round the preacher's face */
.glance-table tr.best > th:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.glance-table tr.best .face { box-shadow: 0 0 0 2px #FBF8EF, 0 0 0 4px var(--accent); }
.glance-table .jump { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #C9BE9F; background: #fff; border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none; color: var(--ink); }
.glance-table .jump:hover { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
/* `.group` is also the card on the Stay involved page; here it is a heading row across the table */
.glance-table tr.group { display: table-row; padding: 0; border-radius: 0; }
.glance-table tr.group th { background: #EEF0E9; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; padding: 9px 24px; min-width: 0; }
.glance-table .acts { font-size: 13.5px; min-width: 140px; }
.glance-table .acts .hear { display: flex; gap: 16px; margin-bottom: 8px; }
.glance-table .acts .votes { flex-wrap: nowrap; gap: 6px; }
.glance-table .acts .votes .vote { padding: 5px 10px; font-size: 13px; white-space: nowrap; }
.glance-table .acts .votes .vote.down { width: 30px; height: 30px; padding: 5px; }
.glance-table .acts .player { color: var(--muted); margin: 0 0 8px; }
.glance-table .acts .player:not(.started) { display: none; }
.glance-table .acts .player input[type=range] { background: linear-gradient(to right, var(--ink) var(--p, 0%), var(--line) var(--p, 0%)); }
.glance-table .acts .player input[type=range]::-webkit-slider-thumb { background: var(--ink); }
.glance-table .acts .player input[type=range]::-moz-range-thumb { background: var(--ink); }
/* The conversation under each homily in the list */
.glance-table tr.under > td { border-top: 0; padding: 0 24px 16px 83px; }   /* in line with the title, past the face */

.glance-table tr.under > td.rest { border-left: 1px solid #E6E8E1; padding: 0; }
.glance-table .talk-toggle { font-size: 13.5px; }
.glance-table .talk .notes { margin-top: 14px; max-width: 620px; }
.finder-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; font-size: 14.5px; }
.context .hero-links { margin-top: 18px; }
.context .message { margin-top: 30px; }

/* Holy Father */
.pope { display: grid; grid-template-columns: 200px 1fr; gap: 24px 48px; padding: 40px 44px; }
.pope > div:first-child > .icon { width: 30px; height: 30px; margin-bottom: 14px; }
.pope h2 { font: 500 clamp(26px, 3.4vw, 34px)/1.12 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.pope .byline { margin-top: 14px; }
.pope .takeaway { margin-top: 14px; color: var(--ink-2); max-width: 560px; }
.pope .link { margin-top: 20px; font-size: 14.5px; }
.summary .steps { display: block; list-style: decimal; margin: 16px 0 0; padding-left: 20px; max-width: 560px; }
.summary .steps li { margin-top: 6px; }

/* The Library (/beyond and /search): weekdays and talks by topic, and every Sunday homily. Its classes keep the name it had as Beyond Sunday. */
/* The headline, with the lede beside its last line once there is room for both (as on the home page). */
.beyond-hero .lede { font-size: 16px; }
@media (min-width: 980px) {
  .beyond-hero { display: grid; grid-template-columns: minmax(0, 1fr) 304px; column-gap: 48px; align-items: end; }
  .beyond-hero .eyebrow { grid-column: 1 / -1; }
  .beyond-hero .page-title { font-size: clamp(52px, 5.2vw, 60px); line-height: 1; margin: 12px 0 0; max-width: none; }
  .beyond-hero .lede { font-size: 15px; line-height: 1.55; padding: 2px 0 4px 20px; border-left: 2px solid var(--accent); margin-bottom: 7px; max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .beyond-hero > *, .beyond-hero + .beyond { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .beyond-hero > .page-title { animation-delay: .05s; }
  .beyond-hero > .lede { animation-delay: .12s; }
  .beyond-hero + .beyond { animation-delay: .18s; }
}
.beyond { padding: 28px 44px 40px; margin-top: 32px; }
.beyond[hidden], .beyond [hidden] { display: none; }
.beyond .topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: transparent; color: var(--ink-2); font: 600 14px var(--sans); cursor: pointer; }
.topic span { font-weight: 400; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.topic:hover { border-color: #A9AEA6; }
.topic[aria-pressed='true'] { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.topic[aria-pressed='true'] span { color: var(--on-dark-muted); }
.topic.none { opacity: .45; }
/* The two views, as tabs under the search box; each shows how many the search found there. */
.beyond .views { display: flex; gap: 26px; margin-top: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.beyond .views::-webkit-scrollbar { display: none; }
.beyond .view { flex: none; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 7px; min-height: 44px; margin-bottom: -1px; padding: 10px 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 500 15px var(--sans); cursor: pointer; transition: color .12s, border-color .12s; }
.beyond .view span { font-size: 12.5px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.beyond .view:hover { color: var(--ink); }
.beyond .view[aria-selected='true'] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
@media (max-width: 430px) { .beyond .views { gap: 18px; } .beyond .view { font-size: 14px; } }
/* Sunday homilies inside the card: the day and the button, then the list as on /readings. */
.beyond .find-form { margin-top: 20px; }
.beyond .find-count { margin-top: 20px; }
.beyond .lection { border-top-width: 1px; border-top-color: var(--line); }
/* The search box sits above the topics: a search narrows the counts beside them too. */
.beyond-search { position: relative; display: flex; align-items: center; }
.beyond-search > .icon { position: absolute; left: 18px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.beyond-search input { width: 100%; min-width: 0; padding: 14px 48px 14px 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--ink); font: 400 16px var(--sans); appearance: none; -webkit-appearance: none; transition: background-color .12s, border-color .12s, box-shadow .12s; }
.beyond-search input::placeholder { color: var(--muted); opacity: 1; }
.beyond-search input::-webkit-search-cancel-button, .beyond-search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.beyond-search input:hover { border-color: #A9AEA6; }
.beyond-search input:focus { background: var(--card); border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
/* The key that jumps to the box, shown until the box is in use and only where there is a keyboard. */
.beyond-search kbd { position: absolute; right: 16px; display: none; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid #C9CDC4; border-radius: 6px; background: var(--card); color: var(--muted); font: 500 12px var(--sans); pointer-events: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 721px) { .beyond-search input:placeholder-shown:not(:focus) ~ kbd { display: grid; } }
.beyond-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.beyond-search .clear { position: absolute; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.beyond-search .clear:hover { background: var(--line); color: var(--ink); }
.beyond-search .clear .icon { width: 14px; height: 14px; }
.beyond .found { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 18px; font-variant-numeric: tabular-nums; }
.beyond .found .link { font-weight: 500; color: var(--ink-2); }
.beyond .found:not([hidden]) + .beyond-days > .day:first-child { margin-top: 14px; }
/* On this page the choices are quiet: topics are plain words and only the chosen one is a pill;
   length and kind are two small switches. Thirteen outlined pills in a row read as a wall. */
.beyond .topics { gap: 4px 2px; }
.beyond .topic { border: 0; padding: 6px 12px; font-weight: 500; gap: 6px; transition: background-color .12s, color .12s; }
.beyond .topic span { font-size: 12px; }
.beyond .topic:hover { background: var(--soft); color: var(--ink); }
.beyond .topic[aria-pressed='true'] { background: var(--dark); color: var(--on-dark); font-weight: 600; }
.beyond .narrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.beyond-body { margin-top: 18px; }
.rail-label { display: none; }
/* Wide screens: the topics are a list down the left that stays in sight; the talks run beside it. */
@media (min-width: 1100px) {
  .beyond { padding: 32px 44px 44px; }
  .beyond-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 36px; align-items: start; margin-top: 26px; }
  .beyond-rail { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; margin-left: -12px; scrollbar-width: thin; }
  .docked .beyond-rail { max-height: calc(100vh - 130px); }
  .rail-label { display: block; padding: 9px 12px 10px; }
  .beyond .beyond-rail .topics { flex-direction: column; flex-wrap: nowrap; gap: 1px; }
  .beyond .beyond-rail .topic { width: 100%; justify-content: space-between; padding: 7px 12px; border-radius: 10px; text-align: left; line-height: 1.3; }
  .beyond .beyond-rail .topic:focus-visible { outline-offset: -2px; }
  .beyond-main .narrow { margin-top: 0; }
}
.beyond .topics.sm { flex-wrap: nowrap; gap: 0; padding: 3px; border-radius: 999px; background: var(--soft); }
.beyond .topics.sm .topic, .beyond .by-chip { padding: 5px 12px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.beyond .topics.sm .topic { color: var(--muted); }
.beyond .topics.sm .topic:hover { background: transparent; color: var(--ink); }
.beyond .topics.sm .topic[aria-pressed='true'] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(22, 33, 29, .06); }
.beyond .by-chip, .beyond .by-chip:hover { background: var(--soft); color: var(--ink); gap: 6px; }
.beyond .by-chip .icon { width: 13px; height: 13px; }
.beyond .day { margin-top: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font: 600 11.5px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.beyond-list { list-style: none; }
.beyond-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 30px; gap: 0 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); transition: background-color .12s, box-shadow .12s; }
@media (hover: hover) { .beyond-list li:hover { background: #FAFAF7; box-shadow: -12px 0 0 #FAFAF7, 12px 0 0 #FAFAF7; } }
/* The one in the player: tinted with the colour of the day, and marked down its left edge. */
.beyond-list li.now { --now: color-mix(in srgb, var(--accent) 7%, var(--card)); background: var(--now); box-shadow: -12px 0 0 var(--now), 12px 0 0 var(--now), inset 0 0 0 0 transparent; position: relative; }
.beyond-list li.now::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--accent); }
.beyond-list h3 { font: 500 18px/1.25 var(--serif); letter-spacing: -.008em; text-wrap: pretty; }
.beyond-list h3 a { text-decoration: none; }
.beyond-list h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.beyond-list .gist { display: block; width: 100%; margin-top: 3px; padding: 0; border: 0; background: none; text-align: left; font: 400 13.5px/1.4 var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beyond-list .gist[aria-expanded='true'] { white-space: normal; }
.beyond-list .by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 5px; }
.beyond-list .who, .beyond-list .more-by { padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.beyond-list .who:hover, .beyond-list .more-by:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.beyond-list .more-by { font-weight: 600; color: var(--ink-2); }
.beyond-list .tag { padding: 1px 9px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink-2); font: 500 12px/1.6 var(--sans); white-space: nowrap; transition: background-color .12s, color .12s; }
.beyond-list .tag:hover { background: var(--band); color: var(--ink); }
/* Share, at the end of the row: quiet until the row or the button has the reader's attention. */
.row-share { position: relative; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8A938D; transition: background-color .12s, color .12s; }
.row-share .icon { width: 16px; height: 16px; }
.row-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.row-share:hover, .beyond-list li:hover .row-share { color: var(--ink); }
.row-share:hover { background: var(--band); }
/* The length, with the kind under it, at the end of the row. */
.beyond-list .facts { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 1px; min-width: 64px; font-size: 13px; color: var(--muted); }
.beyond-list .kind { font-size: 12px; }
.beyond-list .len { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.beyond-list .len .icon { display: inline-block; width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
.beyond-days.one-topic .tag { display: none; }
.beyond-list .heard h3 a, .beyond-list .heard .gist, .beyond-list .heard .len { color: var(--muted); }
.beyond-list .heard .len { font-weight: 500; }
.beyond .play { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #A9AEA6; background: transparent; color: var(--ink); cursor: pointer; padding: 0; transition: background-color .12s, border-color .12s, color .12s, transform .12s; }
/* How far the reader has listened, drawn round the button (--p runs from 0 to 1). */
.beyond .play::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); pointer-events: none; }
.beyond .play:active { transform: scale(.94); }
.beyond .play:hover, .beyond li:hover .play, .beyond .now .play { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.beyond .play .icon { width: 16px; height: 16px; }
.beyond-more { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-variant-numeric: tabular-nums; }
.beyond-empty { margin-top: 26px; color: var(--ink-2); }

/* The one player, fixed to the foot of the page while something is in it */
.dock { position: fixed; z-index: 20; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(var(--wrap), calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 16px; background: var(--dark); color: var(--on-dark); box-shadow: 0 10px 30px rgba(22, 33, 29, .28); }
.dock[hidden] { display: none; }
.dock-main, .dock-seek { display: contents; }
.dock .play { order: 1; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; background: var(--on-dark); color: var(--dark); }
.dock .play .icon { width: 18px; height: 18px; }
.dock-what { order: 2; flex: 1 1 0; min-width: 0; }
.dock-title { font: 500 16px/1.25 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-title a { text-decoration: none; }
.dock-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dock-what .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-seek > :nth-child(1) { order: 3; }
.dock-bar { order: 4; flex: 1.3 1 0; min-width: 0; }
.dock-bar .player { margin: 0; max-width: none; }
.dock-bar .player input[type=range] { min-width: 0; }
.dock-seek > :nth-child(3) { order: 5; }
.dock-seek > :nth-child(4) { order: 6; }
.dock-main > :nth-child(3) { order: 7; }
.dock-main > :nth-child(4) { order: 8; }
.dock-btn { flex: none; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 7px; border-radius: 999px; border: 0; background: transparent; color: var(--on-dark); font: 600 12.5px var(--sans); font-variant-numeric: tabular-nums; }
.dock-btn:hover { background: rgba(255, 255, 255, .1); }
.dock-btn[disabled] { opacity: .35; cursor: default; background: transparent; }
.dock-btn .icon { width: 18px; height: 18px; }
.docked #app { padding-bottom: 96px; }
@media (max-width: 1000px) {
  .beyond-list li { grid-template-columns: auto minmax(0, 1fr) 30px; align-items: start; }
  .beyond-list .facts { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-top: 6px; font-size: 12.5px; }
  .beyond-list .kind { font-size: inherit; }
  .beyond-list .row-share { grid-column: 3; grid-row: 1; margin-top: -3px; }
  .beyond-list .len { text-align: left; }
}
.beyond-list .who { text-align: left; }
@media (max-width: 720px) {
  .beyond { padding: 18px 18px 26px; }
  .beyond .topic { padding: 6px 10px; }
  /* The topics are one row that slides sideways, fading out where there are more. */
  .beyond-body { margin-top: 12px; }
  .beyond .beyond-rail .topics { flex-wrap: nowrap; gap: 2px; margin: 0 -18px; padding: 2px 34px 2px 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 40px), transparent); mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 40px), transparent); }
  .beyond .beyond-rail .topics::-webkit-scrollbar { display: none; }
  .beyond .beyond-rail .topic { flex: none; white-space: nowrap; }
  .beyond .beyond-rail .topic:focus-visible { outline-offset: -2px; }
  .beyond .narrow { margin-top: 12px; }
  .beyond .narrow { gap: 8px; }
  .beyond .topics.sm { width: 100%; overflow-x: auto; }
  .beyond .topics.sm .topic { flex: 1 0 auto; justify-content: center; padding: 6px; font-size: 12px; }
  .beyond .topics.sm .topic:focus-visible { outline-offset: -2px; }   /* the scrolling track would clip a ring drawn outside */
  .beyond-list h3 { font-size: 17px; }
  .beyond-list .gist { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .beyond-list .gist[aria-expanded='true'] { display: block; }
  .dock { flex-direction: column; align-items: stretch; gap: 6px; width: calc(100vw - 16px); padding: 10px 12px; }
  .dock-main, .dock-seek { display: flex; align-items: center; gap: 8px; }
  .docked #app { padding-bottom: 130px; }
}

/* Weekly question */
.question { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 50px 56px 54px; }
.question h2 { font: 400 clamp(28px, 4.4vw, 44px)/1.12 var(--serif); letter-spacing: -.015em; max-width: 720px; margin: 18px 0 22px; text-wrap: balance; }
.question form { margin-top: 26px; max-width: 560px; }
.question label { font-weight: 600; font-size: 13.5px; display: block; margin-bottom: 8px; }
.field { width: 100%; background: #fff; color: var(--ink); border: 1px solid #A9AEA6; border-radius: 12px; padding: 11px 14px; font-size: 15px; }
.question .field { border-color: transparent; }
textarea.field { min-height: 78px; resize: vertical; display: block; }
.question .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.question .row .field { width: 170px; }
.question .small { color: rgba(255, 255, 255, .92); }
.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 26px; }
.answer { background: #fff; color: var(--ink); border-radius: 12px; padding: 16px 18px; }
.answer p { font: 400 16px/1.4 var(--serif); }
.answer cite { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 6px; }

/* How we choose: three steps, the four questions with their weights, the rules, and where to go next. */
.how-lede { max-width: 620px; }
.how-section { margin-top: 68px; }
.how-section > .lede { font-size: 16px; margin-top: 12px; max-width: 600px; }
.how-section h3 { font-weight: 600; font-size: 16px; line-height: 1.3; text-wrap: balance; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin-top: 28px; }
.how-steps li { border-top: 2px solid var(--ink); padding-top: 16px; }
.how-steps .n { display: block; font: 400 34px/1 var(--serif); color: var(--accent); margin-bottom: 12px; }
.how-steps p, .how-rules p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.how-weights { display: flex; gap: 4px; margin-top: 30px; }
.how-weights > div { flex-basis: 0; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 6px; font-size: 12.5px; color: var(--muted); }
.how-weights i { grid-column: 1 / -1; height: 10px; border-radius: 3px; background: var(--accent); }
.how-weights > div:nth-child(2) i { opacity: .78; }
.how-weights > div:nth-child(3) i { opacity: .58; }
.how-weights > div:nth-child(n+4) i { opacity: .4; }
.how-weights span { font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.how-weights b { font-weight: 400; font-variant-numeric: tabular-nums; }
.how-questions { margin-top: 26px; border-bottom: 1px solid var(--line); }
.how-questions li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.how-questions h3 { font: 500 clamp(22px, 2.6vw, 27px)/1.15 var(--serif); letter-spacing: -.012em; margin-top: 8px; }
.how-questions li div p { margin-top: 8px; color: var(--ink-2); font-size: 15px; max-width: 600px; }
.how-questions .points { text-align: right; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.how-questions .points b { display: block; font: 400 46px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums; }
.how-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 28px; }
.how-rules li { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.how-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 44px; align-items: center; margin: 68px 0 90px; padding: 30px 32px; }
.how-next h2 { font: 500 26px/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.how-next h2 + p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; max-width: 440px; }
.how-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: 14px; }
@media (max-width: 900px) {
  .how-next { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .how-section { margin-top: 48px; }
  .how-steps { grid-template-columns: 1fr; gap: 22px; }
  .how-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; }
  .how-steps .n { grid-row: 1 / span 2; font-size: 30px; margin: 0; }
  .how-steps p { grid-column: 2; }
  .how-weights span { display: none; }
  .how-weights > div { grid-template-columns: 1fr; }
  .how-questions li { gap: 8px 18px; padding: 22px 0; align-items: start; }
  .how-questions .points b { font-size: 34px; }
  .how-rules { grid-template-columns: 1fr; }
  .how-next { margin: 48px 0 56px; padding: 24px 20px; }
  .how-links .btn { width: 100%; }
}
/* Parishes */
.parishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; margin-top: 24px; }
.parish { padding: 18px 20px; border-radius: 14px; }
.parish b { display: block; font-size: 14.5px; }
.parish span { font-size: 13.5px; color: var(--muted); }
/* ---------- Social ---------- */
/* The directory of young adult groups: two fields to narrow it, then a grid of cards under each state. */
.social-find { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; max-width: 640px; margin-top: 26px; }
.social-find label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.social-find select.field { appearance: auto; }
.social-find + .small { margin-top: 12px; }
.social-state { margin-top: 30px; }
.groups { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.group { padding: 16px 18px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; }
.group[hidden], .social-state[hidden] { display: none; }
.group h3 { font: 500 19px/1.2 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.group .where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: auto; padding-top: 8px; font-size: 14px; }
.group .where .link { overflow-wrap: anywhere; }
.social-suggest { margin-top: 44px; padding: 24px 26px; max-width: 640px; }
.social-suggest h2 { font: 500 22px/1.15 var(--serif); letter-spacing: -.01em; }
.social-suggest p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.social-suggest .link { margin-top: 14px; }
@media (max-width: 560px) { .social-find { grid-template-columns: 1fr; } }
/* A tick box under a form's main field. */
label.check, .subscribe label.check { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0; font-size: 13.5px; font-weight: 400; color: var(--ink-2); cursor: pointer; }
label.check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
/* The tile at the foot of the parishes page: suggest a priest or parish. */
.suggest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px 44px; margin-top: 44px; padding: 28px; }
.suggest h2 { font: 500 26px/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.suggest h2 + p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }
.suggest form { display: grid; gap: 14px; }
.suggest .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.suggest label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.suggest label span { font-weight: 400; }
@media (max-width: 960px) { .suggest { grid-template-columns: 1fr; } }
.suggest .pair { align-items: end; }
.suggest .send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.suggest .btn { border-radius: 12px; }
.suggest .form-note { margin: 0; min-height: 0; color: var(--ink-2); }
.suggest .form-note.error { color: #A0281E; }
@media (max-width: 760px) {
  .suggest { grid-template-columns: 1fr; padding: 22px 18px; margin-top: 32px; }
  .suggest .pair { grid-template-columns: 1fr; }
  .suggest .btn { width: 100%; }
}
.parish .actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; align-items: center; font-size: 13.5px; }

/* Subscribe and footer */
.subscribe { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: center; margin-top: 64px; padding: 40px 0 70px; border-top: 1px solid #C9CDC4; }
.subscribe h2 { font: 500 28px/1.15 var(--serif); letter-spacing: -.01em; }
.subscribe p { margin-top: 8px; color: var(--ink-2); }
.podcast-ways { margin-top: 12px; font-size: 14px; }
.podcast-ways .small { margin-top: 8px; }
.subscribe label { font-weight: 600; font-size: 12.5px; display: block; margin-bottom: 8px; }
.subscribe .row { display: flex; gap: 10px; }
.subscribe .btn { border-radius: 12px; }
/* The short signup prompt under the picks on the home page. */
.subscribe.compact { margin-top: 36px; padding: 24px 0; border-bottom: 1px solid #C9CDC4; }
.subscribe.compact h2 { font-size: 22px; }
.subscribe.compact .form-note { margin-top: 8px; }
.form-note { font-size: 13px; margin-top: 8px; min-height: 1.2em; }
/* The one ad space, below the page's content. The height is held so the page does not jump when it fills. */
.ad { margin: 48px 0 56px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.ad .eyebrow { margin-bottom: 10px; }
.ad .adsbygoogle { min-height: 100px; }
.ad:has(.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

.site-footer { background: var(--band); font-size: 12.5px; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 260px; gap: 16px 60px; padding-top: 28px; padding-bottom: 28px; }
.legal-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.legal-links a { color: inherit; text-underline-offset: 3px; }
.legal-links a:hover { color: var(--ink); }
.agree { margin-top: 8px; }
.agree a, .form-note a { color: inherit; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact { max-width: 680px; padding-bottom: 90px; }
.contact .lede { max-width: none; }
.contact .lede + .small { margin-top: 12px; }
.contact .small a { color: inherit; text-underline-offset: 3px; }
.contact-form { display: grid; gap: 16px; margin-top: 28px; padding: 28px; }
.contact-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.contact-form label span { font-weight: 400; }
.contact-form select.field { appearance: auto; }
.contact-form textarea.field { min-height: 160px; }
.contact-form .trap, .feedback-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.contact-form .btn { border-radius: 12px; }
.contact-form .form-note { margin: 0; min-height: 0; color: var(--ink-2); }
.contact-form .form-note.error { color: #A0281E; }
.contact-form.done h2 { font: 500 26px/1.15 var(--serif); letter-spacing: -.01em; }
.contact-form.done p { color: var(--ink-2); }
@media (max-width: 760px) {
  .contact-form { padding: 22px 18px; }
  .contact-form .pair { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }
}

/* ---------- Privacy policy and disclaimer ---------- */
.legal { max-width: 680px; padding-bottom: 90px; }
.legal .lede { max-width: none; }
.legal .lede + .small { margin-top: 12px; }
.legal section { margin-top: 38px; }
.legal h2 { font: 500 24px/1.2 var(--serif); letter-spacing: -.01em; }
.legal p, .legal ul { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--accent); }

/* ---------- Tables (compare) ---------- */
.table-card { margin-top: 34px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; vertical-align: top; padding: 16px 20px; border-top: 1px solid #E6E8E1; }
thead th { border-top: 0; }
table:not(:has(thead)) tr:first-child > * { border-top: 0; }
.compare th[scope=row] { width: 210px; font-weight: 600; }
.compare th[scope=row] small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.compare td, .compare thead th { border-left: 1px solid #E6E8E1; min-width: 190px; }
.compare thead th { vertical-align: bottom; padding-top: 22px; }
.compare thead th b { display: block; font: 400 38px/1 var(--serif); color: var(--accent); margin-bottom: 8px; }
.compare thead th span { font: 500 20px/1.2 var(--serif); letter-spacing: -.01em; }
.compare thead th:first-child { border-left: 0; color: var(--muted); min-width: 0; }
.compare th[scope=row], .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: 1px 0 0 #E6E8E1; }
.compare tr.crit > th[scope=row] { background: #FAFAF7; }
.compare thead th span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.compare .votes { flex-wrap: nowrap; }
.scroll-hint { display: flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--muted); }
.scroll-hint + .table-card { margin-top: 8px !important; }
.compare tr.crit > * { background: #FAFAF7; }
.compare .score { font: 400 18px var(--serif); }
.compare .score small { font-size: 12.5px; color: var(--muted); font-style: italic; }
.meter { height: 4px; border-radius: 4px; background: #E3E5DE; margin: 10px 0 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.compare .evidence { font: italic 400 13.5px/1.4 var(--serif); color: var(--ink-2); }
.compare tr.total > * { border-top: 2px solid var(--ink); }
.compare tr.total td { font: 400 24px var(--serif); }
.compare tr.total th { font-weight: 400; }
.compare tr.total th b { font-weight: 600; }
.compare .big { font: 400 21px var(--serif); }
.compare .hear { display: flex; gap: 18px; }
.foot-note { margin-top: 30px; color: var(--ink-2); max-width: 580px; font-size: 13.5px; }

/* ---------- Archive ---------- */
.archive { margin-top: 30px; border-top: 2px solid var(--ink); }
.archive a { display: grid; grid-template-columns: 190px 1fr auto; gap: 8px 28px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.archive a:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.archive h2, .archive h3 { font: 500 24px/1.2 var(--serif); letter-spacing: -.01em; }
.archive .pill.draft { margin-left: 10px; vertical-align: middle; font-family: var(--sans); }
.archive a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.archive .when { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.archive .when i { width: 8px; height: 8px; border-radius: 50%; }
.archive .top-of { font-size: 13.5px; color: var(--ink-2); grid-column: 2; }

/* ---------- By the readings (/readings) ---------- */
.lection-find { display: block; margin-top: 26px; max-width: 440px; }
.lection-find span { display: block; margin-bottom: 8px; color: var(--muted); }
/* Sunday homilies in the Library (/search): an optional day and the button, in one row that wraps. */
.find-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; margin-top: 26px; max-width: 720px; }
.find-form label { display: block; flex: 1 1 260px; }
.find-form label.day { flex: 0 1 190px; }
.find-form label span { display: block; margin-bottom: 8px; color: var(--muted); }
.find-count { margin-top: 26px; color: var(--muted); font-size: 13.5px; }
.find-count + .lection { margin-top: 12px; }
.find-more { margin-top: 26px; }
.lection-next { display: block; margin-top: 26px; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; text-decoration: none; max-width: 580px; }
.lection-next:hover b { text-decoration: underline; text-underline-offset: 4px; }
.lection-next b { display: block; font: 500 22px/1.2 var(--serif); margin: 6px 0 4px; }
.lection-head .eyebrow { display: flex; align-items: center; gap: 8px; margin-top: 26px; }
.lection-head .eyebrow i { width: 8px; height: 8px; border-radius: 50%; }
.lection { margin-top: 30px; border-top: 2px solid var(--ink); }
.lection article { padding: 26px 4px; border-bottom: 1px solid var(--line); max-width: 720px; }
.lection h2 { font: 500 26px/1.18 var(--serif); letter-spacing: -.01em; }
.lection .by { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.lection .take { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.lection blockquote { font: italic 400 18px/1.4 var(--serif); border-left: 2px solid var(--line); padding: 2px 0 2px 16px; margin-top: 14px; }
.lection .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; font-size: 14px; }
.lection .player { max-width: 520px; }

/* ---------- Two-minute edition ---------- */
.brief { max-width: 560px; margin: 0 auto; padding: 22px 24px 40px; min-height: calc(100vh - 5px); display: flex; flex-direction: column; }
.brief-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brief-head .count { color: var(--muted); font-size: 14px; }
.brief-head .right { display: flex; align-items: center; gap: 12px; flex: none; }
.brief .brief-head .btn { width: auto; padding: 6px 13px; font-size: 13px; }
.steps { display: flex; gap: 8px; margin-top: 12px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: #CFD3CA; }
.steps i.on { background: var(--ink); }
.brief .label { color: var(--muted); margin-top: 30px; }
.brief h1 { font: 500 clamp(28px, 7vw, 36px)/1.15 var(--serif); letter-spacing: -.015em; margin-top: 12px; text-wrap: pretty; }
.brief .by { color: var(--muted); margin-top: 16px; }
.brief blockquote { border-left: 2px solid #9AA198; padding: 4px 0 4px 20px; margin-top: 30px; }
.brief blockquote p { font: italic 400 20px/1.4 var(--serif); margin-top: 8px; color: var(--ink-2); }
.brief .take { background: var(--accent); color: #fff; border-radius: 16px; padding: 22px 24px 24px; margin-top: 30px; }
.brief .take p { font: 400 23px/1.25 var(--serif); margin-top: 8px; }
.brief .grow { flex: 1; min-height: 36px; }
.brief .btn { width: 100%; padding: 15px 18px; font-size: 16px; }
.brief .btn + .btn { margin-top: 10px; }
.brief .back { margin-top: 18px; text-align: center; }

/* ---------- Dialog, states ---------- */
dialog { border: 0; border-radius: 18px; padding: 28px; width: min(420px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(22, 33, 29, .3); }
dialog::backdrop { background: rgba(22, 33, 29, .45); }
dialog h2 { font: 500 24px/1.2 var(--serif); }
dialog p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
dialog form { margin-top: 18px; }
dialog .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
dialog.feedback textarea.field { width: 100%; min-height: 120px; resize: vertical; }
dialog.feedback .form-note { margin: 8px 0 0; min-height: 0; text-align: right; }
dialog.feedback .form-note.error { color: #A0281E; }
dialog.feedback .form-note:empty { display: none; }
.state { padding: 80px 0 120px; max-width: 520px; }
.state h1 { font: 500 38px/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: 14px; }
.state p { color: var(--ink-2); }
.state-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.state code { font-size: 13.5px; background: var(--band); padding: 2px 6px; border-radius: 6px; }

/* ---------- Your account ---------- */
.account { margin-bottom: 90px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 30px; }
.account-card { padding: 24px 24px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.account-card h2 { font: 500 22px/1.2 var(--serif); letter-spacing: -.01em; }
.account-card p { color: var(--ink-2); font-size: 14.5px; }
.account-card form, .account-card .row { width: 100%; }
.account-card .row { display: flex; flex-wrap: wrap; gap: 10px; }
.account-card .row .field { flex: 1 1 200px; }
.account-card label:not(.sr) { font-weight: 600; font-size: 12.5px; }
.account-card .form-note:empty { display: none; }
.account-list { list-style: none; padding: 0; margin: 0; width: 100%; }
.account-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.account-list li:first-child { border-top: 0; padding-top: 0; }
.account-card.wide { grid-column: 1 / -1; }
.reflection-list li { gap: 6px; padding: 16px 0; }
.reflection-list .asked { color: var(--muted); font-size: 13px; }
.reflection-list .said { font: 400 17px/1.45 var(--serif); color: var(--ink); white-space: pre-wrap; max-width: 680px; }
.reflection-list .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; }
.reflection-list .quiet { opacity: .7; }

/* ---------- Phone ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  body.has-tabs { padding-bottom: 90px; }
  .nav { display: none; }
  .site-header { padding: 14px 0 20px; }
  .lede { font-size: 16.5px; }
  .year { margin-top: 32px; }
  .year-legend { display: none; }
  .message, .pope, .subscribe, .site-footer .wrap, .top.result { grid-template-columns: 1fr; }
  .top.result { padding: 28px 22px; }
  .message { gap: 16px; margin-top: 32px; padding: 26px 0 30px; }
  section, .section { margin-top: 40px; }
  .top { grid-template-columns: 1fr; padding: 28px 22px 26px; }
  .top .rank { display: flex; align-items: center; justify-content: space-between; text-align: left; margin-bottom: 14px; }
  .top .rank b { display: none; }
  .top .takeaway { font-size: 16.5px; margin-top: 20px; }
  .top .actions .btn { flex: 1; }
  .votes .note { margin-left: 0; flex-basis: 100%; }
  .pope, .question { padding: 28px 22px 30px; }
  .tune { padding: 20px 18px; }
  .question .row .field { flex: 1; width: auto; }
  .subscribe { margin-top: 44px; padding: 32px 0 44px; }
  .archive a { grid-template-columns: 1fr; gap: 4px; padding: 18px 2px; }
  .archive .top-of { grid-column: 1; }
  th, td { padding: 13px 14px; }
  .compare th[scope=row], .compare thead th:first-child { width: 108px; min-width: 108px; padding-left: 14px; padding-right: 10px; }
  .compare td, .compare thead th:not(:first-child) { min-width: 172px; }
  /* Five tabs: a two-word label ("Stay involved") goes onto two lines so it never runs into its neighbours. */
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; background: rgba(250, 250, 247, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; text-align: center; line-height: 1.15; font-size: 11px; color: var(--muted); padding: 4px 0; }
  .tabbar a[aria-current] { color: var(--ink); font-weight: 600; }
  .tabbar .icon { width: 22px; height: 22px; }
}
/* The ranking table: below 1000px each homily becomes a block (title, a strip of standings,
   then its controls), since five columns of standings and the controls do not fit. */
@media (max-width: 1000px) {
  /* On phones each homily becomes a block: title, a strip of scores, then its controls. */
  .glance-table, .glance-table tbody { display: block; }
  .glance-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .glance-table tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; padding: 18px 16px; border-top: 1px solid #E6E8E1; }
  .glance-table tbody tr:first-child { border-top: 0; }
  .glance-table th, .glance-table td, .glance-table th:first-child, .glance-table td:last-child { padding: 0; border: 0; background: none; }
  .glance-table tr.best { background: #FBF8EF; box-shadow: inset 3px 0 0 var(--accent); }
  .glance-table tr.best > th:first-child { box-shadow: none; }
  .glance-table tr.under.best { box-shadow: inset 3px 0 0 var(--accent); }
  .glance-table tr.under > td, .glance-table tr.under.best > td { padding: 0; }
  .glance-table tr.group { display: block; padding: 0; }
  .glance-table tr.under { display: block; border-top: 0; padding: 0 16px 16px; }
  .glance-table tr.under > td { display: block; padding: 0; }
  .glance-table tr.under > td.rest { display: none; }
  .glance-table tr.group th, .glance-table tr.group th:first-child { display: block; padding: 9px 16px; background: #EEF0E9; }
  .glance-table tbody th, .glance-table .acts { grid-column: 1 / -1; min-width: 0; }
  .glance-table .num { width: auto; }
  .glance-table .band { white-space: normal; line-height: 1.25; }   /* five columns have to fit a phone, so "Above the middle" may wrap */
  .glance-table .num::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .glance-table .num.on::before { color: var(--accent); }
  .glance-table .total { border-left: 0; padding-left: 0; font-size: 19px; }
  .glance-table .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
  .glance-table .acts .hear { margin-bottom: 0; }
  .glance-table .acts .player { flex-basis: 100%; order: 3; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The owner's "all homilies" page: a map of where the homilies came from. */
.us-map { margin: 22px 0 6px; padding: 18px 18px 14px; }
.us-map svg { display: block; width: 100%; height: auto; }
.us-map .land { fill: #ECEEE7; stroke: var(--line); stroke-width: 1; stroke-linejoin: round; }
.us-map .borders { fill: none; stroke: #FFFFFF; stroke-width: 1; stroke-linejoin: round; }
.us-map .dot { fill: var(--accent); stroke: #FFFFFF; stroke-width: 1.5; cursor: pointer; transition: r .12s ease; }
.us-map .dot:hover, .us-map .dot:focus { fill-opacity: 1; stroke: var(--ink); outline: none; }
.us-map figcaption { margin-top: 10px; display: grid; gap: 2px; }
.us-map .map-note { color: var(--ink-2); min-height: 1.5em; }
.glance-table tr.flash > * { background: #FBF8EF; transition: background .3s ease; }
.glance-table .numbers { margin-top: 6px; line-height: 1.4; }
.glance-table .cell-note { font-size: 11.5px; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.glance-table .num.on .cell-note { color: var(--ink-2); font-weight: 600; }

/* Public pages show a band and pips in place of a mark. */
.band { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* The lower the band, the quieter it is written, so the eye lands on "Among the best" first */
.band.l2 { color: var(--ink-2); }
.band.l1 { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.band.none { color: var(--muted); font-weight: 400; font-size: 18px; line-height: 1; }
.pips { display: flex; gap: 4px; margin-top: 7px; }
.pips i { width: 16px; height: 4px; border-radius: 4px; background: #E3E5DE; }
.pips i.on { background: var(--accent); }
.compare .pips { margin: 8px 0; }
.glance-table.relative .total .band { font-size: 15px; }
.glance-table.relative .total .band.l1 { font-size: 13.5px; }

/* Notes on a homily, the owner's reading queue, and the AI summary draft */
.notes { margin-top: 22px; text-align: left; }
.thread { border-top: 1px solid rgba(128, 128, 128, .35); padding-top: 12px; margin-top: 12px; }
.replies { margin-left: 18px; }
.replies .comment { border-left: 2px solid rgba(128, 128, 128, .45); padding-left: 12px; margin-top: 10px; }
.comment .said { font: 400 16px/1.4 var(--serif); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; font-size: 12.5px; }
.comment-meta cite { font-style: normal; font-weight: 600; }
.comment-meta .link { font-size: 12.5px; }
.comment-meta .link[aria-pressed="true"] { font-weight: 700; }
.comment-meta .quiet { opacity: .6; }
/* A private reflection after listening. No card of its own, so it sits on the dark top card and in the table alike */
.reflect { border-top: 1px solid rgba(128, 128, 128, .35); padding-top: 18px; max-width: 620px; text-align: left; scroll-margin: 24px; }
.top.result .reflect { grid-column: 1 / -1; }
.glance-table .reflect { margin: 4px 0 18px; }
.reflect .reflect-q { display: block; font: 400 21px/1.3 var(--serif); margin: 8px 0 12px; text-wrap: balance; }
.reflect textarea.field { display: block; min-height: 96px; }
.reflect .small { margin-top: 8px; }
.reflect-acts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13.5px; }
.reflect-acts .quiet { opacity: .7; }
.reflect-share { margin-top: 14px; }
.reflect-share .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.reflect-share .row .field { width: 170px; }
.reflect-share .row .link { font-size: 13.5px; }
/* A row beneath a homily with nothing showing in it takes no room */
.glance-table tr.under:not(:has(> td:first-child > :not([hidden]))) { display: none; }
.note-form { margin-top: 10px; max-width: 420px; }
.note-form .field { width: 100%; }
.note-form textarea.field { min-height: 76px; }
.note-form .row { display: flex; gap: 10px; margin: 8px 0; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.emoji-row button { font-size: 18px; line-height: 1; padding: 6px 7px; min-width: 34px; background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.emoji-row button:hover, .emoji-row button:focus-visible { border-color: rgba(128, 128, 128, .45); }
.queue { padding: 22px 24px; margin: 22px 0; }
.queue-item { border-top: 1px solid #E4E6DF; padding: 14px 0; margin-top: 14px; }
.queue-item .said { font: 400 18px/1.4 var(--serif); margin: 6px 0 10px; }
.queue-item .row { display: flex; align-items: center; gap: 10px; }
/* A suggested parish in the owner's queue: the details to confirm, then what the feed check found. */
.pull-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.pull [role="status"] ul { margin: 4px 0 10px 18px; }
.pull .row { flex-wrap: wrap; }
/* AI summary: a title block, then three numbered parts (Scripture, Tradition, three things to do) */
.fr-ai { max-width: 680px; margin: 0 auto; }
.fr-ai .back { font-size: 14px; margin-bottom: 26px; text-decoration: none; }
.fr-ai .note { max-width: 560px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.fr-ai .lang-switch { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.fr-ai .lang-switch button { font: 500 13px/1 var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.fr-ai .lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg, #fff); }
.fr-ai .lang-switch button:disabled { opacity: .45; cursor: not-allowed; }
.fr-ai .lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fr-ai .page-title { margin: 14px 0 16px; max-width: none; }
.fr-ai .standfirst { font: italic 400 clamp(20px, 2.6vw, 23px)/1.4 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.fr-ai .byline { margin-top: 14px; }
.fr-ai .listen { margin: 4px 0 22px; }
.fr-ai .listen .row, .fr-ai .listen .more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fr-ai .listen .player { max-width: none; }
.fr-ai .warn { padding: 16px 20px; margin-top: 22px; display: grid; gap: 6px; }
.fr-ai nav.outline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.fr-ai nav.outline a { display: grid; gap: 2px; align-content: start; text-decoration: none; border-top: 2px solid var(--ink); padding-top: 10px; }
.fr-ai nav.outline a:hover { border-color: var(--accent); }
.fr-ai nav.outline b { font: 400 26px/1 var(--serif); color: var(--accent); }
.fr-ai nav.outline span:not(.small) { font-weight: 600; font-size: 15px; margin-top: 4px; }
.fr-ai .part { margin-top: 52px; scroll-margin-top: 24px; }
.fr-ai .part h2 { font: 500 clamp(27px, 3.6vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; margin: 6px 0 4px; }
.fr-ai .part p { font: 400 19px/1.6 var(--serif); margin-top: 16px; text-wrap: pretty; }
.fr-ai .part blockquote { border-left: 2px solid var(--accent); padding: 2px 0 2px 20px; margin: 26px 0 6px; }
.fr-ai .part blockquote p { font: italic 400 22px/1.4 var(--serif); margin-top: 0; }
.fr-ai .part blockquote cite { display: block; font: 600 12.5px/1.4 var(--sans); color: var(--muted); margin-top: 10px; }
.fr-ai .part p.eyebrow { font: 600 11.5px/1.5 var(--sans); margin-top: 0; }
.fr-ai .part p.from { font: 400 12.5px/1.4 var(--sans); color: var(--muted); margin-top: 14px; }
.fr-ai .todo li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 10px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.fr-ai .todo .n { font: 400 50px/.85 var(--serif); color: var(--accent); }
.fr-ai .todo h3 { font: 500 23px/1.2 var(--serif); letter-spacing: -.01em; }
.fr-ai .todo h3 + p { margin-top: 8px; }
.fr-ai .pray { margin-top: 52px; padding: 24px 26px; }
.fr-ai .pray p:last-child { font: 400 22px/1.4 var(--serif); margin-top: 8px; text-wrap: pretty; }
.fr-ai .speaking { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 2px; scroll-margin: 80px 0; }
.fr-ai .behind { margin-top: 20px; padding: 22px 24px; }
.fr-ai .behind li { margin-top: 12px; list-style: none; }
@media (max-width: 560px) {
  .fr-ai nav.outline .small { display: none; }
  .fr-ai .part p { font-size: 18px; }
  .fr-ai .todo li { grid-template-columns: 34px minmax(0, 1fr); }
  .fr-ai .todo .n { font-size: 38px; }
}

/* Parishes page: each card opens to an overview of that ambo */
.parishes { align-items: start; }
details.parish > summary { cursor: pointer; list-style: none; position: relative; padding-right: 22px; }
details.parish > summary::-webkit-details-marker { display: none; }
details.parish > summary { display: flex; align-items: center; gap: 14px; }
.parish .who { flex: 1; min-width: 0; color: inherit; font-size: inherit; }
/* A face in a circle (core.js face()): initials until the photo loads. Used on the parish cards, the ranking and the top homily. */
.face { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--band); color: var(--ink-2); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.byline .face { width: 44px; height: 44px; margin-right: 2px; background: #2A3631; color: var(--on-dark); box-shadow: 0 0 0 2px var(--dark), 0 0 0 3px #5C6863; }
details.parish > summary::after { top: 50%; transform: translateY(-50%); }
details.parish > summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-size: 20px; color: var(--muted); }
details.parish[open] > summary::after { content: '\2212'; }
details.parish .overview { border-top: 1px solid #E4E6DF; margin-top: 12px; padding-top: 12px; font-size: 13.5px; display: grid; gap: 6px; }
details.parish .overview span { color: inherit; }
details.parish .latest { display: grid; gap: 4px; margin-top: 6px; }
details.parish .latest-title { font: 500 16px/1.3 var(--serif); }
details.parish.flash { box-shadow: 0 0 0 2px var(--accent); transition: box-shadow .3s ease; }

/* Parishes page: the parishes state by state, under a bar that searches, narrows and reorders them */
.parish-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.parish-tools input.field { flex: 1 1 260px; width: auto; min-width: 0; border-radius: 999px; padding-left: 18px; }
.parish-tools select.field { flex: 0 1 230px; width: auto; min-width: 0; appearance: none; -webkit-appearance: none; cursor: pointer; border-radius: 999px; padding: 11px 38px 11px 18px; text-overflow: ellipsis; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233A4540' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center; }
.parish-tools .order { display: flex; gap: 6px; }
.parish-tools .order[hidden] { display: none; }
.tools-status { margin-top: 12px; min-height: 1.5em; font-variant-numeric: tabular-nums; }
.states { margin-top: 14px; border-bottom: 1px solid var(--line); }
.state-group { margin-top: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px 24px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.state-group[hidden], .parishes > [hidden] { display: none; }
.state-group h3 { font: 500 21px/1.2 var(--serif); letter-spacing: -.01em; padding-top: 4px; }
.state-group .count { font: 400 12.5px var(--sans); letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 4px; white-space: nowrap; }
.state-group .parishes { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.no-match { margin-top: 14px; padding: 22px 24px; display: grid; gap: 6px; }
.no-match[hidden] { display: none; }
.no-match button.link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.voices { margin-top: 44px; }
@media (max-width: 720px) {
  .state-group { grid-template-columns: minmax(0, 1fr); margin-top: 0; padding: 16px 0; }
  .state-group h3 { padding-top: 0; }
  .parish-tools select.field { flex: 1 1 180px; }
}

/* ---------- Touch screens ----------
   For fingers rather than a mouse. Nothing here changes a page on a desktop. */
@media (pointer: coarse) {
  /* iOS zooms the whole page when a field with text smaller than 16px is focused. */
  input, select, textarea, .field { font-size: 16px; }
  .sunday-picker { min-height: 44px; padding: 8px 34px 8px 14px; }
  /* Controls a thumb has to hit are at least 44px tall. Pills and text links keep their size:
     the area that answers a tap grows around them instead (:where() so a control that is
     already positioned stays where it is). */
  .btn, .switch { min-height: 44px; }
  .btn.sm { min-height: 0; }
  .beyond .play, .vote.down, .glance-table .acts .votes .vote.down { width: 40px; height: 40px; }
  :where(.link:not(summary), .logo, .legal-links a, .btn.sm, .topic, .sort-by, .vote, .emoji-row button, .beyond .play, .beyond-list .who, .beyond-list .more-by, .beyond-list .tag, .row-share, .timenav a) { position: relative; }
  :is(.link:not(summary), .logo, .legal-links a, .btn.sm, .topic, .sort-by, .vote, .emoji-row button, .beyond .play, .beyond-list .who, .beyond-list .more-by, .beyond-list .tag, .row-share, .timenav a)::after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; min-height: 100%; transform: translateY(-50%); }
  summary.link { padding: 11px 0; }
  .tune-more > summary { min-height: 44px; padding: 7px 16px; }
  .beyond-list .gist { padding: 5px 0; }
  .legal-links { gap: 16px 24px; }
  .chips { gap: 12px 8px; }
  /* No grey flash on tap, and no delay while the browser waits for a double tap. */
  a, button, summary, select, input, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
}

/* Phones with a notch held sideways: keep the page clear of it (the viewport covers the whole screen). */
@supports (padding: max(0px)) {
  .wrap { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  @media (max-width: 760px) {
    .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    body.has-tabs { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  }
}
/* A phone's address bar slides away: fill the screen that is really there. */
@supports (min-height: 100dvh) { .brief { min-height: calc(100dvh - 5px); } }
/* Long words and web addresses in a reader's comment or a feed's title never push a page sideways. */
h1, h2, h3, p, li, blockquote, td, th { overflow-wrap: break-word; }

/* ---------- Printing ---------- */
@media print {
  body { background: #fff; border-top: 0; padding-bottom: 0 !important; }
  .site-header .nav, .tabbar, .dock, .player, .ad, .subscribe, .votes, form, .btn, dialog { display: none !important; }
  .on-dark, .top { background: none !important; color: #000 !important; }
  a { text-decoration: none; }
}

/* ---------- Share ----------
   A Share button is a link with the share mark (shareButton() in core.js). */
.share { white-space: nowrap; }
.share .icon { width: 1.05em; height: 1.05em; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.page-share { margin-top: 16px; font-size: 14px; }
.hero-meta .share { font-size: 13px; margin-left: 2px; }
.message .share-row { margin-top: 14px; font-size: 13.5px; }
.question .share-row { margin: -6px 0 22px; font-size: 14px; }
.question .share:hover { color: #fff; opacity: .82; }
.legal-links .share { font-weight: 400; }
.legal-links .share:hover { color: var(--ink); }
.beyond .found .share { font-size: 12.5px; margin-left: auto; color: var(--ink-2); }
.beyond-list li.linked, .beyond-list li.linked:hover { background: #FBF8EF; box-shadow: -12px 0 0 #FBF8EF, 12px 0 0 #FBF8EF; }
.brief-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px; margin-top: 18px; font-size: 14px; }
.brief-foot .back { margin-top: 0; }
@media print { .share, .page-share { display: none !important; } }
