/*
 * Public site — rules layered on top of erp-redesign.min.css.
 *
 * erp-redesign.min.css is the redesign's compiled stylesheet, copied verbatim
 * (Bootstrap 5 + Bootstrap Icons + the redesign's own rules). Don't edit it;
 * put overrides here. This file holds three things:
 *
 *   1. The current site's nav and footer (moved from the retired public.css).
 *      Every selector is prefixed with .site-nav / .site-footer: Bootstrap
 *      defines .nav-item, .nav-link and .dropdown too, and the redesign resets
 *      a / a:hover globally, so unscoped rules would lose to them.
 *   2. Bridge rules where the redesign assumed its own fixed header.
 *   3. The Participant Stories block (blocks/public/participant-stories),
 *      ported from design-lab/core-rotational-programs.php.
 *
 * Loaded only off the platform page (see core_enqueue_assets()).
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. NAV
   ═══════════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--bg1);
  border-bottom: .5px solid var(--brd);
  height: 90px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  font-family: "ComcastNewVision", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.admin-bar .site-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }

.site-nav .nav-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--blue);
  text-transform: uppercase;
  margin-right: 2.5rem;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.site-nav .nav-brand span { color: var(--tx1); }

/* Sitewide logo option (ERP Platform → Settings → Branding) replaces the wordmark */
.site-nav .nav-brand--logo { display: flex; align-items: center; line-height: 0; }
.site-nav .nav-brand--logo .core-header-logo { max-width: 220px; object-fit: contain; }

.site-nav .nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  margin-right: 50px;
}

.site-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 60px;
  font-size: 18px;
  font-weight: 500;
  color: var(--tx2);
  background: none;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  user-select: none;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.site-nav .nav-link .chev {
  font-size: 9px;
  color: var(--tx3);
  transition: transform .2s;
  line-height: 1;
  align-self: center;
}
.site-nav .nav-item:hover .chev, .site-nav .nav-item.open .chev { transform: rotate(180deg); }

.site-nav .nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--blue);
  color: #fff;
  padding: 7px 18px;
  border-radius: var(--r8);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.site-nav .nav-cta:hover { background: var(--blu4); color: #fff; }

/* Dropdown */
.site-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg1);
  border: .5px solid var(--brd2);
  border-top: none;
  border-radius: 0 0 var(--r12) var(--r12);
  min-width: 280px;
  overflow: hidden;
  z-index: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.site-nav .nav-item:hover .dropdown, .site-nav .nav-item.open .dropdown { display: block; }

.site-nav .dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tx1);
  text-decoration: none;
  transition: background .1s;
  border-left: 3px solid transparent;
}
.site-nav .dd-item:hover { background: var(--bg2); border-left-color: var(--blue); color: var(--blue); }
.site-nav .dd-item.active { background: var(--blu2); border-left-color: var(--blue); color: var(--blue); font-weight: 600; }
.site-nav .dd-item.indented { padding-left: 32px; }
.site-nav .dd-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.site-nav .dd-sub { display: none; }
.site-nav .dd-divider { height: .5px; background: var(--brd); margin: 4px 0; }

@media (max-width: 768px) {
  .site-nav { padding: 0 1rem; }
  .site-nav .nav-links { gap: 0; margin-right: 12px; }
  .site-nav .nav-link { padding: 0 10px; font-size: 12px; }
  .site-nav .nav-cta { font-size: 14px; padding: 7px 14px; }
  .site-nav .nav-brand--logo .core-header-logo { max-width: 140px; }
}

/* Phones: the nav has no collapsed/hamburger mode, so tighten it until the
   logo, three links and Login fit in one row at 360px. */
@media (max-width: 600px) {
  .site-nav { height: 70px; padding: 0 .75rem; }
  .site-nav .nav-brand { margin-right: .5rem; }
  .site-nav .nav-brand--logo .core-header-logo { max-width: 96px; height: auto; }
  .site-nav .nav-links { margin-right: 6px; }
  .site-nav .nav-link { padding: 0 6px; font-size: 12px; height: 50px; }
  .site-nav .nav-cta { font-size: 12px; padding: 6px 10px; }
  .site-nav .dropdown { min-width: 240px; left: -40px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--tx1);
  color: rgba(255,255,255,.55);
  padding: 2rem;
  text-align: center;
  font-size: 13px;
  font-family: "ComcastNewVision", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   2. BRIDGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* The redesign pads #wrapper by 96px to clear its fixed header. The current
   nav is sticky and takes its own space in the flow, so no offset is needed. */
#wrapper { padding-top: 0; }
@media (max-width: 991px) { #wrapper { padding-top: 0; } }

/* Program-track "+" details: the redesign ships the markup but no toggle
   script; public-site.js adds one and flips aria-expanded. */
.program-track__detail-button i { transition: transform .2s; font-style: normal; }
.program-track__detail-button[aria-expanded="true"] i { transform: rotate(45deg); }
.program-track__detail-content { padding: .5rem 0 1rem; text-align: left; }
/* Degrees / Rotation Areas of Focus lists — the base CSS strips list markers. */
.program-tacks .program-track__detail-content ul { list-style: disc; margin: 0; padding: 0 0 0 1.25rem; }
.program-tacks .program-track__detail-content li { display: list-item; list-style: disc; margin-bottom: .3rem; }
.program-tacks .program-track__detail-content li:last-child { margin-bottom: 0; }

/* Program Tracks cards: the redesign keeps three columns at every width, which
   crushes them to ~100px on a phone. Two columns on tablets, one on phones. */
@media (max-width: 991px) {
  .program-tacks .cardlist:not(.listview-card) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .program-tacks .cardlist:not(.listview-card) { grid-template-columns: 1fr; }
}

/* Customizer "Additional CSS" from the redesign site: each FAQ group's accent
   color comes from its Group Color field via --faq-group-color. */
.faq-group-title,
.faq-question-text { color: var(--faq-group-color); }
.faq-question-icon { background-color: var(--faq-group-color); }
.faq-question { border-color: var(--faq-group-color); }

/* ═══════════════════════════════════════════════════════════════════════════
   3. PARTICIPANT STORIES
   Ported from design-lab/core-rotational-programs.php (the "Hear from former
   participants" section). Two renderings of the same stories, swapped at
   1400px:
   • .voices_container      — desktop accordion; clicking a tile expands it and
                              slides its quote out beside the photo.
   • .voices_slider_wrapper — carousel below 1400px; card widths are set by JS.
   The section frame (background, centered uppercase heading) follows the
   redesign's other homepage sections so it sits in the page's rhythm.
   ═══════════════════════════════════════════════════════════════════════════ */
.voices_section {
  padding: 60px 0 140px;
  background-color: #F8FAFF;
}

.voices_section .voices_wrapper {
  width: 100%;
  max-width: 1450px;
  margin-inline: auto;
  padding-inline: 15px;
}

.voices_section .voices_title { padding-bottom: 30px; text-align: center; }
.voices_section .voices_title h3 {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  color: #185FA5;
  margin-bottom: 0;
}

.voices_section .accordion_people {
  width: 100%;
  display: block;
  white-space: nowrap;      /* tiles must stay on one row */
  list-style-type: none;
  overflow: hidden;
  font-size: 0;
  padding: 10px 0 10px;
  text-align: center;
  margin: 0;
}

.voices_section .accordion_tabs {
  display: inline-block;
  white-space: normal;
  vertical-align: top;
  height: 360px;
  overflow: hidden;
  position: relative;
  font-size: 16px;
  transition: all 0.4s ease-in-out 0.1s;
  margin: 0 4px;
  width: 160px;
  box-shadow: 0px 0px 10px 1px rgb(0 0 0 / 20%);
  cursor: pointer;
  background: #fff;
}

.voices_section .accordion_tabs .paragraph {
  position: absolute;
  left: 190px;
  right: 0;
  width: auto;
  height: auto;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  top: 50%;
  transform: translate(0px, -50%);
  text-align: left;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  visibility: hidden;
}
.voices_section .accordion_tabs .paragraph p {
  font-size: 16px;
  line-height: 24px;
  padding-right: 30px;
  color: #231F20;
  margin-bottom: 1rem;
}
.voices_section .accordion_tabs .paragraph p:last-child { margin-bottom: 0; }
.voices_section .active_accordion .paragraph { visibility: visible; }

/* The portrait is capped at the open-tile width in every state, not only in
   .active_accordion. Otherwise the panel being closed drops its 190px cap the
   instant it loses .active_accordion, its tile snaps to the panel's full
   700px, and background-size: cover blows the photo up ~3.7x before it
   shrinks back with the collapsing panel. (Invisible in the design lab, whose
   tiles have no photos.) Collapsed panels still clip it to 132px. */
.voices_section .social-links {
  display: block;
  position: relative;
  cursor: pointer;
  text-align: left;
  height: 100%;
  width: 190px;
  max-width: 100%;
}

.voices_section .active_accordion { width: 700px; }
.voices_section .active_accordion .social-links { width: 190px; overflow: hidden; }
.voices_section .inactive_accordion { width: 132px; }

.voices_section .voices_container { display: block; }
.voices_section .voices_slider_wrapper { display: none !important; }

/* Accordion prev/next, centered under the tiles */
.voices_section .accordion_buttons { position: relative; }
.voices_section .accordion_prev,
.voices_section .accordion_next {
  position: absolute;
  bottom: -80px;
  z-index: 5;
  border: 0;
  font-size: 0;
  width: 60px;
  height: 60px;
  transition: 0.5s;
  border-radius: 50px;
  left: 0;
  margin: 0 auto;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voices_section .accordion_prev:hover,
.voices_section .accordion_next:hover { background: var(--blu4); }
.voices_section .accordion_prev { right: 90px; }
.voices_section .accordion_next { right: -80px; }
.voices_section .voices-arrow { width: 22px; height: 22px; display: block; }
.voices_section .accordion_prev .voices-arrow,
.voices_section .voices_carousel_btn.prev .voices-arrow { transform: rotate(180deg); }

/* Story tiles: a collapsed tile is the portrait alone; the name and program
   line ride with the quote in the panel that opens beside it. */
.voices_section .story-tile {
  width: 100%;
  height: 100%;
  background: var(--blu2) center top / cover no-repeat;
  border-top: 4px solid var(--blue);
  transition: filter .2s;
}
.voices_section .social-links .story-tile { height: 360px; }
.voices_section .accordion_tabs:hover .story-tile { filter: brightness(1.06); }
.voices_section .active_accordion .story-tile { border-top-color: var(--blu4); }

/* Photo placeholder: head-and-shoulders outline on the tint, hidden once the
   tile carries a real portrait. */
.voices_section .story-tile-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  opacity: .45;
}
.voices_section .story-tile.has-photo .story-tile-fallback { display: none; }
.voices_section .story-tile-fallback svg { width: 64px; height: 64px; }

/* Copy panel: the quote, then the name and program line beneath it. */
.voices_section .story-body-quote,
.voices_section .story-body-quote p {
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: var(--tx1) !important;
  margin-bottom: 1rem !important;
}
.voices_section .story-body-quote p:last-child { margin-bottom: 0 !important; }
.voices_section .story-body-quote { margin-bottom: 1rem !important; }
.voices_section .story-body-name {
  font-size: 17px !important;
  font-weight: 700;
  color: var(--tx1) !important;
  margin-bottom: .15rem !important;
  padding-right: 0 !important;
}
.voices_section .story-body-org {
  font-size: 15px !important;
  color: var(--tx2) !important;
  margin-bottom: 0 !important;
}

@media only screen and (max-width: 1400px) {
  .voices_section { padding-bottom: 60px; }
  .voices_section .voices_container { display: none; }
  .voices_section .voices_slider_wrapper { display: block !important; }

  .voices_section .voices_carousel { display: flex; align-items: center; gap: 12px; }
  .voices_section .voices_carousel_track_wrap { flex: 1; overflow: hidden; padding: 10px 4px; }
  .voices_section .voices_slides_row {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
  }

  /* card widths set entirely by JS — CSS just prevents shrinking */
  .voices_section .voices_slide {
    flex-shrink: 0;
    min-width: 0;
    margin: 0;
    background: #fff;
    box-shadow: 0px 0px 10px 1px rgb(0 0 0 / 20%);
  }
  .voices_section .voices_slide_image .story-tile { height: auto; aspect-ratio: 1 / 1; }
  .voices_section .voices_slide .story-tile-fallback svg { width: 56px; height: 56px; }
  .voices_section .voices_slide,
  .voices_section .voices_slide_inner_wrapper { display: flex; flex-direction: column; }
  .voices_section .voices_slide_inner_wrapper { height: 100%; }
  .voices_section .voices_slide .paragraph { flex: 1; padding: 15px; }
  .voices_section .voices_slide .story-body-quote,
  .voices_section .voices_slide .story-body-quote p { font-size: 16px !important; }

  .voices_section .voices_carousel_btn {
    flex-shrink: 0;
    border: 0;
    background: var(--blue);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    padding: 0;
  }
  .voices_section .voices_carousel_btn:hover { background: var(--blu4); }
  .voices_section .voices_carousel_btn:disabled { opacity: 0.35; cursor: default; }
}

@media only screen and (max-width: 600px) {
  .voices_section .voices_carousel_btn { width: 40px; height: 40px; }
}

/* Program Experience arrows are <button>s now: drop UA padding/font so the
   redesign's 42px circles render as before. */
.experience-slider .swiper-button-wrap button { padding: 0; font: inherit; }
.experience-slider .swiper-button-wrap button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px currentColor; }
