/**
* Critial CSS styles before React app is mounted. Includes font-face declarations and global styles.
*/

@font-face {
  font-family: 'Manulife JH Sans';
  src:
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-Light.woff2) format('woff2'),
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-Light.woff) format('woff');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Manulife JH Sans';
  src:
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-LightItalic.woff2) format('woff2'),
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-LightItalic.woff) format('woff');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Manulife JH Sans';
  src:
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized.woff2) format('woff2'),
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized.woff) format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Manulife JH Sans';
  src:
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-Italic.woff2) format('woff2'),
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-Italic.woff) format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Manulife JH Sans';
  src:
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-Demibold.woff2) format('woff2'),
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-Demibold.woff) format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Manulife JH Sans';
  src:
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-Demibold.woff2) format('woff2'),
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-Demibold.woff) format('woff');
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'Manulife JH Sans';
  src:
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-Bold.woff2) format('woff2'),
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-Bold.woff) format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Manulife JH Sans';
  src:
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-BoldItalic.woff2) format('woff2'),
    url(/gb/member-portal/fonts/ManulifeJHSans-Optimized-BoldItalic.woff) format('woff');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Manulife JH Serif';
  src:
    url(/gb/member-portal/fonts/ManulifeJHSerif-Optimized-Italic.woff2) format('woff2'),
    url(/gb/member-portal/fonts/ManulifeJHSerif-Optimized-Italic.woff) format('woff');
  font-weight: 400;
  font-style: italic;
}

strong,
b {
  font-family: 'Manulife JH Sans', 'Helvetica', 'Arial', sans-serif;
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

body {
  position: relative;
  background-color: #fafafa;
  height: 100%;
  margin: 0;
  padding: 0;
  color: #34384b;
}

@media only screen and (max-width: 767px) {
  body {
    padding-bottom: 0;
  }
}

#root {
  position: relative;
  min-height: 100vh;
}

#root > #utilityBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: #424559;
}

#root > #sideNav {
  display: block;
  position: fixed;
  top: 40px;
  bottom: 0px;
  left: 0px;
  width: 80px;
  background-color: #424559;
}

#root > #logo {
  position: fixed;
  top: 40px;
  left: 0px;
  height: 80px;
  width: 80px;
  background-color: #00c46e;
}

#root > #footer {
  position: fixed;
  height: 162px;
  bottom: 0px;
  left: 80px;
  right: 0px;
  background-color: #282b3e;
}

@media (max-width: 1024px) {
  #root > #utilityBar {
    height: 60px;
  }
  #root > #sideNav {
    display: none;
  }
  #root > #logo {
    top: 0;
    left: 0;
    height: 60px;
    width: 60px;
  }
  #root > #footer {
    left: 0;
  }
}

.GDS-tab-panel {
  padding: var(--GDS-space-one) 0 !important;
}

.GDS-section-header {
  margin-block-start: 0 !important;
}

.GDS-text-action:hover .GDS-icon {
  --fill-color: currentColor;
  --outline-color: currentColor;
  --chevron-color: none;
}

/*
  the below 2 styles are a workaround fix for padding the header of the Masonry Component on Homepage
  because the Masonry component is imported as 1 component including the header and the cards, the only way
  to specifically target the header of the masonry component w/o affecting other .GDS-section-header's (i.e on Get Care Page)
  is to manually wrap it in a div assign it an ID, and then target the specific ID + .GDS-section-header
*/
.masonry-cards-wrapper .GDS-section-header {
  margin: 3.75rem 0 1.25rem 0 !important;
}

/* 
  I recognize that that we have an existing pattern that essentially does this same thing, however since this is
  temporary - I want to refrain from creating an entire new wrapper component for this
*/
@media (max-width: 768px) {
  .masonry-cards-wrapper .GDS-section-header {
    margin: 2.5rem 0 1.25rem 0 !important;
  }
}
