/*
 Theme Name:   Mousehole Wild Bird Hospital
 Theme URI:    https://mouseholebirdhospital.org.uk/
 Description:  Child theme for Mousehole Wild Bird Hospital. Built on Unify by Unify Studio.
 Author:       Unify Studio for Mousehole Wild Bird Hospital
 Author URI:   https://unify-studio.co.uk
 Template:     unify
 Version:      2.0.2
 Requires PHP: 7.4
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  mwbh
*/

/* ══════════════════════════════════════════════════════
   MWBH — Unify token overrides
   ══════════════════════════════════════════════════════ */

:root {
    /* ── Colours ── */
    --unify-primary:        #002b40;   /* Navy: text, buttons */
    --unify-secondary:      #002b40;
    --unify-accent:         #002b40;
    --unify-bg:             #ffffff;
    --unify-bg-alt:         #f4f8fa;   /* Mist */
    --unify-text:           #002b40;
    --unify-text-muted:     #bcbcbc;

    /* ── Typography ── */
    --unify-font-heading:   "Lato", sans-serif;
    --unify-font-body:      "Lato", sans-serif;
    --unify-line-height:    1.6;

    /* ── Layout ── */
    --unify-max-width:      1240px;    /* 1200px content + 20px gutters */

    /* ── Radius ── */
    --unify-radius-pill:    25px;

    /* ── Site palette (names used throughout this stylesheet and the blocks) ── */
    --primary:      var(--unify-primary);
    --secondary:    var(--unify-secondary);
    --body:         var(--unify-text);
    --pale-grey:    #bcbcbc;
    --light-grey:   #dedede;
    --pale-blue:    #9ab9cb;
    --yellow:       #e9c35b;
    --donate:       #e8453c;
    --donate-hover: #c73530;
    --mist:         #f4f8fa;
    --body-font:    var(--unify-font-body);
    --heading-font: var(--unify-font-heading);

    /* Base size 18px. Set on :root so it beats Unify's Customizer value. */
    font-size: 18px;
}


/* ══════════════════════════════════════════════════════
   MWBH — Unify base adjustments
   Unify's base styles are a little more opinionated
   than the old theme. These keep the site looking as
   it did.
   ══════════════════════════════════════════════════════ */

body {
  color: var(--primary);
  line-height: 1.6;
  font-family: var(--body-font);
  font-weight: 400;
  width: 100%;
}

/* Headings and paragraphs inherit colour and size, so white text on
   sliders, banners and overlays stays white. */
h1, h2, h3, h4, h5, h6,
p {
  color: inherit;
}
p {
  font-size: inherit;
  line-height: inherit;
}
p:last-child {
  margin-bottom: 1rem;
}
.post-template p:last-child {
  margin-bottom: 0;   /* news cards, see blocks/news/news.css */
}
ul, ol {
  padding-left: 40px;
  margin: 1em 0;
}
li {
  margin-bottom: 0;
  line-height: inherit;
}

/* Images flow inline as before; blocks that need display:block set it. */
img, video, svg {
  display: inline;
}

/* Links: underlined by default and no fade on hover, as before.
   Buttons and menus remove the underline in their own rules. */
a {
  text-decoration: underline;
}
a:hover {
  opacity: 1;
}

/* Skip link (visible on keyboard focus only) */
.skip-link:focus {
  top: 5px;
  left: 5px;
}

.spacer-100 {
  height: 100px;
}


/* ══════════════════════════════════════════════════════
   WordPress core
   ══════════════════════════════════════════════════════ */
img {
  max-width: 100%;
  height: auto;
}
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

.entry-content .alignwide {
  margin-left: -20px;
  margin-right: -20px;
  width: auto;
}
.entry-content .alignfull {
  margin-left: calc(-100vw / 2 + 100% / 2);
  margin-right: calc(-100vw / 2 + 100% / 2);
  width: 100vw;
}
.visible-scrollbars .entry-content .alignfull {
  margin-left: calc((-100vw + 17px) / 2 + 100% / 2);
  margin-right: calc((-100vw + 17px) / 2 + 100% / 2);
  max-width: calc(100vw - 17px);
}
.alignfull img {
  /*width: 100vw;*/
}

.wp-block-cover-image.has-parallax,
.wp-block-cover.has-parallax {
  background-attachment: fixed;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%; /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}


/* ══════════════════════════════════════════════════════
   MWBH — Site styles
   ══════════════════════════════════════════════════════ */

.entry-content {
  padding: 0 20px;
  margin: 0 auto;
  max-width: var(--unify-max-width);
}
.preload * {
  transition: none !important;
}
.p20 {
  padding: 20px;
}
.p30 {
  padding: 30px;
}
.p40 {
  padding: 40px;
}
.h0 {
  font-size: 80px;
  line-height: 80px;
  font-weight: 900;
  font-family: var(--heading-font);
  margin: 0 0 20px 0;
}
h1 {
  font-size: 46px;
  line-height: 56px;
  margin: 0 0 20px 0;
  font-family: var(--heading-font);
  font-weight: 900;
}
h2 {
  font-size: 26px;
  line-height: 34px;
  margin: 0 0 15px 0;
  font-family: var(--heading-font);
  font-weight: 400;
}
h3 {
  font-size: 24px;
  line-height: 34px;
  margin: 0 0 15px 0;
  font-family: var(--heading-font);
  font-weight: 900;
}
h4 {
  font-size: 20px;
  line-height: 26px;
  margin: 0 0 10px 0;
  font-family: var(--heading-font);
  font-weight: 900;
}
h5 {
  font-size: 20px;
  line-height: 30px;
  margin: 0 0 10px 0;
  color: var(--secondary);
  font-family: var(--heading-font);
  font-weight: 700;
}
h6 {
  font-size: 16px;
  margin: 0 0 10px 0;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 25px;
}
p {
  margin: 0 0 1rem 0;
}
.wp-block-button__link,
.btn {
  color: #fff;
  background-color: var(--secondary);
  border: 0;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  line-height: 45px;
  padding: 0 25px;
  outline: none;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
}
.wp-block-button__link.grey,
.btn.grey {
  background-color: var(--pale-grey);
}
.wp-block-button__link.icon,
.btn.icon {
  padding-left: 15px;
  display: inline-flex;
  align-items: center;
}
.wp-block-button__link.icon i,
.btn.icon i {
  margin-right: 5px;
  font-size: 25px;
}
.wp-block-button__link:after,
.btn:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-right: 5px solid rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.4s ease;
}
.wp-block-button__link:hover:after,
.btn:hover:after {
  transform: translateX(0);
  opacity: 1;
}
.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline,
.is-style-outline > .wp-block-button__link:not(.has-text-color),
.wp-block-button__link.is-style-outline:not(.has-text-color),
.btn.outline {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}
.btn.donate {
  background-color: var(--donate);
  color: #fff;
}
.btn.donate:hover {
  background-color: var(--donate-hover);
}
button.btn {
  font-family: inherit;
}
.top-bar {
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 0;
}
.top-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.top-bar-grid > div {
  display: grid;
  align-content: center;
}
.top-bar-grid > div:last-child {
  text-align: right;
}
.top-bar .buttons {
  display: flex;
  justify-content: flex-end;
}
.top-bar .buttons .btn {
  margin-left: 10px;
}
.header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.header-grid > div {
  text-align: center;
  display: grid;
  align-content: center;
}
header .logo {
  text-align: center;
  padding: 20px;
}
header .logo img {
  display: inline-block;
  width: 200px;
  height: auto;
}
.urgent {
  background: var(--yellow);
  padding: 20px 40px 20px 20px;
  width: 90%;
  left: 5%;
  right: 5%;
  position: absolute;
  z-index: 1000;
  color: var(--primary);
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  margin-top: 20px;
  transition: opacity 0.5s ease;
  box-sizing: border-box;
}
.urgent.hide {
  opacity: 0;
  pointer-events: none;
}
.urgent p {
  margin-bottom: 0px;
}
.urgent a {
  color: var(--primary);
}
.urgent .close {
  background: none;
  border: 0;
  padding: 0;
  line-height: 1;
  color: var(--primary);
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 30px;
}
.main-nav {
  text-align: center;
  background: var(--pale-blue);
  padding: 0;
}
/* Menu container and list stretch full width for equal spacing */
.main-nav .header-menu {
  width: 100%;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.main-nav ul li {
  position: relative;
}
.main-nav ul li a {
  display: block;
  font-size: 16px;
  line-height: 35px;
  text-decoration: none;
  color: #ffffff;
  padding: 10px 0;
  white-space: nowrap;
}
.main-nav ul > li > ul {
  position: absolute;
  left: 0px;
  top: 100%;
  min-width: 240px;
  width: max-content;
  background: var(--secondary);
  flex-wrap: wrap;
  z-index: 2500;
  display: block;
  padding: 10px;
  text-align: left;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: center top;
  transition: all 0.4s ease;
  overflow: hidden;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.main-nav ul > li.menu-item-has-children:hover {
  background: var(--secondary);
}
.main-nav ul > li:hover > ul {
  transform: scaleY(100%);
  pointer-events: auto;
}
.main-nav ul > li > ul > li {
  flex: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.main-nav ul > li > ul > li:last-child {
  border-bottom: none;
}
.main-nav ul > li > ul > li > a {
  white-space: nowrap;
  color: #ffffff;
  padding: 0;
}
header .nav-btn {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
header .nav-btn span {
  width: 35px;
  height: 5px;
  background-color: var(--primary);
  margin: 6px 0;
  transition: 0.4s;
  display: block;
}
header .nav-btn.active .bar1 {
  -webkit-transform: rotate(-45deg) translate(-5px, 10px);
  transform: rotate(-45deg) translate(-5px, 10px);
}
header .nav-btn.active .bar2 {
  opacity: 0;
}
header .nav-btn.active .bar3 {
  -webkit-transform: rotate(45deg) translate(-5px, -10px);
  transform: rotate(45deg) translate(-5px, -10px);
}
.block-slider .swiper {
  width: 100%;
  height: 70vh;
}
.block-slider .swiper-slide img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}
.block-slider .swiper-slide .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.5830707282913166) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  display: grid;
  align-content: center;
}
.block-slider .swiper-slide .overlay > .entry-content {
  box-sizing: content-box;
  width: 70%;
  color: #ffffff;
}
.block-slider .swiper-slide .overlay > .entry-content > div {
  max-width: 500px;
}
.block-slider .swiper-slide .overlay p {
  margin-bottom: 20px;
}
.swiper-button-prev,
.swiper-button-next {
  box-sizing: content-box;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 20px;
  text-align: center;
  border: 2px solid #ffffff;
}
.swiper-button-prev:after,
.swiper-button-next:after {
  display: none;
}
.swiper-pagination-bullet {
  background: #ffffff;
}
.swiper-pagination-bullet-active {
  background: #ffffff;
}
.single-header {
  margin-bottom: 60px;
}
.single-header img {
  width: 100%;
  height: max(400px, 60vh);
  object-fit: cover;
}
.meta {
  font-size: 14px;
  color: var(--light-grey);
  margin-bottom: 40px;
}
.meta a {
  text-decoration: none;
  color: var(--light-grey);
}
.page-header {
  margin-bottom: 0px;
  position: relative;
}
.page-header img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
}
.page-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
}
.page-header .overlay h1 {
  color: #ffffff;
  text-align: center;
}
.bird-tracker {
  border-radius: 20px;
  background-color: var(--pale-blue);
  padding: 20px;
}
.bird-tracker-form {
  background: #ffffff;
  border-radius: 20px;
  display: inline-block;
}
.bird-tracker-form input[type="text"] {
  background: transparent;
  border: none;
  outline: none;
  padding: 10px;
}
.bird-tracker-form input[type="submit"] {
  border-radius: 20px;
  color: #ffffff;
  background-color: var(--secondary);
  padding: 10px 20px;
  outline: none;
  cursor: pointer;
}
.tracker-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}
.tracker-grid img {
  display: block;
  border-top-right-radius: 10px;
}
.tracker-grid .gallery-items {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 5px;
}
.tracker-grid .gallery-items img {
  border-radius: 0px;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.tracker-table th,
.tracker-table td {
  padding: 10px 10px 10px 0;
}
.tracker-table th {
  text-align: left;
  vertical-align: top;
  min-width: 150px;
}
.archive .news-blocks {
  margin: 100px 0;
}
.footer-wrapper {
  background-color: var(--light-grey);
  padding: 70px 0 60px;
  font-size: 17px;
  line-height: 1.65;
}
.footer-grid {
  display: grid;
  gap: 40px 60px;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  width: 100%;
  align-items: start;
}
.footer-grid > div > * + *,
.footer-grid .textwidget > * + * {
  margin-top: 20px;
}
.footer-grid p {
  margin: 0;
}
.footer-grid img {
  display: block;
  max-width: 100%;
  height: auto;
}
.footer-wrapper a:not(.btn):not(.wp-block-button__link) {
  color: var(--primary);
  text-decoration: none;
}
.footer-wrapper a:not(.btn):not(.wp-block-button__link):hover {
  text-decoration: underline;
}
.footer-wrapper ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-wrapper ul.menu li {
  padding-left: 18px;
  margin-bottom: 4px;
}
.footer-wrapper ul.menu ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.footer-wrapper ul.menu a {
  display: block;
  color: var(--primary);
  position: relative;
}
.footer-wrapper ul.menu a:before {
  content: "\203A";            /* › */
  position: absolute;
  left: -18px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.5;
}
.footer-wrapper table {
  border: 0;
}
.footer-wrapper table i {
  color: var(--secondary);
}
.footer-wrapper table td {
  border: 0;
  vertical-align: top;
}
.social,
.footer-wrapper .wp-block-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-wrapper .social a:not(.btn),
.social a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: var(--light-grey);
  background: var(--secondary);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.2s ease;
}
.footer-wrapper .social a:not(.btn):hover,
.social a:hover {
  background: var(--donate);
  color: #ffffff;
  text-decoration: none;
}

/* Bottom bar: copyright, footer menu, credit */
.footer-bar {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
  padding: 18px 0;
}
.footer-bar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px 30px;
}
.footer-bar__credit {
  text-align: right;
}
.footer-bar p {
  margin: 0;
}
.footer-bar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.footer-bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}
.footer-nav ul li {
  margin: 0;
}
.footer-bar__credit a {
  font-weight: 700;
  color: var(--yellow);
}
.footer-bar__credit a:hover {
  color: var(--yellow);
}

/* Membership Product Page */
.membership-hero {
  background: var(--primary);
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.membership-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,43,64,0.92) 0%, rgba(0,43,64,0.5) 100%);
  display: flex;
  align-items: center;
}
.membership-hero-content {
  max-width: 600px;
  color: #ffffff;
}
.membership-hero-label {
  display: inline-block;
  background: var(--yellow);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.membership-hero-content h1 {
  color: #ffffff;
  margin-bottom: 16px;
}
.membership-hero-content p {
  font-size: 18px;
  opacity: 0.9;
  margin: 0;
}
.membership-product-wrap {
  padding: 60px 0;
}
.membership-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.membership-product-form-inner {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0,43,64,0.10);
}
.membership-product-form-inner h2 {
  margin-bottom: 24px;
}
.membership-product-benefits h3 {
  margin-bottom: 24px;
}
.membership-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.membership-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-grey);
  font-size: 16px;
  line-height: 1.5;
  color: var(--primary);
}
.membership-benefits-list li:last-child {
  border-bottom: none;
}
.membership-benefits-list i {
  color: var(--pale-blue);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.membership-faq-wrap {
  background: var(--mist);
  padding: 60px 0;
}
.membership-faq-title {
  text-align: center;
  margin-bottom: 40px;
}
.membership-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.membership-faq-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,43,64,0.06);
}
.membership-faq-item h4 {
  margin-bottom: 10px;
  color: var(--primary);
}
.membership-faq-item p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  color: var(--primary);
  opacity: 0.85;
}
@media all and (max-width: 980px) {
  .membership-product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .membership-faq-grid {
    grid-template-columns: 1fr;
  }
}
@media all and (max-width: 672px) {
  .membership-hero {
    min-height: 320px;
  }
  .membership-product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .membership-product-form-inner {
    padding: 24px;
  }
  .membership-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media all and (min-width: 980px) {
  .mobile {
    display: none;
  }
}
@media all and (max-width: 980px) and (min-width: 672px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
  .footer-bar__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bar__credit {
    text-align: center;
  }
  .full {
    display: none;
  }
  .mobile {
    display: none;
  }
  .main-nav ul {
    flex-wrap: wrap;
  }
  .main-nav ul li {
    flex: 1 1 50%;
  }
}
@media all and (max-width: 672px) {
  .full,
  .no-mobile {
    display: none;
  }
  .mobile {
    display: block;
  }
  .top-bar-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .top-bar .buttons {
    justify-content: center;
  }
  .header-grid {
    grid-template-columns: 1fr;
  }
  header nav .header-menu {
    overflow: hidden;
    transform: scaleY(0);
    transform-origin: center top;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    width: 100%;
    left: 0px;
    background: var(--pale-blue);
    z-index: 2500;
  }
  .nav--open header nav .header-menu {
    transform: scaleY(100%);
  }
  header .nav-btn {
    display: inline-block;
  }
  .main-nav {
    padding: 10px 0 5px 0;
  }
  .main-nav ul {
    flex-wrap: wrap;
    padding: 0px;
  }
  .main-nav ul li {
    flex: 1 1 100%;
  }
  .main-nav ul li.menu-item-has-children > a:after {
    content: "+";
    float: right;
    margin-right: 10px;
  }
  .main-nav ul li.menu-item-has-children.open > a:after {
    content: "-";
  }
  .main-nav ul > li > ul {
    position: relative;
    left: auto;
    transform: none;
    padding: 10px;
    text-align: center;
    top: auto;
    border-radius: 0px;
    display: none;
  }
  .main-nav ul > li.open > ul {
    display: block;
  }
  .top-bar .buttons .btn {
    font-size: 10px;
  }
  .urgent {
    left: 0px;
    right: 0px;
    margin: 0;
    width: auto;
    padding: 20px;
  }
  .urgent .close {
    top: 5px;
    right: 5px;
  }
  .h0 {
    font-size: 40px;
    line-height: 40px;
  }
  h1 {
    font-size: 35px;
    line-height: 40px;
  }
  h2 {
    font-size: 25px;
    line-height: 30px;
  }
  h3 {
    font-size: 20px;
    line-height: 25px;
  }
  h4 {
    font-size: 18px;
    line-height: 25px;
  }
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
  .quick-links {
    text-align: center;
  }
  .quick-links img {
    max-width: 120px;
    margin: 0 auto 10px auto;
    display: block;
  }
  .footer-grid,
  .block-signpost,
  .block-highlight,
  .news-blocks {
    grid-template-columns: 1fr;
  }
  .footer-wrapper {
    padding: 50px 0 40px;
  }
  .footer-bar__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bar__credit {
    text-align: center;
  }
}


/* Tracker Modal Styles */
.tracker-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 43, 64, 0.85); /* Dark blue overlay */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tracker-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tracker-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.tracker-modal-overlay.active .tracker-modal-content {
    transform: translateY(0);
}

.tracker-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--mist);
    border-bottom: 1px solid #e0e0e0;
}

.tracker-modal-title {
    font-weight: 900;
    color: var(--primary);
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
}

.tracker-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.tracker-modal-close:hover {
    color: #ffc107; /* Yellow hover */
}

.tracker-modal-body {
    flex-grow: 1;
    width: 100%;
    position: relative;
    /* Smooth scrolling for iOS devices inside iframes */
    -webkit-overflow-scrolling: touch; 
}

.tracker-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* "System update" notice shown in the modal (was inline styles) */
.tracker-modal-body--notice {
    text-align: center;
    padding: 60px 20px;
    color: var(--primary);
}
.tracker-modal-body--notice i {
    font-size: 48px;
    margin-bottom: 20px;
}
.tracker-modal-body--notice h3 {
    margin-bottom: 12px;
}
.tracker-modal-body--notice p {
    opacity: 0.8;
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* Stop background scrolling when modal is open */
body.modal-open {
    overflow: hidden !important;
}

/* Mobile full-screen adjustments */
@media (max-width: 768px) {
    .tracker-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .tracker-modal-header {
        padding: 12px 20px;
    }
}

/* ══════════════════════════════════════════════════════
   MWBH plugin shortcodes
   The plugin's CSS was written for content-box sizing
   (1200px wide + 20px padding). Unify uses border-box,
   so these containers keep content-box to stay the
   same width as before.
   ══════════════════════════════════════════════════════ */

.mwbh-slide-inner,
.mwbh-signposts-wrapper,
.support-options-grid,
.membership-tiers-grid,
.ways-to-donate-grid {
  box-sizing: content-box;
}
