/* ════════════════════════════════════════════════════════════
   SEO EDITORIAL STYLES — shared across all calculator pages
   Loaded by: property_vs_shares.html, mortgage.html, index.html
   Classes: .seo-intent, .seo-longform, .seo-faq, .seo-section__h2,
            .seo-faq-item, .seo-chip
   ════════════════════════════════════════════════════════════ */

/* ── SEO INTENT BANNER ── */
.seo-intent {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(201,168,76,.05), rgba(78,142,247,.03));
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
}

.seo-intent__h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.35;
}

.seo-intent__lead {
  font-size: .83rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 12px;
}

.seo-intent__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seo-chip {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 99px;
  font-size: .72rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
}

[data-theme="light"] .seo-intent {
  background: rgba(31,76,59,.04);
  border-color: #d0dfe0;
  border-left-color: #c9a84c;
}
[data-theme="light"] .seo-intent__h1 { color: #0f1118; }
[data-theme="light"] .seo-intent__lead { color: #374060; }
[data-theme="light"] .seo-chip {
  background: rgba(201,168,76,.1);
  border-color: rgba(201,168,76,.3);
  color: #7a5200;
}

/* ── SEO LONGFORM (post-calculator article content) ── */
.seo-longform,
.seo-faq {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.seo-longform {
  margin-top: 52px;
  margin-bottom: 0;
}

.seo-longform p,
.seo-faq p {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 14px;
}

.seo-longform h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.seo-section__h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px;
  letter-spacing: -.01em;
}

.seo-section__h2--sm {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

[data-theme="light"] .seo-longform p,
[data-theme="light"] .seo-faq p { color: #374060; }
[data-theme="light"] .seo-longform h3 { color: #0f1118; border-color: #d0dfe0; }
[data-theme="light"] .seo-section__h2 { color: #0f1118; }

/* ── SEO FAQ accordion ── */
.seo-faq {
  margin-top: 40px;
  margin-bottom: 48px;
}

.seo-faq__title {
  /* inherits .seo-section__h2 */
}

.seo-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .15s;
}

.seo-faq-item:hover,
.seo-faq-item[open] {
  border-color: rgba(201,168,76,.35);
}

.seo-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition: background .12s;
}

.seo-faq-item summary::-webkit-details-marker { display: none; }

.seo-faq-item summary::before {
  content: '▶';
  font-size: .6rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform .2s;
}

.seo-faq-item[open] summary::before {
  transform: rotate(90deg);
}

.seo-faq-item summary:hover {
  background: rgba(255,255,255,.03);
}

.seo-faq-item p {
  margin: 0;
  padding: 12px 18px 16px 38px;
  font-size: .84rem;
  line-height: 1.75;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

[data-theme="light"] .seo-faq-item {
  border-color: #d0dfe0;
  background: #fff;
}
[data-theme="light"] .seo-faq-item:hover,
[data-theme="light"] .seo-faq-item[open] {
  border-color: #c9a84c;
}
[data-theme="light"] .seo-faq-item summary { color: #0f1118; }
[data-theme="light"] .seo-faq-item summary:hover { background: #f7fbfc; }
[data-theme="light"] .seo-faq-item p {
  color: #374060;
  border-top-color: #e1ecf1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .seo-intent {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
  }
  .seo-intent__h1 { font-size: 1rem; }
  .seo-intent__lead { font-size: .80rem; }

  .seo-longform,
  .seo-faq {
    padding: 0 16px;
  }
  .seo-longform { margin-top: 36px; }
  .seo-section__h2 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .seo-chip { font-size: .68rem; padding: 2px 8px; }
  .seo-faq-item summary { font-size: .83rem; padding: 12px 14px; }
  .seo-faq-item p { padding: 10px 14px 14px 28px; }
}
