/* Westwood sermons: library, search window, player, notes. */
.ww-sl, .ww-ss, .ww-sp, .ww-sn {
	--sm-navy: var(--navy, #14293A);
	--sm-blue: var(--blue, #2E7DB8);
	--sm-gold: var(--gold, #F6C445);
	--sm-cream: var(--cream, #F7F3EA);
	--sm-line: #E4DCC9;
	--sm-muted: #4A5E6E;
	--sm-head: "Bricolage Grotesque", system-ui, sans-serif;
	color: var(--sm-navy);
}
.ww-sl *, .ww-ss *, .ww-sp *, .ww-sn * { box-sizing: border-box; }
.ww-sl button, .ww-ss button, .ww-sp button, .ww-sn button { font: inherit; }
.ww-sl :focus-visible, .ww-ss :focus-visible, .ww-sp :focus-visible, .ww-sn :focus-visible { outline: 3px solid var(--sm-blue); outline-offset: 2px; }
.ww-sl__loading, .ww-sl__empty { color: var(--sm-muted); margin: 0; }

/* Sort / year chips */
.ww-sl__sorts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.ww-sl__sort { padding: 10px 20px; border-radius: 999px; border: 2px solid var(--sm-navy); background: #fff; color: var(--sm-navy); font-size: 15px; font-weight: 800; cursor: pointer; }
.ww-sl__sort.is-on { background: var(--sm-navy); color: #fff; }

/* Series grid */
.ww-sl__more { display: flex; justify-content: center; margin-top: 28px; }
.ww-sl__group { font-family: var(--sm-head); font-size: 22px; font-weight: 800; margin: 28px 0 14px; }
.ww-sl__groups > .ww-sl__group:first-child { margin-top: 0; }
.ww-sl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ww-sl__series { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; background: #fff; border-radius: 22px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(20,41,58,.06), 0 12px 32px rgba(20,41,58,.08); transition: transform .2s ease; color: var(--sm-navy); }
.ww-sl__series:hover { transform: translateY(-4px); }
.ww-sl__cover { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 20px; overflow: hidden;
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 14px, transparent 14px 28px) !important; }
.ww-sl__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ww-sl__cover-name { position: relative; font-family: var(--sm-head); font-size: 26px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.ww-sl__badge { position: absolute; top: 14px; right: 14px; background: rgba(20,41,58,.72); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.ww-sl__series-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.ww-sl__series-name { font-family: var(--sm-head); font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.ww-sl__series-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ww-sl__range { font-size: 14px; color: var(--sm-muted); }
.ww-sl__topic { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--sm-cream); }
.ww-sl__chip { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* Months */
.ww-sl__months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ww-sl__month { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--sm-line); background: #fff; cursor: pointer; color: var(--sm-navy); text-align: left; }
.ww-sl__month:hover { border-color: var(--sm-blue); }
.ww-sl__month.is-empty { opacity: .35; cursor: default; }
.ww-sl__month-name { font-family: var(--sm-head); font-size: 20px; font-weight: 800; }
.ww-sl__month-count { font-size: 13px; color: var(--sm-muted); }
.ww-sl__open { padding: 15px 30px; border-radius: 999px; border: 0; background: var(--sm-gold); color: var(--sm-navy); font-size: 16px; font-weight: 800; cursor: pointer; }
.ww-sl__open:hover { background: #fff; }

/* Search window */
html.ww-ss-open { overflow: hidden; }
.ww-ss { position: fixed; inset: 0; z-index: 100000; background: rgba(12,27,39,.6); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; }
.ww-ss[hidden] { display: none; }
.ww-ss__panel { width: 100%; max-width: 980px; max-height: 88vh; overflow: auto; background: var(--sm-cream); border-radius: 26px; padding: 28px 32px 32px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.ww-ss__head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.ww-ss__input { flex: 1; min-width: 0; height: 56px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--sm-navy); font: inherit; font-size: 17px; background: #fff; color: var(--sm-navy); }
.ww-ss__close { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--sm-navy); font-size: 18px; cursor: pointer; }
.ww-ss__facets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ww-ss__facet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ww-ss__facet-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-blue); min-width: 72px; }
.ww-ss__chip { padding: 7px 14px; border-radius: 999px; border: 2px solid var(--sm-line); background: #fff; color: var(--sm-navy); font-size: 14px; font-weight: 700; cursor: pointer; }
.ww-ss__chip.is-on { background: var(--sm-navy); border-color: var(--sm-navy); color: #fff; }
.ww-ss__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.ww-ss__pills:empty { display: none; }
.ww-ss__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.ww-ss__pill--gold { background: #FBEBC2; }
.ww-ss__pill--blue { background: #DCEBF5; color: var(--sm-blue); }
.ww-ss__pill button { border: 0; background: rgba(20,41,58,.1); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 11px; color: inherit; }
.ww-ss__group { font-family: var(--sm-head); font-size: 20px; font-weight: 800; margin: 22px 0 12px; }
.ww-ss__strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.ww-ss__series { flex: 0 0 220px; display: flex; flex-direction: column; gap: 6px; text-align: left; border: 0; background: #fff; border-radius: 18px; padding: 0 0 14px; overflow: hidden; cursor: pointer; scroll-snap-align: start; color: var(--sm-navy); }
.ww-ss__series .ww-sl__cover { padding: 14px; }
.ww-ss__series .ww-sl__cover-name { font-size: 18px; }
.ww-ss__series-name { font-weight: 800; padding: 0 14px; }
.ww-ss__series-meta { font-size: 13px; color: var(--sm-muted); padding: 0 14px; }
.ww-ss__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ww-ss__row { display: grid; grid-template-columns: 110px 1fr 160px auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 16px; background: #fff; color: var(--sm-navy); text-decoration: none; }
.ww-ss__row:hover { box-shadow: 0 0 0 2px var(--sm-blue) inset; }
.ww-ss__date { font-size: 14px; font-weight: 700; color: var(--sm-muted); }
.ww-ss__title { display: flex; flex-direction: column; min-width: 0; }
.ww-ss__title small { color: var(--sm-muted); font-size: 13px; }
.ww-ss__speaker { font-size: 14px; color: var(--sm-muted); }
.ww-ss__empty { color: var(--sm-muted); }

/* Player */
.ww-sp { width: 100%; }
.ww-sp__modes { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(20,41,58,.08); margin: 0 0 14px; }
.ww-sp__mode { padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 800; color: var(--sm-navy); cursor: pointer; }
.ww-sp__mode.is-on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ww-sp__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0C1B27; }
.ww-sp__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ww-sp__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background-size: cover; background-position: center; cursor: pointer; display: grid; place-items: center; }
.ww-sp__play { width: 84px; height: 84px; border-radius: 50%; background: var(--sm-gold); color: var(--sm-navy); display: grid; place-items: center; font-size: 30px; padding-left: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.ww-sp__poster:hover .ww-sp__play { transform: scale(1.06); }
.ww-sp__audio { background: var(--sm-navy); color: #fff; border-radius: 22px; padding: 28px; }
.ww-sp__audio-title { font-weight: 800; margin-bottom: 14px; }
.ww-sp__audio audio, .ww-sp__audio-el { width: 100%; }
.ww-sp__clips { display: flex; gap: 14px; overflow-x: auto; margin-top: 16px; padding-bottom: 6px; }
.ww-sp__clip { flex: 0 0 210px; display: flex; flex-direction: column; gap: 8px; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left; color: var(--sm-navy); }
.ww-sp__clip-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; background: #0C1B27 center / cover; box-shadow: 0 0 0 3px transparent; }
.ww-sp__clip.is-on .ww-sp__clip-thumb { box-shadow: 0 0 0 3px var(--sm-gold); }
.ww-sp__clip-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.ww-sp__clip-label { font-size: 14px; font-weight: 800; }

/* Notes */
.ww-sn__body { background: #fff; border-radius: 22px; padding: 28px 30px; box-shadow: 0 1px 2px rgba(20,41,58,.06), 0 12px 32px rgba(20,41,58,.08); }
.ww-sn__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ww-sn__badge { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.ww-sn__badge--live { background: #FDECEA; color: #B42318; }
.ww-sn__badge--replay { background: #FBEBC2; color: #8A6D1B; }
.ww-sn__title { font-family: var(--sm-head); font-size: 26px; font-weight: 800; margin: 0; }
.ww-sn__label { display: block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-blue); margin: 22px 0 10px; }
.ww-sn__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ww-sn__points li { display: flex; gap: 10px; font-weight: 700; line-height: 1.5; }
.ww-sn__star { color: var(--sm-gold); }
.ww-sn__blanks { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.8; }
.ww-sn__blank { border: 0; border-bottom: 2px solid var(--sm-navy); font: inherit; font-weight: 800; color: var(--sm-blue); background: transparent; padding: 0 4px; max-width: 100%; }
.ww-sn__answer { background: #FBEBC2; color: var(--sm-navy); font-weight: 800; padding: 1px 6px; border-radius: 6px; }
.ww-sn__q { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ww-sn__q > label:not(.ww-sn__label) { font-weight: 700; }
.ww-sn__input { width: 100%; border: 2px solid var(--sm-line); border-radius: 14px; padding: 12px 16px; font: inherit; font-size: 15px; line-height: 1.55; resize: vertical; background: #FDFCF9; color: var(--sm-navy); }
.ww-sn__input:focus { border-color: var(--sm-blue); outline: none; }
.ww-sn__status { font-size: 13px; color: var(--sm-muted); margin: 10px 0 0; }
.ww-sn__empty { color: var(--sm-muted); }
.ww-sn__mail { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #EFE9DA; }
.ww-sn__email { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--sm-line); font: inherit; }
.ww-sn__send { height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--sm-navy); color: #fff; font-weight: 800; cursor: pointer; }
.ww-sn__send:hover { background: var(--sm-blue); }
.ww-sn__hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ww-sn__msg { font-size: 14px; font-weight: 700; margin: 8px 0 0; }
.ww-sn__msg:empty { display: none; }

@media (max-width: 991px) {
	.ww-sl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ww-sl__months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ww-sl__grid { grid-template-columns: 1fr; }
	.ww-sl__months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ww-ss { padding: 0; }
	.ww-ss__panel { max-height: 100vh; height: 100%; border-radius: 0; padding: 18px 16px 24px; }
	.ww-ss__row { grid-template-columns: 1fr auto; gap: 4px 12px; }
	.ww-ss__date { grid-column: 1 / -1; font-size: 12px; }
	.ww-ss__speaker { display: none; }
	.ww-sn__body { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.ww-sl__series { transition: none; }
	.ww-sl__series:hover { transform: none; }
}

/* Worship setlist ({ww_sunday_setlist}, used on the Sunday page) */
.ww-setlist-box { container-type: inline-size; }
.ww-setlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ww-setlist li { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; }
.ww-setlist li:hover { background: rgba(20, 41, 58, .04); }
.ww-setlist-art { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #E4DCC9; box-shadow: 0 4px 12px rgba(20, 41, 58, .14); }
.ww-setlist-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ww-setlist-song { font-weight: 800; line-height: 1.3; }
.ww-setlist-by { font-size: 13px; line-height: 1.35; color: #4A5E6E; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ww-setlist-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ww-setlist-link { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid #E4DCC9; border-radius: 50%; color: inherit; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.ww-setlist-link:hover, .ww-setlist-link:focus-visible { background: #14293A; border-color: #14293A; color: #fff; }
.ww-setlist-link--spotify:hover, .ww-setlist-link--spotify:focus-visible { background: #1DB954; border-color: #1DB954; }
.ww-setlist-link--apple:hover, .ww-setlist-link--apple:focus-visible { background: #FA243C; border-color: #FA243C; }
.ww-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Wide enough: song, artist and buttons on one line. */
@container (min-width: 460px) {
	.ww-setlist li { gap: 16px; }
	.ww-setlist-main { flex-direction: row; align-items: center; gap: 14px; }
	.ww-setlist-song { flex: 0 1 auto; }
	.ww-setlist-by { flex: 1 1 auto; }
	.ww-setlist-links { margin-top: 0; }
}
