/* Disabled:
.advert-block__ad {
  background-color: transparent;
}

@media only screen and (min-width: 768px) {
  .advert-block__ad a,
  .advert-block__ad img {
    max-width: 728px;
    width: inherit;
    margin: 0 auto;
  }
}

*/
.front-main__premium strong {
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  float: left;
  margin-bottom: 10px;
  line-height: 18px;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  background-color: var(--bi-red);
}

.front-main__premium strong.green {
  background-color: #64bb78;
}

.front-main__featuredAd {
  margin-top: 30px;
}

.front-main__left .front-main__advert {
  margin-bottom: 30px;
}

.article-content__author-credits {
  display: flex;
  margin: 20px 0;
  align-items: center;
}

.article-content__author-credits p {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  height: auto;
  line-height: 1.5;
  color: var(--bi-red);
}

.article-content__author-credits p strong {
  display: block;
  color: rgba(18, 27, 33, 0.5);
}

.article-content__author-credits img {
  border-radius: 50%;
  max-width: 90px;
  border: 1px solid var(--bi-grey);
  background-color: #fff;
  padding: 3px;
  margin-right: 15px;
}

.post-type-archive-event .advert-block {
  background-color: #efefef;
  margin: 0;
  padding-bottom: 24px;
}

body.single-videos .article-content::before {
  display: none !important;
}

body.single-videos .article-content__copy {
  max-width: 100% !important;
}

.gf-turnstile-container,
.ginput_container_turnstile {
  margin: 20px 0;
}

.header__ad > div div {
  max-width: 180px;
}

div#batte-3305173416,
.header__ad .advert-title,
.header__sign,
#buttonSignInScroll,
a.link-author-name,
.front-main__latest p a {
  display: none !important;
}

body.category .front-main__centre {
  border-left: none;
  margin-bottom: 50px;
}

.story-date {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.75;
}

@media only screen and (min-width: 1024px) {
  body.category .front-main__centre {
    width: 75.9%;
  }
}

body.category .publications__pagination {
  margin-top: 50px;
  border-top: 1px solid var(--bi-grey);
  padding-top: 20px;
}

.pagination__list .page-numbers {
  margin-right: 5px;
}

/* ==========================================================================
 * Batteries International – Gravity Forms 3.x compatibility CSS
 *
 * Audited against live site running Gravity Forms 2.10.5
 * (Gravity Forms 2.5 theme, "no-framework" – forms 2, 4, 5 and 7)
 *
 * Add to the end of the theme stylesheet (or Appearance > Customise >
 * Additional CSS) BEFORE updating, then test on staging. Everything here
 * is harmless on 2.10.x, so it can go live first.
 * ========================================================================== */

/* --------------------------------------------------------------------------
 * 1. SUBMIT BUTTONS (the main breaking change)
 *
 * GF 3.0 outputs <button type="submit"> instead of <input type="submit">.
 * The theme only styles "input.button" / "input[type=submit]", so without
 * this the Register / Submit buttons fall back to browser defaults.
 *
 * Covers: footer buttons (.gform_button – forms 2, 5, 7) and the inline
 * submit field (.gform-button – Premium Subscription form 4).
 *
 * Specificity is raised so it beats GF's own
 * ".gravity-theme .gform_footer button" rules.
 * -------------------------------------------------------------------------- */
body .gform_wrapper.gravity-theme button.button,
body .gform_wrapper.gravity-theme button[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0 0 8px auto; /* GF footer adds 8px bottom margin today */
  align-self: flex-end;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 120px;
  min-height: 60px;
  width: auto;
  padding: 12px 8px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--bi-red);
  color: var(--bi-white);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap; /* <input> never wraps; <button> can */
  cursor: pointer;
  transition:
    background-color 0.25s ease-in-out,
    border-color 0.25s ease-in-out,
    color 0.25s ease-in-out;
}

/* Inline submit field (form 4) sits in a grid cell – no bottom margin today */
body .gform_wrapper.gravity-theme .gfield--type-submit button[type="submit"],
body .gform_wrapper.gravity-theme #field_submit button {
  margin-bottom: 0;
}

body .gform_wrapper.gravity-theme button.button:hover,
body .gform_wrapper.gravity-theme button.button:focus,
body .gform_wrapper.gravity-theme button[type="submit"]:hover,
body .gform_wrapper.gravity-theme button[type="submit"]:focus {
  background-color: var(--bi-black);
  border-color: var(--bi-black);
  color: var(--bi-white);
}

/*
 * On phones GF currently forces the submit <input> to line-height 2 /
 * min-height 32px (≈48px tall). That rule no longer reaches a <button>, so
 * it is reproduced here to keep the mobile button the same height.
 */
@media only screen and (max-width: 641px) {
  body .gform_wrapper.gravity-theme button.button,
  body .gform_wrapper.gravity-theme button[type="submit"] {
    line-height: 2;
    min-height: 32px;
  }
}

/* --------------------------------------------------------------------------
 * 2. SUBMISSION SPINNER
 *
 * GF 3.0 adds class .gform-has-spinner and puts <span
 * class="gform-loader"> INSIDE the button (it used to sit beside it). GF's
 * loader is 8em square, which would blow the button up. Shrink it and
 * centre it over the button.
 * -------------------------------------------------------------------------- */
body .gform_wrapper.gravity-theme button.gform-has-spinner {
  position: relative;
  color: transparent !important; /* hide label while loading */
}

body .gform_wrapper.gravity-theme button .gform-loader {
  position: absolute;
  inset: 0;
  margin: auto;
  font-size: 2.5px; /* 8em -> 20px spinner */
  border-color: rgba(255, 255, 255, 0.35);
  border-left-color: var(--bi-white);
}

/* --------------------------------------------------------------------------
 * 3. CONSENT CHECKBOX (safeguard)
 *
 * The theme's custom tick relies on "input:checked + label". 3.0 reworked
 * the consent field's required indicator/description placement, so if any
 * element ends up between the input and label the tick would stop showing.
 * :has() keeps it working regardless of sibling order.
 * -------------------------------------------------------------------------- */
body .gform_wrapper .ginput_container_consent:has(input:checked) label::after {
  opacity: 1;
}

/*
 * Keep any newly-output required marker hidden (theme hides
 * .gfield_required)
 */
body .gform_wrapper .ginput_container_consent .gfield_required {
  display: none;
}

/* --------------------------------------------------------------------------
 * 4. "What are your interests?" 3-column checkbox list (safeguard)
 *
 * Form 5 uses the legacy gf_list_3col class. 3.0 reworked Choice Layout
 * settings; this keeps the 3-column grid if GF stops styling the old
 * class.
 * -------------------------------------------------------------------------- */
@media only screen and (min-width: 641px) {
  body .gform_wrapper.gravity-theme .gfield.gf_list_3col .gfield_checkbox,
  body .gform_wrapper.gravity-theme .gfield.gf_list_3col .gfield_radio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}