/* UPC page redesign — staging2 only (template-upc.php) */
.page-template-template-upc .upc-redesign {
  --upc-red: #e30613;
  --upc-ink: #1a1a1a;
  --upc-muted: #5c5c5c;
  --upc-panel: #2b2b2b;
  --upc-line: #e5e5e5;
  color: var(--upc-ink);
}

.page-template-template-upc .upc-redesign .box-design-11,
.page-template-template-upc .upc-redesign .box-design-12,
.page-template-template-upc .upc-redesign .box-design-13,
.page-template-template-upc .upc-redesign .box-design-14,
.page-template-template-upc .search-section {
  display: none !important;
}

/* Hero uses site .banner-section / .banner-content */
.upc-banner {
  overflow: hidden;
}
.upc-banner .banner-content h1 {
  font-weight: 300;
  color: #fff;
}

/*
 * Menu = one hard-left sticky column that overlaps the banner:
 * red “Latest UPC insights” + translucent dark arrow, then dark panel.
 */
/*
 * Side nav outside .container-one. Equal side columns so left menu width
 * matches the empty right gutter beside .container-one.
 */
.page-template-template-upc .upc-main > .container-one.upc-wrap {
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 64px;
  max-width: none;
  width: 100%;
}
.upc-layout {
  --upc-nav-w: 250px;
  --upc-content-w: 1040px; /* site .container-one */
  display: grid;
  /* Equal left/right columns so gutters match on both sides of content */
  grid-template-columns: 1fr minmax(0, var(--upc-content-w)) 1fr;
  justify-content: center;
  align-items: start;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: -220px 0 0;
  position: relative;
  z-index: 6;
  box-sizing: border-box;
}
.upc-side-nav {
  position: sticky;
  top: 80px;
  z-index: 7;
  width: var(--upc-nav-w);
  max-width: var(--upc-nav-w);
  min-width: var(--upc-nav-w);
  margin: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: var(--font-open, "Open Sans", sans-serif);
  box-sizing: border-box;
  grid-column: 1;
  justify-self: end; /* hug the content column */
}
.upc-main {
  position: relative;
  padding: 250px 0 0 70px;
  min-width: 0;
  background: none;
  grid-column: 2;
}

/* Top CTA: red wedge (triangle tip on top) + lower translucent arrow box */
.upc-side-nav__insights {
  display: block;
  width: 100%;
  height: 210px;
  text-decoration: none;
  color: #fff;
  margin: 0;
  position: relative;
  overflow: visible;
}
.upc-side-nav__insights-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--upc-red);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  padding: 24px 42% 20px 16px;
  box-sizing: border-box;
  /*
   * Design geometry (from mockup):
   * point at top-left → peaks ~56% wide at ~18% height → 40% wide at bottom.
   * Creates the red triangle sitting out above the arrow box.
   */
  clip-path: polygon(0 0, 56% 18%, 40% 100%, 0 100%);
}
.upc-side-nav__insights-label span { display: block; }
.upc-side-nav__insights-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 35%;
  width: 62%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 45, 45, .72);
  color: #fff;
  box-sizing: border-box;
  /* Left edge follows the red diagonal in the lower portion */
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 3% 100%);
}
.upc-side-nav__insights-arrow svg {
  width: 44px;
  height: 44px;
  display: block;
  margin-left: 8px;
}
.upc-side-nav__insights:hover { color: #fff; }

.upc-side-nav__panel {
  background: #484848;
  padding: 36px 0 32px;
  min-height: calc(30vh - 200px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.upc-side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.upc-side-nav__list li { margin: 0; }
.upc-side-nav__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0;
  padding: 10px 16px 6px 16px;
  line-height: 1.3;
  border: 0;
  position: relative;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
}
.upc-side-nav__list .upc-nav-label {
  white-space: nowrap;
  /* Reserve bold metrics so active state doesn’t widen the label */
  font-weight: 300;
}
.upc-side-nav__list .upc-nav-arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.upc-side-nav__list .upc-nav-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
  stroke: #fff;
}
.upc-side-nav__list .upc-nav-arrow svg path {
  stroke: #fff;
}
.upc-side-nav__list a.is-active {
  color: var(--upc-red);
  font-weight: 300; /* keep weight stable — bold was widening the menu */
}
.upc-side-nav__list a.is-active .upc-nav-label {
  font-weight: 300;
}
.upc-side-nav__list a.is-active .upc-nav-arrow {
  visibility: visible;
  opacity: 1;
  color: #fff;
}
.upc-side-nav__list a.is-active .upc-nav-arrow svg,
.upc-side-nav__list a.is-active .upc-nav-arrow svg path {
  stroke: #fff;
}
.upc-side-nav__list a:hover { color: #fff; }
.upc-side-nav__list a.is-active:hover { color: var(--upc-red); }

.upc-side-nav__cta {
  display: none;
}

.upc-wrap {
  /* Width/padding from site .container-one; only nudge bottom spacing */
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .upc-layout {
    grid-template-columns: 1fr;
    margin-top: -70px;
  }
  .upc-side-nav,
  .upc-main {
    grid-column: auto;
    max-width: none;
  }
  .upc-side-nav {
    position: relative;
    top: auto;
    width: 100%;
  }
  .upc-side-nav__insights {
    height: 160px;
  }
  .upc-side-nav__insights-label {
    font-size: 18px;
  }
  .upc-side-nav__panel {
    min-height: 0;
  }
  .upc-main {
    padding-top: 1.5rem;
    padding-left: 0;
  }
  .page-template-template-upc .upc-main > .container-one.upc-wrap {
    padding-bottom: 3rem;
  }
}

.upc-section {
  padding: 2.5rem 0 1rem;
  scroll-margin-top: 100px;
}

/* Use site heading/paragraph styles — only nudge underline to brand red on this page */
.upc-main .section-title-one h2 {
  font-family: var(--font-open, "Open Sans", sans-serif);
}
.upc-main .section-title-one.style-yellow h2::after {
  background-color: var(--upc-red) !important;
}

.upc-intro {
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: left;
  font-family: var(--font-open, "Open Sans", sans-serif);
  color: var(--text-primary, var(--upc-ink));
  font-size: 15px;
  font-weight: 200;
  line-height: 1.5;
}
.upc-intro p {
  font-size: 15px;
  font-weight: 200;
  line-height: 1.5;
  margin-bottom: 1em;
  color: var(--text-primary, var(--upc-ink));
}
.upc-intro a { color: var(--upc-red); }
.upc-intro h2 { display: none; }

/* Experts — same Bootstrap row + .team-item as /people/ */
.upc-experts-section .team-image {
  position: relative;
}
/* Site forces UPC team cards to 180px; /people/ uses 155px */
.page-template-template-upc .upc-experts-section .team-item.style-two .team-image,
.page-template-template-upc .upc-experts-section .team-item .team-image img {
  height: 155px !important;
}
.upc-expert__specialty {
  display: none; /* TEMP: hide specialty pills; re-enable when needed */
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  margin: 0;
  line-height: 1.2;
  pointer-events: none;
}
.upc-expert__specialty span {
  font-family: var(--font-open, "Open Sans", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: block;
  padding: 5px 12px;
  border-radius: 0 100px 100px 0;
  background: var(--primary-blue, #36a9e1);
}
.upc-experts-more {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--upc-red);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.upc-experts-more:hover { color: var(--upc-red); opacity: .85; }
.upc-experts-more.is-open span { transform: rotate(90deg); display: inline-block; }
.upc-experts-more-panel {
  margin-top: 1.5rem;
}
.upc-experts-more-panel[hidden] { display: none !important; }

/* Insights */
.upc-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .upc-insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .upc-insights-grid { grid-template-columns: 1fr; }
}
.upc-insight-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Match site .insight-item .image img */
.upc-insight-card__img {
  display: block;
  overflow: hidden;
  background: #eee;
  margin-bottom: .75rem;
  height: 210px;
}
.upc-insight-card__img img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: .62s;
}
@media (min-width: 1400px) {
  .upc-insight-card__img,
  .upc-insight-card__img img { height: 220px; }
}
@media (max-width: 575px) {
  .upc-insight-card__img,
  .upc-insight-card__img img { height: 140px; }
}
.upc-insight-card__date {
  font-size: .78rem;
  color: var(--upc-red);
  margin-bottom: .35rem;
}
.upc-insight-card__title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 .5rem;
}
.upc-insight-card__title a {
  color: var(--upc-ink);
  text-decoration: none;
}
.upc-insight-card__title a:hover { color: var(--upc-red); }
.upc-insight-card__excerpt {
  font-size: .86rem;
  color: var(--upc-muted);
  line-height: 1.5;
  margin: 0 0 .65rem;
  flex: 1;
}
.upc-insight-card__more {
  font-size: .82rem;
  font-weight: 600;
  color: var(--upc-ink);
  text-decoration: none;
}
.upc-insight-card__more:hover { color: var(--upc-red); }
.upc-btn-dark {
  display: inline-block;
  margin-top: 1.5rem;
  background: #111;
  color: #fff !important;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  padding: .55rem 1.1rem;
}
.upc-btn-dark:hover { color: #fff !important; filter: brightness(1.15); }

/* FAQ */
.upc-faq-item {
  border-bottom: 1px solid var(--upc-line);
}
.upc-faq-item__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 1.05rem 2rem 1.05rem 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--upc-ink);
  position: relative;
  cursor: pointer;
}
.upc-faq-item__q::after {
  content: "›";
  position: absolute;
  right: .15rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  color: var(--upc-red);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .2s ease;
}
.upc-faq-item.is-open .upc-faq-item__q::after {
  transform: translateY(-50%) rotate(90deg);
}
.upc-faq-item__a {
  display: none;
  padding: 0 1rem 1.15rem 0;
  color: var(--upc-muted);
  font-size: .95rem;
  line-height: 1.65;
}
.upc-faq-item.is-open .upc-faq-item__a { display: block; }

/* Toolkit */
.upc-toolkit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.5rem;
}
@media (max-width: 991px) {
  .upc-toolkit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .upc-toolkit-grid { grid-template-columns: 1fr; }
}
.upc-toolkit-card {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--upc-red);
}
.upc-toolkit-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee;
  margin-bottom: .85rem;
  position: relative;
}
.upc-toolkit-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.upc-toolkit-card__title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--upc-ink);
}
.upc-toolkit-card:hover .upc-toolkit-card__title,
.upc-toolkit-card:hover .insight-title { color: var(--upc-red); }

