/* Silver surfaces and frosted controls */
:root {
  --dark: #000;
  --dark-2: #000;
  --cream: #f4f4f4;
  --ink: #222222;
  --line: #cecece;
  --muted: #565656;
  --silver-field: radial-gradient(ellipse at 8% 0%, #fff 0, transparent 49%),
    radial-gradient(ellipse at 95% 13%, #e7e7e7 0, transparent 53%), #f1f1f1;
  --silver-glass: linear-gradient(145deg, #ffffffed, #f1f1f1b8 58%, #e6e6e6d9);
  --dark-glass: #000;
  --red-card: linear-gradient(145deg, #a81f28, #79141c);
  --silver-edge: #fff;
  --silver-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #b6b6b640, 0 12px 28px #3a3a3a15;
  --silver-radius: 22px;
}

body { background: var(--silver-field); }
.topbar { background: #000; backdrop-filter: blur(15px) saturate(145%); }
.top-activity { color: #e6e6e6; }
.site-header {
  background: linear-gradient(115deg, #fffffff0, #ededede0);
  border-bottom-color: #fff;
  box-shadow: 0 8px 22px #2b2b2b16, inset 0 1px 0 #fff;
}
.site-header.is-scrolled {
  background: linear-gradient(115deg, #ffffffb8, #e7e7e7b3);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
.button, .menu { border-radius: 999px; }
.button:disabled, .quantity-controls button:disabled { cursor: default; opacity: .55; }
.white, .nav-button, .silver-button, .menu {
  background: var(--silver-glass);
  color: var(--ink);
  border: 1px solid #b4b4b481;
  box-shadow: var(--silver-shadow);
}
.white:hover, .nav-button:hover, .silver-button:hover { background: #fff; color: var(--ink); }
.primary { box-shadow: inset 0 1px 0 #ffffff51, 0 5px 13px #80202224; }
.ghost { background: #ffffff20; backdrop-filter: blur(12px); }
footer, .watch-band, .about-invitation, .inner-dark, .give-verse, .deep-conference, .schedule, .watch-prepare {
  background: var(--dark-glass);
}
.home-page main, .who, .visit-reference, .engage, .about-pillars { background: var(--dark); }
.about-hero::before {
  background: linear-gradient(0deg, #191919ef, #2121218c), var(--title-photo, url(media/hero.webp)) center var(--title-position, 42%)/cover no-repeat;
}
.hero-backdrop, .about-hero { background-color: var(--dark); }
.feature-deck, .give-method, .about-pillar-grid article, .watch-next, .watch-player-top {
  background: var(--dark-glass);
  border: 1px solid #bcbcbc51;
  border-radius: var(--silver-radius);
  box-shadow: inset 0 1px 0 #ffffff45, 0 14px 33px #1b1b1b2e;
}
.watch-player-top { border-radius: 0; }
.photo-card { border: 1px solid #dedede60; border-radius: var(--silver-radius); }
.photo-card-icon, .give-method-icon {
  background: linear-gradient(150deg, #ffffff36, #b0b0b019);
  border: 1px solid #eeeeee7a;
  backdrop-filter: blur(10px);
}
.photo-card::after { background: linear-gradient(180deg, #23232308 24%, #1a1a1a69 57%, #181818f5 100%); }
.people, .programs, .media-gallery, .ministries, .give-contact, .ministry-jump,
.ministry-profile:nth-of-type(odd), .contact-form-section, .about-jump, .about-values,
.about-impact, .resource-reading, .resource-shop, .watch-latest {
  background: var(--silver-field);
}
.program-card, .contact-form, .give-grid article, .about-value-grid article, .about-impact-grid article,
.resource-product, .resource-reads details, .resource-study-grid article, .watch-player-card,
.watch-meet-card, .glass-panel {
  background: var(--silver-glass);
  border: 1px solid var(--silver-edge);
  border-radius: var(--silver-radius);
  box-shadow: var(--silver-shadow);
}
.program-card { overflow: hidden; }
.resource-product-art { background: linear-gradient(145deg, #fff, #ececec); }
.resource-product-art img { background: white; }
.resource-product-spin-toggle {
  background: #f8f8f8ed;
  color: var(--ink);
  border-color: #bfbfbf;
  box-shadow: 0 3px 12px #2b2b2b1c;
  backdrop-filter: blur(12px);
}
.resource-product-spin-toggle[aria-pressed="true"] { background: var(--dark); }
.resource-tab-band, .about-jump {
  position: sticky;
  top: calc(var(--masthead-height) + 1px);
  z-index: 2;
}
.about-jump ~ section[id] { scroll-margin-top: var(--section-nav-height, 0px); }
.resource-tab-band {
  padding-block: 10px;
  background: linear-gradient(110deg, #f1f1f1, #e4e4e4 48%, #fbfbfb);
  color: var(--ink);
  border-block: 1px solid #fff;
}
.section.resource-shop { padding-top: clamp(16px, 2vw, 24px); }
.resource-tabs { background: #ffffff61; border-color: #b6b6b6; box-shadow: var(--silver-shadow); }
.resource-tabs a:hover { background: #ffffffb3; }
.resource-tabs a[aria-selected=true] { background: var(--dark-2); color: #fff; }
.contact-field input, .contact-field select, .contact-field textarea {
  background: #ffffffda;
  border-color: #a9a9a9;
  border-radius: 12px;
}
.image-placeholder, .program-image.prayer, .program-image.study {
  background: repeating-linear-gradient(135deg, transparent 0 19px, #71717114 20px 21px), #e2e2e2;
  color: #424242;
}
.image-placeholder span { background: #fbfbfb; border-color: #adadad; }
.watch-meet-visual { background: radial-gradient(ellipse at top right, #6c6c6c, #2d2d2d 75%); }
.watch-meet-study { background: radial-gradient(ellipse at top right, #7e7e7e, #2d2d2d 75%); }

.shop-main { background: var(--silver-field); }
.shop-section { padding-block: clamp(32px, 5vw, 64px); }
.shop-tools { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.shop-tools .button, .shop-toolbar .button { min-height: 42px; }
[data-cart-count] { background: #e3e3e3; border-radius: 999px; padding: 1px 8px; }
.shop-title { font-size: clamp(31px, 4.3vw, 54px); line-height: 1.06; margin: 0 0 20px; }
.shop-intro { max-width: 64ch; margin: 0 0 28px; color: var(--muted); }
.shop-product, .shop-columns { display: grid; gap: clamp(16px, 3vw, 36px); align-items: start; }
.shop-product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.shop-columns { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); margin-top: 24px; }
.shop-product .resource-product-art { overflow: hidden; }
.shop-panel { padding: clamp(16px, 2.4vw, 27px); min-width: 0; }
.shop-panel h2 { margin: 0 0 15px; line-height: 1.15; }
.shop-panel p, .product-details dd { color: var(--muted); }
.product-details .product-detail { font-size: 18px; font-weight: 700; color: var(--ink); }
.product-details dl { border-block: 1px solid var(--line); padding-block: 13px; }
.product-details dt { font-weight: 700; }
.product-details dd { margin: 0; }
.shop-add { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.shop-add input { width: 85px; }
.shop-add .button { min-height: 44px; }
.shop-status { font-size: 14px; }
.shop-status:empty { display: none; }
.shop-form { display: grid; gap: 15px; }
.shop-form h2 { margin: 0; }
.shop-form .button { justify-self: start; }
.shop-form .shop-status { margin: 0; }
.cart-list, .order-list { margin: 0; padding: 0; list-style: none; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); }
.cart-item img { border: 1px solid var(--line); border-radius: 12px; }
.cart-item p { font-size: 13px; margin: 3px 0; }
.cart-item-name { font-weight: 700; }
.cart-item-name:hover, .order-list a:hover, .resource-product h3 a:hover { color: var(--red); }
.cart-remove { border: 0; background: none; color: #8e1f1d; text-decoration: underline; padding: 0; font-size: 13px; }
.quantity-controls { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.quantity-controls button { min-width: 34px; min-height: 34px; border-radius: 50%; color: var(--ink); background: #fff; border: 1px solid #b7b7b7; }
.order-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.order-list li span { flex-shrink: 0; font-weight: 700; }
.shop-confirmation { max-width: 640px; margin-top: 24px; }
@media (max-width: 1100px) {
  .site-header nav { background: #f5f5f5ea; backdrop-filter: blur(18px); }
}
@media (max-width: 760px) {
  .shop-product, .shop-columns { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .cart-item { grid-template-columns: 56px minmax(0, 1fr); }
  .quantity-controls { grid-column: 2; }
}

/* Silver social dock and red glass Watch Online action */
.social-sidebar ul {
  background: linear-gradient(145deg, #fffffff0, #e3e3e3d9);
  border: 1px solid #fff;
  box-shadow: var(--silver-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.social-sidebar a { color: var(--ink); }
.social-sidebar a:hover, .social-sidebar a:focus-visible { background: #fff; color: var(--red); }
@media (max-width: 980px), (max-height: 480px) {
  .social-sidebar {
    background: linear-gradient(110deg, #f9f9f9e8, #e4e4e4e8);
    border-top: 1px solid #fff;
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
  .social-sidebar ul { background: none; border: 0; box-shadow: none; backdrop-filter: none; }
}
.site-header .nav-button {
  background: linear-gradient(160deg, #c43439, #ac2129 54%, #801522);
  color: #fff;
  border-color: #e6e6e6;
  box-shadow: inset 0 1px 0 #fff8, inset 0 -1px 0 #e6e6e685, 0 4px 14px #7d203239;
}
.site-header .nav-button .icon { color: #fff; }
.site-header .nav-button:hover { background: linear-gradient(160deg, #af252d, #871825); }
.engage-card:hover .photo-card-icon, .engage-card:focus-visible .photo-card-icon {
  background: #ffffffde;
  color: #922020;
}
.resource-replays { background: var(--silver-field); }

.resource-product-link { display: flex; flex: 1; flex-direction: column; }
.resource-product-link:hover .text-link { color: var(--red); }
.resource-product-link:focus-visible { outline-offset: -4px; border-radius: inherit; }
.product-gallery { min-width: 0; }
.product-gallery-stage { aspect-ratio: 1; overflow: hidden; background: #fff; }
.product-gallery-stage a, .product-gallery-stage img, .product-gallery-video {
  display: block;
  width: 100%;
  height: 100%;
}
.product-gallery-stage a { cursor: zoom-in; }
.product-gallery-stage a:focus-visible { outline-offset: -5px; }
.product-gallery-stage img, .product-gallery-video { object-fit: contain; }
.product-gallery-controls { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gallery-view {
  display: grid;
  justify-items: center;
  min-width: 65px;
  gap: 4px;
  padding: 5px 5px 4px;
  border: 1px solid #b7b7b7;
  border-radius: 13px;
  background: var(--silver-glass);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.gallery-view img { width: 52px; height: 48px; object-fit: contain; border-radius: 7px; background: #fff; }
.gallery-view[aria-pressed="true"], .gallery-spin[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.gallery-spin { align-self: center; }

/* Shared rounding for photo, video, and artwork surfaces */
.photo-card, .image-placeholder, .inner-photo, .about-mission-photo, .about-round,
.feature-slide img, .feature-slide .image-placeholder, .ministry-page-media,
.resource-book-art, .featured-video, .watch-player-card .featured-video, .watch-empty-player,
.watch-meet-visual, .watch-player-card, .watch-meet-card, .program-card, .resource-product,
.product-gallery-stage, .deep-art {
  border-radius: var(--silver-radius);
}
.watch-empty-player, .watch-meet-visual { overflow: hidden; }
#latest-video .wrap { max-width: none; }
.schedule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schedule-lead { grid-column: 1 / -1; padding: clamp(20px, 3.3vw, 40px) 0 18px; }
.schedule h2.display { font: 700 clamp(36px, 5.6vw, 76px)/.99 var(--display); letter-spacing: -.075em; }
.schedule-grid .service { border-top: 1px solid #ffffff2d; }
.schedule-grid .service:nth-child(2) { border-left: 0; padding-left: 0; }
.service strong { font-family: var(--display); font-weight: 700; letter-spacing: -.045em; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.resource-product { position: relative; }
.shop-card-spin {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  min-height: 34px;
  padding-inline: 11px;
  font-size: 11px;
}
.shop-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  pointer-events: none;
}
.faith-grid > img, .media-grid img, .media-grid video, .media-grid iframe {
  border-radius: var(--silver-radius);
}

.schedule h2.display { font-size: clamp(27px, 3.65vw, 46px); }
.schedule .service strong { font-size: clamp(21px, 3.2vw, 38px); }
.conference-dates { padding: 24px; }
.conference-dates h3 { margin-top: 0; }
.conference-dates ul { padding-left: 20px; margin-bottom: 0; }
.conference-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; max-width: 760px; }
#latest-video .watch-live-layout { align-items: stretch; grid-template-columns: minmax(0, 1fr); gap: 0; }
.watch-live-media { min-width: 0; align-self: center; }
.watch-live-media .watch-player-top, .watch-live-media .watch-empty-player,
.watch-live-media .featured-video { border-radius: 0; }
.watch-live-layout .watch-next { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 0; border-radius: 0; box-shadow: none; padding: 10px clamp(12px, 2vw, 22px); }
.watch-meet-visual h3 { margin: 0; font: 700 clamp(27px, 3.5vw, 44px)/1.03 var(--display); letter-spacing: -.055em; }
.watch-meet-copy .watch-meet-next { padding-bottom: 0; }
.watch-midweek-countdown { margin: 10px 0 18px; }
.watch-midweek-countdown > div { background: #fff9; border-color: #22222224; }
.watch-midweek-countdown span { color: #525252; }
@media (max-width: 960px) {
  #sunday-replays .watch-replay-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(230px, 43vw, 330px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    padding-bottom: 12px;
  }
  #sunday-replays .watch-replay-grid > li { scroll-snap-align: start; }
}
@media (max-width: 680px) {
  #sunday-replays .watch-replay-grid { grid-auto-columns: min(82vw, 330px); }
}

.watch-live-layout .watch-next { display: grid; grid-template-columns: minmax(0, auto) minmax(170px, 390px) auto; justify-content: space-between; align-items: center; gap: 9px; }
.watch-live-layout .watch-next h3, .watch-live-layout .watch-countdown { margin: 0; }
#latest-video { padding-block: clamp(24px, 3vw, 40px); }
.watch-live-media .watch-empty-player, #latest-player { aspect-ratio: 21 / 9; max-height: 400px; }
.watch-live-layout .watch-empty-player img { height: 100%; object-fit: cover; }
.watch-next-label p { margin: 3px 0 0; font-size: 13px; color: #dedede; }
.watch-live-layout .watch-next h3 { font-size: clamp(18px, 2.15vw, 25px); }
.watch-live-layout .watch-countdown > div { padding-block: 5px; }
.watch-live-layout .watch-countdown strong { font-size: 23px; }
.watch-live-layout .watch-next .button { min-height: 36px; }
.watch-meet-grid { grid-template-columns: minmax(0, 1fr); }
.watch-meet-card .watch-meet-visual { min-height: 0; border-radius: 0; padding: 10px 16px; }
.watch-meet-visual span { margin-bottom: 5px; }
.watch-meet-visual svg { top: 16px; right: 20px; width: 34px; height: 34px; }
.watch-meet-visual h3 { font-size: clamp(22px, 3vw, 32px); }
.watch-meet-visual p { margin: 4px 0 0; font-size: 13px; }
.watch-study-card .featured-video { border-radius: 0; }
.watch-meet-copy > p:first-child { margin-top: 0; }
.watch-midweek-countdown { max-width: 390px; margin: 8px 0 10px; }
.watch-midweek-countdown > div { padding-block: 4px; }
.watch-midweek-countdown strong { font-size: 21px; }
.watch-meet-copy { padding: 12px 16px; }
.watch-meet-copy > p { margin-block: 6px; }
.watch-meet-copy .watch-meet-next { padding-top: 8px; margin-top: 8px; }
.watch-meet-copy .button { min-height: 38px; }
.schedule-grid .service:first-child { border-left: 0; padding-left: 0; }
.schedule-grid .service:nth-child(2) { border-left: 1px solid #ffffff2d; padding-left: clamp(8px, 2vw, 22px); }
.engage-dialog { color: var(--ink); width: min(490px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; }
.engage-dialog::backdrop { background: #1f1f1fa8; }
.engage-dialog h2 { margin: 0 36px 10px 0; }
.engage-dialog-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: inherit; font-size: 26px; padding: 4px 10px; }
.engage-example { background: #efefef; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.engage-dialog-form { display: grid; gap: 12px; }
.engage-dialog-form .button { justify-self: start; }
.about-timeline details { margin-top: 10px; }
.about-timeline details .featured-video { margin-top: 10px; }
@media (max-width: 850px) {
  .watch-live-layout .watch-next { grid-template-columns: minmax(0, 390px) auto; }
  .watch-next-label { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .watch-live-layout .watch-next { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .watch-live-layout .watch-countdown { width: min(100%, 390px); }
}

/* Shared inner-page title band */
.about-hero {
  block-size: 218px;
  display: grid;
  align-items: center;
  padding-block: 12px;
}
.about-hero h1, .about-hero.give-hero h1 { font-size: clamp(30px, 4.5vw, 58px); }
.about-hero .eyebrow { margin-bottom: 7px; }
.about-hero .inner-deck { margin-top: 9px; font-size: clamp(13px, 1.3vw, 17px); line-height: 1.4; }
.about-hero .button { margin-top: 12px; min-height: 38px; }
.schedule .service-day { font-size: clamp(11px, 1.45vw, 17px); letter-spacing: .055em; }
.schedule .service .service-name { font-size: clamp(15px, 2.4vw, 29px); margin: 6px 0 4px; }
.schedule .service-time { font-size: clamp(11px, 1.35vw, 15px); color: #e1e1e1; font-variant-numeric: tabular-nums; }
.schedule .service { padding-right: 14px; }
.schedule .service-arrow { bottom: 12px; }
.watch-meet-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.watch-meet-details { min-width: 0; }
.watch-meet-art {
  min-width: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, transparent 0 19px, #ffffff0c 20px 21px), var(--dark-glass);
  color: #eee;
  padding: 18px;
  text-align: center;
}
.watch-meet-art span { border: 1px solid #ffffff50; border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.watch-meet-art .featured-video { width: 100%; }
.watch-live-layout .watch-next { border-bottom: 1px solid #ffffff24; }
.resource-product:nth-child(-n+4) .resource-product-art { overflow: hidden; }
@media (max-width: 620px) {
  .about-hero { block-size: 206px; }
  .watch-meet-card { grid-template-columns: minmax(0, 1fr); }
  .watch-meet-art { min-height: 84px; }
}

.site-footer {
  background: #141414;
  color: #ededed;
  padding: clamp(36px, 5vw, 62px) 0 20px;
}
.footer-brand { margin-bottom: clamp(28px, 4vw, 48px); }
.footer-brand img { width: clamp(126px, 15vw, 172px); }
.footer-layout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px clamp(18px, 3vw, 42px); align-items: start; }
.footer-layout h2 { color: #fff; font-size: 18px; line-height: 1.2; margin: 0 0 15px; }
.footer-layout h2::after { content: ''; display: block; width: 25px; height: 2px; margin-top: 6px; background: var(--red); }
.footer-layout ul { list-style: none; padding: 0; margin: 0; }
.footer-layout a { color: #e2e2e2; font-size: 14px; }
.footer-layout a:hover, .footer-layout a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-detail-icon { margin-bottom: 6px; }
.footer-schedule li + li { margin-top: 5px; }
.footer-schedule small { color: #bdbdbd; font-size: 11px; white-space: nowrap; }
.footer-layout address { font-style: normal; }
.footer-contact { display: grid; gap: 5px; overflow-wrap: anywhere; }
.footer-social ul { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff66; border-radius: 50%; }
.footer-social a:hover { border-color: #fff; background: #ffffff15; }
.site-footer .footer-bottom { margin-top: 30px; }
@media (max-width: 760px) {
  .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .footer-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Titles and red accents */
h1, h2, h3, .display { font-weight: 600; }

.feature-deck, .give-method, .about-pillar-grid article, .program-card {
  background: var(--red-card);
  border-color: #ffffff40;
  color: #fff;
}
.program-card .card-meta, .program-card .card-body p,
.program-card .text-link, .feature-slide a {
  color: #fff;
}
.program-card .text-link { border-bottom-color: currentColor; }
.photo-card::after {
  background: linear-gradient(180deg, transparent 24%, #58101773 58%, #3f070efa 100%);
}

/* Typography and site theme */
h1, .display { letter-spacing: -.045em; line-height: 1.07; }
.eyebrow { font-weight: 700; }
.footer-social a:hover, .footer-social a:focus-visible { color: #ff545c; border-color: #ff545c; }

.theme-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--silver-glass);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--red); }
.theme-toggle .theme-sun, [data-theme="dark"] .theme-toggle .theme-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
.site-header .nav-shell { gap: 12px; }
.site-header nav { gap: clamp(10px, 1.2vw, 18px); margin-inline-start: auto; }
@media (max-width: 1100px) {
  .site-header .menu { margin-inline-start: auto; }
  .site-header nav { gap: 0; }
}

[data-theme="dark"] {
  color-scheme: dark;
  --cream: #121212;
  --ink: #f1f1f1;
  --muted: #c4c4c4;
  --line: #454545;
  --silver-field: #000;
  --silver-glass: #171717;
  --silver-edge: #414141;
  --silver-shadow: inset 0 1px 0 #ffffff1a;
}
[data-theme="dark"] .site-header { background: #151515; border-color: var(--line); box-shadow: none; }
[data-theme="dark"] .site-header.is-scrolled { background: #151515dc; }
@media (max-width: 1100px) {
  [data-theme="dark"] .site-header nav { background: #151515f2; }
}
[data-theme="dark"] .resource-tab-band,
[data-theme="dark"] .resource-tabs,
[data-theme="dark"] .social-sidebar,
[data-theme="dark"] .social-sidebar ul { background: #171717; border-color: var(--line); }
[data-theme="dark"] .resource-tabs a:hover,
[data-theme="dark"] .resource-tabs a[aria-selected="true"] { background: #741821; }
[data-theme="dark"] .social-sidebar a:hover,
[data-theme="dark"] .social-sidebar a:focus-visible { background: #242424; color: #ff747c; }
[data-theme="dark"] :is(.about-copy, .inner-copy, .media-gallery, .give-grid, .about-value-grid, .about-impact-grid, .about-timeline, .resource-product-copy) p:not(.eyebrow),
[data-theme="dark"] :is(.resource-read-body, .watch-player-copy time, .watch-meet-copy p) { color: var(--muted); }
[data-theme="dark"] :is(.eyebrow, .text-link, .cart-remove, .about-jump a:hover, .site-header nav > a:not(.button):hover, .site-header nav > a[aria-current="page"]) { color: #ff9398; }
[data-theme="dark"] :is(.primary, .feature-deck .text-link, .program-card .text-link) { color: #fff; }
[data-theme="dark"] :is(.contact-field input, .contact-field select, .contact-field textarea, .quantity-controls button, .resource-product-spin-toggle, .engage-example, .watch-midweek-countdown > div, .watch-meet-copy .watch-meet-pending) {
  background: #242424;
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] :is(.white, .silver-button):hover { background: #303030; color: #fff; }

/* Hero spacing and light-mode sections */
.welcome-frame { padding-block: clamp(76px, 10vw, 140px) clamp(70px, 8vw, 118px); }

:root:not([data-theme="dark"]) :is(.who, .visit-reference, .engage, .watch-band, .about-pillars, .inner-dark, .about-invitation, .give-verse, .deep-conference, .watch-prepare) {
  background: #f8f8f9;
  color: var(--ink);
}
:root:not([data-theme="dark"]) :is(.visit-reference, .watch-band, .inner-dark, .give-verse, .watch-prepare) { background: #ededf0; }
:root:not([data-theme="dark"]) :is(.who-copy, .visit-location, .inner-dark .inner-copy, .deep-conference .inner-copy, .watch-prepare) p:not(.eyebrow),
:root:not([data-theme="dark"]) :is(.engage-intro, .about-pillars .section-head) > p:last-child { color: var(--muted); }
:root:not([data-theme="dark"]) :is(.who-copy, .visit-location, .watch-grid, .watch-prepare-actions) .text-link,
:root:not([data-theme="dark"]) :is(.who, .visit-reference, .engage, .watch-band, .about-pillars, .inner-dark, .about-invitation, .deep-conference, .watch-prepare) .eyebrow.light,
:root:not([data-theme="dark"]) .give-verse .wrap > p { color: #941d25; }
:root:not([data-theme="dark"]) .engage-watermark { color: #22222210; }
:root:not([data-theme="dark"]) :is(.watch-band, .inner-dark, .about-invitation, .deep-conference, .watch-prepare) .ghost {
  color: var(--ink);
  border-color: #767676;
}
:root:not([data-theme="dark"]) .schedule { background: #fff; color: var(--ink); }
:root:not([data-theme="dark"]) .schedule-grid .service {
  color: var(--ink);
  border-color: var(--line);
}
:root:not([data-theme="dark"]) .schedule :is(.service-day, .service-name, .service-time) { color: var(--ink); }
:root:not([data-theme="dark"]) .schedule .service:hover { background: #f7ecee; }
:root:not([data-theme="dark"]) .schedule .service-day small { color: #941d25; }
:root:not([data-theme="dark"]) .site-footer { background: #fff; color: var(--ink); }
:root:not([data-theme="dark"]) .site-footer :is(h2, a, small) { color: var(--ink); }
:root:not([data-theme="dark"]) .site-footer :is(.footer-bottom, .footer-social a) { border-color: #0004; }
:root:not([data-theme="dark"]) .site-footer .footer-social a:is(:hover, :focus-visible) { color: #a81f28; border-color: currentColor; }

:root:not([data-theme="dark"]) .visit-location strong { color: var(--ink); }
:root:not([data-theme="dark"]) .visit-location > .icon { color: #941d25; }

/* Alternate visible content sections, including the footer. */
:root {
  --section-base: #fff;
  --section-alternate: #f4f4f5;
}
:root[data-theme="dark"] {
  --section-base: #000;
  --section-alternate: #141414;
}
#main > section:not(.hero, .about-hero),
:root body .site-footer[id] {
  background: var(--section-base);
}
#main > section:nth-child(even of section:not(.hero, .about-hero, [hidden])),
:root body:has(#main > section:nth-child(odd of section:not(.hero, .about-hero, [hidden])):nth-last-child(1 of section:not(.hero, .about-hero, [hidden]))) .site-footer[id] {
  background: var(--section-alternate);
}
#main > #directions > section,
#main > #visit:not(.visit-reference) .schedule {
  background: transparent;
}

/* Add room above the schedule and replay headings. */
#sunday-replays { padding-top: clamp(64px, 7vw, 100px); }
.home-page .visit-reference { padding-top: clamp(36px, 5vw, 68px); }

/* Let the page show through the sticky Resources bar. */
#main > .resource-tab-band {
  background: transparent;
  border-color: transparent;
}
#main > .resource-tab-band .resource-tabs {
  background: #ffffffe0;
  backdrop-filter: blur(14px);
}
[data-theme="dark"] #main > .resource-tab-band .resource-tabs { background: #171717e0; }

.product-colours { margin-block: 18px; }
.product-colours p { margin: 0 0 8px; }
.colour-options { display: flex; flex-wrap: wrap; gap: 8px; }
.colour-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}
.colour-option span { width: 16px; height: 16px; border: 1px solid #888; border-radius: 50%; background: var(--swatch); }
.colour-option:hover { border-color: currentColor; }
.colour-option[aria-current="true"] { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; font-weight: 700; }

/* A shared reading scale for the church pages and the shop. */
:root {
  --title-hero: clamp(2.125rem, 1.55rem + 2vw, 3.25rem);
  --title-page: clamp(1.875rem, 1.55rem + 1.45vw, 2.625rem);
  --title-section: clamp(1.5rem, 1.25rem + 1.2vw, 2.125rem);
  --title-card: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --section-space: clamp(2.25rem, 1.5rem + 2.6vw, 4rem);
  --card-inset: clamp(.875rem, .65rem + .7vw, 1.25rem);
  --silver-radius: 16px;
}

body { font-size: 1rem; line-height: 1.55; }
.site-header .brand img { width: 94px; }
@media (min-width: 1101px) {
  html { --nav-height: 52px; --topbar-height: 26px; }
}

.welcome-frame {
  min-height: clamp(240px, 25vw, 340px);
  padding: clamp(48px, 6vw, 84px) 0;
}
.hero-copy h1 { font-size: var(--title-hero); line-height: 1.06; font-weight: 600; }
.hero-copy .eyebrow { font-size: clamp(.75rem, 1vw, .875rem); margin-bottom: 10px; }
.hero-copy .actions { margin-top: 22px; }
.actions .button { min-height: 44px; padding-inline: 18px; }
.reference-hero { padding-bottom: 26px; }
.feature-deck { max-width: 840px; padding: var(--card-inset); }
.feature-slide h2 { font-size: var(--title-section); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; }
.feature-slide p:not(.eyebrow) { font-size: .9375rem; }
.feature-controls { margin-top: 8px; }

.about-hero {
  block-size: auto;
  min-block-size: clamp(160px, 15vw, 186px);
  padding-block: 18px;
}
.about-hero h1, .about-hero.give-hero h1 {
  font-size: var(--title-page);
  font-weight: 600;
  line-height: 1.1;
}
.about-hero .inner-deck { font-size: .9375rem; line-height: 1.5; }
#main .display, .shop-title {
  font-size: var(--title-section);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 600;
}
.section:not(.resource-shop), .watch-grid { padding-block: var(--section-space); }
#sunday-replays { padding-top: var(--section-space); }
.home-page .visit-reference { padding-block: var(--section-space) 28px; }
.section-head { margin-bottom: clamp(18px, 2vw, 28px); }
.who-copy { max-width: 68ch; }
.who-copy > p:not(.eyebrow), .about-copy p:not(.eyebrow), .product-details .product-detail {
  font-size: 1rem;
  line-height: 1.6;
}
.who-copy > p:not(.eyebrow) { margin-block: 16px; }
.about-copy, .inner-copy { min-width: 0; }
.engage-watermark { font-size: clamp(60px, 12vw, 144px); }
.engage-card { min-height: clamp(208px, 22vw, 282px); }
.engage-card-copy, .card-body, .resource-product-copy, .give-grid article,
.about-pillar-grid article, .about-value-grid article, .about-impact-grid article { padding: var(--card-inset); }

#main :is(.card-body, .photo-card, .resource-product, .resource-study, .give-grid,
.give-method, .give-thanks, .about-pillar-grid, .about-value-grid, .about-impact-grid,
.about-timeline, .watch-meet-visual, .watch-player-copy) h3 {
  font-size: var(--title-card);
  line-height: 1.25;
  letter-spacing: -.018em;
}
.schedule .service .service-name { font-size: var(--title-card); }
.schedule .service-day { font-size: clamp(.75rem, 1.1vw, .875rem); }
.schedule .service-time { font-size: .8125rem; }
.give-verse blockquote p { font-size: var(--title-section); }
.give-method { min-height: 0; padding: 22px 16px; }
.give-method-icon { width: 48px; height: 48px; }
.resource-tabs a { font-size: .8125rem; }
.site-footer { padding-block: var(--section-space) 16px; }
.footer-layout h2 { font-size: 1rem; }

@media (max-width: 680px) {
  .welcome-frame { padding-block: 48px; }
  .hero-copy .actions { gap: 8px; }
  .feature-slide p:not(.eyebrow) { font-size: .875rem; }
  .contact-field :is(input, select, textarea) { font-size: 1rem; }
  .resource-shop .resource-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .resource-product-copy { padding: 12px; }
  #main .resource-product h3 { font-size: 1rem; }
  .shop-product .resource-product-copy { overflow-wrap: anywhere; }
}
@media (max-width: 680px) {
  .top-inner { grid-template-columns: minmax(0, 1fr); }
  .top-inner .top-location { white-space: normal; line-height: 1.15; }
  .resource-tab-band .resource-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .resource-tabs a { flex: none; white-space: nowrap; }
}

.site-header .brand img { width: 78px; }
.site-header .nav-shell { gap: 9px; }
.site-header .nav-board {
  gap: 6px;
  min-height: 34px;
  padding-inline: 11px;
  border-color: var(--line);
  color: var(--ink);
  font-size: .75rem;
  text-transform: none;
}
.site-header .nav-board .icon { width: 16px; height: 16px; color: #b62a36; }
[data-theme="dark"] .site-header .nav-board .icon { color: #ff909b; }
.site-header .nav-board:hover { background: var(--section-alternate); }
@media (min-width: 1101px) {
  .site-header .nav-shell { width: min(1160px, calc(100% - 44px)); }
  .site-header nav { gap: clamp(8px, .85vw, 13px); font-weight: 600; }
  .site-header .nav-button { min-height: 34px; }
  .site-header .theme-toggle { width: 34px; height: 34px; flex-basis: 34px; }
}
@media (max-width: 1100px) {
  .site-header .nav-shell { width: calc(100% - 32px); }
  .site-header .menu, .site-header .theme-toggle { width: 44px; height: 44px; }
  .site-header .theme-toggle { flex-basis: 44px; }
  .site-header .menu[aria-expanded="true"] + nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0 12px;
  }
  .site-header nav { padding: 6px 16px 12px; }
  .site-header nav > a { display: flex; align-items: center; min-height: 44px; }
  .site-header nav .button { min-height: 44px; margin-top: 8px; padding-inline: 8px; }
}
@media (max-width: 760px) {
  html { --topbar-height: 56px; --nav-height: 50px; }
  .top-inner { grid-template-rows: 24px 32px; }
  .site-header .brand img { width: 72px; }
}

/* Dark-mode text colours are paired with the surfaces that carry them. */
:root[data-theme="dark"] {
  --ink: #fafafa;
  --muted: #dedede;
  --copy-accent: #ffb5ba;
  --red-card: linear-gradient(145deg, #871924, #65101a);
}
[data-theme="dark"] :is(.people-copy, .ministries-copy, .section-head,
.who-copy, .resource-study-grid article, .watch-player-copy) > p:not(.eyebrow),
[data-theme="dark"] :is(.contact-field label span, .watch-midweek-countdown span,
.watch-countdown span, .footer-schedule small, .watch-next-label p) {
  color: var(--muted);
}
[data-theme="dark"] :is(.display em, .about-value-grid h3, .about-timeline time,
.contact-links a, .contact-social a, .give-grid span, .watch-section-heading .eyebrow,
.resource-product-link:hover .text-link, .cart-item-name:hover, .order-list a:hover,
.resource-product h3 a:hover) { color: var(--copy-accent); }

[data-theme="dark"] :is(.feature-deck, .program-card, .give-method, .about-pillar-grid article)
:is(h2, h3, p, a, span:not(.image-placeholder span), dt, dd) { color: #fff; }
[data-theme="dark"] .program-card .image-placeholder span { background: #fbfbfb; color: #242424; }
:root[data-theme="dark"] .site-header nav > .nav-button[aria-current="page"] { color: #fff; }
[data-theme="dark"] [data-cart-count] { background: #353535; color: #fff; }
[data-theme="dark"] .engage-dialog { background: #171717; color: var(--ink); }
[data-theme="dark"] ::placeholder { color: #c9c9c9; opacity: 1; }
[data-theme="dark"] :is(.watch-meet-visual, .watch-meet-study) {
  background: radial-gradient(ellipse at top right, #464646, #222 75%);
  color: #fff;
}

[data-theme="dark"] .hero-backdrop::after {
  background: linear-gradient(0deg, #000 0%, #080808cc 25%, #080808b8 70%, #080808bd);
}
[data-theme="dark"] .about-hero::before {
  background: linear-gradient(0deg, #111e, #111b), var(--title-photo, url(media/hero.webp)) center var(--title-position, 42%)/cover no-repeat;
}
[data-theme="dark"] :is(.hero-copy, .about-hero) :is(h1, .eyebrow, .inner-deck) { color: #fff; }
[data-theme="dark"] .photo-card::after {
  background: linear-gradient(180deg, #16020512, #200407bd 54%, #180307f5);
}
[data-theme="dark"] :is(.engage-card-copy, .ministry-card-title) { color: #fff; }
[data-theme="dark"] .engage-card-copy p { color: #fafafa; }

.reference-hero .hero-group-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.reference-hero .welcome-frame {
  min-height: clamp(390px, 42vw, 550px);
  align-content: start;
  padding-block: clamp(62px, 8vw, 112px) 48px;
}
@media (max-width: 680px) {
  .reference-hero .welcome-frame {
    min-height: 360px;
    padding-block: 50px 70px;
  }
  .reference-hero .hero-group-photo { object-position: 50% 38%; }
}
