/* Emmanuel Bible Church — site styles
   Colors come from the building: the deep blue of the stained glass, the gold
   of the crown in it, limestone-warm neutrals, and white. */

@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --ink: #14213d;          /* deep navy: text, dark bands, footer */
  --ink-soft: #4b5567;
  --glass: #1f3f94;        /* stained-glass blue: links and buttons */
  --glass-deep: #152b6a;
  --gold: #a17a32;         /* the crown in the window: thin rules only */
  --ruby: #a4162b;         /* the cross in the window */
  --paper: #ffffff;
  --stone: #f4f1eb;        /* warm neutral for alternate bands */
  --line: #ddd8cd;

  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 74rem;
  --measure: 38rem;
  --band: clamp(2.5rem, 5vw, 4.25rem);  /* vertical space inside a section */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }   /* the header stays at the top, so a link to part of a page stops below it */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem); letter-spacing: -0.012em; }
h2 { font-size: clamp(1.875rem, 1.35rem + 2vw, 2.75rem); letter-spacing: -0.005em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
a { color: var(--glass); text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; }
a:hover { color: var(--glass-deep); text-decoration-thickness: 0.12em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A short gold rule that opens a heading block */
.rule { display: block; width: 3.5rem; height: 2px; background: var(--gold); margin: 0 0 1.5rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.2; text-decoration: none; padding: 0.95rem 1.6rem; border-radius: 3px; border: 1.5px solid var(--glass); background: var(--glass); color: #fff; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { background: var(--glass-deep); border-color: var(--glass-deep); color: #fff; }
.btn.quiet { background: transparent; color: var(--glass-deep); }
.btn.quiet:hover { background: var(--glass-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.on-dark .btn { background: #fff; border-color: #fff; color: var(--ink); }
.on-dark .btn:hover { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.on-dark .btn.quiet { background: transparent; border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.on-dark .btn.quiet:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }

/* ---------- Header ---------- */
/* The header stays at the top of the window while the page scrolls. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; color: inherit; text-decoration: none; min-width: 0; }
.brand:hover { color: inherit; }
.brand img { width: 56px; height: 56px; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.4375rem; line-height: 1.1; display: block; }
.brand-place { font-size: 0.9375rem; opacity: 0.75; display: block; line-height: 1.3; margin-top: 0.1rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.25rem; }
.site-nav a { display: block; font-size: 1.0625rem; font-weight: 500; padding: 0.5rem 0.75rem; color: inherit; text-decoration: none; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow 0.15s; }
.site-nav a:hover { box-shadow: inset 0 -2px 0 var(--line); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.site-nav .nav-cta { margin-left: 0.75rem; }
.site-nav .nav-cta a { padding: 0.6rem 1.15rem; border: 1.5px solid var(--glass); border-radius: 3px; background: var(--glass); color: #fff; font-weight: 600; box-shadow: none; }
.site-nav .nav-cta a:hover { background: var(--glass-deep); border-color: var(--glass-deep); box-shadow: none; }
.nav-toggle { display: none; font: inherit; font-size: 1.0625rem; font-weight: 600; background: none; border: 1.5px solid currentColor; color: inherit; padding: 0.45rem 0.95rem; border-radius: 3px; cursor: pointer; }

/* Home page: the header sits clear over the video, and turns solid like the other pages' once the page is scrolled (site.js adds .is-stuck) */
.home .site-header { position: absolute; left: 0; right: 0; top: 0; }
.js .home .site-header { position: fixed; }
.home .site-header:not(.is-stuck) { background: transparent; border-bottom-color: transparent; color: #fff; }
.home .site-header:not(.is-stuck) .brand img { filter: brightness(0) invert(1); }
.home .site-header:not(.is-stuck) .site-nav a:hover { box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.6); }
.home .site-header:not(.is-stuck) .site-nav .nav-cta a { background: #fff; border-color: #fff; color: var(--ink); }
.home .site-header:not(.is-stuck) .site-nav .nav-cta a:hover { background: var(--stone); border-color: var(--stone); box-shadow: none; }

@media (max-width: 66rem) {   /* the menu folds into the Menu button below this width; seven links need about this much room */
  .js .nav-toggle { display: block; flex: none; }
  .js .brand { flex: 1 1 0; }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.is-open { display: block; padding-bottom: 0.5rem; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); box-shadow: none; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 0.9rem; }
  .site-nav .nav-cta { margin: 1rem 0 0.25rem; }
  .site-nav .nav-cta a { text-align: center; padding: 0.85rem 1rem; }
  .site-nav .nav-cta a:hover { padding-left: 1rem; }
  .home .site-header:not(.is-stuck).nav-open { background: var(--ink); }
  .home .site-header:not(.is-stuck) .site-nav a { border-bottom-color: rgba(255, 255, 255, 0.18); }
  .home .site-header:not(.is-stuck) .site-nav a:hover { box-shadow: inset 3px 0 0 var(--gold); }
}

/* ---------- Home hero: slow-motion clips that fade one into the next ---------- */
.hero { position: relative; overflow: hidden; min-height: clamp(30rem, 76vh, 44rem); display: flex; align-items: flex-end; color: #fff; background: var(--ink) center / cover no-repeat; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: opacity 1.5s ease; }
.hero-shade { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(12, 20, 40, 0.5) 0, rgba(12, 20, 40, 0) 26%),
    linear-gradient(to top, rgba(12, 20, 40, 0.86) 0, rgba(12, 20, 40, 0.5) 38%, rgba(12, 20, 40, 0.08) 72%); }
.hero-content { position: relative; z-index: 2; padding-block: 7rem clamp(2.75rem, 6vw, 4.25rem); }
.hero .rule { margin-bottom: 1.75rem; }
.hero h1 { max-width: 15ch; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
.hero-lede { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.45; margin: 1.4rem 0 0; max-width: 32rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.hero-address { margin: 0.5rem 0 0; font-size: 1.0625rem; color: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.video-toggle { position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 3; font: inherit; font-size: 0.875rem; font-weight: 600; background: rgba(12, 20, 40, 0.45); color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 3px; padding: 0.35rem 0.8rem; cursor: pointer; }
.video-toggle:hover { background: var(--ink); }
@media (max-width: 46rem) { .hero { min-height: clamp(30rem, 80vh, 38rem); } .hero-content { padding-bottom: 4.5rem; } }
@media (max-width: 30rem) { .brand img { width: 48px; height: 48px; } .brand-name { font-size: 1.25rem; } }

/* ---------- Service times ---------- */
.times-band { border-bottom: 1px solid var(--line); }
.times-band .wrap { display: grid; grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 3.2fr); align-items: center; gap: 1.25rem 2.5rem; padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.times-band h2 { font-size: 1.625rem; }
.times-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; }
.times-row div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 0.15rem 1.5rem; border-left: 1px solid var(--line); }
.times-row dd { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; white-space: nowrap; }
.times-row dt { color: var(--ink-soft); font-size: 1rem; line-height: 1.35; margin-top: 0.3rem; }
@media (max-width: 54rem) {
  .times-band .wrap { grid-template-columns: 1fr; }
  .times-row div { padding: 0.1rem 0.5rem 0.1rem 0.9rem; }
  .times-row dd { font-size: clamp(1.25rem, 0.9rem + 1.8vw, 1.75rem); }
  .times-row dt { font-size: 0.9375rem; }
}

/* The plain list form, used in page sidebars and the footer */
.times { margin: 0; padding: 0; }
.times div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.times dt { font-weight: 400; }
.times dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { padding-block: var(--band); }
.section.stone { background: var(--stone); }
.lede { font-size: 1.3125rem; line-height: 1.55; }

/* Picture beside text */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.split h3 { margin: 1.5rem 0 0.25rem; }
.split .btn-row { margin-top: 1.5rem; }
/* About: the picture runs the height of the text beside it */
.split.about { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: stretch; }
.split.about img { height: 100%; aspect-ratio: auto; min-height: 22rem; object-position: 85% 55%; }
.split.about p, .split.about ul { max-width: 40rem; }
.split h2 { margin-bottom: 1.25rem; }
.split p { max-width: 34rem; }
.links { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.links a { font-weight: 600; }
@media (max-width: 54rem) { .split, .split.about { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } .split.about img { height: auto; min-height: 0; aspect-ratio: 16 / 10; object-position: 50% 42%; } }

/* Dark band: sermons */
.dark { background: var(--ink); color: #fff; }
.dark a:not(.btn) { color: #fff; }
.dark .lede { color: rgba(255, 255, 255, 0.86); }
.latest { margin: 1.75rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.22); max-width: 30rem; }
.latest p { margin: 0; }
.latest-label { font-size: 1rem; color: rgba(255, 255, 255, 0.75); }
.latest-title { font-family: var(--display); font-size: 1.75rem; line-height: 1.2; margin: 0.2rem 0 0.25rem; }
.latest-date { color: rgba(255, 255, 255, 0.86); }
.latest audio { display: block; width: 100%; height: 2.5rem; margin-top: 1.1rem; }
.latest audio[hidden] { display: none; }
.latest .latest-error { margin-top: 0.75rem; font-size: 1rem; color: #ffd9a8; }

/* Row of picture links */
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3rem); }
.picks a { display: block; color: var(--ink); text-decoration: none; }
.picks img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; transition: opacity 0.2s; }
.picks a:hover img { opacity: 0.88; }
.picks h3 { margin-top: 0.9rem; }
.picks a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.picks p { margin: 0.35rem 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 54rem) { .picks { grid-template-columns: 1fr; max-width: 30rem; } }

/* Scripture */
.scripture { background: var(--stone); padding-block: var(--band); text-align: center; }
.scripture img { width: 52px; height: 52px; margin: 0 auto 1.1rem; opacity: 0.85; }
.scripture blockquote { margin: 0 auto; max-width: 44rem; }
.scripture p { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.35; margin: 0; text-wrap: balance; }
.scripture cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: 1.0625rem; color: var(--ink-soft); }
.scripture cite::before { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--gold); margin: 0 auto 1rem; }

/* Find us: picture to the edge of the page, details beside it */
.visit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.visit-photo img { width: 100%; height: 100%; min-height: 19rem; max-height: 30rem; object-fit: cover; object-position: 50% 60%; }
.visit-text { padding: var(--band) var(--gutter) var(--band) clamp(2rem, 6vw, 5rem); align-self: center; max-width: 34rem; }
.visit-text h2 { margin-bottom: 1.25rem; }
.visit-text address { font-style: normal; font-size: 1.3125rem; line-height: 1.5; }
.visit-text p { margin: 1rem 0 0; font-size: 1.1875rem; }
@media (max-width: 54rem) { .visit { grid-template-columns: 1fr; } .visit-photo img { min-height: 0; aspect-ratio: 3 / 2; } .visit-text { padding-left: var(--gutter); } }

/* ---------- Inner pages ---------- */
.page-head { position: relative; min-height: clamp(13rem, 27vw, 21rem); display: flex; align-items: flex-end; color: #fff; background: var(--ink) center / cover no-repeat; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 20, 40, 0.9) 0, rgba(12, 20, 40, 0.55) 55%, rgba(12, 20, 40, 0.4) 100%); }
.page-head .wrap { position: relative; padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.page-head .rule { margin-bottom: 1.25rem; }
.page-head h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.page-head p { margin: 0.75rem 0 0; font-size: 1.25rem; max-width: var(--measure); color: rgba(255, 255, 255, 0.9); }
.page-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.prose { max-width: var(--measure); }
.prose h2 { margin: 2.25rem 0 0.75rem; font-size: 1.875rem; }
.prose > :first-child { margin-top: 0; }
.aside { background: var(--stone); padding: 1.75rem; border-radius: 2px; position: sticky; top: 1.5rem; }
.aside h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.aside .times { font-size: 1.0625rem; }
.aside address { font-style: normal; margin-top: 1.25rem; line-height: 1.5; font-size: 1.0625rem; }
.aside .btn { margin-top: 1.25rem; width: 100%; text-align: center; }
figcaption { font-size: 0.9375rem; color: var(--ink-soft); margin-top: 0.6rem; line-height: 1.45; }
@media (max-width: 54rem) { .page-body .wrap { grid-template-columns: 1fr; } .aside { position: static; max-width: 30rem; } }

/* History: the years run down the margin */
.years { list-style: none; margin: 0; padding: 0; }
.years li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.5rem; padding-bottom: 0.75rem; }
.years .year { font-family: var(--display); font-size: 1.75rem; line-height: 1.5; color: var(--ink); border-top: 2px solid var(--gold); padding-top: 0.2rem; align-self: start; }
@media (max-width: 34rem) { .years li { grid-template-columns: 1fr; gap: 0.25rem; } .years .year { justify-self: start; padding-right: 1rem; } }

/* Beliefs */
.beliefs { list-style: none; margin: 0; padding: 0; }
.beliefs li { padding: 1.2rem 0 1.2rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.beliefs li::before { content: ""; position: absolute; left: 0; top: 1.85rem; width: 0.55rem; height: 0.55rem; background: var(--ruby); transform: rotate(45deg); }
.beliefs li:first-child { padding-top: 0; }
.beliefs li:first-child::before { top: 0.65rem; }
.beliefs.brief { font-size: 1.0625rem; line-height: 1.5; }
.beliefs.brief li { padding: 0.7rem 0 0.7rem 1.4rem; }
.beliefs.brief li::before { top: 1.2rem; width: 0.5rem; height: 0.5rem; }
.beliefs.brief li:first-child { padding-top: 0.7rem; }
.beliefs.brief li:first-child::before { top: 1.2rem; }

/* Missions */
.missions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.mission-card { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 1rem; align-items: center; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
a.mission-card:hover { border-color: var(--glass); box-shadow: 0 2px 10px rgba(21, 43, 106, 0.12); color: var(--ink); text-decoration: none; }
.mission-mark { grid-row: 1 / 3; width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center; }
.mission-mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mission-mono { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--stone); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--glass-deep); font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.02em; }
.mission-name { font-weight: 600; line-height: 1.3; align-self: end; overflow-wrap: anywhere; }
a.mission-card:hover .mission-name { color: var(--glass-deep); text-decoration: underline; text-underline-offset: 0.2em; }
.mission-host { font-size: 0.9375rem; color: var(--ink-soft); align-self: start; overflow-wrap: anywhere; }

/* Location */
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 2px; display: block; background: var(--stone); }
/* A marked space for a picture that has not been taken yet. Remove the block from the page, or replace it with the picture, before the site goes live. */
.photo-slot { display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; margin: 2rem 0 0; padding: 1.5rem 1.75rem; min-height: 11rem; border: 2px dashed #b9b2a3; border-radius: 2px; background: var(--stone); color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.5; }
.place-photo { margin: 2rem 0 0; }
.place-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.photo-slot strong { font-family: var(--display); font-weight: 400; font-size: 1.375rem; color: var(--ink); }

/* ---------- Sermons ---------- */
.sermon-layout { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.sermon-main { min-width: 0; }
.sermon-years { position: sticky; top: 1.25rem; max-height: calc(100vh - 2.5rem); overflow-y: auto; padding-bottom: 0.5rem; }
.sermon-years-head { font-family: inherit; font-size: 1rem; font-weight: 600; margin: 0 0 0.45rem; }
.sermon-years ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.year-btn { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; width: 100%; font: inherit; font-size: 1.0625rem; font-weight: 600; text-align: left; padding: 0.45rem 0.85rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--glass-deep); cursor: pointer; line-height: 1.3; }
.year-btn small { font-size: 0.8125rem; font-weight: 400; color: var(--ink-soft); }
.year-btn:hover { border-color: var(--glass); }
.year-btn[aria-current="true"] { background: var(--glass); border-color: var(--glass); color: #fff; }
.year-btn[aria-current="true"] small { color: #dfe5f5; }
.year-btn:disabled { opacity: 0.45; cursor: default; }
.year-btn:disabled:hover { border-color: var(--line); }
@media (max-width: 54rem) {
  .sermon-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .sermon-years { position: static; max-height: none; overflow: visible; }
  .sermon-years ul { flex-direction: row; overflow-x: auto; padding: 0.15rem 0.1rem 0.5rem; scrollbar-width: thin; }
  .year-btn { width: auto; flex: 0 0 auto; }
}
.sermon-tools { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: 0.9rem; align-items: end; }
.sermon-tools label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 0.3rem; }
.sermon-tools input, .sermon-tools select { font: inherit; width: 100%; padding: 0.7rem 0.8rem; border: 1.5px solid #8b93a3; border-radius: 3px; background: #fff; color: var(--ink); }
.sermon-tools input:focus, .sermon-tools select:focus { border-color: var(--glass); }
@media (max-width: 46rem) { .sermon-tools { grid-template-columns: 1fr; } }
.sermon-also { margin: 1.1rem 0 0; font-size: 1.0625rem; color: var(--ink-soft); }
.sermon-status { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; justify-content: space-between; margin: 1.25rem 0 0; color: var(--ink-soft); }
.sermon-status.is-quiet { margin: 0; }
.sermon-status button { font: inherit; background: none; border: 0; color: var(--glass); text-decoration: underline; cursor: pointer; padding: 0; }
.sermon-year { font-family: var(--display); font-size: 1.875rem; margin: 2rem 0 0.25rem; scroll-margin-top: 1rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--gold); }
.sermon-list { list-style: none; margin: 0; padding: 0; }
.sermon { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) auto; gap: 0.25rem 1.25rem; align-items: center; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--line); }
.sermon.is-current { background: var(--stone); box-shadow: inset 3px 0 0 var(--gold); }
.sermon time { color: var(--ink-soft); white-space: nowrap; }
.sermon-title { font-weight: 600; overflow-wrap: anywhere; }
.sermon-tag { font-weight: 400; font-size: 0.9375rem; color: var(--ink-soft); margin-left: 0.4rem; white-space: nowrap; }
.sermon-summary { grid-column: 2 / -1; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); margin: 0.1rem 0 0.15rem; max-width: 52rem; }
.sermon-quote { font-family: var(--display); font-size: 1.0625rem; }
.sermon-summary mark { background: #ffe9a8; color: inherit; }
.sermon-summary.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.sermon-toggle[hidden] { display: none; }
.sermon-rest { grid-column: 2 / -1; max-width: 52rem; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.sermon-rest[hidden], .sermon-found[hidden] { display: none; }
.sermon-rest p { margin: 0.55rem 0 0; }
.sermon-rest p:first-child { margin-top: 0.2rem; }
.sermon-rest mark { background: #ffe9a8; color: inherit; }
.sermon-toggle { grid-column: 2 / -1; justify-self: start; font: inherit; font-size: 0.9375rem; font-weight: 600; background: none; border: 0; padding: 0.1rem 0; color: var(--glass); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.sermon-toggle:hover { color: var(--glass-deep); }
.sermon-snippet { grid-column: 2 / -1; font-size: 1rem; color: var(--ink-soft); margin: 0; }
.sermon-snippet mark { background: #ffe9a8; color: inherit; }
.sermon-actions { display: flex; gap: 0.5rem; align-items: center; }
.sermon-actions button, .sermon-actions a { font: inherit; font-size: 1rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 3px; border: 1.5px solid var(--glass); cursor: pointer; text-decoration: none; line-height: 1.4; }
.sermon-actions button { background: var(--glass); color: #fff; min-width: 5.25rem; }
.sermon-actions button:hover { background: var(--glass-deep); border-color: var(--glass-deep); }
.sermon-actions a { background: transparent; color: var(--glass-deep); }
.sermon-actions a:hover { background: var(--stone); }
.sermon-missing { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 46rem) {
  .sermon { grid-template-columns: minmax(0, 1fr) auto; }
  .sermon time { grid-column: 1 / -1; font-size: 1rem; }
  .sermon-snippet, .sermon-summary, .sermon-toggle, .sermon-rest { grid-column: 1 / -1; }
  .sermon-actions a { display: none; }
}
.sermon-empty { padding: 2rem 0; font-size: 1.25rem; }
.sermon-more { margin-top: 1.75rem; }

.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); color: #fff; box-shadow: 0 -4px 18px rgba(20, 33, 61, 0.3); }
.player[hidden] { display: none; }
.player .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 0.5rem 1.25rem; align-items: center; padding-block: 0.75rem; }
.player-title { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-date { font-size: 0.9375rem; opacity: 0.85; display: block; }
.player audio { width: 100%; height: 2.5rem; }
.player button { font: inherit; font-size: 1rem; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 3px; padding: 0.3rem 0.8rem; cursor: pointer; }
.player button:hover { background: rgba(255, 255, 255, 0.15); }
.player-error { grid-column: 1 / -1; margin: 0; font-size: 1rem; color: #ffd9a8; }
.has-player { padding-bottom: 7.5rem; }
@media (max-width: 46rem) { .player .wrap { grid-template-columns: minmax(0, 1fr) auto; } .player audio { grid-column: 1 / -1; grid-row: 2; } .has-player { padding-bottom: 9.5rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.86); padding-block: clamp(3rem, 6vw, 4.5rem); font-size: 1.0625rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1.2fr 0.7fr; gap: 2.5rem clamp(2rem, 6vw, 5rem); }
.site-footer h2 { font-size: 1.375rem; color: #fff; margin-bottom: 0.9rem; }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-links { margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.25rem; color: #fff; text-decoration: none; }
.footer-brand img { width: 52px; height: 52px; filter: brightness(0) invert(1); }
.footer-brand span { font-family: var(--display); font-size: 1.4375rem; line-height: 1.15; }
.site-footer .times div { border-bottom-color: rgba(255, 255, 255, 0.18); padding: 0.45rem 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.2rem 0; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
@media (max-width: 46rem) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .picks img, .site-nav a { transition: none; } }
@media print { .site-nav, .nav-toggle, .player, .video-toggle, .hero video { display: none !important; } body { font-size: 12pt; } }
