/* ===== Inner pages: Sundays, What's on, Hire, Charity, Contact (Nov 2026) =====
   Loaded after bm.css. Sections reuse the home page classes (sundays, on/board/ev,
   tile, ask, hello, dl, who) plus the new ones below. */

.e-con .elementor-widget.elementor-widget:is(.h1,.h2,.h3,.lead,.label,.chips,.links,.asknote){margin-block-end:var(--mb,0)}

/* page hero */
.phero{padding:40px 0 110px;position:relative}
.phero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:center}
.phero.solo{padding-bottom:70px}
.phero.solo .wrap{grid-template-columns:minmax(0,820px)}
.phero .label{--mb:6px}
.phero .h1{font-size:76px;letter-spacing:-.05em;line-height:.98;--mb:24px}
.phero .h1 span{color:var(--orange)}
.phero .lead{max-width:540px!important}
.e-con.e-flex.ctas{--flex-direction:row;--flex-wrap:wrap;gap:12px;margin-top:34px}
.phero-pic{position:relative}
.phero-pic::before{content:"";position:absolute;inset:34px -40px -34px 40px;border-radius:999px 999px 40px 40px;background:var(--sage)}
.phero-pic .ph{position:relative;border-radius:999px 999px 32px 32px;overflow:hidden;aspect-ratio:1/1}
.page .phero-pic .ph>.elementor-widget-image{position:absolute;inset:0}
.phero-pic img{width:100%;height:100%;object-fit:cover;object-position:50% 70%}

/* generic section + heading row */
.sect{padding:110px 0 0}
.sect .head .h2{font-size:56px}

/* split: photo beside text */
.split,.mapgrid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}
.split-pic{position:relative;border-radius:32px;overflow:hidden;min-height:480px}
.page .split-pic>.elementor-widget-image{position:absolute;inset:0}
.split-pic img{width:100%;height:100%;object-fit:cover}
.split-t .h2{font-size:52px;--mb:20px;margin-top:14px}
.split-t .lead{--mb:16px}
.split-t .btn{margin-top:14px}
.split .who{margin:26px 0 0}
.page .who .elementor-widget-image img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:3px solid var(--sage)}
.e-con.e-flex.who{--flex-direction:row;--flex-wrap:nowrap}

/* cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:32px 30px 30px;transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.card .h3{font-size:24px;letter-spacing:-.03em;--mb:10px}
.card p{font-size:17px;line-height:1.5;color:var(--muted)}
.card p.big{font:800 24px/1.25 var(--head);letter-spacing:-.025em;color:var(--green-d);margin-bottom:10px;overflow-wrap:anywhere}
.card p.big a:hover{text-decoration:underline;text-underline-offset:4px}
@media (hover:hover){.card:hover{transform:translateY(-4px);box-shadow:0 26px 40px -30px rgba(50,40,20,.5)}}

/* photo gallery (uses .tile from the home page) */
.gallery{display:grid;grid-template-columns:1.3fr 1fr 1fr;grid-template-rows:260px 260px;gap:16px}
.gallery .tile:first-child{grid-row:1/3}
.gallery.three{grid-template-columns:repeat(3,1fr);grid-template-rows:280px}
.gallery.three .tile:first-child{grid-row:auto}

/* callout panel: text + photo */
.callout{background:var(--sage);border-radius:36px;display:grid;grid-template-columns:1.1fr .9fr;overflow:hidden}
.callout-t{padding:64px 60px}
.callout .h2{font-size:52px;--mb:18px;margin-top:14px}
.callout .lead{--mb:26px}
.callout-pic{position:relative;min-height:400px}
.page .callout-pic>.elementor-widget-image{position:absolute;inset:0}
.callout-pic img{width:100%;height:100%;object-fit:cover}
.callout.talk{background:var(--apricot);grid-template-columns:1fr}
.callout.talk .callout-t{max-width:820px}
.callout.talk .lead{color:#6E5C40}

/* chips and link lists */
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 26px}
.chips li{background:var(--sage);color:var(--green-d);border-radius:999px;padding:9px 16px;font:700 15px var(--head)}
.links{list-style:none;margin:6px 0 4px}
.links li{border-top:1px solid rgba(63,92,40,.18)}
.links a{display:flex;justify-content:space-between;align-items:center;padding:16px 0;font:700 19px var(--head);letter-spacing:-.01em}
.links a::after{content:"→";color:var(--orange-d);transition:transform .3s var(--ease)}
@media (hover:hover){.links a:hover::after{transform:translateX(6px)}}

/* hire spaces */
.spaces{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.space{background:#fff;border:1px solid var(--line);border-radius:30px;overflow:hidden}
.space-pic{position:relative;height:320px}
.page .space-pic>.elementor-widget-image{position:absolute;inset:0}
.space-pic img{width:100%;height:100%;object-fit:cover}
.space-t{padding:28px 30px 32px}
.space .h3{font-size:28px;letter-spacing:-.035em;--mb:10px}
.space p{color:var(--muted)}

/* noticeboard on inner pages */
.on .events{grid-template-columns:repeat(4,1fr)}
.on .events .ev:nth-child(4n+1){--r:-1.5deg}
.on .events .ev:nth-child(4n+2){--r:1.2deg}
.on .events .ev:nth-child(4n+3){--r:-.8deg}
.on .events .ev:nth-child(4n+4){--r:1.6deg}
.on .events.two{grid-template-columns:repeat(3,1fr)}
.sect + .on,.sect + .hello{margin-top:110px}
.on + .hello{margin-top:0}
.sect + .ask{padding-top:110px}

/* ask box extras */
.asknote{color:#C9CDB9;font-size:18px;line-height:1.5;--mb:20px}
.askmail{--mb:6px}
.askform input[type=tel]{display:block;width:100%}

/* map */
.mapbox{border-radius:32px;overflow:hidden;min-height:480px;background:var(--sage)}
.mapbox iframe{display:block;width:100%;height:480px;border:0}
.mapgrid .split-t .btn{margin-top:0}

/* anchors land below the sticky header */
#groups,#enquire,#message,#find,#help{scroll-margin-top:100px}

/* ===== events diary ===== */
.evcards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.evc{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start;background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.evc-pic{display:none}
.evc-date{display:grid;place-items:center;width:72px;padding:10px 0 12px;border-radius:18px;background:var(--orange);color:#fff;text-align:center;font:800 12px/1.1 var(--head);letter-spacing:.08em;text-transform:uppercase}
.evc-date b{font-size:32px;letter-spacing:-.03em;line-height:1;margin:2px 0}
.evc-t{display:flex;flex-direction:column;gap:4px;min-width:0}
.evc-t b{font:800 21px/1.2 var(--head);letter-spacing:-.025em;color:var(--ink)}
.evc-when{font:800 14px var(--head);color:var(--orange-d)}
.evc-x{font-size:15.5px;line-height:1.45;color:var(--muted);margin-top:4px}
@media (hover:hover){.evc:hover{transform:translateY(-4px);box-shadow:0 26px 40px -30px rgba(50,40,20,.5)}}
.evnone{font-size:19px;color:var(--muted)}

/* Events Manager month calendar */
.calbox{background:#fff;border:1px solid var(--line);border-radius:30px;padding:28px}
.calbox .em{--accent-color:var(--green);--accent-color-hover:var(--green-d);--font-family:var(--body);--text-color-normal:var(--ink);--text-color-softer:var(--muted);--border-color:var(--line)}
.calbox .em.em-calendar{font-family:var(--body)}
.calbox .em-cal-nav .month-nav,.calbox .em-cal-nav{font-family:var(--head)}
.calbox .em-cal-body .em-cal-event{border-radius:8px}

/* single event page */
.evsingle{padding:40px 0 120px}
.evsingle .label a{color:inherit}
.evsingle .h1{font-size:64px;letter-spacing:-.045em;margin:14px 0 34px}
.evsingle .evbody{max-width:900px;background:#fff;border:1px solid var(--line);border-radius:30px;padding:36px}
.evsingle .em{--accent-color:var(--green);--font-family:var(--body)}
.evsingle .em-item-header h3{font:800 20px var(--head);letter-spacing:-.02em;margin-bottom:8px}
.evsingle .em-event-content{margin-top:24px;font-size:19px;color:var(--muted)}
.evback{margin-top:28px;font:800 16px var(--head);color:var(--green-d)}

@media (max-width:1100px) and (min-width:901px){
  .phero .h1{font-size:58px}
  .on .events{grid-template-columns:repeat(2,1fr)}
  .evcards{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .phero{padding:12px 0 70px}
  .phero .wrap{grid-template-columns:minmax(0,1fr);gap:40px}
  .phero .h1{font-size:46px}
  .phero-pic{margin:0 22px 0 4px}
  .phero-pic::before{inset:22px -22px -20px 22px}
  .e-con.e-flex.ctas{--flex-direction:column}
  .ctas .btn{align-self:stretch;width:100%}
  .sect{padding-top:76px}
  .sect .head .h2{font-size:38px}
  .split,.mapgrid{grid-template-columns:minmax(0,1fr);gap:28px}
  .split-pic{min-height:280px;border-radius:24px}
  .split-t .h2{font-size:36px}
  .split-t .btn,.callout .btn{align-self:stretch;width:100%}
  .split-t .btn a.elementor-button,.callout .btn a.elementor-button,.ctas .btn a.elementor-button{display:flex;width:100%;justify-content:center}
  .split .split-t{order:2}
  .cards{grid-template-columns:minmax(0,1fr);gap:14px}
  .card{padding:26px 22px}
  .gallery{grid-template-columns:1fr 1fr;grid-template-rows:260px 180px 180px;gap:12px}
  .gallery .tile:first-child{grid-row:auto;grid-column:1/3}
  .gallery.three{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:220px}
  .gallery.three .tile:first-child{grid-column:auto}
  .callout{grid-template-columns:minmax(0,1fr);border-radius:28px}
  .callout-t{padding:36px 24px 40px}
  .callout .h2{font-size:36px}
  .callout-pic{min-height:240px}
  .spaces{grid-template-columns:minmax(0,1fr)}
  .space-pic{height:220px}
  .on .events,.on .events.two{grid-template-columns:1fr}
  .sect + .on,.sect + .hello{margin-top:76px}
  .sect + .ask{padding-top:76px}
  .mapbox,.mapbox iframe{min-height:0;height:320px;border-radius:24px}
  .evcards{grid-template-columns:minmax(0,1fr);gap:12px}
  .calbox{padding:14px;border-radius:22px}
  .evsingle .h1{font-size:42px}
  .evsingle .evbody{padding:22px}
}

/* form box as the last section: clear the footer's curved overlap */
.elementor>.ask:last-child{padding-bottom:110px}
@media (max-width:900px){
  .elementor>.ask:last-child{padding-bottom:76px}
  .gallery .tile .cap{left:10px;right:10px;bottom:10px}
  .gallery .tile .cap b{font-size:14px;padding:8px 11px;border-radius:12px}
}
.evsingle .em-item-image img{width:100%;max-height:360px;object-fit:cover;border-radius:20px;margin-bottom:24px}
.evsingle .em-item-meta-line{display:flex;gap:8px;align-items:center;margin-bottom:4px}

/* video in a photo tile (Bonfire Night on Home) */
.page .tile>.tile-video{position:absolute;inset:0}
.tile-video .elementor-widget-container,.tile-video video{width:100%;height:100%}
.tile-video video{object-fit:cover;display:block}

/* About: statement of faith */
.faith{display:grid;grid-template-columns:1fr 1fr;gap:16px;counter-reset:faith}
.faith>.elementor-widget{counter-increment:faith;background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px 26px 24px 74px;position:relative}
.faith>.elementor-widget::before{content:counter(faith);position:absolute;left:22px;top:22px;width:36px;height:36px;border-radius:12px;background:var(--sage);color:var(--green-d);display:grid;place-items:center;font:800 16px var(--head)}
.faith p{font-size:17px;line-height:1.55;color:var(--ink)}

/* About: history timeline */
.timeline{display:grid;gap:0;margin-top:10px}
.timeline p{display:grid;grid-template-columns:96px 1fr;gap:18px;padding:20px 0;border-top:1px solid var(--line)}
.timeline b{font:800 28px/1 var(--head);letter-spacing:-.03em;color:var(--orange)}
.timeline span{color:var(--muted);font-size:17px;line-height:1.55}
.timeline strong{display:block;font:800 19px/1.3 var(--head);letter-spacing:-.02em;color:var(--ink);margin-bottom:4px}
#history{scroll-margin-top:100px}

@media (max-width:900px){
  .faith{grid-template-columns:minmax(0,1fr);gap:12px}
  .faith>.elementor-widget{padding:20px 20px 20px 66px}
  .timeline p{grid-template-columns:72px 1fr;gap:12px}
  .timeline b{font-size:22px}
}

/* Sticky header: when it shrinks on scroll, add the lost height back as margin, so the
   page height doesn't change. Without this, scroll anchoring pulls scrollY back over the
   20px threshold and the header flips between sizes. Keep in step with the nav heights
   in bm.css (104 -> 78 desktop, 80 -> 70 mobile). */
header{transition:background .3s,box-shadow .3s,backdrop-filter .3s,margin-bottom .3s var(--ease)}
header.scrolled{margin-bottom:26px}
@media (max-width:900px){header.scrolled{margin-bottom:10px}}

/* Charity: pull quote and tall photo gallery */
.quote{margin:8px 0 22px;padding:22px 26px;background:var(--sage);border-radius:22px;border-left:6px solid var(--orange)}
.quote p{font:700 21px/1.4 var(--head);letter-spacing:-.015em;color:var(--green-d)}
.quote cite{display:block;margin-top:10px;font:400 15px var(--body);font-style:normal;color:var(--muted)}
.gallery.three.tall{grid-template-rows:440px}
.gallery.tall .tile img{object-position:50% 30%}
@media (max-width:900px){.gallery.three.tall{grid-template-rows:none;grid-auto-rows:380px}.quote p{font-size:18px}}

/* footer follow pills: Elementor's icon-box rules pin the text to the top; centre it on the icon */
.page .fpill .elementor-icon-box-content{align-self:center}

/* Sundays page: the guitar photo in the service panel is framed on the player, not the lyrics screen */
.page-id-98 .sundays .pic img{object-position:50% 92%}

/* ===== History page (2026-11-05) ===== */
.dates-s{padding-top:0}
.dates{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.dates>.elementor-widget{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px 20px}
.dates b{display:block;font:800 30px/1 var(--head);letter-spacing:-.03em;color:var(--orange);margin-bottom:10px}
.dates span{display:block;font-size:15.5px;line-height:1.45;color:var(--muted)}
.story{display:grid;grid-template-columns:300px minmax(0,1fr);gap:70px;align-items:start}
.story-h{position:sticky;top:120px}
.story-h .h2{font-size:44px;line-height:1.02;margin-top:14px}
.e-con.e-flex.story-t{gap:44px}
.prose p{font-size:19px;line-height:1.7;color:var(--muted);max-width:760px}
.prose p+p{margin-top:18px}
.fig img{display:block;width:100%;height:auto;border-radius:28px}
.figcap p{margin-top:12px;font-size:15px;color:var(--muted);font-style:italic}
.hsplit{gap:44px}
.hsplit .split-pic{min-height:440px}
.hsplit .prose p{font-size:18px}
.hgal.gallery.three{grid-template-rows:300px}
.page-id-170 .phero-pic img{object-position:52% 45%;filter:sepia(.15)}
@media (max-width:1100px) and (min-width:901px){.dates{grid-template-columns:repeat(3,1fr)}.story{grid-template-columns:220px minmax(0,1fr);gap:40px}.story-h .h2{font-size:36px}}
@media (max-width:900px){
  .dates{grid-template-columns:1fr 1fr;gap:10px}
  .dates>.elementor-widget{padding:16px}
  .dates b{font-size:24px}
  .story{grid-template-columns:minmax(0,1fr);gap:18px}
  .story-h{position:static}
  .story-h .h2{font-size:36px}
  .e-con.e-flex.story-t{gap:28px}
  .prose p,.hsplit .prose p{font-size:17px}
  .hsplit .split-pic{min-height:300px}
  .hsplit.txt-first .split-pic{order:2}
  .fig img{border-radius:22px}
}

/* ===== Home: merged noticeboard, history teaser, church hire (2026-11-05) ===== */
.board .socials-h.socials-h.first{margin-top:0}
.board .events.two{margin-top:0}
.board .head .h2 .note{white-space:nowrap}
.hist-home{padding:0 0 130px}
.hist-home .box{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}
.hist-home .print{position:relative;background:#fff;padding:14px 14px 16px;border-radius:6px;rotate:-2deg;box-shadow:0 2px 0 rgba(0,0,0,.04),0 30px 44px -28px rgba(80,50,10,.55)}
.hist-home .print::before{content:"";position:absolute;left:50%;top:-12px;width:96px;height:26px;margin-left:-48px;background:rgba(150,189,90,.55);transform:rotate(-3deg);z-index:2}
.hist-home .print img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;filter:sepia(.15)}
.hist-home .print .cap p{margin-top:12px;text-align:center;font:700 26px/1 Caveat,cursive;color:var(--green-d)}
.hist-home .h2{font-size:56px;margin-top:16px;--mb:22px}
.hist-home .lead{--mb:28px}
.hire-home{padding:0 0 140px}
.hire-home .hirebox{position:relative;background:var(--apricot);border-radius:44px;padding:64px;overflow:hidden;text-align:center;align-items:center}
.hire-home .hirebox::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(191,123,28,.13) 1.2px,transparent 1.3px);background-size:18px 18px;pointer-events:none}
.hire-home .hirebox>*{position:relative}
.hire-home .h2{font-size:46px;max-width:820px;margin:14px auto 0;--mb:18px}
.hire-home .lead{max-width:640px;margin:0 auto;color:#6E5C40}
.hire-home .label{align-self:center}
.e-con.e-flex.hire-home .ctas,.hire-home .ctas{justify-content:center;margin-top:30px}
@media (max-width:900px){
  .hist-home{padding-bottom:80px}
  .hist-home .box{grid-template-columns:minmax(0,1fr);gap:40px}
  .hist-home .print{margin:0 8px}
  .hist-home .h2{font-size:38px}
  .hist-home .btn{align-self:stretch;width:100%}
  .hist-home .btn a.elementor-button{display:flex;width:100%;justify-content:center}
  .hire-home{padding-bottom:80px}
  .hire-home .hirebox{padding:44px 22px;border-radius:30px}
  .hire-home .h2{font-size:32px}
}

/* History: two-up photo pair (Pennies before/after) */
.gallery.two{grid-template-columns:1fr 1fr;grid-template-rows:340px}
.gallery.two .tile:first-child{grid-row:auto}
@media (max-width:900px){.gallery.two{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:260px}.gallery.two .tile:first-child{grid-column:auto}}

/* Home: church hire moved to the very bottom (2026-11-05), sits close under the charity section */
.charity + .hire-home{margin-top:-60px}
@media (max-width:900px){.charity + .hire-home{margin-top:-50px}}

/* Reveal safety: hero text on every page fades in with CSS alone, so the first screen never waits for bm.js */
@keyframes bmRvIn{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
.js :is(.hero,.phero) .rv{opacity:1;transform:none;animation:bmRvIn .9s var(--ease) both}
.js :is(.hero,.phero) .rv.d1{animation-delay:.1s}
.js :is(.hero,.phero) .rv.d2{animation-delay:.2s}
.js :is(.hero,.phero) .rv.d3{animation-delay:.3s}

/* ===== EC comments (2026-11-11) ===== */
/* Home: "Questions before you come?" box in the site orange (dark text: white on orange is too low-contrast) */
.home .askbox{background:var(--orange);color:var(--forest)}
.home .ask .h2{color:var(--forest)}
.home .askmail a{color:var(--forest)}
.home .askform label{color:var(--forest)}
.home .askform input:not([type=submit]),.home .askform textarea{background:#fff;border-color:rgba(36,51,28,.18);color:var(--ink)}
.home .askform input:focus,.home .askform textarea:focus{outline-color:var(--forest)}
.home .askform input[type=submit]{background:var(--forest);color:#fff}
.home .askform .wpcf7-not-valid-tip{color:#7A1E0E}
.home .askform .wpcf7-response-output{color:var(--forest)}

/* Home: other activities cards */
.hire-home .events.hire-cards{grid-template-columns:repeat(2,1fr);max-width:820px;margin:44px auto 40px;text-align:left}
.hire-home .hire-cards .ev:nth-child(2){margin-top:22px}
.ev .pic.duo{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.page .ev .pic.duo>.elementor-widget-image{position:relative;height:100%}
.ev .pic.duo .elementor-widget-container{height:100%}

/* Hope in Bulgaria logo (home charity box + charity page) */
.page .charitybox .hib-logo img,.hib-logo img{display:block;width:120px;height:120px;object-fit:contain;border-radius:0}
.hib-logo{margin-bottom:22px}
.page-id-104 .hib-logo img{width:150px;height:150px}

/* Hire page: hall + Pennies photos at the top */
.phero-pic.two-pics .ph2{position:absolute;left:-34px;bottom:-34px;width:44%;aspect-ratio:1/1;border-radius:28px;overflow:hidden;border:8px solid var(--cream);box-shadow:0 24px 40px -26px rgba(80,50,10,.55);z-index:2}
.page .phero-pic .ph2>.elementor-widget-image{position:absolute;inset:0}
.phero-pic .ph2 .elementor-widget-container{height:100%}
.phero-pic .ph2 img{width:100%;height:100%;object-fit:cover}
.phero-l .rates{margin-top:16px}

@media (max-width:900px){
  .hire-home .events.hire-cards{grid-template-columns:1fr;gap:30px}
  .hire-home .hire-cards .ev:nth-child(2){margin-top:0}
  .phero-pic.two-pics .ph2{left:-6px;bottom:-22px;width:42%;border-width:6px;border-radius:22px}
}
.page-id-104 .split-t .hib-logo{margin-bottom:30px}

/* 2026-11-12: orange contact band spacing (bm.css .contact{--mb:0} was cancelling the gap above the button) */
.hello .contact{--mb:32px}
.hello .elementor-widget-text-editor:not(.contact) p{margin-bottom:24px}
.hello .wrap{align-items:center}
.hello .h2 .elementor-heading-title{padding-left:.04em}
.hire-home + .hello{margin-top:-40px}
/* home Pennies card PDF link */
.ev .pdf-link{margin-top:12px}
.ev .pdf-link a{font:700 16px/1.3 var(--head);color:var(--forest);text-decoration:underline;text-underline-offset:3px}
.ev .pdf-link a:hover{color:var(--orange-d)}
@media (max-width:900px){.hire-home + .hello{margin-top:-30px}}
/* 2026-11-12 photos: duo tiles - pin each photo to its half so it is cropped, not cut off at the bottom */
.ev .pic.duo{grid-template-rows:100%}
.page .ev .pic.duo>.elementor-widget-image{position:relative;height:100%;min-height:0;overflow:hidden}
.ev .pic.duo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.elementor-element-ea2cc66 img{object-position:50% 85%}

/* ===== Mobile pass (2026-11-12) ===== */
/* stop iOS Safari / Android enlarging paragraph text (landscape text inflation, font boosting) */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* charity logo: Elementor was zeroing its bottom margin, so it touched the heading */
.e-con .elementor-widget.elementor-widget.hib-logo{margin-block-end:22px}
@media (max-width:900px){
  /* one side gutter for every section (these boxes sat 12px from the edge, everything else 20px) */
  .page .sundays .wrap,.page .visit .wrap,.page .ask .wrap{padding-left:var(--pad);padding-right:var(--pad)}
  /* page heroes: less dead space under the photo */
  .phero{padding-bottom:34px}
  .phero + .sect{padding-top:56px}
  .phero + .sundays{margin-top:20px}
  /* home: gaps that were far bigger than the rest of the page */
  .board .socials-h.socials-h.first{margin-top:30px}
  .board .socials-h.socials-h{font-size:30px}
  .hist-home{padding-bottom:40px}
  /* photo captions: room to breathe when they wrap onto two lines */
  .gallery .tile .cap b,.socials .tile .cap b{line-height:1.25;padding:9px 12px 10px}
  .tile .cap{left:12px;right:12px;bottom:12px}
  /* history: even spacing between paragraphs and photos */
  .e-con.e-flex.story-t{gap:22px}
  .hsplit{gap:22px}
  /* contact: keep the email address on one line where it fits */
  .contact-cards .big,.contact-cards .big a{font-size:min(22px,4.3vw);overflow-wrap:anywhere}
  /* orange band: tree mark sits in the bottom corner, not behind the address */
  .hello .mark{width:210px;right:-46px;bottom:-26px;opacity:.12}
}
/* very small phones (320px): header icons do not fit next to the logo; they are in the menu */
@media (max-width:350px){
  header .navr .social{display:none}
  .phero .h1{font-size:40px}
}
/* home hero: heading on the photo scales with the screen so it never wraps under the Sundays card */
@media (max-width:400px){.mh{font-size:min(33px,9vw)}}
@media (max-width:350px){.mh{font-size:25px;bottom:112px}}
/* tablets and phones in landscape (601-900px): stop the phone layout stretching edge to edge */
@media (min-width:601px) and (max-width:900px){
  .hero .arch{width:min(80%,520px)}
  .mh{font-size:46px}
  .phero-pic{width:100%;max-width:520px;margin-left:auto;margin-right:auto}
  .on .events,.on .events.two,.hire-home .events.hire-cards{grid-template-columns:1fr 1fr;gap:24px}
  .ev:nth-child(n){margin-top:0}
  .cards,.evcards{grid-template-columns:1fr 1fr}
  .dates{grid-template-columns:repeat(3,1fr)}
  .hero .lead,.phero .lead,.welcome .lead{max-width:620px}
}
@media (max-width:380px){.science>.elementor-widget-image{width:84px}.page .science img{width:84px;height:84px}.science{gap:14px;align-items:flex-start}.science .h3{font-size:22px}}

/* ===== SEO & accessibility pass (2026-11-12) =====
   Text contrast (WCAG AA): accent orange text uses a deeper shade (3:1+ on cream, sage and
   apricot for large text); the bright --orange stays for shapes and icons. Green buttons
   and the footer small print nudged to 4.5:1. */
:root{--orange-t:#B87317}
.phero .h1 span,.sundays .time small,.timeline b,.dates b,.label{color:var(--orange-t)}
.page .btn.green a.elementor-button{background:#577A33}
footer .legal{color:#9BA38B}
.evsingle .em-item-header h2{font:800 20px var(--head);letter-spacing:-.02em;margin-bottom:8px}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}

/* ===== Speed pass (2026-11-12) =====
   1. Pulse rings: the old animation changed box-shadow, which repaints every frame and kept the
      browser ~60% busy even when idle. The ring is now a pseudo-element that scales and fades
      (GPU only), same look.
   2. First screen appears complete straight away: no hero photo zoom or delayed headline rises
      (they held back Speed Index). Reveal-on-scroll below the fold is unchanged. */
.chip.sun .d,.vid .play{animation:none}
.chip.sun .d{position:relative}
.chip.sun .d::after,.vid .play::after{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;animation:bmRing 2.4s ease-out infinite}
.chip.sun .d::after{background:rgba(222,154,56,.55);--ring:1.43}
.vid .play::after{background:rgba(255,255,255,.5);--ring:1.29}
@keyframes bmRing{from{transform:scale(1);opacity:1}to{transform:scale(var(--ring));opacity:0}}
@media (prefers-reduced-motion:reduce){.chip.sun .d::after,.vid .play::after{animation:none;display:none}}
.js .mh .w1,.js .mh .w2,.js .arch .ph>img,.js .hnote,.js :is(.hero,.phero) .rv{animation:none}

/* ===== Hero gap: the same space under every page hero =====
   The gap is set by the hero alone: 90px on desktop, 56px on phones, measured from whichever is
   lower, the green shape behind the photo or the text/buttons. The photo column reserves room for
   the shape (34px / 20px) so it counts. The section after the hero adds no top padding/margin. */
.page .phero{padding-bottom:90px}
.page .phero-pic{margin-bottom:34px}
.page .phero + *{padding-top:0;margin-top:0}
.page .hero{padding-bottom:124px}
.page .hero + .welcome{padding-top:0}
@media (max-width:900px){
  .page .phero{padding-bottom:56px}
  .page .phero-pic{margin-bottom:20px}
  .page .hero{padding-bottom:50px}
}

/* ===== Footer: SunnDeck credit + tidier phone layout ===== */
footer .bm-credit a{color:inherit;text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}
footer .bm-credit a:hover{color:#fff;text-decoration-color:currentColor}
@media (max-width:900px){
  /* Facebook and Instagram side by side across the full width, not one per row */
  .e-con.e-flex.follow{--flex-direction:row}
  .follow{flex-direction:row;align-self:stretch;width:100%;gap:10px}
  .follow{max-width:520px}
  .e-con.follow>.fpill.elementor-widget{flex:1 1 0;min-width:0;width:auto;max-width:none}
  .page .fpill .elementor-icon-box-wrapper{gap:10px;padding-right:10px;min-width:0}
  .page .fpill .elementor-icon-box-content{min-width:0}
  .page .fpill .elementor-icon-box-icon{flex:none}
  footer .row{gap:26px}
  footer .legal{margin-top:34px;padding-top:20px}
  footer .bm-credit{display:block;margin-top:6px}
  footer .bm-credit .sep{display:none}
}
@media (max-width:359px){.page .fpill .elementor-icon-box-description{display:none}.page .fpill .elementor-icon-box-title{font-size:14px}.page .fpill .elementor-icon{width:46px;height:46px}}

/* Charity logo centred once the charity box stacks (home + charity page), 2026-11-13 */
@media (max-width:900px){.page .charitybox .hib-logo img,.hib-logo img{margin-left:auto;margin-right:auto}}
