:root {
  --bt-aqua: #2aa5b6;
  --bt-aqua-light: #d1e8ec;
  --bt-white: #ffffff;
  --bt-grey: #999999;
  --bt-light-grey: #e0e0e0;
  --bt-black: #000000;
  --bs-gray-800: #343a40;

  --theme-body-font-family: "Inter", var(--bs-font-sans-serif);
  --theme-heading-font-family: "Inter", var(--bs-font-sans-serif);

  --bt-border-thin: 1px solid var(--bt-light-grey);
  --bt-border-arrow: 0.125rem solid var(--bt-aqua);

  --bt-header-height: 60px;
  --bt-header-mobile-height: 44px;
  --bt-header-content-width: 1200px;
  --bt-header-mobile-gutter: 0.75rem;
}


/* -------------------------------------------------------
   Base
------------------------------------------------------- */

html {
  background: var(--bt-white);
}


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

.p-header,
.header,
header {
  background: var(--bt-aqua) !important;
}

header {
  z-index: 99990 !important;
}


/* -------------------------------------------------------
   Top government / logo / search bar
------------------------------------------------------- */

.dsg--global-bar {
  position: relative !important;
  z-index: 99990 !important;

  top: auto !important;
  right: auto !important;
  left: auto !important;

  width: 100% !important;
  max-width: none !important;
  height: var(--bt-header-height);

  background: var(--bt-white) !important;
  overflow: visible !important;

  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;

    width: 100vw;
    transform: translateX(-50%);

    background: var(--bt-white);
    pointer-events: none;
  }
}


/* -------------------------------------------------------
   Global bar logo
------------------------------------------------------- */

.dsg--global-bar__logo {
  position: absolute !important;
  z-index: 2;

  top: 50% !important;
  left: max(0px, calc((100vw - 1200px) / 2)) !important;
  transform: translateY(-50%) !important;

  display: flex;
  align-items: center;

  width: auto;
  height: var(--bt-header-height);

  background: transparent !important;

  a {
    display: flex;
    align-items: center;
    height: var(--bt-header-height);

    &::before {
      border: 2px solid var(--bt-white);
    }
  }
}

#mainsitelogo {
  display: block;
  width: 110px;
  height: auto;
}


/* -------------------------------------------------------
   Global bar inner
------------------------------------------------------- */

.dsg--global-bar__inner {
  position: relative;
  z-index: 99990 !important;

  display: flex;
  align-items: center;

  width: 100%;
  max-width: var(--bt-header-content-width);
  height: var(--bt-header-height);
  min-height: var(--bt-header-height);

  margin-left: auto !important;
  margin-right: auto !important;

  background: transparent !important;
  overflow: visible !important;

  &::before {
    background: transparent !important;
  }
}


/* -------------------------------------------------------
   Global bar search/action area
   No transform here because the search modal lives inside this
   element, and transform can break position: fixed overlays.
------------------------------------------------------- */

.dsg--global-bar__actions {
  position: absolute !important;
  z-index: 99990 !important;

  top: 0 !important;
  right: 24px !important;
  bottom: auto !important;
  left: auto !important;

  display: flex;
  align-items: center;

  height: var(--bt-header-height);

  background: transparent !important;
  overflow: visible !important;
  transform: none !important;
}

.dsg--global-bar__actions__title {
  color: var(--bt-white);
}

.dsg--global-bar__actions > ul,
.dsg--global-bar__actions > ul > li,
.dsg--global-bar__actions > ul > li > a {
  display: flex;
  align-items: center;
  height: var(--bt-header-height);
}

.dsg--global-bar__actions > ul,
.dsg--global-bar__actions > ul > li {
  overflow: visible !important;
}

.dsg--global-bar__actions > ul {
  margin: 0;
  padding: 0;
}

.dsg--global-bar__actions > ul > li > a {
  color: var(--bt-white);

  &::before {
    background-color: var(--bt-white);
  }
}

.dsg--global-bar__actions svg {
  display: block;
}


/* -------------------------------------------------------
   Local navigation
------------------------------------------------------- */

.dsg--local-bar {
  background: var(--bt-aqua) !important;
}

.dsg--local-bar ul li::before {
  display: none;
  background-color: var(--bt-white);
}

.dsg--local-bar ul li a {
  color: var(--bt-white);
}

.dsg--local-bar ul li a.active,
.dsg--local-bar ul li a:focus,
.dsg--local-bar ul li a:hover {
  background: var(--bs-gray-800);
  color: var(--bt-white) !important;
  outline-offset: -0.125rem;
}

.dsg--local-bar ul li a:hover::before,
.dsg--local-bar ul li a:hover::after {
  display: none;
}

.downarrowcolour {
  stroke: var(--bt-white) !important;
}


/* -------------------------------------------------------
   Header icons / mobile menu
------------------------------------------------------- */

.homeiconsvghouse {
  fill: var(--bt-white) !important;
}

.homeiconsvg {
  stroke: var(--bt-white) !important;
}

.dsg--home-link-head a {
  color: var(--bt-white);

  &::before {
    border: 2px solid var(--bt-white) !important;
  }
}

.dsg--local-mobile svg .st0 {
  fill: var(--bt-white);
}

.dsg--local-popup {
  background-color: var(--bs-gray-800);
}


/* -------------------------------------------------------
   Global search overlay
   Full viewport search panel
------------------------------------------------------- */

.dsg--global-search {
  position: fixed !important;
  z-index: 99999 !important;

  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;

  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: none !important;

  background: var(--bt-white) !important;
  overflow-y: auto;
  box-sizing: border-box;
}

.dsg--global-search__inner {
  width: 100% !important;
  max-width: 1200px;
  min-height: 100vh;

  margin-left: auto;
  margin-right: auto;

  padding: 4rem 1.5rem 2rem;
  box-sizing: border-box;

  background: var(--bt-white);
}

.dsg--global-search .dsg-close {
  position: absolute;
  z-index: 100000;

  top: 1.5rem;
  right: 1.5rem;
}


/* -------------------------------------------------------
   Mobile header
------------------------------------------------------- */

@media (max-width: 767.98px) {
  .dsg--global-bar {
    height: var(--bt-header-mobile-height) !important;
    min-height: var(--bt-header-mobile-height) !important;
  }

  .dsg--global-bar__logo,
  .dsg--global-bar__actions {
    display: flex;
    align-items: center;

    height: var(--bt-header-mobile-height) !important;
  }

  .dsg--global-bar__logo {
    top: 50% !important;
    left: var(--bt-header-mobile-gutter) !important;
    transform: translateY(-50%) !important;

    a {
      display: flex;
      align-items: center;

      height: var(--bt-header-mobile-height) !important;
      line-height: 1;
    }
  }

  #mainsitelogo {
    width: auto;
    max-height: 24px;
  }

  .dsg--global-bar__actions {
    top: 0 !important;
    right: var(--bt-header-mobile-gutter) !important;
    transform: none !important;
  }

  .dsg--global-bar__actions > ul,
  .dsg--global-bar__actions > ul > li,
  .dsg--global-bar__actions > ul > li > a {
    display: flex;
    align-items: center;

    height: var(--bt-header-mobile-height) !important;
    line-height: 1;
  }

  .dsg--global-search__inner {
    max-width: none;
    min-height: 100vh;
    padding: 3.5rem 1rem 2rem;
  }

  .dsg--global-search .dsg-close {
    top: 1rem;
    right: 1rem;
  }
}

