/*
 * ======================================
 * RD Main Overrides for IFEBP (French)
 * Created: 9/2026
 * ======================================
 */

/* Custom style for consent dialog (TPB 3-2024) */
  #tracking-consent-dialog{position:fixed!important;bottom:0;width:100%;}
  
  /* Removes the squiggly background (SMG 5-2024) */
  .interstitial--pattern {
    background: none;
  }
  
  /* Custom styles to prevent > 100% headshots (SMG 3-2024) */
  .horizontal--speakers .horizontal__media {
    height:315px;
    padding-bottom:0;
  }
  .horizontal--speakers .horizontal__media img[src*='/headshots/'],
  .horizontal--speakers .horizontal__media img[src*='userpicture-notfound'],
  .speaker-grid-list .item-list__media img[src*='/headshots/'],
  .speaker-grid-list .item-list__media img[src*='userpicture-notfound'] {
    max-width:250px !important;
    max-height:315px !important;
    margin:0;
  }
  .speaker-grid-list .grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 2.5rem;
  }
  .item-list--agenda .item-list--speakers .item-list__media {
    max-height:none;
  }
  
  /* Wrapper style correction (SMG 5-2024) */
  .header-user__welcome {
    font-family: "Roboto", Helvetica, Arial, sans-serif;
  }
  @media (min-width: 960px) {
    .header-user__welcome {
      font-size: 16px;
      /*line-height: 24px;*/
    }
  }
  
  /* Misc fixes */
  p:empty {
    display:none;
  }
  body {  /* WCAG compliant large text (SMG 4-2024) */
    font: 14pt/20pt "Roboto", Helvetica, Arial, sans-serif;
  }
  .title-block__content {  /* WCAG compliant large text (SMG 4-2024) */
    font-weight:bold;
  }
  .title-block__content .display-inline {
    font:bold 14pt/20pt "Roboto", Helvetica, Arial, sans-serif;  /* WCAG compliant large text (SMG 5-2024) */
  }
  .breadcrumbs {  /* WCAG compliant large text (SMG 5-2024) */
    font-size: inherit;
    line-height: inherit;
  }
  
  /* Custom style to hide widgets */
  .hide-content {display:none;}
  
  /* Hide presentation buttons from session list unless contains "show-presentations" class  (SMG 4-2024) */
  .agenda-list:not(.show-presentations) .item-list__more a.button {
    display:none;
  }
  
  /* Speaker grid/carousel link fixes */
  .speaker-grid-list a .speakers__name,
  .horizontal--speakers a .speakers__name {
    font-weight:bold;
    margin-bottom:0;
    color: #69842F;
    transition: color 0.15s ease-out, background-color 0.15s ease-out, border 0.15s ease-out, box-shadow 0.15s ease-out, opacity 0.15s ease-out;
  }
  .speaker-grid-list a:hover .speakers__name,
  .speaker-grid-list a:focus .speakers__name
  .horizontal--speakers a:hover .speakers__name,
  .horizontal--speakers a:focus .speakers__name {
    color: #2383A9;
  }
  .speaker-grid-list a[href=""] .speakers__name,
  .horizontal--speakers a[href=""] .speakers__name {
    color:inherit;
  }
  .speaker-grid-list a[href=""],
  .horizontal--speakers a[href=""] {
    pointer-events: none;
  }
  .speaker-grid-list a .speakers__name,
  .speaker-grid-list a .speakers__title,
  .speaker-grid-list a .speakers__org,
  .horizontal--speakers a .speakers__name,
  .horizontal--speakers a .speakers__title,
  .horizontal--speakers a .speakers__org {
    line-height:1.4;
  }
  .speaker-grid-list a .speakers__org,
  .horizontal--speakers a .speakers__org {
    margin-top:2px;
  }
  
  /* Session Rollup overrides (SMG 4-2024) */
  .agenda-list {
    margin-top:1rem;
  }
  .item-list--agenda {
    padding:0;
  }
  .item-list--agenda .grid {
    margin:0;
  }
  .item-list--agenda .item-list__item {
    gap:24px;
    padding:36px;
  }
  .item-list--agenda .item-list__item::after {
    display:none;
  }
  .item-list--agenda .item-list__title {
    font-size:1.5rem;
    line-height:1.2;  
    margin-bottom:.5rem;
    display:inline-block;
  }
  .item-list--agenda .grid_session-time {
    font-weight:700;
    font-family: "Barlow Semi Condensed", "Roboto", Helvetica, Arial, sans-serif;
    font-size: 21px;
    line-height: 30px;
    text-transform:lowercase;
  }
  @media (min-width: 768px) {
    .item-list--agenda .grid_session-time {
      text-align:right;
    }
  }
  .item-list--agenda .item-list__item {
    background-color:rgba(212,235,245,.15);
  }
  .item-list--agenda .item-list--speakers {
    gap:24px;
  }
  .item-list--agenda .item-list--speakers li {
    padding:0;
  }
  .item-list--speakers .item-list__link {
    display:flex;
    align-items: stretch;
    gap:18px;
  }
  .item-list--speakers .item-list__link .item-list__content {
    align-self:center;
  }
  .item-list--speakers .item-list__link .item-list__media {
    margin:0;
  }
  .item-list--agenda .item-list--speakers .item-list__item {
    background-color:transparent;
  }
  .item-list--agenda .item-list--speakers .item-list__title {
    font-family: inherit;
    font-size:inherit;
    line-height: inherit;
    margin-bottom:0;
  }
  .item-list--agenda .item-list--speakers .item-list__item a[href=""] .item-list__title {
    color:inherit;
  }
  .item-list--agenda .item-list--speakers .item-list__item a[href=""] {
    pointer-events: none;
  }
  .item-list--agenda .item-list__more .grid {
    margin:24px 0 0;
    gap:0;
  }
  .item-list--agenda .item-list__more .grid .h6 {
    padding-top:36px;
  }
  .item-list--agenda .item-list__more .grid .h6 + ul li {
    padding:12px 0 0;
    background-color:transparent;
  }
  .item-list--agenda .item-list__meta:not(:only-child)::after{display:none;}/* hide slash between categories in session rollup*/
  
  /* Travis Beltz added 9/2024 to match login button styles from ifebp.org */
  .btn {
    background-color: #69842F;
    color: #fff;
    padding: 17px 12px;
    font-size: 16px;
  }
  .btn:hover,
  .btn:focus {
    background-color: #4b5e21;
    color: #fff;
  }
  
  /* Disable styles for registration buttons after registration is closed (10-2024 SMG) */
  .register-button .button.registration-closed {
    background-color: #ededed;
    color: #777777;
    pointer-events: none;
  }
  
  /* Hide bootstrap, CEBS and ISCEBS layout options (10-2024 SMG) */
  #ZoneEditorToolboxContainer div[caption^="grid"],
  #ZoneEditorToolboxContainer div[caption^="CEBS"],
  #ZoneEditorToolboxContainer div[caption^="ISCEBS"] {
    display:none;
  }
  
  /* Disable links on main nav items and footer headers (12-2024 SMG) */
  nav.header-nav ul.header-nav__main-list li.header-nav__main-item:hover,
  nav.header-nav ul.header-nav__main-list li.header-nav__main-item:focus {
    cursor:pointer;
  }
  nav.header-nav ul.header-nav__main-list li.header-nav__main-item a.header-nav__main-link,
  footer .footer-actions .sfContentBlock a{
    pointer-events:none;
  }
  
  /* Adjustments for homepage tiles (10-2024 SMG) */
  .tiled-list--programs .tiled-list__content {
    padding:24px !important;
  }
  .tiled-list--programs .tiled-list__item {
    min-height: 308px;
  }
  .tiled-list--programs .tiled-list__title {
    font-size: 25px !important;
    line-height: 32px !important;
    margin-bottom:0;
  }
  .tiled-list--programs .tiled-list__title + .tiled-list__tags {
    display:none;
  }

/* Sponsor list and sponsor carousel updates (2-2025 SMG) */
.item-list--sponsors a,
.horizontal__vendors a {
  pointer-events:none;
}

/* Virtual Events List Formatting (2-2025 SMG) */
ul.item-list.virtual-events li {
  padding:0;
}
ul.item-list.virtual-events li a.item-list__link {
  padding:24px;
}
ul.item-list.virtual-events li a.item-list__link .item-list__media {
  min-width:250px;
  margin-bottom:24px;
}
@media screen and (min-width:768px) {
    ul.item-list.virtual-events li a.item-list__link {
    padding:24px;
    display:flex;
    align-items:center;
  }
  ul.item-list.virtual-events li a.item-list__link .item-list__media {
    margin-bottom:0;
  }
}
ul.item-list.virtual-events li a.item-list__link .flag-icon,
ul.item-list.virtual-events li a.item-list__link .flag-icons {
  position:absolute;
  top:2px;
  right:0;
}
ul.item-list.virtual-events li a.item-list__link .flag-icons {
  right:32px;
}
ul.item-list.virtual-events li a.item-list__link .flag-icons img:first-of-type {
  margin-right:2px;
}
ul.item-list.virtual-events li a.item-list__link .item-list__content {
  width:100%;
}
ul.item-list.virtual-events a.item-list__link .item-list__content .item-list__title,
ul.item-list.virtual-events a.item-list__link .item-list__content .item-list__date {
  margin-bottom:6px;
  font-family:inherit;
  font-size:16pt;
  line-height:1.3;
  font-weight:600;
}
ul.item-list.virtual-events a.item-list__link .item-list__content .item-list__date {
  font-size:inherit;
  line-height:inherit;
  color:inherit;
}

/* Fixed accordion style (SMG 4-2025) */
.accordion__content {
  padding: 24px;
}

/* Tab adjustment (SMG 6-2025) */
.tabs--standard .tabs__tab {  
  font-weight:700;
}

/* Popover Styles (SMG 8-2025) */
body:has(div[popover]:popover-open){
  overflow:hidden;
}
.popover-container {
  button.open-popover * {
    font-weight:700;
  }
  .background-element-blocker {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    top: 0;
    left: 0;
    background: transparent;
    pointer-events: all;
  }
  div[popover],
  div[popover]::backdrop {
    transition: 250ms opacity, 250ms display allow-discrete,
      250ms overlay allow-discrete;
    opacity: 0;
  }
  div[popover]:popover-open,
  div[popover]:popover-open::backdrop {
    opacity: 1;
    @starting-style {
      opacity: 0;
    }
  }  
  div[popover] {
    width: 100%;
    max-width: 85vw;
    padding: 48px 72px 48px 48px;
    max-height: 90vh;
    background: white;
    color: #262626;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    @media screen and (min-width:768px) {
      max-width: 70vw;
    }
    &:popover-open + .background-element-blocker {
      display: block;
    }
    &::backdrop {
      background-color: rgba(0, 68, 124, 0.8);
      backdrop-filter: blur(5px);
    }    
    button.close-popover {
      position: absolute;
      top: 0;
      right: 0;
      background: none;
      i {
        font-size: 42px;
        font-weight: 300;
        padding: 9px 15px;
        color: rgba(0, 0, 0, 0.25);
        &:hover,
        &:focus {
          color: #262626;
        }
      }
    }
  }
}
body.sfPageEditor .popover-container {
  .button {
    background: none;
    border-radius: 0;
    width: 100%;
    padding: 0;
    font-weight: inherit;
    transition: none;
    color: inherit;
    font: inherit;
    &:hover,
    &:focus {
      transform: none;
      box-shadow: none;
      cursor: default;
    }
  }
  div[popover] {
    opacity: 1;
    display: block;
    position: relative;
    padding: 0;
    top: 0;
    left: 0;
    transform: none;
  }
}

/* Card grid override (SMG 9-2025) */
.card-grid .card {
  background:#F6F6F6;
}

/* Accordion fix to prevent arrows from dropping off if paragraphs are used in label (SMG 11-2025) */
.accordion__label p {
  display:inline;
}

/* Search bar fix (SMG 3-2026) */
header.page-header .header-search.is-focused .header-search__input {
  box-shadow:none;
}

/* Added styles when Background Section widget is flipped (SMG 6-2026) */
@media (min-width: 1376px) {
  .interstitial--right .interstitial__media {
    margin-left: calc(-50vw + 640px) !important;
  }
}