/* Key takeaway + FAQ blocks added to CXO Debrief articles (Salient theme), plus small fixes for the
   video features. Colours follow the theme: near-black (#0a0a0a) on a light grey page (#f7f7f7),
   Poppins for headings and labels, Source Serif Pro for body text. The site has no dark mode.
   The theme's own look (header, fonts, labels, buttons) is left as on the live site. */

.cxo-aeo-summary, .cxo-aeo-faq { --cxd-ink: #0a0a0a; --cxd-line: #e2e2e2; --cxd-line-strong: #c4c4c4; --cxd-muted: #555; }

/* Key takeaway: a white card with a black outline and a black "Key takeaway" tag on its top border */
.content-inner > .cxo-aeo-summary {
  position: relative;
  margin: 2.5rem 0 2.5rem;
  padding: 2rem 2rem 1.6rem;
  background: #fff;
  border: 2px solid var(--cxd-ink);
  border-radius: 0;
}
.cxo-aeo-summary .cxo-aeo-label {
  position: absolute;
  top: 0;
  left: 1.5rem;
  transform: translateY(-50%);
  margin: 0 !important;
  padding: .3rem .7rem;
  background: var(--cxd-ink);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.content-inner > .cxo-aeo-summary .cxo-aeo-text {
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--cxd-ink);
}
@media (max-width: 599px) {
  .content-inner > .cxo-aeo-summary { padding: 1.75rem 1.25rem 1.35rem; }
  .cxo-aeo-summary .cxo-aeo-label { left: 1rem; }
  .content-inner > .cxo-aeo-summary .cxo-aeo-text { font-size: 1.0625rem; }
}

/* Frequently asked questions: an accordion under a black rule */
.content-inner > .cxo-aeo-faq {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 2px solid var(--cxd-ink);
}
/* the title keeps the theme's own article h2 style; only spacing is set */
.content-inner > .cxo-aeo-faq .cxo-aeo-faq-title { margin: 0 0 1.25rem; padding: 0; }
.cxo-aeo-faq .cxo-aeo-item {
  margin: 0;
  border-bottom: 1px solid var(--cxd-line);
}
.cxo-aeo-faq .cxo-aeo-item:first-of-type { border-top: 1px solid var(--cxd-line); }
.cxo-aeo-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}
.cxo-aeo-faq summary::-webkit-details-marker { display: none; }
.cxo-aeo-faq summary:focus-visible {
  outline: 2px solid var(--cxd-ink);
  outline-offset: 4px;
  border-radius: 2px;
}
.content-inner > .cxo-aeo-faq .cxo-aeo-q {
  margin: 0;
  padding: 0;
  font-family: Poppins, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cxd-ink);
}
.cxo-aeo-faq .cxo-aeo-icon {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--cxd-line-strong);
  transition: background-color .2s, border-color .2s;
}
.cxo-aeo-faq .cxo-aeo-icon::before,
.cxo-aeo-faq .cxo-aeo-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .75rem;
  height: 1.5px;
  background: var(--cxd-ink);
  transform: translate(-50%, -50%);
  transition: transform .2s, background-color .2s;
}
.cxo-aeo-faq .cxo-aeo-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.cxo-aeo-faq details[open] .cxo-aeo-icon { background: var(--cxd-ink); border-color: var(--cxd-ink); }
.cxo-aeo-faq details[open] .cxo-aeo-icon::before,
.cxo-aeo-faq details[open] .cxo-aeo-icon::after { background: #fff; }
.cxo-aeo-faq details[open] .cxo-aeo-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.cxo-aeo-faq summary:hover .cxo-aeo-icon { border-color: var(--cxd-ink); }
.content-inner > .cxo-aeo-faq .cxo-aeo-a p {
  margin: 0 0 1.25rem;
  padding: 0 3rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cxd-muted);
}
@media (max-width: 599px) {
  .content-inner > .cxo-aeo-faq .cxo-aeo-a p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cxo-aeo-faq .cxo-aeo-icon,
  .cxo-aeo-faq .cxo-aeo-icon::before,
  .cxo-aeo-faq .cxo-aeo-icon::after { transition: none; }
}

/* links to a section (#heading) land below the sticky header */
.content-inner h2[id], .content-inner h3[id], .cxo-aeo-faq { scroll-margin-top: 110px; }

/* the video popup (site/assets/video-popup.js) in the theme's black and white */
.cxo-pop .cxo-pop-box { background: #0b0b0b; border-radius: 0; }
.cxo-pop .cxo-pop-title { font-weight: 600; }
.cxo-pop .cxo-pop-read { display: block !important; width: 100%; align-self: stretch !important; text-align: center; box-sizing: border-box; background: #fff !important; color: #111 !important; border-radius: 0 !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.cxo-pop .cxo-pop-read:hover, .cxo-pop .cxo-pop-read:focus-visible { background: #ddd !important; }

/* Archive pages (category, tag, author, search): Salient's grey header block fades from #f2f2f2 to the
   page colour, but starts below the menu, leaving a lighter strip with a hard edge behind the menu.
   The same grey is painted behind the menu so the two read as one section. */
body:has(.page-header-no-bg.color-bg) .ocm-effect-wrap {
  background: linear-gradient(#f2f2f2, #f2f2f2) 0 0 / 100% 240px no-repeat, var(--nectar-bg-color, #f7f7f7);
}
