.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: transparent !important;
}
/* Sermon card decoration: a quiet blue audio wave with airy church-light rings. */
.sermon-placeholder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 91% 22%, rgba(18, 175, 230, .1), transparent 150px),
    var(--paper);
}

.sermon-placeholder > * {
  position: relative;
  z-index: 2;
}

.sermon-placeholder::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(54px, 8vw, 130px);
  width: clamp(300px, 32vw, 500px);
  height: 126px;
  border-radius: 50%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 12px,
    rgba(18, 175, 230, .08) 12px 15px,
    rgba(18, 175, 230, .3) 15px 18px,
    transparent 18px 27px
  );
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 54%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 0 54%, transparent 76%);
  transform: translateY(-50%) skewY(-7deg);
  pointer-events: none;
}

.sermon-placeholder::after {
  content: "+";
  position: absolute;
  z-index: 1;
  right: clamp(28px, 4vw, 70px);
  top: 26px;
  color: rgba(18, 175, 230, .42);
  font: 300 42px/1 system-ui, sans-serif;
  transform: rotate(45deg);
  pointer-events: none;
}

@media (max-width: 760px) {
  .sermon-placeholder::before {
    right: -120px;
    width: 300px;
    opacity: .62;
  }

  .sermon-placeholder::after {
    right: 18px;
    top: 16px;
    font-size: 30px;
  }
}

/* Header: grouped navigation with a lighter, less toolbar-like rhythm. */
@media (min-width: 981px) {
  .site-header {
    min-height: 82px;
    gap: 18px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(255, 250, 242, .9);
    box-shadow:
      inset 0 3px 0 rgba(18, 175, 230, .72),
      0 10px 30px rgba(87, 61, 39, .055);
  }

  .brand {
    min-width: 315px;
    gap: 13px;
  }

  .desktop-nav {
    gap: 2px;
    margin-left: auto;
    padding: 5px;
    border: 1px solid rgba(18, 175, 230, .12);
    border-radius: 999px;
    background: rgba(234, 248, 253, .58);
  }

  .desktop-nav a {
    position: relative;
    padding: 9px 12px;
    border-radius: 999px;
    color: #4d443c;
    font-size: 13px;
    font-weight: 720;
    transition: color .18s ease, background .18s ease, transform .18s ease;
  }

  .desktop-nav a:hover {
    background: rgba(255, 255, 255, .9);
    color: var(--brand-blue-deep);
    transform: translateY(-1px);
  }

  .header-actions {
    gap: 7px;
  }

  .visit-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-inline: 18px;
    border-radius: 999px;
  }

  html[data-theme="dark"] .site-header {
    background: rgba(6, 19, 28, .9);
    box-shadow:
      inset 0 3px 0 rgba(18, 175, 230, .8),
      0 12px 32px rgba(0, 4, 8, .32);
  }

  html[data-theme="dark"] .desktop-nav {
    border-color: rgba(82, 193, 230, .22);
    background: rgba(14, 52, 69, .68);
  }

  html[data-theme="dark"] .desktop-nav a {
    color: #d9edf5;
  }

  html[data-theme="dark"] .desktop-nav a:hover {
    background: rgba(25, 91, 116, .78);
    color: #fff;
  }
}

/* Location-card readability: body copy should never look washed out. */
.gathering-card .card-top span,
.gathering-card > p:not(.address) {
  color: #57493e;
  font-weight: 620;
}

.gathering-card .weekly-program em {
  color: #514940;
  font-weight: 650;
}

.gathering-card .text-link {
  color: #066f99;
  font-weight: 900;
}

html[data-theme="dark"] .gathering-card .card-top span,
html[data-theme="dark"] .gathering-card > p:not(.address),
html[data-theme="dark"] .gathering-card .weekly-program em {
  color: #c4d8e2;
}

html[data-theme="dark"] .gathering-card .text-link {
  color: #72d4f5;
}

/* Small-group coverage map: useful geography without exposing home addresses. */
.group-map{display:grid;grid-template-columns:minmax(340px,.78fr) minmax(0,1.22fr);gap:clamp(32px,5vw,76px);align-items:center}
.group-map-copy h2{max-width:590px;margin:0 0 20px;font-size:clamp(38px,4.4vw,58px);line-height:1.06;letter-spacing:-.045em}
.group-map-copy>p:not(.eyebrow){max-width:620px;color:#57493e;font-size:17px;line-height:1.75}
.group-area-list{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 28px}
.group-area-list span{padding:8px 12px;border:1px solid var(--brand-blue-line);border-radius:999px;background:var(--brand-blue-soft);color:#075f82;font-size:12px;font-weight:850}
.group-map-visual{position:relative;min-height:500px;overflow:hidden;border:4px solid rgba(18,175,230,.28);border-radius:28px;background:#dcecf1;box-shadow:0 24px 58px rgba(8,127,174,.15)}
.group-map-visual iframe{position:absolute;inset:0;width:100%;height:100%;border:0;filter:saturate(.72) contrast(.94)}
.group-map-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,rgba(234,248,253,.12),transparent 55%)}
.group-pin{position:absolute;z-index:2;padding:7px 10px 7px 25px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(7,95,130,.9);color:#fff;box-shadow:0 7px 18px rgba(0,50,72,.25);font-size:11px;font-weight:900;white-space:nowrap;transform:translate(-50%,-50%)}
.group-pin::before{content:"";position:absolute;left:9px;top:50%;width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:#20c2ef;transform:translateY(-50%)}
.pin-centre{left:38%;top:54%}.pin-laakkwartier{left:42%;top:64%}.pin-voorburg{left:52%;top:59%}.pin-ypenburg{left:63%;top:70%}.pin-wateringen{left:29%;top:78%}.pin-loosduinen{left:19%;top:67%}.pin-rijswijk{left:43%;top:74%}.pin-sassenheim{left:88%;top:12%}
.group-map-visual small{position:absolute;z-index:2;right:14px;bottom:14px;max-width:320px;padding:8px 11px;border-radius:10px;background:rgba(255,253,248,.9);color:#514940;font-size:10px;font-weight:750;backdrop-filter:blur(8px)}
html[data-theme="dark"] .group-map-copy>p:not(.eyebrow){color:#c4d8e2}
html[data-theme="dark"] .group-area-list span{border-color:#31596b;background:#123548;color:#d9f5ff}
html[data-theme="dark"] .group-map-visual iframe{filter:saturate(.62) brightness(.72) contrast(1.08)}
@media(max-width:900px){.group-map{grid-template-columns:1fr}.group-map-visual{min-height:430px}}
@media(max-width:640px){.group-map-copy h2{font-size:36px}.group-map-visual{min-height:390px;border-radius:22px}.group-pin{padding:6px 8px 6px 21px;font-size:9px}.group-pin::before{left:7px;width:7px;height:7px}}

/* Ministry cards: gentle colour, depth and line-art instead of empty white boxes. */
.ministry-grid article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 4px solid var(--brand-blue);
  background: linear-gradient(145deg, #fffdf8 42%, #e9f8fd 100%);
  box-shadow: 0 16px 34px rgba(8, 127, 174, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.ministry-grid article:nth-child(2) {
  border-top-color: #65cce8;
  background: linear-gradient(145deg, #fffdf8 42%, #eef9f3 100%);
}

.ministry-grid article:nth-child(3) {
  border-top-color: #84b9e8;
  background: linear-gradient(145deg, #fffdf8 42%, #eef3fd 100%);
}

.ministry-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(8, 127, 174, .14);
}

.ministry-grid article::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -72px;
  right: -58px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(18, 175, 230, .22);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(18, 175, 230, .045),
    0 0 0 45px rgba(18, 175, 230, .03);
}

.ministry-grid span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 30px;
  border: 1px solid rgba(18, 175, 230, .3);
  border-radius: 50%;
  background: rgba(234, 248, 253, .9);
  color: var(--brand-blue-deep);
  font-size: 13px;
  font-weight: 950;
}

.ministry-grid article h3 {
  position: relative;
  width: fit-content;
}

.ministry-grid article h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--brand-blue);
}

/* Dark mode: deep ocean blue, warm-white type and crisp logo-blue highlights. */
html[data-theme="dark"] {
  --bg: #06131c;
  --paper: #0d2230;
  --ink: #f5fbfe;
  --muted: #a8c2d0;
  --line: #23495c;
  --accent: #58c8ee;
  --accent-soft: #0a2b3c;
  --dark: #06131c;
  --shadow: 0 22px 60px rgba(0, 5, 10, .38);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 82% 7%, rgba(18, 175, 230, .2), transparent 30rem),
    linear-gradient(180deg, #0b2230 0, #06131c 46rem);
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(82, 193, 230, .24);
  background: rgba(6, 19, 28, .9);
}

html[data-theme="dark"] .brand-copy strong,
html[data-theme="dark"] .desktop-nav a {
  color: #f5fbfe;
}

html[data-theme="dark"] .brand-copy small {
  color: #83cce5;
}

html[data-theme="dark"] .round-btn,
html[data-theme="dark"] .lang-btn,
html[data-theme="dark"] .btn.secondary {
  border-color: #31596b;
  background: #0c202c;
  color: #f5fbfe;
}

html[data-theme="dark"] .visit-btn,
html[data-theme="dark"] .btn.primary,
html[data-theme="dark"] .play {
  background: linear-gradient(135deg, #0a8fc0, #18b7e9);
  color: #fff;
}

html[data-theme="dark"] #activities {
  border-top-color: rgba(82, 193, 230, .28);
  background: linear-gradient(180deg, rgba(12, 48, 64, .82), rgba(6, 19, 28, 0));
}

html[data-theme="dark"] .gathering-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .activity-summary {
  background: #0d2230;
  border-color: #23495c;
}

html[data-theme="dark"] .gathering-card.featured {
  background: linear-gradient(145deg, #087eaa, #0d5472);
  border-color: #159fcf;
}

html[data-theme="dark"] .welcome {
  background: linear-gradient(135deg, #081b27, #0c3041);
  border-color: #23495c;
}

html[data-theme="dark"] .expect-list article {
  border-color: #285064;
  background: rgba(12, 38, 52, .88);
}

html[data-theme="dark"] .sermon-placeholder {
  border-color: #285064;
  background:
    radial-gradient(circle at 91% 22%, rgba(18, 175, 230, .18), transparent 160px),
    linear-gradient(135deg, #0d2230, #0a1c28);
}

html[data-theme="dark"] .ministries {
  background: linear-gradient(180deg, #0b2938, #071822);
}

html[data-theme="dark"] .ministry-grid article,
html[data-theme="dark"] .ministry-grid article:nth-child(2),
html[data-theme="dark"] .ministry-grid article:nth-child(3) {
  border-color: #285064;
  border-top-color: #29b7e7;
  background: linear-gradient(145deg, #0d2230 42%, #0d3547 100%);
}

html[data-theme="dark"] .ministry-grid span {
  border-color: rgba(82, 193, 230, .4);
  background: #12384a;
  color: #75d5f4;
}

html[data-theme="dark"] .contact-card {
  background: linear-gradient(135deg, #087da8, #0b4058);
  border-color: #159fcf;
}

/* Keep both location cards in one visual system. */
.gathering-card,
.gathering-card.featured {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-blue);
  background: var(--paper);
  color: var(--ink);
}

.gathering-card.featured .card-top span,
.gathering-card.featured > p:not(.address),
.gathering-card.featured .weekly-program em {
  color: var(--muted);
}

.gathering-card.featured .address {
  border-color: var(--brand-blue-line);
  background: var(--brand-blue-soft);
  color: #075f82;
}

.gathering-card.featured .weekly-program > div {
  border-color: rgba(18, 175, 230, .22);
  background: rgba(234, 248, 253, .7);
}

.service-alert {
  border-color: #88d9f3;
  background: #dff5fc;
  color: #075f82;
}

html[data-theme="dark"] .gathering-card.featured {
  border-color: #23495c;
  border-top-color: #29b7e7;
  background: #0d2230;
  color: #f5fbfe;
}

html[data-theme="dark"] .gathering-card.featured .address,
html[data-theme="dark"] .gathering-card.featured .weekly-program > div {
  border-color: #31596b;
  background: #123548;
  color: #eaf8fd;
}

html[data-theme="dark"] .gathering-card.featured .weekly-program em {
  color: #a8c2d0;
}

html[data-theme="dark"] .service-alert {
  border-color: #39738e;
  background: #10384b;
  color: #d9f5ff;
}

/* About panel: use the empty half for a restrained brand emblem. */
.about-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .55fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 50%, rgba(18, 175, 230, .12), transparent 260px),
    var(--paper);
}

.about-copy {
  position: relative;
  z-index: 2;
}

.about-copy > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.about-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.about-emblem-ring {
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(18, 175, 230, .24);
  border-radius: 50%;
  background: rgba(234, 248, 253, .58);
  box-shadow:
    0 0 0 22px rgba(18, 175, 230, .05),
    0 0 0 44px rgba(18, 175, 230, .025);
}

.about-emblem img {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 14px 22px rgba(8, 127, 174, .18));
}

.about-emblem strong {
  color: var(--brand-blue-deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
}

html[data-theme="dark"] .about-card {
  background:
    radial-gradient(circle at 86% 50%, rgba(18, 175, 230, .2), transparent 270px),
    #0d2230;
}

html[data-theme="dark"] .about-emblem-ring {
  border-color: rgba(82, 193, 230, .35);
  background: rgba(14, 56, 75, .76);
}

html[data-theme="dark"] .about-emblem strong {
  color: #75d5f4;
}

@media (max-width: 760px) {
  .about-card {
    grid-template-columns: 1fr;
  }

  .about-emblem {
    grid-template-columns: auto 1fr;
    justify-items: start;
  }

  .about-emblem-ring {
    width: 94px;
    height: 94px;
    box-shadow: 0 0 0 14px rgba(18, 175, 230, .04);
  }

  .about-emblem img {
    width: 68px;
    height: 68px;
  }

  .about-emblem strong {
    align-self: center;
  }
}

.hero-visual {
  margin: 0;
  background: #26333b;
}

.hero-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
}

.hero-visual::before {
  z-index: 1;
}

.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.footer-brand > span {
  display: flex;
  flex-direction: column;
}

.footer-brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .17em;
}

.hero-photo-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.gathering-photo {
  display: block;
  width: calc(100% + 56px);
  height: 210px;
  margin: -28px -28px 24px;
  border-radius: 22px 22px 0 0;
  object-fit: cover;
  object-position: center 58%;
}

.gathering-card:has(.gathering-photo) .card-top {
  margin-bottom: 28px;
}

.hero-photo-note strong {
  font-size: 18px;
}

.hero-photo-note span {
  color: rgba(255, 255, 255, .78);
}

/* Warm, welcoming default palette for the public church homepage. */
:root {
  --bg: #fbf6ec;
  --paper: #fffdf8;
  --ink: #33291f;
  --muted: #75695e;
  --line: #eadfce;
  --accent: #a9683f;
  --accent-soft: #f3dfc4;
  --dark: #7b452e;
  --shadow: 0 22px 60px rgba(112, 77, 43, .13);
}

.site-header {
  background: color-mix(in srgb, #fffaf1 94%, transparent);
  border-bottom-color: rgba(151, 101, 62, .13);
}

.visit-btn,
.btn.primary,
.play {
  background: #9b5939;
}

.hero-visual::before {
  background: linear-gradient(transparent 68%, rgba(67, 39, 22, .32));
}

.hero-photo-note {
  border-color: rgba(255, 246, 228, .46);
  background: rgba(74, 45, 27, .55);
}

.welcome {
  background: #f1dfc7;
  color: var(--ink);
}

.welcome .section-heading > p:last-child,
.expect-list p {
  color: #6f6154;
}

.expect-list article {
  border-color: #e1c8a9;
  background: rgba(255, 253, 248, .72);
}

.expect-list article > strong {
  color: #a35f3b;
}

.gathering-card.featured {
  background: #a65f3d;
  border-color: #a65f3d;
}

.contact-card {
  background: linear-gradient(135deg, #9d5838, #bd7650);
}

.contact-card p {
  color: #fff3e7;
}

.btn.light {
  color: #6d3d29;
}

@media (max-width: 640px) {
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }

  .hero-visual > img {
    object-position: 61% center;
  }

  .gathering-photo {
    width: calc(100% + 44px);
    height: 180px;
    margin: -22px -22px 20px;
  }
}

/* Focused layout polish: clearer hierarchy and a shorter, calmer page. */
.section {
  padding-top: 68px;
  padding-bottom: 68px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
}

.section-heading > p:last-child {
  max-width: 680px;
  font-size: 16px;
}

.gathering-grid {
  align-items: stretch;
  gap: 22px;
}

.gathering-card {
  border-radius: 20px;
}

.gathering-card.featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome .split {
  grid-template-columns: .92fr 1.08fr;
  gap: 52px;
  align-items: center;
}

.expect-list {
  gap: 12px;
}

.expect-list article {
  padding: 18px 20px;
}

.sermon-placeholder {
  min-height: 176px;
  padding: 26px 30px;
}

.play {
  width: 64px;
  height: 64px;
}

.ministry-grid article {
  min-height: 218px;
}

.ministry-grid span {
  margin-bottom: 34px;
}

.about-card {
  padding: 38px 40px;
}

.about-card h2 {
  max-width: 760px;
  font-size: clamp(36px, 4vw, 52px);
}

.about-card > p:last-child {
  font-size: 17px;
  line-height: 1.7;
}

.contact-card {
  padding: 32px 36px;
}

.contact-card h2 {
  font-size: clamp(34px, 4vw, 48px);
}

@media (min-width: 981px) {
  .hero {
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .hero h1 {
    max-width: 540px;
    font-size: clamp(48px, 4.7vw, 64px);
    line-height: 1.03;
  }

  html[lang="nl"] .hero h1 {
    font-size: clamp(46px, 4.25vw, 58px);
  }

  .hero-lead {
    max-width: 560px;
    font-size: 18px;
  }

  .hero-visual {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: clamp(32px, 9.5vw, 38px);
  }

  .hero h1,
  html[lang="nl"] .hero h1 {
    font-size: clamp(38px, 11vw, 46px);
  }

  .hero-visual {
    min-height: 300px;
  }

  .gathering-card.featured {
    justify-content: flex-start;
  }

  .sermon-placeholder {
    min-height: 0;
    padding: 24px 22px;
  }

  .ministry-grid article {
    min-height: 188px;
  }

  .about-card,
  .contact-card {
    padding: 26px 22px;
  }
}


/* Recent activity carousel. */
.activity-gallery .row-heading {
  align-items: end;
}

.activity-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #5f4030;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.activity-track {
  display: flex;
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
}

.activity-slide {
  position: relative;
  min-width: 100%;
  height: clamp(390px, 50vw, 570px);
  overflow: hidden;
}

.activity-slide::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(40, 24, 14, .82));
}

.activity-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.activity-caption {
  position: absolute;
  z-index: 2;
  left: 36px;
  right: 120px;
  bottom: 34px;
  color: #fff;
}

.activity-type {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(74, 42, 25, .45);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.activity-caption h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -.035em;
}

.activity-caption p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: rgba(50, 29, 18, .42);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-arrow:hover {
  background: rgba(50, 29, 18, .68);
}

.carousel-arrow.previous {
  left: 20px;
}

.carousel-arrow.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 38px;
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 26px;
  border-radius: 999px;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .activity-track {
    transition: none;
  }
}

@media (max-width: 640px) {
  .activity-slide {
    height: 420px;
  }

  .activity-caption {
    left: 22px;
    right: 22px;
    bottom: 28px;
  }

  .activity-caption h3 {
    font-size: 30px;
  }

  .carousel-arrow {
    top: 22px;
    width: 40px;
    height: 40px;
    transform: none;
  }

  .carousel-arrow.previous {
    left: auto;
    right: 70px;
  }

  .carousel-arrow.next {
    right: 20px;
  }

  .carousel-dots {
    right: auto;
    left: 22px;
    bottom: 18px;
  }

  .activity-caption {
    bottom: 48px;
  }
}


/* Use opacity-based slide changes for consistent rendering across browsers. */
.activity-track {
  position: relative;
  display: block;
}

.activity-slide {
  position: absolute;
  inset: 0;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}

.activity-slide:first-child {
  position: relative;
}

.activity-slide.is-active {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .activity-slide {
    transition: none;
  }
}


/* Homepage hero: compact, balanced, and readable without awkward Chinese wrapping. */
@media (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: clamp(42px, 4vw, 72px);
    min-height: 610px;
    padding-top: 44px;
    padding-bottom: 52px;
    align-items: center;
  }

  .hero-copy {
    min-width: 0;
    padding-bottom: 8px;
  }

  .hero .eyebrow {
    margin-bottom: 20px;
  }

  .hero h1 {
    max-width: 680px;
    margin-bottom: 24px;
    font-size: clamp(48px, 3.55vw, 58px);
    line-height: 1.14;
    letter-spacing: -.055em;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  html[lang="nl"] .hero h1 {
    max-width: 650px;
    font-size: clamp(43px, 3.15vw, 52px);
    line-height: 1.12;
    letter-spacing: -.045em;
  }

  .hero-lead {
    max-width: 590px;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.75;
  }

  .hero-visual {
    min-height: 0;
    height: clamp(430px, 34vw, 510px);
    border-radius: 28px;
    box-shadow: 0 26px 64px rgba(91, 59, 35, .18);
  }

  .hero-photo-note {
    left: 24px;
    right: 24px;
    bottom: 24px;
    width: auto;
    padding: 18px 20px;
    border-radius: 18px;
  }
}

@media (max-width: 980px) {
  .hero h1 {
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .hero h1,
  html[lang="nl"] .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 43px);
    line-height: 1.14;
    letter-spacing: -.05em;
  }

  .hero-lead {
    line-height: 1.7;
  }

  .hero-visual {
    min-height: 0;
    height: 330px;
    border-radius: 22px;
  }

  .hero-photo-note {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    padding: 15px 16px;
    border-radius: 15px;
  }
}


/* Wide-screen composition: use the available canvas instead of a narrow centered strip. */
@media (min-width: 1280px) {
  .shell {
    width: min(1500px, calc(100% - 72px));
  }

  .site-header {
    padding-left: max(36px, calc((100vw - 1500px) / 2));
    padding-right: max(36px, calc((100vw - 1500px) / 2));
  }

  .hero {
    grid-template-columns: minmax(600px, .92fr) minmax(680px, 1.08fr);
    gap: clamp(56px, 5vw, 96px);
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 36px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(52px, 3.25vw, 64px);
  }

  .hero-visual {
    height: clamp(500px, 34vw, 570px);
  }

  .activity-gallery {
    padding-top: 50px;
  }
}


/* Logo-blue accents: keep the warm base, add fresh light-blue rhythm. */
:root {
  --brand-blue: #12afe6;
  --brand-blue-deep: #087fae;
  --brand-blue-soft: #eaf8fd;
  --brand-blue-line: #bfe9f8;
}

body {
  background:
    radial-gradient(circle at 82% 5%, rgba(18, 175, 230, .12), transparent 25rem),
    linear-gradient(180deg, #fffaf2 0, var(--bg) 42rem);
}

.site-header {
  box-shadow: inset 0 3px 0 rgba(18, 175, 230, .72);
}

.eyebrow {
  color: var(--brand-blue-deep);
}

.hero-visual {
  border: 4px solid rgba(18, 175, 230, .28);
  box-shadow: 0 26px 70px rgba(8, 127, 174, .16);
}

.hero-copy::before {
  content: "";
  display: block;
  width: 74px;
  height: 6px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), #76d7f5);
}

#activities {
  background: linear-gradient(180deg, rgba(234, 248, 253, .74), rgba(251, 246, 236, 0));
  border-top: 1px solid var(--brand-blue-line);
}

#activities .section-heading h2::after,
#gatherings .section-heading h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--brand-blue);
}

.lang-btn:hover,
.round-btn:hover,
.btn.secondary:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

@media (max-width: 640px) {
  .hero-copy::before {
    width: 58px;
    margin-bottom: 16px;
  }
}


/* Airy Evangeliekerk blue: buttons and soft wind-like ribbons. */
.visit-btn,
.btn.primary,
.play {
  background: linear-gradient(135deg, #087fae, #16afe5);
  box-shadow: 0 10px 24px rgba(8, 127, 174, .2);
}

.visit-btn:hover,
.btn.primary:hover {
  background: linear-gradient(135deg, #076f99, #0e9fd2);
  transform: translateY(-1px);
}

.text-link {
  color: #087fae;
}

.hero,
#activities,
.welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero > *,
#activities > *,
.welcome > * {
  position: relative;
  z-index: 1;
}

.hero::after,
#activities::after,
.welcome::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 72%;
  height: 220px;
  pointer-events: none;
  opacity: .48;
  background: repeating-linear-gradient(
    166deg,
    transparent 0 24px,
    rgba(18, 175, 230, .16) 25px 27px,
    transparent 28px 48px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 74%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 74%, transparent);
  transform: rotate(-5deg);
}

.hero::after {
  top: 18px;
  right: -21%;
}

#activities::after {
  bottom: 4%;
  left: -24%;
  transform: rotate(7deg);
}

.welcome::after {
  top: 12%;
  right: -30%;
  opacity: .3;
}

.gathering-card.featured {
  background: linear-gradient(145deg, #087fae, #16a9dc);
  border-color: #087fae;
}

.contact-card {
  background: linear-gradient(135deg, #087fae, #19afe1);
}

.btn.light {
  color: #08769f;
}

@media (max-width: 640px) {
  .hero::after,
  #activities::after,
  .welcome::after {
    width: 120%;
    opacity: .32;
  }
}


/* Temporary service exception shown directly on the Rijswijk gathering card. */
.service-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.55;
}

.service-alert[hidden] {
  display: none;
}


/* Weekly programmes, grouped visibly under each church location. */
.weekly-program {
  display: grid;
  gap: 8px;
  margin: 18px 0 20px;
}

.weekly-program > div {
  display: grid;
  grid-template-columns: 82px 112px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(18, 175, 230, .22);
  border-radius: 11px;
  background: rgba(234, 248, 253, .7);
}

.gathering-card.featured .weekly-program > div {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
}

.weekly-program span {
  font-size: 12px;
  font-weight: 850;
}

.weekly-program strong {
  font-size: 13px;
}

.weekly-program em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.gathering-card.featured .weekly-program em {
  color: rgba(255, 255, 255, .82);
}

@media (max-width: 640px) {
  .weekly-program > div {
    grid-template-columns: 70px 1fr;
  }

  .weekly-program em {
    grid-column: 1 / -1;
  }
}


/* Make each church identity and address unmistakable. */
.gathering-card > h3 {
  margin-bottom: 16px;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.gathering-card .address {
  display: inline-block;
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid var(--brand-blue-line);
  border-radius: 11px;
  background: var(--brand-blue-soft);
  color: #075f82;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.45;
}

.gathering-card.featured .address {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}


/* Stronger header identity and clearer primary actions. */
.brand-mark {
  width: 58px;
  height: 58px;
}

.brand-copy strong {
  font-size: 22px;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: .18em;
}

.hero-actions .btn {
  min-width: 156px;
  min-height: 58px;
  padding: 17px 24px;
  font-size: 17px;
  border-radius: 14px;
}

.hero-visual > img {
  transition: opacity .45s ease, transform .65s ease;
}

.hero-visual > img.is-changing {
  opacity: .18;
  transform: scale(1.015);
}

/* Compact activity feature with supporting stories alongside it. */
.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr);
  gap: 18px;
  align-items: start;
}

.activity-layout .activity-carousel,
.activity-layout .activity-slide {
  height: 410px;
}

.activity-summary-list {
  display: grid;
  grid-auto-rows: auto;
  gap: 10px;
}

.activity-summary {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.activity-summary:hover,
.activity-summary.is-active {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  box-shadow: 0 9px 24px rgba(8, 127, 174, .1);
}

.activity-summary img {
  width: 96px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.activity-summary span {
  display: grid;
  min-width: 0;
}

.activity-summary small {
  color: var(--brand-blue-deep);
  font-size: 10px;
  font-weight: 900;
}

.activity-summary strong {
  margin: 4px 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-summary em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .activity-layout {
    grid-template-columns: 1fr;
  }

  .activity-layout .activity-slide {
    height: clamp(300px, 58vw, 430px);
  }

  .activity-summary-list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .hero-actions .btn {
    min-width: 0;
    min-height: 54px;
    padding: 15px 18px;
    font-size: 16px;
  }

  .activity-layout .activity-slide {
    height: 310px;
  }

  .activity-summary-list {
    grid-template-columns: 1fr;
  }

  .activity-summary:nth-child(n+4) {
    display: none;
  }
}


/* Full hero redesign: one composed welcome stage, not two loose columns. */
.hero {
  position: relative;
  width: min(1500px, calc(100% - 36px));
  min-height: 610px;
  margin-top: 28px;
  margin-bottom: 30px;
  padding: clamp(38px, 5vw, 76px);
  gap: clamp(34px, 5vw, 78px);
  grid-template-columns: minmax(420px, .88fr) minmax(560px, 1.12fr);
  border: 1px solid rgba(18, 175, 230, .18);
  border-radius: 38px;
  background:
    radial-gradient(circle at 7% 9%, rgba(255,255,255,.96), transparent 24rem),
    linear-gradient(120deg, #fffaf2 0 47%, #eaf8fd 47% 100%);
  box-shadow: 0 28px 80px rgba(8, 92, 126, .09);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 1px solid rgba(18, 175, 230, .1);
  border-radius: 27px;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(4px, 2vw, 28px);
}

.hero-copy::before {
  width: 82px;
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(52px, 4.1vw, 72px);
  line-height: 1.06;
}

.hero-lead {
  max-width: 620px;
  color: #54483f;
  font-size: 18px;
}

.hero-location-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 500px;
  margin-top: 30px;
}

.hero-location-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(18, 175, 230, .24);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  color: #44382f;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(8,127,174,.06);
}

.hero-location-strip span {
  color: var(--brand-blue-deep);
  font-size: 13px;
  font-weight: 900;
}

.hero-location-strip strong {
  font-size: 12px;
  white-space: nowrap;
}

.hero-visual {
  z-index: 2;
  min-height: 0;
  height: clamp(490px, 32vw, 560px);
  border-width: 3px;
  border-radius: 28px;
  transform: rotate(.7deg);
  box-shadow: 0 30px 70px rgba(8, 92, 126, .18);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-note {
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(28, 44, 52, .76);
}

.hero-photo-note strong {
  font-size: 18px;
}

.hero-photo-note span {
  color: rgba(255,255,255,.86);
  font-weight: 750;
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 8% 10%, rgba(22,65,83,.55), transparent 25rem),
    linear-gradient(120deg, #071824 0 47%, #0b2a3a 47% 100%);
  border-color: rgba(76, 205, 246, .28);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

html[data-theme="dark"] .hero-lead {
  color: #c6dce5;
}

html[data-theme="dark"] .hero-location-strip a {
  border-color: rgba(76,205,246,.25);
  background: rgba(8,34,47,.72);
  color: #eefaff;
}

@media (max-width: 1100px) {
  .hero {
    width: min(100% - 28px, 1180px);
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    padding: 42px;
  }

  .hero h1 {
    font-size: clamp(46px, 5vw, 62px);
  }

  .hero-visual {
    height: 500px;
  }

  .hero-photo-note {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 14px;
    padding: 34px 26px 28px;
    border-radius: 26px;
    background: linear-gradient(155deg, #fffaf2 0 48%, #eaf8fd 48% 100%);
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 58px);
  }

  .hero-visual {
    height: clamp(350px, 72vw, 500px);
    transform: none;
  }

  html[data-theme="dark"] .hero {
    background: linear-gradient(155deg, #071824 0 48%, #0b2a3a 48% 100%);
  }
}

@media (max-width: 540px) {
  .hero {
    width: calc(100% - 18px);
    padding: 28px 17px 17px;
  }

  .hero::before {
    inset: 8px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-location-strip {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .hero-visual {
    height: 330px;
    border-radius: 20px;
  }

  .hero-photo-note {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 13px 14px;
  }
}


/* Hero v4: photo-led story with a gathering bridge into the page. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1500px, calc(100% - 48px));
  min-height: 600px;
  margin: 28px auto 0;
  padding: 42px 42px 34px;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(18,175,230,.16);
  border-radius: 38px;
  background:
    radial-gradient(circle at 12% 4%, rgba(255,255,255,.9), transparent 34%),
    linear-gradient(135deg, #fff8ee 0 42%, #eaf8fd 78%, #dff3fa 100%);
  box-shadow: 0 28px 80px rgba(19,86,113,.1);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255,248,238,.42) 0, transparent 38%),
    linear-gradient(180deg, transparent 72%, rgba(16,83,109,.06));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -5%;
  bottom: -38%;
  width: 58%;
  height: 62%;
  border-radius: 50%;
  background: rgba(18,175,230,.08);
  filter: blur(2px);
  pointer-events: none;
}

.hero-copy {
  grid-column: 1 / span 6;
  grid-row: 1;
  z-index: 4;
  align-self: center;
  max-width: 650px;
  margin: 0;
  padding: 30px 30px 78px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-copy::before {
  width: 64px;
  height: 5px;
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(50px, 3.75vw, 67px);
  line-height: 1.07;
}

.hero-lead {
  max-width: 555px;
  color: #5b4b3f;
  font-size: 17px;
}

.hero-actions {
  margin-top: 22px;
}

.hero-visual {
  grid-column: 5 / -1;
  grid-row: 1;
  z-index: 2;
  align-self: stretch;
  width: 100%;
  height: 500px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: none;
  box-shadow: 0 26px 58px rgba(8,72,99,.18);
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.hero-visual::before {
  z-index: 1;
  inset: 0;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(33,36,35,.32), transparent 28%),
    linear-gradient(180deg, transparent 57%, rgba(8,24,31,.24));
}

.hero-photo-note {
  z-index: 3;
  left: auto;
  right: 20px;
  bottom: 20px;
  width: min(350px, calc(100% - 40px));
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 14px 17px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 13px;
  background: rgba(16,35,44,.78);
  backdrop-filter: blur(10px);
}

.hero-location-strip {
  grid-column: 2 / span 9;
  grid-row: 1 / span 2;
  z-index: 6;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: none;
  margin: 0 0 4px;
  overflow: hidden;
  border: 1px solid rgba(18,175,230,.23);
  border-radius: 17px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 44px rgba(8,92,126,.15);
  backdrop-filter: blur(14px);
}

.hero-location-strip a {
  min-height: 58px;
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-location-strip a + a {
  border-left: 1px solid rgba(18,175,230,.2);
}

.hero + .sermons {
  padding-top: clamp(64px, 7vw, 96px);
}

html[data-theme="dark"] .hero {
  border-color: rgba(76,205,246,.22);
  background:
    radial-gradient(circle at 12% 4%, rgba(28,66,82,.55), transparent 34%),
    linear-gradient(135deg, #071824 0 42%, #0b2a3a 78%, #0d3445 100%);
  box-shadow: 0 30px 84px rgba(0,0,0,.3);
}

html[data-theme="dark"] .hero-copy {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .hero-lead {
  color: #c8dce4;
}

html[data-theme="dark"] .hero-location-strip {
  border-color: rgba(76,205,246,.28);
  background: rgba(7,31,43,.92);
}

html[data-theme="dark"] .hero-location-strip a {
  background: transparent;
}

html[data-theme="dark"] .hero-location-strip a + a {
  border-left-color: rgba(76,205,246,.22);
}

@media (max-width: 1100px) {
  .hero {
    width: min(100% - 30px, 1060px);
    min-height: 570px;
    padding: 30px 30px 28px;
  }

  .hero-copy {
    grid-column: 1 / span 7;
    padding: 24px 22px 76px 8px;
  }

  .hero h1 {
    font-size: clamp(43px, 5vw, 56px);
  }

  .hero-visual {
    grid-column: 6 / -1;
    height: 480px;
  }

  .hero-location-strip {
    grid-column: 2 / span 10;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    width: min(100% - 22px, 720px);
    min-height: 0;
    margin-top: 14px;
    padding: 25px 18px 20px;
    border-radius: 27px;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    margin: 0;
    padding: 14px 5px 28px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 2;
    height: clamp(340px, 75vw, 470px);
    border-radius: 22px;
  }

  .hero-visual > img,
  .hero-visual::before {
    border-radius: 22px;
  }

  .hero-location-strip {
    grid-column: 1;
    grid-row: 3;
    align-self: auto;
    margin: -24px 13px 0;
  }

  html[data-theme="dark"] .hero-copy {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 20px 13px 15px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-location-strip {
    margin-inline: 7px;
  }

  .hero-location-strip a {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 11px 12px;
  }

  .hero-photo-note {
    left: 12px;
    right: 12px;
    bottom: 38px;
    width: auto;
  }
}


/* Map pin correction for the actual embedded Greater The Hague viewport. */
.pin-centre{left:57%;top:67%}
.pin-laakkwartier{left:58%;top:72%}
.pin-voorburg{left:61%;top:67%}
.pin-ypenburg{left:65%;top:73%}
.pin-wateringen{left:54%;top:78%}
.pin-loosduinen{left:50%;top:72%}
.pin-rijswijk{left:60%;top:77%}
.pin-sassenheim{left:59%;top:43%}


/* Keep both church cards aligned; the temporary notice overlays the photo. */
.gathering-card {
  position: relative;
}

.service-alert:not([hidden]) {
  position: absolute;
  z-index: 4;
  top: 154px;
  left: 14px;
  right: 14px;
  margin: 0;
  padding: 10px 14px;
  border-color: rgba(255,255,255,.72);
  background: rgba(5, 89, 122, .9);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 48, 67, .2);
  backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .service-alert:not([hidden]) {
    top: 128px;
    left: 10px;
    right: 10px;
    padding: 8px 11px;
    font-size: 12px;
  }
}


/* Hero v2: clean editorial composition, straight image, open breathing room. */
.hero {
  width: min(1480px, calc(100% - 48px));
  min-height: 620px;
  margin-top: 0;
  margin-bottom: 0;
  padding: clamp(56px, 6vw, 92px) clamp(18px, 3.5vw, 54px);
  grid-template-columns: minmax(430px, .88fr) minmax(600px, 1.12fr);
  gap: clamp(54px, 6vw, 96px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7% -10% 5% 48%;
  border: 0;
  border-radius: 50% 0 0 50%;
  background:
    radial-gradient(ellipse at 48% 52%, rgba(18,175,230,.17), rgba(18,175,230,.07) 48%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  top: 5%;
  right: -18%;
  width: 68%;
  height: 260px;
  opacity: .38;
}

.hero-copy {
  align-self: center;
  padding-left: 0;
}

.hero-copy::before {
  width: 72px;
  height: 5px;
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(54px, 4.15vw, 72px);
  line-height: 1.07;
}

.hero-lead {
  max-width: 620px;
}

.hero-location-strip {
  max-width: 520px;
}

.hero-visual {
  align-self: center;
  width: 100%;
  height: clamp(500px, 34vw, 570px);
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(18,175,230,.36);
  border-radius: 32px;
  background: rgba(255,255,255,.86);
  box-shadow:
    0 34px 72px rgba(8,92,126,.17),
    0 0 0 1px rgba(255,255,255,.74);
  transform: none;
}

.hero-visual > img {
  border-radius: 25px;
}

.hero-visual::before {
  z-index: 1;
  inset: 7px;
  border-radius: 25px;
}

.hero-photo-note {
  z-index: 3;
  left: 27px;
  right: 27px;
  bottom: 27px;
}

html[data-theme="dark"] .hero {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse at 48% 52%, rgba(18,175,230,.2), rgba(18,175,230,.07) 48%, transparent 72%);
}

html[data-theme="dark"] .hero-visual {
  border-color: rgba(82,193,230,.45);
  background: rgba(9,38,52,.9);
  box-shadow: 0 34px 78px rgba(0,0,0,.34);
}

@media (max-width: 1100px) {
  .hero {
    width: min(100% - 32px, 1180px);
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    padding: 54px 8px 62px;
  }

  .hero-visual {
    height: 500px;
  }
}

@media (max-width: 820px) {
  .hero {
    width: min(100% - 24px, 760px);
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 6px 50px;
    overflow: hidden;
    background: transparent;
  }

  .hero::before {
    inset: 42% -35% -5% 12%;
    border-radius: 50%;
  }

  html[data-theme="dark"] .hero {
    background: transparent;
  }

  .hero-visual {
    height: clamp(360px, 72vw, 500px);
  }
}

@media (max-width: 540px) {
  .hero {
    width: calc(100% - 24px);
    padding: 34px 0 42px;
  }

  .hero::before {
    inset: 48% -55% -2% 4%;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-visual {
    height: 335px;
    padding: 5px;
    border-radius: 23px;
  }

  .hero-visual > img,
  .hero-visual::before {
    border-radius: 18px;
  }

  .hero-visual::before {
    inset: 5px;
  }

  .hero-photo-note {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}


/* Group section v2: balanced copy, reliable map, honest coverage legend. */
.group-map {
  grid-template-columns: minmax(440px, .95fr) minmax(0, 1.05fr);
  gap: clamp(42px, 5vw, 72px);
  align-items: center;
}

.group-map-copy h2 {
  max-width: 680px;
  font-size: clamp(40px, 3.65vw, 54px);
  line-height: 1.1;
  text-wrap: balance;
}

.group-map-copy > p:not(.eyebrow) {
  max-width: 690px;
  color: #4e4239;
}

.group-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 24px 0 28px;
}

.group-facts span {
  position: relative;
  padding: 12px 12px 12px 34px;
  border: 1px solid var(--brand-blue-line);
  border-radius: 13px;
  background: rgba(234,248,253,.76);
  color: #075f82;
  font-size: 13px;
  font-weight: 850;
}

.group-facts span::before {
  content: "✓";
  position: absolute;
  left: 12px;
  color: var(--brand-blue);
  font-weight: 950;
}

.group-map-visual {
  min-height: 510px;
}

.group-map-visual iframe {
  filter: saturate(.82) contrast(.96);
}

.group-map-legend {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  width: min(360px, calc(100% - 32px));
  padding: 15px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 16px;
  background: rgba(255,253,248,.93);
  box-shadow: 0 12px 30px rgba(0,50,72,.16);
  backdrop-filter: blur(10px);
}

.group-map-legend strong {
  display: block;
  margin-bottom: 10px;
  color: #075f82;
  font-size: 13px;
}

.group-map-legend div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.group-map-legend span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf8fd;
  color: #075f82;
  font-size: 10px;
  font-weight: 850;
}

html[data-theme="dark"] .group-map-copy > p:not(.eyebrow) {
  color: #c4d8e2;
}

html[data-theme="dark"] .group-facts span {
  border-color: #31596b;
  background: #123548;
  color: #d9f5ff;
}

html[data-theme="dark"] .group-map-legend {
  border-color: rgba(82,193,230,.34);
  background: rgba(7,28,40,.92);
}

html[data-theme="dark"] .group-map-legend strong,
html[data-theme="dark"] .group-map-legend span {
  color: #d9f5ff;
}

html[data-theme="dark"] .group-map-legend span {
  background: #123548;
}

@media (max-width: 900px) {
  .group-map {
    grid-template-columns: 1fr;
  }

  .group-map-copy h2 {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .group-facts {
    grid-template-columns: 1fr;
  }

  .group-map-visual {
    min-height: 440px;
  }

  .group-map-legend {
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }
}


/* Dark gathering cards: preserve readable contrast. */
html[data-theme="dark"] .gathering-card .address {
  border-color: #2a6b86;
  background: #12384a;
  color: #e9f9ff;
}

html[data-theme="dark"] .gathering-card .weekly-program > div {
  border-color: #2a6077;
  background: #123548;
}

html[data-theme="dark"] .gathering-card .weekly-program span,
html[data-theme="dark"] .gathering-card .weekly-program strong {
  color: #f4fbfe;
}

html[data-theme="dark"] .gathering-card .weekly-program em {
  color: #bfe4f2;
}

html[data-theme="dark"] .gathering-card .text-link {
  color: #58cdf2;
}

/* One simple contact form that sends inquiries by email. */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 4vw, 54px);
}

.contact-copy {
  align-self: center;
}

.contact-location-link {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 42px rgba(0,56,78,.18);
  color: #33291f;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label > span {
  color: #075f82;
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c7e8f4;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #2e2924;
  padding: 12px 13px;
  font: inherit;
}

.contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(18,175,230,.14);
}

.contact-form .btn {
  width: fit-content;
  min-width: 132px;
  border: 0;
  cursor: pointer;
}

.contact-form small {
  color: #6a625b;
  line-height: 1.5;
}

.contact-honey {
  position: absolute !important;
  left: -9999px !important;
}

html[data-theme="dark"] .contact-form {
  border-color: #31596b;
  background: #0d2230;
  color: #f5fbfe;
}

html[data-theme="dark"] .contact-form label > span {
  color: #75d5f4;
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
  border-color: #31596b;
  background: #071924;
  color: #f5fbfe;
}

html[data-theme="dark"] .contact-form small {
  color: #b5cfda;
}

@media (max-width: 820px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .contact-card {
    padding: 26px 18px;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-form .btn {
    width: 100%;
  }
}


/* Larger, easier-to-read desktop navigation. */
@media (min-width: 981px) {
  .desktop-nav {
    gap: 4px;
    padding: 6px;
  }

  .desktop-nav a {
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 760;
  }

  .round-btn,
  .lang-btn {
    height: 42px;
  }

  .round-btn {
    width: 42px;
  }

  .lang-btn {
    padding-inline: 14px;
    font-size: 15px;
  }

  .visit-btn {
    min-height: 46px;
    padding-inline: 20px;
    font-size: 15px;
  }
}


/* Final desktop navigation size pass for comfortable reading. */
@media (min-width: 981px) {
  .desktop-nav a {
    padding: 11px 15px;
    font-size: 17px;
    line-height: 1.2;
  }

  .round-btn,
  .lang-btn {
    height: 44px;
    font-size: 17px;
  }

  .round-btn {
    width: 44px;
  }

  .visit-btn {
    min-height: 48px;
    padding-inline: 21px;
    font-size: 17px;
  }
}


/* Put the coverage names on the map instead of in a detached legend. */
.group-map-copy h2 {
  font-size: clamp(38px, 3.25vw, 50px);
  line-height: 1.12;
}

.group-map-label {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: rgba(7,95,130,.92);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,50,72,.25);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.group-map-label::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #21c4ef;
}

.group-map-label[data-map-area="centre"] { left: 46%; top: 51%; }
.group-map-label[data-map-area="loosduinen"] { left: 35%; top: 53%; }
.group-map-label[data-map-area="wateringen"] { left: 40%; top: 65%; }
.group-map-label[data-map-area="laakkwartier"] { left: 48%; top: 57%; }
.group-map-label[data-map-area="rijswijk"] { left: 50%; top: 64%; }
.group-map-label[data-map-area="voorburg"] { left: 57%; top: 51%; }
.group-map-label[data-map-area="ypenburg"] { left: 61%; top: 61%; }
.group-map-label[data-map-area="sassenheim"] { left: 60%; top: 17%; }

html[data-theme="dark"] .group-map-label {
  border-color: rgba(117,213,244,.72);
  background: rgba(6,48,67,.94);
}

@media (max-width: 640px) {
  .group-map-copy h2 {
    font-size: 36px;
  }

  .group-map-label {
    padding: 6px 8px;
    gap: 5px;
    font-size: 8px;
  }

  .group-map-label::before {
    width: 6px;
    height: 6px;
  }
}


/* Compact the hero into one intentional screen instead of a tall empty stage. */
@media (min-width: 1101px) {
  .hero {
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 48px;
    gap: clamp(48px, 5vw, 78px);
  }

  .hero-visual {
    height: clamp(450px, 29vw, 500px);
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(52px, 3.85vw, 68px);
  }

  .hero-lead {
    margin-bottom: 0;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-location-strip {
    margin-top: 20px;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .hero {
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 46px;
  }

  .hero-visual {
    height: 460px;
  }
}


/* Reposition the seven local labels for the closer z=11 The Hague view. */
.group-map-label[data-map-area="centre"] { left: 44%; top: 52%; }
.group-map-label[data-map-area="loosduinen"] { left: 20%; top: 56%; }
.group-map-label[data-map-area="wateringen"] { left: 30%; top: 80%; }
.group-map-label[data-map-area="laakkwartier"] { left: 46%; top: 64%; }
.group-map-label[data-map-area="rijswijk"] { left: 50%; top: 78%; }
.group-map-label[data-map-area="voorburg"] { left: 64%; top: 52%; }
.group-map-label[data-map-area="ypenburg"] { left: 72%; top: 72%; }


/* Dark-mode contrast for the special joint-service notice. */
html[data-theme="dark"] .auto-joint-service {
  border-color: #25b8e9;
  background: linear-gradient(135deg, #0d3547, #102b39);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

html[data-theme="dark"] .auto-joint-service time {
  color: #72d8f7;
}

html[data-theme="dark"] .auto-joint-service h4,
html[data-theme="dark"] .auto-joint-service p {
  color: #f5fbfe;
}

html[data-theme="dark"] .auto-joint-service .auto-special-note {
  color: #ffb384;
}


/* Static small-group map: no dragging, zooming or accidental interaction. */
.group-map-static{display:block;margin:0;min-height:0;aspect-ratio:960/620;background:#bde9f6}
.group-map-static img{display:block;width:100%;height:100%;object-fit:cover}
.group-map-static figcaption{position:absolute;z-index:2;right:14px;bottom:14px;max-width:330px;padding:8px 11px;border-radius:10px;background:rgba(255,253,248,.94);color:#173746;font-size:11px;font-weight:800;box-shadow:0 5px 18px rgba(0,40,60,.14)}
html[data-theme="dark"] .group-map-static img{filter:brightness(.82) saturate(.82)}
html[data-theme="dark"] .group-map-static figcaption{background:rgba(8,27,39,.94);color:#e9f8fd}
.contact-form-status{min-height:1.4em;margin:0!important;color:#d9f5ff!important;font-size:14px;font-weight:800}
.contact-form-status.success{color:#b9f3d0!important}
.contact-form-status.error{color:#ffd0ca!important}
.contact-form button:disabled{cursor:wait;opacity:.65}


/* Latest sermon: use the blue side panel for the concise backend summary. */
.sermon-placeholder{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.72fr);gap:22px;align-items:stretch}
.latest-sermon-main{display:flex;align-items:center;gap:24px;min-width:0}
.sermon-summary-band{display:flex;flex-direction:column;justify-content:center;margin:-12px -12px -12px 0;padding:24px 28px;border-radius:18px;background:linear-gradient(135deg,#e8f8fd,#cceffc);border:1px solid var(--brand-blue-line)}
.sermon-summary-band strong{color:var(--brand-blue-deep);font-size:12px;letter-spacing:.13em}
.sermon-summary-band p{margin:10px 0 0!important;color:#254958!important;font-size:15px;line-height:1.7}
.sermon-heading-actions{max-width:520px}.sermon-heading-actions p{margin:0 0 10px}.sermon-heading-actions .text-link{color:var(--brand-blue-deep);font-weight:900}
html[data-theme="dark"] .sermon-summary-band{border-color:#31596b;background:linear-gradient(135deg,#0d3547,#102b39)}
html[data-theme="dark"] .sermon-summary-band strong{color:#72d4f5}
html[data-theme="dark"] .sermon-summary-band p{color:#e5f4fa!important}
html[data-theme="dark"] .sermon-heading-actions .text-link{color:#72d4f5}
@media(max-width:760px){.sermon-placeholder{grid-template-columns:1fr}.sermon-summary-band{margin:0;padding:20px}.latest-sermon-main{align-items:flex-start}}


.activity-heading-actions{max-width:520px}.activity-heading-actions p{margin:0 0 10px}.activity-heading-actions .text-link{color:var(--brand-blue-deep);font-weight:900}html[data-theme="dark"] .activity-heading-actions .text-link{color:#72d4f5}


/* Mobile navigation: keep every primary destination reachable below 980px. */
.mobile-nav-toggle{display:none;border:1px solid var(--brand-blue-line);border-radius:999px;background:var(--brand-blue-soft);color:#173746;padding:10px 14px;font:inherit;font-size:14px;font-weight:850;cursor:pointer}
.mobile-nav{position:absolute;z-index:100;top:calc(100% + 1px);left:12px;right:12px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:12px;border:1px solid var(--brand-blue-line);border-radius:0 0 20px 20px;background:rgba(255,253,248,.98);box-shadow:0 18px 38px rgba(8,42,58,.18);backdrop-filter:blur(16px)}
.mobile-nav[hidden]{display:none}
.mobile-nav a{padding:13px 14px;border-radius:11px;color:#173746;text-decoration:none;font-size:15px;font-weight:850}
.mobile-nav a:hover,.mobile-nav a:focus-visible{background:var(--brand-blue-soft);color:var(--brand-blue-deep)}
html[data-theme="dark"] .mobile-nav-toggle{border-color:#31596b;background:#0c202c;color:#f5fbfe}
html[data-theme="dark"] .mobile-nav{border-color:#31596b;background:rgba(6,19,28,.98)}
html[data-theme="dark"] .mobile-nav a{color:#f5fbfe}
html[data-theme="dark"] .mobile-nav a:hover,html[data-theme="dark"] .mobile-nav a:focus-visible{background:#123548;color:#72d4f5}
@media(max-width:980px){.site-header{position:sticky}.mobile-nav-toggle{display:inline-flex;align-items:center;justify-content:center}}
@media(max-width:640px){.mobile-nav-toggle{padding:9px 11px;font-size:13px}.mobile-nav{grid-template-columns:1fr}.header-actions .visit-btn{display:none}}


/* Compact first-visit FAQ */
.welcome-faq{display:grid;grid-template-columns:minmax(210px,.58fr) minmax(0,1.42fr);gap:42px;padding-top:42px;padding-bottom:42px}
.welcome-faq-heading h2{margin:8px 0 0;font-size:clamp(28px,3vw,42px);line-height:1.12}
.faq-list{display:grid;gap:10px}
.faq-list details{border:1px solid var(--brand-blue-line);border-radius:15px;background:rgba(255,255,255,.64);overflow:hidden}
.faq-list summary{position:relative;cursor:pointer;list-style:none;padding:17px 48px 17px 18px;font-weight:850;color:#173746}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--brand-blue-deep);font-size:24px;font-weight:500}
.faq-list details[open] summary::after{content:"−"}
.faq-list p{margin:0;padding:0 18px 18px;color:#52636b;line-height:1.7}
html[data-theme="dark"] .faq-list details{border-color:#31596b;background:#0c202c}
html[data-theme="dark"] .faq-list summary{color:#f5fbfe}
html[data-theme="dark"] .faq-list p{color:#cbdce4}
@media(max-width:760px){.welcome-faq{grid-template-columns:1fr;gap:18px;padding-block:32px}.faq-list summary{padding-block:15px}}


/* Upcoming events fill the activity rail without turning it into another calendar. */
.activity-side-rail{display:flex;flex-direction:column;justify-content:flex-start;gap:12px;min-width:0}
.activity-upcoming{padding:20px;border:1px solid var(--brand-blue-line);border-radius:20px;background:rgba(234,248,253,.72)}
.activity-upcoming[hidden]{display:none}
.activity-upcoming-head span{color:var(--brand-blue-deep);font-size:11px;font-weight:950;letter-spacing:.13em}
.activity-upcoming-head h3{margin:6px 0 15px;font-size:22px;line-height:1.2}
.activity-upcoming-list{display:grid;gap:10px}
.activity-upcoming-list article{padding:14px;border-radius:14px;background:var(--paper);box-shadow:0 7px 18px rgba(8,92,126,.07)}
.activity-upcoming-list time{color:#a35d34;font-size:12px;font-weight:900}
.activity-upcoming-list h4{margin:5px 0 4px;font-size:16px;line-height:1.3}
.activity-upcoming-list p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
html[data-theme="dark"] .activity-upcoming{border-color:#31596b;background:#0d2c3b}
html[data-theme="dark"] .activity-upcoming-head span{color:#72d4f5}
@media(max-width:900px){.activity-side-rail{display:grid;grid-template-columns:1fr 1fr;align-items:start}}
@media(max-width:640px){.activity-side-rail{grid-template-columns:1fr}.activity-upcoming{padding:17px}}


/* Subtle maker credit: visible without competing with the church identity. */
.footer-meta{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px}
.footer-meta>small{font-size:11px}
.footer-legal{display:flex;flex-direction:column;gap:4px;line-height:1.45}
.footer-legal span:last-child{font-size:11px;color:var(--muted);opacity:.82}
.site-credit{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;line-height:1;text-decoration:none;opacity:.72;transition:opacity .2s,color .2s}
.site-credit img{display:block;width:16px;height:19px}
.site-credit strong{font-weight:700}
.site-credit:hover,.site-credit:focus-visible{color:var(--ink);opacity:1}
.site-credit:focus-visible{outline:2px solid var(--brand-blue);outline-offset:4px;border-radius:3px}
@media(max-width:640px){.footer-meta{align-items:flex-start;flex-direction:column;gap:12px}.site-credit{font-size:12px}}


/* Hero v3: an editorial welcome card overlapping one generous photograph. */
@media (min-width: 821px) {
  .hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    width: min(1500px, calc(100% - 48px));
    min-height: 590px;
    padding: 38px 0 62px;
    gap: 0;
    overflow: visible;
  }

  .hero::before {
    inset: 3% -5% 2% 34%;
    border-radius: 48%;
  }

  .hero-copy {
    grid-column: 1 / span 6;
    grid-row: 1;
    z-index: 4;
    align-self: center;
    margin-right: -34px;
    padding: clamp(34px, 4vw, 58px);
    border: 1px solid rgba(138, 104, 73, .13);
    border-radius: 28px;
    background: rgba(255, 251, 244, .94);
    box-shadow: 0 28px 70px rgba(74, 55, 39, .14);
    backdrop-filter: blur(14px);
  }

  .hero-copy::before {
    width: 58px;
    margin-bottom: 18px;
  }

  .hero h1 {
    max-width: 630px;
    margin-bottom: 18px;
    font-size: clamp(48px, 3.55vw, 64px);
    line-height: 1.08;
  }

  .hero-lead {
    max-width: 550px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 21px;
  }

  .hero-location-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 550px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid rgba(18, 175, 230, .22);
    border-radius: 15px;
    background: rgba(255,255,255,.68);
  }

  .hero-location-strip a {
    padding: 12px 15px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-location-strip a + a {
    border-left: 1px solid rgba(18, 175, 230, .2);
  }

  .hero-visual {
    grid-column: 5 / -1;
    grid-row: 1;
    z-index: 2;
    width: 100%;
    height: clamp(510px, 36vw, 590px);
    padding: 0;
    border: 0;
    border-radius: 34px;
    background: none;
    box-shadow: 0 34px 80px rgba(8, 92, 126, .2);
  }

  .hero-visual > img,
  .hero-visual::before {
    inset: 0;
    border-radius: 34px;
  }

  .hero-photo-note {
    left: auto;
    right: 22px;
    bottom: 22px;
    width: min(390px, calc(100% - 44px));
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 15px 18px;
    border-radius: 14px;
  }

  html[data-theme="dark"] .hero-copy {
    border-color: rgba(104, 203, 237, .22);
    background: rgba(7, 24, 36, .92);
    box-shadow: 0 30px 75px rgba(0,0,0,.38);
  }

  html[data-theme="dark"] .hero-location-strip {
    border-color: rgba(76,205,246,.25);
    background: rgba(8,34,47,.72);
  }

  html[data-theme="dark"] .hero-location-strip a {
    background: transparent;
  }

  html[data-theme="dark"] .hero-location-strip a + a {
    border-left-color: rgba(76,205,246,.22);
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .hero {
    width: min(100% - 30px, 1050px);
    padding: 32px 0 52px;
  }

  .hero-copy {
    grid-column: 1 / span 7;
    margin-right: -26px;
    padding: 34px;
  }

  .hero h1 {
    font-size: clamp(42px, 5vw, 54px);
  }

  .hero-visual {
    grid-column: 6 / -1;
    height: 500px;
  }
}

@media (max-width: 820px) {
  .hero {
    gap: 0;
    padding-top: 24px;
  }

  .hero-copy {
    z-index: 3;
    margin: 0 8px -24px;
    padding: 26px 22px 28px;
    border: 1px solid rgba(138, 104, 73, .13);
    border-radius: 22px;
    background: rgba(255, 251, 244, .96);
    box-shadow: 0 20px 48px rgba(74,55,39,.13);
  }

  .hero-visual {
    z-index: 2;
    height: clamp(350px, 78vw, 470px);
    border-radius: 24px;
  }

  .hero-visual > img,
  .hero-visual::before {
    border-radius: 24px;
  }

  html[data-theme="dark"] .hero-copy {
    border-color: rgba(104,203,237,.2);
    background: rgba(7,24,36,.96);
    box-shadow: 0 22px 52px rgba(0,0,0,.36);
  }
}

@media (max-width: 540px) {
  .hero-copy {
    margin-inline: 4px;
    padding: 23px 18px 25px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-location-strip {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .hero-location-strip a {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
