/*
 * HarperFlow — enhancement-only styles. Loaded ONLY on HarperFlow-authored single
 * posts (gated on the _hf_authored meta), so it never affects the rest of the site.
 * Uses theme-inherited typography/colors where possible and stays visually neutral.
 */

.hf-tldr {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid currentColor;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.025);
}

.hf-tldr__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.hf-tldr ul {
  margin: 0;
  padding-left: 1.25rem;
}

.hf-tldr li {
  margin: 0.25rem 0;
  line-height: 1.55;
}

.hf-faq {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hf-faq__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.hf-faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.25rem 0;
}

.hf-faq__q {
  cursor: pointer;
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  position: relative;
  padding-right: 1.75rem;
}

.hf-faq__q::-webkit-details-marker {
  display: none;
}

.hf-faq__q::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 0.8rem;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.5;
}

.hf-faq__item[open] .hf-faq__q::after {
  content: '\2212'; /* minus */
}

.hf-faq__a {
  padding: 0 0.25rem 1rem;
  line-height: 1.6;
}

.hf-faq__a > *:first-child {
  margin-top: 0;
}

@media (prefers-color-scheme: dark) {
  .hf-tldr {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
  }

  .hf-faq,
  .hf-faq__item {
    border-color: rgba(255, 255, 255, 0.12);
  }
}
