/*Safari Hack fixing <a> underline/text-decoration wrapping*/
@supports (background: -webkit-named-image(i)) {
  .mb-2 {
    padding-bottom: calc(var(--spacing) * 2);
    margin-bottom: 0;
  }
}

header > nav + section:has(#search-input-inline-parent) {
  flex-direction: column;
  margin-bottom: 1rem;
}

#application-logo-wrapper,
#application-logo-wrapper-cobranded {
	justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}
/* removed to fix centered logos when welcome message is present, keeping for debugging to re-write rule if needed
header > nav + section:has(#search-input-inline-parent) div > a > div {
  justify-content: center;
}
*/

.health-advocate-contact {
  margin: auto;
}

#welcome-ribbon > header {
  margin-right: 1rem;
}

#footer-modules a {
  color: var(--primary-color);
}

/* global hides */
.program-1002 #upcoming-webinars,
.program-1003 #upcoming-webinars,
.program-1005 #upcoming-webinars,
.program-3001 #upcoming-webinars,
.program-lstk-demo #upcoming-webinars {
  display: none;
}

/* financial */
.program-1002 .collection #collections-tab-health-advocate,
.program-1002 .collection .collections-accordion-health-advocate-webinars {
  display: none;
}

/* emergency */
.program-1003 #footer-collections > div > div > p {
  display: none;
}
/* end global hides */

/* Featured button customization */
/* Emergency */
.program-1003 .hero-featured a {
  background-color: #be1515;
  border-radius: 30px;
}
/* Grief */
.program-1005.group-11384600 .hero-featured {
  gap: 10px;
}

.program-1005:not(.group-10865280):not(.group-10848168) .hero-featured a {
  background: none;
  border: none;
  color: blue;
  box-shadow: none;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 255, 0.3);
  text-underline-offset: 6px;
  font-weight: normal;
}

.program-1005:not(.group-10865280):not(.group-10848168) .hero-featured a:hover {
  text-decoration-color: rgba(0, 0, 255, 1);
}
/* END Featured button customization */

/*Resource/Custom Page boilerplate*/
#breadcrumb-nav .breadcrumb-item:first-of-type {
  display: none;
}

#breadcrumb-nav .breadcrumb-item .text-zinc-800 {
  color: white !important;
}

.resource-hero {
  align-content: center;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  min-height: 300px;
  padding: 1rem;
}

.resource-hero-text {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-family: var(--primary-font);
  margin: auto;
}

.resource-hero-text > h1 {
  margin: 0 !important;
  font-size: 1.75rem !important;
}

.resource-hero-text > h2 {
  font-size: 1.25rem !important;
}

.resource-content.two-column ul {
  margin: 0 0 1rem 0;
}

.resource-content-heading {
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-primary);
}
/* END Resource/Custom Page boilerplate*/

#communication-center h1.resource-content-heading {
  color: var(--primary-color);
}

#communication-center h2.resource-content-subheading {
  font-weight: normal;
}

#communication-center .accordion {
  width: 90%;
}

#communication-center .accordion-subheading {
  border-bottom: 1px solid black;
  margin: 1rem 0;
}

#communication-center .accordion > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid black;
  width: 100%;
}
#communication-center .accordion > button > div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#communication-center h3 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: var(--primary-font);
  font-weight: normal;
}

#communication-center h3 span {
  font-weight: normal;
  font-size: 12px;
}

#communication-center button svg {
  font-weight: normal;
  font-size: 20px;
  color: black;
  opacity: 0.6;
}

#communication-center button:hover svg {
  opacity: 1;
}

#communication-center .accordion {
  break-inside: avoid;
}

#communication-center .accordion ul li {
  display: list-item;
}

#communication-center .accordion ul li:nth-child(n + 4) {
  display: none;
}

#communication-center .accordion ul.expanded li {
  display: list-item;
}

#communication-center .accordion ul li a {
  color: rgb(0 0 255);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 255, 0.3);
}

#communication-center .accordion ul li a:hover {
  text-decoration-color: rgba(0, 0, 255, 1);
}

.accordion button[data-open="true"] .block {
  display: none !important; /* Hide the 'carrot down' SVG when open */
}

.accordion button[data-open="true"] .hidden {
  display: block !important; /* Show the 'carrot up' SVG when open */
}

/* financial fitness center */
.financial-fitness * {
  font-family: var(--primary-font);
}

.financial-fitness #wrapper {
  padding: 1rem;
}

#ffc-header {
  background: rgb(41, 127, 177);
  border-radius: 4px;
  padding: 1rem;
}

#ffc-header h1 {
  margin: 0;
}

#ffc-header img {
  width: 50%;
  min-width: 240px;
  max-width: 460px;
}

.financial-fitness #tiles {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  margin: auto;
}

.financial-fitness h2 {
  color: orange;
}

.financial-fitness #section1 p {
  width: 90%;
  text-align: center;
  font-weight: lighter;
}
/* END financial fitness center */

/* Module Overview pages */
.overview-tile-wrapper {
  display: flex;
  justify-content: space-evenly;
}

.overview-tile {
  border: 1px solid #c7c7c7;
  height: 250px;
  width: 100%;
}

.overview-tile:hover {
  border: 1px solid var(--primary-color);
  transition: border 0.2s ease-in-out;
}

.overview-tile-footer {
  background: rgba(255, 255, 255, 0.6);
  padding: 1rem 2rem 1rem 1rem;
  height: 60%;
}

.overview-tile-footer div:has(svg) {
  width: 30%;
}

.overview-tile-footer div:has(h3) {
  width: 100%;
}

.overview-tile-footer div svg {
  width: 100%;
  height: auto;
}

.overview-tile h3 {
  font-size: var(--text-xl);
  font-family: var(--primary-font);
  text-decoration: underline;
  text-decoration-color: color-mix(
    in oklab,
    var(--color-accent-content),
    transparent 80%
  );
  text-underline-offset: 6px;
}

.overview-tile:hover h3 {
  text-decoration-color: currentColor;
}

.overview-tile p {
  font-family: var(--secondary-font);
  font-size: 1rem;
}
/* END Module Overview pages */
@media screen and (min-width: 768px) {
  header > nav + section:has(#search-input-inline-parent) {
    flex-direction: row;
    margin-bottom: 0;
  }

  .health-advocate-contact {
    margin: 0;
  }
  
	#application-logo-wrapper,
	#application-logo-wrapper-cobranded {
  	margin-bottom: 0;
    justify-content: start;
	}

  #welcome-ribbon,
  #breadcrumb-nav {
    height: 60px;
  }

  /* Resource/Custom Page boilerplate*/
  .resource-hero {
    min-height: 500px;
  }

  .resource-hero-text {
    width: 80%;
  }

  .resource-hero-text > h1 {
    font-size: 2.5rem !important;
  }

  .resource-hero-text > h2 {
    font-size: 1.75rem !important;
  }

  .resource-hero-text > p {
    font-size: 1.5rem;
  }
  /* END Resource/Custom Page boilerplate*/

  .two-column {
    column-count: 2;
    column-gap: 50px;
  }

  .two-column > * {
    display: inline-block;
    width: 100%;
  }

  .two-column a.action {
    font-size: 1rem;
  }

  #communication-center .md\:grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
    margin: auto;
    max-width: 90%;
  }

  #communication-center .accordion {
    width: 100%;
  }

  /* Module Overview pages */

  .module-collection section#main-content + section ul {
    max-width: 90%;
    margin: auto;
  }

  .module-collection section#main-content + section ul li {
    max-width: 360px;
    margin-inline: auto;
  }
  
  .overview-tile {
    width: 360px;
  }

  .overview-tile h3 {
    font-size: 1.5rem;
  }
  /* END Module Overview pages */
}

.lg\:min-h-\[500px\] {
  @media (width >= 64rem) {
    min-height: 380px;
  }
}

@media screen and (min-width: 1256px) {
  .resource-hero-text {
    padding: 3rem;
  }

  .resource-content-heading {
    font-size: 2rem;
  }
}