/* ===== Kingsfoil Acupuncture — article.css =====
   Styles for /insights hub + long-form article pages.
   Kept in a separate file (not style.css) so cached CSS never breaks new pages. */

/* ---- Breadcrumb ---- */
.crumbs { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-bottom: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }
.crumbs li[aria-current] { color: var(--accent-lt); }
.crumbs .sep { opacity: 0.5; }

/* ---- Article hero ---- */
.post-hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  padding: 48px 0 56px; text-align: center;
}
.post-cat {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-lt);
  border: 1px solid rgba(224,196,138,0.5); border-radius: 100px; padding: 5px 14px; margin-bottom: 18px;
}
.post-hero h1 {
  font-family: var(--serif); font-size: clamp(1.85rem, 4vw, 2.85rem); line-height: 1.22;
  color: #fff; font-weight: 600; margin: 0 auto 16px; max-width: 860px;
}
.post-lede { font-size: 1.02rem; color: rgba(255,255,255,0.82); max-width: 720px; margin: 0 auto; line-height: 1.75; }

/* ---- Byline ---- */
.post-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 560px; margin-left: auto; margin-right: auto; text-align: left;
}
.post-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lt) 100%);
  color: var(--primary-dk); font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.post-byline { font-size: 0.85rem; color: #fff; font-weight: 700; }
.post-dates { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 3px; }

/* ---- Layout ---- */
.post-wrap { padding: 56px 0 72px; background: var(--bg); }
.post-shell { max-width: 780px; margin: 0 auto; }

/* ---- Direct-answer box (featured snippet / AI answer target) ---- */
.answer-box {
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); margin-bottom: 36px;
}
.answer-label {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.answer-box p { font-size: 1rem; line-height: 1.8; color: var(--text); margin: 0; }
.answer-box p + p { margin-top: 12px; }

/* ---- Table of contents ---- */
.post-toc {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 40px;
}
.post-toc h2 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.post-toc ol { counter-reset: toc; display: grid; gap: 8px; }
.post-toc li { counter-increment: toc; font-size: 0.92rem; display: flex; gap: 10px; }
.post-toc li::before { content: counter(toc) "."; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.post-toc a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-toc a:hover { color: var(--primary-lt); }

/* ---- Body copy ---- */
.post-body { font-size: 1rem; line-height: 1.85; color: var(--text); }
.post-body > h2 {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 600;
  color: var(--primary-dk); line-height: 1.3; margin: 48px 0 14px; scroll-margin-top: 96px;
}
.post-body > h2:first-child { margin-top: 0; }
.post-body h3 {
  font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: var(--text);
  margin: 30px 0 10px; scroll-margin-top: 96px;
}
.post-body p { margin-bottom: 18px; }
.post-body a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--primary-lt); }
.post-body strong { font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 4px; display: grid; gap: 10px; }
.post-body ul li { position: relative; padding-left: 26px; }
.post-body ul li::before {
  content: ""; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.post-body ol { counter-reset: steps; }
.post-body ol li { position: relative; padding-left: 32px; counter-increment: steps; }
.post-body ol li::before {
  content: counter(steps); position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.post-body blockquote {
  border-left: 3px solid var(--primary-lt); background: var(--white);
  padding: 18px 24px; margin: 0 0 24px; border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--primary-dk);
}

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 0 0 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); }
.post-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 540px; }
.post-table caption { caption-side: bottom; font-size: 0.78rem; color: var(--text-muted); padding: 10px 14px; text-align: left; }
.post-table th {
  background: var(--primary); color: #fff; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.02em; text-align: left; padding: 13px 16px;
}
.post-table td { padding: 13px 16px; border-top: 1px solid var(--border); vertical-align: top; line-height: 1.6; }
.post-table tbody tr:nth-child(even) { background: #fcfbf8; }

/* ---- Key takeaways / callouts ---- */
.takeaways {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 30px; margin: 32px 0; box-shadow: var(--shadow);
}
.takeaways h2, .takeaways h3 {
  font-family: var(--sans) !important; font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 14px !important;
}
.takeaways ul { display: grid; gap: 12px; margin: 0; padding: 0; }
.takeaways ul li { position: relative; padding-left: 30px; font-size: 0.95rem; line-height: 1.7; }
.takeaways ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary);
  font-weight: 700; background: none; width: auto; height: auto;
}
.callout {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin: 0 0 26px;
}
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: #fdf6ec; border-color: #e8d7b8; }

/* ---- Local service-area chips ---- */
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; }
.area-chips li { padding: 0 !important; }
.area-chips li::before { display: none !important; }
.area-chips li span {
  display: inline-block; background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 16px; font-size: 0.84rem; color: var(--text);
}

/* ---- FAQ ---- */
.faq-section { margin-top: 52px; }
.faq-list { display: grid; gap: 14px; margin-top: 22px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px;
}
.faq-item h3 {
  font-family: var(--serif); font-size: 1.14rem; font-weight: 600; color: var(--primary-dk);
  margin: 0 0 8px; line-height: 1.4;
}
.faq-item p { font-size: 0.94rem; line-height: 1.8; color: var(--text); margin: 0; }
.faq-item p + p { margin-top: 10px; }

/* ---- Author / E-E-A-T card ---- */
.author-card {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 30px; margin-top: 52px; box-shadow: var(--shadow);
}
.author-card img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.author-card h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.author-role { font-size: 0.82rem; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.author-card p { font-size: 0.9rem; line-height: 1.75; color: var(--text-muted); margin: 0; }

/* ---- Medical disclaimer ---- */
.disclaimer {
  margin-top: 28px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--cream); border: 1px dashed var(--border);
  font-size: 0.8rem; line-height: 1.7; color: var(--text-muted);
}

/* ---- In-article CTA ---- */
.post-cta {
  margin-top: 48px; text-align: center; border-radius: 16px; padding: 44px 32px;
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
}
.post-cta h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; font-weight: 600; margin-bottom: 10px; }
.post-cta p { font-size: 0.95rem; color: rgba(255,255,255,0.78); max-width: 520px; margin: 0 auto 26px; }
.post-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Related posts + insights hub grid ---- */
.related { margin-top: 56px; }
.related > h2, .insights-head > h2 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--primary-dk); margin-bottom: 20px;
}
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.insight-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: 14px; padding: 28px 26px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-lt); }
.insight-card .post-cat { margin-bottom: 14px; color: var(--primary); border-color: rgba(45,107,90,0.3); }
.insight-card h3 {
  font-family: var(--serif); font-size: 1.24rem; font-weight: 600; color: var(--text);
  line-height: 1.35; margin-bottom: 10px;
}
.insight-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 18px; }
.insight-card .card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 14px;
}
.insight-card .card-link { color: var(--primary); font-weight: 700; }

/* ---- Homepage insights teaser ---- */
.insights-teaser { padding: 80px 0; background: var(--cream); }

@media (max-width: 900px) {
  .insights-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-hero { padding: 36px 0 44px; }
  .post-meta { flex-direction: row; gap: 12px; }
  .answer-box, .post-toc, .faq-item, .takeaways { padding: 20px 20px; }
  .author-card { flex-direction: column; gap: 16px; padding: 24px 22px; }
  .author-card img { width: 72px; height: 72px; }
  .post-body > h2 { margin-top: 38px; }
  .post-cta { padding: 34px 22px; }
}
