/* The sermons pages (sermons.html, sermon.html), as Nucleus's media pages (https://life-demo.nucleus.church/media —
   user, 2026-11-21: "When sermons is clicked, it goes to a page like this"), in this site's design (subpage.css): a
   warm grey band at the top holding the featured sermon (or the one playing), white under it; Inter titles, DM Sans
   words, our orange for the one thing to press and the tab you're on (Von Restorff); a picture is the target, a big
   one (Fitts); three cards across (a row a glance takes in — Miller). */
.sm-top { padding: calc(var(--nav-h, 80px) + clamp(40px, 5vw, 72px)) var(--edge) clamp(56px, 6vw, 88px); background: var(--tint); }
.sm-in { max-width: 1280px; margin: 0 auto; }
.sm-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: clamp(56px, 6vw, 84px); height: clamp(56px, 6vw, 84px);
  margin: calc(clamp(56px, 6vw, 84px) / -2) 0 0 calc(clamp(56px, 6vw, 84px) / -2); border: 3px solid #fff; border-radius: 50%;
  background: rgba(0, 0, 0, .28); transition: transform .2s ease; }
.sm-play svg { width: 46%; height: 46%; margin-left: 6%; fill: #fff; }
.sm-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #1E1E1E; }
.sm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sm-thumb .sm-play { width: 52px; height: 52px; margin: -26px 0 0 -26px; opacity: 0; }
a:hover .sm-thumb .sm-play, a:focus-visible .sm-thumb .sm-play { opacity: 1; }

/* ── the featured sermon: its picture big on the left, the words and one button on the right ── */
.sm-feat { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4.5vw, 72px); }
.sm-feat-pic { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 22px; background: #1E1E1E;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sm-feat-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sm-feat-pic:hover img { transform: scale(1.02); }
.sm-feat-pic:hover .sm-play { transform: scale(1.06); }
.sm-feat h1, .sm-feat h2 { margin-top: .5em; font-family: var(--head); font-size: clamp(32px, 3.2vw, 50px); font-weight: 700; line-height: 1.02;
  letter-spacing: -.035em; text-wrap: balance; }
.sm-feat-about { display: -webkit-box; overflow: hidden; margin-top: 14px; color: var(--text); font-size: 18px; line-height: 1.4;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.sm-feat .sm-by { margin-top: 12px; }
.sm-feat .btn { margin-top: clamp(24px, 2.6vw, 36px); }

/* ── the catalog: tabs, Sort and Search, then the cards ── */
.sm-wall { max-width: calc(1280px + 2 * var(--edge)); margin: 0 auto; padding: clamp(40px, 4.4vw, 64px) var(--edge) clamp(96px, 10vw, 150px); }
.sm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.sm-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--tint); }
.sm-tab { height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 17px;
  font-weight: 500; cursor: pointer; }
.sm-tab[aria-selected="true"] { background: var(--orange); color: #fff; }
.sm-tab:not([aria-selected="true"]):hover { background: rgba(0, 0, 0, .05); }
.sm-sort { position: relative; display: inline-flex; align-items: center; height: 54px; margin-left: auto; padding: 0 16px 0 20px; border-radius: 999px;
  background: var(--tint); font-size: 17px; font-weight: 700; cursor: pointer; }
.sm-sort select { appearance: none; -webkit-appearance: none; height: 100%; margin-left: 6px; padding: 0 38px 0 0; border: 0; background: transparent;
  color: var(--grey); font: inherit; font-weight: 500; cursor: pointer; }
.sm-sort svg { position: absolute; right: 14px; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #fff; fill: none;
  stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.sm-find { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 999px; background: var(--tint); }
.sm-find svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sm-find input { width: 8em; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; font-weight: 500; }
.sm-find input::placeholder { color: var(--text); }
.sm-find input:focus { outline: none; }
.sm-find:focus-within, .sm-sort:focus-within, .sm-tab:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.sm-showing { display: flex; align-items: center; gap: 10px; margin: -12px 0 24px; color: var(--grey); }
.sm-showing button { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: var(--orange);
  color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; }
.sm-card { display: flex; flex-direction: column; min-width: 0; color: var(--text); }
.sm-card-title { margin-top: 14px; font-family: var(--head); font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.sm-card:hover .sm-card-title { color: var(--grey); }
.sm-by { display: block; margin-top: 6px; color: var(--grey); font-size: 15px; }
.sm-more { display: flex; justify-content: center; margin-top: 40px; }
/* a group to pick (a playlist, a speaker, a verse): its picture or initial, its name, how many */
.sm-pick { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left;
  cursor: pointer; }
.sm-pick .sm-thumb { margin-bottom: 10px; }
.sm-pick b { font-family: var(--head); font-size: 21px; letter-spacing: -.025em; }
.sm-pick span.sm-count { color: var(--grey); }
.sm-initial { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 10px; border-radius: 14px; background: var(--tint); color: var(--grey);
  font-family: var(--head); font-size: 56px; font-weight: 700; }
.sm-note { grid-column: 1 / -1; padding: 56px 24px; border-radius: 20px; background: var(--tint); color: var(--grey); text-align: center; }
.sm-note b { display: block; margin-bottom: 6px; color: var(--text); font-family: var(--head); font-size: 22px; }
/* the playlists under the cards, a row each */
.sm-lists { display: grid; gap: clamp(56px, 6vw, 88px); margin-top: clamp(72px, 8vw, 120px); }
.sm-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sm-list-head h2 { font-family: var(--head); font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.035em; }
.sm-list-head button { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; text-decoration: underline;
  text-underline-offset: .2em; cursor: pointer; }

/* ══ one sermon: the video over the band, then its words on the left and the notes on the right ══ */
.sm-video { position: relative; max-width: 920px; margin: 0 auto; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 22px; background: #000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sm-video button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.sm-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sm-video iframe, .sm-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.sm-novideo { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 24px; color: #fff; font-size: 18px; text-align: center; }
.sm-novideo a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.sm-video button:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 22px; }
.sm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; max-width: 1280px;
  margin: 0 auto; padding: clamp(40px, 4.4vw, 64px) var(--edge) clamp(72px, 8vw, 120px); }
.sm-body h1 { font-family: var(--head); font-size: clamp(32px, 3vw, 46px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.sm-body .sm-by { margin-top: 8px; font-size: 16px; }
.sm-info { margin-top: 26px; }
.sm-info .sm-tabs { display: inline-flex; }
.sm-info-box { margin-top: 12px; padding: 24px 26px; border-radius: 22px; background: var(--tint); font-size: 19px; line-height: 1.45; }
.sm-info-box p + p { margin-top: .8em; }
.sm-body .btns { margin-top: 26px; }
/* the notes: the visitor's own, kept in this browser; when they're done — email them, download them, share them */
.sm-notes { padding: 26px; border-radius: 26px; background: var(--tint); }
.sm-notes-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sm-notes-head h2 { font-family: var(--head); font-size: clamp(28px, 2.4vw, 36px); font-weight: 700; letter-spacing: -.035em; }
.sm-notes-head .btn { min-width: 0; min-height: 52px; padding: 6px 24px; }
.sm-church { margin-top: 18px; padding: 22px 24px; border-radius: 18px; background: #fff; color: var(--text); font-size: 17px; line-height: 1.5; }
.sm-church p + p { margin-top: .7em; }
.sm-pad { display: grid; gap: 4px; margin-top: 18px; padding: 20px 22px; border: 3px solid var(--rule); border-radius: 18px; background: #fff; }
.sm-pad:focus-within { border-color: var(--orange); }
.sm-pad input, .sm-pad textarea { width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; outline: 0; }
.sm-pad input { font-family: var(--head); font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.sm-pad textarea { min-height: 260px; font-size: 18px; line-height: 1.5; resize: vertical; }
.sm-pad input::placeholder, .sm-pad textarea::placeholder { color: #9A9A9A; }
.sm-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sm-act { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: var(--text);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.sm-act:hover { background: #F0EEEA; }
.sm-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sm-said { min-height: 1.4em; margin-top: 10px; color: var(--grey); font-size: 15px; }
/* up next: the others, a row each */
.sm-next { max-width: calc(1280px + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge) clamp(96px, 10vw, 150px); }
.sm-next h2 { margin-bottom: 24px; font-family: var(--head); font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.035em; }

/* a part that's switched off stays off, whatever its display (the site's .btn is inline-flex) */
.sm-wall [hidden], .sm-body [hidden], .sm-next[hidden] { display: none !important; }

@media (max-width: 1000px) {
  .sm-feat, .sm-body { grid-template-columns: minmax(0, 1fr); }
  .sm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .sm-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sm-tabs { width: 100%; }
  .sm-tab { flex: 1; padding: 0 10px; }
  .sm-sort { margin-left: 0; }
  .sm-find { flex: 1; }
  .sm-find input { width: 100%; }
  .sm-feat .btn, .sm-body .btns .btn { width: 100%; }
  .sm-notes { padding: 20px 16px; }
  .sm-act { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sm-feat-pic img, .sm-play { transition: none; } }
