:root {
  /* Default button colors */
  --button-color: #ffffff;
  --button-bg-color: var(--abbott-corp-signature-blue);
  --button-border-color: var(--abbott-corp-signature-blue);

  /* Main Layout Widths */
  --max-content-width: 1600px;
  --main-column-width: 1280px;
}

main {
  display: grid;
  reading-flow: grid-order;
}

img[src=""] {
  display: none;
}

header,
article,
div,
footer {
  background-color: var(--bgColor, #ffffff);
}

/* Set padding for inner wrapper divs */
/* :not(.cta-banner) .inner {
  padding: clamp(1.875rem, calc(0.92rem + 2.83vw), 3.75rem); min: 30px, max: 60px
} */

header > * {
  width: min(var(--main-column-width), 100%);
  margin-inline: auto;
}

/* Blade Background Styles */
article {
  a:not([class]) {
    color: currentColor;
    text-decoration: underline;
  }

  a:not([class]):hover {
    border-color: var(--abbott-corp-light-blue);
    color: var(--linkHoverColor);
  }
}


/* Typography */
#events {
  h2 {
    font-size: clamp(1.5rem, calc(1.086rem + 1.143vw), 2rem); /* min: 24px, max: 32px */
  }

  article + h2 {
    margin-block-start: 4rem;
  }

  h3 {
    font-size: clamp(1.25rem, calc(0.836rem + 1.143vw), 1.75rem); /* min: 20px, max: 28px */
  }

  p, li, dd, dt {
    font-size: 18px;

    &.caution {
      font-size: 15px;
    }
  }

  p:has(>strong) + p:has(strong) {
    --flow-space: 0;
  }
}

.no-break {
  white-space: nowrap;
}

/* Logo Header */
.logo-header {
  background-color: inherit;
  padding: 0;
  margin-inline: auto;

  & svg {
    width: clamp(11.25rem, calc(-0.143rem + 31.429vw), 25rem); /* min: 180px, max: 400px */
    height: auto;
  }
}

.video-wrapper {
  /* aspect-ratio: 16 / 7; */
  z-index: 0;
  width: 100%;
}

.grid-columns {
  --colWidth: 260px;
  gap: var(--grid-gap, 40px);
}


header .grid-columns {
  margin-inline: auto;
  width: 100%;
  align-items: start;
}

.head-content {
  height: 100%;
}

/* Disable empty links and nav items */
a[href=""] {
  cursor: default;
}

/* Jump Link Nav */
nav {
  ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0;

    li {
      display: content;
      margin: 0;
      padding: 0;
    }

    a:not([class]) {
      padding: 0;
    }
  }

  @media (width > 1048px) {
    ul {
      display: block;
      padding: initial;
      margin: initial;

      li {
        display: block;
        padding: initial;
        margin: initial;
      }
      & a:not([class]) {
        width: 290px;
        padding: 14px 32px;
      }
    }
    ul > * + * {
      margin-block-start: var(--flow-space, 1em);
    }
  }

  a:not([class]) {
    display: inline-block;
    border-radius: 10px;
    border-top-left-radius: 0;
    font-size: clamp(0.875rem, calc(0.178rem + 2.066vw), 1.5rem); /* min: 14px, max: 24px */
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
    padding: 14px 32px;
  }

  a:not([class]):hover {
    /* background-color: var(--abbott-corp-signature-blue); */
    /* color: #ffffff; */
    color: var(--abbott-corp-primary-blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
}

/* Button overrides */
.button {
  font-weight: 400;
  .cta & {  
    &::after {
      content: "→";
      padding-left: 1em;
    }
  }
}

/* Agenda Content Filters */
[class*="btn-filter"] {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
  border: 2px solid var(--button-border-color);
  cursor: pointer;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 92px;
  padding: 20px 10px;
  margin-top: auto;

  &.btn-filter-secondary {
    font-size: clamp(1rem, calc(0.896rem + 0.286vw), 1.125rem); /* min: 16px, max: 18px */
  }

  .themeBlueLight & {
    --button-bg-color: var(--themeColorDark);
    --button-border-color: var(--themeColorDark);
    --button-color: #ffffff;

    &:hover, &:active, &:focus, &:has(input:checked) {
      --button-bg-color: var(--themeColorPrimary);
      --button-border-color: var(--themeColorPrimary);
      --button-color: #ffffff;
    }
  }
  .themeBlueLight &.btn-filter-secondary {
    --button-bg-color: #ffffff;
    --button-color: var(--themeColorDark);
    --button-border-color: var(--themeColorDark);

    &:hover, &:active, &:focus, &:has(input:checked) {
      --button-bg-color: var(--themeColorMedium);
    }
  }
  & input[type="radio"] {
    position: absolute;
    z-index: -1;
  }
}

/* Figure overrides */
figure {
  /* width: var(--figure-max, 100%); */

  & > img {
    width: 100%;
  }
}

/* Bleed image in Grid column */
figure.grid-bleed {
  height: 100%;

  & img {
    object-fit: cover;
    object-position: right bottom;
    height: 100%;
  }

  @media (width < 680px) {
    width: 100%;
    height: auto;
  }
}

.grid-columns.nav-grid  {
  grid-template-columns: 1fr;

  @media (width > 1048px) {
    grid-template-columns: max-content 1fr;
  }

  /* p {
    font-size: 18px;
  } */

}

/* Grid column compoenent with tricorner and full-bleed image in right column */
.grid-columns:has( > .col-bleed) {
  padding: 0;
  /* grid-template-columns: 5fr 4fr; */

  & > :first-child {
    border-bottom-left-radius: 10px;
  }

  & > * {
    padding: clamp(1.25rem, calc(-1.539rem + 8.264vw), 2.75rem); /* min: 20px, max: 60px */
  }

  & > .col-bleed {
    padding: 0;
  }

  & > .col-bleed:last-child img {
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  @media (width < 680px) {

    & > :first-child {
      border-top-right-radius: 10px;
      border-bottom-left-radius: 0;
    }

    & > .col-bleed:last-child img {
      border-top-right-radius: 0px;
      border-bottom-left-radius: 10px;
    }
  }
}

.tricorner:has( > .col-bleed) {
  --grid-gap: 40px 0;

  @media (width < 680px) {
    --grid-gap: 0;
  }
}


/* Grid Columns Mods */
.grid-columns.reverse-stack {
  @media screen and (width < 720px) {
    & > :first-child {
      order: 1;
    }

    & > :nth-child(2) {
      order: 0;
    }
  }
}

.grid-columns.button-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;

  & .button {
    width: 100%;
    padding-inline: 8px;
    font-size: 18px;
  }
}

/* Img-flex mods */
.img-flex {
  margin-top: 0;

  & > div:has(> p) {
    flex: 1;
  }
}

/* CTA Banners */
.cta-banner {
  .img-flex > div {
    display: flex;
    align-items: center;
  }
}

/* Insight Switcher Overrides */
#insights {
  --flow-space: 3rem;
  .switcher {
    --s1: 40px; 

    margin-inline: auto;
    max-width: 960px;

    & > * {
      --swFlexBasis: 290px;
      flex: 0 1 var(--swFlexBasis);
    }
  }
}

/* Data Grid Banners */
.data-grid {
  --button-bg-color: #ffffff;
  --button-border-color: var(--button-bg-color);
  --button-color: var(--abbott-corp-signature-blue);

  display: grid;
  align-items: center;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 30px;

  @media (width > 640px) {
    grid-template-columns: 1fr 2fr;
  }

  @media (width > 840px) {
    grid-template-columns: 1fr 3fr max-content;
  }
  > * {
    flex-shrink: 1;
    width: auto;
  }

  .switcher {
    --threshold: 10em;
    font-size: 16px;
  }

  .stat {
    display: block;
    font-size: clamp(1.25rem, calc(0.52rem + 2.162vw), 2.25rem); /* min: 20px, max: 36px */
  }

  & .button:not(.flickity-button):hover {
    --button-bg-color: var(--abbott-corp-signature-blue);
    --button-border-color: var(--button-bg-color);
    --button-color: #ffffff;
  }

  &.theme__bg-corp-signature .button:not(.flickity-button):hover {
    --button-bg-color: var(--abbott-corp-primary-blue);

  }
}

/* Product Comparison Cards */
.switcher.product-cards {
  --s1: clamp(1.25rem, calc(-0.574rem + 5.405vw), 3.75rem); /* min: 20px, max: 60px */
  & figure {
    height: 200px;

      & img {
      object-fit: cover;
      height: inherit;
      max-width: 400px;
      margin: auto;
    }
  }
}

/* Link Cards */
.grid-columns-cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(0.625rem, calc(0.307rem + 0.943vw), 1.25rem); /* min: 10px, max: 20px */
}
.link-card {
  height: 100%;
  & a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
    --bg-color: var(--abbott-corp-primary-blue);
    border-radius: 10px;
    border-top-left-radius: 0;
    color: #ffffff;
    text-decoration: none;
    padding-block: clamp(1.125rem, calc(0.743rem + 1.132vw), 1.875rem); /* min: 18px, max: 30px */
    padding-inline-end: clamp(1.125rem, calc(1.061rem + 0.189vw), 1.25rem); /* min: 18px, max: 20px */
    padding-inline-start: clamp(1.125rem, calc(0.233rem + 2.642vw), 2.875rem); /* min: 18px, max: 46px */
    width: 100%;
    height: 100%;
  }
  
  & a:hover {
    background-color: var(--abbott-corp-signature-blue);
    color: #ffffff;
  }

  h3 {
    font-family: var(--body-font-stack);
    /* font-size: clamp(1.5rem, calc(1.309rem + 0.566vw), 1.875rem); min: 24px, max: 30px */
  }

  p {
    /* font-size: clamp(1rem, calc(0.873rem + 0.377vw), 1.25rem); min: 16px, max: 20px */
  }

  & * + * {
    margin-block-start: .5em;
  }

  svg {
    margin-block-start: 2em;
    justify-self: flex-end;
  }

  @media (width < 1600px) {
    h3 {
      /* font-size: 22px; */
    }

    p {
      /* font-size: 16px; */
    }
    
  }
}

/* CTA Grid/Flex Maps Overrides */
.filters.sticky {
  background-color: inherit;
  padding-block: 20px;
  position: sticky;
  top: 0px;
  z-index: 10;
}

/* Schedule Styles */
.events article {
  margin-block-start: 3rem;
}

/* .events div article:first-child {
  margin-block-start: 3rem;
} */

.events hr {
  border: none;
  border-top: 2px solid var(--themeColorDark);
  margin-block-start: 3rem;
  padding-block-start: 2rem;
}


/* Session Grid */
.sessions .grid-columns {
  grid-template-columns: 1fr;
  grid-template-areas: "session" "speakers" "cta";

  .event-info {
    display: contents;
  }

  .speaker-grid {
    grid-area: speakers;
  }

  .cta {
    grid-area: cta;
    margin-block-start: 0;

    @media screen and (width > 780px) {
      margin-block-start: 2em;
    }
  }

  @media screen and (width > 780px) {
    grid-template-areas: "session speakers";
    grid-template-columns: 1fr 1fr;
    row-gap: 1em;
    column-gap: 40px;
    align-content: start;


    .event-info {
      display: block;
      grid-area: session;
    }

    .speaker-grid {
      margin-block-start: 0;
      padding-block-start: 0;
    }
  }

}

/* Grouped Sessions */

.events .grid-columns + .grid-columns {

  border-block-start: 2px solid currentColor;
  margin-block-start: 3rem;
  padding-block-start: 3rem;

  @media screen and (width > 780px) {

    border-block-start: none;
    margin-block-start: 0;
    padding-block-start: 0;

    & > .event-info {
      border-block-start: 2px solid currentColor;
      margin-block-start: 3rem;
      padding-block-start: 3rem;
    }

    & > .speaker-grid {
      margin-block-start: 3rem;
      padding-block-start: 3rem;
    }
  }
}

/* Speaker Grid */
.speaker-grid {
  --speakerCol: 182px;
  --speakerCol: clamp(8.125rem, calc(7.042rem + 3.611vw), 11.375rem); /* min: 130px, max: 182px */

  & > figure {
    grid-template-rows: min-content auto;
    grid-template-areas: "headshot" "caption";
  }

  & > figure > * {
    grid-area: unset;
  }

  & > figure > img {
    grid-area: headshot;
  }

  & .speaker-img-double {
    display: block;
    grid-column: 2 / 4;

    object-fit: cover;
    object-position: right top;
    height: 100%;
    max-height: 254px;
    width: 100%;
  }

  & .caption-overlay {
    justify-content: start;
    font-size: clamp(0.875rem, calc(0.771rem + 0.286vw), 1rem); /* min: 14px, max: 16px */
    font-weight: 600;
    line-height: 1.375;
    padding: 1em;
    text-align: left;

    > span {
      font-weight: 400;
    }
  }

  &.photo-single {
    grid-template-columns: 1fr;
    justify-content: start;
    align-content: start;

    figure {
      display: block;
      max-width: 100%;
      height: auto;

      img {
        object-fit: contain;
      }
    }
  }
}

/* Sessions */
.sessions {
  > .inner > article + article:not(.back) {
    border-block-start: 1px solid currentColor;
    padding-block-start: 40px;
  }

  & .eyebrow + h3 {
    --flow-space: 1rem;
  }

  p + ul {
    --flow-space: 0;
  }
}

/* Back to Programme Links */
.inner > article.back {
  border-block-start: none;
  text-align: right;
  padding-top: 20px;
  padding-bottom: 0;
  
  & a {
      text-decoration: none;
      font-size: 16px;
  }
  
  & a:hover {
  }
}

/* Leader Grid */
#insights .flex-cta {
  column-gap: 10px;
  font-size: 16px;

  > span {
    font-weight: 700;
    line-height: 1.3;
  }
  
  span > span {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
  }
}
/* responsive TECTRONIC Table */
.gridtable tr {
  @media screen and (width < 540px) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 3px;
    margin-bottom: 3px;
  }
}

/* Video Switcher */
.video-switcher {
  & a {
    text-decoration: none;
  }
  & figure {
    .caption-overlay {
      --bg-color: var(--abbott-corp-signature-blue);
      text-align: left;
      padding: 12px 20px;
      display: block;
    }
    
    & img {
      aspect-ratio: 4 / 3;
      object-fit: contain;
      object-position: top;
    }

    img.play-btn {
      width: 80px;
      align-self: start;
      justify-self: center;
      top: 30%;
      position: relative;
      opacity: .5;
    }
  }

  & figure:hover {
    cursor: pointer;

    & .caption-overlay {
      --bg-color: var(--abbott-corp-primary-blue);
    }

    & img.play-btn {
      opacity: 1;
    }
  }
}

div#video-container {
  background-color: transparent;

  & div {
    background-color: transparent;
  }
}

[class*="bc-player"] {
  width: 100% !important;
  height: auto;
  aspect-ratio: 16/9;
}

a.closeBtn::before {
  content: "🅇";
  font-family: var(--body-font-stack);
}

/* Link Columns */
.switcher {
  --threshold: 60em;
  --s1: 20px;
}

.icon-grid {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: clamp(1rem, 5vw, 30px);
  line-height: 1.3;

  & > div {
    --flow-space: 0.5rem;
  }

  & figure {
    max-width: 100%;
  }

  & .flow {
    margin-top: 0.5rem;
  }

  & .icon-grid-title {
    min-height: 70px;
  }

}

.icon-grid a:not([class]) {
  color: var(--abbott-purple);
}

