/* The sermon page. One formula for every sermon:
   stage (title, film, share) / reading (notes + a sidebar that is always there) / question / earlier and next / more. */

/* ---------- the player ---------- */
.oc-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-panel); background: var(--char-900); box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.oc-player > img, .oc-player iframe, .oc-player > .oc-tile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.oc-player > img { transition: transform 1400ms var(--ease); }
.oc-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(10, 12, 15, 0) 50%, rgba(10, 12, 15, .35)); color: var(--white); cursor: pointer; border: 0; padding: 0; }
.oc-play-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.oc-play .playbig { position: static; width: clamp(76px, 7vw, 116px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #B89356; color: var(--ink); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 0 0 10px rgba(184, 147, 86, .28), 0 20px 40px -10px rgba(0, 0, 0, .5); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
.oc-play .playbig svg { width: 34%; height: 34%; margin-left: 6%; }
.oc-player:hover > img { transform: scale(1.025); }
.oc-player:hover .playbig, .oc-play:focus-visible .playbig { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(184, 147, 86, .2), 0 20px 40px -10px rgba(0, 0, 0, .5); }
.oc-play:focus-visible { outline: none; }
.oc-player.is-playing .oc-play, .oc-player.is-playing > img { display: none; }

/* ---------- share: round platform buttons ---------- */
.oc-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.oc-share-l { font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-right: 6px; }
.oc-sh { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--white); background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: background-color 260ms var(--ease), box-shadow 260ms var(--ease), transform 260ms var(--ease); cursor: pointer; border: 0; }
.oc-sh svg { width: 20px; height: 20px; }
.oc-sh:hover, .oc-sh:focus-visible { transform: translateY(-2px); box-shadow: none; outline: none; }
.oc-sh-whatsapp:hover, .oc-sh-whatsapp:focus-visible { background: #25D366; }
.oc-sh-facebook:hover, .oc-sh-facebook:focus-visible { background: #1877F2; }
.oc-sh-x:hover, .oc-sh-x:focus-visible { background: #000; }
.oc-sh-linkedin:hover, .oc-sh-linkedin:focus-visible { background: #0A66C2; }
.oc-sh-telegram:hover, .oc-sh-telegram:focus-visible { background: #26A5E4; }
.oc-sh-email:hover, .oc-sh-email:focus-visible { background: var(--gold-500); color: var(--ink); }
.oc-sh-pill { width: auto; height: 48px; display: inline-flex; gap: .55em; padding: 0 1.2em; border-radius: 24px; font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.oc-sh-pill svg { width: 18px; height: 18px; }
.oc-sh-pill:hover, .oc-sh-pill:focus-visible { background: var(--gold-300); color: var(--ink); }

/* ---------- 1 the stage ---------- */
.sx-hero { position: relative; overflow: hidden; isolation: isolate; color: var(--white); background: var(--char-900); padding: calc(var(--nav-h) + 14px + var(--s-l)) 0 var(--s-xl); min-height: 100svh; display: grid; align-content: center; }
.sx-bg { position: absolute; inset: -6%; z-index: -2; }
.sx-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(48px) saturate(1.2); opacity: .5; transform: scale(1.1); }
.sx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(26, 31, 37, .2), rgba(26, 31, 37, .85) 70%), linear-gradient(180deg, rgba(26, 31, 37, .55) 0%, rgba(26, 31, 37, 0) 30%, rgba(26, 31, 37, .6) 82%, var(--char-900) 100%); }
.sx-hero .inner { width: min(var(--shell), 1440px); display: grid; justify-items: center; gap: var(--s-m); text-align: center; }
.sx-head { display: grid; justify-items: center; gap: var(--s-s); width: min(100%, 1100px); }
.sx-head h1 { line-height: .98; text-wrap: balance; }
.sx-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.6em; color: rgba(255, 255, 255, .86); }
.sx-meta > * { display: inline-flex; align-items: center; gap: .5em; }
.sx-meta svg { width: 1.15em; height: 1.15em; color: var(--gold-300); }
.sx-meta a { color: var(--gold-300); border-bottom: 1px solid rgba(213, 184, 124, .4); transition: border-color var(--d-move); }
.sx-meta a:hover { border-color: var(--gold-300); }
.sx-player { width: 100%; scroll-margin-top: calc(var(--nav-h) + 40px); }

/* ---------- 2 reading: notes + the sidebar that is always there ---------- */
.sx-body { padding-block: var(--s-2xl); }
.sx-body .inner { width: var(--shell); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(40px, 6vw, 120px); align-items: start; }
.sx-notes { display: grid; gap: var(--s-s); max-width: 780px; font-size: clamp(18px, 17px + .25vw, 21px); line-height: 1.7; color: #2E2E2E; }
.sx-notes > p, .sx-notes .point > p { margin: 0; }
.sx-notes .lead-p { font-size: var(--t-big); line-height: 1.55; color: var(--ink); }
.sx-notes .point { position: relative; display: grid; gap: var(--s-s); padding: var(--s-m) 0 0 clamp(52px, 4.6vw, 76px); margin-top: var(--s-s); border-top: 1px solid var(--border); }
.sx-notes .point > .n { position: absolute; left: 0; top: var(--s-m); font-size: var(--t-xl); font-weight: 300; line-height: .9; color: var(--gold-700); font-variant-numeric: tabular-nums; }
.sx-notes .point-plain { padding-left: 0; }
.sx-notes h2 { font-size: var(--t-m); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; color: var(--ink); text-transform: none; }
.sx-notes h3 { font-size: var(--t-s); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); margin-top: var(--s-xs); }
.sx-notes blockquote { margin: var(--s-xs) 0; padding: var(--s-s) var(--s-m); background: var(--grey-50); border-left: 3px solid var(--gold-500); border-radius: 0 var(--r-card) var(--r-card) 0; display: grid; gap: .5em; color: var(--ink); }
.sx-notes blockquote p { margin: 0; }
.sx-notes blockquote b:first-child { display: block; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }
.sx-notes ul, .sx-notes ol { display: grid; gap: .5em; padding-left: 1.3em; }
.sx-notes li::marker { color: var(--gold-700); font-weight: 500; }
.sx-notes a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.sx-notes b, .sx-notes strong { font-weight: 500; color: var(--ink); }

.sx-side { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: var(--s-s); }
.sx-card { display: grid; gap: var(--s-s); padding: var(--s-m); border-radius: var(--r-panel); background: var(--grey-50); background-image: var(--tex-light); background-size: 256px; background-blend-mode: multiply; }
.sx-card h2 { font-weight: 500; letter-spacing: -.015em; }
.sx-this figure { margin: calc(var(--s-m) * -1) calc(var(--s-m) * -1) 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-panel) var(--r-panel) 0 0; position: relative; }
.sx-this figure img { width: 100%; height: 100%; object-fit: cover; }
.sx-facts { list-style: none; margin: 0; padding: 0; display: grid; }
.sx-facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); font-size: 16px; color: #2E2E2E; }
.sx-facts li:first-child { border-top: 0; padding-top: 0; }
.sx-facts svg { width: 18px; height: 18px; color: var(--gold-700); }
.sx-facts a { color: var(--gold-700); }
.sx-watch { justify-self: start; }
.sx-keys ul { list-style: none; margin: 0; padding: 0; display: grid; }
.sx-keys li { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--border); }
.sx-keys li:first-child { border-top: 0; padding-top: 0; }
.sx-keys b { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
.sx-keys span { font-size: 16px; line-height: 1.55; color: #2E2E2E; }
.sx-series { background: var(--char-900); background-image: var(--tex-dark); background-blend-mode: overlay; color: var(--white); }
.sx-series-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-xs); color: inherit; }
.sx-series-top .t-small { color: var(--gold-300); white-space: nowrap; }
.sx-series ol { list-style: none; padding: 0; margin: 0; display: grid; }
.sx-series li a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: .4em; padding: .7em 0; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.35; transition: color var(--d-move); }
.sx-series li a:hover { color: var(--gold-300); }
.sx-series li .n { color: var(--gold-300); font-variant-numeric: tabular-nums; }
.sx-series li[aria-current] a { color: var(--white); font-weight: 500; }

/* ---------- 4 earlier and next: always a matching pair ---------- */
.sx-pn { padding-block: var(--s-2xl) 0; }
.sx-pn .inner { width: var(--shell); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.sx-pn-card { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: center; gap: var(--s-m); padding: clamp(12px, 1.2vw, 18px); border-radius: var(--r-panel); color: var(--ink); background: var(--grey-50);
  box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow 400ms var(--ease), transform 400ms var(--ease); }
.sx-pn-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--gold-500), 0 30px 60px -40px rgba(18, 18, 18, .45); }
.sx-pn-card figure { margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; position: relative; }
.sx-pn-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.sx-pn-card:hover figure img { transform: scale(1.04); }
.sx-pn-t { display: grid; gap: .45em; }
.sx-pn-t .t-m { font-weight: 500; line-height: 1.15; }
.sx-pn-l { color: var(--gold-700); font-weight: 500; letter-spacing: .04em; }
.sx-pn-d { color: #555; }
.sx-pn-card.next { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
.sx-pn-card.next figure { order: 2; }
.sx-pn-card.next .sx-pn-t { text-align: right; justify-items: end; }

/* ---------- 5 more ---------- */
.sx-more { padding-top: var(--s-2xl); }

@media (max-width: 1024px) {
  .sx-body .inner { grid-template-columns: 1fr; }
  .sx-side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .sx-pn .inner { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .sx-hero { min-height: 0; padding-bottom: var(--s-l); }
  .oc-player { border-radius: var(--r-card); }
  .oc-sh:not(.oc-sh-pill) { width: 44px; height: 44px; }
  .oc-sh-pill { height: 44px; white-space: nowrap; }
  .oc-share-l { width: 100%; text-align: center; margin: 0 0 2px; }
  .sx-pn-card, .sx-pn-card.next { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
  .sx-pn-card.next figure { order: 0; }
  .sx-pn-card.next .sx-pn-t { text-align: left; justify-items: start; }
}

/* the archive, 24 at a time */
.sgrid.limited .is-more { display: none; }
.sx-more-btn { display: flex; margin: var(--s-l) auto 0; }
