/* ============================================================
   Ethos Wellness — Blog styles (loaded on /blog/ + post pages)
   Uses the same brand tokens as main.css (navy/forest/stone/cream).
   ============================================================ */

/* --- Blog landing hero --- */
.blog-hero {
  background: var(--navy);
  color: var(--white, #fff);
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 88px);
  text-align: center;
}
.blog-hero .eyebrow-dot { color: rgba(255,255,255,0.7); }
.blog-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 16px; font-weight: 700; }
.blog-hero p { color: rgba(255,255,255,0.82); max-width: 640px; margin: 0 auto; font-size: 17px; line-height: 1.7; }

/* --- Tag filter bar --- */
.blog-filter { background: var(--cream); border-bottom: 1px solid rgba(17,39,77,0.08); position: sticky; top: 0; z-index: 50; }
.blog-filter-inner { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0; justify-content: center; }
.blog-filter-pill {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(17,39,77,0.18);
  background: #fff; color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all 0.18s ease; text-decoration: none; display: inline-block;
}
.blog-filter-pill:hover { border-color: var(--forest); color: var(--forest); }
.blog-filter-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* --- Card meta (tag pill + date on cards) --- */
.blog-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.blog-tag-pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--forest); background: rgba(36,73,65,0.08); padding: 4px 10px; border-radius: 999px; text-decoration: none;
}
.blog-tag-pill:hover { background: rgba(36,73,65,0.16); }
.blog-card-date { font-size: 12px; color: var(--text-muted, #6b6660); }
.blog-card-body h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; color: var(--navy); }
.blog-card-body p { font-size: 14px; line-height: 1.6; color: var(--text-muted, #6b6660); margin: 0 0 14px; }
.read-more { color: var(--forest); font-weight: 700; font-size: 13px; text-decoration: none; }
.read-more:hover { text-decoration: underline; }
.blog-empty { text-align: center; color: var(--text-muted, #6b6660); padding: 48px 0; grid-column: 1 / -1; }

/* --- Single post --- */
.post-header { background: var(--cream); padding: clamp(56px, 7vw, 96px) 0 36px; }
.post-header .container { max-width: 800px; }
.post-header .breadcrumb { margin-bottom: 18px; }
.post-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.post-header h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; color: var(--navy); margin: 0 0 14px; font-weight: 700; }
.post-byline { font-size: 14px; color: var(--text-muted, #6b6660); }
.post-byline strong { color: var(--navy); }

.post-hero-img { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.post-hero-img img { width: 100%; height: auto; border-radius: 12px; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

.post-body { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px; }
.post-body p { font-size: 17px; line-height: 1.8; color: var(--stone, #4D4844); margin: 0 0 22px; }
.post-body h2 { font-size: 27px; line-height: 1.2; color: var(--navy); margin: 40px 0 14px; font-weight: 700; }
.post-body h3 { font-size: 21px; line-height: 1.25; color: var(--navy); margin: 30px 0 10px; font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 24px; }
.post-body li { font-size: 17px; line-height: 1.75; color: var(--stone, #4D4844); margin-bottom: 8px; }
.post-body a { color: var(--forest); text-decoration: underline; }
.post-body blockquote {
  border-left: 4px solid var(--forest); background: var(--cream); margin: 28px 0; padding: 18px 24px;
  font-size: 18px; font-style: italic; color: var(--navy); border-radius: 0 8px 8px 0;
}
.post-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 24px 0; }
.post-body strong { color: var(--navy); }

/* tag pills under a post */
.post-tags { max-width: 760px; margin: 0 auto; padding: 0 24px 24px; display: flex; gap: 8px; flex-wrap: wrap; }

/* related posts */
.post-related { background: var(--cream); padding: var(--section-y, 80px) 0; }

@media (max-width: 768px) {
  .blog-filter { position: static; }
  .post-body p, .post-body li { font-size: 16px; }
}

/* ============================================================
   POST TABLE OF CONTENTS — "In this article" box at top of post
   ============================================================ */
.post-toc {
  background: var(--cream, #F7F5F2);
  border: 1px solid rgba(17, 39, 77, 0.1);
  border-left: 4px solid var(--forest, #244941);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 0 0 40px;
}
.post-toc-title {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest, #244941);
  margin: 0 0 12px;
}
.post-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}
.post-toc li { color: var(--navy, #11274D); font-size: 15px; line-height: 1.4; }
.post-toc a {
  color: var(--navy, #11274D);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.post-toc a:hover { border-bottom-color: var(--forest, #244941); }
/* anchor jumps clear the sticky nav */
.post-body h2 { scroll-margin-top: 100px; }
@media (max-width: 600px) {
  .post-toc { padding: 18px 20px; }
  .post-toc ol { columns: 1; }
}

/* TOC: no list numbers (post headings often carry their own numbering) */
.post-toc ol { list-style: none; padding-left: 0; }
.post-toc li { padding-left: 16px; position: relative; }
.post-toc li::before { content: "›"; position: absolute; left: 0; color: var(--forest, #244941); font-weight: 700; }

/* ============================================================
   RESOURCES SEARCH BAR
   ============================================================ */
.blog-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 28px auto 0;
}
.blog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--stone, #4D4844);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.6;
  pointer-events: none;
}
.blog-search-input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  font-size: 16px;
  font-family: inherit;
  color: var(--navy, #11274D);
  background: #fff;
  border: 1px solid rgba(17, 39, 77, 0.15);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(17, 39, 77, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-search-input::placeholder { color: rgba(77, 72, 68, 0.55); }
.blog-search-input:focus {
  outline: none;
  border-color: var(--forest, #244941);
  box-shadow: 0 6px 24px rgba(36, 73, 65, 0.14);
}
.blog-no-results {
  text-align: center;
  color: var(--stone, #4D4844);
  font-size: 16px;
  padding: 40px 0;
  margin: 0;
}
