/* Key takeaway + FAQ blocks added to Wolf&Grayson articles.
   Built from the Overflow theme's own look: white page, black text, the Onest font (assets/fonts.css)
   and the small uppercase "title-block" labels (the theme has no colour variables or dark mode). */

/* Key takeaway: "Outlined" (design/takeaway-options.html, option 3). A thin outline with the label
   sitting on the top border. The label's white background covers the line. */
.entry-content > .bs-aeo-summary {
  position: relative;
  margin: 2.75rem 0 2.25rem;
  padding: 1.9rem 2rem 1.6rem;
  border: 1px solid #dcdcdc;
  border-radius: 0;
}
.bs-aeo-summary .bs-aeo-label {
  position: absolute;
  top: -.6rem;
  left: 1.5rem;
  margin: 0;
  padding: 0 .6rem;
  background: #fff;
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .125em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #000;
}
.entry-content > .bs-aeo-summary .bs-aeo-text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #000;
}
@media (max-width: 599px) {
  .entry-content > .bs-aeo-summary { padding: 1.6rem 1.35rem 1.35rem; }
  .bs-aeo-summary .bs-aeo-label { left: 1rem; }
}

.entry-content > .bs-aeo-faq {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}
/* the title keeps the theme's own article h2 style; only spacing is set */
.entry-content > .bs-aeo-faq .bs-aeo-faq-title { margin: 0 0 1.25rem; }
.bs-aeo-faq .bs-aeo-item {
  margin: 0;
  border-bottom: 1px solid #e9ecef;
}
.bs-aeo-faq .bs-aeo-item:first-of-type {
  border-top: 1px solid #e9ecef;
}
.bs-aeo-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}
.bs-aeo-faq summary::-webkit-details-marker { display: none; }
.bs-aeo-faq summary:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
  border-radius: 2px;
}
.entry-content > .bs-aeo-faq .bs-aeo-q {
  margin: 0;
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}
.bs-aeo-faq .bs-aeo-icon {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  transition: background-color .2s, border-color .2s;
}
.bs-aeo-faq .bs-aeo-icon::before,
.bs-aeo-faq .bs-aeo-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .75rem;
  height: 1.5px;
  background: #000;
  transform: translate(-50%, -50%);
  transition: transform .2s, background-color .2s;
}
.bs-aeo-faq .bs-aeo-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.bs-aeo-faq details[open] .bs-aeo-icon {
  background: #000;
  border-color: #000;
}
.bs-aeo-faq details[open] .bs-aeo-icon::before,
.bs-aeo-faq details[open] .bs-aeo-icon::after { background: #fff; }
.bs-aeo-faq details[open] .bs-aeo-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.bs-aeo-faq summary:hover .bs-aeo-icon { border-color: #000; }
.entry-content > .bs-aeo-faq .bs-aeo-a p {
  margin: 0 0 1.25rem;
  padding-right: 3rem;
  line-height: 1.65;
  color: #555;
}

@media (max-width: 599px) {
  .entry-content > .bs-aeo-faq .bs-aeo-a p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-aeo-faq .bs-aeo-icon,
  .bs-aeo-faq .bs-aeo-icon::before,
  .bs-aeo-faq .bs-aeo-icon::after { transition: none; }
}

/* links to a section (#heading) land below the sticky menu bar */
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 100px; }

/* the theme's muted background clips fade out while they jump back to their start (theme scripts.js) */
.cs-video-wrapper iframe { transition: opacity .25s; }
.cs-video-wrapper.bs-hold iframe { opacity: 0; }

/* Article cards whose article has a video interview: the theme plays the header clip in the card
   (server.js addCardVideos), and this label marks them before the clip starts. */
.wg-video-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 8px;
  background: rgb(0 0 0 / .72);
  color: #fff;
  font: 600 10px/1.2 'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}
.wg-video-badge span { font-size: 8px; letter-spacing: 0; }
/* the clip fades in over the photo; it never blocks the card's link */
.wg-has-video .cs-video-wrapper { pointer-events: none; }
/* the theme's clips (cards and article headers) fade out while they jump back to their start, so
   YouTube's pause/play flash never shows (theme js/scripts.js adds wg-hold) */
.cs-video-wrapper .cs-video-inner { transition: opacity .3s; }
.cs-video-wrapper.wg-hold .cs-video-inner { opacity: 0 !important; transition: none; }
