/* page-meet-the-ambassadors.css - the only stylesheet this page needs beyond
   style.css and Tailwind.

   Holds the rules page-meet-the-ambassadors.hbs actually uses from:
     - assets/css/authors-hub.css   (ported from the sec-design branch)
     - assets/css/modal.css
   in that order, which is the order the two <link>s were in.

   The page is built at runtime by middleware authors-hub.js, so the prune was
   run against the rendered DOM with that markup mirrored in: the .people-item
   cards, the .region-button tabs, the .checkbox-filter contribution dropdown,
   and the #authorModal contents. Rules dropped as unused target markup this
   page does not produce - the .peoples-list-v2 card variant used on
   become-an-ambassador, .custom-dropdown .dropdown-item (the script builds
   .checkbox-filter labels instead) and the left-content h5 name (it builds an
   h2). The .x-modal family was dropped by that prune, then added back when
   #authorModal was switched to .x-modal to match page-become-an-ambassador.
*/

/* ==========================================================================
   1. Authors hub - from assets/css/authors-hub.css
   ========================================================================== */

:root {
  --default-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.10);
  --teal: #30D8C4;
}

a {
  color: var(--deep-saffron);
}

.site-main {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

.content-wrap {
  max-width: 1192px;
  margin: auto;
  padding: 0 24px;
}

h1,
h2,
h5,
h6,
p {
  margin: 0;
  font-family: Poppins, sans-serif;
}

.text-teal {
  color: var(--teal);
}

.custom-dropdown {
  position: relative;
  display: inline-block;
  font-family: sans-serif;
}

.custom-dropdown .dropdown-toggle {
  background-color: transparent;
  color: var(--black, #09100F);
  border: 1px solid var(--black, #09100F);
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-family: Poppins, sans-serif;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-dropdown .dropdown-toggle:after {
  background-image: url('/assets/img/arrow-down-black.svg');
  height: 16px;
  width: 16px;
  content: "";
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin-left: auto;
  display: block;
}

.custom-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 260px;
  margin-top: 4px;
  border-radius: 12px;
  z-index: 1;
  font-family: Poppins, sans-serif;
  padding: 20px;
  flex-direction: column;
  gap: 8px;
}

.checkbox-filter {
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  white-space: nowrap;
  align-items: center;
  display: flex;
  cursor: pointer;
  font-size: 16px;
  color: #333;
}

.checkbox-custom {
  border: 1px solid var(--black);
  width: 18px;
  height: 18px;
  margin-top: 0;
  border-radius: 5px;
  position: relative;
  background-color: transparent;
}

.checkbox-custom:after {
  content: "";
  position: absolute;
  inset: 14% 33%;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
}

.checkbox-custom-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom-input:checked~.checkbox-custom {
  background-color: var(--black);
  background: var(--black);
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

/* --deep-saffron is referenced here but defined nowhere this page loads, so
   border-top-color fell back to currentColor and the arc was never coral.
   A border cannot take a gradient either, so the ring is painted as a
   --coral-gradient background and punched hollow with a radial mask. The
   track behind it keeps the old rgba(0,0,0,.1). */
.spinner {
  --spinner-size: 40px;
  --spinner-thickness: 4px;
  width: var(--spinner-size);
  height: var(--spinner-size);
  border-radius: 50%;
  background:
    var(--coral-gradient),
    linear-gradient(rgba(0, 0, 0, 0.1) 0 0);
  -webkit-mask:
    radial-gradient(farthest-side,
      transparent calc(100% - var(--spinner-thickness)),
      #000 calc(100% - var(--spinner-thickness)));
  mask:
    radial-gradient(farthest-side,
      transparent calc(100% - var(--spinner-thickness)),
      #000 calc(100% - var(--spinner-thickness)));
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
  transform: rotate(360deg);
  }
}

/* The eclipse decals are 1300px wide and sit at left:-450px / right:-450px
   (700px at -300px below 820). With overflow:visible they pushed the document
   450px past the viewport at every width down to 768 - at narrower widths the
   page zoomed out instead, and only the <=500px `body { overflow-x: hidden }`
   in style.css hid it. Clipping here matches .peoples-section, which carries
   the same artwork and already sets overflow:hidden. */
.banner-section {
  position: relative;
  padding: 80px 0px;
  overflow: hidden;
}

.banner-section::before {
  content: '';
  width: 1300px;
  height: 1300px;
  background: url('/assets/img/peoples-hub/eclipse-coral-full.svg');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: -50px;
  left: -450px;
  z-index: 0;
}

.banner-section::after {
  content: '';
  width: 1300px;
  height: 1300px;
  background: url('/assets/img/peoples-hub/banner-decal-2.svg');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: -50px;
  right: -450px;
  z-index: 0;
}

.banner-section .content-wrap {
  position: relative;
  z-index: 2;
}

.banner-section .banner-content {
  display: flex;
  align-items: flex-end;
  margin-bottom: 96px;
  padding: 0;
  justify-content: space-between;
}

.banner-section .banner-content .text-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.banner-section .banner-content .btn {
  white-space: nowrap;
}

.banner-section .banner-content h1 {
  text-align: left;
  margin-bottom: 0;
}

.banner-section .banner-content p {
  width: min(80ch, 100%);
}

.banner-section .banner-images {
  position: relative;
  z-index: 20;
}

.banner-section .banner-images img {
  width: 100%;
}

.peoples-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.peoples-section::before {
  content: '';
  width: 1000px;
  height: 1000px;
  background: url('/assets/img/peoples-hub/eclipse-coral-full.svg');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 20%;
  left: -300px;
  z-index: 0;
}

.peoples-section::after {
  content: '';
  width: 1000px;
  height: 1000px;
  background: url('/assets/img/peoples-hub/banner-decal-2.svg');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 20%;
  right: -330px;
  z-index: 0;
}

.peoples-section .content-wrap {
  position: relative;
  z-index: 2;
}

.peoples-section .header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 12px;
}

.peoples-section .people-contents {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.peoples-section .tab-contents-container {
  display: flex;
  gap: 32px;
  flex-direction: column;
  align-items: stretch;
}

.peoples-section .region-buttons {
  display: flex;
  min-height: 50px;
  padding: 8px;
  align-items: center;
  align-self: stretch;
  border-radius: 12px;
  border: 1px solid var(--black, #09100F);
  background: transparent;
  gap: 8px;
}

.peoples-section .region-button {
  display: flex;
  padding: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  border-radius: 8px;
  border: none;
  background-color: transparent;
  font-weight: 300;
  cursor: pointer;
}

.peoples-section .region-button.active,
.peoples-section .region-button:hover {
  color: var(--white, #F9F8F5);
  background: var(--black, #09100F);
}

.peoples-section .peoples-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: flex-start;
  gap: 16px;
}

.peoples-section .peoples-list .people-item {
  display: flex;
  padding: 24px;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
  border-radius: 12px;
  background: var(--Pale, #F5F3ED);
  /* The hover border is an inset ring, not a real border: it paints inside the
     card's edge and takes no layout space, so the card can't grow or nudge its
     neighbours in the grid. It's present (transparent) at rest so the hover only
     animates its colour. */
  box-shadow: var(--default-shadow), inset 0 0 0 1px transparent;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

/* Hover-capable pointers only - on touch the tap opens the modal, and a hover
   state would otherwise stay stuck on the card after it's closed. */
@media (hover: hover) {
  .peoples-section .peoples-list .people-item:hover {
    box-shadow: var(--default-shadow), inset 0 0 0 1px var(--coral);
  }
}

.people-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.peoples-section .people-item .people-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 0 0;
}

.peoples-section .people-item .people-image img {
  width: 100px;
  height: 100px;
  border-radius: 5px !important;
  object-fit: cover;
  object-position: center;
}

.peoples-section .people-item .people-name {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: normal;
}

.peoples-section .people-item .people-position {
  font-size: 14px;
}

.peoples-section .people-item .people-company-logo img {
  height: 26px;
  width: 120px;
  object-fit: contain;
  object-position: top left;
}

.get-involve-section {
  background: var(--black);
  padding: 80px 0;
  color: var(--white);
  background-image: url('/assets/img/peoples-hub/Eclipse.svg');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: cover;
}

.get-involve-section .cta-content {
  max-width: 1192px;
  margin: auto;
}

.get-involve-section h2 {
  margin-top: 0;
  margin-bottom: 24px;
}

.get-involve-section .cta-content p {
  width: 631px;
  display: block;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  margin-bottom: 24px;
}

.get-involve-section .cta-content .btn {
  display: inline-block;
}

.get-involve-section .text-italic {
  display: block;
  font-family: IvyJournal !important;
  font-style: italic;
  line-height: inherit;
}

.peoples-section .text-italic {
  display: block;
  font-family: IvyJournal !important;
  font-style: italic;
  line-height: inherit;
}

/* ==========================================================================
   2b. Modal overlay - the .x-modal family from assets/css/modal.css. The page
   now uses .x-modal for #authorModal, matching page-become-an-ambassador.hbs.
   ========================================================================== */

.x-modal {
   display: none;
   padding: 24px;
   position: fixed;
   z-index: 1000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.6);
   align-items: center;
   justify-content: center;
   opacity: 0;               /* start hidden */
   transition: opacity 0.3s ease;
   overflow-y: auto;
}

.x-modal.show {
   display: flex;
   opacity: 1;
}

.x-modal-content {
   background: white;
   padding: 20px;
   border-radius: 10px;
   position: relative;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
   transform: translateY(-50px);  /* start above */
   opacity: 0;                    /* start transparent */
   transition: all 0.3s ease;
}

.x-modal.show .x-modal-content {
   transform: translateY(0);      /* slide to center */
   opacity: 1;                    /* fade in */
   overflow-y: scroll;
   max-height: 95%;
   height: auto;
}

.x-modal-close {
   position: absolute;
   top: 10px;
   right: 15px;
   font-size: 24px;
   cursor: pointer;
   color: #999;
}

.x-modal-close:hover {
   color: #333;
}

/* ==========================================================================
   3. Author modal - implementation copied from page-become-an-ambassador.css
   so both ambassador modals look and behave the same. The overlay comes from
   the .x-modal family above; these rules give the panel injected by
   authors-hub.js its chrome, close control and typography.
   ========================================================================== */

/* authorModal (injected by the authors-hub widget) */
/* Same close control as the membership modal. font-size:0 suppresses the
   &times; glyph authors-hub-lite.js puts in the span, so only the icon shows. */
#authorModal .modal-close::before {
   content: url("/assets/img/close.svg");
}
#authorModal .modal-content .right-content .modal-social-link,
#authorModal .modal-content .right-content .modal-social-link:hover {
   padding: 0;
   background: none;
}
/* The panel chrome that .modal-content gets from modal-override.css on the
   membership pages - this page never loaded that file, so the modal rendered
   as transparent full-bleed text over the page. Mirrors the .modal-content
   rule in css/page-pro-membership-plan.css. The responsive padding/stacking
   for this modal already lives in the media queries further down. */
#authorModal .modal-content {
   position: relative;
   display: flex;
   padding: 80px 124px;
   justify-content: space-between;
   align-items: center;
   gap: 102px;
   width: 100%;
   max-width: 1192px;
   margin: auto;
   max-height: 90%;
   overflow: auto;
   background-color: #fff;
   border-radius: 12px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Without this the injected close button sits in the flex flow as a stray
   glyph at the left edge of the panel. */
#authorModal .modal-close {
   position: absolute;
   top: 29px;
   right: 27px;
   cursor: pointer;
   font-size: 0;
   line-height: 0;
}

#authorModal .modal-content .left-content {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 24px;
   width: 330px;
}

#authorModal .modal-content .left-content h2 {
   color: var(--black, #09100F);
   font-family: Poppins;
   font-size: 56px;
   font-style: normal;
   font-weight: 400;
   line-height: 40px;
   letter-spacing: -0.84px;
   margin-bottom: -15px;
}

#authorModal .modal-content .left-content .modal-author-image {
   width: 100%;
   max-width: 323px;
   height: auto;
   max-height: 266px;
   border-radius: 12px;
   object-fit: cover;
   object-position: center;
}

#authorModal .modal-content .left-content img {
   width: 100%;
   height: 100%;
   border-radius: 5px;
   object-fit: cover;
   object-position: center;
}

#authorModal .modal-content .left-content .modal-company-logo {
   width: auto;
   height: 48px;
   border-radius: 5px;
   object-fit: cover;
   object-position: center;
}

#authorModal .modal-content .right-content {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 24px;
   /* flex-start, not stretch: stretch pinned this column to the panel's content
      height, so a long bio overflowed it and the LinkedIn icon spilled past the
      panel's 80px bottom padding - it ended up 6px from the edge. Starting at the
      top and growing with the text keeps the same top alignment and lets that
      padding land below the icon. */
   align-self: flex-start;
   flex: 1;
}

/* Typography copied from the instructor modal in
   css/page-pro-membership-plan.css. */
#authorModal .modal-content .right-content .modal-author-description {
   font-size: 16px;
   line-height: 24px;
   font-weight: 300;
}

#authorModal .modal-content .right-content h6 {
   color: var(--black, #09100F);
   font-family: Poppins;
   font-size: 24px;
   font-style: normal;
   font-weight: 400;
   line-height: 32px;
   letter-spacing: -0.96px;
}

#authorModal .modal-content .right-content .modal-social-link {
   font-size: 24px;
   color: var(--white);
   border-radius: 5px;
   display: inline-flex;
   text-decoration: none;
}

#authorModal .modal-content .right-content .modal-social-link:hover {
   background: var(--black, #09100F);
   color: var(--white);
   text-decoration: none;
   opacity: 1;
}

/* modal chrome override for this page */
.x-modal-close {
   font-size: 50px;
   top: 15px;
   right: 15px;
}

@media screen and (min-width: 600px) and (max-width: 1024px) {
  .content-wrap {
    padding: 0 56px;
  }

}

@media screen and (max-width: 1024px) {
   .peoples-section .header {
      margin-bottom: 9px;
   }

   .banner-section .banner-content {
      flex-direction: column;
      align-items: flex-start;
      gap: 24px;
      margin-bottom: 24px;
   }
   .content-wrap {
      max-width: 100%;
   }

   .get-involve-section .cta-content p {
      width: 100%;
   }

   .peoples-section .peoples-list {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media screen and (max-width: 820px) {
  .get-involve-section,
  .peoples-section {
    padding: 56px 0px;
  }

  .peoples-section .peoples-list {
    grid-template-columns: 1fr 1fr;
  }

  .banner-section::before,
  .banner-section::after {
    width: 700px;
  }

  .banner-section::before {
    top: 100px;
    left: -300px;
  }

  .banner-section::after {
    top: 100px;
    right: -300px;
  }

  #authorModal .modal-content {
    padding: 40px;
    max-height: 90%;
    overflow: scroll;
    gap: 24px;
  }

  #authorModal .modal-content .left-content {
    width: 45%;
  }

}

@media screen and (max-width: 600px) {
/* Full-screen sheet on mobile, matching the membership modal: the scrim's
      24px inset is dropped and the panel fills the viewport, so the rounded
      corners and drop shadow go with it. */
   #authorModal.x-modal {
      padding: 0;
   }
   
   .peoples-section .header {
      margin-bottom: 0px;
   }

   #authorModal .modal-content .left-content h2 {
      font-size: 42px;
   }

   #authorModal .modal-content {
      padding: 56px 32px;
      flex-direction: column;
      width: 100%;
      max-width: 100%;
      height: 100%;
      max-height: 100%;
      margin: 0;
      border-radius: 0;
      box-shadow: none;
      overflow-y: auto;
      gap: 24px;
   }

   #authorModal .modal-content .left-content {
      width: 100%;
   }

   /* The panel is a column here, so align-self sets this column's width rather
      than its height - stretch keeps it full-width. */
   #authorModal .modal-content .right-content {
      align-self: stretch;
   }

   .peoples-section .region-buttons {
      flex-direction: column;
      align-items: stretch;
   }

   .get-involve-section {
      padding: 56px 0px;
   }

  .peoples-section {
    padding-top: 0px;
    padding-bottom: 56px;
  }

  .peoples-section .peoples-list {
    grid-template-columns: 1fr;
  }

  .banner-section {
    padding: 56px 0px;
  }

  .banner-section::before,
  .banner-section::after {
    width: 700px;
  }

  .banner-section::before {
    top: 500px;
    left: -300px;
  }

  .banner-section::after {
    top: 300px;
    right: -300px;
  }

  #authorModal .modal-content {
    padding: 56px 32px;
    flex-direction: column;
    max-height: 100%;
    overflow: scroll;
    gap: 24px;
  }

  #authorModal .modal-content .left-content {
    width: 100%;
  }

  .peoples-section .header {
    flex-direction: column;
    align-items: start;
    gap: 9px;
  }

}

/* ==========================================================================
   2. Modal - from assets/css/modal.css
   ========================================================================== */

body.modal-show .nav-wrapper {
  z-index: 10 !important;
}
