:root {
  --agape-green: #0a3d26;
  --agape-forest: #183125;
  --agape-gold: #d4af37;
  --agape-ivory: #f8f6ef;
  --agape-sage: #e5ebe5;
  --agape-dark-gold: #806318;
  --agape-white: #fff;
  --agape-muted: #4c5b51;
  --agape-border: #d6ded4;
  --agape-radius: 20px;
  --agape-control-radius: 9px;
  --agape-shadow: 0 8px 28px rgba(24, 49, 37, .08);
  --agape-content: 1248px;
  --agape-gutter: clamp(16px, 4.1vw, 64px);
  --agape-space: clamp(40px, 5.8vw, 86px);
  --agape-hero: clamp(2.6rem, 5.2vw, 4.7rem);
  --agape-h1: clamp(2.05rem, 4.3vw, 3.85rem);
  --agape-h2: clamp(1.65rem, 3vw, 2.7rem);
  --agape-h3: clamp(1.18rem, 2vw, 1.5rem);
  --agape-body: clamp(1rem, 1.25vw, 1.125rem);
  --agape-header-height: 82px;
}

body.agape-shell-body {
  background: var(--agape-ivory);
  color: var(--agape-forest);
  font-family: Poppins, sans-serif;
}

.agape-width {
  width: min(calc(100% - 2 * var(--agape-gutter)), var(--agape-content));
  margin-inline: auto;
}

.agape-sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.agape-shell-body :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--agape-forest);
  box-shadow: 0 0 0 2px var(--agape-white);
  outline-offset: 2px;
}

.agape-shell-body [id] {
  scroll-margin-top: calc(var(--agape-header-height) + 18px);
}

.agape-section { padding-block: var(--agape-space); }

.agape-home h1, .agape-home h2, .agape-home h3,
.agape-visit h1, .agape-visit h2, .agape-visit h3 {
  margin: 0 0 .5em;
  font-weight: 650;
  color: var(--agape-green);
  letter-spacing: -.035em;
  line-height: 1.12;
}
.agape-home h2, .agape-visit h2 { font-size: var(--agape-h2); }
.agape-home h3, .agape-visit h3 { font-size: var(--agape-h3); }
.agape-home p, .agape-visit p {
  max-width: 62ch;
  margin: 0 0 1em;
  color: var(--agape-muted);
  font-size: var(--agape-body);
  line-height: 1.65;
}
.agape-home a:not(.agape-button), .agape-visit a:not(.agape-button) { color: var(--agape-green); }

.agape-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  margin-top: 1.1rem;
}
.agape-button, .agape-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 650;
}
.agape-button {
  padding: .62rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--agape-control-radius);
  background: var(--agape-gold);
  color: var(--agape-forest);
  text-decoration: none;
  line-height: 1.3;
}
.agape-button:hover { background: #e5c65b; color: var(--agape-forest); }
.agape-button-outline { border-color: var(--agape-green); background: transparent; color: var(--agape-green); }
.agape-button-outline:hover { background: var(--agape-sage); }
.agape-text-link { color: var(--agape-green); text-decoration: underline; text-underline-offset: .22em; }

.agape-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--agape-border);
  background: var(--agape-ivory);
}
.agape-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--agape-header-height);
  gap: 16px;
}
.agape-brand { display: block; }
.agape-brand img, .agape-footer-brand img { display: block; object-fit: contain; }
.agape-brand img { width: 72px; height: 64px; }
.agape-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2px, 1vw, 15px);
}
.agape-nav a, .agape-resources summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 7px;
  color: var(--agape-green);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.agape-nav a:hover, .agape-nav a[aria-current], .agape-resources[data-current] summary {
  text-decoration: underline;
  text-decoration-color: var(--agape-dark-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .42em;
}
.agape-resources { position: relative; }
.agape-resources summary { gap: .5em; list-style: none; cursor: pointer; }
.agape-resources summary::-webkit-details-marker { display: none; }
.agape-resources summary::after {
  content: "";
  width: .38em;
  height: .38em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-.14em);
}
.agape-resources[open] summary::after { transform: rotate(225deg) translate(-.09em,-.05em); }
.agape-resources-links {
  position: absolute;
  left: 0;
  min-width: 180px;
  padding: 5px 9px;
  border: 1px solid var(--agape-border);
  border-radius: 12px;
  background: var(--agape-white);
  box-shadow: var(--agape-shadow);
}
.agape-menu-toggle { display: none; }
.agape-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  translate: 0 -160%;
  padding: 12px;
  background: var(--agape-green);
  color: white;
  border-radius: 6px;
}
.agape-skip:focus { translate: 0; z-index: 2; }
body.admin-bar .agape-header { top: 32px; }

.agape-footer {
  padding: 44px 0 18px;
  background: var(--agape-forest);
  color: var(--agape-white);
  font-size: .9rem;
  line-height: 1.6;
}
.agape-footer a { color: inherit; text-underline-offset: .22em; }
.agape-footer a:hover { color: #f3d77f; }
.agape-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.agape-footer-social > span { margin-right: 2px; font-weight: 600; }
.agape-footer-social-link {
  display: inline-grid;
  width: 48px;
  min-height: 44px;
  place-items: center;
  border: 1px solid #668070;
  border-radius: var(--agape-control-radius);
}
.agape-footer-social-link:hover { background: #294537; border-color: #e5ebe5; }
.agape-footer-social-link img { display: block; height: auto; }

.agape-social-action {
  display: inline-flex;
  align-items: center;
  gap: .32em;
  vertical-align: middle;
}
.agape-social-action::before {
  content: "";
  flex: none;
  background: center / contain no-repeat;
}
.agape-social-action--facebook::before {
  width: 20px;
  height: 20px;
  background-image: url("../icons/social/facebook-logo.png");
}
.agape-social-action--youtube::before {
  width: 44px;
  height: 38px;
  background-image: url("../icons/social/youtube-icon.png");
}
.agape-library-lede { margin: 0; }
.agape-youtube-channel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 5px;
  color: #fff;
  font-size: .87rem;
  font-weight: 600;
  text-decoration: none;
}
.agape-youtube-channel:hover { text-decoration: underline; text-underline-offset: .22em; }
.agape-youtube-channel img { display: block; width: 132px; height: auto; }
.agape-youtube-channel span { white-space: nowrap; }
.agape-footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.32fr 1.18fr .7fr 1fr;
}
.agape-footer h2 { margin: 0 0 .8rem; color: #fff; font-size: 1.04rem; font-weight: 650; line-height: 1.35; }
.agape-footer-brand { display: inline-block; margin-bottom: 13px; padding: 3px 7px; border-radius: 9px; background: var(--agape-ivory); }
.agape-footer ul { list-style: none; margin: 0 0 .8rem; padding: 0; }
.agape-footer li + li { margin-top: .45rem; }
.agape-footer address { display: grid; gap: .55rem; margin-bottom: .6rem; font-style: normal; overflow-wrap: anywhere; }
.agape-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid #668070;
  color: #e5ebe5;
  font-size: .8rem;
}
.agape-footer-bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }

.agape-home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(400px, 35vw, 550px);
  padding-block: clamp(35px, 4.5vw, 66px);
  overflow: hidden;
  background: var(--agape-green);
}
.agape-home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 27, 17, .91), rgba(5, 27, 17, .76) 39%, rgba(5, 27, 17, .28) 76%, rgba(5, 27, 17, .15));
}
.agape-home-hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.agape-home .agape-home-hero h1 {
  max-width: 670px;
  color: white;
  font-size: var(--agape-hero);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.057em;
}
.agape-hero-line { display: block; }
#changing-text { color: #f3d77f; }
.agape-home .agape-home-hero p { max-width: 47ch; color: #f4f6f2; }
.agape-home-hero .agape-actions { column-gap: .6rem; }
.agape-home-hero .agape-button-outline,
.agape-rotation-control {
  border: 1px solid #e5ebe5;
  background: rgba(5, 27, 17, .45);
  color: white;
}
.agape-home-hero .agape-button-outline:hover,
.agape-rotation-control:hover { background: var(--agape-green); }
.agape-rotation-control:not([hidden]) {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--agape-control-radius);
  cursor: pointer;
}
.agape-rotation-control::before {
  content: "";
  width: 11px;
  height: 14px;
  border-inline: 3px solid currentColor;
}
.agape-rotation-control[data-paused]::before {
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-left: 11px solid currentColor;
  border-right: 0;
}
.agape-photo, .agape-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agape-home-schedule { background: var(--agape-green); color: var(--agape-white); }
.agape-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agape-schedule--service-schedule {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
}
.agape-schedule--service-schedule li {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px clamp(14px, 3vw, 36px);
  min-height: 83px;
  line-height: 1.35;
  font-size: .84rem;
}
.agape-schedule--service-schedule li + li { border-left: 1px solid #718b7e66; }
.agape-schedule--service-schedule li:first-child { padding-inline-start: 0; }
.agape-schedule--service-schedule strong { font-size: 1.12rem; font-weight: 650; }
.agape-schedule--weekly-gatherings li {
  display: grid;
  grid-template-columns: 115px 1fr auto;
  gap: .35rem .85rem;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid #c3cfc4;
  line-height: 1.4;
}
.agape-schedule--weekly-gatherings li:first-child { border-top: 1px solid #c3cfc4; }
.agape-schedule-day { color: var(--agape-green); font-weight: 650; }
.agape-schedule--weekly-gatherings strong { white-space: nowrap; }
.agape-schedule--footer-schedule strong { display: block; color: #f3d77f; font-weight: 600; }
.agape-home .agape-alert-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  padding: 8px var(--agape-gutter);
  border-bottom: 1px solid var(--agape-border);
  background: var(--agape-white);
  color: var(--agape-forest);
  text-align: center;
  font-size: .79rem;
}
.agape-home .alert-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--agape-dark-gold); }
.agape-home .alert-link { display: inline-flex; align-items: center; min-height: 29px; font-weight: 650; text-underline-offset: .22em; }
.agape-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
}
.agape-photo { height: auto; aspect-ratio: 4 / 3; border-radius: var(--agape-radius); background: var(--agape-sage); }
.agape-pastors img { aspect-ratio: 4 / 5; max-width: min(100%, 365px); justify-self: center; object-position: 50% 32%; }
.agape-home-band { background: var(--agape-sage); }
.agape-home-week { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); }
.agape-feature { background: var(--agape-green); color: var(--agape-white); }
.agape-home .agape-feature :is(h2,h3,p) { color: var(--agape-white); }
.agape-home .agape-feature h2 { font-size: var(--agape-h3); color: #f3d77f; }
.agape-home .agape-feature h3 { font-size: var(--agape-h2); }
.agape-home .agape-feature .agape-button-outline { color: white; border-color: #dce8dc; }
.agape-feature .agape-button-outline:hover { background: #234f3b; }
.agape-sermon-photo { aspect-ratio: 16 / 9; }
.agape-section-heading, .agape-connect {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 24px;
  flex-wrap: wrap;
}
.agape-section-heading { margin-bottom: 14px; }
.agape-ministry-grid, .agape-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.agape-ministry-grid article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--agape-border);
  border-radius: var(--agape-radius);
  background: var(--agape-white);
}
.agape-ministry-grid article:hover,
.agape-ministry-grid article:focus-within { border-color: var(--agape-dark-gold); }
.agape-ministry-card-link {
  display: block;
  flex: 1;
  padding: 20px 16px;
  border-radius: inherit;
  text-decoration: none;
}
.agape-ministry-program { align-self: flex-start; margin: 0 16px 12px; }
.agape-ministry-grid img { display: block; width: 100%; height: 104px; margin-bottom: 15px; object-fit: contain; }
.agape-ministry-grid p { margin: 0; font-size: .9rem; }
.agape-gallery figure { margin: 0; }
.agape-gallery img { height: auto; aspect-ratio: 4 / 3; border-radius: var(--agape-radius); }
.agape-gallery figcaption { padding-top: 10px; font-size: .95rem; font-weight: 550; }
.agape-scripture { padding-block: 0 clamp(28px, 5vw, 65px); }
.agape-scripture-panel {
  --scripture-gold: #f3d77f;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--agape-radius);
  background: var(--agape-forest);
  color: var(--agape-white);
  box-shadow: var(--agape-shadow);
}
.agape-scripture-copy {
  align-self: center;
  padding: clamp(30px, 5vw, 70px) clamp(24px, 4.2vw, 60px);
}
.agape-home .agape-scripture h2 {
  margin: 0 0 18px;
  color: var(--scripture-gold);
  font-size: .83rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.agape-scripture h2::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-inline-end: 10px;
  vertical-align: .3em;
  background: currentColor;
}
.agape-scripture-quotation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(8px, 1.4vw, 17px);
}
.agape-scripture-mark {
  height: 1em;
  margin-top: .05em;
  color: var(--scripture-gold);
  font: 700 clamp(2.45rem, 5vw, 4.4rem)/.84 Georgia, serif;
}
.agape-scripture #dailyVersesWrapper {
  color: var(--agape-white);
  font-size: clamp(1.2rem, 2.25vw, 2rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.agape-scripture #dailyVersesWrapper a,
.agape-scripture .agape-scripture-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--scripture-gold);
  font-size: .9rem;
  font-weight: 600;
  text-underline-offset: .23em;
}
.agape-scripture #dailyVersesWrapper a { margin-top: 9px; }
.agape-scripture #dailyVersesWrapper:not(:empty) + .agape-scripture-fallback { display: none; }
.agape-home .agape-scripture-fallback { margin: 0; }
.agape-scripture-art {
  position: relative;
  min-height: 270px;
}
.agape-scripture-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.agape-scripture-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--agape-forest), transparent 35%);
  pointer-events: none;
}
@media (max-width: 680px) {
  .agape-scripture-panel { grid-template-columns: minmax(0, 1fr); }
  .agape-scripture-art { min-height: clamp(124px, 34vw, 200px); }
  .agape-scripture-art::after { background: linear-gradient(180deg, var(--agape-forest), transparent 38%); }
}

@media (max-width: 925px) {
  :root { --agape-header-height: 68px; }
  .agape-header-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .agape-brand img { width: 57px; height: 52px; }
  .agape-header-visit { justify-self: end; }
  .agape-header.is-ready .agape-menu-toggle {
    display: inline-grid;
    width: 44px;
    min-height: 44px;
    place-items: center;
    border: 1px solid #9faea2;
    border-radius: var(--agape-control-radius);
    background: transparent;
    color: var(--agape-green);
    cursor: pointer;
  }
  .agape-menu-toggle span[aria-hidden] {
    width: 17px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -5px, 0 5px;
  }
  .agape-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--agape-border);
  }
  .agape-header.is-ready .agape-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--agape-header-height) - 18px);
    padding: 6px var(--agape-gutter) 10px;
    overflow: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--agape-border);
    background: var(--agape-ivory);
    box-shadow: var(--agape-shadow);
  }
  .agape-header.is-ready .agape-nav.is-open { display: grid; }
  .agape-nav > :where(a,details) { border-bottom: 1px solid var(--agape-border); }
  .agape-resources-links { position: static; margin: 0 0 5px 10px; box-shadow: none; }
  .agape-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 782px) { body.admin-bar .agape-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .agape-header { top: 0; } }
@media (max-width: 760px) {
  .agape-home-hero { min-height: 365px; }
  .agape-home-hero::after { background: linear-gradient(90deg, rgba(5, 27, 17, .91), rgba(5, 27, 17, .69)); }
  .agape-home-hero-photo { object-position: 56% center; }
  .agape-split, .agape-home-week { grid-template-columns: minmax(0,1fr); }
  .agape-home .agape-split > .agape-photo:first-child { order: 1; }
  .agape-pastors img { width: min(100%,350px); }
  .agape-gallery { gap: 10px; }
  .agape-gallery img { border-radius: 12px; }
  .agape-gallery figcaption { font-size: .82rem; }
}
@media (max-width: 640px) {
  .agape-ministry-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .agape-home-hero { padding-block: 30px; }
  .agape-home .agape-home-hero h1 { font-size: clamp(2.23rem, 9vw, 3.4rem); }
  .agape-home-hero p { margin-bottom: .6rem; }
  .agape-home-hero .agape-actions { margin-top: .8rem; }
  .agape-schedule--service-schedule { grid-template-columns: minmax(0,1fr); padding-block: 4px; }
  .agape-schedule--service-schedule li {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 6px 0;
  }
  .agape-schedule--service-schedule li + li { border-left: 0; border-top: 1px solid #718b7e66; }
  .agape-schedule--service-schedule strong { font-size: .88rem; white-space: nowrap; }
  .agape-schedule--weekly-gatherings li { grid-template-columns: 1fr auto; }
  .agape-schedule--weekly-gatherings li > span:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .agape-gallery { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .agape-gallery img { aspect-ratio: 16 / 10; }
  .agape-footer-grid { gap: 22px 14px; }
  .agape-footer-grid > :first-child, .agape-footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  body.agape-shell-body *, body.agape-shell-body *::before, body.agape-shell-body *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Shared refinements for the theme's existing page templates. */
body.agape-shell-body .agape-page-body { background: var(--agape-ivory); }
body.agape-shell-body .agape-page-body :is(.ministries-container,.calendar-container,.library-container,.worship-container,.giving-container,.contact-container) {
  width: min(calc(100% - 2 * var(--agape-gutter)), var(--agape-content));
  padding: clamp(18px, 3vw, 42px) 0 var(--agape-space);
}
body.agape-shell-body .agape-page-body :is(.min-hero,.calendar-hero,.library-header,.worship-header,.giving-hero,.contact-hero) {
  --hero-inset: clamp(24px, 4.2vw, 58px);
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  grid-template-rows: auto auto;
  min-height: 0;
  margin: 0 0 clamp(24px, 3.9vw, 52px);
  border: 0;
  border-radius: var(--agape-radius);
  background: var(--agape-green);
  box-shadow: none;
}
body.agape-shell-body .agape-page-body :is(.min-hero,.calendar-hero,.library-header,.worship-header,.giving-hero,.contact-hero)::after {
  grid-column: 2;
  grid-row: 1 / -1;
  min-height: clamp(230px, 24vw, 330px);
  box-shadow: none;
}
body.agape-shell-body .agape-page-body :is(.min-hero,.calendar-hero,.library-header,.worship-header,.giving-hero,.contact-hero) h1 {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
  padding: var(--hero-inset) var(--hero-inset) 0;
  color: white;
  font-size: var(--agape-h1);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.042em;
  text-transform: none;
}
body.agape-shell-body .agape-page-body :is(.min-hero,.calendar-hero,.library-header,.worship-header,.giving-hero,.contact-hero) h1::before { content: none; }
body.agape-shell-body .agape-page-body :is(.hero-subtitle,.min-hero-desc,.calendar-subtitle,.library-subtitle,.worship-subtitle,.giving-hero p,.contact-hero p) {
  grid-column: 1;
  grid-row: 2;
  max-width: 55ch;
  padding: 12px var(--hero-inset) var(--hero-inset);
  color: #e5ebe5;
  font-size: var(--agape-body);
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}
body.page-id-13.agape-shell-body .giving-hero { grid-template-rows: auto auto auto; }
body.page-id-13.agape-shell-body .giving-hero p { padding-bottom: 8px; }
body.page-id-13.agape-shell-body .giving-hero::after {
  background: url("../images/coffee-and-cupcakes-2026/group.jpg") center / cover;
}
.agape-give-jump { grid-column: 1; grid-row: 3; justify-self: start; margin: 12px var(--hero-inset) var(--hero-inset); }
body.page-id-13.agape-shell-body .giving-hero .giving-kicker { display: none; }
body.page-id-18647.agape-shell-body .library-header::after {
  grid-row: 1 / 3;
  min-height: clamp(215px, 19vw, 280px);
  background: url("../images/pastor-eric-preaching.jpg") center 2% / cover;
}
body.page-id-18647.agape-shell-body .library-search-panel {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 2.6vw, 26px);
  border: 1px solid var(--agape-border);
  border-radius: 0;
  background: var(--agape-white);
  box-shadow: none;
  text-align: left;
}
body.page-id-18647.agape-shell-body :is(.library-title,.library-subtitle) { text-align: left; }
body.page-id-18647.agape-shell-body .search-box-wrapper::before { color: var(--agape-muted); }
body.page-id-17.agape-shell-body .contact-hero::after { background-position: 62% center; }

.agape-visit-hero { --agape-space: clamp(30px, 4vw, 60px); }
.agape-visit .agape-visit-hero h1 { font-size: var(--agape-h1); }
.agape-visit-hero .agape-photo { aspect-ratio: 16 / 9; object-position: 61% center; }
.agape-visit .agape-visit-address { font-size: 1rem; font-weight: 600; }
.agape-visit-schedule { background: var(--agape-green); color: var(--agape-white); }
.agape-questions details { border-bottom: 1px solid #b9c9bb; }
.agape-questions details:first-child { border-top: 1px solid #b9c9bb; }
.agape-questions summary, .agape-study-notes summary {
  padding-block: 11px;
  min-height: 44px;
  color: var(--agape-green);
  font-weight: 650;
  cursor: pointer;
}
.agape-questions p { padding-inline-start: 17px; }

.agape-calendar-week, .agape-event-highlight {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(24px,4vw,55px);
}
.agape-calendar-week h2, .agape-event-highlight h2 {
  margin: 0 0 .6em;
  color: var(--agape-green);
  font-size: var(--agape-h2);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.agape-event-highlight p { color: var(--agape-muted); line-height: 1.65; }
.agape-event-highlight h3 { margin: 0 0 .55rem; color: var(--agape-green); font-size: var(--agape-h3); }

.agape-ministry-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(19px,3vw,35px); }
.agape-ministry-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #b9c9bb;
  border-radius: var(--agape-control-radius);
  background: var(--agape-white);
  color: var(--agape-green);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.agape-ministry-index a:hover { background: var(--agape-sage); }
body.page-id-18648.agape-shell-body :is(.ministry-section,.sub-card) {
  border-radius: var(--agape-radius);
  box-shadow: none;
  transform: none;
}
body.page-id-18648.agape-shell-body .programs-label { color: var(--agape-dark-gold); }
body.page-id-18648.agape-shell-body .parent-logo-wrap { background: var(--agape-sage); }

.agape-calendar-week { padding: clamp(18px,3.6vw,42px); border-radius: var(--agape-radius); background: var(--agape-sage); }
.agape-event-highlight img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--agape-radius); }
#upcoming-events:not(:has(.calendar-card)) .calendar-grid { display: none; }
#upcoming-events:has(.calendar-card) .agape-events-fallback { display: none; }
body.page-id-15.agape-shell-body .calendar-section-head::before { content: none; }
body.page-id-15.agape-shell-body .calendar-section-head h2 { font-size: var(--agape-h2); }
body.page-id-15.agape-shell-body .calendar-card {
  border-color: var(--agape-border);
  border-radius: var(--agape-radius);
  background: white;
  box-shadow: none;
}
body.page-id-15.agape-shell-body .calendar-card.is-ended,
body.page-id-15.agape-shell-body .calendar-card.is-ended .calendar-card-image { filter: none; opacity: 1; }
body.page-id-15.agape-shell-body .calendar-card.is-ended::before,
body.page-id-15.agape-shell-body .calendar-card.is-ended::after { content: none; }
body.page-id-15.agape-shell-body .calendar-card.is-ended .calendar-card-body { background: white; }
body.page-id-15.agape-shell-body .calendar-card .calendar-card-image {
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
body.agape-shell-body .agape-page-body :is(.men-hero-split, .h2h-hero, .kh-hero, .khsbp-hero, .teen-hero, .vbs-hero, .vbs-header, .fff-hero, .tea-hero, .coffee-hero, .bash-hero, .tsr-hero, .valentine-hero) {
  border-radius: var(--agape-radius);
  box-shadow: var(--agape-shadow);
}
body.agape-shell-body .agape-page-body :is(.men-container,.h2h-container,.kh-container,.khsbp-page,.teen-container,.vbs-container,.fff-container,.tea-page,.coffee-page,.bash-page,.tsr-page,.valentine-archive) h1 {
  font-size: var(--agape-h1);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.agape-event-status {
  display: table;
  margin: .6rem 0;
  padding: .4rem .7rem;
  border-radius: 8px;
  background: var(--agape-ivory);
  color: var(--agape-forest);
  font-size: .86rem;
  font-weight: 650;
}
.agape-event-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  padding: 16px 0;
  border-top: 1px solid var(--agape-border);
}
.agape-archived-info { margin-top: 1.25rem; border: 1px solid var(--agape-border); border-radius: 12px; padding: 12px; }
.agape-archived-info summary { min-height: 44px; font-weight: 650; cursor: pointer; }

.agape-message-filters:not([hidden]) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 13px 0; }
.agape-message-filters label { display: grid; gap: 4px; min-width: 0; font-size: .82rem; font-weight: 600; }
.agape-message-filters select {
  min-width: 0;
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid #85968a;
  border-radius: var(--agape-control-radius);
  background: white;
  color: var(--agape-forest);
  font: inherit;
}
body.page-id-18647.agape-shell-body .msg-item {
  border: 1px solid var(--agape-border);
  border-radius: var(--agape-radius);
  box-shadow: none;
  transform: none;
}
body.page-id-18647.agape-shell-body .msg-item:first-child:not(.active) { background: var(--agape-sage); border-color: #9bad9e; }
body.page-id-18647.agape-shell-body .msg-bar { padding: 13px 16px; min-height: 76px; }
body.page-id-18647.agape-shell-body .msg-title { font-size: clamp(1rem, 2.3vw, 1.23rem); }
body.page-id-18647.agape-shell-body .msg-item:first-child .msg-title { font-size: var(--agape-h3); }
body.page-id-18647.agape-shell-body .msg-list { gap: 10px; }
body.page-id-18647.agape-shell-body .msg-thumb { border-radius: 9px; aspect-ratio: 16 / 9; }
.agape-message-more:not([hidden]) { display: flex; justify-content: center; padding-top: 20px; }
.agape-message-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px; margin-bottom: 12px; }
.agape-message-actions :is(a,button) {
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--agape-green);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.agape-study-notes { margin-top: 16px; border-block: 1px solid var(--agape-border); }
.agape-study-notes summary { padding-inline: 10px; }

body.page-id-19366.agape-shell-body .worship-title .fa-music { display: none; }
body.page-id-19366.agape-shell-body .worship-search-section {
  top: calc(var(--agape-header-height) + 8px);
  z-index: 5;
  border-radius: var(--agape-radius);
  box-shadow: var(--agape-shadow);
}
body.page-id-19366.agape-shell-body .worship-song-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
body.page-id-19366.agape-shell-body .worship-song-grid .worship-song-card {
  min-height: 112px !important;
  padding: 13px !important;
  border-radius: 13px;
  box-shadow: none;
}
body.page-id-19366.agape-shell-body .worship-song-grid .worship-song-title { font-size: 1rem !important; }
body.page-id-19366.agape-shell-body .worship-filter-btn.active { text-decoration: underline; text-underline-offset: .2em; }
body.page-id-19366.agape-shell-body .worship-shuffle-btn { color: var(--agape-forest); background: var(--agape-gold); }
body.page-id-19366.agape-shell-body .worship-song-artist { color: var(--agape-muted) !important; }
body.page-id-19366.agape-shell-body .agape-page-body { border-left: 0; }
#agape-worship-unavailable { position: absolute; inset: 34% 12% auto; color: white; text-align: center; }
#agape-worship-unavailable a { color: #f3d77f; }

body.page-id-17.agape-shell-body :is(.contact-panel,.contact-info-item), body.page-id-13.agape-shell-body .giving-panel { border-radius: var(--agape-radius); box-shadow: none; transform: none; }
body.page-id-17.agape-shell-body .contact-icon { color: var(--agape-green); background: var(--agape-sage); }
[data-agape-embed] { position: relative; }
.agape-embed-status { position: absolute; left: 10px; top: 10px; z-index: 1; border-radius: 6px; background: var(--agape-forest); color: white; padding: 7px 9px; font-size: .85rem; }
body.page-id-19138.agape-shell-body #gt_float_wrapper { display: block !important; }
body.page-id-19138.agape-shell-body .agape-login-wrapper {
  min-height: 0;
  justify-content: center;
  padding: clamp(24px, 6vw, 72px) var(--agape-gutter);
  background: var(--agape-sage);
}
body.page-id-19138.agape-shell-body .agape-login-wrapper::before { content: none; }
body.page-id-19138.agape-shell-body .agape-login-card {
  width: min(100%,430px);
  box-sizing: border-box;
  padding: clamp(21px,4vw,36px);
  border: 1px solid var(--agape-border);
  border-radius: var(--agape-radius);
  background: white;
  box-shadow: var(--agape-shadow);
}
body.page-id-19138.agape-shell-body .agape-login-card h1 { font-size: clamp(1.75rem,3.4vw,2.5rem); font-weight: 650; line-height: 1.1; }
body.page-id-19138.agape-shell-body :is(.agape-submit-btn,.agape-input-field) { border-radius: var(--agape-control-radius); }
body.page-id-19138.agape-shell-body .agape-help-text a { color: var(--agape-green); text-decoration: underline; }

/* Keep the language selector away from the primary left-aligned controls. */
body.agape-shell-body #gt_float_wrapper { left: auto !important; right: 12px !important; bottom: 9px !important; }
body.agape-shell-body .gt_float_switcher { border-radius: 9px; font-size: 15px; }
body.agape-shell-body .gt_float_switcher .gt-selected .gt-current-lang { padding: 8px 10px; }
body.agape-shell-body .gt_float_switcher .gt-selected img { width: 22px; }
body.agape-shell-body .worship-floating-queue.active ~ #gt_float_wrapper,
body.page-id-19366.agape-shell-body:has(.worship-floating-queue.active) #gt_float_wrapper { bottom: 88px !important; }

@media (max-width: 760px) {
  body.agape-shell-body .agape-page-body :is(.min-hero,.calendar-hero,.library-header,.worship-header,.giving-hero,.contact-hero) {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto auto;
  }
  body.agape-shell-body .agape-page-body :is(.min-hero,.calendar-hero,.library-header,.worship-header,.giving-hero,.contact-hero)::after {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
    height: clamp(105px, 25vw, 175px);
    border-left: 0;
  }
  body.page-id-13.agape-shell-body .giving-hero::after { grid-row: 4; }
  body.page-id-18647.agape-shell-body .library-search-panel { grid-row: 4; }
  body.page-id-18647.agape-shell-body .library-header::after { min-height: 0; background-position: center 8%; }
  .agape-visit-hero .agape-photo { max-height: 160px; }
  .agape-calendar-week, .agape-event-highlight { grid-template-columns: minmax(0,1fr); gap: 12px; }
  body.page-id-19366.agape-shell-body .worship-song-grid { grid-template-columns: minmax(0,1fr); }
  body.page-id-19366.agape-shell-body .worship-search-section { position: static; }
  body.page-id-19366.agape-shell-body .worship-song-grid .worship-song-card { min-height: 65px !important; padding: 10px !important; }
}
@media (max-width: 500px) {
  .agape-message-filters:not([hidden]) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .agape-message-filters label:first-child { grid-column: 1 / -1; }
  body.page-id-18647.agape-shell-body .msg-info { grid-template-columns: 70px minmax(0,1fr); }
  body.page-id-18647.agape-shell-body .msg-thumb { width: 70px; height: auto; }
}
