@import '../blocks/global-navigation/global-navigation.css';
@import '../blocks/global-navigation/features/profile/dropdown.css';
@import '../blocks/global-navigation/utilities/menu/menu.css';
@import '../blocks/global-navigation/features/search/gnav-search.css';

 /* Extracting the essential styles required for rendering the component independently */
:root {
  --navigation-link-color: #035FE6;
  --navigation-link-color--hover: #136FF6;
  --feds-localnav-height: 40px;
  --global-height-nav: 56px;
  --feds-height-nav: 55px;
  --color-white: #FFF;
  --color-black: #000;
  --color-gray-300: #D4D4D4;
  --color-gray-500: #909090;
  --link-color-dark: rgb(59, 99, 251);
  --link-hover-color-dark: rgb(39, 77, 234);
  --color-accent: var(--link-color-dark);
  --color-accent-hover: var(--link-hover-color-dark);
  --modal-close-accent-color: #707070;
  --text-color: #2c2c2c;
  --body-font-family: 'Adobe Clean', adobe-clean, 'Trebuchet MS', sans-serif;
  --global-height-navPromo: 72px;

  --spacing-xxs: 8px;
  --spacing-xs: 16px;
  --spacing-s: 24px;
  --spacing-m: 32px;
  --spacing-l: 40px;
  --spacing-xl: 48px;
  --spacing-xxl: 56px;
  --spacing-xxxl: 80px;

  /* Typography sizes used by the gnav promo (aside.promobar) */
  --type-heading-xxl-size: calc(var(--font-size-multiplier, 1) * 36px);
  --type-heading-xxl-lh: 45px;
  --type-heading-xl-size: calc(var(--font-size-multiplier, 1) * 28px);
  --type-heading-xl-lh: 35px;
  --type-heading-l-size: calc(var(--font-size-multiplier, 1) * 24px);
  --type-heading-l-lh: 30px;
  --type-heading-m-size: calc(var(--font-size-multiplier, 1) * 20px);
  --type-heading-m-lh: 25px;
  --type-heading-s-size: calc(var(--font-size-multiplier, 1) * 18px);
  --type-heading-s-lh: 22.5px;
  --type-body-xl-size: calc(var(--font-size-multiplier, 1) * 22px);
  --type-body-xl-lh: 33px;
  --type-body-l-size: calc(var(--font-size-multiplier, 1) * 20px);
  --type-body-l-lh: 30px;
  --type-body-m-size: calc(var(--font-size-multiplier, 1) * 18px);
  --type-body-m-lh: 27px;
  --type-body-s-size: calc(var(--font-size-multiplier, 1) * 16px);
  --type-body-s-lh: 24px;
  --type-body-xs-size: calc(var(--font-size-multiplier, 1) * 14px);
  --type-body-xs-lh: 21px;
}

.global-navigation, .global-footer, .dialog-modal {
   font-family: 'Adobe Clean', adobe-clean, 'Trebuchet MS', sans-serif;
   line-height: 27px;
   color: #2c2c2c;
   word-wrap: break-word;
   -webkit-font-smoothing: antialiased;
}

.global-navigation .feds-toggle,
.global-navigation .feds-toggle:before {
  line-height: normal;
  font-family: none;
}
  
.global-navigation a, .global-footer a, .dialog-modal a {
  text-decoration: none;
}
  
.dialog-modal a {
  color: var(--navigation-link-color);
}
  
.global-navigation img, .global-footer img {
  max-width: 100%;
  height: auto;
}

.global-navigation {
  font-size: 18px;
}
 
header.global-navigation, header.global-navigation.feds--dark {
  height: var(--global-height-nav);
  visibility: hidden;
}

header.global-navigation + .feds-localnav {
  display: block;
  height: var(--feds-localnav-height);
  font-family: 'Adobe Clean', adobe-clean, 'Trebuchet MS', sans-serif;
}

.feds-promo-aside-wrapper {
  position: sticky;
  top: 0;
  z-index: 11;
  height: var(--global-height-navpromo);
  font-family: var(--body-font-family);
}

.feds-client-desktop-apps {
  display: none;
}

@media (min-width: 900px) {
  .feds-promo-link {
    color: var(--navigation-link-color);
  }

  .feds-promo-link:hover {
    color: var(--navigation-link-color--hover);
  }
  
  .feds--no-border .feds-topnav-wrapper {
    border-bottom: none;
  }

  .feds--full-width .feds-topnav {
    max-width: none;
    padding: 0 15px;
  }

  header.global-navigation + .feds-localnav {
    display: none;
  }

  .mini-gnav .feds-nav-wrapper {
    flex-direction: row-reverse;
  }

  .mini-gnav .feds-navItem--section {
    border: none;
  }

  .mini-gnav .feds-navItem--section.feds-navItem--active > .feds-navLink {
    font-weight: normal;
  }

  .mini-gnav .feds-navItem--section.feds-navItem--active > .feds-navLink:before {
    display: none;
  }

  .mini-gnav .feds-client-search + .feds-nav-wrapper {
    flex-grow: unset;
  }

  .mini-gnav .feds-client-search {
    margin: 0 auto;
  }

  .feds-client-desktop-apps {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.feds-client-search {
  margin-left: auto;
}

/* Typography classes used by the gnav promo (aside.promobar), copied from styles.css */
.heading-xxl,
.heading-xl,
.heading-l,
.heading-m,
.heading-s,
.body-xl,
.body-l,
.body-m,
.body-s,
.detail-xs {
  margin: 0;
}

.heading-xxl {
  font-size: var(--type-heading-xxl-size);
  line-height: var(--type-heading-xxl-lh);
}

.heading-xl {
  font-size: var(--type-heading-xl-size);
  line-height: var(--type-heading-xl-lh);
}

.heading-l {
  font-size: var(--type-heading-l-size);
  line-height: var(--type-heading-l-lh);
}

.heading-m {
  font-size: var(--type-heading-m-size);
  line-height: var(--type-heading-m-lh);
}

.heading-s {
  font-size: var(--type-heading-s-size);
  line-height: var(--type-heading-s-lh);
}

.body-xl {
  font-size: var(--type-body-xl-size);
  line-height: var(--type-body-xl-lh);
}

.body-l {
  font-size: var(--type-body-l-size);
  line-height: var(--type-body-l-lh);
}

.body-m {
  font-size: var(--type-body-m-size);
  line-height: var(--type-body-m-lh);
}

.body-s {
  font-size: var(--type-body-s-size);
  line-height: var(--type-body-s-lh);
}

.detail-xs {
  font-size: var(--type-body-xs-size);
  line-height: var(--type-body-xs-lh);
  font-weight: 700;
}

/* con-button styles, copied from styles.css */
.con-button {
  background-color: transparent;
  border-radius: 16px;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  display: inline-block;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  padding: 5px 14px;
  text-decoration: none;
}

.con-button:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
}

.l-button .con-button,
.con-button.button-l {
  border-radius: 20px;
  font-size: 17px;
  line-height: 20px;
  min-height: 21px;
  padding: 7px 18px 8px;
}

.xl-button .con-button,
.con-button.button-xl {
  border-radius: 25px;
  font-size: 19px;
  line-height: 24px;
  min-height: 28px;
  padding: 10px 24px 8px;
}

.xxl-button .con-button,
.con-button.button-xxl {
  border-radius: 30px;
  font-size: 22px;
  line-height: 27px;
  min-height: 27px;
  padding: 14px 30px 15px;
}

.con-button.button-justified {
  display: block;
  text-align: center;
  width: 100%;
}

.dark .con-button {
  border-color: var(--color-white);
  color: var(--color-white);
}

.light .con-button {
  border-color: var(--text-color);
  color: var(--text-color);
}

.light .con-button:hover,
.light .con-button:active  {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.dark .con-button:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  text-decoration: none;
}

.con-button.blue {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.con-button.blue:hover,
.con-button.blue:active {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

.con-button.fill {
  background: var(--text-color);
  border-color: var(--text-color);
  color: var(--color-white);
}

.con-button.fill:hover,
.con-button.fill:active {
  background: var(--color-black);
  border-color: var(--color-black);
}

.dark .con-button.fill {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--text-color);
}

.dark .con-button.fill:hover,
.dark .con-button.fill:active {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-black);
}

