/*
Theme Name: Swiss Theme
Theme URI: http://rocquett.com
Author: Rocquett Websites
Author URI: http://rocquett.com
Description: Swiss Theme 4.0 is a Full Site Editing WordPress theme, created for Client Name. For assistance contact <a href="https://rocquett.com">Rocquett Websites</a> | 706-338-1464 | <a href="mailto:service@rocquett.com">service@rocquett.com</a>
Version: 4.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Update URI: false

Based on Rocquett Swiss Theme 

***NOTE*** See /wp-content/themes/swisstheme/readme.txt for full css and theme notes.

*/

/* Structure: base (mobile) styles first, then min-width breakpoints in ascending order
 * (tablet, desktop). Max-width overrides that cannot be inverted without duplicating
 * desktop values set elsewhere (block settings, WordPress layout CSS, Max Mega Menu)
 * are grouped at the end.
 * ============================================================================== */

/* ==============================================================================
   BASE
   ============================================================================== */

:root {
  /* Shared initial header height and banner overlap; adjust per project. */
  --swiss-header-height: 90px;
  --outline-button-color-light: #fff;
  --outline-button-color-dark: #000;
}

/*  Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/*  Reduced motion prefs  */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

[id] {
  scroll-margin-top: var(--swiss-header-height);
}

/* IMPORTANT NOTE TO OVERRIDE WP FSE SPECIFICITY INSIDE NORMAL TAGS
/* :root :where(.wp-block-paragraph) {
    font-size: 1.15rem;
    line-height: 1.6;
} */

/* ==============================================================================
   BLOCKS
   ============================================================================== */

/* Headings wrap naturally by default. Balancing is an opt-in block style. */
:where(h1, h2, h3, h4, h5, h6) {
  text-wrap: wrap;
}

/* Select Balanced in the Heading block's Styles, or add is-style-balanced. */
:is(h1, h2, h3, h4, h5, h6).is-style-balanced {
  text-wrap: balance;
}

/* Heading looks follow the size, not the level: pick the level for meaning (H1 > H2 > H3 order) and the
   Typography size for the look, so an H2 can look like a smaller heading. Each size's weight, letter spacing
   and bottom padding are in theme.json settings.custom.heading (one place per build; the H1-H3 element
   styles read the same values, and H4-H6 default to Medium, Small and XSmall). Inline settings on a block still win. */
:is(h1, h2, h3, h4, h5, h6).has-xx-large-font-size {
  font-weight: var(--wp--custom--heading--xx-large--font-weight);
  letter-spacing: var(--wp--custom--heading--xx-large--letter-spacing);
  padding-bottom: var(--wp--custom--heading--xx-large--padding-bottom);
}
:is(h1, h2, h3, h4, h5, h6).has-x-large-font-size {
  font-weight: var(--wp--custom--heading--x-large--font-weight);
  letter-spacing: var(--wp--custom--heading--x-large--letter-spacing);
  padding-bottom: var(--wp--custom--heading--x-large--padding-bottom);
}
:is(h1, h2, h3, h4, h5, h6).has-large-font-size {
  font-weight: var(--wp--custom--heading--large--font-weight);
  letter-spacing: var(--wp--custom--heading--large--letter-spacing);
  padding-bottom: var(--wp--custom--heading--large--padding-bottom);
}
:is(h1, h2, h3, h4, h5, h6).has-medium-large-font-size {
  font-weight: var(--wp--custom--heading--medium-large--font-weight);
  letter-spacing: var(--wp--custom--heading--medium-large--letter-spacing);
  padding-bottom: var(--wp--custom--heading--medium-large--padding-bottom);
}
:is(h1, h2, h3, h4, h5, h6).has-medium-plus-font-size {
  font-weight: var(--wp--custom--heading--medium-plus--font-weight);
  letter-spacing: var(--wp--custom--heading--medium-plus--letter-spacing);
  padding-bottom: var(--wp--custom--heading--medium-plus--padding-bottom);
}
:is(h1, h2, h3, h4, h5, h6).has-medium-font-size {
  font-weight: var(--wp--custom--heading--medium--font-weight);
  letter-spacing: var(--wp--custom--heading--medium--letter-spacing);
  padding-bottom: var(--wp--custom--heading--medium--padding-bottom);
}
:is(h1, h2, h3, h4, h5, h6).has-small-font-size {
  font-weight: var(--wp--custom--heading--small--font-weight);
  letter-spacing: var(--wp--custom--heading--small--letter-spacing);
  padding-bottom: var(--wp--custom--heading--small--padding-bottom);
}
:is(h1, h2, h3, h4, h5, h6).has-xsmall-font-size {
  font-weight: var(--wp--custom--heading--xsmall--font-weight);
  letter-spacing: var(--wp--custom--heading--xsmall--letter-spacing);
  padding-bottom: var(--wp--custom--heading--xsmall--padding-bottom);
}

/* Bold text (Bold in the toolbar = <strong>; <b> from pasted content). The browser default is "bolder",
   one step up from the text around it, which is only 400 over the 200 body text. Set the weight in
   theme.json settings.custom.strong.fontWeight (a preset can override it there). */
strong,
b {
  font-weight: var(--wp--custom--strong--font-weight, 700);
}

/* Narrow Content (inc/narrow-content.php): a width below Content. A block left at Content width with the class
   narrow-content is --swiss-narrow-content-size wide at most (the content size less the Site Options reduction,
   16% by default: 991px), centred by the constrained layout's own auto margins. Narrower screens are unaffected.
   Wide, Full, left and right aligned blocks keep their own width. */
.is-layout-constrained
  > .narrow-content:not(.alignwide, .alignfull, .alignleft, .alignright) {
  max-width: var(
    --swiss-narrow-content-size,
    calc(var(--wp--style--global--content-size, 1180px) * 0.84)
  );
}

/* I've no idea why when you add a background color to a column, WP by default adds padding to it... so weird - this get's rid of that */
:where(.wp-block-columns.has-background) {
  padding: initial;
}

/* Pull Quote */
.wp-block-pullquote blockquote {
  display: grid;
  gap: 20px;
}

.wp-block-pullquote cite {
  font-size: 80%;
  font-weight: 600;
}

/* Search Block: the field has a Dark Gray edge (5.7:1 on white, so it passes the 3:1 for form controls), and the
   button takes the active style's Fill (colours, hover, corner, case and letter spacing from
   swiss_button_style_variables() in functions.php), with the field's corner to match. Charcoal without a style. */
.wp-block-search__input {
  border: 1px solid var(--wp--preset--color--dark-gray);
  border-radius: var(--swiss-button-radius, 0);
  padding-inline: 1rem;
}

.wp-block-search__button {
  box-shadow: none;
  border: 1px solid var(--swiss-button-bg, var(--wp--preset--color--charcoal));
  border-radius: var(--swiss-button-radius, 0);
  background-color: var(--swiss-button-bg, var(--wp--preset--color--charcoal));
  color: var(--swiss-button-text, var(--wp--preset--color--white));
  letter-spacing: var(--swiss-button-letter-spacing, normal);
  text-transform: var(--swiss-button-text-transform, none);
  padding: 0.4rem 1.25rem 0.5rem;
  font-weight: 500;
}

.wp-block-search__button:is(:hover, :focus-visible) {
  border-color: var(
    --swiss-button-bg-hover,
    var(--swiss-button-bg, var(--wp--preset--color--charcoal))
  );
  background-color: var(
    --swiss-button-bg-hover,
    var(--swiss-button-bg, var(--wp--preset--color--charcoal))
  );
  color: var(
    --swiss-button-text-hover,
    var(--swiss-button-text, var(--wp--preset--color--white))
  );
}

/* Keeps our titles link as the off black color in things like the query loop*/
.wp-block-post-title :where(a) {
  color: var(--wp--preset--color--charcoal);
}

.wp-block-image.size-full {
  line-height: 1;
}

.wp-block-query .wp-block-group {
  border: none !important;
}

/* Apply a smooth transition effect to all core WordPress buttons */
.wp-block-button__link {
  transition: all 0.2s ease-in-out;
}

.is-style-outline .wp-block-button__link {
  position: relative;
  /* overflow: hidden moves an inline-block's baseline to its bottom edge, which made the wrapper taller
     and pushed Outline above Fill in a row; top alignment keeps them level. */
  vertical-align: top;
  background-color: transparent !important;
  border: 2px solid var(--outline-button-color-light);
  color: var(--outline-button-color-light) !important;
  overflow: hidden;
  z-index: 1;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.is-style-outline .wp-block-button__link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--outline-button-color-light);
  background-color: var(
    --outline-button-color-light
  ); /* Fills with original color (White) */
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.is-style-outline .wp-block-button__link:hover {
  color: var(--outline-button-color-dark) !important;
  border-color: var(--outline-button-color-light) !important;
  box-shadow: inset 0 0 0 2px var(--outline-button-color-light) !important;
}

.is-style-outline .wp-block-button__link:hover::before {
  opacity: 1;
}

.wp-block-buttons.buttons-margintop-auto {
  margin-top: auto !important;
}

/* COVER CARD (section style cover-card, section-styles/cover-card.json; swiss/columns-cover-buttons).
   The JSON holds the look (radius, height, padding, heading type); this is the layout: the card's
   content fills the cover as a column, the tab sits at the top and the buttons at the bottom.
   The content group's block gap is off, so every space inside the card is set here:
   tab → heading, heading → paragraph (the heading's margin plus its JSON padding), and a minimum
   space above the buttons.
   Overlay: change the two variables below to restyle every Cover Card's overlay. They override the
   block's own Overlay setting, which has no effect on Cover Cards. */
.wp-block-cover.is-style-cover-card {
  --cover-card-overlay-color: var(--wp--preset--color--black);
  --cover-card-overlay-opacity: 0.7;
  align-items: stretch;
}

.wp-block-cover.is-style-cover-card > .wp-block-cover__background {
  background-color: var(--cover-card-overlay-color) !important;
  opacity: var(--cover-card-overlay-opacity) !important;
}

.wp-block-cover.is-style-cover-card > .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
}

.wp-block-cover.is-style-cover-card
  > .wp-block-cover__inner-container
  > .wp-block-group {
  flex: 1;
  gap: 0;
}

.wp-block-cover.is-style-cover-card .wp-block-image:first-child {
  margin-bottom: calc(
    var(--wp--preset--spacing--5) + var(--wp--style--block-gap, 1.5rem)
  );
}

.wp-block-cover.is-style-cover-card :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: var(--wp--preset--spacing--1);
}

.wp-block-cover.is-style-cover-card p {
  margin-top: 0;
}

.wp-block-cover.is-style-cover-card .wp-block-buttons:last-child {
  margin-top: auto;
  margin-bottom: 0.5rem;
  padding-top: var(--wp--style--block-gap, 1.5rem);
}

/* HOVER STATE FOR COVER BLOCK */

/* Target the inner overlay background and ensure smooth transition */
.hover-cover-overlay .wp-block-cover__background {
  transition:
    opacity 0.3s ease-in-out,
    background-color 0.3s ease-in-out;
}

/* Force a higher opacity level on hover */
.hover-cover-overlay:hover .wp-block-cover__background {
  opacity: 0.8 !important; /* Forces 90% opacity (darker than your original 70) */
}

/* Home three-column cover cards: same subtle zoom as the team grid portraits (team-grid.css). */
.wp-block-cover.greyscale-element .wp-block-cover__image-background {
  transition: transform 0.4s ease;
}

.wp-block-cover.greyscale-element:hover .wp-block-cover__image-background,
.wp-block-cover.greyscale-element:focus-within
  .wp-block-cover__image-background {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-cover.greyscale-element .wp-block-cover__image-background {
    transition: none;
  }

  .wp-block-cover.greyscale-element:hover .wp-block-cover__image-background,
  .wp-block-cover.greyscale-element:focus-within
    .wp-block-cover__image-background {
    transform: none;
  }
}

/* THREE COLUMN COVER */
/* Fixes the class name to target the true background image */
/* .greyscale-element img.wp-block-cover__image-background {
  filter: grayscale(100%) !important;
  -webkit-filter: grayscale(100%) !important;
} */

.wp-block-group.custom-edge-gradient {
  color: #fff;
  background: linear-gradient(to right, #163e64 0%, #163e64 100%);
}

/* ==============================================================================
   HEADER & NAVIGATION
   ============================================================================== */

header {
  position: relative; /* MIght need to be removed for Sticky Header */
  z-index: 9;
}

header.wp-block-template-part,
.wp-block-template-part[data-slug="header"] > * {
  margin-block-start: 0 !important;
}

/* Header bar colours come from the header style in theme.json settings.custom.header (inc/header-style.php sets
   the variables): the solid bar is --swiss-header-solid-bg; over a page's opening full-height banner (the first
   content block is .banner-fullheight or .banner-fullheight-short without banner-no-overlap) it is
   --swiss-header-banner-bg, transparent for style "transparent" and the solid colour for style "solid". */
.wp-site-blocks > header {
  background-color: var(
    --swiss-header-solid-bg,
    var(--swiss-dark-band, var(--wp--preset--color--black))
  );
}

.wp-site-blocks:has(
    :is(.wp-block-post-content, main)
      > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
        .banner-no-overlap
      )
  )
  > header {
  background-color: var(--swiss-header-banner-bg, transparent);
}

/* With the sticky header plugin on, the plugin paints the header with its own top-of-page colour (--bsh-bg-top,
   set inline by its script, applied with !important). Hand it the theme's colours instead (a stylesheet !important
   beats the plain inline value), so the plugin's own top colour setting is not used. Its docked colour (--bsh-bg)
   is set in DOCKED below. With the plugin off, nothing reads this variable and the rules above show the bar. */
.wp-site-blocks > header {
  --bsh-bg-top: var(
    --swiss-header-solid-bg,
    var(--swiss-dark-band, var(--wp--preset--color--black))
  ) !important;
}

.wp-site-blocks:has(
    :is(.wp-block-post-content, main)
      > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
        .banner-no-overlap
      )
  )
  > header {
  --bsh-bg-top: var(--swiss-header-banner-bg, transparent) !important;
}

/* DOCKED (sticky header plugin on, header stuck at the top): the colour and shadow come from theme.json
   settings.custom.header dockedBackground (default: the solid bar's colour, so it follows the tone) and
   dockedShadow, not from the plugin's sticky colour setting. The docked logo is the Site Options one for the tone
   (white on dark, dark on light; LIGHT HEADER below), so leave the plugin's Sticky logo empty. Height and logo
   size while docked stay in the plugin settings. */
.wp-site-blocks > header {
  --bsh-bg: var(
    --wp--custom--header--docked-background,
    var(--swiss-header-solid-bg)
  ) !important;
}

.bsh-enabled .wp-site-blocks > header.bsh-stuck.bsh-docked {
  box-shadow: var(--wp--custom--header--docked-shadow, none) !important;
}

/* Undocking over an opening banner (10 Nov 2026): the docked colour fades out in 100ms instead of the plugin's
   300ms. Over the full 300ms the bar grew from the docked height to the full one while it faded, so the lower band
   only appeared once the colour was half gone and the fade read as a gradient running down the bar. Docking keeps
   the plugin's timing (this rule only matches while not docked). Same list as the plugin's .bsh-stuck rule. */
.bsh-enabled
  .wp-site-blocks:has(
    :is(.wp-block-post-content, main)
      > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
        .banner-no-overlap
      )
  )
  > header.bsh-stuck:not(.bsh-docked) {
  transition:
    transform var(--bsh-transition-duration, 300ms) ease,
    box-shadow var(--bsh-transition-duration, 300ms) ease,
    background-color calc(var(--bsh-transition-duration, 300ms) / 3) ease-out,
    transform-origin var(--bsh-transition-duration, 300ms) ease,
    margin-bottom var(--bsh-transition-duration, 300ms) ease;
}

/* The space the docked header gives up when it shrinks is held by the plugin's .bsh-reserve spacer right under
   it; paint it the docked colour so no page background shows between the bar and the content. On opening-banner
   pages with style "transparent" the banner slides up over it, so it never shows there. */
.wp-site-blocks > header + .bsh-reserve {
  --bsh-reserve-bg: var(
    --wp--custom--header--docked-background,
    var(--swiss-header-solid-bg)
  );
}

/* LIGHT HEADER: header tone "light" (theme.json settings.custom.header, body class swiss-header-light). Wherever
   the header shows its solid bar (every page with style "solid"; pages without an opening banner with style
   "transparent"; and the docked sticky header), it gets the dark logo, menu links in settings.custom.menu lightLinkColor / lightLinkHoverColor (base Contrast), a dark menu button
   and the Fill button (the docked colour follows on its own; see DOCKED). Over an opening banner (style "transparent", not docked) it keeps the white logo and
   links. The desktop dropdowns turn white with Contrast links there too; the phone menu panel and the Above Header
   bar stay dark. Front end only (the body
   class isn't in the editor). */
:is(
    .swiss-header-light
      .wp-site-blocks:not(
        :has(
          :is(.wp-block-post-content, main)
            > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
              .banner-no-overlap
            )
        )
      )
      > header,
    .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
    .swiss-header-light .wp-site-blocks > header.bsh-docked
  )
  .logo-light-primary
  .logo-light {
  opacity: 0;
  visibility: hidden;
}

:is(
    .swiss-header-light
      .wp-site-blocks:not(
        :has(
          :is(.wp-block-post-content, main)
            > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
              .banner-no-overlap
            )
        )
      )
      > header,
    .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
    .swiss-header-light .wp-site-blocks > header.bsh-docked
  )
  .logo-light-primary
  .logo-dark {
  opacity: 1;
  visibility: visible;
}

/* Menu links on the light bar, desktop only: at 1023px and below the links sit in the dark phone menu panel and keep
   the plugin's white phone link colour (fixed 18 Nov 2026: they were painted dark on the dark panel). */
@media (min-width: 1024px) {
  :is(
      .swiss-header-light
        .wp-site-blocks:not(
          :has(
            :is(.wp-block-post-content, main)
              > :is(
                .banner-fullheight,
                .banner-fullheight-short
              ):first-child:not(.banner-no-overlap)
          )
        )
        > header,
      .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
      .swiss-header-light .wp-site-blocks > header.bsh-docked
    )
    :is(
      #mega-menu-wrap-topnav,
      #mega-menu-wrap-topnav-left,
      #mega-menu-wrap-topnav-right
    )
    :is(#mega-menu-topnav, #mega-menu-topnav-left, #mega-menu-topnav-right)
    > li
    > a.mega-menu-link {
    color: var(
      --wp--custom--menu--light-link-color,
      var(--wp--preset--color--contrast)
    ) !important;
  }

  :is(
      .swiss-header-light
        .wp-site-blocks:not(
          :has(
            :is(.wp-block-post-content, main)
              > :is(
                .banner-fullheight,
                .banner-fullheight-short
              ):first-child:not(.banner-no-overlap)
          )
        )
        > header,
      .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
      .swiss-header-light .wp-site-blocks > header.bsh-docked
    )
    :is(
      #mega-menu-wrap-topnav,
      #mega-menu-wrap-topnav-left,
      #mega-menu-wrap-topnav-right
    )
    :is(#mega-menu-topnav, #mega-menu-topnav-left, #mega-menu-topnav-right)
    > li:hover
    > a.mega-menu-link {
    color: var(
      --wp--custom--menu--light-link-hover-color,
      var(--wp--preset--color--contrast)
    ) !important;
  }
}

/* The menu's search icon (topnav.css DESKTOP SEARCH) follows the links on the light bar. */
:is(
  .swiss-header-light
    .wp-site-blocks:not(
      :has(
        :is(.wp-block-post-content, main)
          > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
            .banner-no-overlap
          )
      )
    )
    > header,
  .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
  .swiss-header-light .wp-site-blocks > header.bsh-docked
) {
  --swiss-menu-search-icon: var(
    --wp--custom--menu--light-link-color,
    var(--wp--preset--color--contrast)
  );
  --swiss-menu-search-icon-hover: var(
    --wp--custom--menu--light-link-hover-color,
    var(--wp--preset--color--contrast)
  );
}

/* The pill hover: Contrast at 5% instead of white at 10% (halved 9 Nov 2026; 10% looked too dark on white). */
:is(
    .swiss-header-light
      .wp-site-blocks:not(
        :has(
          :is(.wp-block-post-content, main)
            > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
              .banner-no-overlap
            )
        )
      )
      > header,
    .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
    .swiss-header-light .wp-site-blocks > header.bsh-docked
  )
  :is(
    #mega-menu-wrap-topnav,
    #mega-menu-wrap-topnav-left,
    #mega-menu-wrap-topnav-right
  )
  :is(#mega-menu-topnav, #mega-menu-topnav-left, #mega-menu-topnav-right)
  > li
  > a.mega-menu-link::before {
  background-color: var(--wp--preset--color--contrast) !important;
  opacity: 0.05 !important;
}

/* Desktop dropdowns: White panel with Contrast links (the bar's own link colour), Extra Light Gray behind the
   hovered or focused link, and a 1px Light Gray edge on the sides and bottom so the panel stands off a white page
   (the top stays the transparent 11px gap from topnav.css). Over an opening banner the dropdowns stay dark, like
   the phone menu panel. */
@media (min-width: 1024px) {
  :is(
      .swiss-header-light
        .wp-site-blocks:not(
          :has(
            :is(.wp-block-post-content, main)
              > :is(
                .banner-fullheight,
                .banner-fullheight-short
              ):first-child:not(.banner-no-overlap)
          )
        )
        > header,
      .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
      .swiss-header-light .wp-site-blocks > header.bsh-docked
    )
    :is(
      #mega-menu-wrap-topnav,
      #mega-menu-wrap-topnav-left,
      #mega-menu-wrap-topnav-right
    )
    :is(#mega-menu-topnav, #mega-menu-topnav-left, #mega-menu-topnav-right)
    li.mega-menu-item
    > ul.mega-sub-menu {
    /* The edge is the panel's Light Gray background showing through 1px of padding around the white links, not a
       border, because side borders would run up through the transparent gap into the header bar. */
    background: var(--wp--preset--color--light-gray) !important;
    background-clip: padding-box !important;
    padding: 0 1px 1px !important;
  }

  :is(
      .swiss-header-light
        .wp-site-blocks:not(
          :has(
            :is(.wp-block-post-content, main)
              > :is(
                .banner-fullheight,
                .banner-fullheight-short
              ):first-child:not(.banner-no-overlap)
          )
        )
        > header,
      .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
      .swiss-header-light .wp-site-blocks > header.bsh-docked
    )
    :is(
      #mega-menu-wrap-topnav,
      #mega-menu-wrap-topnav-left,
      #mega-menu-wrap-topnav-right
    )
    :is(#mega-menu-topnav, #mega-menu-topnav-left, #mega-menu-topnav-right)
    li.mega-menu-item
    > ul.mega-sub-menu
    a.mega-menu-link {
    background: var(--wp--preset--color--white) !important;
    color: var(--wp--preset--color--contrast) !important;
  }

  :is(
      .swiss-header-light
        .wp-site-blocks:not(
          :has(
            :is(.wp-block-post-content, main)
              > :is(
                .banner-fullheight,
                .banner-fullheight-short
              ):first-child:not(.banner-no-overlap)
          )
        )
        > header,
      .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
      .swiss-header-light .wp-site-blocks > header.bsh-docked
    )
    :is(
      #mega-menu-wrap-topnav,
      #mega-menu-wrap-topnav-left,
      #mega-menu-wrap-topnav-right
    )
    :is(#mega-menu-topnav, #mega-menu-topnav-left, #mega-menu-topnav-right)
    li.mega-menu-item
    > ul.mega-sub-menu
    a.mega-menu-link:is(:hover, :focus-visible) {
    background: var(--wp--preset--color--extra-light-gray) !important;
    color: var(--wp--preset--color--contrast) !important;
  }
}

/* Phone menu button: no dark square, Contrast bars. */
:is(
    .swiss-header-light
      .wp-site-blocks:not(
        :has(
          :is(.wp-block-post-content, main)
            > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
              .banner-no-overlap
            )
        )
      )
      > header,
    .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
    .swiss-header-light .wp-site-blocks > header.bsh-docked
  )
  :is(
    #mega-menu-wrap-topnav,
    #mega-menu-wrap-topnav-left,
    #mega-menu-wrap-topnav-right
  )
  .mega-menu-toggle {
  background: transparent !important;
}

:is(
    .swiss-header-light
      .wp-site-blocks:not(
        :has(
          :is(.wp-block-post-content, main)
            > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
              .banner-no-overlap
            )
        )
      )
      > header,
    .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
    .swiss-header-light .wp-site-blocks > header.bsh-docked
  )
  :is(
    #mega-menu-wrap-topnav,
    #mega-menu-wrap-topnav-left,
    #mega-menu-wrap-topnav-right
  )
  .mega-menu-toggle
  .mega-toggle-animated-inner,
:is(
    .swiss-header-light
      .wp-site-blocks:not(
        :has(
          :is(.wp-block-post-content, main)
            > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
              .banner-no-overlap
            )
        )
      )
      > header,
    .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
    .swiss-header-light .wp-site-blocks > header.bsh-docked
  )
  :is(
    #mega-menu-wrap-topnav,
    #mega-menu-wrap-topnav-left,
    #mega-menu-wrap-topnav-right
  )
  .mega-menu-toggle
  .mega-toggle-animated-inner::before,
:is(
    .swiss-header-light
      .wp-site-blocks:not(
        :has(
          :is(.wp-block-post-content, main)
            > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
              .banner-no-overlap
            )
        )
      )
      > header,
    .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
    .swiss-header-light .wp-site-blocks > header.bsh-docked
  )
  :is(
    #mega-menu-wrap-topnav,
    #mega-menu-wrap-topnav-left,
    #mega-menu-wrap-topnav-right
  )
  .mega-menu-toggle
  .mega-toggle-animated-inner::after {
  background-color: var(--wp--preset--color--contrast) !important;
}

/* Header button set to Fill: the preset's own Fill colours (Deep Tech turns the header's Fill white for its dark
   bar in button-styles/white-btn.css). */
:is(
    .swiss-header-light
      .wp-site-blocks:not(
        :has(
          :is(.wp-block-post-content, main)
            > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
              .banner-no-overlap
            )
        )
      )
      > header,
    .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
    .swiss-header-light .wp-site-blocks > header.bsh-docked
  )
  .is-style-fill
  .wp-block-button__link {
  background-color: var(--swiss-button-bg, var(--wp--preset--color--primary));
  color: var(--swiss-button-text, var(--wp--preset--color--white));
}

:is(
    .swiss-header-light
      .wp-site-blocks:not(
        :has(
          :is(.wp-block-post-content, main)
            > :is(.banner-fullheight, .banner-fullheight-short):first-child:not(
              .banner-no-overlap
            )
        )
      )
      > header,
    .swiss-header-light.swiss-header-solid .wp-site-blocks > header,
    .swiss-header-light .wp-site-blocks > header.bsh-docked
  )
  .is-style-fill
  .wp-block-button__link:is(:hover, :focus, :active) {
  background-color: var(
    --swiss-button-bg-hover,
    var(--swiss-button-bg, var(--wp--preset--color--primary))
  );
  color: var(
    --swiss-button-text-hover,
    var(--swiss-button-text, var(--wp--preset--color--white))
  );
}

/* HEADER HEIGHT */

/* .header-height {
  height: 100px;
} */

header.wp-block-template-part .header-height {
  height: var(--swiss-header-height);
  min-height: var(--swiss-header-height);
  max-height: var(--swiss-header-height);
  box-sizing: border-box;
}

/* Optional: Clean up alignment for the inner elements */
/* header.wp-block-template-part > .wp-block-group {
    height: 100%;
    align-items: center;
} */

/*  Navigation Block Breakpoint (mobile state; see 782px below). Credit: https://wpdocs.io/ */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: block !important;
}

body
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
    .is-menu-open
  ) {
  display: none !important;
}

/* LOGO and NAV / FOR ABOVE TOPNAV */
.mega-menu-wrap {
  margin-left: auto !important; /* Pushes the menu to the far right side */
  z-index: 9;
}

/* Phone menu (1023px and below): the main menu sits above the logo, so its slide-out panel covers the logo. Both had
   z-index 9 (the logo block's .logo-wrapper too), so whichever came later in the header won, and in the Centered
   Logo layout the logo comes after the menu (18 Nov 2026). Every header layout. */
@media (max-width: 1023px) {
  .wp-site-blocks
    > header
    :is(#mega-menu-wrap-topnav, #mega-menu-wrap-topnav-left) {
    z-index: 10;
  }
}

.header-centered-menu-and-button .mega-menu-wrap {
  margin-left: 0 !important; /* Pushes the menu to the far right side */
}

/* In the block editor the Mega Menu location block is wrapped in
   .wp-block-maxmegamenu-location, which becomes the header row's flex child
   (the front end uses the bare .mega-menu-wrap).  */

.above-header .wp-block-maxmegamenu-location {
  margin-left: auto !important;
  z-index: 999;
}

/* Sticky header plugin on: the bars above the menu scroll away with the page, and only the main row stays at the
   top. The whole header is still the sticky element, but its sticky top is raised by the bars' height, so it
   stops once they have scrolled off screen. Heights: Above Header 32px (its menu theme's link height in
   inc/megamenu.php), Alert Bar 30px (one line; see ALERT BAR). With the plugin off (or below its mobile
   breakpoint) the header has no .bsh-stuck and nothing here applies. */
.bsh-enabled .bsh-header.bsh-stuck:has(> .above-header) {
  --swiss-header-scroll-away: 32px;
}
.bsh-enabled .bsh-header.bsh-stuck:has(> .alert-bar) {
  --swiss-header-scroll-away: 30px;
}
.bsh-enabled .bsh-header.bsh-stuck:has(> .alert-bar):has(> .above-header) {
  --swiss-header-scroll-away: 62px;
}
.bsh-enabled
  .bsh-header.bsh-stuck:is(:has(> .above-header), :has(> .alert-bar)) {
  top: calc(var(--bsh-top, 0px) - var(--swiss-header-scroll-away));
}

/* No Above Header bar on phones (768px; the main menu turns into its menu button earlier, at 1023px). */
@media (max-width: 768px) {
  .above-header {
    display: none;
  }
}

.header-centered-menu-and-button .wp-block-maxmegamenu-location {
  flex: 0 1 auto;
  min-width: 0;
}

.editor-styles-wrapper .header-centered-menu-and-button .header-height {
  flex-wrap: nowrap;
}

/* HEADER CENTERED LOGO (pattern swiss/header-centered-logo, layout "centered-logo", 17 Nov 2026): the logo in the
   middle of the bar and the Top Nav menu split either side of it. The menu is shown twice (locations topnav-left
   and topnav-right); the left one hides the item with the class menu-split and every item after it, the right one
   every item before it. Desktop (1024px and up): three columns, the outer two equal, so the logo is always at the
   exact centre; each half spreads its items across its column (space-between). Tablets and phones (1023px and
   below, the main menu's own breakpoint): the logo on the left and the left location's menu button on the right,
   showing the whole menu; the right location is hidden. */
.header-centered-logo .header-height {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--wp--preset--spacing--6);
}

.header-centered-logo .header-height > * {
  margin: 0 !important;
}

.header-centered-logo .header-height .mega-menu-wrap {
  margin-left: 0 !important;
}

@media (min-width: 1024px) {
  .header-centered-logo :is(#mega-menu-topnav-left, #mega-menu-topnav-right) {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  .header-centered-logo
    #mega-menu-topnav-left
    > li:is(.menu-split, .menu-split ~ li),
  .header-centered-logo
    #mega-menu-topnav-right
    > li:not(.menu-split, .menu-split ~ li) {
    display: none !important;
  }

  /* Labels stay on one line (!important over the plugin's own white-space), and items don't shrink. */
  .header-centered-logo
    :is(#mega-menu-topnav-left, #mega-menu-topnav-right)
    > li {
    flex-shrink: 0;
  }

  .header-centered-logo
    :is(#mega-menu-topnav-left, #mega-menu-topnav-right)
    > li
    > a.mega-menu-link {
    white-space: nowrap !important;
  }
}

/* Smaller desktops (1024-1279px): a narrower gap either side of the logo and tighter link padding (8px sides,
   20px elsewhere, topnav.css), so the halves keep their room; needed once a style sets the labels in capitals
   (Stewardship). */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-centered-logo .header-height {
    column-gap: var(--wp--preset--spacing--3);
  }

  .header-centered-logo
    :is(#mega-menu-wrap-topnav-left, #mega-menu-wrap-topnav-right)
    :is(#mega-menu-topnav-left, #mega-menu-topnav-right)
    > li
    > a.mega-menu-link {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 1023px) {
  .header-centered-logo .header-height {
    display: flex;
    justify-content: space-between;
  }

  .header-centered-logo .header-menu-left {
    order: 2;
  }

  .header-centered-logo .header-menu-right {
    display: none;
  }

  /* The logo is centre-aligned in its box for the desktop bar; here it sits flush left like every header. */
  .header-centered-logo .logo-wrapper.aligncenter {
    margin-inline-start: 0;
  }

  .header-centered-logo .logo-wrapper.aligncenter .logo-link {
    justify-items: start;
  }
}

/* ALERT BAR (Site Options > Alert Options; pattern swiss/alert-bar, inc/alerts.php): 30px high for one line of text
   (the padding fills the rest; a message that wraps on phones grows), links in the bar's text colour, underlined
   until hovered. */
.alert-bar p {
  margin: 0;
  line-height: 1.3;
  padding-block: calc((30px - 1.3em) / 2);
}

.alert-bar a {
  color: inherit;
  text-decoration: underline;
}

.alert-bar a:hover,
.alert-bar a:focus-visible {
  text-decoration: none;
}

/* HEADER NAV
   Menu styling (colours, sizes, hover effects, dropdowns, phone menu) is in inc/megamenu.php and the preset's
   megamenu.php; this file only places the menus in the header and footer rows. */

/* Get sticky header in the correct spot when user admin par is across top. */

/* header.wp-block-template-part,
.wp-block-template-part:has(>.is-position-sticky) {
	position: sticky !important;
	top: var(--wp-admin--admin-bar--height, 0px) !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

header .is-position-sticky {
	top: 0 !important;
	margin-top: 0 !important;
} */

/* ==============================================================================
   BANNERS
   ============================================================================== */

.banner-fullheight,
.banner-fullheight-short {
  min-height: 96vh;
  min-height: 96svh;
  /* Slides up under the header; 0 when the header style is "solid" (inc/header-style.php). */
  margin-top: calc(
    -1 * var(--swiss-header-banner-overlap, var(--swiss-header-height))
  ) !important;
}

.banner-fullheight-short {
  min-height: 66vh;
  min-height: 66svh;
}

/* Line banner text up with the page content: the full-width group inside the cover
   already adds the global side padding, so drop the cover's own 1em side padding. */
.wp-block-cover.banner-fullheight,
.wp-block-cover.banner-fullheight-short {
  padding-left: 0;
  padding-right: 0;
}

/* Page – Image Banner template, editor only: the banner is part of the template (locked in the page editor) and
   takes the page's featured image, so while there is none, say where to set it. Visitors never see this. */
.editor-styles-wrapper
  main
  > .wp-block-cover.banner-fullheight-short:not(
    :has(.wp-block-cover__image-background)
  )::after {
  content: "Set a featured image in the Page sidebar to fill this banner";
  position: absolute;
  left: 50%;
  bottom: var(--wp--preset--spacing--5);
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.5em 1em;
  border: 1px dashed currentColor;
  border-radius: 4px;
  color: var(--wp--preset--color--base);
  width: max-content;
  max-width: calc(100% - 2rem);
  box-sizing: border-box;
  text-align: center;
  font-size: var(--wp--preset--font-size--xsmall);
  pointer-events: none;
}

/* Add banner-no-overlap to a banner used below a solid header or mid-page. */
.banner-fullheight.banner-no-overlap,
.banner-fullheight-short.banner-no-overlap {
  margin-top: 0 !important;
}

.banner-fullheight .wp-block-heading {
  padding-right: var(--wp--preset--spacing--5);
}

/* Short-banner main titles use the full available text width at every size. */
.banner-fullheight-short h1.wp-block-heading {
  padding-right: 0 !important;
}

/* Text banner (pattern swiss/banner-text and the Page – Text Banner template): no image, so the header above
   stays solid. Alignment comes from theme.json settings.custom.bannerText.textAlign (base centre; a preset can
   set left), so the blocks carry no alignment of their own. */
.banner-text {
  text-align: var(--wp--custom--banner-text--text-align, center);
}

/* A text banner that ends in a full-width photo (Modular's Banner Short, Deep Tech Text Banner): the photo is
   500px tall in every style, so a page built with one style's banner keeps that height while another style is
   active. Set here, front end and editor, not with the Image block's Height setting: the editor drops Height
   from full-width images when it loads them, so the next save would lose it. Change it with the variable. */
.banner-text {
  --banner-text-image-height: 500px;
}
.banner-text > .wp-block-image.alignfull img {
  height: var(--banner-text-image-height) !important;
  object-fit: cover;
}

/* 404 page (swiss/template-404): the note, search box and button line up with the band's alignment (a grid, so
   justify-items can take bannerText's left/center/right), the note and search no wider than 36rem. */
.page-not-found-next {
  display: grid;
  justify-items: var(--wp--custom--banner-text--text-align, center);
  gap: var(--wp--preset--spacing--4);
  margin-top: var(--wp--preset--spacing--4);
}

.page-not-found-next > * {
  margin: 0 !important;
  max-width: 36rem;
}

.page-not-found-next > .wp-block-search {
  width: 100%;
}

/* Search results page (swiss/template-page-search): the band works like the 404's (count and search box line up
   with bannerText's alignment, no wider than 36rem); then one row per result, the line colour above the first and
   under every row. The label is small uppercase Dark Gray (5.7:1); the excerpt no wider than 48rem. */
.search-banner-next {
  display: grid;
  justify-items: var(--wp--custom--banner-text--text-align, center);
  gap: var(--wp--preset--spacing--4);
  margin-top: var(--wp--preset--spacing--3);
}

.search-banner-next > * {
  margin: 0 !important;
  max-width: 36rem;
}

.search-banner-next > .wp-block-search {
  width: 100%;
}

.search-count {
  color: var(--wp--preset--color--dark-gray);
}

.search-term {
  overflow-wrap: anywhere;
}

.search-results-list {
  border-top: 1px solid
    var(--wp--custom--line--color, var(--wp--preset--color--light-gray));
}

.search-results-list > li {
  margin: 0 !important;
  padding-block: var(--wp--preset--spacing--5);
  border-bottom: 1px solid
    var(--wp--custom--line--color, var(--wp--preset--color--light-gray));
}

.search-result > * {
  margin-block: 0;
}

.search-result-type {
  margin: 0;
  color: var(--wp--preset--color--dark-gray);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.search-result-title {
  margin-top: var(--wp--preset--spacing--1) !important;
  padding-bottom: 0 !important;
}

.search-result-title a {
  text-decoration: none;
}

.search-result-title a:is(:hover, :focus-visible) {
  color: var(--wp--preset--color--primary);
}

.search-result-excerpt {
  max-width: 48rem;
  margin-top: var(--wp--preset--spacing--2) !important;
}

.search-result-excerpt p {
  margin: 0;
}

.search-result-excerpt .wp-block-post-excerpt__more-text {
  display: none;
}

.search-no-results > * {
  margin-block: 0;
}

.search-no-results > .wp-block-list {
  margin-top: var(--wp--preset--spacing--3);
}

/* ==============================================================================
   FOOTER
   ============================================================================== */

.site-footer {
  margin-top: var(--wp--preset--spacing--9);
}

/* Light footer (theme.json settings.custom.footer.tone "light"; the footer patterns add footer-<tone> to the band):
   a 1px full-width line along its top, so it has an edge against Base page content. Its colour is the style's
   theme.json settings.custom.footer.lightBorder (Modular and Deep Tech: Light Gray, the same as their Separators,
   set in styles.blocks.core/separator); without one it is grey (#808080), the colour core Separators get from
   currentColor. --swiss-footer-light-border still overrides both. */
.footer-light {
  border-top: 1px solid
    var(
      --swiss-footer-light-border,
      var(--wp--custom--footer--light-border, gray)
    );
}

:root :where(.site-footer p) {
  line-height: 1.7 !important;
}

.footer-full p.footer-text-normal {
  font-weight: 400;
}

/* Footer Full introduction (16 Nov 2026, the user's request): 3px (0.1875rem) larger than the contact text and
   footer menu (Small), at every width; set here because WordPress makes a custom block font size fluid. */
.footer-full p.footer-intro {
  font-size: calc(var(--wp--preset--font-size--small) + 0.1875rem) !important;
}

.footer-column-title {
  text-transform: uppercase;
}

/* Space under a footer column title (16 Nov 2026, the user's request): 10px less than the block gap (spacing 3),
   so 19.5px from the title text to the first line at 1440px. The Footer Nav under Quick Links matches it in
   FOOTER NAV below. */
.footer-full .footer-column-title + * {
  --swiss-footer-title-gap: calc(var(--wp--preset--spacing--3) - 10px);
}

.footer-full .footer-column-title + p {
  margin-block-start: var(--swiss-footer-title-gap);
}

/* Links match the copyright text (Medium Gray), underlined only on hover/focus. The user chose this over
   WCAG 1.4.1 (links marked by colour or a resting underline) because these links are minor. */
.copyright p a {
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.copyright p a:is(:hover, :focus-visible) {
  text-decoration: underline;
}

/* FOOTER DISCLOSURES (Site Options > Disclosures, inc/disclosures.php, 19 Nov 2026): at the top of every footer's
   copyright band, in its colour. Document links in a wrapping row, then the legal text, centred like the
   copyright line below (19 Nov 2026, the user's request; first left-aligned), and left-aligned at 768px and
   below, like the rest of the footer and the copyright line once it wraps (the user's request, same day). These
   links keep a resting underline (unlike the copyright links): they are the compliance documents. */
.footer-disclosures {
  padding-block: var(--wp--preset--spacing--4) var(--wp--preset--spacing--2);
  font-size: var(--wp--preset--font-size--xxsmall);
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
}

.footer-disclosures a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-disclosures__links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wp--preset--spacing--1) var(--wp--preset--spacing--4);
  margin: 0 0 var(--wp--preset--spacing--3);
  padding: 0;
  list-style: none;
}

@media (max-width: 768px) {
  .footer-disclosures {
    text-align: left;
  }

  .footer-disclosures__links ul {
    justify-content: flex-start;
  }
}

.footer-disclosures__text > :first-child {
  margin-block-start: 0;
}

.footer-disclosures__text > :last-child {
  margin-block-end: 0;
}

.footer-disclosures__text p {
  margin-block: 0 var(--wp--preset--spacing--2);
}

.footer-disclosures__details summary {
  cursor: pointer;
  font-weight: 400;
}

.footer-disclosures__details[open] summary {
  margin-block-end: var(--wp--preset--spacing--2);
}

.footer-disclosures .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Footer Full No Logo (swiss/footer-full-no-logo, 18 Nov 2026): side by side (992px and up) the contact details sit
   behind a thin line in the footer's muted colour, the same colour as their text; stacked, no line. The menu's
   three columns and type are in assets/css/megamenu/footer.css. */
/* Letter spacing (18 Nov 2026, the user's request: the reference site's footer, 0.576px on all its text): the site
   name and contact lines 0.04em (0.576px at Small, the same as the menu in megamenu/footer.css), the copyright line
   0.05em (0.56px at XXSmall). Set per element, since the body's spacing is inherited in px from a larger size. */
.footer-full-no-logo :is(p, .wp-block-site-title) {
  letter-spacing: 0.04em;
}

.footer-no-logo-copyright :is(p, .footer-disclosures) {
  letter-spacing: 0.05em;
}

/* Weight (18 Nov 2026, the user's request: the reference footer's 400): the contact lines and the copyright line
   are 400 rather than the body weight (300 in Stewardship); the menu is already 400 (inc/megamenu.php) and the
   site name keeps its 600. The copyright line's own 300 (swiss/footer-copyright, shared by every footer) is an
   inline style, so this one needs !important. */
.footer-full-no-logo .footer-no-logo-contact p {
  font-weight: 400;
}

.footer-no-logo-copyright :is(p, .footer-disclosures) {
  font-weight: 400 !important;
}

/* The contact links (the address's Location Map link and the email, from Site Options) look like the footer menu
   (18 Nov 2026, the user's request): no underline, the muted colour, the footer link colour on hover and keyboard
   focus. */
.footer-full-no-logo .footer-no-logo-contact a {
  color: var(--swiss-footer-muted);
  text-decoration: none;
}

.footer-full-no-logo .footer-no-logo-contact a:is(:hover, :focus-visible) {
  color: var(--swiss-footer-link);
  text-decoration: none;
}

@media (min-width: 992px) {
  .footer-full-no-logo .footer-no-logo-contact {
    border-left: 1px solid var(--swiss-footer-muted);
    padding-left: var(--wp--preset--spacing--5);
  }
}

/* FOOTER NAV */

#mega-menu-wrap-footer.mega-menu-wrap {
  margin-left: 0 !important; /* Pushes the menu to the far right side */
  margin-block-start: calc(var(--wp--preset--spacing--1) - 5px);
}

/* Under a footer column title: the same gap as the Contact address (see .footer-column-title above). The menu
   rows have the contact text's line height (megamenu/footer.css), so the margin is the same. */
.footer-full .footer-column-title + #mega-menu-wrap-footer.mega-menu-wrap {
  margin-block-start: var(--swiss-footer-title-gap);
}

/* ==============================================================================
   BG IMAGE ZOOM (class bg-image-zoom on a Cover block; pattern swiss/bg-image-zoom)
   The Cover's image scales from 1 to 1.2 as the Cover scrolls up the screen: from when its top reaches 20% from
   the top of the window until its bottom does, following the scroll both ways. It's a CSS scroll-driven
   animation (no script), modelled on the GSAP ScrollTrigger zoom on modulex.in (scale 1.2, start "top 20%",
   end "bottom 20%"). Browsers without scroll-driven animations (Firefox for now) and visitors who prefer reduced
   motion see the still image. Front end only: in the editor the image stays still.
   ============================================================================== */
.wp-block-cover.bg-image-zoom {
  overflow: hidden;
}

@keyframes swiss-bg-image-zoom {
  from {
    scale: 1;
  }
  to {
    scale: 1.2;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body:not(.editor-styles-wrapper) .wp-block-cover.bg-image-zoom {
      view-timeline: --swiss-bg-image-zoom block;
    }

    body:not(.editor-styles-wrapper)
      .wp-block-cover.bg-image-zoom
      > .wp-block-cover__image-background {
      animation: swiss-bg-image-zoom linear both;
      animation-timeline: --swiss-bg-image-zoom;
      /* cover 80vh: the Cover's top is 20% from the top of the window; cover 100% - 20vh: its bottom is. */
      animation-range: cover 80vh cover calc(100% - 20vh);
    }
  }
}

/* Phones: a shorter image (modulex.in uses 384px). */
@media (max-width: 781px) {
  .wp-block-cover.bg-image-zoom {
    min-height: 384px !important;
  }
}

/* ==============================================================================
   GRAVITY FORMS
   ============================================================================== */

/* Map Orbital buttons to the Swiss theme. Button style variables are
   generated from merged WordPress Global Styles in functions.php. */
.gform-theme--framework {
  --gf-ctrl-btn-bg-color-primary: var(
    --swiss-button-bg,
    var(--wp--preset--color--primary)
  ) !important;
  --gf-ctrl-btn-color-primary: var(
    --swiss-button-text,
    var(--wp--preset--color--white)
  ) !important;
  --gf-ctrl-btn-bg-color-hover-primary: var(
    --swiss-button-bg-hover,
    var(--wp--preset--color--dark-primary)
  ) !important;
  --gf-ctrl-btn-color-hover-primary: var(
    --swiss-button-text-hover,
    var(--swiss-button-text, var(--wp--preset--color--white))
  ) !important;
  --gf-ctrl-btn-radius: var(--swiss-button-radius) !important;
  --gf-ctrl-btn-letter-spacing: var(--swiss-button-letter-spacing) !important;
  --gf-ctrl-btn-text-transform: var(--swiss-button-text-transform) !important;
  --gf-ctrl-btn-padding-y: var(
    --wp--style--spacing--padding--top,
    0.6rem
  ) !important;
  --gf-ctrl-btn-padding-x: var(
    --wp--style--spacing--padding--right,
    1.2rem
  ) !important;
}

/* Gravity Forms may render input or button controls. Apply these properties
   to the actual submit/navigation control, not its footer wrapper. */
.gform-theme--framework
  :is(.gform_footer, .gform_page_footer)
  :is(input, button):is(
    .gform_button,
    .gform_next_button,
    .gform_previous_button
  ) {
  border-radius: var(--swiss-button-radius) !important;
  letter-spacing: var(--swiss-button-letter-spacing) !important;
  text-transform: var(--swiss-button-text-transform) !important;
}

/* ==============================================================================
   FORM FIELDS (Gravity Forms, Orbital theme; 11 Nov 2026, the user's design after the modulex.in contact form, for
   every style (moved from Modular's style.css the same day so Deep Tech has it too): square
   44px fields with a 1px Gray outline (#dedede, close to the reference's #e5e5e5), 16px side padding, 14px text
   and 14px regular labels 8px above them, 32px between columns and rows, a 128px message box. Set through Orbital's
   own CSS variables, with !important because Gravity Forms prints the form's style settings on the wrapper's id.
   No shadows; focus is a Contrast edge. Checkboxes look like the fields (Gray edge, Contrast when ticked). The form
   is 85% of its column wide from 992px, aligned left, full width below.
   A field with the class gf_list_inline (Gravity Forms' own) lays its choices out in a row.
   ============================================================================== */
.gform-theme--framework {
  --gf-ctrl-size: 44px !important;
  --gf-ctrl-radius: 0 !important;
  --gf-ctrl-radius-max-sm: 0 !important;
  --gf-ctrl-radius-max-md: 0 !important;
  --gf-ctrl-radius-max-lg: 0 !important;
  --gf-ctrl-border-color: var(--wp--preset--color--gray) !important;
  --gf-ctrl-border-color-hover: var(--wp--preset--color--dark-gray) !important;
  --gf-ctrl-border-color-focus: var(--wp--preset--color--contrast) !important;
  --gf-ctrl-outline-color-focus: transparent !important;
  --gf-ctrl-padding-x: 16px !important;
  --gf-ctrl-font-size: 14px !important;
  --gf-ctrl-placeholder-font-size: 14px !important;
  --gf-ctrl-color: var(--wp--preset--color--contrast) !important;
  --gf-ctrl-placeholder-color: var(--wp--preset--color--dark-gray) !important;
  --gf-ctrl-accent-color: var(--wp--preset--color--primary) !important;
  --gf-ctrl-label-font-size-primary: 14px !important;
  --gf-ctrl-label-font-weight-primary: 400 !important;
  --gf-ctrl-label-color-primary: var(--wp--preset--color--contrast) !important;
  --gf-ctrl-label-font-size-tertiary: 14px !important;
  --gf-ctrl-label-color-tertiary: var(--wp--preset--color--contrast) !important;
  --gf-label-space-primary: 8px !important;
  --gf-form-gap-x: 32px !important;
  --gf-form-gap-y: 32px !important;
}

.gform-theme--framework .gfield--type-textarea textarea {
  block-size: 128px !important;
  min-block-size: 128px !important;
  padding-block: 12px !important;
}

/* No shadow on any field: Orbital's soft drop shadow is off, and focus is the Contrast edge alone. */
.gform-theme--framework
  :is(input:not([type="submit"], [type="button"]), select, textarea),
.gform-theme--framework
  :is(input:not([type="submit"], [type="button"]), select, textarea):is(
    :hover,
    :focus
  ) {
  box-shadow: none !important;
}

/* Checkboxes and radios look like the text fields: white, a 1px Gray square edge, Dark Gray on hover and a
   Contrast edge on focus; ticked, the edge and the tick are Contrast. */
.gform-theme--framework .gfield-choice-input {
  border: 1px solid var(--wp--preset--color--gray) !important;
  border-radius: 0 !important;
  background-color: var(--wp--preset--color--white) !important;
}

.gform-theme--framework .gfield-choice-input[type="radio"] {
  border-radius: 50% !important;
}

.gform-theme--framework .gfield-choice-input:hover {
  border-color: var(--wp--preset--color--dark-gray) !important;
}

.gform-theme--framework
  .gfield-choice-input:is(:focus, :focus-visible, :checked) {
  border-color: var(--wp--preset--color--contrast) !important;
  outline: none !important;
}

.gform-theme--framework .gfield-choice-input:checked::before {
  color: var(--wp--preset--color--contrast) !important;
}

/* Form width: 85% of its column on desktop (992px and up, where columns sit side by side), aligned left with the
   spare room on the right (a constrained group would otherwise centre it); the full width on tablets and phones.
   --swiss-form-width changes it. */
@media (min-width: 992px) {
  .gform_wrapper.gform-theme--framework {
    max-width: var(--swiss-form-width, 85%);
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}

/* Choices in a row: Gravity Forms' gf_list_inline, with room between them; they wrap when out of room. */
.gform-theme--framework .gf_list_inline :is(.gfield_checkbox, .gfield_radio) {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px 32px !important;
}

/* Contact Details (swiss/contact-details) laid out as a row (a Row/flex group, as on the Contact page since the
   user's 11 Nov 2026 edit): the items wrap onto a second line when the row runs out of room, whatever the block's
   own wrap setting, and stack at 991px and below, so the card never runs off the screen. Long email
   addresses break rather than push the card wider. */
.contact-details.is-layout-flex {
  flex-wrap: wrap;
  row-gap: var(--wp--preset--spacing--4);
}

.contact-details p {
  overflow-wrap: anywhere;
}

/* Dividers (12 Nov 2026, the user's design on the Contact page): a column with the class contact-details-divider
   (Phone and Email, Business Hours) gets a 1px line-colour line on its left, 30px from its text, and 30px more room
   before the line, so each divider adds 60px to the row's own block gap (spacing 6). Side by side only. */
.contact-details.is-layout-flex > .contact-details-divider {
  margin-left: var(--contact-details-divider-space, 30px);
  padding-left: var(--contact-details-divider-space, 30px);
  border-left: 1px solid var(--wp--custom--line--color, #e9e9e9);
}

/* Stacked at 991px and below (the theme's column stacking width; with the dividers the row needs about 880px),
   with no dividers. */
@media (max-width: 991px) {
  .contact-details.is-layout-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-details.is-layout-flex > .contact-details-divider {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

/* ==============================================================================
   TABLET: 768px - 991px only
   ============================================================================== */

@media (min-width: 768px) and (max-width: 991px) {
  /* Stack rows and columns in this range. One line (nowrap): core Columns still wrap up to 781px, and a wrapping
     column stack makes each line as wide as its widest item, so a slider inside (all its slides side by side)
     widened the page (Slider Static Content Column at 769-781px, fixed 10 Nov 2026). */
  div.wp-block-group.is-layout-flex.wp-block-row,
  div.wp-block-columns.is-layout-flex {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }

  /* Optional: Add spacing between the stacked items */
  div.wp-block-group.is-layout-flex.wp-block-row > *,
  div.wp-block-columns.is-layout-flex > * {
    margin-block-start: var(--wp--style--block-gap, 1.5rem);
    margin-inline-start: 0 !important;
  }

  div.wp-block-columns.is-layout-flex > * {
    margin-block-start: 2rem;
  }
}

/* ==============================================================================
   TABLET AND UP: 782px+ (WordPress navigation breakpoint)
   ============================================================================== */

@media (min-width: 782px) {
  body .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }

  body
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
      .is-menu-open
    ) {
    display: block !important;
  }

  .wp-block-group.custom-edge-gradient {
    background: linear-gradient(
      to right,
      #163e64 0%,
      #163e64 90%,
      #ffffff 90.01%,
      #ffffff 100%
    );
  }
}

/* ==============================================================================
   MAX-WIDTH OVERRIDES
   These replace desktop values that are set outside this file, so they stay as
   "up to" queries. Widest first.
   ============================================================================== */

/* Up to 768px (48rem): phones. */
@media (max-width: 48rem) {
  /* Important also overrides padding saved in existing page instances. */
  .banner-fullheight .wp-block-heading,
  .banner-fullheight-short .wp-block-heading,
  .banner-fullheight p.has-medium-large-font-size,
  .banner-fullheight-short p.has-medium-large-font-size {
    padding-right: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Footer: space below the social icons and the footer menu once the columns stack. */
  .site-footer .wp-block-social-links,
  .site-footer #mega-menu-wrap-footer {
    margin-bottom: var(--wp--preset--spacing--6);
  }

  /* Logo Strip (pattern swiss/logo-strip): stack the logos in one centred column. */
  .wp-block-group.logo-strip-logos {
    flex-direction: column;
    align-items: center;
  }
}

/* ==============================================================================
   BANNER SLIDER (class banner-slider on a Carousel Slider block; patterns swiss/banner-slider and
   swiss/banner-slider)
   The Carousel Slider block also has banner-fullheight, so it slides up under the header and turns the header
   transparent like the banners. Each slide is a Cover with the class banner-slide at the banners' full height.
   ============================================================================== */

.banner-slider .cb-slide > .wp-block-cover.banner-slide {
  min-height: 96vh;
  min-height: 96svh;
  height: 100%;
  margin: 0;
  /* Same as the banners: the full-width group inside the cover adds the global side padding. */
  padding-left: 0;
  padding-right: 0;
}

/* ==============================================================================
   SLIDER LINES (class has-slider-lines on a Carousel Slider block; switch the block's own Pagination off)
   assets/js/slider-controls.js adds one 1px line per slide near the bottom of the slider. Each line is a button
   with --slider-lines-touch (20px) of padding all round, so it can be tapped without hitting the line exactly;
   the lines themselves are 25px above the slider's bottom edge (--slider-lines-bottom).
   By default the row starts at the content edge (pulled out by the touch padding, so the first line lines up with
   the text) at wide width (--slider-lines-max-width; Deep Tech, whose banner text is content width, sets content
   size). A style can centre it with --slider-lines-justify: center and --slider-lines-pull: 0px (Modular).
   White, because the lines sit over photos. Front end only.
   ============================================================================== */

.cb-carousel-block.has-slider-lines {
  position: relative;
  --slider-lines-touch: 20px;
  /* The visible lines sit 25px above the slider's bottom edge (the button's touch padding is below them). */
  --slider-lines-bottom: calc(25px - var(--slider-lines-touch));
}

/* Keep slide content clear of the lines (bottom offset + the 41px row), e.g. on phones, where a banner's text can
   be taller than the screen. */
.has-slider-lines .cb-slide > .wp-block-cover {
  padding-bottom: calc(
    var(--slider-lines-bottom) + 2 * var(--slider-lines-touch) + 1px +
      var(--wp--preset--spacing--3)
  );
}

.slider-lines {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: var(--slider-lines-bottom);
  transform: translateX(-50%);
  box-sizing: border-box;
  width: min(
    var(--slider-lines-max-width, var(--wp--style--global--wide-size, 1440px)),
    100% - 2 *
      var(--wp--style--root--padding-left, var(--wp--preset--spacing--3))
  );
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--slider-lines-justify, flex-start);
  pointer-events: none;
}

.slider-lines__line {
  pointer-events: auto;
  appearance: none;
  margin: 0;
  padding: var(--slider-lines-touch);
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.slider-lines__line:first-child {
  margin-left: calc(-1 * var(--slider-lines-pull, var(--slider-lines-touch)));
}

.slider-lines__mark {
  display: block;
  width: var(--slider-lines-length, 64px);
  height: 1px;
  background: var(--slider-lines-color, var(--wp--preset--color--white, #fff));
  opacity: var(--slider-lines-opacity, 0.4);
  transition: opacity 0.25s ease;
}

.slider-lines__line:hover .slider-lines__mark,
.slider-lines__line[aria-current="true"] .slider-lines__mark {
  opacity: 1;
}

.slider-lines__line:focus-visible {
  outline: 1px solid
    var(--slider-lines-color, var(--wp--preset--color--white, #fff));
  outline-offset: -10px;
}

@media (max-width: 768px) {
  .slider-lines {
    --slider-lines-length: 40px;
  }
}

/* ==============================================================================
   SLIDER BAR (class has-slider-bar on a Carousel Slider block; pattern swiss/slider-cards-bar)
   assets/js/slider-controls.js adds a bar under the slider that shows how far it has moved and is also its
   navigation (drag, click, arrow keys), and switches the slider to slidesPerView 'auto' so the card widths are set
   here. The cards start at the wide content edge and slide out to the screen edges; the bar is wide width.
   Front end only: in the editor the block shows its own preview and there is no bar.
   ============================================================================== */
body:not(.editor-styles-wrapper) .cb-carousel-block.has-slider-bar {
  --slider-cards: 1.2; /* cards in view; the part card shows there is more */
  --slider-gap: 32px; /* must match the block's Space between setting */
}

@media (min-width: 782px) {
  body:not(.editor-styles-wrapper) .cb-carousel-block.has-slider-bar {
    --slider-cards: 2.5;
  }
}

@media (min-width: 1024px) {
  body:not(.editor-styles-wrapper) .cb-carousel-block.has-slider-bar {
    --slider-cards: 3.5;
  }
}

@media (min-width: 1280px) {
  body:not(.editor-styles-wrapper) .cb-carousel-block.has-slider-bar {
    --slider-cards: 4.1;
  }
}

/* The slider is full width; its padding lines the first card up with the wide content edge. */
body:not(.editor-styles-wrapper) .cb-carousel-block.has-slider-bar .swiper {
  padding-inline: max(
    var(--wp--style--root--padding-left, 0px),
    calc((100% - var(--wp--style--global--wide-size, 1440px)) / 2)
  );
}

body:not(.editor-styles-wrapper)
  .cb-carousel-block.has-slider-bar
  .swiper-slide {
  width: calc(
    (100% - var(--slider-gap) * (var(--slider-cards) - 1)) / var(--slider-cards)
  ) !important;
  height: auto; /* every card as tall as the tallest */
}

.slider-bar {
  --slider-bar-height: 4px;
  --slider-bar-track: color-mix(
    in srgb,
    var(--wp--preset--color--contrast) 25%,
    transparent
  );
  --slider-bar-fill: var(--wp--preset--color--primary);
  margin-top: var(--wp--preset--spacing--6);
  padding-block: 10px; /* a taller target than the 4px line */
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
}

.slider-bar[hidden] {
  display: none;
}

.slider-bar__track {
  position: relative;
  display: block;
  height: var(--slider-bar-height);
  overflow: hidden;
  background: var(--slider-bar-track);
}

.slider-bar__fill {
  position: absolute;
  inset: 0;
  background: var(--slider-bar-fill);
  transform-origin: left center;
  transition-property: transform;
  transition-timing-function: ease;
}

.slider-bar.is-dragging .slider-bar__fill {
  transition-duration: 0ms !important;
}

.slider-bar:focus-visible {
  outline: 2px solid var(--slider-bar-fill);
  outline-offset: 2px;
}

/* ==============================================================================
   TESTIMONIALS (pattern swiss/testimonials, Modular and Deep Tech; moved from Modular style.css 17 Nov 2026)
   Cards in a Carousel Slider block (each style sets the card look in its pattern: Modular white on Extra Light Gray, Deep Tech the Card style) with the slider bar under it (base style.css SLIDER BAR draws the bar
   and sizes the slides from --slider-cards). Testimonials are longer than value cards, so fewer show at once.
   Each card is a column: the quote mark, the words, then the citation at the foot over a line, so the names
   line up across cards of different lengths. The Quote block's own border and padding (theme.json) are cleared.
   ============================================================================== */
body:not(.editor-styles-wrapper)
  .cb-carousel-block.has-slider-bar.testimonial-slider {
  --slider-cards: 1.1;
}

@media (min-width: 782px) {
  body:not(.editor-styles-wrapper)
    .cb-carousel-block.has-slider-bar.testimonial-slider {
    --slider-cards: 1.6;
  }
}

@media (min-width: 1024px) {
  body:not(.editor-styles-wrapper)
    .cb-carousel-block.has-slider-bar.testimonial-slider {
    --slider-cards: 2.2;
  }
}

@media (min-width: 1280px) {
  body:not(.editor-styles-wrapper)
    .cb-carousel-block.has-slider-bar.testimonial-slider {
    --slider-cards: 2.5;
  }
}

.testimonial-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card .wp-block-quote.testimonial-quote {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: var(--wp--preset--spacing--4) 0 0;
  padding: 0;
  border: 0;
}

.testimonial-card .testimonial-quote > p {
  margin: 0;
  line-height: 1.5;
}

.testimonial-card .testimonial-quote cite {
  display: block;
  margin-top: auto;
  padding-top: var(--wp--preset--spacing--5);
  font-size: var(--wp--preset--font-size--small);
  font-style: normal;
  line-height: 1.4;
  color: var(--wp--preset--color--dark-gray);
}

/* The line above the name, spacing 5 under the words at least. */
.testimonial-card .testimonial-quote cite::before {
  content: "";
  display: block;
  margin-bottom: var(--wp--preset--spacing--4);
  border-top: 1px solid var(--wp--custom--line--color);
}

.testimonial-card .testimonial-quote cite strong {
  color: var(--wp--preset--color--contrast);
  font-weight: 600;
}

/* Phones: a little less padding, so the words get more of the narrow card. */
@media (max-width: 600px) {
  .testimonial-card {
    padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--4)
      var(--wp--preset--spacing--4) !important;
  }
}

/* ==============================================================================
   REVEAL (class reveal-up on any block; inc/reveal.php, assets/js/reveal.js)
   The block slides up 60px and fades in once, the first time it crosses a line 25% up from the bottom of the
   window (START_LINE in reveal.js), so it moves where the visitor is looking and still finishes before mid-screen. The whole block moves as one (no letters or words).
   The blocks are hidden only while <html> has swiss-reveal, which the head script adds on the front end for
   visitors without reduced motion, so the editor, reduced-motion visitors and failed scripts see them as normal.
   Change the distance, time and easing in the variables.
   ============================================================================== */
.swiss-reveal .reveal-up {
  --reveal-distance: 60px;
  --reveal-duration: 1s;
  --reveal-easing: cubic-bezier(0.22, 1, 0.36, 1);
  transition:
    opacity var(--reveal-duration) var(--reveal-easing),
    translate var(--reveal-duration) var(--reveal-easing);
}

.swiss-reveal .reveal-up:not(.is-revealed) {
  opacity: 0;
  translate: 0 var(--reveal-distance);
}

/* ==============================================================================
   PINNED COLUMN (patterns swiss/pinned-column-left and -right; inc/pinned-column.php, assets/js/pinned-column.js)
   The column with pinned-column-pinned scrolls with the page until it is about vertically centred in the window
   below the docked header, then stays there while the other column scrolls past; once that column ends, it
   scrolls away with the section. Plain position: sticky. The script sets --pinned-column-center (the centring
   top) and adds is-pinned-ready only while the column fits the window, so a too-tall column, or a page where the
   script hasn't run, scrolls as normal. Only with the columns side by side (992px and up), front end only.
   --pinned-column-header is the sticky header's docked height (64px, the plugin's setting);
   --pinned-column-top is the lowest top it may pin at (admin bar + header + spacing 3). Nothing may set overflow
   on the section's ancestors, or sticky stops working.
   ============================================================================== */
.pinned-column {
  --pinned-column-header: 64px;
  --pinned-column-top: calc(
    var(--wp-admin--admin-bar--height, 0px) + var(--pinned-column-header) +
      var(--wp--preset--spacing--3)
  );
}

@media (min-width: 992px) {
  body:not(.editor-styles-wrapper) .pinned-column .pinned-column-pinned {
    align-self: flex-start;
  }
  /* Pinned Column Right: the pinned column stays first in the markup (heading first on phones and for
     screen readers) and moves to the right here. Front end and editor. */
  .pinned-column-right > .wp-block-columns {
    flex-direction: row-reverse;
  }
  body:not(.editor-styles-wrapper)
    .pinned-column
    .pinned-column-pinned.is-pinned-ready {
    position: sticky;
    top: max(var(--pinned-column-top), var(--pinned-column-center, 0px));
  }
}

/* Stacked (991px and below): the items follow the image with less space between. */
@media (max-width: 991px) {
  .pinned-column .pinned-column-scroll {
    padding-top: var(--wp--preset--spacing--4);
  }
  .pinned-column .pinned-column-scroll > * + * {
    margin-block-start: var(--wp--preset--spacing--6) !important;
  }
}

/* ==============================================================================
   IMAGE LIST (pattern swiss/image-list in Deep Tech and Modular)
   Rows of an image (left) and a title and short text (right), divided by each row's 1px Light Gray top border
   (a block border, editable per row). The text keeps a readable line length, like the modulex.in rows it is
   modelled on. The Text column has 25px top padding (a block setting) so the title sits a little below the top of
   the image. Once the columns stack (991px and below), the text sits under its image with spacing 3 between and
   no top padding.
   The reveal is the shared reveal-up class on the heading, images and text.
   ============================================================================== */
.image-list-text > p {
  max-width: 30rem;
}

@media (max-width: 991px) {
  .image-list-row {
    gap: var(--wp--preset--spacing--3) !important;
  }
  .image-list-text {
    padding-top: 0 !important;
  }
}

/* ==============================================================================
   BLOG (the styles' blog patterns in Deep Tech and Modular: blog-feature.php, blog-post-card.php,
   post-loop-grid.php, template-single.php, template-index-grid.php; moved here from Deep Tech's style.css on
   10 Nov 2026, when Modular got the same patterns; the base blog patterns use none of these classes)
   Post rows under the Blog Feature banner (class blog-post-row), the banner itself (its text column,
   blog-feature-text) and the single post banner (class blog-single-banner, same text column class): a 1px line
   under the text in the style's line colour (theme.json settings.custom.line.color). Side by side (992px+) the
   text column runs the row's full height with its content centred, so the line sits level with the bottom of the
   image. Stacked (991px and below) the image comes first, above the text, and the line sits centred between the
   button and the next post's image (--blog-row-line-gap above and below it, spacing 4 + 30px), with the same gap
   above the first row's image. The image stays second in the markup, so screen readers still meet the title
   first. The post list starts right under the banner (no block gap), so the gap below the banner's line matches
   the gap between rows.
   ============================================================================== */
.blog-post-row > .wp-block-column:first-child,
.blog-feature .blog-feature-text,
.blog-single-banner > .blog-feature-text {
  border-bottom: 1px solid var(--wp--custom--line--color);
}

.blog-feature + .wp-block-query {
  margin-block-start: 0;
}

/* Page 2 and later (inc/blog-feature.php leaves only the banner's eyebrow H1, class blog-feature-paged): the first
   post starts spacing 5 under the label (the list's own top padding is spacing 9), the same gap as between the
   eyebrow and the category button on page 1. Side by side only; stacked rows keep --blog-row-line-gap. */
@media (min-width: 992px) {
  .blog-feature-paged + .wp-block-query > .wp-block-group {
    padding-top: var(--wp--preset--spacing--5) !important;
  }
}

@media (min-width: 992px) {
  .blog-post-row > .wp-block-column:first-child,
  .blog-feature .blog-feature-text,
  .blog-single-banner > .blog-feature-text {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* A text column set to Top (Modular's blog banner and single post banner, 11 Nov 2026) keeps its full height, so
   the line stays level with the image's bottom, but its content starts at the top. */
@media (min-width: 992px) {
  .blog-feature .blog-feature-text.is-vertically-aligned-top,
  .blog-single-banner > .blog-feature-text.is-vertically-aligned-top {
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  :root {
    --blog-row-line-gap: calc(var(--wp--preset--spacing--4) + 30px);
  }

  .blog-post-row > .wp-block-column:first-child,
  .blog-feature .blog-feature-text,
  .blog-single-banner > .blog-feature-text {
    padding-bottom: var(--blog-row-line-gap);
  }

  /* !important: the rows' gap and the list's top padding are set inline by the blocks (spacing 9). */
  .wp-block-post:has(> .blog-post-row) + .wp-block-post {
    margin-block-start: var(--blog-row-line-gap) !important;
  }

  .wp-block-group:has(
    > .wp-block-post-template > .wp-block-post > .blog-post-row
  ) {
    padding-top: var(--blog-row-line-gap) !important;
  }

  .blog-post-row > .wp-block-column:last-child,
  .blog-feature .wp-block-columns > .wp-block-column:last-child,
  .blog-single-banner > .wp-block-column:last-child {
    order: -1;
  }
}

/* Category archives print no category button (inc/blog-feature.php, 18 Nov 2026: the archive is already that topic),
   so the blog banner keeps the button's space (spacing 5) between the blog name and the post title. */
body.category .blog-feature .blog-feature-name + * {
  margin-block-start: var(--wp--preset--spacing--5);
}

/* Category button (class blog-category: a Post Terms block that inc/blog-feature.php reduces to the post's primary
   category). A link to the category archive, drawn as a slim tag: 18px high (by padding),
   0.8rem + 2px side padding and 0.63rem (about 10px) uppercase text (the user's 11 Nov 2026 values, for a
   sleek look), with the eyebrow's 0.08em letter spacing, Dark Gray on Light Gray (4.7:1), Contrast on Gray on hover
   and focus. Change the look with the variables. */
.blog-category {
  --blog-category-bg: var(--wp--preset--color--light-gray);
  --blog-category-text: var(--wp--preset--color--dark-gray);
  --blog-category-bg-hover: var(--wp--preset--color--gray);
  --blog-category-text-hover: var(--wp--preset--color--contrast);
  --blog-category-height: 18px;
  --blog-category-padding-x: calc(0.8rem + 2px);
  font-size: 0.63rem;
  line-height: 1;
}

.blog-category a {
  display: inline-block;
  padding: calc(var(--blog-category-height) / 2 - 0.5em)
    var(--blog-category-padding-x);
  background: var(--blog-category-bg);
  color: var(--blog-category-text);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.blog-category a:hover,
.blog-category a:focus-visible {
  background: var(--blog-category-bg-hover);
  color: var(--blog-category-text-hover);
}

/* The editor shows every category (the theme trims it to one on the front end only): no comma between them. */
.blog-category .wp-block-post-terms__separator {
  display: none;
}

.blog-category a:not(:last-child) {
  margin-right: 6px;
}

/* Long post titles (class is-long-title: more than 9 words, added by inc/blog-feature.php): 80% of their usual
   size in the blog banner (its H2, X-Large) and the post rows (Large). Not in the single post banner or More
   Insights. Change --blog-long-title-scale to size them more or less. */
.blog-feature,
.blog-post-row {
  --blog-long-title-scale: 0.8;
}

.blog-feature .wp-block-post-title.is-long-title {
  font-size: calc(
    var(--wp--preset--font-size--x-large) * var(--blog-long-title-scale)
  );
}

.blog-post-row .wp-block-post-title.is-long-title {
  font-size: calc(
    var(--wp--preset--font-size--large) * var(--blog-long-title-scale)
  ) !important;
}

/* Author and Share row in a single post banner (class blog-post-meta, the styles' template-single.php): the core
   Post Author block with no avatar (an XSmall uppercase "Written by" over the linked name; colours below) beside the
   Share Links block (plugin Swiss Theme Share Links; its look is theme.json settings.custom.share). */
/* Byline colours (11 Nov 2026, the user's request: as light as WCAG AA allows): "Written by" #767676, the lightest
   grey with 4.5:1 on white (4.54:1; no palette colour sits between Dark Gray #666 and Medium Gray #aaa, which fails
   at 2.3:1), and the names a step darker in Dark Gray (5.74:1), linked or not (Team Members, users, typed-in
   writers). Re-check both if a style's page background isn't white. */
.blog-post-meta .wp-block-post-author {
  align-items: flex-start;
  margin: 0;
}

/* "Written by" and "Share" at 0.63rem (the theme's smallest text, 11 Nov 2026), their tops level (the row is aligned
   to the top, and the byline text to the top of a Team Member photo), each 8px above what it labels: the author name on the left, the share icons on the right (Share
   right-aligned above them). The icons may sit lower than the names; that is intended. */
.blog-post-meta {
  --byline-label-color: #767676;
  --byline-name-color: var(--wp--preset--color--dark-gray);
  --byline-label-gap: 8px;
}

.blog-post-meta .wp-block-post-author__content {
  gap: var(--byline-label-gap);
}

.blog-post-meta .swiss-share {
  --wp--custom--share--label-gap: var(--byline-label-gap);
  --wp--custom--share--label-font-size: 0.63rem;
  --wp--custom--share--label-color: var(--byline-label-color);
  flex-direction: column;
  align-items: flex-end;
}

.blog-post-meta .swiss-share__label,
.blog-post-meta .wp-block-post-author__byline {
  line-height: 1;
}

/* A single post banner with the Author and Share row (Modular since 11 Nov 2026, the user's design): no line under
   the text, and side by side (992px+) the row sits at the foot of the text column, spacing 2 + 30px (46px at
   1440) above the image's bottom edge, with at least its spacing 5 under the date when the title is long. Stacked, the row follows the
   date as before, with no line and no extra space below. */
.blog-single-banner:has(.blog-post-meta) > .blog-feature-text {
  border-bottom: 0;
}

@media (min-width: 992px) {
  .blog-single-banner:has(.blog-post-meta) > .blog-feature-text {
    padding-bottom: calc(var(--wp--preset--spacing--2) + 30px);
  }

  .blog-single-banner > .blog-feature-text > .blog-post-meta {
    margin-top: auto !important;
    padding-top: var(--wp--preset--spacing--5);
  }
}

@media (max-width: 991px) {
  .blog-single-banner:has(.blog-post-meta) > .blog-feature-text {
    padding-bottom: 0;
  }
}

/* The author's Team Member photo (class byline-team-photo on a Post Author block, inc/team-byline.php): a round
   photo before the byline, only for authors linked to a Team Member with a featured image. */
.byline-team-photo {
  --byline-team-photo-size: 48px;
}

.byline-team-photo .byline-team-photo__image {
  flex: none;
  margin: 0 var(--wp--preset--spacing--2) 0 0;
}

.byline-team-photo .byline-team-photo__image img {
  display: block;
  width: var(--byline-team-photo-size);
  height: var(--byline-team-photo-size);
  border-radius: 50%;
  object-fit: cover;
}

.blog-post-meta .wp-block-post-author__content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.blog-post-meta .wp-block-post-author__byline {
  margin: 0;
  color: var(--byline-label-color);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-post-meta .wp-block-post-author__name {
  margin: 0;
  font-weight: 500;
}

.blog-post-meta .wp-block-post-author__name,
.blog-post-meta .wp-block-post-author__name a {
  color: var(--byline-name-color);
  text-decoration: none;
}

.blog-post-meta .wp-block-post-author__name a:hover,
.blog-post-meta .wp-block-post-author__name a:focus-visible {
  color: var(--wp--preset--color--primary);
}

/* Single post dates (class blog-post-dates): the date, then "· Updated <date>" when there is one. */
.blog-post-dates > .blog-post-updated {
  margin: 0;
}

.blog-post-dates > .blog-post-updated::before {
  content: "·";
  margin: 0 0.5em;
}

/* Category links under the blog banner (pattern swiss/blog-categories, a trial): the "Browse by topic" label above
   (0.63rem uppercase, the category button's text size), then the core Categories block as a wrapping row of links
   drawn like the category button (the same --blog-category-* look). */
.blog-categories {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.blog-categories .blog-categories-label {
  margin: 0;
  font-size: 0.63rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-categories-list {
  --blog-category-bg: var(--wp--preset--color--light-gray);
  --blog-category-text: var(--wp--preset--color--dark-gray);
  --blog-category-bg-hover: var(--wp--preset--color--gray);
  --blog-category-text-hover: var(--wp--preset--color--contrast);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.blog-categories-list li {
  margin: 0;
}

.blog-categories-list a {
  display: inline-block;
  padding: calc(18px / 2 - 0.5em) calc(0.8rem + 2px);
  background: var(--blog-category-bg);
  color: var(--blog-category-text);
  font-size: 0.63rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.blog-categories-list a:hover,
.blog-categories-list a:focus-visible {
  background: var(--blog-category-bg-hover);
  color: var(--blog-category-text-hover);
}

/* Writer / Contact panel after a single post (pattern swiss/post-contacts): an Extra Light Gray box (set on the
   block) with a section per kind, Writer(s) then Contact(s), all on one row (stacked at 768px and below): a small
   uppercase Primary label, then the people side by side: the name (and credentials) at Small weight 600 (linked to a Team Member's bio
   page when there is one), then title, phone and email at XSmall. */
.post-contacts p {
  margin: 0;
}

.post-contacts-label {
  margin-bottom: var(--wp--preset--spacing--2) !important;
  color: var(--wp--preset--color--primary);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* One row from 769px: the sections side by side and their people side by side (wrapping only if they run out of
   room); stacked on phones. */
.post-contacts {
  --post-contacts-gap: var(--wp--preset--spacing--5);
  --post-contacts-divider: var(--wp--preset--color--gray);
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--post-contacts-gap);
  row-gap: var(--wp--preset--spacing--4);
}

.post-contacts > .post-contacts-section {
  margin: 0 !important;
}

.post-contacts-people {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--post-contacts-gap);
  row-gap: var(--wp--preset--spacing--3);
}

/* A 1px divider before every person but the first in the panel (writers and contacts alike), centred in the gap:
   Gray, not the line colour, which barely shows on the Extra Light Gray box (the theme's contrast exception). */
.post-contacts-person + .post-contacts-person {
  padding-left: var(--post-contacts-gap);
  border-left: 1px solid var(--post-contacts-divider);
}

/* A later section (Contacts after Writer): its label and first person start after the line, which sits beside the
   people only, as between people. */
.post-contacts-section + .post-contacts-section {
  padding-left: var(--post-contacts-gap);
}

.post-contacts-section
  + .post-contacts-section
  .post-contacts-person:first-child {
  /* !important: .post-contacts-people > * zeroes every margin. */
  margin-left: calc(-1 * var(--post-contacts-gap)) !important;
  padding-left: var(--post-contacts-gap);
  border-left: 1px solid var(--post-contacts-divider);
}

@media (max-width: 768px) {
  .post-contacts,
  .post-contacts-people {
    flex-direction: column;
  }

  /* Stacked: the dividers become lines above each person instead (not the first in each section). */
  .post-contacts-section + .post-contacts-section {
    padding-left: 0;
  }

  .post-contacts-person + .post-contacts-person {
    padding-left: 0;
    padding-top: var(--wp--preset--spacing--3);
    border-left: 0;
    border-top: 1px solid var(--post-contacts-divider);
  }

  /* The first person under a later section's label has the label above it, so no line. */
  .post-contacts-section
    + .post-contacts-section
    .post-contacts-person:first-child {
    margin-left: 0 !important;
    padding-left: 0;
    border-left: 0;
  }
}

.post-contacts-people > * {
  margin: 0 !important;
}

.post-contacts-name {
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
}

.post-contacts-title,
.post-contacts-phone,
.post-contacts-email {
  margin-top: 2px !important;
  font-size: var(--wp--preset--font-size--xsmall);
  line-height: 1.5;
}

.post-contacts-title {
  color: var(--wp--preset--color--dark-gray);
}

.post-contacts a {
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
}

.post-contacts a:hover,
.post-contacts a:focus-visible {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
}

/* ==============================================================================
   POST CONTENT (11 Nov 2026): the body of a single post (the styles' template-single.php, Narrow Content group
   blog-single-content). Headings step down to a reading scale, since the page-section sizes (an H2 is X-Large)
   are far too big inside an article: H2 Medium Large, H3 Medium Plus, H4 Medium, H5 and H6 Small, each with that
   size's heading look (theme.json settings.custom.heading); a size picked on a heading in the editor still wins.
   Plus space above headings, lists, quotes, images with captions, tables and separators. Only inside the post
   content, so pages and sections are untouched.
   ============================================================================== */
.blog-single-content .wp-block-post-content {
  --post-heading-space: var(--wp--preset--spacing--5);
}

.blog-single-content .wp-block-post-content :is(h2, h3, h4, h5, h6) {
  margin-top: var(--post-heading-space);
  margin-bottom: 0;
}

.blog-single-content .wp-block-post-content > :is(h2, h3, h4, h5, h6) + * {
  margin-top: var(--wp--preset--spacing--2);
}

.blog-single-content .wp-block-post-content h2 {
  font-size: var(--wp--preset--font-size--medium-large);
  font-weight: var(--wp--custom--heading--medium-large--font-weight);
  letter-spacing: var(--wp--custom--heading--medium-large--letter-spacing);
  padding-bottom: 0;
}

.blog-single-content .wp-block-post-content h3 {
  font-size: var(--wp--preset--font-size--medium-plus);
  font-weight: var(--wp--custom--heading--medium-plus--font-weight);
  letter-spacing: var(--wp--custom--heading--medium-plus--letter-spacing);
  padding-bottom: 0;
}

.blog-single-content .wp-block-post-content h4 {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: var(--wp--custom--heading--medium--font-weight);
  letter-spacing: var(--wp--custom--heading--medium--letter-spacing);
  padding-bottom: 0;
}

.blog-single-content .wp-block-post-content :is(h5, h6) {
  font-size: var(--wp--preset--font-size--small);
  font-weight: var(--wp--custom--heading--small--font-weight);
  letter-spacing: var(--wp--custom--heading--small--letter-spacing);
  padding-bottom: 0;
}

.blog-single-content .wp-block-post-content :is(ul, ol) {
  padding-left: 1.4em;
}

.blog-single-content .wp-block-post-content li + li {
  margin-top: 0.4em;
}

.blog-single-content .wp-block-post-content a:where(:not(.wp-element-button)) {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.blog-single-content .wp-block-post-content .wp-block-quote {
  margin-block: var(--wp--preset--spacing--4);
  padding: 0 0 0 var(--wp--preset--spacing--3);
  border-left: 3px solid var(--wp--preset--color--primary);
}

.blog-single-content .wp-block-post-content .wp-block-quote p {
  font-size: var(--wp--preset--font-size--medium-plus);
  line-height: 1.45;
}

.blog-single-content .wp-block-post-content .wp-block-quote cite {
  display: block;
  margin-top: var(--wp--preset--spacing--1);
  color: var(--wp--preset--color--dark-gray);
  font-size: var(--wp--preset--font-size--xsmall);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-single-content
  .wp-block-post-content
  :is(.wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-table) {
  margin-block: var(--wp--preset--spacing--4);
}

.blog-single-content .wp-block-post-content figcaption {
  margin-top: 8px;
  color: var(--wp--preset--color--dark-gray);
  font-size: var(--wp--preset--font-size--xsmall);
  text-align: left;
}

.blog-single-content .wp-block-post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wp--preset--font-size--small);
}

.blog-single-content .wp-block-post-content .wp-block-table :is(th, td) {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--wp--custom--line--color);
  text-align: left;
  vertical-align: top;
}

.blog-single-content .wp-block-post-content .wp-block-table thead th {
  border-bottom: 2px solid var(--wp--preset--color--contrast);
  font-weight: 600;
}

.blog-single-content .wp-block-post-content .wp-block-separator {
  margin-block: var(--wp--preset--spacing--5);
}

/* Post grid cards (class blog-more on any Query Loop, core or Advanced Query Loop): More Insights on a single post,
   Latest Posts, the Post Grid query pattern and the style guide loops. Every one embeds the active style's
   swiss/post-grid-card (patterns/post-grid-card.php, each style's copy), so they always match. Each card has
   the line colour along its bottom. Cards in a row share the tallest card's height, and the Read Story
   buttons line up at the foot of each card. !important on the line: base style.css removes every border from
   groups inside a Query Loop with !important. */
.blog-more .wp-block-post > .blog-more-card {
  height: 100%;
  padding-bottom: var(--wp--preset--spacing--4);
  border-bottom: 1px solid var(--wp--custom--line--color) !important;
}

.blog-more .blog-more-card > .wp-block-buttons {
  margin-top: auto;
}

/* ==============================================================================
   PATTERN LABEL (demo pages 90 and 101 only: the Full-width "Pattern Name: …" paragraph above each section)
   A light 1px line under the bold text, capitals centred by text-box. Never used in patterns.
   ============================================================================== */
.pattern-label {
  font-size: var(--wp--preset--font-size--xxsmall);
  margin-bottom: 5px;
}

.pattern-label strong {
  display: inline-block;
  border-bottom: 1px solid var(--wp--preset--color--light-gray);
  padding: 4px 0 4px 13px;
  color: var(--wp--preset--color--medium-gray);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-box: trim-both cap alphabetic;
}

/* ==============================================================================
   SECTION BASICS (11 Nov 2026; basic versions of the style patterns swiss/process-steps, swiss/service-cards,
   swiss/latest-posts and swiss/newsletter-signup, to be styled per style). Only layout lives here; colours,
   fonts and buttons come from the blocks and the style.
   ============================================================================== */

/* A section introduction under its heading stays a readable width. */
.section-intro {
  max-width: 44rem;
}

/* PROCESS STEPS: the number sits tight on its line. */
.process-step-number {
  margin: 0;
  line-height: 1;
}

/* TIMELINE (pattern swiss/timeline, 19 Nov 2026): from 769px the year sits in a 7rem column beside the text, and
   the text's left border is the line, with a dot in the year's colour (the style's accent) level with the year.
   On phones the line moves to the milestone's left edge and the year sits above its text. */
.timeline-list > .timeline-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  column-gap: var(--wp--preset--spacing--5);
  margin: 0;
}

.timeline-item > .timeline-year {
  position: relative;
  margin: 0;
  line-height: 1.2;
  text-align: right;
}

.timeline-item > .timeline-year::after {
  content: "";
  position: absolute;
  top: 0.6em;
  right: calc(-1 * var(--wp--preset--spacing--5) - 6px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
  translate: 0 -50%;
}

.timeline-item > .timeline-text {
  margin: 0;
  padding: 0 0 var(--wp--preset--spacing--6) var(--wp--preset--spacing--5);
  border-left: 1px solid var(--wp--custom--line--color);
}

.timeline-item:last-child > .timeline-text {
  padding-bottom: 0;
}

.timeline-text > h3 {
  margin: 0;
}

.timeline-text > p {
  margin-block: var(--wp--preset--spacing--2) 0;
}

@media (max-width: 768px) {
  .timeline-list > .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    padding-left: var(--wp--preset--spacing--5);
    border-left: 1px solid var(--wp--custom--line--color);
  }

  .timeline-item > .timeline-year {
    margin-bottom: var(--wp--preset--spacing--1);
    text-align: left;
  }

  .timeline-item > .timeline-year::after {
    right: auto;
    left: calc(-1 * var(--wp--preset--spacing--5) - 6px);
  }

  .timeline-item > .timeline-text {
    padding-left: 0;
    border-left: 0;
  }
}

/* ACCORDIONS (every core Accordion block, e.g. pattern swiss/faq; 19 Nov 2026). The row line, heading type and
   colours are theme.json styles.blocks core/accordion-item, -heading and -panel; the colours and icon below come
   from settings.custom.accordion (iconColor, titleHoverColor, openLineColor, iconSize), so a style changes them
   in its theme.json. This CSS adds what theme.json can't: rows with no gap between them and the same space
   above and below each title (spacing 3), the title in titleHoverColor on hover and while open, openLineColor
   under the open item, and a thin plus that turns to a minus while open instead of the block's "+" text.
   Modular replaces the icon with its own box and arrow (presets/modular/style.css ACCORDIONS). Opening and
   closing is the block's own script. */
.wp-block-accordion > .wp-block-accordion-item {
  margin-block: 0;
  transition: border-color 0.2s ease;
}

.wp-block-accordion > .wp-block-accordion-item.is-open {
  border-bottom-color: var(
    --wp--custom--accordion--open-line-color,
    var(--wp--custom--line--color)
  );
}

.wp-block-accordion .wp-block-accordion-heading {
  margin: 0;
  padding: 0;
}

.wp-block-accordion .wp-block-accordion-heading__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--3);
  width: 100%;
  padding: var(--wp--preset--spacing--3) 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.wp-block-accordion .wp-block-accordion-heading__toggle:hover,
.wp-block-accordion
  .wp-block-accordion-item.is-open
  .wp-block-accordion-heading__toggle {
  color: var(
    --wp--custom--accordion--title-hover-color,
    var(--wp--preset--color--primary)
  );
}

.wp-block-accordion .wp-block-accordion-heading__toggle:focus-visible {
  outline: 2px solid
    var(
      --wp--custom--accordion--title-hover-color,
      var(--wp--preset--color--primary)
    );
  outline-offset: 2px;
}

/* The icon: the block's icon span with its "+" text hidden, and a plus or minus drawn as a mask. */
.wp-block-accordion .wp-block-accordion-heading__toggle-icon {
  --swiss-accordion-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M9.25 2h1.5v16h-1.5zM2 9.25h16v1.5H2z'/%3E%3C/svg%3E");
  position: relative;
  flex: none;
  width: var(--wp--custom--accordion--icon-size, 20px);
  height: var(--wp--custom--accordion--icon-size, 20px);
  color: transparent;
  font-size: 0;
  transform: none !important;
}

.wp-block-accordion
  .wp-block-accordion-item.is-open
  .wp-block-accordion-heading__toggle-icon {
  --swiss-accordion-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 9.25h16v1.5H2z'/%3E%3C/svg%3E");
}

.wp-block-accordion .wp-block-accordion-heading__toggle-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(
    --wp--custom--accordion--icon-color,
    var(--wp--preset--color--primary)
  );
  -webkit-mask: var(--swiss-accordion-icon) center / 100% 100% no-repeat;
  mask: var(--swiss-accordion-icon) center / 100% 100% no-repeat;
}

/* A panel shows only while its item is open. WordPress hides closed panels only once the accordion script has
   started, so without this every panel shows (and the page jumps) for a moment on load. The item's is-open class
   is in the saved markup and the script switches it. Front end only: in the editor the block shows its panels
   its own way. */
body:not(.editor-styles-wrapper)
  .wp-block-accordion-item:not(.is-open)
  > .wp-block-accordion-panel {
  display: none;
}

/* Panel text: no top margin, and the same spacing 3 below as the space above the title. */
.wp-block-accordion .wp-block-accordion-panel > :first-child {
  margin-top: 0;
}

.wp-block-accordion .wp-block-accordion-panel > :last-child {
  margin-bottom: 0;
  padding-bottom: var(--wp--preset--spacing--3);
}

/* GRAPHICAL ACCORDION (pattern swiss/graphical-accordion, 19 Nov 2026, after the Acorn services page): a line in
   the line colour above the first item, so the rows read as a closed list beside the photo. */
.graphical-accordion .wp-block-accordion {
  border-top: 1px solid var(--wp--custom--line--color);
}

.graphical-accordion .wp-block-image img {
  display: block;
  width: 100%;
}

/* SERVICE CARDS: every card in a row as tall as the tallest, the Learn More button at the card's foot. */
.service-cards-grid > .service-card {
  box-sizing: border-box;
  height: 100%;
}

.service-card > .service-card-link {
  margin-top: auto;
  padding-top: var(--wp--preset--spacing--3);
}

/* CONTENT BELOW IMAGE HOVER (pattern swiss/content-below-image-hover, 19 Nov 2026, after the Aequitas home page's
   four cards): the title's link covers the whole card. On a desktop with a mouse (hover: hover, 992px up, where the
   columns sit side by side), pointing at or tabbing into a card turns the others 70% grey at 0.8 opacity and fades
   in its sentence and the line-colour line under it; plain CSS (:has), no script. Touch screens and stacked
   columns show every sentence and line. */
.image-hover-card {
  position: relative;
}

.image-hover-card .wp-block-image img {
  display: block;
  width: 100%;
}

.image-hover-card h3 a {
  color: inherit;
  text-decoration: none;
}

.image-hover-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.image-hover-card h3 a:focus-visible {
  outline: none;
}

.image-hover-card h3 a:focus-visible::after {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.image-hover-card > p:last-child {
  padding-bottom: var(--wp--preset--spacing--4);
  border-bottom: 1px solid var(--wp--custom--line--color);
}

@media (hover: hover) and (min-width: 992px) {
  .image-hover-card,
  .image-hover-card > p:last-child {
    transition:
      filter 250ms cubic-bezier(0.4, 0, 0.2, 1),
      opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
      border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .image-hover-card > p:last-child {
    opacity: 0;
    border-bottom-color: transparent;
  }

  .image-hover-card:is(:hover, :focus-within) > p:last-child {
    opacity: 1;
    border-bottom-color: var(--wp--custom--line--color);
  }

  .image-hover-cards:has(> .image-hover-card:is(:hover, :focus-within))
    > .image-hover-card:not(:hover, :focus-within) {
    filter: grayscale(70%);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-hover-card,
  .image-hover-card > p:last-child {
    transition: none;
  }
}

/* HOVER REVEAL LIST (pattern swiss/hover-reveal-list, 19 Nov 2026, after the Acorn home page's "One unified plan"
   band): a wide dark band (the Band group, on the page colour, so the band and every hover stop at the wide
   width) with a heading and button, a list and its sentences. Stacked (below 1200px or touch): heading, button,
   the opening sentence, then the list with faint White lines between rows; the other sentences stay hidden.
   On a desktop with a mouse (hover: hover, 1200px up), the heading, button and items share one grid cell: the
   list's rows run the full width of its 65% column, over the heading, right-aligned against a bar; the button sits
   above the rows and shows as soon as the pointer enters the band (or a key focuses it). Pointing at a row fades
   its sentence in over the opening one; the rows touch, so moving between them never shows the opening sentence.
   The area just below the list (the list's ::after, clipped to the band) shows the closing sentence. Plain CSS
   (:has), no script; up to eight items. Keyboard users get the opening sentence only. */
.hover-reveal {
  --hover-reveal-line: color-mix(
    in srgb,
    var(--wp--preset--color--white) 20%,
    transparent
  );
}

.hover-reveal-band {
  overflow: clip;
  background-color: var(--swiss-dark-band, var(--wp--preset--color--black));
}

.hover-reveal-band > *,
.hover-reveal-items > * {
  margin-block: 0;
}

.hover-reveal-items {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--4);
  margin-block-start: var(--wp--preset--spacing--7);
}

.hover-reveal-content {
  order: -1;
}

.hover-reveal-content > p {
  margin: 0;
}

.hover-reveal-content > p:not(:first-child) {
  display: none;
}

.hover-reveal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hover-reveal-list > li {
  margin: 0;
  padding-block: var(--wp--preset--spacing--2);
  border-bottom: 1px solid var(--hover-reveal-line);
}

@media (hover: hover) and (min-width: 1200px) {
  .hover-reveal {
    --hover-reveal-bar: color-mix(
      in srgb,
      var(--wp--preset--color--white) 50%,
      transparent
    );
    --hover-reveal-ease: 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hover-reveal-band {
    display: grid;
    align-items: center;
  }

  .hover-reveal-band > * {
    grid-area: 1 / 1;
  }

  .hover-reveal-heading {
    max-width: 36%;
    padding-inline-start: var(--wp--preset--spacing--6);
  }

  .hover-reveal-button {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--hover-reveal-ease);
  }

  .hover-reveal-button {
    pointer-events: none;
  }

  .hover-reveal-button .wp-block-button {
    pointer-events: auto;
  }

  .hover-reveal-band:is(:hover, :focus-within) .hover-reveal-button {
    opacity: 1;
  }

  .hover-reveal-items {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 65% 35%;
    align-items: center;
    gap: 0;
    margin-block-start: 0;
  }

  .hover-reveal-list {
    position: relative;
    border-right: 10px solid var(--hover-reveal-bar);
  }

  .hover-reveal-list::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: var(--wp--preset--spacing--8);
  }

  .hover-reveal-list > li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-block: var(--wp--preset--spacing--1);
    border-bottom: 0;
    text-align: right;
  }

  .hover-reveal-list > li::after {
    content: "";
    flex: none;
    width: 28px;
    height: 1px;
    margin-inline: var(--wp--preset--spacing--3) 0;
    background-color: transparent;
    transition: background-color var(--hover-reveal-ease);
  }

  .hover-reveal-list > li:hover::after {
    background-color: var(--hover-reveal-bar);
  }

  .hover-reveal-content {
    order: 0;
    display: grid;
    align-items: center;
    padding-inline: var(--wp--preset--spacing--6);
  }

  .hover-reveal-content > p,
  .hover-reveal-content > p:not(:first-child) {
    display: block;
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity var(--hover-reveal-ease);
  }

  .hover-reveal-content > p:first-child {
    opacity: 1;
  }

  .hover-reveal-list:hover ~ .hover-reveal-content > p:first-child {
    opacity: 0;
  }

  .hover-reveal-list:has(> li:nth-child(1):hover)
    ~ .hover-reveal-content
    > p:nth-child(2),
  .hover-reveal-list:has(> li:nth-child(2):hover)
    ~ .hover-reveal-content
    > p:nth-child(3),
  .hover-reveal-list:has(> li:nth-child(3):hover)
    ~ .hover-reveal-content
    > p:nth-child(4),
  .hover-reveal-list:has(> li:nth-child(4):hover)
    ~ .hover-reveal-content
    > p:nth-child(5),
  .hover-reveal-list:has(> li:nth-child(5):hover)
    ~ .hover-reveal-content
    > p:nth-child(6),
  .hover-reveal-list:has(> li:nth-child(6):hover)
    ~ .hover-reveal-content
    > p:nth-child(7),
  .hover-reveal-list:has(> li:nth-child(7):hover)
    ~ .hover-reveal-content
    > p:nth-child(8),
  .hover-reveal-list:has(> li:nth-child(8):hover)
    ~ .hover-reveal-content
    > p:nth-child(9),
  .hover-reveal-list:hover:not(:has(> li:hover))
    ~ .hover-reveal-content
    > p:last-child {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hover-reveal-button,
  .hover-reveal-list > li::after,
  .hover-reveal-content > p {
    transition: none !important;
  }
}

/* NEWSLETTER: the placeholder form, or an email service's embed (e.g. Mailchimp's without its stylesheet), in
   the style's look: a 44px email field with a Dark Gray edge, and a submit button in the style's Fill colours
   (--swiss-button-*, from the style's core/button settings). */
.newsletter-embed form,
.newsletter-embed .newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--2);
  margin: 0;
}

.newsletter-embed input[type="email"],
.newsletter-embed input[type="text"] {
  flex: 1 1 16rem;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 0 1rem;
  border: 1px solid var(--wp--preset--color--dark-gray);
  border-radius: var(--swiss-button-radius, 0);
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--contrast);
  font: inherit;
}

.newsletter-embed button[type="submit"],
.newsletter-embed input[type="submit"] {
  min-height: 44px;
  margin: 0;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--swiss-button-radius, 0);
  background-color: var(--swiss-button-bg, var(--wp--preset--color--charcoal));
  color: var(--swiss-button-text, var(--wp--preset--color--white));
  font: inherit;
  letter-spacing: var(--swiss-button-letter-spacing, normal);
  text-transform: var(--swiss-button-text-transform, none);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-embed button[type="submit"]:is(:hover, :focus-visible),
.newsletter-embed input[type="submit"]:is(:hover, :focus-visible) {
  background-color: var(
    --swiss-button-bg-hover,
    var(--swiss-button-bg, var(--wp--preset--color--charcoal))
  );
  color: var(
    --swiss-button-text-hover,
    var(--swiss-button-text, var(--wp--preset--color--white))
  );
}

.newsletter-embed input:focus-visible,
.newsletter-embed button:focus-visible {
  outline: 2px solid var(--wp--preset--color--contrast);
  outline-offset: 2px;
}
