/* Key takeaway + FAQ blocks added to Falkcroft articles.
   Built only from the Blueprint theme's own variables and fonts, so the blocks
   follow the site's light/dark scheme toggle and match its typography. */

/* Key takeaways: "Key points" (design/takeaway-options.html, option 6). A light grayscale panel,
   one sentence per line with a check mark (lib/aeo.js splits the takeaway). In the site's dark
   mode the panel is G2-ish on the G1 page. Grays: G1 #0d0d0d, G2 #262626, G8 #ededed. */
.entry-content > .fc-aeo-summary {
  margin: 0 0 2.25rem;
  padding: 1.5rem 1.75rem;
  background: #ededed;
  color: #0d0d0d;
  border-radius: 4px;
}
.fc-aeo-summary .fc-aeo-label {
  margin: 0 0 .9rem;
  font-family: var(--cs-font-section-headings-family), sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #0d0d0d;
}
.entry-content > .fc-aeo-summary .fc-aeo-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.entry-content > .fc-aeo-summary .fc-aeo-points li {
  display: flex;
  gap: 12px;
  margin: 0 0 .75rem;
  padding: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #262626;
}
.entry-content > .fc-aeo-summary .fc-aeo-points li:last-child { margin-bottom: 0; }
/* the theme gives article list items its own bullets and markers; this list has check marks */
.entry-content > .fc-aeo-summary .fc-aeo-points li::before,
.entry-content > .fc-aeo-summary .fc-aeo-points li::marker { content: none; display: none; }
.fc-aeo-summary .fc-aeo-check { flex: none; margin-top: .3em; color: #0d0d0d; }

[data-site-scheme="dark"] .entry-content > .fc-aeo-summary { background: #1a1a1a; box-shadow: inset 0 0 0 1px #262626; }
[data-site-scheme="dark"] .fc-aeo-summary .fc-aeo-label,
[data-site-scheme="dark"] .fc-aeo-summary .fc-aeo-check { color: #ededed; }
[data-site-scheme="dark"] .entry-content > .fc-aeo-summary .fc-aeo-points li { color: #d4d4d4; }

@media (max-width: 599px) {
  .entry-content > .fc-aeo-summary { padding: 1.3rem 1.25rem; }
  .entry-content > .fc-aeo-summary .fc-aeo-points li { font-size: 1rem; }
}

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

@media (max-width: 599px) {
  .entry-content > .fc-aeo-faq .fc-aeo-a p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-aeo-faq .fc-aeo-icon,
  .fc-aeo-faq .fc-aeo-icon::before,
  .fc-aeo-faq .fc-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.fc-hold iframe { opacity: 0; }
