/* =========================================================================
   North Essex Heritage – common.css: base styles, no media queries.
   Screen-size overrides are all in responsive.css (loaded after this file).
   The sections from FOCUS onwards are the shared components added in the
   2026 update (skip link, cards, home panel heights, pager, search and
   not-found pages); they come last so they win over the older rules above.

   Type (fonts self-hosted: styles/fonts.css)
     Barlow Condensed – headings, buttons, menu (700, capitals)
     Roboto           – body text (300 light, 400, 700)
     H1 50/60px · H2 40/50px · H3 30/35px · intro text 25/30px
     body 20/27.5px · buttons 20/25px · footer 15/20px

   Colours
     Dark Teal   #4C836D   white text   (Latest bar, testimonial, link hover, selected amounts)
     Light green #9AD3B7   black text   (title squares, Our Focus, Get Involved)
     Blue        #009EB8   white text   (title squares, Donate panel)
     #E2DDDB  card and panel grey    #EFECEA  light grey panels (.grey-back)
     #A69996  Keep Updated panel     #555555  menu background
   ========================================================================= */

/* RESETS */

html {font-size: 62.5%; }
body {background-color: #000; color: #fff; font-size: 2rem!important; line-height: 2.75rem!important; font-weight: 300; font-family: 'Roboto', sans-serif; overflow-x: hidden;}
* {margin: 0px; padding: 0px;} 
a {text-decoration: none; color: #000; font-weight: 700;}
a:hover {text-decoration: none; color:#4C836D; }
ul {margin: 0; list-style-type: none; padding: 0;}
li {margin: 0; padding: 0; list-style-type: none;}
img {border: none;}
p {margin-bottom: 3rem;}
p strong {font-weight: 700;}

h1 {font-family: 'Barlow Condensed', sans-serif; font-size: 5rem; line-height: 6rem; font-weight: 700;}
h2 {font-family: 'Barlow Condensed', sans-serif; font-size: 4rem; line-height: 5rem; font-weight: 700; margin: 0 0 30px 0;}
h3 {font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; line-height: 3.5rem; font-weight: 700; padding: 0 0 10px 0;}

/* The house button: outline, turning black on hover. The same look for the
   Contact Form 7 Submit, the donation form's buttons and the cards' Read more. */
.btn,
.wpcf7 input[type="submit"],
.page-template-page-template-donate .inlaypay-devices-wrapper button,
.inlaypay-submit-wrapper button,
.news-article-link .excerpt-panel .read-more, .event-article-link .excerpt-panel .read-more {font-size: 2rem!important; line-height: 2.5rem!important; text-transform: uppercase; color: #000; font-weight: 700; display: inline-block; padding: 10px; border: solid 1px #000;
  transition: color 0.5s ease, background-color 0.5s ease; border-radius: 0.375rem; font-family: 'Barlow Condensed', sans-serif;}
.btn:hover,
.wpcf7 input[type="submit"]:hover,
.page-template-page-template-donate .inlaypay-devices-wrapper button:hover,
.inlaypay-submit-wrapper button:hover,
.news-article-link:hover .excerpt-panel .read-more, .event-article-link:hover .excerpt-panel .read-more {background-color: #000; color: #fff;}

.logo a {display: inline-block; width: 20%; min-width: 200px;}
.logo a img {display: block; width: 100%; height: auto;}
.menu-open {border: none; background-color: transparent; color: #000; font-size: 3rem; line-height: 3rem; display: inline-block; margin-right: 30px;}
.menu-open:hover {cursor: pointer;}
.menu-open span {position: absolute; top: -999em; color: transparent; height: 0; width: 0; overflow: hidden; display: block;}
.menu-open .fa-bars {display: block;}
.menu-open .fa-times {display: none;}
.expand .menu-open .fa-bars {display: none;}
.expand .menu-open .fa-times {display: block;}
/* Closed menu: hidden from keyboard and screen readers, not just moved
   off-screen, so Tab doesn't wander through invisible links. The slide is
   kept: visibility switches after the menu has slid away. */
.main-menu {position: fixed; top: 0; left: 105%; width: 100%; height: 100%; background-color: #555; z-index: 10; padding: 120px 0 0 0; box-sizing: border-box; visibility: hidden; transition: left 0.2s ease, visibility 0s linear 0.2s; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase;}
.main-menu.expand {left: 0; visibility: visible; transition: left 0.2s ease, visibility 0s;}
.main-menu .menu {width: 100%;}

.menu-close {border: none; background-color: transparent; color: #fff; font-size: 3rem; line-height: 3rem; margin-top: 20px; position: absolute; right: 50px; top: 110px;}
.menu-close:hover {cursor: pointer;}
.menu-close span {position: absolute; top: -999em; color: transparent; height: 0; width: 0; overflow: hidden; display: block;}
.menu-close .fa-bars {display: none;}
.menu-close .fa-times {display: block;}

.main-menu li a {font-size: 2.5rem; line-height: 3rem; color: #fff; display: block; margin: 15px 0 15px 0;}

.white-back {background-color: #fff;}

section {padding: 0 30px 30px 30px; background-color: #fff;}

#page-header .topbar {background-color: transparent; color: #000; padding: 10px 0; line-height: 2rem; margin: 0 0 -50px 0; position: relative; z-index: 10;}
#page-header .topbar span {text-transform: uppercase; font-weight: 700; display: inline-block; padding-right: 10px;}
#page-header .blackbar {background-color: #4C836D; color: #fff; padding: 10px 0; line-height: 2rem;}
#page-header .blackbar a {color: #fff; text-decoration: none;}
#page-header .blackbar a:hover {color: #fff; text-decoration: underline;}
#page-header .blackbar span {text-transform: uppercase; font-weight: 700; display: inline-block; padding-right: 10px; font-family: 'Barlow Condensed', sans-serif;}
#page-header .blackbar .col-12 div {padding: 0 30px;}

#page-header .logo .white-background {background-color: #fff; padding: 30px 0 30px 0;}

.page-start {background-color: #fff; color: #000;}

.hero-image {position: relative;}
.hero-image img {display: block; width: 100%; height: auto;}

.desktop-image {display: block;}
.mobile-image {display: none;}

.hero-text {position: absolute; left: 0; bottom: 0; padding: 50px; background-color: rgba(0,0,0,0.5); color: #fff; width: 100%;}
.hero-text h1 {text-transform: uppercase;}

.our-focus .content-block {background-color: #9AD3B7; color: #000; padding: 50px;}
.our-focus h2 {text-transform: uppercase;}

.our-focus .content-block a {color: #000; border: solid 1px #000;}
.our-focus .content-block a:hover {color:#9AD3B7}

.next-events .content-block {background-color: #e2dddb; color: #000; padding: 50px; margin: 0 0 30px 0;}
.next-events .content-block h2 {text-transform: uppercase;}

.donate .content-block {background-color: #009EB8; color: #fff; padding: 50px;}
.donate .content-block h2 {color: #fff; text-transform: uppercase;}
.donate .content-block a {color: #fff;}

.donate img {display: block; width: 100%; height: auto;}
.donate .btn {color: #fff; border-color: #fff;}
.donate .btn:hover {color: #009EB8; background-color: #fff;}

.testimonial .content-block {background-color: #4C836D; color: #fff; padding: 50px;}
.testimonial .content-block blockquote {  font-family: 'Barlow Condensed', sans-serif; font-size: 3.5rem; line-height: 4.5rem; font-weight: 700;}

.testimonial .content-block blockquote .quotee {display: block; font-size: 2rem; line-height: 2.5rem; margin: 20px 0 0 0;}
.testimonial .content-block blockquote .position {font-weight: 300; font-size: 2rem; line-height: 2.5rem; display: block; }
 
.latest-news .content-block {background-color: #e2dddb; color: #000; padding: 50px;  margin: 0 0 30px 0;}
.latest-news .content-block h2 {text-transform: uppercase;}

.get-involved {background-color:  #9AD3B7; color: #000; padding: 50px;}
.get-involved  h2 {text-transform: uppercase;}

.get-involved .btn {color: #000; border: solid 1px #000;}
.get-involved .btn:hover {color: #fff; background-color: #000;}

.keep-updated {background-color:  #a69996; color: #000; padding: 50px;}
.keep-updated h2 {text-transform: uppercase;}

#page-footer {color: #fff; font-size: 1.5rem; line-height: 2rem; padding: 50px 0;}
#page-footer a {color: #fff;}
#page-footer .social-media-links a {font-size: 2rem; line-height: 2rem; padding: 5px 0; display: inline-block; border: solid 1px #fff; margin-left: 5px; width: 32px; text-align: center; transition: color 0.5s ease, background-color 0.5s ease;}
#page-footer .social-media-links a:nth-of-type(1) {margin-left: 0;}
#page-footer .social-media-links a:hover {color: #000; background-color: #fff; transition: color 0.5s ease, background-color 0.5s ease;}

#page-footer .registration {padding-top: 20px;}
#page-footer section {background-color: transparent;}

.news-article-link, .event-article-link {background-color: #e2dddb; display: block; font-weight: 300;}
.news-article-link:hover, .event-article-link:hover {color: #000;}

.news-article-link img,  .event-article-link img {display: block; width: 100%; height: auto;}
.news-article-link .image-panel,  .event-article-link .image-panel {position: relative;}
.news-article-link .image-panel .overlay,  .event-article-link .image-panel .overlay {position: absolute; top: 0; left: 0; padding: 20px; background-color: rgba(0,0,0,0.5); color: #fff; width: 100%;}

.news-article-link .image-panel .overlay h3,  .event-article-link .image-panel .overlay h3 {font-size: 3.5rem; line-height: 4rem; margin: 0; padding: 0; text-transform: uppercase;}
.news-article-link .image-panel .overlay .date,  .event-article-link .image-panel .overlay .date {font-size: 2rem; line-height: 2.5rem;}

.news-article-link .excerpt-panel, .event-article-link  .excerpt-panel {padding: 30px;}
.news-article-link .excerpt-panel .read-more, .event-article-link .excerpt-panel .read-more {margin: 0 0 2rem 0;}   /* the house button (top of the file) */

.grey-back {background-color: #efecea; padding: 50px;}
.grey-back h2 {text-transform: uppercase;}

/* Intro text: 25/30px light (the Downloads intro stays at body size, as before) */
.page-template-page-template-about .intro,
.page-template-page-template-donate .intro,
.page-template-page-template-contact .intro,
.page-template-page-template-standard .intro,
.page-template-default .intro,
.single-post.projects .intro {font-weight: 300; font-size: 2.5rem; line-height: 3rem;}
/* Contact, Standard and default pages: the intro sits under the hero image */
.page-template-page-template-contact .intro,
.page-template-page-template-standard .intro,
.page-template-default .intro {padding: 0;}
.page-template-page-template-contact .hero-image,
.page-template-page-template-standard .hero-image,
.page-template-default .hero-image {margin: 0 0 20px 0;}
.page-template-page-template-about .intro strong {font-weight: 700;}

.page-template-page-template-about h2 {margin: 0 0 30px 0;}

.page-template-page-template-about .trustee img {margin: 0 0 20px 0;}

.page-template-page-template-about .quote {font-weight: 700; font-size:2.5rem; line-height: 3rem; padding-left: 30px; position: relative; margin: 150px 0 0 0;}
.page-template-page-template-about .quote span {display: block; position: absolute; top: 10px; left: 0; font-size: 5rem; font-style: italic; color: #4C836D;}
.page-template-page-template-about .quote .quotee { display: block; font-weight: 300;}

/*** SINGLE POSTS ***/
.second-image {margin: 0 0 20px 0;}

.page-details h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 5rem; line-height: 5rem; font-weight: 700; margin: 0 0 20px 0; text-transform: uppercase;}




/* CiviCRM help boxes */
.crm-container #help {
    background-color: transparent;
    border: 1px solid #000;
    color: #3e3e3e;
font-size: 2rem!important; line-height: 2.75rem!important; font-weight: 300; font-family: 'Roboto', sans-serif; 
    margin: 0 0 30px 0;
    padding: 30px;
}

.grey-back ul {margin: 0 0 20px 20px; list-style-type: disc;}
.grey-back ul li {list-style-type: disc;}


.single-post .sidebar {position: relative; z-index: 2; margin: 0 50px -300% 50px;}

.single-post .sidebar h3 {text-transform: uppercase;}

/* Sidebar stories: plain on the white background, not grey cards */
.single-post .sidebar a.news-article-link {background-color: transparent;  display: block; margin-bottom: 30px;}
.single-post .sidebar h2 {margin: 0 0 5rem 0; text-transform: uppercase;}
.single-post h1 {margin: 0 0 5rem 0; text-transform: uppercase;}


.single-post .project-logo img {width: 50%; height: auto; margin-bottom: 30px; min-width: 200px;}

.single-post .project-link-holder{padding: 50px;}

.wpcf7 label {display: block; margin: 0 0 10px 0;}
.wpcf7 span.red {color: #89251d;}

.wpcf7 .wpcf7-list-item {margin: 0;}


html .wpcf7 form .wpcf7-response-output {margin: 2em 0 1em; }

form.invalid div.wpcf7-response-output {border: 1px solid rgba(137, 37, 29, 1); background-color: rgba(137, 37, 29,0.1); color: rgba(137, 37, 29, 1); font-size: 15px; line-height: 20px; padding: 15px;}

html .wpcf7 form.invalid .wpcf7-response-output, html .wpcf7 form.unaccepted .wpcf7-response-output {border-color: rgba(137, 37, 29, 1); padding: 10px!important;}

form div.wpcf7-response-output {background-color: rgba(68,182,73,0.3); color: rgba(68,182,73,1);  border: 1px solid rgba(68,182,73,1); font-size: 15px; line-height: 20px; padding: 15px;}

html .wpcf7 form.sent .wpcf7-response-output {background-color: rgba(68,182,73,0.3); color: rgba(68,182,73,1);  border: 1px solid rgba(68,182,73,1); font-size: 15px; line-height: 20px; padding: 15px;}

html .wpcf7-not-valid-tip {color: rgba(137, 37, 29, 1); font-size: 15px; line-height: 20px; margin: 10px 0 20px 0;}

.page-template-page-template-downloads .download-link {margin-bottom: 20px; display: block; color: #000!important;}
.page-template-page-template-downloads .download-link:after {content: ""; display: table; clear: both;}
.page-template-page-template-downloads .download-link span.btn {float: right; position: relative; top: -11px;}

.quotee {margin-top: 20px; font-size: 2rem!important; line-height: 2.75rem!important;}

.page-template-page-template-donate .inlaypay-amount-buttons-wrapper {margin: 0 0 20px 0;}
.page-template-page-template-donate .inlaypay-selectable {background-color: #fff; border: solid 1px #fff; font-weight: 700; color: #000; border-radius: 0.375rem;}
.page-template-page-template-donate .inlaypay-selectable.inlaypay-selected {border-color: #4C836D; background-color: #4C836D; color: #fff; }
/* Hover: a Dark Teal border on an amount not yet chosen, as on the FormBuilder steps */
.page-template-page-template-donate .inlaypay-selectable {transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;}
.page-template-page-template-donate .inlaypay-selectable:not(.inlaypay-selected):hover {border-color: #4C836D;}
.page-template-page-template-donate .inlaypay-other-amount-wrapper {margin: 0 0 20px 0;}
.page-template-page-template-donate .inlaypay-devices-wrapper {align-items: normal!important; display: flex!important; flex-direction: column!important; gap: 0.5rem!important; margin-top: 0!important;}

.page-template-page-template-donate .inlaypay-other-amount-wrapper label {margin-bottom: 10px;}


.page-template-page-template-donate .inlaypay-form.inlaypay-form-page-2 .inlaypay-consent-group {margin-bottom: 20px;}

.inlaypay-submit-wrapper {align-items: left!important; display: block!important; flex-direction: none!important; gap: 0!important; margin-top: 0!important; padding-top: 30px;}


.inlaypay-kind-buttons-wrapper>button {margin: 0; padding: 1rem;font-size: 2rem!important;}

.inlaypay-giftaid-legal {margin-bottom: 0; opacity: 1;}

a[href="https://www.heritagefund.org.uk/"] .img-fluid {max-width: 200px;}

#page-footer .sponsors a {display: inline-block;  margin: 0 0 20px 20px;}

#page-footer .sponsors img {display: block; height: 70px; width: auto;}


/* =========================================================================
   FOCUS – one visible keyboard-focus outline for the whole site
   Dark Teal on light backgrounds; white in the grey menu, the black footer
   and the dark panels, so it always shows. Only appears for keyboard users
   (:focus-visible), not on mouse clicks.
   ========================================================================= */

:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {outline: 2px solid #4C836D; outline-offset: 2px;}   /* the .btn and .form-control lines win over Bootstrap's rules, which take the outline off its buttons and form boxes */
.btn:focus-visible {box-shadow: none;}
.main-menu :focus-visible,
#page-footer :focus-visible,
#page-header .blackbar :focus-visible,
.testimonial :focus-visible,
.donate .content-block :focus-visible {outline-color: #fff;}
/* Black on the light green (Our Focus, Get Involved) and the grey Keep Updated
   panels, where Dark Teal is too faint (2.6:1 and 1.6:1; black 12:1 and 7.6:1) */
.our-focus .content-block :focus-visible,
.get-involved :focus-visible,
.keep-updated :focus-visible {outline-color: #000;}

/* Menu: hover, current page and keyboard focus in light green (#9AD3B7 on
   the #555 menu background is 4.4:1 – fine for the 25px bold text). */
.main-menu li a:hover,
.main-menu li a:focus-visible,
.main-menu li.current-menu-item > a,
.main-menu li.active > a {color: #9AD3B7;}


/* =========================================================================
   SKIP LINK – "Skip to content" (header.php): hidden off-screen until it
   gets keyboard focus, then shown top left. <main> receives the focus.
   ========================================================================= */

.skip-link {display: block; position: absolute; left: 10px; top: -100px; z-index: 100; padding: 10px 20px; background-color: #000; color: #fff; font-size: 1.8rem; font-weight: 700;}
.skip-link:focus {top: 10px; color: #fff;}
#main:focus {outline: none;}
#main {scroll-margin-top: 0;}   /* fixed header: see responsive.css (1281px and wider) */


/* =========================================================================
   CARDS – news and project cards line up without JavaScript (replaces the
   matchHeight script). Every card in a row stretches to the tallest one and
   its "Read more" button sits at the bottom. The title band over the image
   is at least two lines tall where cards sit side by side (responsive.css).
   ========================================================================= */

article > .event-article-link,
article > .news-article-link {display: flex; flex-direction: column; height: 100%;}
article > .event-article-link .excerpt-panel,
article > .news-article-link .excerpt-panel {flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start;}
article > .event-article-link .excerpt-panel .read-more,
article > .news-article-link .excerpt-panel .read-more {margin-top: auto;}

/* Search results mix posts and pages: square image areas, each image cropped
   to fill its square whatever its shape (pages often have wide hero images) */
.search-results .event-article-link .image-panel {aspect-ratio: 1 / 1; overflow: hidden;}
.search-results .event-article-link .image-panel img {height: 100%; object-fit: cover;}


/* =========================================================================
   TITLE SQUARES – the page title beside the hero image (template-parts/hero.php).
   Colours here; the square (desktop) or bar (phones) shape is in responsive.css.
   Default pages now use black text on the light green, like About and Donate
   (white on light green was hard to read).
   ========================================================================= */

.page-template-page-template-about h1,
.page-template-page-template-donate h1,
.page-template-page-template-downloads h1,
.page-template-default h1 {color: #000; background-color: #9AD3B7;}
.page-template-page-template-standard h1,
.page-template-page-template-contact h1 {color: #fff; background-color: #009EB8;}
.page-template-page-template-about h1,
.page-template-page-template-donate h1,
.page-template-page-template-downloads h1,
.page-template-default h1,
.page-template-page-template-standard h1,
.page-template-page-template-contact h1 {width: 100%; box-sizing: border-box; text-transform: uppercase;}
/* The grey News/Projects squares (page-details-hero.php, and the label on posts) */
.page-details {width: 100%; box-sizing: border-box; color: #000; background-color: #EFECEA;}
.single .post-type p {width: 100%; box-sizing: border-box; color: #000; background-color: #EFECEA; font-family: 'Barlow Condensed', sans-serif; font-size: 5rem; line-height: 6rem; font-weight: 700; text-transform: uppercase;}


/* =========================================================================
   HEADINGS – archive, search and "Page not found" pages: a full-width grey
   bar holding the title (template classes: title-block title-wide)
   ========================================================================= */

h1.title-block {width: 100%; box-sizing: border-box; padding: 20px 50px; margin: 0 0 20px 0; color: #000; background-color: #EFECEA; text-transform: uppercase;}


/* =========================================================================
   PAGER – « Previous 1 2 3 Next » on News, archives and search results,
   matching the house .btn style; the current page filled Dark Teal
   ========================================================================= */

.pager {padding: 50px 0 20px 0;}
.pager ul.page-numbers {display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0;}
.pager ul.page-numbers li {list-style-type: none;}
.pager a.page-numbers,
.pager span.page-numbers {display: inline-block; min-width: 46px; padding: 10px; border: solid 1px #000; border-radius: 0.375rem; font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; line-height: 2.5rem; font-weight: 700; text-transform: uppercase; text-align: center; color: #000; transition: background-color 0.5s ease, color 0.5s ease;}
.pager a.page-numbers:hover,
.pager a.page-numbers:focus-visible {background-color: #000; color: #fff;}
.pager span.page-numbers.current {background-color: #4C836D; border-color: #4C836D; color: #fff;}
.pager span.page-numbers.dots {border-color: transparent;}


/* =========================================================================
   SEARCH AND NOT FOUND – search box (template-parts/site-search.php) on the
   "Page not found" page, an empty search and under search results
   ========================================================================= */

.not-found .grey-back p {font-size: 1.8rem; line-height: 2.6rem;}
.site-search {display: flex; gap: 10px; max-width: 600px; margin: 0 0 30px 0;}
.not-found .site-search {margin-bottom: 0;}
.site-search input[type="search"] {flex: 1 1 auto; min-width: 0; padding: 14px; font-family: 'Roboto', sans-serif; font-size: 1.6rem; line-height: 2rem; font-weight: 300; color: #000; background-color: #fff; border: 1px solid #555; border-radius: 0.375rem;}
.site-search .btn {flex: 0 0 auto; background: transparent; cursor: pointer;}
.site-search .btn:hover {background-color: #000; color: #fff;}   /* restated: the rule above outranks .btn:hover */
.search-again {margin: 20px 0; padding: 50px; background-color: #EFECEA;}
.search-again .site-search {margin: 0;}


/* =========================================================================
   LIGHTBOX – photos and videos opened from links marked data-fancybox
   (scripts/site.js; replaces the Fancybox plugin)
   ========================================================================= */

dialog.lightbox {
  position: fixed;
  inset: 0;
  margin: auto; /* centred (the theme's CSS zeroes margins elsewhere) */
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
  overflow: visible;
}
dialog.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}
dialog.lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
}
dialog.lightbox.is-video .lightbox-content {
  position: relative;
  width: min(92vw, calc(88vh * 16 / 9), 1280px);
  aspect-ratio: 16 / 9;
  background: #000; /* while the video loads */
}
dialog.lightbox iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
dialog.lightbox .lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #FFF;
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.6);
  color: #FFF;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}
dialog.lightbox .lightbox-close:hover {
  background: #FFF;
  color: #000;
}
dialog.lightbox :focus-visible {
  outline-color: #FFF;
}

/* The page behind doesn't scroll while the box is open */
html.lightbox-open {
  overflow: hidden;
}
/* Keep the scrollbar's space when it's hidden, so the page doesn't jump sideways */
html {
  scrollbar-gutter: stable;
}
/* Spinner while a photo or video loads */
dialog.lightbox.is-loading {
  min-width: 120px;
  min-height: 120px;
}
dialog.lightbox.is-loading img {
  visibility: hidden;
}
dialog.lightbox.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: lightbox-spin 0.8s linear infinite;
}
@keyframes lightbox-spin {
  to { transform: rotate(360deg); }
}

/* Video notice before consent (scripts/site.js): fills the 16:9 video box */
dialog.lightbox .lightbox-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 32px 32px;
  color: #FFF;
  text-align: center;
  font-size: 1.8rem;
  line-height: 1.4;
}
dialog.lightbox .lightbox-consent p {
  margin: 0 0 1.5rem;
  max-width: 36em;
}
dialog.lightbox .lightbox-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
}
dialog.lightbox .lightbox-play {
  padding: 10px 20px;
  border: 1px solid #FFF;
  border-radius: 0.375rem;
  background: #FFF;
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
dialog.lightbox .lightbox-play:hover {
  background: #000;
  color: #FFF;
}
dialog.lightbox .lightbox-consent a {
  color: #FFF;
  text-decoration: underline;
}
/* Shown if a photo can't be loaded */
dialog.lightbox .lightbox-error {
  margin: 0;
  padding: 64px 32px 32px;
  max-width: 420px;
  background: #000;
  color: #FFF;
  text-align: center;
}
dialog.lightbox .lightbox-error a {
  display: block;
  margin-top: 0.5em;
  color: #FFF;
  text-decoration: underline;
}


/* =========================================================================
   IMAGES – images now carry width and height attributes (so the page doesn't
   jump while they load). Keep them in proportion wherever CSS sets only the
   width; rules that set a height (footer logos) still win.
   ========================================================================= */

img[height] {height: auto;}


/* =========================================================================
   COOKIE POLICY – the policy Complianz writes into the Cookie Policy page
   (#cmplz-document), at the site's sizes, as on the Privacy Policy: text
   20/27.5px, section headings 30px. Complianz's own stylesheet set 14px text,
   22px headings and an 800px column.
   ========================================================================= */

.page-start #cmplz-document {max-width: none; font-size: 2rem; line-height: 2.75rem;}
.page-start #cmplz-document p, .page-start #cmplz-document li, .page-start #cmplz-document td,
.page-start #cmplz-document .cmplz-dropdown p, .page-start #cmplz-document .cmplz-dropdown a {font-size: 2rem; line-height: 2.75rem;}
.page-start #cmplz-document h2, .page-start #cmplz-document h3 {margin: 30px 0 10px 0; padding: 0; font-size: 3rem; line-height: 3.5rem;}
.page-start #cmplz-document h2:first-child, .page-start #cmplz-document h3:first-child {margin-top: 0;}
.page-start #cmplz-document .cmplz-dropdown summary h3 {margin: 0; font-size: 2rem; line-height: 2.75rem;}   /* each cookie group's open/close line */
.page-start #cmplz-document h4 {font-size: 2rem; line-height: 2.75rem;}
.page-start #cmplz-document h5 {font-size: 1.8rem; line-height: 2.5rem;}


/* =========================================================================
   FORMS – one look for every form on the site, as on Jumbo: Contact Form 7
   (Contact, Mailing List), the CiviCRM donation form (Support us) and CiviCRM
   FormBuilder forms (e.g. the Gift Aid Declaration reached by a checksum link).
   Labels and option wording 20/27.5px light; boxes 16px with a thin grey
   rounded border; Dark Teal ticks and radios; Gift Aid wording in a tinted
   box with its heading at the H3 size and the declaration text at 16/20px.
   ========================================================================= */

/* ---- Boxes ---- */
.page-start .wpcf7 input[type="text"], .page-start .wpcf7 input[type="email"], .page-start .wpcf7 input[type="tel"], .page-start .wpcf7 select, .page-start .wpcf7 textarea,
.page-start .inlaypay-form input[type="text"], .page-start .inlaypay-form input[type="email"], .page-start .inlaypay-form input[type="tel"], .page-start .inlaypay-form input[type="number"], .page-start .inlaypay-form select, .page-start .inlaypay-form textarea,
.page-start .inlaypay-other-amount-wrapper input[type="number"],
.crm-container af-form .form-control, .crm-container af-form textarea.crm-form-textarea {width: 100%; box-sizing: border-box; padding: 14px; font-family: 'Roboto', sans-serif; font-size: 1.6rem; line-height: 2.4rem; font-weight: 400; color: #000; background-color: #fff; border: 1px solid #555; border-radius: 0.375rem; box-shadow: none;}
/* Drop-downs: the house down-arrow, 10px wide and 14px in from the right,
   instead of the browser's own arrow against the edge; the border darkens on
   hover. The same as the FormBuilder drop-downs (FORMS – more FormBuilder elements). */
.page-start .wpcf7 select:not([multiple]),
.page-start .inlaypay-form select:not([multiple]) {
  padding-right: 40px;   /* room for the arrow */
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px auto;
  cursor: pointer;
}
.page-start .wpcf7 select:not([multiple]):hover,
.page-start .inlaypay-form select:not([multiple]):hover {border-color: #000;}
.page-start .wpcf7 select::-ms-expand, .page-start .inlaypay-form select::-ms-expand {display: none;}

/* Page 2 of the donation form: space under the "Amount: £5.00 … «Back" line, and
   under each box before the next label */
.page-start .inlaypay-p1-summary {margin-bottom: 30px;}
.page-start .inlaypay-form-page-2 input[type="text"], .page-start .inlaypay-form-page-2 input[type="email"], .page-start .inlaypay-form-page-2 input[type="tel"] {margin-bottom: 20px;}
/* Card number box (drawn by Stripe inside it): the same border, corners and
   height as the other fields (54px), as on Jumbo. The card text itself is
   set by the inlay (13px Arial). */
.page-start .inlaypay-card-details {margin: 0 0 10px 0;}
.page-start .inlaypay-card-element {padding: 18px 14px; background-color: #FFF; border: 1px solid #555; border-radius: 0.375rem;}

/* ---- Ticks and radios: Dark Teal, 20px, beside their wording so a second
   line of wording lines up under the first ---- */
.page-start .wpcf7 input[type="checkbox"], .page-start .wpcf7 input[type="radio"],
.page-start .inlaypay-form input[type="checkbox"], .page-start .inlaypay-form input[type="radio"],
.crm-container af-form input[type="checkbox"], .crm-container af-form input[type="radio"] {accent-color: #4C836D; width: 20px; height: 20px; flex: 0 0 auto; margin: 4px 10px 0 0;}
.page-start .wpcf7 .wpcf7-list-item > label,
.page-start .inlaypay-giftaid-checkbox-wrapper, .page-start .inlaypay-consent-radio-wrapper,
.crm-container af-form label.radio-inline, .crm-container af-form label.checkbox-inline {display: flex; align-items: flex-start;}
.page-start .inlaypay-form label.inlaypay-checkbox {padding-left: 0;}
/* Contact Form 7 puts some tick boxes inside a <label> (a consent box) and
   some not (a plain checkbox field, e.g. the newsletter box on Mailing List
   Signup), so the item itself lines up too: box beside its wording, with
   wrapped lines under the wording. inline-flex keeps several options on one
   line where a field has them side by side. As on Jumbo. */
.page-start .wpcf7 .wpcf7-list-item {display: inline-flex; align-items: flex-start; max-width: 100%;}
.page-start .inlaypay-consent-radio-wrapper {align-items: center;}   /* one-word Yes / No */
.page-start .inlaypay-form .inlaypay-consent-radio-wrapper input[type="radio"] {margin-top: 0;}

/* ---- Labels and wording ---- */
.page-start .wpcf7 p, .page-start .wpcf7 label, .page-start .wpcf7 .wpcf7-list-item,
.page-start .inlaypay-form label,
.crm-container af-form label.crm-af-field-label, .crm-container af-form label.radio-inline, .crm-container af-form label.checkbox-inline {font-size: 2rem; line-height: 2.75rem; font-weight: 300;}
.crm-container af-form label.crm-af-field-label {display: block; margin: 0 0 10px 0;}
.crm-container af-form label.radio-inline, .crm-container af-form label.checkbox-inline {margin: 0 20px 10px 0;}
.crm-container af-form .crm-marker {color: #89251d; font-weight: 300;}

/* ---- Spacing between FormBuilder fields (hidden fields take none) ---- */
.crm-container af-form af-field {display: block; margin: 0 0 30px 0;}
.crm-container af-form af-field.af-field-type-hidden {margin: 0;}
.crm-container af-form .af-layout-cols {column-gap: 20px;}

/* ---- Gift Aid: the same tinted box in the donation form and the FormBuilder
   declaration; "Gift Aid gives us 25p extra for every £1" at the H3 size, in
   capitals (an <h2> in FormBuilder's markup; an <h3> in the inlay's Gift Aid
   intro setting, an <h2> before that); the declaration
   text, and FormBuilder help text, at 16/20px ---- */
.page-start .inlaypay-form .inlaypay-giftaid,
.crm-container af-form .af-container-style-gift-aid {background: rgba(0,0,0,.05); border-radius: 0.375rem; margin: 0 0 30px 0; padding: 20px;}
.page-start .inlaypay-form .inlaypay-giftaid {margin-top: 20px;}
.page-start .inlaypay-form .inlaypay-giftaid-intro :is(h2, h3),
.crm-container af-form .af-markup h2 {font-size: 3rem; line-height: 3.5rem; margin: 0 0 2rem 0; padding: 0; text-transform: uppercase;}   /* the inlay's Gift Aid intro: h2 or h3 */
.page-start .inlaypay-giftaid-legal,
.crm-container af-form .crm-af-field-help-post {font-size: 1.6rem !important; line-height: 2rem; margin: 10px 0 0 0;}
.crm-container af-form .af-container-style-gift-aid af-field:last-child {margin-bottom: 0;}

/* ---- Buttons: the house outline button. FormBuilder's Submit was
   Bootstrap's blue one with a tick icon. ---- */
.page-start .wpcf7 input[type="submit"] {background-color: transparent;}
.crm-container .af-button.btn {background: transparent; color: #000; border: 1px solid #000; border-radius: 0.375rem; box-shadow: none;}
.crm-container .af-button.btn:hover, .crm-container .af-button.btn:active {background: #000; color: #fff; border-color: #000;}
.crm-container .af-button.btn .crm-i {display: none;}


/* =========================================================================
   FORMS – more FormBuilder elements, styled like the Spektrix booking forms
   on Jumbo (book-jumbo.css) in North Essex Heritage's colours: steps as
   pills with the current one filled Dark Teal, the house outline button for
   every button, pale panels for messages, and the same boxes, drop-downs,
   tick boxes and headings as the rest of the site's forms.
   ========================================================================= */

/* ---- Boxes: CiviCRM's public stylesheet sets a black border on every
   input through #crm-container.crm-public, which outranks the shared box rule
   above; the id below brings FormBuilder boxes back to the site's thin grey
   border ---- */
:is(#crm-container, .crm-container) af-form .crm-af-field input:is([type="text"], [type="email"], [type="tel"], [type="number"], [type="url"], [type="password"]),
:is(#crm-container, .crm-container) af-form .crm-af-field textarea {width: 100%; color: #000; border: 1px solid #555;}
:is(#crm-container, .crm-container) af-form .crm-af-field input.crm-form-date {width: 100%; max-width: 22rem;}
:is(#crm-container, .crm-container) af-form .select2-search-field input.select2-input {width: auto; border: 0;}
:is(#crm-container, .crm-container) af-form :is(.form-control, .crm-af-field input, textarea):disabled {color: rgba(0,0,0,.6); background-color: rgba(255,255,255,.5); border-color: rgba(0,0,0,.25); cursor: not-allowed;}   /* greyed out */

/* ---- Section titles and headings inside a form ---- */
.crm-container af-form legend.af-title,
.crm-container af-form .af-title,
.crm-container af-form h1, .crm-container af-form h2, .crm-container af-form h3 {display: block; width: 100%; float: none; margin: 0 0 2rem 0; padding: 0; border: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; line-height: 3.5rem; font-weight: 700; text-transform: uppercase; color: #000;}
.crm-container af-form h4, .crm-container af-form h5, .crm-container af-form h6 {margin: 0 0 1.5rem 0; font-family: 'Barlow Condensed', sans-serif; font-size: 2.4rem; line-height: 3rem; font-weight: 700; text-transform: uppercase; color: #000;}
.crm-container af-form h4.af-title {font-size: 3rem; line-height: 3.5rem;}   /* a container's title: same as a fieldset's */
.crm-container af-form fieldset.af-container {margin: 0 0 30px 0; padding: 0; border: 0; min-width: 0;}

/* ---- Help text above a field: as the help text below (16/20px) ---- */
.crm-container af-form .crm-af-field-help-pre {margin: 0 0 10px 0; font-size: 1.6rem; line-height: 2rem; font-style: normal;}

/* ---- Multi-line boxes: as the other boxes ---- */
.crm-container af-form textarea.crm-form-textarea {display: block; max-width: 100%; min-height: 12rem;}   /* box look: the shared FORMS box rule */
/* Character count under a box with a maximum length: grey, then amber, then dark red near the limit */
.crm-container af-form .af-character-count {margin: 5px 0 0 0; font-size: 1.6rem; line-height: 2rem; color: #555 !important;}   /* !important: Bootstrap's text-success/-warning/-danger colours use it */
.crm-container af-form .af-character-count.text-warning {color: #8a5a12 !important;}
.crm-container af-form .af-character-count.text-danger {color: #89251d !important;}

/* ---- Greyed-out buttons (greyed-out boxes: with the boxes above) ---- */
.crm-container af-form .btn:disabled, .crm-container af-form .crm-button:disabled, .crm-container af-form.disabled .af-button {opacity: .5; cursor: not-allowed; pointer-events: none;}

/* ---- Drop-downs (Select, Country/County, contact look-ups): CiviCRM's
   searchable drop-down, made to look like the other boxes with the house
   down-arrow, as on the Spektrix forms ---- */
.crm-container af-form .select2-container.form-control {display: block; width: 100%; height: auto; padding: 0; border: 0; background: none; box-shadow: none;}
.crm-container af-form .select2-container .select2-choice,
.crm-container af-form .select2-container-multi .select2-choices {min-height: 54px; height: auto; box-sizing: border-box; padding: 14px 40px 14px 14px; font-family: 'Roboto', sans-serif; font-size: 1.6rem; line-height: 2.4rem; font-weight: 400; color: #000; background-color: #fff; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px auto; border: 1px solid #555; border-radius: 0.375rem; box-shadow: none; filter: none;}
.crm-container af-form .select2-container .select2-choice:hover,
.crm-container af-form .select2-container-multi .select2-choices:hover {border-color: #000;}
.crm-container af-form .select2-container .select2-choice .select2-arrow {display: none;}   /* the house arrow above replaces it */
.crm-container af-form .select2-container .select2-choice .select2-chosen {margin-right: 20px; line-height: 2.4rem;}
.crm-container af-form .select2-container .select2-choice abbr.select2-search-choice-close {position: absolute; top: 50%; right: 34px; margin: 0; transform: translateY(-50%);}   /* the clear (×) link, before the arrow */
.crm-container af-form .select2-container-multi .select2-choices::before {display: none;}   /* CiviCRM's own arrow; the house arrow replaces it */
.crm-container af-form .select2-container-multi .select2-choices .select2-search-field input.select2-input {border: 0; background: transparent; box-shadow: none;}
.crm-container af-form .select2-container-active .select2-choice,
.crm-container af-form .select2-container-active .select2-choices,
.crm-container af-form .select2-dropdown-open .select2-choice {border-color: #000; box-shadow: none;}
/* Choices already picked in a multiple drop-down: small pale-grey pills */
.crm-container af-form .select2-container-multi .select2-choices {padding: 8px 40px 8px 8px;}
.crm-container af-form .select2-container-multi .select2-choices .select2-search-choice {margin: 3px 6px 3px 0; padding: 4px 10px 4px 24px; font-size: 1.6rem; line-height: 2rem; color: #000; background: #EFECEA; border: 0; border-radius: 0.375rem; box-shadow: none;}
.crm-container af-form .select2-container-multi .select2-choices .select2-search-field input {min-height: 32px; padding: 4px 6px; font-family: 'Roboto', sans-serif; font-size: 1.6rem;}
/* The open list (CiviCRM adds it at the end of the page, with these classes) */
.select2-drop.crm-container {font-family: 'Roboto', sans-serif; font-size: 1.6rem; line-height: 2.4rem; color: #000; border: 1px solid #000; border-radius: 0 0 0.375rem 0.375rem; box-shadow: 0 4px 12px rgba(0,0,0,.15);}
.select2-drop.crm-container.select2-drop-above {border-radius: 0.375rem 0.375rem 0 0;}
.select2-drop.crm-container .select2-search input {padding: 8px 10px; font-size: 1.6rem; border: 1px solid #555; border-radius: 0.375rem; background-image: none;}
.select2-drop.crm-container .select2-results .select2-result-label {padding: 8px 10px;}
.select2-drop.select2-drop-active.crm-container .select2-results li.select2-highlighted {color: #fff; background: #4C836D;}   /* the option under the pointer or keyboard */

/* ---- Dates: the box and its clear link; the calendar that opens below ---- */
.crm-container af-form input.crm-form-date {display: inline-block;}   /* width: with the boxes above */
.crm-container af-form a.crm-clear-link,
.crm-container af-form a.crm-hover-button {display: inline-flex; align-items: center; margin: 0 0 0 10px; padding: 4px 6px; font-size: 1.6rem; color: #555; background: none; border: 0; opacity: 1; vertical-align: middle;}
.crm-container af-form a.crm-clear-link:hover,
.crm-container af-form a.crm-hover-button:hover {color: #000; background: none;}
#ui-datepicker-div {padding: 10px; font-family: 'Roboto', sans-serif; font-size: 1.6rem; color: #000; background: #fff; border: 1px solid #000; border-radius: 0.375rem; box-shadow: 0 4px 12px rgba(0,0,0,.15);}
#ui-datepicker-div .ui-datepicker-header {color: #fff; background: #4C836D; border: 0; border-radius: 0.375rem;}
#ui-datepicker-div .ui-datepicker-title select {font-size: 1.4rem; color: #000;}
#ui-datepicker-div .ui-datepicker-prev, #ui-datepicker-div .ui-datepicker-next {top: 50%; transform: translateY(-50%); border: 0; background: none;}
#ui-datepicker-div th {font-weight: 700;}
#ui-datepicker-div td a.ui-state-default {padding: 6px; text-align: center; color: #000; background: #fff; border: 1px solid transparent; border-radius: 0.375rem;}
#ui-datepicker-div td a.ui-state-default.ui-state-hover {border-color: #4C836D;}
#ui-datepicker-div td a.ui-state-highlight {border-color: #4C836D; background: #fff;}   /* today */
#ui-datepicker-div td a.ui-state-active {color: #fff; background: #4C836D; border-color: #4C836D;}   /* chosen day */
#ui-datepicker-div .ui-datepicker-buttonpane button {font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 700; text-transform: uppercase; color: #000; background: transparent; border: 1px solid #000; border-radius: 0.375rem; opacity: 1;}

/* ---- Single tick box (e.g. an opt-in): box beside its wording ---- */
.crm-container af-form af-field.af-field-type-checkbox label.crm-af-field-label:has(> input[type="checkbox"]) {display: block; position: relative; margin: 0; padding-left: 30px;}
.crm-container af-form af-field.af-field-type-checkbox label.crm-af-field-label > input[type="checkbox"] {position: absolute; top: 0; left: 0; margin: 4px 0 0 0;}   /* wording and any * wrap beside the box */

/* ---- Tick-box lists: one option per line, box beside its wording, no
   bullets and no scrolling box (CiviCRM's default and its Plain style look
   the same here) ---- */
.crm-container af-form ul.crm-checkbox-list {height: auto; max-height: none; overflow: visible; margin: 0; padding: 0; list-style: none; background: none; border: 0;}
.crm-container af-form ul.crm-checkbox-list li {display: flex; align-items: flex-start; margin: 0 0 10px 0; padding: 0; list-style: none; background: none;}
.crm-container af-form ul.crm-checkbox-list li:last-child {margin-bottom: 0;}
.crm-container af-form ul.crm-checkbox-list li label {margin: 0; font-size: 2rem; line-height: 2.75rem; font-weight: 300;}
/* Radio buttons: the Clear link (optional questions) sits on the same line */
.crm-container af-form af-field.af-field-type-radio .crm-af-field {flex-wrap: wrap; align-items: flex-start; padding: 0;}

/* ---- Add another / Copy / Remove (repeating fields, e.g. a second phone
   number): the house outline button, as Spektrix's Add Address. Remove is
   just its bin icon, grey, turning dark red on hover (it deletes the entry),
   with a 32px area to click or tap ---- */
.crm-container af-form [af-repeat-item] {position: relative;}
.crm-container af-form [af-repeat-item] af-field {padding-right: 0;}
.crm-container af-form .af-repeat-add-btn,
.crm-container af-form .af-repeat-copy-btn,
.crm-container af-form .crm-buttons .crm-button,
.swal2-container .swal2-styled.swal2-confirm, .swal2-container .swal2-styled.swal2-cancel {display: inline-block; margin: 0; padding: 10px; font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; line-height: 2.5rem; font-weight: 700; text-transform: uppercase; color: #000; background: transparent; border: 1px solid #000; border-radius: 0.375rem; box-shadow: none; text-shadow: none; transition: color 0.5s ease, background-color 0.5s ease;}   /* Back / Next and the pop-up buttons too */
.crm-container af-form .af-repeat-add-btn:hover, .crm-container af-form .af-repeat-copy-btn:hover,
.crm-container af-form .crm-buttons .crm-button:hover,
.swal2-container .swal2-styled.swal2-confirm:hover, .swal2-container .swal2-styled.swal2-cancel:hover {color: #fff; background: #000;}
.crm-container af-form :is(.af-repeat-add-btn, .af-repeat-copy-btn, .crm-buttons .crm-button) .crm-i {display: none;}
.crm-container af-form .af-repeat-add-btn,
.crm-container af-form .af-repeat-copy-btn {margin: 0 10px 30px 0;}
.crm-container af-form [af-repeat-item] .af-repeat-remove-btn {top: 0; right: 0; width: 32px; min-width: 32px; height: 32px; padding: 0; font-size: 1.6rem; line-height: 1; color: #555; background: transparent; border: 0; border-radius: 0.375rem; box-shadow: none; transition: color 0.3s ease;}
.crm-container af-form [af-repeat-item] .af-repeat-remove-btn:hover {color: #89251d; background: transparent;}

/* ---- Multi-page forms: the steps as pills, like the Spektrix New Account
   and Add Card steps (white, bold; the current step filled Dark Teal, the
   others outlined Dark Teal on hover, as any step can be opened), numbered;
   Back / Next / Submit as house outline buttons ---- */
.crm-container af-form af-tabset ul.crm-tab-list {display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px 0; padding: 0; list-style: none; border: 0; counter-reset: step;}
.crm-container af-form af-tabset ul.crm-tab-list::before, .crm-container af-form af-tabset ul.crm-tab-list::after {display: none;}
.crm-container af-form af-tabset ul.crm-tab-list > li.crm-tab-button {float: none; margin: 0; padding: 0; list-style: none; counter-increment: step;}
.crm-container af-form af-tabset ul.crm-tab-list > li.crm-tab-button > a {display: inline-block; margin: 0; padding: 8px 16px; font-family: 'Roboto', sans-serif; font-size: 1.8rem; line-height: 2.5rem; font-weight: 700; color: #000; text-decoration: none; background-color: #fff; border: 1px solid #fff; border-radius: 0.375rem; transition: border-color 0.5s ease;}
.crm-container af-form af-tabset ul.crm-tab-list > li.crm-tab-button > a::before {content: counter(step) ". ";}
.crm-container af-form af-tabset ul.crm-tab-list > li.crm-tab-button > a:hover {color: #000; background-color: #fff; border-color: #4C836D;}
.crm-container af-form af-tabset ul.crm-tab-list > li.crm-tab-button.active > a,
.crm-container af-form af-tabset ul.crm-tab-list > li.crm-tab-button.active > a:hover {color: #fff; background-color: #4C836D; border-color: #4C836D; cursor: default;}
.crm-container af-form af-tabset ul.crm-tab-list .badge:empty {display: none;}
.crm-container af-form af-tabset ul.crm-tab-list .badge {margin-left: 6px; font-size: 1.4rem; color: inherit; background: rgba(0,0,0,.1);}
.crm-container af-form af-tabset .crm-tab-panel {padding: 0; border: 0; background: none;}
.crm-container af-form .crm-buttons {display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px 0; padding: 0; border: 0; background: none;}

/* ---- After sending: the thank-you message in a pale panel, as Spektrix
   messages on Jumbo ---- */
.crm-container .afform-confirmation {margin: 0 0 30px 0; padding: 20px; font-size: 2rem; line-height: 2.75rem; font-weight: 300; background-color: rgba(255,255,255,.5); border-radius: 0.375rem;}
.crm-container .afform-confirmation > :last-child {margin-bottom: 0;}

/* ---- Pop-up messages (form errors, possible duplicate contacts): CiviCRM
   uses SweetAlert on the website. Site type and colours, house button. ---- */
.swal2-container .swal2-popup {width: min(48rem, calc(100vw - 32px)); padding: 30px; font-family: 'Roboto', sans-serif; font-size: 1.6rem; color: #000; border-radius: 0.375rem;}
.swal2-container .swal2-title {padding: 0; margin: 0 0 1.5rem 0; text-align: left; font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; line-height: 3.5rem; font-weight: 700; text-transform: uppercase; color: #000;}
.swal2-container .swal2-html-container {margin: 0; padding: 0; font-size: 2rem; line-height: 2.75rem; font-weight: 300; color: #000; text-align: left;}
.swal2-container .swal2-html-container ul {margin: 10px 0 0 0; padding: 0; list-style: none;}
.swal2-container .swal2-html-container li {margin: 0 0 10px 0; padding: 10px 15px; background-color: #EFECEA; border-radius: 0.375rem;}
.swal2-container .swal2-html-container a {font-weight: 700; color: #000;}
.swal2-container .swal2-html-container a:hover {color: #4C836D;}
.swal2-container .swal2-actions {justify-content: flex-start; margin: 20px 0 0 0;}
.swal2-container .swal2-styled.swal2-confirm, .swal2-container .swal2-styled.swal2-cancel {margin: 0 10px 0 0;}   /* the house button: with Add another above */
.swal2-container .swal2-styled:focus-visible {outline: 2px solid #4C836D; outline-offset: 2px; box-shadow: none;}
.swal2-container .swal2-icon {margin: 0 0 20px 0; font-size: 1.2rem;}
.swal2-container .swal2-icon.swal2-info, .swal2-container .swal2-icon.swal2-question {color: #4C836D; border-color: #4C836D;}
.swal2-container .swal2-icon.swal2-error, .swal2-container .swal2-icon.swal2-warning {color: #89251d; border-color: #89251d;}
.swal2-container .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {background-color: #89251d;}
.swal2-container .swal2-icon.swal2-success {color: #4C836D; border-color: #4C836D;}
.swal2-container .swal2-icon.swal2-success [class^="swal2-success-line"] {background-color: #4C836D;}
.swal2-container .swal2-icon.swal2-success .swal2-success-ring {border-color: rgba(76,131,109,.3);}
