/*
 * ================================
 * RD Main Overrides for ISCEBS
 * Created: 9/2026
 * ================================
 */

/* Custom style for consent dialog (TPB 3-2024) */
#tracking-consent-dialog{position:fixed;bottom:3%;right:3%;z-index:999;box-shadow:0px 0px 3px rgba(0, 0, 0, 0.1);background:#ffffff;border:1px solid #e5e5e5;padding:1rem;width:100%;max-width:375px;font-size:1rem;line-height:1.5;}
#tracking-consent-dialog-accept{padding:.5rem 1rem;display:block;width:100%;}

/* Misc fixes */
a.anchor {display:block; position:relative; top:-150px; visibility:hidden;}

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 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;
}

/* 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;
}
.agenda-list:not(.show-presentations) .item-list__more a.button { /* hide presentation buttons from session list unless contains "show-presentations" class */
  display:none;
}
.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;
}
.item-list--agenda .item-list__title {
  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;
  }
}
@media (max-width:460px){
    .item-list--speakers .item-list__link {
  flex-direction: column;
}
}
.item-list--agenda .item-list__item {
  background-color:rgba(212,235,245,.15);
}
.item-list--agenda .item-list--speakers {
  gap:24px;
  flex-flow: column;/*stack speakers on session list*/
}
.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;
  flex-shrink: 0;
  flex-basis: 100%;
}
.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 {
  margin-top:24px;
}
.item-list--agenda .item-list__more .grid {
  margin: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;
}

.hide-content {display:none;}

/* Webcast date width fix (DK 5-2024) */
.date-time-location .grid__unit--1-5-m {flex:100%;}

/* Fix welcome msg alignment (SMG 5-2024) */
.header-user__welcome {
  margin-bottom:0;
  font-weight:normal;
}
.header-user__welcome + .btn {
  display:inline-block;
}
@media (min-width: 1200px) {
  .header-user__welcome {
    font-size:16px;
  }
}

/* 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;
}

/* Header Fix (10-2024 SMG) */
.page-header .page-bounds {
  max-width:none;
}

/* Hide bootstrap, CEBS and IFEBP layout options (10-2024 SMG) */
#ZoneEditorToolboxContainer div[caption^="grid"],
#ZoneEditorToolboxContainer div[caption^="CEBS"],
#ZoneEditorToolboxContainer div[caption^="IFEBP"] {
  display:none;
}

/* Formatting for Committee Display (12-2024 TB) */
.committee-members .person img{max-width:150px;}
.committee-members .person{text-align:center;}

/* 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: 500ms opacity, 500ms display allow-discrete,
      500ms 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(23, 100, 107, 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;
}

/* footer logo fix (DK 4-2026) */

@media (max-width: 960px) {
  .footer-logo img {
        width: 270px;
    }
}

/* header logo fix (SG 4-2026) */
@media (max-width: 1199px) {
  .header-logo img {
    width:250px;
  }
}

/* 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;
  }
}