/* ============================================================
   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; }
}

/* SEO OS v3.3 — HowTo Block Frontend */
.seoos-howto{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:24px;margin:24px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.seoos-howto__title{font-size:1.1em;font-weight:700;margin:0 0 10px;color:#111827}
.seoos-howto__desc{font-size:.9em;color:#6b7280;margin:0 0 14px}
.seoos-howto__meta{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px;padding:10px 14px;background:#fff;border-radius:8px;border:1px solid #e5e7eb}
.seoos-howto__meta-item{display:flex;align-items:center;gap:6px;font-size:.85em;color:#374151}
.seoos-howto__meta-icon{font-size:1em}
.seoos-howto__supplies{margin-bottom:16px}
.seoos-howto__supplies strong{font-size:.85em;font-weight:700;color:#374151;text-transform:uppercase;letter-spacing:.04em}
.seoos-howto__supplies ul{list-style:none;padding:0;margin:8px 0 0}
.seoos-howto__supplies ul li{padding:4px 0;font-size:.9em;padding-left:20px;position:relative;color:#374151}
.seoos-howto__supplies ul li::before{content:'✓';position:absolute;left:0;color:#16a34a;font-weight:700}
.seoos-howto__steps{list-style:none;padding:0;margin:0;counter-reset:howto-step}
.seoos-howto__step{display:flex;gap:14px;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid #e5e7eb}
.seoos-howto__step:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.seoos-howto__step-num{width:32px;height:32px;border-radius:50%;background:#4f46e5;color:#fff;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.seoos-howto__step-body{flex:1}
.seoos-howto__step-name{font-size:.95em;font-weight:700;color:#111827;display:block;margin-bottom:4px}
.seoos-howto__step-body p{font-size:.9em;color:#374151;margin:0 0 8px;line-height:1.6}
.seoos-howto__step-body img{max-width:100%;border-radius:8px;margin-top:8px}
