/*
=====================================================================
  ANIMALS AOTEAROA: CUSTOM WEBSITE STYLES
=====================================================================

  Original author: Markus Amalthea Magnuson / Altruistic Agency
  Reorganised and cleaned up: December 2026

  HOW TO FIND THINGS
  - Press Ctrl+F (Windows) or Cmd+F (Mac) and search for a section
    name, e.g. "SECTION 4", or a page number, e.g. "page-id-9116".
  - All colours are set once in SECTION 1. Change them there.
  - Mobile styles sit right next to the thing they style, inside an
    "@media" block. Search for "@media" to see every one of them.
  - The @import line just below this comment MUST stay above every
    other rule, or the font will stop loading. Never paste new
    snippets above it. Add them to the right section instead.

  SCREEN-SIZE BREAKPOINTS IN USE
  - 768px and narrower ... mobile menu and Donate button (SECTION 4)
  - 768px and wider ...... ".only-mobile" blocks are hidden (SECTION 8)
  - 600px and narrower ... campaign flip cards stack (SECTION 6)
  - 559px and narrower ... logo and menu sit side by side (SECTION 3)
  Note: at exactly 768px (e.g. an iPad held upright) the mobile menu
  styles AND the ".only-mobile" hiding both apply. This is unchanged
  from the previous version.

  BEHAVIOUR CHANGES FROM THE PREVIOUS VERSION (December 2026)
  The previous file had a few typos and broken lines. Fixing them
  changes what these pages show:
  - Pages 6541 (header), 6597 (footer) and 12909 (footer) now hide
    their header/footer like the other landing pages.
  - Pages 13258 and 13292: the dark background now also covers
    #content, #primary and #main, and the Archivo Black font now
    loads. (The old version of these lines was being ignored.)
  - Page 9336: the first form column is now 100% wide like the other
    ad pages (a typo, "9366", had left it at auto width).
  - Pages 9490, 9493, 9495: the h2 inside their own bottom petition
    (#help7/6/8_bottom) is now forced visible.
  Old typo selectors are kept in SECTION 11.3 and 12.11 so nothing
  disappears unexpectedly. Remove them once checked.

  CONTENTS
  SECTION 1  ... FONTS & COLOURS
  SECTION 2  ... TYPOGRAPHY
  SECTION 3  ... HEADER & SITE LOGO
  SECTION 4  ... NAVIGATION & DONATE BUTTON
  SECTION 5  ... PAGE LAYOUT & FEATURED IMAGES
  SECTION 6  ... CONTENT BLOCKS & COMPONENTS
  SECTION 7  ... FOOTER
  SECTION 8  ... UTILITY CLASSES (add these to blocks yourself)
  SECTION 9  ... OTHER PLUGINS
  SECTION 10 ... ACTION NETWORK FORMS (SITEWIDE)
  SECTION 11 ... LANDING PAGES: HIDE TITLE, HEADER & FOOTER
  SECTION 12 ... LANDING PAGES: PETITION AD LAYOUT
  SECTION 13 ... DARK CAMPAIGN PAGES (13258 & 13292)
  SECTION 14 ... INACTIVE CODE (kept for reference, does nothing)
=====================================================================
*/

@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap");


/* =====================================================================
   SECTION 1: FONTS & COLOURS
   ===================================================================== */

/* 1.1 Fonts
   Archivo Black (used on the dark campaign pages, SECTION 13) is
   loaded by the @import line at the top of this file. That line is
   requested on every page of the site. If page speed on the ad
   landing pages matters more, delete the @import and load the font
   only on pages 13258 and 13292 instead (see the review notes). */

/* 1.2 Colour palette
   Change a colour here and it updates everywhere it is used.
   The rest of the file refers to these by name,
   e.g. var(--aa-form-button). Every name starts with "--aa-" so it
   can't clash with names used by the theme or Action Network. */
:root {
  /* Sitewide */
  --aa-heading-teal:           #1e847f;  /* All h2 headings */
  --aa-donate-orange:          #ff8210;  /* Donate button in the menu */
  --aa-white:                  #ffffff;

  /* Action Network forms, sitewide (SECTION 10) */
  --aa-form-button:            #00ffff;  /* Form buttons (aqua) */
  --aa-form-button-hover:      #f0a729;  /* Form buttons on hover (gold) */
  --aa-form-progress-bar:      #ef9d10;  /* Progress bar fill (gold) */
  --aa-form-link:              #d061c7;  /* Links inside forms (purple) */
  --aa-form-link-hover:        #b856af;  /* Links on hover (deeper purple) */

  /* Petition ad landing pages (SECTION 12) */
  --aa-landing-background:     #000000;  /* Black */
  --aa-landing-text:           #ffffff;  /* White */
  --aa-landing-text-soft:      #f9f9f9;  /* Petition title and opt-in text */
  --aa-landing-progress-bar:   #db7b40;  /* Burnt orange */
  --aa-nandos-progress-bar:    #c1234b;  /* Nando's page red */

  /* Dark campaign pages (SECTION 13) */
  --aa-dark-page-background:   #2A3C4A;  /* Dark slate blue */
  --aa-dark-page-heading:      #8C52FF;  /* h1 and h2 (purple) */
  --aa-dark-page-subheading:   #F59E0B;  /* h3 to h6 (amber) */
  --aa-dark-page-text:         #F4F4F0;  /* Body text (off-white) */
  --aa-dark-page-heading-font: 'Archivo Black', sans-serif;
}


/* =====================================================================
   SECTION 2: TYPOGRAPHY
   ===================================================================== */

/* 2.1 Heading colour (sitewide) */
h2 {
  color: var(--aa-heading-teal);
}

/* 2.2 Blog post body text size
   16.6667px is an unusual number. It is kept exactly as it was so
   blog text doesn't shift, and probably matches a theme setting. */
.single-post .content-area p {
  font-size: 16.6667px;
}


/* =====================================================================
   SECTION 3: HEADER & SITE LOGO
   ===================================================================== */

/* 3.1 Logo and header spacing */
.site-logo {
  margin: 0 !important;
}

#masthead {
  padding-bottom: 16px !important;
}

/* 3.2 Small phones (559px and narrower): logo and menu side by side */
@media screen and (max-width: 559px) {
  body #masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}


/* =====================================================================
   SECTION 4: NAVIGATION & DONATE BUTTON
   ===================================================================== */

/* 4.1 Donate button (all screen sizes)
   These three menu items are the Donate links (WordPress menu item
   numbers 456, 8355 and 12069). To give another menu item the same
   look, copy one line and change the number. */
.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-456,
.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-8355,
.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-12069 {
  background-color: var(--aa-donate-orange) !important;
  border-radius: 15px !important;
}

/* Hover: stops the theme's white highlight appearing on the button.
   The space before ":hover" is deliberate. It means "any element
   INSIDE the menu item while it is hovered" (usually the link), not
   the menu item itself. */
.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-456 :hover,
.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-8355 :hover,
.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-12069 :hover {
  background-color: var(--aa-donate-orange) !important;
  color: var(--aa-white) !important;
}

/* 4.2 Mobile menu (768px and narrower) */
@media screen and (max-width: 768px) {

  /* Centre the Donate text */
  .menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-456,
  .menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-8355,
  .menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-12069 {
    text-align: center !important;
  }

  /* Keep the rounded corners while the button is tapped */
  .menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-456 :hover,
  .menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-8355 :hover,
  .menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-12069 :hover {
    border-radius: 15px !important;
  }

  /* Hides the theme's mobile menu toggle button.
     This was in the previous version too. If phone visitors can't
     reach the menu, this is the line to look at. */
  .toggle-menu {
    display: none;
  }
}


/* =====================================================================
   SECTION 5: PAGE LAYOUT & FEATURED IMAGES
   ===================================================================== */

/* 5.1 Remove extra space above the first page heading */
.entry-header.responsive-max-width:first-child {
  padding-top: 0;
}

/* 5.2 Hide the featured image at the top of blog posts and pages */
.single-post .post-thumbnail,
.page figure.post-thumbnail {
  display: none;
}

/* 5.3 Keep images showing in Newspack "Homepage Posts" blocks
   Without this, rule 5.2 would also hide the images in post lists.
   (Original note: KL, support ticket zd-7449348) */
.wp-block-newspack-blocks-homepage-articles.image-aligntop .post-thumbnail {
  display: contents;
}


/* =====================================================================
   SECTION 6: CONTENT BLOCKS & COMPONENTS
   ===================================================================== */

/* 6.1 Accordion block: let long titles wrap instead of being cut off
   on mobile */
.wp-block-accordion-heading__toggle {
  flex-wrap: wrap !important;
  overflow: visible !important;
  height: auto !important;
}

.wp-block-accordion-heading__toggle-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* 6.2 Campaign flip cards (.wth-flips)
   Originally labelled "Nando's flipcards". The "wth" class names
   suggest they were first built for the What the HELL? campaign.
   On screens 600px and narrower the cards stack in one column.
   The nth-child(3) line cancels special positioning of the third
   card that is set elsewhere (probably in the page's own HTML block). */
@media (max-width: 600px) {
  .wth-flips {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .wth-flips .wth-flip-wrap,
  .wth-flips .wth-flip-wrap:nth-child(3) {
    grid-column: auto !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
}


/* =====================================================================
   SECTION 7: FOOTER
   ===================================================================== */

/* 7.1 Remove margins around the custom footer block */
.custom-footer-block {
  margin: 0 !important;
}


/* =====================================================================
   SECTION 8: UTILITY CLASSES
   =====================================================================
   Add these to any block in the editor:
   Block settings > Advanced > Additional CSS class(es).
   ===================================================================== */

/* 8.1 .only-mobile: hide this block on screens 768px and wider */
@media (min-width: 768px) {
  .only-mobile {
    display: none !important;
  }
}

/* 8.2 .keep-spacer: stop a Spacer block shrinking away on small
   screens. Used on the HELP CHICKENS NOW landing page. */
.keep-spacer {
  min-height: 200px !important;
}


/* =====================================================================
   SECTION 9: OTHER PLUGINS
   ===================================================================== */

/* 9.1 FAQ plugin (probably "Quick and Easy FAQs"): hide the filter
   buttons above the FAQ list */
ul.qe-faqs-filters-container {
  display: none;
}


/* =====================================================================
   SECTION 10: ACTION NETWORK FORMS (SITEWIDE)
   =====================================================================
   These apply to every Action Network petition, form and donation
   embed on the site. Page-specific changes are in SECTION 12.

   Most rules here need !important because Action Network loads its
   own styles after ours.

   Action Network's list of CSS snippets:
   https://help.actionnetwork.org/hc/en-us/articles/115005729066-CSS-snippets-for-embed-customization
   ===================================================================== */

/* 10.1 Hide parts of the form we don't use */
#donation_recipient_wrap,
#donate_login,
#can_sidebar {
  display: none !important;
}

/* Action Network logo, the action info box, and h3/h4 headings */
.can_embed #logo_wrap,
#can_embed_form #logo_wrap,
#can_embed_form #action_info,
#can_embed_form h3,
#can_embed_form h4 {
  display: none !important;
}

/* Remove the line above the sharing section */
#can_embed_form #d_sharing {
  border-top: none !important;
}

/* 10.2 Force forms into one column */
#can_main_col {
  float: none;
  width: 100% !important;
}

#can_embed_form.can_float #form_col1,
#can_embed_form.can_float #form_col2 {
  float: none !important;
  width: 100% !important;
}

/* Where the sidebar is shown (see SECTION 12), let it fill the space */
#can_embed_form #can_sidebar {
  float: none !important;
  width: auto !important;
}

/* Pages with the "full-form-embed" body class: hide the left column */
body.full-form-embed #can_main_col {
  display: none;
}

/* 10.3 Spacing */
.can_embed #can_embed_form,
.can_embed #donate_auto_modal {
  padding: 15px;
}

/* Close the gap below the progress tracker */
body #can_embed_form .action_status_tracker {
  padding-bottom: 0 !important;
}

/* Remove the gap above the progress count */
#can_embed_form .action_status_running_total {
  margin-top: 0 !important;
}

/* 10.4 Buttons */
.can_embed .can_button,
.can_embed #can_embed_form input[type="submit"],
.can_embed #can_embed_form .button,
.can_embed #donate_auto_modal input[type="submit"],
.can_embed #donate_auto_modal .button {
  background-color: var(--aa-form-button) !important;
}

.can_embed .can_button:hover,
.can_embed #can_embed_form input[type="submit"]:hover,
.can_embed #can_embed_form .button:hover,
.can_embed #donate_auto_modal input[type="submit"]:hover,
.can_embed #donate_auto_modal .button:hover {
  background-color: var(--aa-form-button-hover) !important;
}

/* 10.5 Progress bar fill */
#can_embed_form .action-widget--toggle .action_status_status_bar span.action_status_status_bar-grow {
  background-color: var(--aa-form-progress-bar) !important;
}

/* 10.6 Links */
.can_embed #can_embed_form a,
.can_embed #donate_auto_modal a {
  color: var(--aa-form-link) !important;
}

.can_embed #can_embed_form a:hover,
.can_embed #donate_auto_modal a:hover {
  color: var(--aa-form-link-hover) !important;
}

/* Keep the button on the thank-you screen white */
.can_embed #can_embed_form #action_thank_you_text a,
.can_embed #can_embed_form #action_thank_you_text a:hover {
  color: var(--aa-white) !important;
}

/* 10.7 Custom petition title (our own h2 with class "custom-petition-title") */
#can_embed_form h2.custom-petition-title {
  display: block !important;
  visibility: visible !important;
}

/* All this specificity is NEEDED to beat Action Network's own h2
   styling. It only affects the custom petition title. */
body .can_embed.v5 :is(#can_embed_form, #help2_bottom, #help5_bottom, #help6_bottom, #help7_bottom, #help8_bottom) h2.custom-petition-title {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}


/* =====================================================================
   SECTION 11: LANDING PAGES: HIDE TITLE, HEADER & FOOTER
   =====================================================================
   HOW TO FIND A PAGE NUMBER: open the page in the WordPress editor.
   The number after "post=" in the address bar is its page ID.

   HOW TO ADD A PAGE: add a line like ".page-id-12345," in number
   order. Every line needs a comma after it except the last one.
   ===================================================================== */

/* 11.1 Hide the page title */
:is(
  .page-id-155,
  .page-id-5913,
  .page-id-6541,
  .page-id-6581,
  .page-id-6597,
  .page-id-6604,
  .page-id-6609,
  .page-id-7538,
  .page-id-7571,
  .page-id-7601,
  .page-id-7944,
  .page-id-8145,
  .page-id-8338,
  .page-id-8362,
  .page-id-8468,
  .page-id-8984,
  .page-id-8988,
  .page-id-9036,
  .page-id-9072,
  .page-id-9116,
  .page-id-9336,
  .page-id-9686,
  .page-id-10878,
  .page-id-11171,
  .page-id-11310,
  .page-id-12003,
  .page-id-12185,
  .page-id-12545,
  .page-id-12909,
  .page-id-13292,
  .page-id-13602,
  .page-id-13761,
  .page-id-13893
) .entry-title {
  display: none;
}

/* 11.2 Hide the site header and footer
   Note: this hides EVERY header and footer element on these pages,
   which can include the page's own title area.
   Pages 13258 and 13292 are handled separately in SECTION 13. */
:is(
  .page-id-155,
  .page-id-5913,
  .page-id-6541,
  .page-id-6581,
  .page-id-6597,
  .page-id-6604,
  .page-id-6609,
  .page-id-7538,
  .page-id-7571,
  .page-id-7601,
  .page-id-7944,
  .page-id-8145,
  .page-id-8338,
  .page-id-8362,
  .page-id-8468,
  .page-id-8984,
  .page-id-8988,
  .page-id-9036,
  .page-id-9072,
  .page-id-9116,
  .page-id-9336,
  .page-id-9490,
  .page-id-9493,
  .page-id-9495,
  .page-id-9686,
  .page-id-10878,
  .page-id-11171,
  .page-id-11310,
  .page-id-12003,
  .page-id-12185,
  .page-id-12545,
  .page-id-12909,
  .page-id-13602,
  .page-id-13761,
  .page-id-13893
) :is(header, footer) {
  display: none !important;
}

/* 11.3 LEGACY: kept from the previous version, probably typos
   The old file hid the header on page 6441 and the footer on page
   7597. These look like typos for 6541 and 6597 (fixed above), but
   if either page really exists, removing them would bring its
   header or footer back. Check example: animalsaotearoa.org/?page_id=6441
   If both pages don't exist, delete this rule. */
.page-id-6441 header,
.page-id-7597 footer {
  display: none !important;
}


/* =====================================================================
   SECTION 12: LANDING PAGES: PETITION AD LAYOUT
   =====================================================================
   Reshapes the Action Network petition on the ad landing pages into
   one clean, dark, full-width column with a visible progress counter.

   PAGE GROUPS USED IN THIS SECTION
   - ALL PETITION AD PAGES (10 pages):
       Ad landing page variations (V1 to V4.1 / "UFV4"):
       8362, 8984, 8988, 9036, 9072, 9336, 9490, 9493, 9495
       Nando's petition page: 9116
   - AD VARIATIONS ONLY (9 pages): the list above without 9116
   - Cruel Imports page (10878): only uses rule 12.2

   SECOND PETITION AT THE BOTTOM OF THE PAGE
   Some pages have a second petition embed with its own ID:
   8984 = #help2_bottom    9336 = #help5_bottom    9490 = #help7_bottom
   9493 = #help6_bottom    9495 = #help8_bottom    9116 = #nandos_bottom

   ADDING A NEW AD LANDING PAGE
   Add your page number to every list in rules 12.1, 12.2, 12.3,
   12.4 (h2/h3 line), 12.6, 12.7, 12.9 and 12.10, and to SECTION 11.
   Only add it to the h4 line in 12.4 if the form needs h4 headings,
   and only add it to 12.8 if you want the progress tracker HIDDEN.
   ===================================================================== */

/* 12.1 Hide the left column, page heading and action details */
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_main_col,
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_main_col > *,
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) h2.entry-title,
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) .main_action_image,
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) .action_description,
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #action_info {
  display: none !important;
}

/* 12.2 Stack the form into one full-width column
   (also used on the Cruel Imports page, 10878) */
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495, .page-id-10878) #can_embed_form #can_sidebar,
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495, .page-id-10878) #can_embed_form.can_float #form_col1,
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495, .page-id-10878) #can_embed_form.can_float #form_col2,
.page-id-10878 #can_main_col {
  display: block !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box;
}

:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form_inner {
  display: block !important;
  width: 100% !important;
}

/* Space above the sidebar */
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form #can_sidebar {
  margin-top: 20px;
}

.page-id-9116 #can_embed_form #can_sidebar {
  margin-top: 0;
}

/* 12.3 The form box: black background, white text, no border,
   no maximum width */
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form,
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) .can_embed #can_embed_form {
  max-width: none !important;
  width: 100% !important;
  padding: 20px !important;
  background-color: var(--aa-landing-background) !important;
  color: var(--aa-landing-text) !important;
  font-family: inherit !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* 12.4 Show headings inside the form
   (SECTION 10 hides h3 and h4 on every other page) */
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form h2,
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form h3,
:is(.page-id-8362, .page-id-8988, .page-id-9036, .page-id-9072) #can_embed_form h4,
.page-id-8984 #help2_bottom h2,
.page-id-9336 #help5_bottom h2,
.page-id-9490 #help7_bottom h2,
.page-id-9493 #help6_bottom h2,
.page-id-9495 #help8_bottom h2,
.page-id-9116 #nandos_bottom h2 {
  display: block !important;
  visibility: visible !important;
}

/* 12.5 Bottom-of-page petitions: float right at 80% width */
.page-id-8984 #help2_bottom,
.page-id-9336 #help5_bottom,
.page-id-9490 #help7_bottom,
.page-id-9493 #help6_bottom,
.page-id-9495 #help8_bottom,
.page-id-9116 #nandos_bottom {
  display: block !important;
  float: right !important;
  width: 80% !important;
}

/* 12.6 Progress bar colours
   Note: the sitewide gold fill (rule 10.5) is more specific than
   these, so it wins on the moving part of the bar wherever Action
   Network uses the ".action-widget--toggle" wrapper. That means the
   burnt orange and Nando's red below may only colour the empty track.
   This is how the previous version behaved too. */
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form .action_status_status_bar,
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form .action_status_status_bar-grow {
  display: block !important;
  background-color: var(--aa-landing-progress-bar) !important;
}

.page-id-9116 #can_embed_form .action_status_status_bar-grow {
  background-color: var(--aa-nandos-progress-bar) !important;
}

/* 12.7 Progress counter ("1,234 signatures") */

/* Counter inside the main form: always shown, no gap above */
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form .action_status_running_total {
  display: block !important;
  margin-top: 0 !important;
}

/* Page 8984: every counter on the page is shown */
.page-id-8984 .action_status_running_total {
  display: block !important;
}

/* Counter text style: main form, plus the top and bottom petitions */
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form .action_status_running_total,
.page-id-8984 .action_status_running_total,
.page-id-8984 :is(#help2_top, #help2_bottom) .action_status_running_total,
.page-id-9336 :is(#help5_top, #help5_bottom) .action_status_running_total,
.page-id-9490 :is(#help7_top, #help7_bottom) .action_status_running_total,
.page-id-9493 :is(#help6_top, #help6_bottom) .action_status_running_total,
.page-id-9495 :is(#help8_top, #help8_bottom) .action_status_running_total,
.page-id-9116 :is(#nandos_top, #nandos_bottom) .action_status_running_total {
  color: var(--aa-landing-text) !important;
  font-family: inherit !important;
  font-size: 20px !important;
  text-align: center !important;
}

/* Progress goal ("Can we reach 5,000?") */
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form .action_status_tracker .action_status_goal {
  display: block !important;
  color: var(--aa-landing-text) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  text-align: center !important;
}

/* 12.8 Hide the progress tracker completely on these variations */
:is(.page-id-8988, .page-id-9493, .page-id-9495) #can_embed_form .action_status_tracker {
  display: none !important;
}

/* 12.9 Petition title and opt-in checkbox text */
:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form .custom-petition-title,
.page-id-8984 #help2_bottom .custom-petition-title,
.page-id-9336 #help5_bottom .custom-petition-title,
.page-id-9490 #help7_bottom .custom-petition-title,
.page-id-9493 #help6_bottom .custom-petition-title,
.page-id-9495 #help8_bottom .custom-petition-title {
  margin: 0 0 5px 0 !important;
  color: var(--aa-landing-text-soft) !important;
  font-size: 22px !important;
  text-align: left !important;
  font-family: inherit !important;
}

:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9116, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) #can_embed_form .check_radio_field label {
  margin: 0 0 5px 0 !important;
  color: var(--aa-landing-text-soft) !important;
  font-size: 14px !important;
  text-align: left !important;
  font-family: inherit !important;
}

/* 12.10 Black page background (ad variations only, not Nando's) */
body:is(.page-id-8362, .page-id-8984, .page-id-8988, .page-id-9036, .page-id-9072, .page-id-9336, .page-id-9490, .page-id-9493, .page-id-9495) {
  background-color: var(--aa-landing-background);
  color: var(--aa-landing-text);
}

/* 12.11 LEGACY: kept from the previous version, probably typos
   These selectors were in the old file with page numbers or IDs that
   look mistyped (help5 on pages that use help6/7/8, help8 on the
   Nando's page, and page "9366"). They do nothing if those elements
   or pages don't exist. Kept so nothing changes unexpectedly.
   Once you've checked those pages, this whole rule set can go. */
.page-id-9490 #help5_bottom h2,
.page-id-9493 #help5_bottom h2,
.page-id-9495 #help5_bottom h2 {
  display: block !important;
  visibility: visible !important;
}

.page-id-9116 #help8_bottom .custom-petition-title {
  margin: 0 0 5px 0 !important;
  color: var(--aa-landing-text-soft) !important;
  font-size: 22px !important;
  text-align: left !important;
  font-family: inherit !important;
}

.page-id-9366 #can_embed_form.can_float #form_col1 {
  display: block !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box;
}


/* =====================================================================
   SECTION 13: DARK CAMPAIGN PAGES (13258 & 13292)
   =====================================================================
   Dark slate background, purple Archivo Black headings, amber
   subheadings, off-white text, and no site header or footer.
   To add another page with this look, add ", .page-id-NUMBER" inside
   every :is( ) bracket in this section.
   ===================================================================== */

/* 13.1 Page background */
body:is(.page-id-13258, .page-id-13292),
body:is(.page-id-13258, .page-id-13292) :is(#page, #content, #primary, #main) {
  background: var(--aa-dark-page-background) !important;
}

/* 13.2 Headings 1 and 2 */
body:is(.page-id-13258, .page-id-13292) :is(h1, h2),
body:is(.page-id-13258, .page-id-13292) :is(h1, h2) * {
  font-family: var(--aa-dark-page-heading-font) !important;
  color: var(--aa-dark-page-heading) !important;
}

/* 13.3 Headings 3 to 6 */
body:is(.page-id-13258, .page-id-13292) :is(h3, h4, h5, h6),
body:is(.page-id-13258, .page-id-13292) :is(h3, h4, h5, h6) * {
  color: var(--aa-dark-page-subheading) !important;
}

/* 13.4 Body text */
body:is(.page-id-13258, .page-id-13292) :is(p, li, a, div) {
  color: var(--aa-dark-page-text);
}

/* 13.5 Remove the site header and footer, and the gap they leave */
body:is(.page-id-13258, .page-id-13292) :is(.site-header, .site-footer) {
  display: none !important;
}

body:is(.page-id-13258, .page-id-13292) .site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* =====================================================================
   SECTION 14: INACTIVE CODE (FOR REFERENCE ONLY)
   =====================================================================
   Nothing in this section affects the website.

   14.1 Fundraising widget padding
   This rule was in the old file but was accidentally switched off by
   a stray comment mark ("*" then "/") on the line above it, so it
   has never applied. It is kept here, still switched off, so the
   donation forms don't change. To switch it on, move the line below
   out of this comment block, above the final closing mark.

   #can_fundraising_widget { padding: 20px; }
   ===================================================================== */