/* ===========================================================
   Exemplar REITail — shared page furniture
   Base resets, container, buttons, site nav (.ab-nav) and
   CTA cards (.ab-cards) used by the About and Investor
   Relations pages, plus the footer (.ex-footer) used by every
   page (see the _ExemplarNav, _ExemplarCtaCards and
   _ExemplarFooter partials).
   Mobile-first: base styles = phone; media queries scale up
   (the footer section is the exception — see its comment).
   =========================================================== */

:root {
  --bg: #010512;
  --gold: #cba54b;
  --purple: #7379ba;
  --cfg-gold: #d9a631;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Site content column. Below 1024px it carries the same flat 24px side inset
   the landing page uses for every block (see the max-width: 1023.98px section
   of landing.css), so content lines up on one edge across the whole site
   instead of drifting with a percentage. From 1024px up it returns to the
   design's 90% / max-1600 band. */
.ab-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .ab-container {
    width: 90%;
    padding: 0 40px;
  }
}

/* shared arrow + button ------------------------------------ */
.ab-arrow {
  width: 37px;
  height: 10px;
  flex: none;
  overflow: visible;
}

.ab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-anim-border {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  pointer-events: none;
  fill: none;
  stroke: #fff;
  stroke-width: 2px;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition:
    stroke-dashoffset 0.8s ease-in-out,
    opacity 0.3s ease-out;
  opacity: 0;
}

.ab-btn:hover .btn-anim-border,
.ex-btn:hover .btn-anim-border {
  stroke-dashoffset: 0;
  opacity: 1;
  transition:
    stroke-dashoffset 1.5s cubic-bezier(0.1, 1, 0.2, 1),
    opacity 0.1s;
}

.ab-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#abNav > a,
.ab-nav__links > a,
.ab-nav__links > span,
.ab-burger {
  opacity: 0;
  animation: navFadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

#abNav > a {
  animation-delay: 0.1s;
}
.ab-nav__links > *:nth-child(1) {
  animation-delay: 0.2s;
}
.ab-nav__links > *:nth-child(2) {
  animation-delay: 0.3s;
}
.ab-nav__links > *:nth-child(3) {
  animation-delay: 0.4s;
}
.ab-nav__links > *:nth-child(4) {
  animation-delay: 0.5s;
}
.ab-nav__links > *:nth-child(5) {
  animation-delay: 0.6s;
}
.ab-burger {
  animation-delay: 0.2s;
}

/* ============================ Nav ============================ */
.ab-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 50px 20px;
  transition: all 0.3s ease-in-out;
}

#abNav.scrolled {
  background: var(--bg);
  padding: 20px 50px;
}

.ab-nav.nav-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.ab-nav .ab-nav__logo {
  width: auto;
  height: 80px;
  aspect-ratio: 1 / 2.0084;
  transition: all 0.3s ease-in-out;
}

/*.ab-nav__logo { width: 30px; height: 66px; }*/

.ab-nav__links {
  display: none;
}

.ab-nav__links a,
.ab-nav__links span {
  padding: 10px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.ab-nav__links a:hover {
  color: var(--gold);
}
.ab-nav__links .is-active {
  color: var(--gold);
}

/* hamburger → minus toggle */
.ab-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 1;
}
.ab-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  /* Close sequence: Y moves back first (immediate), then width expands (delayed) */
  transition:
    transform 0.2s ease,
    width 0.2s ease 0.2s;
}
.ab-burger span:nth-child(2) {
  align-self: flex-end;
}

/* Open: shrink first, then converge into a minus */
.ab-nav.is-open .ab-burger span {
  width: 50%;
  /* Open sequence: width shrinks first (immediate), then Y moves (delayed) */
  transition:
    width 0.2s ease,
    transform 0.2s ease 0.2s;
}
.ab-nav.is-open .ab-burger span:nth-child(1) {
  transform: translateY(3.5px);
}
.ab-nav.is-open .ab-burger span:nth-child(2) {
  transform: translateY(-3.5px);
}

/* mobile fullscreen overlay */
.ab-nav__panel {
  /* panel gutter; --nav-edge-x mirrors the nav's own padding so the back
     button can line up with the logo. --nav-slide is the horizontal travel
     of the Investor Relations dropdown transition. */
  --panel-pad-x: 50px;
  --nav-edge-x: 20px;
  --nav-slide: 40px;
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 40px var(--panel-pad-x) 80px;
  background: #000;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  /* Close easing: slow start → fast end */
  transition:
    transform 0.55s cubic-bezier(0.7, 0, 1, 0.5),
    visibility 0s linear 0.55s;
}
.ab-nav.is-open .ab-nav__panel {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  /* Open easing: fast start → gentle slow end */
  transition:
    transform 0.55s cubic-bezier(0, 0.55, 0.35, 1),
    visibility 0s linear 0s;
}

.ab-nav__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

/* panel rows: positioned bottom-right, text right-aligned */
.ab-nav__item {
  display: block;
  padding: 14px 0;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
  text-align: right;
  background: none;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
/* The current page's entry is inert, but tapping it closes the panel
   (see the script in _ExemplarNav.cshtml). */
span.ab-nav__item {
  cursor: pointer;
}
a.ab-nav__item:hover,
button.ab-nav__item:hover {
  color: var(--gold);
}
.ab-nav__item.is-active {
  color: var(--gold);
}

/* Top-level rows. --nav-i counts from the top, --nav-r from the bottom;
   both are set per item by the _ExemplarNav partial.
   Panel closed → close cascade: bottom item leaves first. */
.ab-nav__primary,
.ab-nav__ir {
  --d: calc(var(--nav-r) * 0.05s);
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 0.3s ease var(--d),
    translate 0.3s ease var(--d),
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1) var(--d),
    visibility 0s linear calc(0.3s + var(--d));
}

/* Panel open → open cascade: top item first. This is also the state the rows
   return to when the Investor Relations dropdown closes. */
.ab-nav.is-open .ab-nav__primary,
.ab-nav.is-open .ab-nav__ir {
  --d: calc(0.3s + var(--nav-i) * 0.06s);
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transform: translateX(0);
  transition:
    opacity 0.3s ease var(--d),
    translate 0.3s ease var(--d),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) var(--d),
    visibility 0s linear var(--d);
}

/* ---- Investor Relations dropdown (mobile panel only) ---- */

/* The row stays put while the others leave; the submenu hangs off its bottom
   edge, so the row lifts by --nav-sub-shift (measured in the partial's script)
   to make room for the four entries underneath it. */
.ab-nav__irrow {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.14s;
}
.ab-nav.is-open.is-sub .ab-nav__irrow {
  transform: translateY(calc(var(--nav-sub-shift, 0px) * -1));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.16s;
}

.ab-nav__ir {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ab-nav__ir-arrow {
  flex: none;
  opacity: 0.55;
  transition:
    opacity 0.2s ease,
    transform 0.3s ease;
  position: absolute;
  left: -28%;
}
.ab-nav.is-open.is-sub .ab-nav__ir-arrow {
  opacity: 0;
  transform: translateX(-8px);
}

/* Back button: on the Investor Relations row, aligned with the logo's edge */
.ab-nav__back {
  position: absolute;
  top: 50%;
  z-index: 99999999;
  /* pull out of the panel gutter, less the button's own padding, so the arrow
     itself starts on the logo's left edge rather than the tap target */
  left: calc(var(--nav-edge-x) - var(--panel-pad-x) - 8px);
  display: inline-flex;
  align-items: center;
  padding: 12px 8px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate(-14px, -50%);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0s linear 0.24s;
}
.ab-nav__back:hover {
  color: var(--gold);
}
.ab-nav.is-open.is-sub .ab-nav__back {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
  transition:
    opacity 0.3s ease 0.26s,
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.26s,
    visibility 0s linear 0.26s;
}

/* Dropdown open: the other top-level rows fade and slide out to the right */
.ab-nav.is-open.is-sub .ab-nav__primary {
  --d: calc(var(--nav-i) * 0.05s);
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--nav-slide));
  transition:
    opacity 0.26s ease var(--d),
    transform 0.3s cubic-bezier(0.5, 0, 0.9, 0.35) var(--d),
    visibility 0s linear calc(0.3s + var(--d));
}

/* Closing: the script parks the rows on the left for one frame so they slide
   back in from that side rather than retracing their exit */
.ab-nav.is-open.is-sub.nav-park .ab-nav__primary {
  transform: translateX(calc(var(--nav-slide) * -1));
  transition: none !important;
}

/* Submenu entries: hang below the Investor Relations row, slide in from the
   right on open and back out to the right on close */
.ab-nav__sub {
  position: absolute;
  top: 100%;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.ab-nav.is-open.is-sub .ab-nav__sub {
  pointer-events: auto;
}
.ab-nav__sublink {
  --d: calc(var(--nav-i) * 0.05s);
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--nav-slide));
  transition:
    opacity 0.26s ease var(--d),
    transform 0.3s cubic-bezier(0.5, 0, 0.9, 0.35) var(--d),
    visibility 0s linear calc(0.3s + var(--d));
  font-size: 20px !important;
}
.ab-nav.is-open.is-sub .ab-nav__sublink {
  --d: calc(0.3s + var(--nav-i) * 0.055s);
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition:
    opacity 0.34s ease var(--d),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) var(--d),
    visibility 0s linear var(--d);
}

/* Used for one frame when the panel closes, to reset the dropdown off screen */
.ab-nav.nav-noanim .ab-nav__panel * {
  transition: none !important;
}

/* ============================ CFG + BBBEE cards ============================ */
.ab-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ab-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 21px;
  padding: 40px 24px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.ab-card--cfg {
  background: var(--cfg-gold);
}
.ab-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ab-card > *:not(.ab-card__bg) {
  position: relative;
  z-index: 1;
}

.ab-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
}
.ab-card__copy {
  margin: 0;
  max-width: 497px;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
}

/* ============================ Footer ============================ */
/* Single site-wide footer (_ExemplarFooter partial). Unlike the rest of this
   file it is desktop-first, matching the landing design it was lifted from.
   Add .ex-footer--invert for dark backgrounds (Portfolio). */
.ex-footer {
  position: relative;
  width: 100%;
  background: #fff;
  --ex-footer-pt: 142px;
  /* From 1024px the wide lockup sits on its own line above the copy.
     --ex-footer-brand-offset is exactly the height that line adds (mark +
     gap), so pushing .ex-footer__right down by it keeps the nav on the same
     line as the paragraph, where it sat when the mark was beside the copy.
     Derived from the width so the 1024–1279 override only has to change
     --ex-footer-logo-w; 112.88 / 44.94 is the lockup's aspect ratio. */
  --ex-footer-logo-w: 140px;
  --ex-footer-brand-gap: 21px;
  --ex-footer-brand-offset: calc(var(--ex-footer-logo-w) * 44.94 / 112.88 + var(--ex-footer-brand-gap));
  /* Constrain footer content to the same 90% / max-1600 band as the site
     container (.ab-container) so its edges line up with page content;
     max(5%, …) keeps the 90% inset until the 1600px cap takes over. */
  padding: var(--ex-footer-pt) max(5%, calc((100% - 1600px) / 2)) 50px;
  display: flex;
  flex-direction: column;
  gap: 53px;
  z-index: 10;
}

.ex-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.ex-footer__left {
  display: flex;
  flex-direction: column;
  gap: 37px;
  width: 677px;
}

.ex-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ex-footer-brand-gap);
  /* height: 71px; */
}

.ex-footer__brand img {
  height: auto;
  flex: none;
}

/* Stacked lockup (Exemplar-Full), above the copy — hidden from 981px up. */
.ex-footer__brand-mark {
  width: 110px;
  aspect-ratio: 1 / 2.0084;
}

/* Wide lockup (Exemplar-Full-Left), above the copy and left-aligned with it.
   Desktop only: switched on at 1024px, where the footer returns to its
   two-column row. */
.ex-footer__brand-wide {
  display: none;
  width: var(--ex-footer-logo-w);
  aspect-ratio: 112.88 / 44.94;
}

.ex-footer__brand p {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  color: #000;
  /* text-align: center; */
}

/* The landing page also styles a hero .ex-ticker (absolute, 22px, white) and
   the footer ticker carries both classes, so scope to .ex-footer to outrank it
   regardless of stylesheet order. */
.ex-footer .ex-footer__ticker {
  position: relative;
  top: auto;
  /* the hero rule is `bottom: 20px`, which with position: relative painted the
     footer ticker 20px above its own line — off the baseline it shares with the
     policy links and the centred logo opposite it */
  bottom: auto;
  left: auto;
  transform: none;
  z-index: auto;
  padding: 0;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
  color: #000;
}

.ex-footer .ex-footer__ticker .gold {
  color: var(--gold);
}

/* Both tickers (landing hero + footer) are uppercase; the cents unit stays a
   lowercase "c" (ZARc, 1735c). */
.ex-ticker .ex-ticker__cents {
  text-transform: none;
}

.ex-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 97px;
  width: 723px;
}

.ex-footer__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  justify-content: flex-end;
}

.ex-footer__nav a {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ex-footer__policies {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.ex-footer__policies a {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: normal;
  color: #000;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ex-footer__nav a:hover,
.ex-footer__policies a:hover {
  color: var(--gold);
}

.ex-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ex-footer__copyright,
.ex-footer__credit {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: normal;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}

.ex-footer__credit .gold {
  color: var(--gold);
}

@media (max-width: 1023.98px) {
  .ex-footer {
    position: relative;
    transform: none;
    width: auto;
    gap: 36px;
    --ex-footer-pt: 48px;
    padding: var(--ex-footer-pt) 24px 32px;
    background: #fff;
  }

  .ex-footer__top {
    flex-direction: column;
    gap: 36px;
  }

  .ex-footer__left,
  .ex-footer__right {
    width: 100%;
  }

  .ex-footer__right {
    align-items: flex-start;
    gap: 28px;
  }

  .ex-footer__brand {
    height: auto;
    align-items: center;
    flex-direction: column;
    gap: 0;
  }

  .ex-footer .ex-footer__ticker {
    white-space: normal;
  }

  .ex-footer__nav,
  .ex-footer__policies {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 22px;
    width: 100%;
  }

  .ex-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ex-footer__copyright,
  .ex-footer__credit {
    white-space: normal;
  }
}

/* Inverted (dark background): the logo is a gold gradient, so only the
   background and body copy flip. Declared last so it also overrides the
   background re-asserted in the mobile block above. */
.ex-footer--invert {
  background: transparent;
}

.ex-footer--invert .ex-footer__brand p,
.ex-footer--invert .ex-footer__ticker,
.ex-footer--invert .ex-footer__nav a,
.ex-footer--invert .ex-footer__policies a,
.ex-footer--invert .ex-footer__copyright,
.ex-footer--invert .ex-footer__credit {
  color: #fff;
}

/* =====================================================================
   TABLET  ≥ 768px
   ===================================================================== */
@media (min-width: 768px) {
  .ab-cards {
    flex-direction: row;
  }
  .ab-card {
    flex: 1 1 0;
  }
}

@media (max-width: 767.98px) {
  .ex-footer__brand {
    flex-direction: column;
    gap: 30px;
  }
  .ex-footer__brand-mark {
    margin-inline: auto;
    aspect-ratio: unset;
    height: 84px;
  }
}

/* The full ticker string needs ~390px; below ~435px it no longer fits the
   90% container on one line and the break lands inside the date, orphaning
   the year. Give "last close: <date>" its own line instead, and open up the
   leading on the ticker itself so both lines are spaced evenly — a margin on
   the wrapper would only separate the pair, not the block as a whole.
   Scoped to the footer: the landing hero ticker keeps its single-line look. */
@media (max-width: 425px) {
  .ex-footer .ex-footer__ticker {
    line-height: 2;
  }
  .ex-footer .ex-ticker__close {
    display: block;
  }
  .ex-footer .ex-ticker__close .gold {
    white-space: nowrap;
  }
}

@media (min-width: 1800px) {
  .ab-nav {
    /*        height: 101px;*/
    /* padding: 40px 130px 20px; */
    padding: 40px 130px 20px !important;
  }
}

/* =====================================================================
   DESKTOP  ≥ 1200px  — pixel-accurate reproduction of the design
   ===================================================================== */
@media (min-width: 1200px) {
  .ab-nav {
    /*        height: 101px;*/
    /* padding: 40px 130px 20px; */
    padding: 40px 80px 20px;
  }
  .ab-nav.scrolled {
    padding: 20px 130px !important;
  }
  /*    .ab-nav__logo { width: 34px; height: 76px; }*/
  .ab-nav__logo {
    width: auto;
    height: 80px;
    aspect-ratio: 1 / 2.0084;
    transition: all 0.3s ease-in-out;
  }
  .ab-nav.scrolled .ab-nav__logo {
    width: auto;
    height: 56px;
  }
  .ab-burger {
    display: none;
  }
  .ab-nav__panel {
    display: none !important;
  }
  .ab-nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .ab-cards {
    gap: 10px;
  }
  .ab-card {
    min-height: 361px;
    padding: 40px;
  }
  .ab-card__title {
    font-size: 24px;
  }
  .ab-card__copy {
    font-size: 17px;
  }
}

@media (max-width: 1199.98px) {
  .ab-nav,
  #abNav.scrolled {
    padding: 15px 20px !important;
  }
  .ab-nav .ab-nav__logo,
  .ab-nav.scrolled .ab-nav__logo {
    height: 50px;
    transform: none;
  }
}

@media (max-width: 980px) {
  .ex-footer__nav {
    display: none;
  }
  .ex-footer__policies {
    gap: 2px 10px;
    justify-content: space-between;
    text-align: center;
    flex-wrap: nowrap;
  }
  .ex-footer__bottom {
    align-items: center;
  }
  .ex-footer .ex-footer__ticker {
    text-align: center;
  }
  .ex-footer__policies a {
    font-size: 10px;
  }
}

@media (max-width: 1800px) and (min-width: 1024px) {
  /* horizontal padding now comes from the base max(5%, …) rule so the footer
     content stays aligned with .ab-container; only the column gap tightens */
  .ex-footer__top {
    gap: 50px;
  }
}

@media (max-width: 500px) {
  .ex-footer__policies {
    gap: 8px 16px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .ab-nav__panel .ab-nav__item {
    padding: 10px 0;
  }
}

/* Tablet portrait (iPad 768–980px, where the nav row is hidden). The 980px
   block above spreads the four policy links edge to edge with space-between,
   which reads as four stray items rather than one row and pushes the last
   one against the margin. Centre them as a group instead, to match the
   ticker and copyright above and below. Starts at 768px so phones keep the
   space-between / wrapped treatment they have now. */
@media (min-width: 768px) and (max-width: 980px) {
  .ex-footer__policies {
    justify-content: center;
    gap: 2px 32px;
  }
}

/* =====================================================================
   LARGE TABLET / LANDSCAPE  1024px – 1279.98px
   Above the 1023.98px stacked block the footer snaps back to its
   desktop two-column layout, but .ex-footer__left (677px) and
   .ex-footer__right (723px) need ~1450px and there is only ~90vw. The
   columns bottom out at their min-content width and the nowrap nav and
   policy rows spill past the right edge. Keep the two columns side by
   side, make them fluid, and let the link rows wrap.
   Declared last so it outranks the 1024–1800px gap rule above.
   ===================================================================== */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .ex-footer {
    --ex-footer-pt: 90px;
    padding-top: var(--ex-footer-pt);
    /* the left column is only ~44% here, so the mark is scaled down to suit
       it; --ex-footer-brand-offset is derived from this and follows along */
    --ex-footer-logo-w: 110px;
  }

  .ex-footer__top {
    gap: 32px;
  }

  .ex-footer__left {
    width: auto;
    flex: 1 1 44%;
    min-width: 0;
    gap: 28px;
  }

  .ex-footer__right {
    width: auto;
    flex: 1 1 56%;
    min-width: 0;
    gap: 48px;
  }

  /* the fixed 71px brand row is sized for the desktop three-line copy;
     in a narrower column it wraps to five or six and would run into the
     ticker underneath */
  .ex-footer__brand {
    height: auto;
  }

  /* nowrap would push the column past its share of the row */
  .ex-footer .ex-footer__ticker {
    white-space: normal;
  }

  .ex-footer__nav,
  .ex-footer__policies {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

@media (max-height: 667px) and (max-width: 500px) {
  .ab-nav__panel {
    padding-bottom: 40px !important;
  }
}

@media (max-width: 767px) {
  .ex-footer__brand p {
    text-align: center;
  }
}

@media (min-width: 981px) {
  .ex-footer__brand-mark {
    display: none !important;
  }
}

/* The wide lockup belongs to the two-column footer, above the 1023.98px
   stacked block — 981px–1023.98px keeps the no-mark look it has today. */
@media (min-width: 1024px) {
  .ex-footer__brand-wide {
    display: block;
  }

  /* the mark's own line only exists where the mark does, so the matching
     offset on the right column belongs here too */
  .ex-footer__right {
    margin-top: var(--ex-footer-brand-offset);
  }
}

@media (min-width: 1280px) and (max-width: 1499px) {
  .ex-footer__left {
    width: 500px;
  }
}

/* =====================================================================
   Interactive maps (Home + Contact)
   Both maps run with gestureHandling 'cooperative': drag pans, ctrl +
   wheel / pinch zooms, and a plain wheel still scrolls the page. They
   sit behind page copy as dark background layers, so Google's gesture
   hint would wash over the design every time the section scrolls past —
   hide it and surface zooming through the custom control below instead
   (built in landing-map.js / contact-map.js).
   ===================================================================== */
.gm-style-moc {
  display: none !important;
}

/* sits in the map's wrapper, not in map.controls, so it paints above the
   gradient washes both pages lay over the canvas; each page places it */
.ex-mapzoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(1, 5, 18, 0.72);
}

.ex-mapzoom button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.ex-mapzoom button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.ex-mapzoom button:hover,
.ex-mapzoom button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .ex-mapzoom button {
    transition: none;
  }
}
