/* --------- Page skeleton --------- */

/* Sticky footer lives on .site, never on body: theme.json styles body too, and
   a flex context there silently flips the axes for anyone laying it out later. */
.site {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* .has-global-padding is not listed: core prints that rule itself, along with
   the one that zeroes it on nested groups, and a copy here would win over
   that second rule and pad every nested group twice. */
.wrapper {
  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--wp--style--global--content-size);
}

.container-secondary {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--wp--style--global--wide-size);
}

/* Running text: a narrower column than the content width. */
.container-article {
  margin-left: auto;
  margin-right: auto;
  max-width: 1115px;
}

.site-main {
  flex-grow: 1;
}

/* Lets .not-found-section centre itself vertically with margin auto. */
body.error404 .site-main {
  display: flex;
  flex-direction: column;
}

.common-section {
  padding-top: var(--wp--preset--spacing--70);
  padding-bottom: var(--wp--preset--spacing--70);
}

/* --------- Header --------- */

/* How tall the header is from the top of the page: the hero pads its
   content down by this much (blocks/hero/style.css). */
:root {
  --header-height: 84px;
}

@media screen and (min-width: 1024px) {
  :root {
    --header-height: 116px;
  }
}

/* The header lies over the top of the page: every template opens with a hero
   that leaves room for it. Positioned against .site, not the viewport, so the
   admin bar pushes it down. */
/* The header lies over the hero, under the site notice when there is one:
   .site-top is the notice's height, or nothing. */
.site-top {
  position: relative;
}

.header {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding-top: var(--wp--preset--spacing--40);
}

.header-inner {
  position: relative;
}

.header-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--60);
}

.header-logo {
  flex-shrink: 0;
  line-height: 0;
}

.header-logo img {
  width: auto;
  height: 40px;
}

/* The white sail and burger do not show on the yellow heroes. On phones they
   turn dark there, until the full menu opens its navy background behind
   them. header.php prints the dark sail only on such pages. */
.header-logo-dark {
  display: none;
}

@media (max-width: 1023px) {
  :is(.page-hero-yellow, .page-hero-bright-yellow) .header:not(.is-full-menu-open) .header-logo picture {
    display: none;
  }

  :is(.page-hero-yellow, .page-hero-bright-yellow) .header:not(.is-full-menu-open) .header-logo-dark {
    display: block;
  }

  :is(.page-hero-yellow, .page-hero-bright-yellow) .header:not(.is-full-menu-open) .burger {
    color: var(--wp--preset--color--primary);
  }
}

/* --------- Login / Register --------- */

.header-account {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--base);
}

.header-account a {
  transition: color 0.2s ease;
}

.header-account a:hover {
  color: var(--wp--preset--color--secondary);
}

/* --------- Burger --------- */

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -11px;
  flex-shrink: 0;
  color: var(--wp--preset--color--base);
  transition: color 0.2s ease;
}

.burger-icon {
  position: relative;
  width: 22px;
  height: 14px;
}

.burger-icon span {
  position: absolute;
  left: 0;
  height: 2px;
  border-radius: 1px;
  background-color: currentColor;
  transition:
    top 0.25s ease,
    width 0.25s ease,
    rotate 0.25s ease,
    opacity 0.2s ease;
}

.burger-icon span:nth-child(1) {
  top: 0;
  width: 100%;
}

.burger-icon span:nth-child(2) {
  top: 6px;
  width: 80%;
}

.burger-icon span:nth-child(3) {
  top: 12px;
  width: 55%;
}

.burger[aria-expanded="true"] .burger-icon span:nth-child(1),
.burger[aria-expanded="true"] .burger-icon span:nth-child(3) {
  top: 6px;
  width: 100%;
  rotate: 45deg;
}

.burger[aria-expanded="true"] .burger-icon span:nth-child(3) {
  rotate: -45deg;
}

.burger[aria-expanded="true"] .burger-icon span:nth-child(2) {
  opacity: 0;
}

/* --------- Header menu (desktop only) --------- */

.header-nav {
  display: none;
}

/* --------- Full menu: shared --------- */

.full-menu {
  display: none;
}

.full-menu.is-open {
  display: flex;
  flex-direction: column;
}

/* The list scrolls, not the panel: the scrollbar then sits inside the panel's
   padding, clear of the rounded corners (desktop) and of the strip under the
   logo and close button (mobile). */
.full-menu-nav {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Chrome and Safari draw the bar from these. Chrome drops them as soon as
   scrollbar-width or scrollbar-color is set — and then shows arrow buttons
   on Windows — so the standard pair is kept for browsers without them. */
.full-menu-nav::-webkit-scrollbar {
  width: 6px;
}

.full-menu-nav::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: var(--menu-scrollbar);
}

@supports not selector(::-webkit-scrollbar) {
  .full-menu-nav {
    scrollbar-width: thin;
    scrollbar-color: var(--menu-scrollbar) transparent;
  }
}

/* An item with children: label (or link and toggle) on one line, list below. */
.full-menu .menu-column-list .menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.full-menu .menu-column-list .menu-item-has-children > .sub-menu {
  flex-basis: 100%;
}

.full-menu .menu-column-list > li > :is(a, .menu-label),
.full-menu .menu-column-list .menu-item-has-children > :is(a, .menu-label) {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.full-menu .menu-column-list > li > :is(a, .menu-label) {
  padding-block: 6px;
  font-size: var(--wp--preset--font-size--normal);
  font-weight: 600;
  line-height: 1.5;
}

.full-menu .menu-column-list > li > .sub-menu {
  padding-bottom: 8px;
}

.full-menu .menu-column-list .sub-menu :is(a, .menu-label) {
  padding-block: 2px;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.5;
}

.full-menu .menu-column-list .sub-menu > .menu-item-has-children > :is(a, .menu-label) {
  font-weight: 600;
}

/* Colours stay at :where() weight, so hover and the current page win
   whatever the depth. */
.full-menu .menu-column-list :where(a, .menu-label) {
  color: var(--menu-heading);
}

.full-menu .menu-column-list :where(.sub-menu a, .sub-menu .menu-label) {
  color: var(--menu-text);
}

.full-menu .menu-column-list :where(.sub-menu > .menu-item-has-children > :is(a, .menu-label)) {
  color: var(--menu-heading);
}

.full-menu .menu-column-list :is(a, button):is(:hover, [aria-current="page"]) {
  color: var(--menu-hover);
}

/* Chevrons: after every toggle, and before each item of a list. */
.full-menu .menu-column-list button.menu-label::after,
.submenu-toggle::after,
.full-menu .menu-column-list .sub-menu li:not(.menu-item-has-children) > :is(a, .menu-label)::before,
.header-menu .sub-menu .sub-menu :is(a, .menu-label)::before {
  content: "";
  flex-shrink: 0;
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: var(--menu-chevron, var(--wp--preset--color--accent));
  mask: url(../img/chevron-right.svg) no-repeat center / contain;
  -webkit-mask: url(../img/chevron-right.svg) no-repeat center / contain;
}

.full-menu .menu-column-list button.menu-label::after,
.submenu-toggle::after {
  transition: rotate 0.2s ease;
}

.full-menu .menu-column-list .sub-menu :is(button.menu-label, .submenu-toggle)::after {
  width: 7px;
  height: 12px;
  background-color: var(--menu-group-chevron);
}

.full-menu .menu-column-list [aria-expanded="true"]::after {
  rotate: 90deg;
}

/* Hanging: a label that wraps keeps its second line clear of the chevron. */
.full-menu .menu-column-list .sub-menu li:not(.menu-item-has-children) > :is(a, .menu-label),
.header-menu .sub-menu .sub-menu :is(a, .menu-label) {
  position: relative;
  padding-left: 17px;
}

.full-menu .menu-column-list .sub-menu li:not(.menu-item-has-children) > :is(a, .menu-label) {
  display: block;
}

.full-menu .menu-column-list .sub-menu li:not(.menu-item-has-children) > :is(a, .menu-label)::before,
.header-menu .sub-menu .sub-menu :is(a, .menu-label)::before {
  position: absolute;
  left: 0;
  top: calc(2px + 0.75em - 4.5px);
  width: 5px;
  height: 9px;
}

/* The chevron sits at the right edge, in line with those of the "#" labels;
   the hit area grows inwards, never past the column. */
.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 32px;
  height: 32px;
}

.full-menu .menu-column-list > li.menu-button {
  margin-bottom: 8px;
}

.full-menu .menu-column-list > li.menu-button > a {
  padding: 12px 28px;
  border-radius: 25px;
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--base);
}

.full-menu .menu-column-list > li.menu-button > a:hover {
  color: var(--wp--preset--color--primary);
}

@media (prefers-reduced-motion: reduce) {
  .burger-icon span,
  .full-menu .menu-column-list button.menu-label::after,
  .submenu-toggle::after {
    transition: none;
  }
}

/* --------- Desktop --------- */

@media screen and (min-width: 1024px) {
  .header {
    padding-top: 48px;
  }

  .header-bar {
    min-height: 68px;
    padding: 0 35px 0 40px;
    border-radius: 34px;
    background-color: var(--wp--preset--color--base);
  }

  .header-logo img {
    height: 53px;
  }

  .header-account--tab {
    position: absolute;
    right: 34px;
    bottom: 100%;
    height: 36px;
    padding: 0 30px;
    border-radius: 18px 18px 0 0;
    background-color: var(--wp--preset--color--heading);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .header-account--tab:is(:hover, :focus-within) {
    background-color: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--primary);
  }

  /* No transition of their own: they take the tab's colour as it changes,
     instead of trailing it in white over yellow. */
  .header-account--tab a,
  .header-account--tab a:hover {
    color: inherit;
    transition: none;
  }

  .header-account--menu {
    display: none;
  }

  .burger {
    color: var(--wp--preset--color--primary);
  }

  .burger:hover {
    color: var(--wp--preset--color--accent);
  }

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

  .header-nav {
    display: block;
    align-self: stretch;
    margin-left: auto;
  }

  .header-menu {
    display: flex;
    height: 100%;
    gap: var(--wp--preset--spacing--60);
  }

  .header-menu > li {
    position: relative;
    display: flex;
    align-items: center;
  }

  .header-menu > li > :is(a, .menu-label) {
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--wp--preset--color--primary);
  }

  /* No current-page colour on this level, on purpose: docs/header-menus.md. */
  .header-menu > li > :is(a, button):hover {
    color: var(--wp--preset--color--accent);
  }

  /* The notch under an item belongs to its panel: shown with it, never alone. */
  .header-menu > .menu-item-has-children::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50% 0;
    border: 8px solid transparent;
    border-top-width: 0;
    border-bottom-color: var(--wp--preset--color--primary);
    visibility: hidden;
  }

  .header-menu > li > .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    translate: calc(-50% + var(--panel-shift, 0px)) 0;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: auto 1fr;
    align-content: start;
    column-gap: var(--wp--preset--spacing--80);
    width: max-content;
    max-width: min(
      var(--wp--style--global--wide-size),
      100vw - var(--wp--style--root--padding-left) - var(--wp--style--root--padding-right)
    );
    padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
    border-radius: 32px;
    background-color: var(--wp--preset--color--base);
    visibility: hidden;
  }

  /* Bridges the gap between bar and panel, so the pointer can cross it. */
  .header-menu > li > .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px;
  }

  /* A link opens its panel on focus; a "#" item is a button and opens it on
     click (.is-open, set by menu.js), so its aria-expanded stays true. */
  .header:not(.is-full-menu-open) .header-menu > .menu-item-has-children:is(:hover, :has(> a):focus-within, .is-open):not(.is-dismissed) > .sub-menu,
  .header:not(.is-full-menu-open) .header-menu > .menu-item-has-children:is(:hover, :has(> a):focus-within, .is-open):not(.is-dismissed)::after {
    visibility: visible;
  }

  /* Columns: one per group; the last group leaves room below it for the
     items that are not groups (Contact the Commercial Team). */
  .header-menu > li > .sub-menu > .menu-item-has-children {
    grid-row: 1 / span 2;
  }

  .header-menu > li > .sub-menu > .menu-item-has-children:not(:has(~ .menu-item-has-children)) {
    grid-row: 1;
  }

  .header-menu > li > .sub-menu > li:not(.menu-item-has-children) {
    grid-row: 2;
    margin-top: var(--wp--preset--spacing--50);
  }

  /* Four groups or more: three to a row, the rest wrap below in order. */
  .header-menu > li > .sub-menu:has(> :nth-child(4 of .menu-item-has-children)) {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: none;
    row-gap: var(--wp--preset--spacing--60);
  }

  .header-menu > li > .sub-menu:has(> :nth-child(4 of .menu-item-has-children)) > li {
    grid-row: auto;
  }

  .header-menu > li > .sub-menu:has(> :nth-child(4 of .menu-item-has-children)) > li:not(.menu-item-has-children) {
    grid-column: 3;
    margin-top: 0;
  }

  .header-menu > li > .sub-menu > li > :is(a, .menu-label) {
    display: inline-block;
    margin-bottom: 4px;
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 600;
    color: var(--wp--preset--color--heading);
  }

  .header-menu .sub-menu .sub-menu :is(a, .menu-label) {
    display: inline-block;
    padding-block: 2px;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--contrast);
  }

  .header-menu .sub-menu .sub-menu a:is(:hover, [aria-current="page"]),
  .header-menu > li > .sub-menu > li > a:is(:hover, [aria-current="page"]) {
    color: var(--wp--preset--color--accent);
  }

  /* --- Full menu: a panel under the bar --- */

  .full-menu {
    --menu-heading: var(--wp--preset--color--heading);
    --menu-text: var(--wp--preset--color--contrast);
    --menu-hover: var(--wp--preset--color--accent);
    --menu-chevron: var(--wp--preset--color--accent);
    --menu-group-chevron: var(--wp--preset--color--heading);
    --menu-scrollbar: color-mix(in srgb, var(--wp--preset--color--heading) 30%, transparent);
    --menu-column: clamp(14rem, 20vw, 17.5rem);
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    /* A set width, not one fitted to the content: Safari leaves the
       scrollbar (6px, ::-webkit-scrollbar above) out of a fitted width, so
       opening an item that makes the list scroll wrapped the columns. Three
       columns, their gaps, the side padding and the scrollbar. */
    width: calc(3 * var(--menu-column) + 2 * var(--wp--preset--spacing--80) + var(--wp--preset--spacing--70) + var(--wp--preset--spacing--60) + 6px);
    max-width: 100%;
    max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 152px);
    padding: var(--wp--preset--spacing--60) 20px var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
    border-radius: 32px;
    background-color: var(--wp--preset--color--base);
  }

  .full-menu-nav {
    padding-right: calc(var(--wp--preset--spacing--60) - 20px);
  }

  /* Exactly three columns, in one row: the panel's width above is cut for
     three, and they never wrap, so Safari cannot fold them however the
     scrollbar comes and goes. A fourth column would stick out past the
     panel — change the width's 3 with it. */
  .full-menu-columns {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    column-gap: var(--wp--preset--spacing--80);
  }

  .full-menu .menu-column-list {
    flex: 0 0 var(--menu-column);
  }

  /* The button reaches out to the left by its own padding, so its label
     lines up with the items under it. */
  .full-menu .menu-column-list > li.menu-button > a {
    margin-left: -28px;
  }
}

/* --------- Mobile: the full menu covers the screen --------- */

@media screen and (max-width: 1023px) {
  .header-account--tab {
    display: none;
  }

  .header-account--menu {
    margin-bottom: var(--wp--preset--spacing--50);
  }

  .full-menu {
    --menu-heading: var(--wp--preset--color--base);
    --menu-text: var(--wp--preset--color--base);
    --menu-hover: var(--wp--preset--color--secondary);
    --menu-chevron: var(--wp--preset--color--secondary);
    --menu-group-chevron: var(--wp--preset--color--base);
    --menu-scrollbar: color-mix(in srgb, var(--wp--preset--color--base) 35%, transparent);
    position: fixed;
    inset: var(--wp-admin--admin-bar--height, 0px) 0 0;
    z-index: 1;
    padding-top: 104px;
    background-color: var(--wp--preset--color--primary);
  }

  .header-account--menu,
  .full-menu-nav {
    padding-left: var(--wp--style--root--padding-left);
    padding-right: var(--wp--style--root--padding-right);
  }

  .full-menu-nav {
    flex: 1;
    padding-bottom: var(--wp--preset--spacing--70);
  }

  /* Pinned while the menu is open, so the close button stays in reach even
     when the page was scrolled before opening. */
  .is-full-menu-open .header-bar {
    position: fixed;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--wp--preset--spacing--40));
    left: var(--wp--style--root--padding-left);
    right: var(--wp--style--root--padding-right);
  }

  .full-menu-columns {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--50);
  }

  .is-menu-open {
    overflow: hidden;
  }
}

/* Tablets: the eBanking button keeps its own width; phones stretch it. */
@media screen and (min-width: 600px) and (max-width: 1023px) {
  .full-menu .menu-column-list > li.menu-button > a {
    display: inline-flex;
  }
}

/* --------- Site notice --------- */

.site-notice {
  position: relative;
  padding: 18px 60px;
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--contrast);
  text-align: center;
}

.is-notice-closed .site-notice {
  display: none;
}

.site-notice-text {
  margin: 0;
  line-height: 1.4;
}

.site-notice a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
}

.site-notice a:hover {
  text-decoration: none;
}

.site-notice-close {
  position: absolute;
  top: 50%;
  right: 14px;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--wp--preset--color--primary);
  cursor: pointer;
}

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

/* Phone first: the menus are left to the full menu, and the contact block,
   the BDIC badge and the social strip stack in the middle. */

.footer {
  color: var(--wp--preset--color--primary);
}

.footer-nav {
  display: none;
}

.footer-main {
  padding-top: var(--wp--preset--spacing--70);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-wordmark {
  margin-bottom: var(--wp--preset--spacing--60);
  line-height: 0;
}

.footer-wordmark img {
  width: 80px;
  height: auto;
}

.footer-contact-title {
  display: none;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--50);
  font-size: var(--wp--preset--font-size--normal);
  font-style: normal;
  line-height: 1.6;
}

.footer-postal,
.footer-hours {
  order: -1;
  margin: 0;
}

/* Undoes most of the address block's gap: the hours read as part of the address. */
.footer-postal + .footer-hours {
  margin-top: calc(8px - var(--wp--preset--spacing--50));
}

.footer-reach {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-reach a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
}

.footer-reach a:hover {
  color: var(--wp--preset--color--accent);
}

.footer-reach a::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask: url(../img/phone.svg) no-repeat center / contain;
  -webkit-mask: url(../img/phone.svg) no-repeat center / contain;
}

.footer-reach-email a::before {
  mask-image: url(../img/mail.svg);
  -webkit-mask-image: url(../img/mail.svg);
}

.footer-badge img {
  display: block;
  width: 141px;
  height: auto;
}

.footer-badge-link {
  display: block;
  width: fit-content;
}

.footer-badge--contact {
  margin-top: var(--wp--preset--spacing--70);
}

.footer-badge--bottom {
  display: none;
}

/* Full-bleed strip: reaches out over the page gutter on both sides. */
.footer-social {
  align-self: stretch;
  margin: var(--wp--preset--spacing--70) calc(-1 * var(--wp--style--root--padding-right)) 0 calc(-1 * var(--wp--style--root--padding-left));
  padding: var(--wp--preset--spacing--50) var(--wp--style--root--padding-right) var(--wp--preset--spacing--50) var(--wp--style--root--padding-left);
  background-color: var(--wp--preset--color--secondary);
}

.footer-social-title {
  margin: 0 0 16px;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 500;
}

.footer-social-list {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social-link {
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  mask: url(../img/lin.svg) no-repeat center / contain;
  -webkit-mask: url(../img/lin.svg) no-repeat center / contain;
  transition: opacity 0.2s ease;
}

a.footer-social-link:hover {
  opacity: 0.7;
}

.footer-social-link--facebook {
  mask-image: url(../img/fb.svg);
  -webkit-mask-image: url(../img/fb.svg);
}

.footer-social-link--instagram {
  mask-image: url(../img/inst.svg);
  -webkit-mask-image: url(../img/inst.svg);
}

.footer-bottom {
  padding-top: var(--wp--preset--spacing--50);
  padding-bottom: var(--wp--preset--spacing--50);
}

.footer-copyright {
  margin: 0;
  font-size: var(--wp--preset--font-size--x-small);
  text-align: center;
  color: var(--wp--custom--color--footer-link);
}

.footer-disclaimer {
  margin-top: var(--wp--preset--spacing--40);
  margin-bottom: 0;
  font-size: var(--wp--preset--font-size--xx-small);
  line-height: 1.5;
  text-align: center;
  color: var(--wp--custom--color--footer-link);
}

@media screen and (min-width: 1024px) {
  .footer-main {
    padding-top: 36px;
    padding-bottom: 48px;
    background-color: var(--wp--preset--color--secondary);
  }

  .footer-main-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 376px);
    align-items: start;
    gap: var(--wp--preset--spacing--60);
  }

  /* --- Menus --- */

  .footer-nav {
    display: block;
    padding-top: 42px;
    padding-left: var(--wp--preset--spacing--70);
  }

  .footer-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--wp--preset--spacing--60);
  }

  .footer-menu .menu-column-list > li + li {
    margin-top: 40px;
  }

  .footer-menu .menu-column-list > li:not(.menu-item-has-children) + li:not(.menu-item-has-children) {
    margin-top: 24px;
  }

  .footer-menu .menu-column-list > li > :is(a, .menu-label) {
    display: inline-block;
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 600;
    line-height: 1.4;
  }

  .footer-menu .menu-column-list > li > .sub-menu {
    margin-top: 4px;
  }

  .footer-menu .sub-menu :is(a, .menu-label) {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.65;
    color: var(--wp--custom--color--footer-link);
  }

  .footer-menu a:hover,
  .footer-menu a[aria-current="page"] {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
  }

  /* --- Contact card --- */

  .footer-contact {
    align-items: flex-start;
    padding: 36px var(--wp--preset--spacing--60);
    border-radius: 32px;
    text-align: left;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
  }

  .footer-wordmark,
  .footer-badge--contact {
    display: none;
  }

  .footer-contact-title {
    display: block;
    margin: 0 0 var(--wp--preset--spacing--60);
    font-size: var(--wp--preset--font-size--large);
    font-weight: 400;
    line-height: 1.3;
    color: var(--wp--preset--color--secondary);
  }

  .footer-address {
    gap: var(--wp--preset--spacing--60);
    font-size: var(--wp--preset--font-size--small);
  }

  .footer-postal,
  .footer-hours {
    order: 0;
    line-height: 1.85;
  }

  .footer-postal + .footer-hours {
    margin-top: calc(8px - var(--wp--preset--spacing--60));
  }

  .footer-reach {
    gap: 12px;
  }

  .footer-reach a::before {
    display: none;
  }

  .footer-reach a:hover {
    color: var(--wp--preset--color--secondary);
  }

  .footer-social {
    align-self: auto;
    margin: var(--wp--preset--spacing--70) 0 0;
    padding: 0;
    background: none;
  }

  .footer-social-title {
    margin-bottom: 18px;
  }

  .footer-social-list {
    justify-content: flex-start;
  }

  /* --- Bottom bar --- */

  .footer-bottom {
    padding-bottom: calc(var(--wp--preset--spacing--50) / 2);
  }

  .footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--50);
  }

  .footer-badge--bottom {
    display: block;
  }

  .footer-badge--bottom img {
    width: 175px;
  }

  .footer-copyright {
    font-size: var(--wp--preset--font-size--small);
  }

  .footer-disclaimer {
    font-size: var(--wp--preset--font-size--x-small);
    text-align: left;
  }
}

/* Below the mockup's 1440 the menu columns take the room of the indent,
   and on small laptops some of the card's, so the longer items stay on
   one line. */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
  .footer-nav {
    padding-left: 0;
  }

  .footer-menu .menu-column-list > li > :is(a, .menu-label) {
    font-size: var(--wp--preset--font-size--small);
  }

  .footer-menu .sub-menu :is(a, .menu-label) {
    font-size: var(--wp--preset--font-size--x-small);
  }
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .footer-main-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .footer-contact {
    padding-left: var(--wp--preset--spacing--50);
    padding-right: var(--wp--preset--spacing--50);
  }

  .footer-contact-title {
    font-size: var(--wp--preset--font-size--medium);
  }

  .footer-address,
  .footer-social-title {
    font-size: var(--wp--preset--font-size--x-small);
  }
}
