/* Bethel 1.3.0 — October 2026 review, round two. Loaded after review.css. */

/* ---------- Brand red (from the logo), used mildly ---------- */
:root { --c-red: #e81820; --c-red-soft: rgba(232, 24, 32, 0.12); --c-red-ink: #b3121a; }
:root[data-theme="dark"] { --c-red-ink: #ff6b70; }
.label--red { color: var(--c-red); }
.on-dark .label--red, .rhythm__dark .label--red, .vision .label--red { color: #ff5a60; }

/* Event dates and times */
.tabs__date b, .acc__date b { color: var(--c-red); }
.tabs__tab[aria-selected="true"] .tabs__date b, .acc__date b { color: #ff5a60; }
.tabs__tab:not([aria-selected="true"]) .tabs__date b { color: var(--c-red); }
.tabs__tab .tabs__date { display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--r-sm); background: var(--c-surface); border: 1px solid var(--c-line); line-height: 1; }
.tabs__tab .tabs__date b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.6rem; }
.tabs__tab .tabs__date span { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; margin-top: -.4rem; color: var(--c-body); }
.tabs__tab[aria-selected="true"] .tabs__date { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.panel-body .meta-row > span:first-child, .acc__text .meta-row > span:first-child, .single-event .meta-row > span:first-child { color: var(--c-red-ink); font-weight: 600; }
.card--dark .card__body > p:first-child strong { color: #ff5a60 !important; }

/* Holy Communion title + Our Vision eyebrow */
.rhythm__title { font-size: .8rem; font-weight: 700; }
.vision__eyebrow { color: #ff5a60 !important; font-weight: 700; }
.vision p em { font-style: italic; font-family: var(--f-serif); font-size: 1.12em; color: #fff; }

/* ---------- What we believe: centred hero CTA ---------- */
.hero--center .btn-row { justify-content: center; }

/* ---------- Hero slider ---------- */
.hero--slider .hero__media .hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero--slider .hero__media .hero__slide.is-on { opacity: 1; }
.hero__dots { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 3; display: flex; gap: .45rem; }
.hero__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .3s, width .3s; }
.hero__dots i.is-on { background: #fff; width: 22px; border-radius: var(--r-pill); }
@media (prefers-reduced-motion: reduce) { .hero--slider .hero__slide { transition: none; } }

/* ---------- "This month" 3 × 2 ---------- */
.month { border-block: 1px solid var(--c-line); background: var(--c-surface-alt); padding-block: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.month__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.month__title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--c-ink); }
.month__title span { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-red); margin-right: .6rem; }
.month__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.5rem; }
.month__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.month__item { display: flex; flex-direction: column; gap: .3rem; padding: 1.05rem 1.15rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); color: inherit; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.month__item:hover { border-color: color-mix(in srgb, var(--c-ink) 35%, var(--c-line)); color: inherit; transform: translateY(-1px); }
.month__item b { align-self: flex-start; padding: .22rem .7rem; border-radius: var(--r-pill); background: var(--c-accent-tint); color: var(--c-accent-ink); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.month__item--red b { background: var(--c-red-soft); color: var(--c-red-ink); }
.month__item strong { font-size: 1.02rem; letter-spacing: -.015em; color: var(--c-ink); }
.month__item span { font-size: .86rem; color: var(--c-body); }
@media (max-width: 900px) { .month__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .month__grid { grid-template-columns: minmax(0, 1fr); } }

/* Times band: live-stream line */
.times-band__live { margin-top: .9rem; font-size: .88rem; }
.times-band__live a { display: inline-flex; align-items: center; gap: .5rem; color: #fff; opacity: .85; }
.times-band__live a:hover { opacity: 1; color: #fff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-red); box-shadow: 0 0 0 0 rgba(232,24,32,.6); animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse { to { box-shadow: 0 0 0 9px rgba(232,24,32,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- Important announcements ---------- */
.ann__grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ann__grid--1 { grid-template-columns: minmax(0, 1fr); }
.ann__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ann__card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface); color: inherit; transition: border-color .2s var(--ease), transform .2s var(--ease); }
a.ann__card:hover { border-color: color-mix(in srgb, var(--c-ink) 35%, var(--c-line)); color: inherit; transform: translateY(-2px); }
.ann__media { position: relative; background: var(--c-night); aspect-ratio: 4 / 5; overflow: hidden; }
.ann__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ann__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.4rem 1.5rem; flex: 1; }
.ann__body h3 { font-size: 1.35rem; letter-spacing: -.025em; color: var(--c-ink); }
.ann__body p { margin: 0; font-size: .94rem; }
.ann__body .btn { margin-top: auto; align-self: flex-start; }
.ann__grid--1 .ann__card { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.ann__grid--1 .ann__media { aspect-ratio: 4 / 5; max-height: 560px; }
.ann__grid--1 .ann__body { padding: clamp(1.75rem, 1rem + 3vw, 3rem); justify-content: center; }
.ann__grid--1 .ann__body h3 { font-size: var(--fs-h3); }
@media (max-width: 900px) { .ann__grid, .ann__grid--2 { grid-template-columns: minmax(0, 1fr); } .ann__grid--1 .ann__card { grid-template-columns: minmax(0, 1fr); } .ann__grid--1 .ann__media { max-height: 70vh; } }
@media (min-width: 901px) and (max-width: 1100px) { .ann__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Pop-up ---------- */
.popup { width: min(92vw, 560px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--c-surface); color: var(--c-body); box-shadow: var(--shadow-lift); overflow: hidden; }
.popup::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.popup[open] { animation: popin .35s var(--ease); }
@keyframes popin { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.popup__close { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.popup__media { display: block; background: var(--c-night); max-height: 56vh; overflow: hidden; }
.popup__media img { display: block; width: 100%; height: 100%; max-height: 56vh; object-fit: contain; }
.popup__body { padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: .6rem; }
.popup__body h2 { font-size: 1.5rem; letter-spacing: -.025em; color: var(--c-ink); }
.popup__body p { margin: 0; }
.popup__body .btn-row { margin-top: .6rem; }
@media (max-width: 560px) { .popup { width: 94vw; } .popup__body { padding: 1.1rem 1.1rem 1.25rem; } }

/* ---------- Timeline slideshow (History) ---------- */
.slides { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-sunk); }
.slides__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slides__track::-webkit-scrollbar { display: none; }
.slides__item { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slides__item img { display: block; width: 100%; aspect-ratio: 560 / 350; object-fit: cover; border-radius: 0; }
.tl-card .slides img { border-radius: 0; }
.slides__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #0a0a0a; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-card); opacity: 0; transition: opacity .2s; }
.slides__prev { left: .75rem; } .slides__next { right: .75rem; }
.slides:hover .slides__nav, .slides:focus-within .slides__nav { opacity: 1; }
@media (hover: none) { .slides__nav { opacity: 1; } }
.slides__dots { position: absolute; left: 0; right: 0; bottom: .7rem; display: flex; justify-content: center; gap: .35rem; pointer-events: none; }
.slides__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .2s, width .2s; }
.slides__dots i.is-on { background: #fff; width: 18px; border-radius: var(--r-pill); }
.tl-year--red, .timeline .tl-year { color: var(--c-red); }
.tl-item::after { background: var(--c-red); }
@media (prefers-reduced-motion: reduce) { .slides__track { scroll-behavior: auto; } }

/* ---------- Video embeds (inline, responsive) ---------- */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; margin-block: 1.5rem; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Service times: in person vs live ---------- */
.times-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0 2rem; }
.times-mode__item { margin: 0; padding: 1rem 1.15rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface-alt); font-size: .92rem; }
.times-mode__item .label { display: block; margin-bottom: .4rem; }
@media (max-width: 700px) { .times-mode { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ministries grid stays 3 × 2 down to tablet ---------- */
@media (max-width: 1024px) and (min-width: 701px) { .ministries-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Five Sunday services (8, 10, 12, 5 PM, 7 PM) ---------- */
.times-band .time-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rhythm__dark .time-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.times-list--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.times-list--5 strong { font-size: 1.7rem; }
@media (max-width: 1024px) { .times-band .time-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .times-list--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .times-list--5 > div:nth-child(4) { border-right: 0; } .times-list--5 > div:nth-child(-n+4) { border-bottom: 1px solid var(--c-line); } .times-list--5 > div:nth-child(5) { grid-column: span 2; border-right: 0; } }
@media (max-width: 560px) { .times-band .time-tiles, .rhythm__dark .time-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.times-band .time-tile { padding: .9rem .75rem; }
.times-band .time-tile small { font-size: .56rem; letter-spacing: .1em; white-space: nowrap; }
.times-band .time-tile strong { font-size: clamp(1.15rem, .6rem + 1.1vw, 1.5rem); white-space: nowrap; }

/* Holy Communion titles in brand red (#49) */
.t-red { color: var(--c-red); }
:root[data-theme="dark"] .t-red, .on-dark .t-red { color: #ff5a60; }
.tabs__tab strong.t-red, .tabs__panel h3.t-red { color: var(--c-red); }
:root[data-theme="dark"] .tabs__tab strong.t-red, :root[data-theme="dark"] .tabs__panel h3.t-red { color: #ff5a60; }

/* ---------- Nov 2026 homepage fixes ---------- */

/* Announcements: landscape posters fill the card (no black bars); portrait ones are cropped from the top. */
.ann__media { aspect-ratio: 16 / 9; }
.ann__media img { object-fit: cover; object-position: center top; }
.ann__grid--1 .ann__card { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ann__grid--1 .ann__media { aspect-ratio: 16 / 9; max-height: none; height: 100%; min-height: 0; }
@media (max-width: 900px) { .ann__grid--1 .ann__media { aspect-ratio: 16 / 9; max-height: none; } }

/* Ministries tiles are finished designs (title baked in): full colour, no saturation drain. */
.ministries-grid .card__media img { filter: none; }

/* Rhythms: the five Communion times stay on one line, in a slightly smaller type size. */
.rhythm { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr); }
.rhythm__dark .time-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.rhythm__dark .time-tile { padding: .7rem .2rem; text-align: center; }
.rhythm__dark .time-tile strong { margin-top: 0; font-size: clamp(.74rem, .5rem + .5vw, .98rem); letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 1100px) { .rhythm { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .rhythm__dark { padding: 1.5rem 1.1rem; } .rhythm__dark .time-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; } .rhythm__dark .time-tile { padding: .6rem .1rem; border-radius: var(--r-sm); } .rhythm__dark .time-tile strong { font-size: .68rem; letter-spacing: -.03em; } }

/* Life at Bethel: filterable photo gallery */
.photo-gallery__filters { margin-bottom: 1.5rem; }
.photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-grid .gallery-grid__item { grid-column: auto; aspect-ratio: 4 / 3; }
.photo-grid .gallery-grid__item[hidden] { display: none; }
.photo-gallery__more { margin: 1.75rem 0 0; text-align: center; }
.photo-gallery__more[hidden] { display: none; }
.photo-gallery .chip:focus-visible { outline: 2px solid var(--c-accent-ink, currentColor); outline-offset: 2px; }
@media (max-width: 1024px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } .photo-grid .gallery-grid__item { aspect-ratio: 1 / 1; } .photo-gallery__filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; } .photo-gallery__filters .chip { flex: 0 0 auto; } }

/* Nov 2026: home devotion card, landscape image on top, text below. */
.home-devotion .today { grid-template-columns: minmax(0, 1fr); align-self: start; }
.home-devotion .today__media { order: -1; display: block; min-height: 0; background: var(--c-surface); }
.home-devotion .today__media::after { display: none; }
.home-devotion .today__media img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.home-devotion .today__caption { position: static; display: block; padding: 1.25rem clamp(1.5rem, 1rem + 2vw, 2.5rem) 0; color: var(--c-ink); }
.home-devotion .today__caption .label { color: var(--c-ink-soft, var(--c-muted, #52525b)) !important; }
.home-devotion .today__caption h3 { color: var(--c-ink); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: .35rem; }
.home-devotion .today__body { padding-top: 1rem; }
@media (max-width: 900px) { .home-devotion .today__media { min-height: 0; } }
