/* ============================================================
   SEO OS v3.1 — Frontend Injected Styles
   Loaded only on singular posts/pages. Lightweight.
   ============================================================ */

/* ── Key Takeaways box ───────────────────────────────────── */
.seoos-takeaways {
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  border-left: 4px solid #6366f1;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
}
.seoos-takeaways strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #4338ca;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}
.seoos-takeaways ul {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: disc;
}
.seoos-takeaways li {
  margin-bottom: 6px;
  color: #1e1b4b;
}

/* ── Table of Contents block ─────────────────────────────── */
.seoos-toc {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #6366f1;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0;
}
.seoos-toc__title {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.seoos-toc__list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.seoos-toc__item {
  margin: 0 0 8px !important;
  padding: 0 !important;
  list-style: none !important;
}
.seoos-toc__item:last-child { margin-bottom: 0 !important; }
.seoos-toc__link {
  color: #6366f1 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color .15s;
}
.seoos-toc__link::before {
  content: '↗';
  font-size: 11px;
  opacity: .6;
  flex-shrink: 0;
}
.seoos-toc__link:hover {
  color: #4338ca !important;
  text-decoration: underline !important;
}

/* ── Last Updated badge ──────────────────────────────────── */
.seoos-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.seoos-last-updated svg { flex-shrink: 0; }

/* ── FAQ accordion ───────────────────────────────────────── */
.seoos-faq {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 36px 0;
}
.seoos-faq__title {
  font-size: 18px !important;
  font-weight: 800;
  margin: 0 0 16px !important;
  color: #111827;
  border: none !important;
  padding: 0 !important;
}
.seoos-faq__item {
  border-bottom: 1px solid #e5e7eb;
}
.seoos-faq__item:last-child { border-bottom: none; }
.seoos-faq__q {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.seoos-faq__q::-webkit-details-marker { display: none; }
/* All open by default — show − when open, + when closed */
.seoos-faq__item[open] .seoos-faq__q::after {
  content: '−';
  font-size: 22px;
  color: #6366f1;
  flex-shrink: 0;
  font-weight: 300;
  line-height: 1;
}
.seoos-faq__q::after {
  content: '+';
  font-size: 22px;
  color: #6366f1;
  flex-shrink: 0;
  font-weight: 300;
  line-height: 1;
}
.seoos-faq__a {
  padding: 0 0 16px;
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
}
.seoos-faq__a p { margin: 0; }
/* ── Q&A AEO inline markup ───────────────────────────────── */
.seoos-qa { margin: 8px 0; }
.seoos-qa__a { margin-top: 0; }

/* ── Author bio box ──────────────────────────────────────── */
.seoos-author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #6366f1;
  border-radius: 10px;
  padding: 20px;
  margin: 36px 0 18px;
}
.seoos-author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.seoos-author__body { flex: 1; min-width: 0; }
.seoos-author__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6366f1;
  display: block;
  margin-bottom: 3px;
}
.seoos-author__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  margin-bottom: 6px;
}
.seoos-author__name:hover { color: #6366f1; }
.seoos-author__bio {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 600px) {
  .seoos-author { flex-direction: column; }
  .seoos-author img { width: 52px; height: 52px; }
}
