.active-alerts,
#navbar,
footer {
  display: none !important;
}

body {
  line-height: 1.5;
}

:root {
  --Grey-300: #767676;
  --Navy: #003b5c;
  --Orange: #de7008;
}

.primary-heading {
  font-size: var(--H1, 28px);
  font-style: normal;
  font-weight: 700;
  line-height: 125%; /* 35px */
  text-transform: capitalize;
  @media screen and (min-width: 801px) {
    font-size: var(--H1, 68px);
    font-style: normal;
    font-weight: 700;
    line-height: 125%; /* 85px */
    text-transform: capitalize;
    @media screen and (max-width: 1728px){
      font-size: calc((68px * 0.63) + (68/1728*100vw * 0.37));
    }
  }
}
.secondary-heading {
  font-size: var(--H2, 22px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 10px;
}
.tertiary-heading {
  font-size: var(--H3, 15px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}
.quaternary-heading {
  font-size: var(--Body, 15px);
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 22.5px */
  text-transform: capitalize;
}
.quinary-heading {
  /* H5 */
  font-size: var(--H5, 15px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}
select {
  display: none;
}
.button,
.nice-select .current,
.custom-link a,
.custom-link span {
  font-size: var(--Button, 14px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-family: "Roboto";
}

.small-body {
  font-size: var(--Small-Body, 13px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.custom-button {
  &:before {
    border-radius: 3px;
  }
}

#breadcrumbs {
  margin-block: 13px 25px;
  & > span {
    display: flex;
    align-items: center;
  }
  * {
    line-height: normal;
  }
  .sep {
    margin-inline: 5px;
    /* display: none; */
  }
  & > span > span:first-child {
    /* display: inline-flex;
    align-items: center; */
    /* font-size: 0px; */
    a:first-child,
    span:first-child {
      position: relative;
      padding-left: 24px;
      padding-block: 12px;
      display: inline-block;
      &:before {
        content: "";
        background: url("/wp-content/themes/array-blank/images/evacuation-portal/Breadcrumb Home.svg");
        background-size: contain;
        width: 20px;
        height: 20px;
        display: block;
        margin-right: 3px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
      }
    }
  }
}

#evacuation-portal-container {
  color: white;
  background-color: var(--Navy, #003b5c);
  min-height: 100dvh;
  background-image: url("/wp-content/themes/array-blank/images/evacuation-portal/evacuation-texture.svg");
  background-repeat: repeat;
  background-size: contain;
  padding: 25px var(--Horizontal, 20px) 110px var(--Horizontal, 20px);
  .inform-subtext {
    margin-bottom: 25px;
  }
  .top-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    .desktop-buttons {
      &>*:not(.back-link){
        display: none;
      }
    }
    &.both {
      .logo {
        svg:nth-child(2) {
          display: none;
        }
      }
    }
    .back-link{
      text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-skip-ink: auto;
text-decoration-thickness: auto;
text-underline-offset: auto;
text-underline-position: from-font;
color: white;
padding: 5px 0;
display: flex;
align-items: center;
    }
  }
  .landing-portal {
    display: flex;
    flex-direction: column;
    .portal-link{
      .tertiary-heading{
        @media screen and (max-width: 800px){
          text-align: left;
        }
      }
    }
    a {
      display: flex;
      align-items: center;
      background: var(--White, #fff);
      border-radius: 2px;
      overflow: hidden;
      margin-bottom: 10px;
      .tertiary-heading {
        padding: var(--Space-Between-S, 10px) var(--Space-Between-M, 25px);
        margin: initial;
        text-align: center;
        @media screen and (min-width: 801px){
          padding: var(--Space-Between-S, 10px) var(--Space-Between-M, 25px);
          flex: 1;
display: flex;
align-items: center;
        }
      }
      .icon.desktop {
        display: none;
      }
    }
  }
  .notifications-copy{
    margin-top: 40px;
    .quaternary-heading{
      margin-bottom: 10px;
    }

  }
  .subscribe-to-notifications-container {
    display: inline-flex;
    border-radius: 2px;
    border: 1px solid var(--Grey-100, #ececec);
    padding: var(--Button-Padding-All-Sides, 15px);
    gap: var(--Button-Padding-All-Sides, 15px);
    align-items: center;
    justify-content: flex-start;
    margin-top: 25px;
    input {
      width: 22px;
      height: 22px;
      background: white;
      margin-block: auto;
    }
  }
  &.liveupdates {
    min-height: inherit;
    padding-bottom: 70px;
    & > .primary-heading {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
    .last-update-indicator,
    .next-update-indicator {
      text-align: center;
      margin-bottom: 10px;
    }
    .next-update-indicator {
      margin-bottom: 0px;
    }
  }
  &.emergencyres {
    min-height: inherit;
    padding-bottom: 130px;
    & > .primary-heading {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
    .last-update-indicator,
    .next-update-indicator {
      text-align: center;
      margin-bottom: 25px;
    }
    .next-update-indicator {
      margin-bottom: 0px;
    }
    #resource-group-select {
      display: block;
      width: 100%;
      padding: 12px 15px;
      margin-top: 10px;
      border-radius: 2px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.1);
      color: white;
      font-size: var(--Small-Body, 13px);
      font-family: inherit;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 15px center;
      option {
        background: var(--Navy, #003b5c);
        color: white;
      }
    }
  }
  &.evacuationmap {
    min-height: inherit;
    padding-bottom: 13px;
    & > .primary-heading {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
  }
  &.liveupdates-single,
  &.emergencyres-single {
    background: initial;
    color: var(--Navy);
    .last-updated,
    .location-detail {
      margin-bottom: 25px;
    }
    .desktop-background {
      display: none;
    }
    .the-content {
      margin-bottom: 25px;
      & > *:last-child {
        margin-bottom: 0px;
      }
    }
    .post-button {
      width: 100%;
      a {
        width: 100%;
      }
    }
    #breadcrumbs {
      * {
        color: var(--Navy);
      }
      & > span > span > a:first-child {
        &:before {
          background-image: url("/wp-content/themes/array-blank/images/evacuation-portal/Breadcrumb Home Navy.svg");
        }
      }
    }
  }
}

#page .nice-select {
  width: 100%;
  border-radius: 2px;
  background: var(--White, #fff);
  border: initial;
  color: var(--Navy, #003b5c);
  display: flex;
align-items: center;
  &:after {
    background: url("/wp-content/themes/array-blank/images/evacuation-portal/Polygon 1.svg");
    border: initial;
    transform: initial;
    background-size: contain;
    background-repeat: no-repeat;
    width: 15px;
    background-position: center;
    height: 9px;
    transform-origin: 50% 40%;
  }
  &.open {
    &:after {
      transform: rotate(180deg);
    }
  }
  .list {
    border-radius: 0;
    width: 100%;
    margin: 0;
    .option:first-child {
      display: none;
    }
  }
}

#live-updates-container {
  padding: 20px;
  padding-bottom: 110px;
  padding-top: 0px;
  margin-top: -45px;
  .live-update {
    display: block;
    border-radius: 2px;
    background: var(--Grey-100, #ececec);
    padding: var(--Horizontal, 20px) 50px var(--Horizontal, 20px)
      var(--Horizontal, 20px);
    color: var(--Navy, #003b5c);
    margin-bottom: 10px;
    position: relative;
    .tertiary-heading {
      margin-bottom: 10px;
    }
    .update-time {
      margin-bottom: 20px;
    }
    .content-snippet {
      margin-top: 10px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      align-self: stretch;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .arrow-graphic {
      position: absolute;
      top: 20px;
      right: 20px;
    }
  }
}

#evac-map-container {
  padding: 12px var(--Horizontal, 20px) 110px var(--Horizontal, 20px);
  background: #fff;
  iframe {
    width: 100%;
    height: 400px;
    border: initial;
    display: block;
  }
  .full-screen-button {
    border-radius: 0 0 2px 2px;
    background: var(--Orange, #de7008);
    color: white;
    margin: initial;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: var(--Space-Between-S, 10px);
  }
}

#evac-map-modal {
  position: fixed;
  transform: translateY(100%);
  bottom: 0;
  left: 0;
  height: 100dvh;
  width: 100%;
  transition: 0.3s ease all;
  padding-bottom: 100px;
  background: #fff;
  &.open {
    transform: translateY(0%);
  }
  .close-modal {
    background: var(--Grey-100, #ececec);
    padding: var(--Space-Between-S, 10px) var(--Horizontal, 20px);
    justify-content: flex-end;
    display: flex;
  }
  iframe {
    width: 100%;
    border: initial;
    height: 100%;
  }
}

#bottom-portal {
  position: fixed;
  bottom: 0;
  z-index: 5;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: var(--Grey-100, #ececec);
  padding: 0 10px;
  justify-content: space-between;
  a {
    display: block;
  }
  & > * a {
    padding: 14px 10px 10px 10px;
    color: var(--Grey-300);

    svg {
      margin: auto;
      margin-bottom: 5px;
    }
  }
  .current {
    a.small-body {
      color: var(--Navy, #003b5c);
    }
    svg {
      path {
        fill: var(--Navy, #003b5c);
      }
    }
  }
}

#resource-list {
  padding: 0 var(--Horizontal, 20px) 110px var(--Horizontal, 20px);
  background: var(--Grey-100, #ececec);
  padding-top: 1px;
  .resource-container {
    padding: var(--Horizontal, 20px);
    background: white;
    margin-top: -65px;
    color: var(--Navy, #003b5c);
    .group-accordion:not(:first-child) {
      margin-top: 40px;
    }
    .group-accordion:not(.sticky-group) {
      .group-title {
        position: relative;
        display: flex;
        justify-content: space-between;
        cursor: pointer;
        transition: 0.3s ease margin-bottom;
        margin-bottom: 0px;
        &:after {
          content: "";
          background: url("/wp-content/themes/array-blank/images/evacuation-portal/accordion-toggle-icon.svg");
          background-repeat: no-repeat;
          background-size: contain;
          background-position: center;
          width: 14px;
          height: 14px;
          display: block;
          transition: all 0.3s ease;
        }
      }
      .group-posts {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease;
      }
      .group-posts-inner {
        overflow: hidden;
      }
      &.open {
        .group-title:after {
          background-image: url("/wp-content/themes/array-blank/images/evacuation-portal/accordion-toggle-icon-open.svg");
        }
        .group-title {
          margin-bottom: 20px;
        }
        .group-posts {
          grid-template-rows: 1fr;
        }
      }
    }
    .group-title {
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--Navy, #003b5c);
    }
    .group-text {
      line-height: 2em;
      p {
        margin-bottom: 20px;
      }
      .custom-link {
        a,
        span {
          padding-left: 0px;
        }
      }
      .custom-link:hover > a,
      .custom-link:hover > span {
        color: var(--Orange, #de7008) !important;
      }
      .custom-link:hover .lastword svg {
        filter: initial;
      }
    }
    .subtext {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      align-self: stretch;
      overflow: hidden;
      text-overflow: ellipsis;
      color: var(--Grey-400, #1d1d1d);
      font-weight: 400;
    }
    .group-post a {
      font-weight: 700;
      color: var(--Navy, #003b5c);
      position: relative;
      &:after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        display: block;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("/wp-content/themes/array-blank/images/evacuation-portal/arrow right orange.svg");
        width: 20px;
        height: 20px;
      }
    }
    .group-post {
      margin-bottom: 30px;
      .title {
        margin-bottom: 10px;
      }
      &:last-child {
        margin-bottom: 0px;
      }
    }
  }
}
@media screen and (max-width: 800px) {
  .map-loader {
    padding: 1em 0;
  }
  .evac-map-description {
    margin-bottom: 1em;
  }
}
@media screen and (min-width: 801px) {
  #page {
    #bottom-portal {
      flex-direction: column;
      left: 15px;
      width: initial;
      top: 50%;
      bottom: initial;
      transform: translateY(-50%);
      align-items: center;
      background: white;
      gap: var(--Space-Between-L, 40px);
      padding: var(--Space-Between-L, 40px) 15px;
      border-radius: 5px;

      & > * a {
        padding: 10px;
      }
      svg {
        margin-bottom: 15px;
      }
      .small-body {
        font-size: var(--Button, 15px);
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 0.75px;
        text-transform: uppercase;
      }
      & .current {
        & svg {
          path {
            fill: var(--Orange);
          }
        }
      }
    }
    #evacuation-portal-container {
      padding: 150px 150px 70px calc(var(--Horizontal, 15px) + 142px + 150px);
      @media screen and (max-width: 1728px){
        padding: 150px calc((150px * -0.19) + (150/1728*100vw * 1.19)) calc((70px * 0.33) + (70/1728*100vw * 0.67)) calc(var(--Horizontal, 15px) + 142px + ((150px * -0.19) + (150/1728*100vw * 1.19)));
      }
      .top-branding {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 45px 40px 0 40px;
        display: flex;
        justify-content: space-between;
        z-index: 10;
        @media screen and (max-width: 950px){
          align-items: center;
          padding: 45px 30px 0 30px;
        }
        .logo svg {
          width: auto;
          height: 43px;
        }
        &.both {
          .logo svg {
            &:nth-child(2) {
              display: block;
            }
            &:nth-child(1) {
              display: none;
            }
          }
        }
        .desktop-buttons {
          display: flex;
          gap: 15px;
          /* @media screen and (max-width: 950px){
            flex-direction: column;
            align-items: flex-end;
          } */
          .emc-link,
          .subscribe-cowichan,
          .app-download-link {
            display: block;
            a {
              border-color: white;
              color: white;
              &:after {
                background-image: url("/wp-content/themes/array-blank/images/shell/custom-button-arrow-white.svg");
                filter: initial;
              }
              &:hover {
                &:after {
                  background-image: url("/wp-content/themes/array-blank/images/shell/custom-button-arrow-white.svg");
                }
              }
            }
          }
          .app-download-link {
            a {
              border-color: var(--Orange);
              background: var(--Orange);
            }
          }
          @media screen and (max-width: 1150px){
            .emc-link{
              display: none;
            }
          }
        }
      }
      & > .primary-heading {
        max-width: 805px;
      }
      &.liveupdates,
      &.evacuationmap,
      &.emergencyres {
        padding-bottom: 100px;
        & > .primary-heading {
          justify-content: left;
          svg {
            height: auto;
            width: 44px;
            margin-right: 15px;
          }
        }
        .last-update-indicator,
        .next-update-indicator {
          text-align: left;
        }
        .evac-map-description {
          max-width: 800px;
        }
      }
      &.emergencyres {
        .banner-wrapper {
          display: flex;
          justify-content: space-between;
          align-items: flex-end;
          .nice-select {
            flex: 0 0 330px;
          }
          .last-update-indicator {
            margin-bottom: 0px;
          }
        }
      }
      &.evacuationmap {
        padding-bottom: 75px;
      }
      &.liveupdates-single,
      &.emergencyres-single {
        background: var(--Grey-100, #ececec);
        .post-button {
          width: initial;
        }
        .desktop-background {
          position: absolute;
          z-index: 1;
          display: block;
          width: 100%;
          left: 0px;
          top: 0px;
          height: 500px;
          background: var(--Navy);
          background-image: url("/wp-content/themes/array-blank/images/evacuation-portal/evacuation-texture.svg");
        }
        .post-details-container {
          position: relative;
          z-index: 1;
          background: white;
          padding: var(--Horizontal-Large, 70px);
          & > .primary-heading {
            font-size: var(--H2, 45px);
            font-style: normal;
            font-weight: 700;
            line-height: normal;
          }

        }
        #breadcrumbs {
          * {
            color: white;
          }
          & > span > span:first-child {
            & a:first-child,
            & span:first-child {
              &:before {
                background-image: url("/wp-content/themes/array-blank/images/evacuation-portal/Breadcrumb Home.svg");
              }
            }
          }
        }
      }
      &.emergencyres-single{
        .primary-heading{
          margin-bottom: var(--Space-Between-M, 25px);
        }
        .quaternary-heading{
          margin-top: var(--Horizontal-Large, 70px);
          margin-bottom: var(--Space-Between-M, 25px);
        }
        .the-content{
        }
      }
    }
    #breadcrumbs {
      margin-block: 0 50px;
      position: relative;
      z-index: 1;
    }
    .landing-portal {
      margin-top: 150px;
      flex-direction: row;
      gap: 40px;
      @media screen and (max-width: 1728px){
        margin-top: calc((150px * 0.13) + (150/1728*100vw * 0.87));
        gap: calc((40px * 0.13) + (40/1728*100vw * 0.87));
      }
      @media screen and (max-width: 1400px){
        flex-wrap: wrap;
      }
      a {
        flex-direction: column;
        margin: 0px;
        padding: var(--Horizontal-Large, 70px) var(--Space-Between-L, 20px);
        flex: 0 0 calc(25% - 40px * 3 / 4);
        gap: 25px;
        @media screen and (max-width: 1728px){
          padding: calc((70px * 0.13) + (70/1728*100vw * 0.87)) var(--Space-Between-L, 20px);
          flex: 0 0 calc(25% - ((40px * 0.13) + (40/1728*100vw * 0.87)) * 3 / 4);
        }
        @media screen and (max-width: 1400px){
          flex: 0 0 calc(50% - ((40px * 0.13) + (40/1728*100vw * 0.87)) * 1 / 2);
        }
        /* &:nth-child(4) {
          display: none;
        } */
        .icon {
          display: none;
          &.desktop {
            display: block;
          }
          svg {
            path:first-child {
              fill: white;
            }
            path:not(:first-child),
            square:not(:first-child) {
              fill: var(--Navy);
            }
          }
        }
      }
      &.map {
        margin-top: 1em;
      }
    }
    .inform-subtext {
      font-size: 21px;
      font-style: normal;
      font-weight: 400;
      line-height: 175%;
    }
    .subscribe-to-notifications-container, .notifications-copy {
      display: none;
    }
    #live-updates-container,
    #evac-map-container,
    #resource-list {
      padding: 0 0px 70px calc(var(--Horizontal, 15px) + 142px + 150px);
      margin-right: 150px;
      @media screen and (max-width: 1728px){
        padding: 0 0px 70px calc(var(--Horizontal, 15px) + 142px + ((150px * -0.19) + (150/1728*100vw * 1.19)));
        margin-right: calc((150px * -0.19) + (150/1728*100vw * 1.19));
      }
    }
    #resource-list {
      padding-top: 1px;
      .resource-container {
        padding: var(--Horizontal-Large, 70px);
        .tertiary-heading {
          font-size: 28px;
          font-style: normal;
          font-weight: 700;
          line-height: normal;
          text-transform: capitalize;
        }
      }
    }
    #live-updates-container,
    #evac-map-container {
      &:before {
        content: "";
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background: var(--Grey-100, #ececec);
        z-index: -1;
      }
      .live-update {
        background: white;
        padding: var(--Horizontal-Large, 70px);
        margin-bottom: 25px;
        & > .tertiary-heading {
          font-size: var(--H2, 45px);
          font-style: normal;
          font-weight: 700;
          line-height: normal;
          margin-bottom: 20px;
          text-transform: initial;
        }
      }
    }
    #evac-map-container {
      margin-top: -20px;
      position: relative;
      iframe {
        height: 900px;
      }
      .full-screen-button {
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 0px;
        gap: 0;
        padding: 0;
        width: 35px;
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 100px;
        background: white;
        cursor: pointer;
        svg {
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          path {
            stroke: var(--Orange);
          }
        }
      }
    }
    #evac-map-modal {
      padding: 0px;
      z-index: 100;
      .close-modal {
        width: 35px;
        height: 35px;
        position: absolute;
        right: 25px;
        top: 25px;
        border-radius: 100px;
        background: white;
        gap: 0;
        padding: 0;
        left: initial;
        cursor: pointer;
        z-index: 1;
        svg {
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          path {
            fill: var(--Orange);
          }
        }
      }
      iframe {
        position: relative;
      }
    }
  }
}

.postid-1057192{
  .post-details-container > .primary-heading{
    max-width: 1100px;
  }
  .the-content{
    max-width: 740px;
  }
}

.download-app-resource-content{
  margin-top: 70px;
  .os-toggle{
    display: flex;
    align-items: center;
    gap: var(--Vertical-Regular, 20px);
    @media screen and (max-width: 800px){
      gap: var(--Vertical-Regular, 13px);
    }
    .toggle-container{
      display: flex;
      align-items: center;
      padding: 2px;
      border-radius: 15px;
      background: var(--Grey-100, #ECECEC);
      color: var(--Grey-400, #1D1D1D);

      .button{
        padding: var(--Button-Padding-All-Sides, 15px);
        cursor: pointer;
      }
      .active{
        border-radius: 15px;
        background: var(--Orange, #DE7008);
        color: white;
      }
    }
  }
  .iphone-content, .android-content{
    display: none;
    margin-top: 40px;
    &.active{
      display: block;
    }
  }
}
.custom-link.back-button {
  margin-bottom: 40px;
  margin-top: 0px;
  a {
    background-image: initial;
    padding-left: 0;

    direction: rtl;
    padding-left: 21px;
    padding-right: 0;
    transition: 0.2s ease all;
    .lastword {
      svg {
        transform: rotate(180deg);
        margin-right: -10px;
      }
    }
  }
  &:hover {
    a {
      padding-left: 41px;
      .lastword {
        svg {
          transform: rotate(180deg);
          margin-right: 10px;
        }
      }
    }
  }
}
.media-container {
  margin-bottom: 2em;
}
