/* Blog-specific styles. Loaded alongside store.css, which already defines
   the --brand/--cream/--gold tokens and the shared header/footer/pill/
   aisle-sign/btn rules this file builds on top of. */

.blog-hero p { max-width: 620px; }

.section-heading {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--brand);
  text-align: center;
  margin: 0 0 6px;
}
.section-subheading {
  text-align: center;
  color: #5a4a58;
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto 30px;
}

/* ---------- flow chart ---------- */

.flowchart-section { padding: 10px 20px 50px; }

.flowchart { display: flex; flex-direction: column; align-items: center; }

.flow-root {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--cream);
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius);
  padding: 14px 26px;
  box-shadow: var(--shadow);
  position: relative;
}

/* stem dropping from the root box down to the branch row */
.flow-root::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 2px;
  height: 24px;
  background: var(--gold);
  transform: translateX(-50%);
}

.flow-branches {
  list-style: none;
  margin: 24px 0 0;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 16px;
  max-width: 1000px;
  width: 100%;
  position: relative;
}

/* the horizontal bar connecting the four branches, plus each branch's
   vertical tick — classic CSS org-chart technique, no SVG/JS needed */
.flow-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(12.5% + 8px);
  right: calc(12.5% + 8px);
  height: 2px;
  background: var(--gold);
}

.flow-branches li {
  position: relative;
  padding-top: 20px;
  display: flex;
}
.flow-branches li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 20px;
  background: var(--gold);
  transform: translateX(-50%);
}

.flow-branches a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.flow-branches a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.flow-node__eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.flow-node__title { font-family: var(--serif); font-size: 15px; color: var(--brand); }
.flow-node__tagline { font-size: 12px; color: #7c6c7a; }

@media (max-width: 720px) {
  .flow-branches { grid-template-columns: 1fr; max-width: 320px; }
  .flow-branches::before { display: none; }
}

/* ---------- post grid / post card ---------- */

.post-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.post-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.post-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.post-card__title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin: 6px 0 8px;
  line-height: 1.3;
}
.post-card__excerpt { font-size: 13px; color: #5a4a58; line-height: 1.5; margin: 0 0 12px; }
.post-card__more { font-size: 12.5px; font-weight: 700; color: var(--brand); }

/* ---------- article page ---------- */

.article-wrap { padding: 34px 20px 10px; max-width: 760px; }

.breadcrumb {
  font-size: 12.5px;
  color: #8a7d88;
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { text-decoration: none; color: var(--brand); font-weight: 600; }

.aisle-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--gold-light);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.article h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 36px);
  color: var(--brand);
  margin: 0 0 22px;
  line-height: 1.25;
}

.article__body p { font-size: 16px; line-height: 1.7; color: #3a2f38; margin: 0 0 18px; }
.article__body strong { color: var(--ink); }

.article__body ul, .article__body ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.article__body li {
  position: relative;
  padding: 10px 16px 10px 44px;
  margin-bottom: 8px;
  background: var(--cream-deep);
  border-radius: 8px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #3a2f38;
}
.article__body ul li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.article__body ol li { counter-increment: step; }
.article__body ol li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article__body blockquote {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--cream-deep);
  border-radius: 0 8px 8px 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--brand-dark);
}

.article__disclaimer { font-size: 12.5px; color: #8a7d88; font-style: italic; margin-top: 18px; }

.article-figure {
  margin: 8px 0 26px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
}
.article-figure img { display: block; width: 100%; height: auto; }
.article-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: #8a7d88;
  text-align: center;
}

.callout {
  margin: 28px 0 8px;
  background: var(--cream-deep);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.callout__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.callout p { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0 0 6px; }
.callout__shop-line { color: #5a4a58; font-size: 13px; }
.callout__cta { margin-top: 10px; width: auto; }

.related-posts { padding: 20px 20px 60px; }

/* ---------- homepage blog teaser ---------- */

.blog-teaser { padding: 10px 20px 50px; }

.blog-teaser__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.blog-teaser__footer { text-align: center; margin-top: 26px; }
.blog-teaser__footer a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 18px;
}
.blog-teaser__footer a:hover { border-color: var(--gold); }

@media (max-width: 640px) {
  .article-wrap { padding: 24px 16px 4px; }
}
