 :root {
  --eirene-footer-bg-solid: #0d1a41;
 }

@media only screen {
.footer {
  margin-top: auto;
  background: var(--eirene-footer-bg-solid, #0d1a41);
  
  padding: 2.2rem var(--page-gutter);
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;

            position: relative;
            padding-top: 2rem;
    padding-bottom: 2rem;
}

.background-image {
        background-image: linear-gradient(
    /* top, transparent */
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0.5)
    ), url('../light-bg.svg');
  position:inherit;
	height: auto;
	background-size: calc(100vw + 9rem);
	background-position: center top;
  background-repeat: no-repeat;
  
}
}

@media only screen and (min-width: 1024px) {
  .background-image {
    background-image: linear-gradient(
      /* top, transparent */
      rgba(255, 255, 255, 0.1), 
      rgba(255, 255, 255, 0.5)
      ), url('../light-bg_g.svg');
    min-width: 100vw;
    overflow: hidden;
    position: relative;
    left: 0;
  }
}

.lang {
	margin: 0 1.6rem 0 0;
  display: inline-grid;
  place-items: center;
  padding: 0 calc(.72rem + 2px);
  height: 2.2rem;
  min-height: 2.2rem;
  border-radius: 999px;
  box-sizing: border-box;
/*	border: 0.5px solid grey;*/
	cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
  background: #09122f ;
  border: 1px solid rgba(255, 255, 255, 0.15) ;
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  backdrop-filter: saturate(150%) blur(8px);
  box-shadow: none;
  color: #f2f5fb;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.lang:hover {
/*	border: 2px solid cornflowerblue; */
  box-shadow: inset 0 0 0 2.5px #04B75E, 0 0 12px rgba(4, 183, 94, 0.45);
  background: #09122f ;
  color: #f7fffb;
}

.lang:visited,
.lang:focus,
.lang:active {
  color: #f2f5fb;
  text-decoration: none;
}

.footer a:not(.footer__list__link):not(.lang) {
/*    color: #8cade0;*/
  color: #43423D;
}

.footer a:focus {
    outline: thin dotted;
	color: #2c83c2;
}

.footer a:active,
.footer a:hover {
    outline: 0;
}


@media only screen {
.up-btn {
    background-color: #0D1941;
    cursor: pointer;
    background-image: url("../assets/bg-up.svg");
    background-repeat: no-repeat;
    background-position: center 20px;
    border-radius: 50%;
    display: block;
    left: 89%;
    margin: 0 auto;
    position: absolute;
    right: 11%;
    top: -35px;
    height: 85px;
    width: 85px;
  	padding: 0;
	  border: 0;
	  text-decoration: none;
}
}

@media (min-width: 768px) {
  .footer {
  margin-top: auto;
    padding: 2.2rem var(--page-gutter);
  }
	
}

@media (max-width: 1023px) {
  .menu-active footer {
    opacity: 0;
  }
	.up-btn {
	 right: 0;
    left: 0;
	    background-position: center 15px;
		background-size: 35px;
    top: -30px;
    height: 65px;
    width: 65px;
}
}

@media (min-width: 1280px) {
  .footer {
  margin-top: auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }
}

@media only print {
  .footer {
  margin-top: auto;
    display: none
  }
}

@media only screen {
.footer-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; /* block */
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
}

      .footer__mobile-top-row {
    display: inline-grid !important;
    grid-template-columns: min-content 1fr 1fr !important;
    align-items: center !important;
    gap: 0.6rem;
    margin: 0;
    margin-bottom: 0;
    margin-right: 1.5rem;
    width: max-content;
    max-width: 100%;
  }
      .footer__mobile-top-row > div:first-child {
        flex-shrink: 0;
        display: flex;
        align-items: center;
      }

@media only screen and (min-width: 768px) {
  .footer-container {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    max-width: calc(114.6rem - 2 * var(--page-gutter));
    margin: 0 auto;
  }
}

@media only screen and (min-width: 1280px) {
  .footer-container {
    max-width: calc(144.6rem - 2 * var(--page-gutter));
    margin: 0 auto;
  }
}

@media only screen and (min-width: 768px) {
  .footer__mobile-top-row {
    display: inline-grid !important;
    grid-template-columns: min-content 1fr 1fr !important;
    align-items: center !important;
    gap: 0.6rem;
    margin: 0;
    margin-bottom: 0;
    margin-right: 1.5rem;
    width: max-content;
    max-width: 100%;
  }
}

/* ----------- */
/* Footer logo */
/* ----------- */

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  position: relative;
  margin-bottom: 0;
}

.footer_flag {
	cursor: auto;
  display: inline-block;
  vertical-align: middle;
	background-image: url("../assets/flag_ca.svg");
    background-repeat: no-repeat;
  background-size: contain;
    background-position: center;
	background-blend-mode: overlay;
    margin: 0;
  position: static;
  width: 22px;
  height: 16px;
  max-width: none;
	
	-webkit-border-radius: 4px;
    -moz-border-radius: 4px;
  border-radius: 2px;
	border: none;
	
  padding: 0;
	text-decoration: none;
	/*	filter: gray; /* IE6-9 */
   /* -webkit-filter: grayscale(20%); */
}

@media (min-width: 768px) {
  .footer__logo {
    margin-bottom: 0;
  }

  .footer_flag {
	  vertical-align: middle;
  }
}

/* ----------- */
/* Footer dev */
/* ----------- */

.footer__dev {
  margin-bottom: 0rem;
  padding-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer__dev img {
  width: 3.28rem;
  height: 3.28rem;
  max-width: 3.28rem;
  flex: 0 0 3.28rem;
  display: inline-block;
  vertical-align: middle;
  padding-left: 0;
}

.footer__dev svg {
  width: 3.28rem;
  height: 3.28rem;
  max-width: 3.28rem;
  flex: 0 0 3.28rem;
  display: inline-block;
  vertical-align: middle;
  padding-left: 0;
}

.footer__dev:hover {
  color: #8cade0;
  cursor:pointer;
}

@media (min-width: 768px) {
  .footer__dev {
    margin-bottom: 0;
    padding-top: 0;
    position: relative;
	margin-right: 2%;
	text-align: end;
	justify-content: flex-end;
	  
  }

}

/* ----------- */
/* Footer list */
/* ----------- */

.footer__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: block;
   max-width: 100px;
	margin-left: auto; 
	
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-ordinal-group: 3;
      -ms-flex-order: 2;
          order: 2;
  margin-bottom: 2.8rem;
	
}

@media (max-width: 767px) {
  .footer__list__item:first-child:before {
    display: none;
	  margin:0;
  }

  .footer__list__item {
    margin: .4rem 0 0 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
	  		top: 0 !important;
  }
	
 .footer__list__item:nth-child(2) {
    position: relative;
    margin-left: 0rem;
    margin-top: .4rem;
    padding-left: 0;
	 top: 0;
  }

  .footer__list__link {
  cursor: pointer !important;
  z-index: 10;
  position: relative;
    display: inline-grid;
    place-items: center;
    line-height: 1;
  }
}

@media (min-width: 768px) {
  .footer__list {
    width: auto;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
            order: 3;
    margin-bottom: 0;
  }
	
 .footer__list__item {
		top:-1.1em;
	}
	
 .footer__list__item:nth-child(2) {
    position: relative;
    margin-left: 2rem;
    padding-left: 2rem;	 
	 margin-bottom: 1.5rem;
	 
  }
}

.footer__list__item {
  position: relative;
  margin: 3.5rem 0 0 0;
  padding-left: 1rem;
  padding-right: 1rem;
 margin-bottom: 1.5rem;	 
}


.footer__links-row::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  
}

.footer__links-row .footer__list__item,
  .footer__mobile-top-row .footer__list__item {
  -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
}





.footer__list__link {
  cursor: pointer !important;
  z-index: 10;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-grid;
  place-items: center;
  align-content: center;
  padding: 0 calc(.72rem + 4px);
  height: 2.2rem;
  min-height: 2.2rem;
  box-sizing: border-box;
  
  border-radius: 999px;
  background: #09122f ;
  border: 1px solid rgba(255, 255, 255, 0.15) ;
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  backdrop-filter: saturate(150%) blur(8px);
  box-shadow: none;
  
  text-decoration: none;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05rem;
  color: #f2f5fb;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  text-align: center;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.footer__links-row .footer__list__link:hover,
.footer__links-row .footer__list__link:active,
.footer__links-row .footer__list__link:focus,
.footer__list__link:hover,
.footer__list__link:active,
.footer__list__link:focus {
  background: transparent ;
  border: 1px solid rgba(255, 255, 255, 0.15) ;
  box-shadow: none;
  color: #ffffff;
  outline: none;
}


.footer__list__link:focus-visible {
  outline: 2px solid rgba(173, 219, 255, 0.95);
  outline-offset: 2px;
}



/* ------------ */
/* Social links */
/* ------------ */

.social-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

footer .social-links {
  -webkit-box-ordinal-group: 4;
      -ms-flex-order: 3;
          order: 3;
  margin-bottom: 3.2rem;
}

@media (min-width: 768px) {
  footer .social-links {
    margin-left: 3.7rem;
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
    margin-bottom: 0;
  }
}

.social-links__item {
  margin-left: 3.7rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.social-links__item:first-child {
  margin-left: 0;
}

@media (min-width: 768px) {
    .social-links__item {
      margin-left: 2.2rem;
    }

    .social-links__item:first-child {
      margin-left: 0;
    }
}

.icon-hover {
  -webkit-transition: fill 0.2s;
  -o-transition: fill 0.2s;
  transition: fill 0.2s;
}

.social-links__item:hover .icon-hover {
  fill: #27aae1;
}

.icon-twitter {
  width: 2.6rem;
}

.icon-youtube {
  width: 2.5rem;
}

.icon-linkedin {
  width: 2.4rem;
}

@media (min-width: 768px) {
  .icon-twitter {
    width: 2.2rem;
    height: 1.8rem;
  }

  .icon-youtube {
    width: 2.2rem;
    height: 1.5rem;
  }

  .icon-linkedin {
    width: 2.1rem;
    height: 1.8rem;
  }
}

/* --------- */
/* Copyright */
/* --------- */

.footer__copyright {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.4rem;
  font-weight:400;
/*  line-height: 1;*/
  letter-spacing: 0.05rem;
/*  color: #949494;*/
  color: #d6dbe4;
  text-align:end;
  -webkit-box-ordinal-group: 5;
      -ms-flex-order: 4;
          order: 4;
			z-index: 1;
  -moz-osx-font-smoothing: grayscale;
}

.footer .notes {
  color: #d6dbe4;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer {
  margin-bottom: 0 !important;
}

.footer__dev {
  color: #d6dbe4;
}

@media (min-width: 768px) {
  .footer__copyright {
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
.footer__list__item {
  padding-left: 2rem;
  padding-right: 2rem;
}
}















@media (max-width: 768px) {
  .footer__mobile-top-row {
    display: inline-grid !important;
    grid-template-columns: min-content 1fr 1fr !important;
    align-items: center !important;
    gap: 0.6rem;
    margin: 0;
    margin-bottom: 0;
    margin-right: 1.5rem;
    width: max-content;
    max-width: 100%;
  }
}



/* Uniform styling for the home button to EXACTLY match language button (Liquid glass pill) */
.footer__mobile-top-row .footer__list__item {
  flex: none !important;
  margin: 0 !important;
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

.footer__mobile-top-row .footer__list__link {
  cursor: pointer !important;
  z-index: 10;
  position: relative;
  display: inline-grid !important;
  place-items: center !important;
  align-content: center !important;
  width: 100% !important; 
  text-align: center;
  padding: 0 calc(.72rem + 2px) !important;
  height: 2.2rem !important;
  min-height: 2.2rem !important;
  box-sizing: border-box !important;
  
  /* Mirror the .lang pill styles exactly */
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  -webkit-backdrop-filter: saturate(150%) blur(8px) !important;
  backdrop-filter: saturate(150%) blur(8px) !important;
  box-shadow: none;
  
  color: #f2f5fb !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 1.3rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0.05rem !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

/* Subtly differentiate hover state but absolutely NO neon green */
.footer__mobile-top-row .footer__list__link:hover,
.footer__mobile-top-row .footer__list__link:focus,
.footer__mobile-top-row .footer__list__link:active {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: none;
}

/* ensure the language form takes the full grid cell */
.footer__mobile-top-row .language-selector {
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
}

.footer__mobile-top-row .language-selector .sc-select {
  width: 100% !important;
  box-sizing: border-box !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
  padding: 0 !important;
  border: none !important; /* Hide original .sc-select fallback border */
}

/* Force the actual .lang button to stretch exactly like home button */
.footer__mobile-top-row .lang {
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

.footer__logo {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer__mobile-top-row > div:first-child {
  display: flex;
  align-items: center;
  height: 100%;
}









@media (max-width: 768px) {
  .footer__mobile-top-row {
    display: inline-grid !important;
    grid-template-columns: min-content 1fr 1fr !important;
    align-items: center !important;
    gap: 0.6rem;
    margin: 0;
    margin-bottom: 0;
    margin-right: 1.5rem;
    width: max-content;
    max-width: 100%;
  }
}










@media (max-width: 768px) {
  .footer__mobile-top-row {
    margin: 0 auto 1.2rem auto !important;
    justify-content: center !important;
  }
}


/* Responsive Footer Button Layout for Mobile */
/* Make the children links look like inner pill tokens */
.footer__links-row .footer__list__link {
  cursor: pointer !important;
  z-index: 10;
  position: relative;
  white-space: nowrap !important;
  font-size: 1.45rem !important;
  touch-action: manipulation;
  flex-shrink: 0 !important;

  background: transparent !important;
  border: transparent 1px solid !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.footer__links-row .footer__list__link:hover,
.footer__links-row .footer__list__link:focus,
.footer__links-row .footer__list__link:active {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 2px 4px rgba(0,0,0, 0.1) !important;
  color: #ffffff !important;
}





@media (max-width: 850px) {
  
  
  .footer__list__link {
    font-size: 1.3rem !important;
    padding: 0 2.2rem !important;
  }
}




@media (min-width: 1025px) {
  
}


/* Segmented Outer Wrapper (Side-by-side Layout) */
.footer__pills-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.8rem !important;
  margin: 1.5rem auto 2.5rem auto !important;
  width: 100% !important;
  max-width: 84rem !important;
  flex-wrap: wrap !important;
}

@media (min-width: 1025px) {
  .footer__pills-wrapper {
    max-width: 114.6rem !important;
    flex-wrap: nowrap !important; /* Force nowrap only on huge desktops if desired, or let it wrap, but requested side-by-side */
  }
}

/* Individual Segmented Group (Compact) */
.footer__links-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.6rem !important;
  width: max-content !important; /* Make purely compact */
  justify-content: center !important;
  margin: 0 !important; /* Flex handles centering */
}

@media (max-width: 850px) {
  .footer__pills-wrapper {
    margin: 1.2rem auto 2.2rem auto !important;
    gap: 0.6rem !important;
  }
  .footer__links-row {
    gap: 0.5rem !important;
  }
}

@media only screen and (min-width: 768px) {
  .footer__pills-wrapper {
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }
  .footer__links-row .footer__list__link {
    font-size: 1.6rem !important;
    height: 2.8rem !important;
    min-height: 2.8rem !important;
    display: inline-grid !important;
    place-items: center !important;
    align-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    padding: 0 1.6rem !important;
    margin: 0 !important;
  }
}


/* Mobile styles remain unaffected */

/* Hide legacy text node immediately so it never flashes before JS cleanup. */
.footer__dev.footer__copyright {
    font-size: 0 !important;
    line-height: 0 !important;
}

.footer__dev.footer__copyright img[alt="ag-web"] {
    vertical-align: middle;
}

/* Wide screen specific overrides */
@media (min-width: 1024px) {
    /* Break .footer__copyright out of the flow to follow the up-btn */
    .footer__copyright {
        position: absolute !important;
        left: 89% !important;
        right: 11% !important;
        margin: 0 auto !important;
        top: 70px !important;
        width: 85px !important;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        height: auto;
        padding: 0 !important;
    }

    .footer__dev.footer__copyright {
        /* Let it shrink to just the image size, then center it in the 85px container */
        width: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        left: auto !important;
        right: auto !important;
        position: relative !important;
        top: auto !important;
        justify-content: center !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .footer__dev img[alt="ag-web"] {
        margin: 0 !important;
    }

    .ag-web-tooltip {
        /* Now that the container is tight around the SVG, right 100% sticks it exactly next to it */
        right: 100% !important;
        margin-right: 4px !important;
    }
}
