/* Shared basics: layout skeleton, videos, post text.
   Colors (as tokens), fonts and personality live in blend.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
/* Decorations (like the hero glow) may reach past the page edge: cut them off there, so the
   page never scrolls sideways. "clip" (not "hidden") keeps the sticky header working. */
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; }
.is-caps { text-transform: uppercase; }

/* Page width and sections */
.section, .post, .site-header__inner, .site-footer__inner { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(40px, 7vw, 88px); }
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.page-head { padding-bottom: 0; }

/* Header + phone menu */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { width: auto; }
.menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 44px; padding: 0 8px; text-decoration: none; }
.menu a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; } /* 44px: easy to tap */
.menu-toggle { display: none; color: inherit; background: none; border: 0; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 3px; border-radius: 3px; background: currentColor; transition: transform .25s, opacity .25s; }
@media (max-width: 900px) {
  .menu-toggle { display: flex; order: 3; }  /* hamburger last, after SL/EN and the theme switch */
  .site-header__inner { gap: 8px; }
  .header-tools { margin-left: auto; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; z-index: 50; }
  .menu-open .menu { display: flex; }
  .menu a { padding: 12px 14px; min-height: 52px; font-size: 18px; }
  .menu .btn--give { justify-content: center; margin-top: 8px; min-height: 52px; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-header { position: relative; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 0; font-weight: 700; min-height: 44px; padding: 10px 20px; }

/* Cards */
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0002; }
/* Posters keep all their text: shown whole, over a blurred copy of themselves. */
.card__media::before { content: ''; position: absolute; inset: -20px; background: var(--card-bg, none) center / cover; filter: blur(18px) saturate(1.3); opacity: .85; }
.card__media img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; color: #fff; }
.card__play { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e8172c; color: #fff; font-size: 14px; }
.card__body { padding: 16px 18px 20px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; font-size: 14px; }
.card__title { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.card__excerpt { margin: 8px 0 0; font-size: 15px; opacity: .8; }
.card[hidden] { display: none; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; margin: 0; }

/* Lite YouTube player */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border: 0; border-radius: 14px; background: #e8172c; box-shadow: 0 6px 24px #0006; transition: transform .2s; }
.yt__play::after { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; transform: translateX(2px); }
.yt:hover .yt__play { transform: scale(1.12); }
.yt:hover img { transform: scale(1.04); }

/* Homepage video block */
.videoblock { display: grid; gap: 24px; grid-template-columns: 1.6fr 1fr; }
.videoblock__title { font-size: clamp(20px, 2.4vw, 28px); margin: 14px 0 4px; }
.videoblock__meta { margin: 0; font-size: 14px; opacity: .75; }
.videoblock__list { display: grid; gap: 14px; align-content: start; }
.videoblock__list li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.videoblock__list p { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.videoblock__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.playlists { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.playlists a { text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 99px; }
@media (max-width: 800px) { .videoblock { grid-template-columns: 1fr; } }
.video-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 800px) { .video-feature { grid-template-columns: 1fr; } }
.video-tile h3 { font-size: 17px; margin: 12px 0 4px; }
.playlist a { text-decoration: none; display: block; }
.playlist__cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.playlist__cover img { width: 100%; height: 100%; object-fit: cover; }
.playlist__icon { position: absolute; right: 0; top: 0; bottom: 0; width: 38%; display: grid; place-items: center; background: #000b; color: #fff; font-weight: 700; }
.playlist__title { display: block; font-weight: 700; margin-top: 10px; }

/* Events and places */
.events { display: grid; gap: 12px; }
.event { display: flex; gap: 16px; align-items: center; }
.event__date { flex: none; width: 64px; height: 64px; display: grid; place-content: center; text-align: center; line-height: 1; }
.event__date b { font-size: 26px; }
.event__date span { font-size: 13px; text-transform: uppercase; font-weight: 700; }
.event h3 { font-size: 17px; margin: 0 0 2px; }
.event p { margin: 0; font-size: 14px; opacity: .8; }
.locations { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.location h3 { font-size: 22px; margin: 0; }
.location p { margin: 4px 0; }
.location__when { font-weight: 700; }
.location__map { font-weight: 700; text-decoration: none; }

/* Giving */
.giving { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; }
.giving__account { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 20px 0; }
.giving__account dt { font-weight: 700; opacity: .75; font-size: 14px; padding-top: 3px; }
.giving__account dd { margin: 0; }
.giving__iban { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.giving__iban span { font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.copy { border: 0; border-radius: 99px; padding: 6px 14px; font-size: 14px; font-weight: 700; min-height: 36px; }
.giving__note { font-size: 15px; opacity: .8; }
.giving__more { display: flex; flex-wrap: wrap; gap: 12px; }
.giving__qr { margin: 0; text-align: center; }
.giving__qr-code { background: #fff; padding: 14px; border-radius: 16px; max-width: 260px; margin: 0 auto 10px; }
.giving__qr-code svg { display: block; width: 100%; height: auto; }
.giving__qr figcaption { font-size: 14px; font-weight: 600; }
@media (max-width: 800px) { .giving { grid-template-columns: 1fr; } }

/* Prayer */
.prayer { text-align: center; max-width: 820px; margin: 0 auto; }
.prayer__text { margin: 24px 0; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.6; }
.prayer__next { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* One post */
.post { max-width: 820px; padding-block: clamp(32px, 6vw, 64px) 0; }
.post__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.post__title { font-size: clamp(30px, 5vw, 52px); overflow-wrap: anywhere; }
.post__hero { margin: 24px 0; }
.prose { font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.prose img { margin: 24px auto; border-radius: 12px; max-height: 90vh; width: auto; }
.prose .yt { margin: 24px 0; border-radius: 12px; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: disc; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 6px 10px; border-bottom: 1px solid #8884; }
.prose iframe { width: 100%; min-height: 500px; border: 0; }
.prose iframe[src*="youtube"] { min-height: 0; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; } /* videos added in the editor */
.prose p:empty { display: none; }
.post__foot { margin-top: 40px; padding-top: 24px; display: grid; gap: 24px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share a, .share .copy { text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 99px; }
.post__nav { display: flex; justify-content: space-between; gap: 16px; }
.post__nav a { text-decoration: none; font-weight: 700; max-width: 48%; }

/* News list filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.filter { border: 0; border-radius: 99px; padding: 8px 16px; font-weight: 700; min-height: 40px; }
.filter small { opacity: .6; margin-left: 4px; }
.filters__search { flex: 1 1 200px; min-height: 44px; border-radius: 99px; padding: 8px 18px; font: inherit; }
.list-more { text-align: center; margin-top: 32px; }
.list-more[hidden], .list-empty[hidden] { display: none; }

/* Footer */
.site-footer { padding-block: 56px 96px; }
.site-footer__inner { display: grid; gap: 32px; grid-template-columns: 1.1fr 1.3fr 1fr 1fr; }
.site-footer__churches { display: grid; gap: 10px; font-size: 15px; line-height: 1.45; }
.site-footer__churches .placeholder__badge { margin-left: 6px; }
.site-footer__give { margin-top: 16px !important; }
.site-footer__social a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1000px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
.site-footer__brand img { max-width: 260px; border-radius: 10px; margin-bottom: 12px; }
.site-footer h3 { font-size: 16px; }
.site-footer p { margin: 0; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer__small { width: min(1180px, 100% - 32px); margin: 40px auto 0 !important; font-size: 13px; opacity: .6; }
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
