/* NEC public website — direction B · Covenant. Loaded after app.css, which provides the tokens, buttons, fields and alerts. */
.site { background: #fff; }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 20; background: #fff; color: var(--blue-700); padding: 8px 12px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.site-flash { padding-top: 16px; }

/* Top bar and menu bar */
.site-topbar { background: var(--blue-800); color: #C9D6EA; font-size: .82rem; }
.site-topbar .site-wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.site-topbar a { color: #fff; font-weight: 500; text-decoration: none; }
.site-topbar a:hover { color: #fff; text-decoration: underline; }
.site { scroll-padding-top: 84px; } /* anchors stay clear of the sticky menu bar */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--blue-700); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 2px 10px rgba(15, 42, 82, .18); }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
.site-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; font: 600 1.05rem/1.2 var(--serif); }
.site-brand:hover { color: #fff; }
.site-brand img { height: 44px; width: auto; padding: 3px; background: #fff; border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { max-width: 100%; line-height: 1.25; overflow-wrap: anywhere; padding: .5rem .8rem; border-radius: 999px; color: #fff; font-size: .95rem; font-weight: 500; text-decoration: none; opacity: .92; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; color: #fff; background: rgba(255, 255, 255, .14); }
.site-nav .site-nav__cta { margin-left: 8px; background: #fff; color: var(--blue-700); font-weight: 600; opacity: 1; }
.site-nav .site-nav__cta:hover, .site-nav .site-nav__cta[aria-current="page"] { background: var(--blue-100); color: var(--blue-800); }
.site-menu-toggle { display: none; position: absolute; width: 1px; height: 1px; opacity: 0; }
.site-menu-button { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: .4rem .7rem; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.site-menu-button svg { display: block; }
.site-menu-button__close { display: none !important; }
.site-menu-toggle:checked + .site-menu-button .site-menu-button__open { display: none; }
.site-menu-toggle:checked + .site-menu-button .site-menu-button__close { display: block !important; }
.site-menu-toggle:focus-visible + .site-menu-button { outline: 3px solid #fff; outline-offset: 2px; }

/* Banner */
.hero { background: linear-gradient(180deg, var(--blue-50), #fff); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; margin-bottom: 1rem; overflow-wrap: anywhere; }
.hero__lead { max-width: 34rem; color: var(--ink-2); font-size: 1.12rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.hero__photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero__photo--placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #C9D6EA, #8FA8CC); }
.hero__photo--placeholder img { width: 38%; max-width: 180px; padding: 12px; background: #fff; border-radius: 50%; }
.btn--light { background: #fff; color: var(--blue-700); }
.btn--light:hover { background: var(--blue-100); color: var(--blue-800); }

/* Service times */
.times { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.times__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); overflow: hidden; }
.times__item { padding: 18px 20px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.times__item span { display: block; color: var(--ink-2); font-size: .9rem; }
.times__item strong { display: block; color: var(--blue-700); font: 600 1.2rem/1.3 var(--serif); }

/* Sections and page headings */
.section { padding: 56px 0; }
.section--tint { background: #F7F9FC; }
.section__title { font-size: 1.7rem; margin-bottom: 1.25rem; }
.page-hero { padding: 40px 0 32px; background: var(--blue-50); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.page-hero p { max-width: 40rem; margin: .5rem 0 0; color: var(--ink-2); }
.prose { max-width: 44rem; font-size: 1.05rem; }
.prose p { margin-bottom: 1.1rem; }
.prose h2 { margin: 1.75rem 0 .5rem; font-size: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.section-note { margin-top: 1.5rem; }

/* Who we are */
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 1rem; }
.who-box { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.who-box h3 { margin-bottom: .75rem; color: var(--orange-600); font: 600 .75rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.who-box p { margin: 0; font-size: 1.02rem; }
.values { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.values li { padding: .25rem .7rem; background: var(--blue-100); color: var(--blue-700); border-radius: 999px; font-size: .85rem; font-weight: 500; }

/* Pastors and workers */
.people-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 1rem; }
.people-grid > .person { flex: 0 0 calc((100% - 16px) / 2); }
@media (min-width: 600px) {
  .people-grid { gap: 18px; }
  .people-grid > .person { flex-basis: calc((100% - 36px) / 3); }
}
@media (min-width: 960px) {
  .people-grid { gap: 20px; }
  .people-grid > .person { flex-basis: calc((100% - 60px) / 4); }
}
.people-group { margin: 2rem 0 1rem; color: var(--ink); font-size: 1.5rem; }
.people-group:first-child { margin-top: 0; }
.person { min-width: 0; text-align: center; }
.person__frame { display: block; margin: 0 0 12px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #EAF1FB, #D6E3F5); border-radius: var(--radius-lg); box-shadow: 0 1px 3px rgba(20, 34, 58, .12), 0 4px 12px rgba(20, 34, 58, .08); }
/* multiply lets the white of cut-out portraits take the backdrop colour */
.person__photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; mix-blend-mode: multiply; }
.person__photo--initials { display: flex; mix-blend-mode: normal; align-items: center; justify-content: center; color: var(--blue-700); font: 600 2rem/1 var(--serif); }
.person__name { margin: 0 0 .2rem; color: var(--ink); font-size: 1.1rem; overflow-wrap: anywhere; }
.person__title { margin: 0; color: var(--ink-2); font-size: .92rem; }
.person__bio { margin-top: .75rem; color: var(--ink-2); font-size: .92rem; text-align: left; }
.people-grid--full .person { padding: 12px 12px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.people-grid--small { gap: 14px; }
.people-grid--small > .person { flex-basis: calc((100% - 28px) / 3); }
@media (min-width: 600px) { .people-grid--small > .person { flex-basis: calc((100% - 42px) / 4); } }
@media (min-width: 960px) { .people-grid--small > .person { flex-basis: calc((100% - 70px) / 6); } }
.people-pyramid { display: flex; flex-direction: column; gap: 20px; margin-bottom: 1rem; }
.people-pyramid__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.people-pyramid .person { flex: 0 1 220px; padding: 12px 12px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.people-pyramid--small .person { flex-basis: 140px; }
.people-grid--small .person, .people-pyramid--small .person { padding: 8px 8px 12px; }
.people-grid--small .person__name, .people-pyramid--small .person__name { font-size: .95rem; }
.people-grid--small .person__title, .people-pyramid--small .person__title { font-size: .82rem; }
.people-grid--small .person__bio, .people-pyramid--small .person__bio { font-size: .82rem; }

/* Event photos and the home page slideshow */
.event-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.event-photos figure { margin: 0; }
.event-photos img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); background: #C9D6EA; } /* natural shape: posters are not cropped */
.event-photos figcaption { margin-top: .35rem; color: var(--ink-2); font-size: .88rem; overflow-wrap: anywhere; }
.slideshow { position: relative; max-width: 900px; margin: 0 auto 1rem; }
.slideshow__track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; border-radius: var(--radius-lg); }
.slideshow__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.slideshow__slide a { display: block; color: inherit; text-decoration: none; }
.slideshow__frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-900); } /* the blue shows where filters are unsupported */
.slideshow__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(24px) brightness(.85); transform: scale(1.15); }
.slideshow__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; } /* contain: posters show whole */
.slideshow__caption { display: grid; gap: .1rem; padding: .6rem .25rem 0; color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.slideshow__caption strong { color: var(--ink); font-size: 1.05rem; }
.slideshow--js .slideshow__track { scrollbar-width: none; }
.slideshow--js .slideshow__track::-webkit-scrollbar { display: none; }
.slideshow__controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: .75rem; }
.slideshow__btn { min-width: 44px; min-height: 44px; padding: 0 .75rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--blue-700); font: 600 1.3rem/1 var(--serif); cursor: pointer; }
.slideshow__btn:hover { border-color: var(--blue-700); }
.slideshow__btn--text { font: 600 .9rem/1 var(--font); }
.slideshow__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.slideshow__dot { width: 24px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.slideshow__dot::after { content: ""; position: absolute; top: 7px; left: 7px; width: 10px; height: 10px; border-radius: 50%; background: #C9D6EA; }
.slideshow__dot[aria-current="true"]::after { background: var(--blue-700); }
@media (prefers-reduced-motion: reduce) { .slideshow__track { scroll-behavior: auto; } }

/* Ministries */
.ministry-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ministry-item { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-700); border-radius: var(--radius-lg); }
.ministry-item h2 { margin-bottom: .4rem; font-size: 1.15rem; overflow-wrap: anywhere; }
.ministry-item p { margin: 0; color: var(--ink-2); }

/* Prayer band */
.pray-band { background: var(--blue-700); color: #fff; }
.pray-band__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.pray-band h2 { margin-bottom: .3rem; color: #fff; font-size: 1.6rem; }
.pray-band p { margin: 0; color: #DCE6F4; }

/* Public forms, contact page */
.site-form { max-width: 40rem; }
.form-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.contact-list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.contact-list li { padding: .55rem 0; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.contact-list span { display: block; color: var(--ink-3); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.map-frame { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); }

/* Footer */
.site-footer { background: var(--blue-900); color: #AFC0DA; font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 28px; }
.site-footer h2 { margin-bottom: .6rem; color: #fff; font: 600 .95rem/1.3 var(--font); }
.site-footer p { margin: 0 0 .35rem; overflow-wrap: anywhere; }
.site-footer a { color: #fff; }
.site-footer__base { padding-top: 14px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }

@media (max-width: 900px) {
  .site-menu-toggle { display: block; }
  .site-menu-button { display: inline-flex; }
  .site-header__row { min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .site-menu-toggle:checked ~ .site-nav { display: flex; }
  .site-nav .site-nav__cta { margin: 6px 0 0; text-align: center; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
  .contact-grid, .who-grid, .site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-columns { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .site-brand { font-size: .95rem; }
  .site-brand img { height: 32px; }
}

/* Events */
.next-event { display: grid; gap: .15rem; max-width: 26rem; margin-top: 1.5rem; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange-600); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.next-event:hover { border-color: var(--blue-700); color: var(--ink); }
.next-event__label { color: var(--orange-600); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.next-event__title { color: var(--blue-700); font: 600 1.1rem/1.3 var(--serif); overflow-wrap: anywhere; }
.next-event__when { color: var(--ink-2); font-size: .9rem; }
.section--line { border-top: 1px solid var(--line); }
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-bottom: 1rem; }
.event-cards--stack { grid-template-columns: minmax(0, 1fr); }
.event-card { display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; }
.event-card:hover { border-color: var(--blue-700); color: var(--ink); }
.date-badge { display: grid; flex: none; place-items: center; width: 56px; padding: 6px 0; background: var(--blue-700); border-radius: var(--radius); color: #fff; line-height: 1.1; }
.date-badge__month { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.date-badge__day { font: 600 1.5rem/1.1 var(--serif); }
.event-card__body { display: grid; gap: .15rem; min-width: 0; }
.event-card__title { color: var(--blue-700); font: 600 1.05rem/1.3 var(--serif); overflow-wrap: anywhere; }
.event-card__meta { color: var(--ink-2); font-size: .88rem; overflow-wrap: anywhere; }
.events-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.events-upcoming h2 { font-size: 1.3rem; }
.page-hero .event-when { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .events-layout { grid-template-columns: minmax(0, 1fr); } }
