/* =========================================================================
   Jumbo – 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 (title blocks, hero, cards, forms, menu, lightbox, events,
   pager); they come last so they win over the older rules above.

   Type
     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

   JUMBO brand palette (Brand Identity Guidelines 4.0, page 11)
   Text colour shown is the one that passes contrast on that background.
     Dark Iron        #531E10   white text   (selected states, dark panels)
     Iron             #89251D   white text   (title blocks, errors, focus outline)
     Dark Terracotta  #8A4D23   white text   (Adopt selected state)
     Terracotta       #D67D41   white text, large/bold only (title blocks)
     Dark Copper      #4C836D   white text   (panels; CF7 success border)
     Copper           #9AD3B7   black text   (menu hover/current, title blocks)
     Dark Dove Grey   #A89A97   black text only
     Dove Grey        #E2DDDB   black text   (title blocks, cards)
       (the guidelines print HEX E2DDD8, but their RGB 226/221/219 = E2DDDB)
     North Essex Heritage only: Mid Blue #009EB8, Light Blue #76CED9
   Not brand colours, used for page furniture:
     #EFECEA  light grey panels (.grey-back, background tint)
     #A69996  home page History / Keep Updated panels
     #555555  menu background, form field borders
   ========================================================================= */


/* ---- Base ---------------------------------------------------------------- */

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: 0; padding: 0;}
a {text-decoration: none; color: #000; font-weight: bold;}
a:hover {text-decoration: none; color: #89251D;}
ul, li {margin: 0; padding: 0; list-style-type: none;}
img {border: none;}
p {margin-bottom: 3rem;}
p strong {font-weight: 700;}

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

/* House button (and the "Read more" on news and event cards) */
.btn,
.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;}   /* text and background fade together */
.btn:hover,
.news-article-link:hover .excerpt-panel .read-more,
.event-article-link:hover .excerpt-panel .read-more {background-color: #000; color: #FFF;}
.news-article-link .excerpt-panel .read-more,
.event-article-link .excerpt-panel .read-more {margin: 0 0 2rem 0;}

/* Full-width images */
.image-panel img,
.logo a img,
.hero-image img,
.history img,
.donate img,
.news-article-link img,
.event-article-link img,
.page-template-page-template-donate .left-image {display: block; width: 100%; height: auto;}


/* ---- Header and menu ----------------------------------------------------- */

#page-header {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: #531E10; 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;}

.logo a {display: inline-block; width: 20%; min-width: 200px;}

.menu-open,
.menu-close {border: none; background-color: transparent; font-size: 3rem; line-height: 3rem;}
.menu-open {color: #000; display: inline-block; margin-right: 30px;}
.menu-close {color: #FFF; margin-top: 20px; position: absolute; right: 50px; top: 110px;}
.menu-open:hover,
.menu-close:hover {cursor: pointer;}
.menu-open span,
.menu-close span {position: absolute; top: -999em; color: transparent; height: 0; width: 0; overflow: hidden; display: block;}
.menu-open .fa-times,
.expand .menu-open .fa-bars {display: none;}
.menu-open .fa-bars,
.menu-close .fa-times,
.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 li a {font-size: 2.5rem; line-height: 3rem; color: #FFF; display: block; margin: 15px 0 15px 0;}


/* ---- Page layout --------------------------------------------------------- */

section,
aside {padding: 0 30px 30px 30px; background-color: #FFF;}

.white-back {background-color: #FFF;}
.page-start {background-color: #FFF; color: #000;}

.hero-image {position: relative;}
.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;}

/* Desktop and phone versions of an image (swapped in responsive.css) */
.desktop-image {display: block;}
.mobile-image {display: none;}

figcaption.photo p {font-size: 1.5rem; font-style: italic; color: #A89A97;}
figcaption.photo p.description,
figcaption.photo p.credit {width: 50%; margin-bottom: 0;}
figcaption.photo p.description {float: left;}
figcaption.photo p.credit {float: right; text-align: right;}
.dark-iron-back figcaption.photo p {color: #FFF;}


/* ---- Coloured panels ------------------------------------------------------
   Home page sections and the general .…-back panels: 50px padding (30px on
   phones, in responsive.css) and capitalised headings. */

.our-focus .content-block,
.history .content-block,
.next-events .content-block,
.donate .content-block,
.testimonial .content-block,
.latest-news .content-block,
.get-involved,
.keep-updated,
.grey-back,
.dark-iron-back,
.iron-back,
.terracotta-back,
.dark-copper-back {padding: 50px;}

.our-focus .content-block,
.get-involved,
.iron-back {background-color: #89251D; color: #FFF;}
.testimonial .content-block,
.dark-iron-back {background-color: #531E10; color: #FFF;}
.donate .content-block,
.terracotta-back {background-color: #D67D41; color: #FFF;}
.dark-copper-back {background-color: #4C836D; color: #FFF;}
.history .content-block,
.keep-updated {background-color: #A69996; color: #000;}
.next-events .content-block,
.latest-news .content-block {background-color: #E2DDDB; color: #000;}
.grey-back {background-color: #EFECEA;}

.latest-news .content-block {margin: 0 0 30px 0;}

.our-focus .content-block h2,
.history .content-block h2,
.next-events .content-block h2,
.donate .content-block h2,
.latest-news .content-block h2,
.get-involved h2,
.keep-updated h2,
.grey-back h2,
.dark-iron-back h2,
.iron-back h2,
.terracotta-back h2,
.dark-copper-back h2 {text-transform: uppercase;}
.donate .content-block h2 {color: #FFF;}

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

/* Links and white outline buttons on dark panels */
.our-focus .content-block a {color: #FFF; border: solid 1px #FFF;}
.our-focus .content-block .col-12.col-lg-3.offset-lg-1 a {color: #FFF; border: none; display: block;}   /* Heritage Fund logo link */
.our-focus .img-fluid {max-width: 200px;}

.donate .content-block a,
.get-involved a {color: #FFF;}
.get-involved a:hover {color: rgba(255,255,255,0.7);}

.donate .btn,
.get-involved .btn,
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .btn,
.page-template-page-template-the-jumbo-project .what-happens-next .content-block .btn {color: #FFF; border-color: #FFF;}
.donate .btn:hover,
.get-involved .btn:hover,
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .btn:hover,
.page-template-page-template-the-jumbo-project .what-happens-next .content-block .btn:hover {background-color: #FFF;}
.donate .btn:hover,
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .btn:hover {color: #D67D41;}
.get-involved .btn:hover {color: #89251D;}
.page-template-page-template-the-jumbo-project .what-happens-next .content-block .btn:hover {color: #4C836D;}

/* …but black buttons inside a grey panel on those Jumbo Project sections */
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .grey-back .btn,
.page-template-page-template-the-jumbo-project .what-happens-next .content-block .grey-back .btn {color: #000; border-color: #000;}

/* Home page testimonial */
.testimonial .content-block blockquote {font-family: 'Barlow Condensed', sans-serif; font-size: 3.5rem; line-height: 4.5rem; font-weight: 700;}


/* ---- Footer -------------------------------------------------------------- */

#page-footer {color: #FFF; font-size: 1.5rem; line-height: 2rem; padding: 50px 0;}
#page-footer a {color: #FFF;}
#page-footer section {background-color: transparent;}
#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: 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;}
#page-footer .sponsors a {display: inline-block; margin: 0 0 20px 20px;}
#page-footer .sponsors a:nth-of-type(1) {margin: 0 0 20px 0;}
#page-footer .sponsors img {display: block; height: 70px; width: auto;}
#page-footer .registration {padding-top: 20px;}
#page-footer img[alt="Heritage Fund"].img-fluid {max-width: 200px;}


/* ---- News and event cards ------------------------------------------------ */

.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 .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; text-transform: uppercase; margin: 0; padding: 0;}
.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;}

/* 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;}


/* ---- Intro text and side quotes (several templates) ---------------------- */

.page-template-page-template-about .intro,
.page-template-page-template-contact .intro,
.page-template-page-template-donate .intro,
.page-template-page-template-projects .intro,
.page-template-page-template-standard .intro,
.page-template-page-template-sponsorship .intro,
.page-template-page-template-the-jumbo-project .intro {font-weight: 300; font-size: 2.5rem; line-height: 3rem;}
.page-template-page-template-contact .intro,
.page-template-page-template-standard .intro {padding: 0;}
.page-template-page-template-about .intro strong,
.page-template-page-template-projects .intro strong {font-weight: 700;}

.page-template-page-template-about .quote,
.page-template-page-template-projects .quote,
.page-template-page-template-the-jumbo-project .quote,
.page-template-page-template-tour .sidepanel .quote {padding-left: 30px; position: relative;}
.page-template-page-template-about .quote,
.page-template-page-template-projects .quote,
.page-template-page-template-the-jumbo-project .what-we-do .quote {font-weight: 700; font-size: 2.5rem; line-height: 3rem; margin: 150px 0 0 0;}
.page-template-page-template-tour .sidepanel .quote {font-weight: 700; font-size: 2.5rem; line-height: 3rem; margin: 0;}
.page-template-page-template-about .quote .quotee,
.page-template-page-template-the-jumbo-project .quote .quotee,
.page-template-page-template-tour .sidepanel .quote .quotee {display: block; font-weight: 300;}
.page-template-page-template-about .quote span,
.page-template-page-template-projects .quote span,
.page-template-page-template-the-jumbo-project .quote span,
.page-template-page-template-tour .sidepanel .quote span {display: block; position: absolute; top: 10px; left: 0; font-size: 5rem; font-style: italic; color: #89251D;}

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

.page-template-default .hero-image,
.page-template-page-template-contact .hero-image,
.page-template-page-template-standard .hero-image {margin: 0 0 20px 0;}


/* ---- About / Our Team ---------------------------------------------------- */

.page-template-page-template-about h2 {margin: 0 0 30px 0;}
.page-template-page-template-about .trustee img,
.page-template-page-template-about .trustees-image {margin: 0 0 20px 0;}
.page-template-page-template-about .group {padding-bottom: 30px;}


/* ---- The Jumbo Project --------------------------------------------------- */

.page-template-page-template-the-jumbo-project figure {margin-bottom: 0;}

.page-template-page-template-the-jumbo-project .infobox .image-stack {display: grid; grid-template-columns: repeat(12, 1fr); position: relative; padding-bottom: 15px; flex: 2;}
.page-template-page-template-the-jumbo-project .infobox .image-stack-item img {border: 4px solid #531E10;}
.page-template-page-template-the-jumbo-project .infobox .image-stack-item-bottom {grid-column: 5 / -1; grid-row: 1; padding-top: 50%; z-index: 1;}
.page-template-page-template-the-jumbo-project .infobox .image-stack-item-top {grid-column: 1 / span 10; grid-row: 1;}
.page-template-page-template-the-jumbo-project .infobox .quote {margin-left: -3rem; padding-left: 3rem;}
.page-template-page-template-the-jumbo-project .infobox .quote span {color: #FFF; font-size: 4rem; top: 6px;}
.page-template-page-template-the-jumbo-project .infobox blockquote {font-weight: 700;}

/* "Be part of Jumbo's future" photo labels */
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block figure {margin: 0; position: relative;}
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .image-top-left figcaption,
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .image-top-right figcaption,
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .image-bottom-left figcaption,
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .image-bottom-middle figcaption,
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .image-bottom-right figcaption {position: absolute; padding: 10px 20px; background-color: #D67D41; color: #FFF; width: auto; font-weight: 700;}
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .image-top-left figcaption,
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .image-bottom-left figcaption,
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .image-bottom-right figcaption {left: 0; bottom: 20px;}
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .image-top-right figcaption {left: 0; top: 20px; height: fit-content;}
.page-template-page-template-the-jumbo-project .be-part-of-jumbos-future .content-block .image-bottom-middle figcaption {right: 0; bottom: 20px; margin-left: 20px;}

/* Circle diagram */
.page-template-page-template-the-jumbo-project .circle-diagram {
  aspect-ratio: 1;
  position: relative;
  container-type: inline-size;
  --sides: 6;
  --posX: 50%;
  --posY: 50%;
  --angle: 360deg / var(--sides);
  --d: 35%;            /* distance of circles from centre */
  --r: 12.5%;          /* radius of circles */
  --center-r: 27.5%;   /* radius of centre circle */
  --b: 2px;            /* border width */
  --g: transparent 99%, #FFF 100%;
  --b-color: #89251D;  /* border */
  --c-color: #E2DDDB;  /* centre */
  --p-color: #A89A97;  /* primary */
  --s-color: #89251D;  /* secondary */
  --cf-color: #89251D; /* centre text */
  --pf-color: black;   /* primary text */
  --sf-color: white;   /* secondary text */
}
.circle-diagram {
  --a1: calc(var(--angle) * 1) - 10deg;
  --x1: calc(var(--posX) + (cos(var(--a1)) * var(--d)));
  --y1: calc(var(--posY) + (sin(var(--a1)) * var(--d)));
  --a2: calc(var(--angle) * 2) - 10deg;
  --x2: calc(var(--posX) + (cos(var(--a2)) * var(--d)));
  --y2: calc(var(--posY) + (sin(var(--a2)) * var(--d)));
  --a3: calc(var(--angle) * 3) - 10deg;
  --x3: calc(var(--posX) + (cos(var(--a3)) * var(--d)));
  --y3: calc(var(--posY) + (sin(var(--a3)) * var(--d)));
  --a4: calc(var(--angle) * 4) - 10deg;
  --x4: calc(var(--posX) + (cos(var(--a4)) * var(--d)));
  --y4: calc(var(--posY) + (sin(var(--a4)) * var(--d)));
  --a5: calc(var(--angle) * 5) - 10deg;
  --x5: calc(var(--posX) + (cos(var(--a5)) * var(--d)));
  --y5: calc(var(--posY) + (sin(var(--a5)) * var(--d)));
  --a6: calc(var(--angle) * 6) - 10deg;
  --x6: calc(var(--posX) + (cos(var(--a6)) * var(--d)));
  --y6: calc(var(--posY) + (sin(var(--a6)) * var(--d)));
}
.circle-diagram div {
  position: absolute;
  width: calc(2 * var(--r));
  height: calc(2 * var(--r));
  border-radius: 50%;
  border: var(--b) solid transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  top: calc(var(--posY) - var(--r));
  left: calc(var(--posX) - var(--r));
}
.circle-diagram .center {
  --r: var(--center-r);
  border: var(--b) solid var(--b-color);
  background-color: var(--c-color);
  color: var(--cf-color);
  padding: 10cqw;
}
.circle-diagram .circle-1 {--posY: var(--y1); --posX: var(--x1);}
.circle-diagram .circle-2 {--posY: var(--y2); --posX: var(--x2);}
.circle-diagram .circle-3 {--posY: var(--y3); --posX: var(--x3);}
.circle-diagram .circle-4 {--posY: var(--y4); --posX: var(--x4);}
.circle-diagram .circle-5 {--posY: var(--y5); --posX: var(--x5);}
.circle-diagram .circle-6 {--posY: var(--y6); --posX: var(--x6);}
.circle-diagram .circle-1,
.circle-diagram .circle-3,
.circle-diagram .circle-5 {background-color: var(--p-color); color: var(--pf-color);}
.circle-diagram .circle-2,
.circle-diagram .circle-4,
.circle-diagram .circle-6 {background-color: var(--s-color); color: var(--sf-color);}
.circle-diagram .outer {
  top: calc(var(--posY) - var(--r) - var(--b));
  left: calc(var(--posX) - var(--r) - var(--b));
  border: calc(var(--b) * 2) solid var(--b-color);
  width: calc(2 * (var(--r) + var(--b)));
  height: calc(2 * (var(--r) + var(--b)));
  z-index: 0;
}
.circle-diagram p {padding: 2cqw; width: 100%; font-size: 2.5cqw; line-height: 4cqw; margin-bottom: 0;}
.circle-diagram .center h3 {width: 100%; text-transform: uppercase; font-size: 5cqw; line-height: 6cqw;}

/* Fact list */
.factlist {margin: 20px auto; padding: 1em; position: relative;}
.factlist h3 {text-transform: uppercase; color: #89251D; margin: 0;}
.factlist dl {border-left: 2px solid #89251D; padding-left: 1.5em;}
.factlist dt {font-family: 'Barlow Condensed', sans-serif; font-size: 1.25em; font-weight: 700; text-transform: uppercase; color: #89251D; padding: 0.5em 0 0 0;}
.factlist dd {margin: 0; padding: 0.25em 0 0.5em 0;}
.factlist span.weak {font-weight: 500;}

/* Timeline */
.timeline {position: relative; padding: 1em;}
.timeline:before {content: ''; display: block; position: absolute; left: 13%; top: 3.25em; margin: 0 0 0 -1px; width: 2px; height: calc(100% - 5em); background: #4C836D;}
.timeline h3 {width: 100%; text-transform: uppercase; color: #4C836D; text-align: center; margin: 0;}
.timeline article {width: 100%; position: relative;}
.timeline article:last-of-type {margin-bottom: 1.5em;}
.timeline article:after {content: ''; display: block; clear: both;}
.timeline .inner {width: auto; display: flex; flex-direction: row; align-items: center;}
.timeline .year {width: 20%; padding: 0.25em 0; font-family: 'Barlow Condensed'; font-size: 3rem; font-weight: 700; text-transform: uppercase; color: #4C836D; text-align: center; background-color: #EFECEA;}
.timeline .content {width: 80%; margin: 1em 0 1em 2em; font-size: 1.75rem;}
.timeline p {margin: 0;}
.timeline hr {border-top: 2px solid #4C836D; opacity: 1;}


/* ---- Projects: video links ----------------------------------------------- */

.video-caption {padding: 30px;}
.video-link {display: block; position: relative;}
.video-link:after {display: block; position: absolute; content: "\f144"; font-family: "Font Awesome 6 Pro"; font-weight: 900; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 7rem; color: rgba(255,255,255,0.5);}
.video-link:hover:after {color: rgba(255,255,255,1);}


/* ---- Single posts and the Tours page ------------------------------------- */

.second-image {margin: 0 0 20px 0;}

.single-post .sidebar {position: relative; z-index: 2; margin: 0 50px -300% 50px;}
.single-post h1 {margin: 0 0 5rem 0; text-transform: uppercase;}
.single-post .sidebar h3,
.single-post .mobile-sidebar h3 {text-transform: uppercase;}
.single-post .sidebar h2,
.single-post .mobile-sidebar h2,
.page-template-page-template-tour .sidebar h2 {margin: 0 0 5rem 0; text-transform: uppercase;}
.single-post .sidebar a.news-article-link {background-color: transparent; display: block; margin-bottom: 30px;}
.single-post .sidebar .event-details p,
.page-template-page-template-tour .sidebar .event-details p {font-weight: 700; margin: 0 0 10px 0;}
.single-post .sidebar .event-details p span,
.page-template-page-template-tour .sidebar .event-details p span {font-weight: 300;}

/* Tours: the details sidebar shows above the content on desktop, below on phones */
.sidebar.hide-mobile {display: block;}
.sidebar.hide-desktop {display: none;}
.page-template-page-template-tour iframe {overflow-y: hidden;}


/* ---- Contact page forms (opened and closed by scripts/site.js) ----------- */

.page-template-page-template-contact .form-1 h2,
.page-template-page-template-contact .form-2 h2,
.page-template-page-template-contact .form-3 h2 {margin: 0;}
.page-template-page-template-contact .form-1.expand h2,
.page-template-page-template-contact .form-2.expand h2,
.page-template-page-template-contact .form-3.expand h2 {margin: 0 0 3rem 0;}
.page-template-page-template-contact .form-1 h2:hover,
.page-template-page-template-contact .form-2 h2:hover,
.page-template-page-template-contact .form-3 h2:hover {cursor: pointer;}
.page-template-page-template-contact .form-1 .form-panel,
.page-template-page-template-contact .form-2 .form-panel,
.page-template-page-template-contact .form-3 .form-panel {display: none;}
.page-template-page-template-contact .form-1.expand .form-panel,
.page-template-page-template-contact .form-2.expand .form-panel,
.page-template-page-template-contact .form-3.expand .form-panel {display: block;}


/* ---- Donate -------------------------------------------------------------- */

.page-template-page-template-donate a:hover .left-image {opacity: 0.7;}


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

:focus-visible {
  outline: 2px solid #89251D;
  outline-offset: 2px;
}
.main-menu :focus-visible {
  outline-color: #9AD3B7;
}
#page-footer :focus-visible,
.iron-back :focus-visible,
.dark-iron-back :focus-visible,
.dark-copper-back :focus-visible,
.terracotta-back :focus-visible {
  outline-color: #FFF;
}


/* =========================================================================
   HERO – 30px between the hero image and the intro box under it
   (Events and News, which show their intro text under the image)
   ========================================================================= */

.page-template-page-template-events .hero-panel .hero-image,
.page-template-page-template-news .hero-panel .hero-image {
  margin: 0 0 30px 0;
}


/* =========================================================================
   TITLE BLOCKS – the coloured block holding a page's title
   Classes come from template-parts/hero.php (and the Tour, search and
   single-post templates): title-block + title-iron | title-terracotta |
   title-copper | title-dove-grey. Editors pick the colour per page in the
   Title colour field; empty = the template's default.
   ========================================================================= */

h1.title-block,
p.title-block {
  width: 100%;
  box-sizing: border-box;
  color: #FFF;
  text-transform: uppercase;
  background-color: #89251D;
}
h1.title-block.title-terracotta,
p.title-block.title-terracotta {
  background-color: #D67D41;
}
h1.title-block.title-copper,
p.title-block.title-copper {
  color: #000;
  background-color: #9AD3B7;
}
h1.title-block.title-dove-grey,
p.title-block.title-dove-grey {
  color: #000;
  background-color: #E2DDDB;
}
/* The single-post label is a <p>, so it needs the heading font set */
p.title-block {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 5rem;
  line-height: 6rem;
  font-weight: 700;
}


/* Search results and category/archive pages: a full-width bar, not a square */
h1.title-block.title-wide {
  aspect-ratio: auto;
  margin: 0 0 20px 0;
}


/* =========================================================================
   CARDS – news and event 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,
   so the bands match for titles of one or two lines.
   ========================================================================= */

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;
}


/* =========================================================================
   HOME – text panels as tall as the image beside them (History, Next
   events, Donate and the two boxes at the bottom): the rules are in
   responsive.css (992px and wider), as they apply side by side only.
   ========================================================================= */


/* =========================================================================
   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;
}

/* =========================================================================
   MENU – hover, current page and keyboard focus in Copper
   Copper 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;
}


/* =========================================================================
   EVENTS – heading panels, past-event cards, series dates
   ========================================================================= */
/* A performance ticked "Sold out" in Performances (event-details.php) */
.event-details .sold-out {
  font-weight: 700;
}


/* Heading panels: .next-events .content-block is styled above (Coloured
   panels: #E2DDDB, 50px padding, uppercase h2); match it for Past events and
   tighten the spacing for a heading-only panel. Scoped to the Events page,
   because the home page's Jumbo Tower Tours panel uses the same classes. */
.page-template-page-template-events .next-events .content-block,
.page-template-page-template-events .past-events .content-block {
  background-color: #E2DDDB;
  color: #000;
  padding: 20px 50px;   /* always 20px top and bottom */
  margin: 0 0 30px 0;
}
.page-template-page-template-events .next-events .content-block h2,
.page-template-page-template-events .past-events .content-block h2 {
  text-transform: uppercase;
  margin: 0;
}


/* Past event cards: muted so upcoming events stand out */
.event-article-link.is-past .image-panel img {
  filter: grayscale(100%);
  opacity: .85;
}
.event-article-link.is-past:hover .image-panel img,
.event-article-link.is-past:focus-visible .image-panel img {
  filter: none;
  opacity: 1;
}

/* Single event page: list of dates for a series (template-parts/post/event-details.php) */
.event-details .event-dates {
  margin: 0 0 10px 0;
}
.event-details .event-dates li {
  font-weight: 700;
  margin: 0 0 5px 0;
}
.event-details .event-dates li.is-past {
  opacity: .5;
  text-decoration: line-through;
}


/* =========================================================================
   NEWS PAGER – « Previous 1 2 3 Next » on News and search results,
   matching the theme's .btn style
   ========================================================================= */

/* WordPress outputs: <ul class="page-numbers"><li><a class="page-numbers">2</a></li>
   <li><span class="page-numbers current">1</span></li> … – so the rules target
   the a/span elements by class, not any span inside the pager. */

.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: #89251D;
  border-color: #89251D;
  color: #FFF;
}
.pager span.page-numbers.dots {
  border-color: transparent;
}


/* =========================================================================
   SKIP LINK, QUOTES, CONTACT FORMS, IMAGES
   ========================================================================= */

/* ---- Skip link (header.php) ----
   Hidden off-screen until it gets keyboard focus, then shown top left.
   (It used to be hidden with display: none, from keyboard users too.) */
.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;
  text-decoration: none;
}
.skip-link:focus {
  top: 10px;
  color: #FFF;
}

/* <main> receives focus from the skip link: no outline round the whole page. */
#main:focus {
  outline: none;
}
/* Where the skip link scrolls to. Up to 1280px the header scrolls away and a
   50px bar takes its place, so <main> can go to the top. From 1281px the
   header is fixed and <main> already starts just below it when the page is at
   the top (white-back's 289px padding), so the margin keeps the page there:
   scrolling at all would shrink the header and slide the content under it. */
#main {
  scroll-margin-top: 0;
}


/* ---- Quotes: <figure class="quote"><blockquote>…</blockquote><figcaption class="quotee"> ----
   Bootstrap gives <blockquote> and <figure> a bottom margin the old <div>s didn't have. */
.quote blockquote {
  margin: 0;
}
figure.quote {
  margin-bottom: 0;
}

/* Home page testimonial: the name and position moved from inside the
   <blockquote> to a <figcaption> after it, so they need their own styles. */
.testimonial .content-block .testimonial-quote {
  margin: 0 0 1rem 0;
}
.testimonial .content-block .testimonial-quote blockquote {
  margin: 0;
}
.testimonial .content-block .testimonial-quote .quotee {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem !important;
  line-height: 2.5rem !important;
  margin: 20px 0 0 0;
  font-weight: 700;
}
.testimonial .content-block .testimonial-quote .position {
  display: block;
  font-weight: 300;
  font-size: 2rem;
  line-height: 2.5rem;
}

/* ---- Contact page forms: the heading text is now a <button> ----
   Looks like the old heading; the open/closed arrow moves from the <h2> onto
   the button, so the whole line (arrow included) is clickable. */
.page-template-page-template-contact .form-toggle {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.page-template-page-template-contact .form-toggle::after {
  content: "\f054";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  margin-left: 0.3em;
}
.page-template-page-template-contact .form-toggle[aria-expanded="true"]::after {
  content: "\f078";
}

/* ---- 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 – e.g.
   Bootstrap's w-100. Rules that set a height (footer logos) still win. */
img[height] {
  height: auto;
}


/* =========================================================================
   FORMS – Contact Form 7 and the CiviCRM inlays
   House values: labels and tick-box wording 20px like body text; text typed
   in a field 16px Roboto (the size that stops phones zooming in), 14px
   padding, #555 border, rounded corners,
   outline buttons that turn black on hover; Dark Iron selected state (Adopt
   keeps Dark Terracotta); Iron errors, Dark Copper success.
   ========================================================================= */

/* ---- Text fields --------------------------------------------------------- */

.page-start .wpcf7 input[type="text"],
.page-start .wpcf7 input[type="email"],
.page-start .wpcf7 input[type="tel"],
.page-start .wpcf7 input[type="number"],
.page-start .wpcf7 input[type="url"],
.page-start .wpcf7 input[type="date"],
.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"],
.page-start .inlayadopt input[type="text"],
.page-start .inlayadopt input[type="email"],
.page-start .inlayadopt input[type="tel"],
.page-start .inlayadopt input[type="number"],
.page-start .inlayadopt select,
.page-start .inlayadopt textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  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;
}

.page-start .wpcf7 textarea,
.page-start .inlaypay-form textarea,
.page-start .inlayadopt textarea {
  min-height: 12rem;
}

/* Radio buttons and tick boxes: a little space before their label */
.page-start .wpcf7 input[type="radio"],
.page-start .wpcf7 input[type="checkbox"],
.page-start .inlaypay-form input[type="radio"],
.page-start .inlaypay-form input[type="checkbox"] {
  margin: 0 10px 0 0;
  accent-color: #531E10;
}
.page-start .inlayadopt input[type="radio"],
.page-start .inlayadopt input[type="checkbox"] {
  margin: 0 10px 0 0;
  accent-color: #8A4D23;   /* Adopt keeps its orange */
}


/* ---- Labels and help text ------------------------------------------------ */

.page-start .wpcf7 p {font-size: 2rem;}
.page-start .wpcf7 label {display: block; font-size: 2rem; line-height: 2.75rem; margin: 0 0 10px 0;}
/* Tick-box and radio items match the labels, whether or not CF7 wraps the
   item in a <label> (a consent box does; a plain checkbox field doesn't). Set
   on the whole item, as its own line height sets the spacing of the lines. */
.page-start .wpcf7 .wpcf7-list-item {font-size: 2rem; line-height: 2.75rem;}
/* Box beside its wording, so a second line of wording lines up under the first
   (not under the box). inline-flex keeps several options on one line where a
   field has them side by side. */
.page-start .wpcf7 .wpcf7-list-item,
.page-start .wpcf7 .wpcf7-list-item > label {display: inline-flex; align-items: flex-start; max-width: 100%;}
.page-start .wpcf7 .wpcf7-list-item input[type="checkbox"],
.page-start .wpcf7 .wpcf7-list-item input[type="radio"] {flex: 0 0 auto; margin-top: 7px;}   /* centred on the first 27.5px line */
/* Tick boxes line up with the fields above. Contact Form 7 indents every
   option by 1em and only the first option of a checkbox group was reset
   (.first), so a consent box ([acceptance], which has no .first) sat 1em
   further in than an opt-in box (e.g. the newsletter form). Reset the first
   option of every control instead; later options in a group keep their gap. */
.page-start .wpcf7 .wpcf7-form-control > .wpcf7-list-item:first-child {margin-left: 0;}
.page-start .wpcf7 span.red {color: #89251D;}   /* required-field star: was #C00 */

.page-start .inlaypay-form label,
.page-start .inlayadopt label {font-size: 2rem; line-height: 2.75rem;}
.page-start .inlaypay-other-amount-wrapper label {margin-bottom: 10px;}

.page-start .inlaypay-giftaid-legal {font-size: 1.6rem !important; line-height: 2rem; margin-bottom: 0; opacity: 1;}
/* Page 2 of the donation/sponsorship form: space between the "Amount: £25.00
   … «Back" line and the first fields */
.page-start .inlaypay-p1-summary {margin-bottom: 30px;}
/* …and 20px between fields, as on the Contact forms (each label otherwise
   sat 10px under the field above). Page 2 only: page 1's Other £ box keeps
   its spacing. */
.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"],
.page-start .inlaypay-form-page-2 input[type="number"],
.page-start .inlaypay-form-page-2 select,
.page-start .inlaypay-form-page-2 textarea {margin-bottom: 20px;}


/* ---- Buttons --------------------------------------------------------------
   Same as the site's .btn: rounded, see-through, black on hover. Covers CF7
   submit, the inlay submit and payment-method buttons, and Adopt's buttons
   (which had square corners). */

.page-start .wpcf7 input[type="submit"],
.page-start .inlaypay-submit-wrapper button,
.page-start .inlaypay-devices-wrapper button,
.page-start .inlayadopt-submit-wrapper button,
.page-start .inlayadopt-device-option {
  display: inline-block;
  padding: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem !important;
  line-height: 2.5rem !important;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.5s ease, background-color 0.5s ease;
}
.page-start .wpcf7 input[type="submit"]:hover,
.page-start .inlaypay-submit-wrapper button:hover,
.page-start .inlaypay-devices-wrapper button:hover,
.page-start .inlayadopt-submit-wrapper button:hover,
.page-start .inlayadopt-device-option:hover {
  color: #FFF;
  background-color: #000;
}
/* Disabled (e.g. until the required fields are filled in): faded, and no
   hover change, so it doesn't look clickable */
.page-start .wpcf7 input[type="submit"]:disabled,
.page-start .inlaypay-submit-wrapper button:disabled,
.page-start .inlaypay-devices-wrapper button:disabled,
.page-start .inlayadopt-submit-wrapper button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #000;
  background-color: transparent;
}


/* ---- Inlay layout (kept from the old Donate/sponsorship rules, now on every page) */

.page-start .inlaypay-amount-buttons-wrapper,
.page-start .inlaypay-other-amount-wrapper {margin: 0 0 20px 0;}

.page-start .inlaypay-devices-wrapper {align-items: normal !important; display: flex !important; flex-direction: column !important; gap: 0.5rem !important; margin-top: 0 !important;}

.page-start .inlaypay-submit-wrapper {display: block !important; gap: 0 !important; margin-top: 0 !important; padding-top: 30px;}

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

.page-start .inlaypay-form .inlaypay-giftaid {background: rgba(0,0,0,.05); border-radius: 0.375rem; margin: 20px 0 30px 0; padding: 20px;}
/* "Gift Aid gives us 25p extra for every £1": the site's H3 size, one step
   below the form title (it's an <h2> in the form's own markup) */
.page-start .inlaypay-form .inlaypay-giftaid-intro h2 {font-size: 3rem; line-height: 3.5rem; margin: 0 0 2rem 0;}
.page-start .inlaypay-form .inlaypay-consent-group {margin-bottom: 20px;}

.page-start .inlaypay-thanks img.thank-you {display: block; width: 100% !important; height: auto !important;}

.inlaypay-stripecheckout-modal.shown {z-index: 10; overflow: auto;}


/* ---- Selected choices ---------------------------------------------------- */

/* Donate / sponsorship amount buttons: white, Dark Iron when chosen */
.page-start .inlaypay-selectable {background-color: #FFF; border: 1px solid #FFF; border-radius: 0.375rem; font-weight: 700; color: #000;}
.page-start .inlaypay-selectable.inlaypay-selected {background-color: #531E10; border-color: #531E10; color: #FFF;}

/* The "You are giving £…" bar */
.page-start .inlaypay-selected-amount-text {padding: 10px; background-color: #89251D; color: #FFF; font-weight: 700;}

/* Adopt keeps its orange: Dark Terracotta when chosen, Terracotta summary */
.inlayadopt {--primary: #8A4D23;}
.page-start .inlayadopt-subtype-option.inlayadopt-subtype-selected,
.page-start .inlayadopt-adoption-type-option.inlayadopt-adoption-type-selected {background-color: #8A4D23; color: #FFF;}
.page-start .inlayadopt-subtype-option.inlayadopt-subtype-selected .inlayadopt-subtype-availability {color: #FFF; opacity: 0.85;}
.page-start .inlayadopt-device-option:has(input:checked) {background-color: #8A4D23; border-color: #8A4D23; color: #FFF;}
.page-start .inlayadopt-device-option:has(input:checked) input {accent-color: #FFF;}   /* keeps the ticked dot visible on orange */
.page-start .inlayadopt-feature-summary-amount {padding: 10px; background-color: #D67D41; color: #FFF; font-weight: 700;}


/* Keyboard focus: the site-wide :focus-visible outline (FOCUS section)
   covers every field and button. Adopt's payment options hide their radio
   button inside a label, so outline the label instead. */
.page-start .inlayadopt-device-option:has(:focus-visible) {
  outline: 2px solid #89251D;
  outline-offset: 2px;
}


/* ---- Messages (CF7) --------------------------------------------------------
   Brand colours instead of the old bright green and #990000, black text on a
   pale tint so it stays readable. */

.page-start .wpcf7 form .wpcf7-response-output {
  margin: 2em 0 1em;
  padding: 15px;
  font-size: 1.6rem;
  line-height: 2rem;
  color: #000;
  border: 1px solid #4C836D;
  border-left-width: 6px;
  border-radius: 0.375rem;
  background-color: rgba(154, 211, 183, 0.25);   /* Copper, pale */
}
.page-start .wpcf7 form.invalid .wpcf7-response-output,
.page-start .wpcf7 form.unaccepted .wpcf7-response-output,
.page-start .wpcf7 form.failed .wpcf7-response-output,
.page-start .wpcf7 form.spam .wpcf7-response-output {
  border-color: #89251D;
  background-color: rgba(137, 37, 29, 0.08);     /* Iron, pale */
}
.page-start .wpcf7-not-valid-tip {
  margin: 10px 0 20px 0;
  font-size: 1.6rem;
  line-height: 2rem;
  color: #89251D;
}
.page-start .wpcf7 .wpcf7-not-valid {border-color: #89251D;}


/* =========================================================================
   SPONSORSHIP – Sponsorship form template only
   ========================================================================= */

/* Sponsorship bricks are sold in £5 steps */
.page-template-page-template-sponsorship .inlaypay-other-amount-wrapper label:after {content:"Please use denominations of £5"; display: inline-block; margin-left: 10px; color: #89251D; font-size: 1.6rem;}   /* a hint: kept smaller than the label, on its baseline */


/* =========================================================================
   NOT FOUND – the 404 page and a search with no results (404.php,
   search.php, template-parts/site-search.php)
   ========================================================================= */

.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;
}
/* The rule above outranks the house .btn:hover, so the hover is restated:
   black with white text, like every other outline button */
.site-search .btn:hover {
  background-color: #000;
  color: #FFF;
}
/* "Search again" panel under search results: the same light grey panel and
   search box as the Page not found page */
.search-again {
  margin: 20px 0;
  padding: 50px;
  background-color: #EFECEA;
}
.search-again .site-search {
  margin: 0;
}
