/* ═══════════════════════════════════════════════════════
   Blog Post Content Styles
   Scoped to .post-body to avoid conflicting with site CSS
   ═══════════════════════════════════════════════════════ */

.post-body {
  --blog-ink:   #1c1c1c;
  --blog-ember: #d64b2a;
  --blog-steel: #3c4a4a;
  --blog-gold:  #b8802c;
}

.post-body * { box-sizing: border-box; }

/* ── Hero header ─────────────────────────────────────── */
.post-body header.hero {
  position: relative;
  padding: 56px 2rem 48px;
  text-align: left;
  background:
    radial-gradient(circle at 85% 15%, rgba(214,75,42,0.08), transparent 55%),
    linear-gradient(180deg, #fbfaf8 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(184,128,44,0.25);
  margin: 0 -1.25rem 2.5rem;
  overflow: hidden;
}

.post-body .hero-inner {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.post-body .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blog-gold);
  border: 1px solid rgba(201,154,62,0.4);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.post-body header.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--blog-ink);
  letter-spacing: -0.01em;
}

.post-body h1 .accent { color: var(--blog-ember); }

.post-body .subhead {
  font-size: 1.05rem;
  color: rgba(28,28,28,0.62);
  max-width: 580px;
  margin: 0;
  line-height: 1.65;
}

.post-body .strike {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blog-ember), transparent);
  opacity: 0.5;
}

/* ── Content wrap ────────────────────────────────────── */
.post-body .wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 60px;
}

/* ── Sections ────────────────────────────────────────── */
.post-body section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(20,16,14,0.07);
}

.post-body section:last-of-type { border-bottom: none; }

.post-body .section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-body .section-label .glyph {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.post-body .section-label h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--blog-ink);
}

/* ── Typography ──────────────────────────────────────── */
.post-body .wrap p {
  color: rgba(28,28,28,0.78);
  font-size: 1rem;
  margin: 0 0 14px;
  line-height: 1.7;
}

.post-body .wrap ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-body .wrap ul li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid rgba(20,16,14,0.06);
  color: rgba(28,28,28,0.8);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.post-body .wrap ul li:last-child { border-bottom: none; }

.post-body .wrap ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--blog-ember);
  font-size: .85rem;
}

/* ── Device grid ─────────────────────────────────────── */
.post-body .device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.post-body .device-card {
  background: rgba(20,16,14,0.025);
  border: 1px solid rgba(20,16,14,0.09);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: rgba(28,28,28,0.78);
}

/* ── Conclusion block ────────────────────────────────── */
.post-body .conclusion {
  background: linear-gradient(135deg, rgba(214,75,42,0.05), rgba(60,74,74,0.05));
  border: 1px solid rgba(214,75,42,0.22);
  border-radius: 8px;
  padding: 28px 32px;
  margin-top: 8px;
}

.post-body .conclusion p {
  margin: 0;
  color: var(--blog-ink);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .post-body header.hero {
    padding: 36px 1.25rem 32px;
    margin: 0 -1.25rem 2rem;
    border-radius: 0;
  }
  .post-body header.hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .post-body .wrap { padding: 0 0 40px; }
  .post-body section { padding: 28px 0; }
  .post-body .conclusion { padding: 18px 16px; }
}

@media (max-width: 480px) {
  .post-body header.hero {
    padding: 28px 1rem 28px;
    margin: 0 -1.25rem 1.5rem;
  }
  .post-body header.hero h1 { font-size: 1.35rem; line-height: 1.2; }
  .post-body .subhead { font-size: .95rem; }
  .post-body .device-grid { grid-template-columns: 1fr 1fr; }
  .post-body .section-label h2 { font-size: 1.15rem; }
}

/* ── FAQ Accordion ──────────────────────────────────────── */
.post-body .faq-item { border-bottom: 1px solid rgba(20,16,14,0.08); }

.post-body .faq-item:last-child { border-bottom: none; }

.post-body .faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 4px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--blog-ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.post-body .faq-question:hover { color: var(--blog-ember); }

.post-body .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blog-ember);
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.post-body .faq-item.open .faq-icon { transform: rotate(45deg); }

.post-body .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 4px;
}

.post-body .faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 4px 18px;
}

.post-body .faq-answer p { margin: 0; color: rgba(28,28,28,0.75); font-size: 0.98rem; }
