/* ============================================================
   Article + Articles-index styles. Loaded alongside styles.css.
   Calm, highly readable single column.
   ============================================================ */

/* ---------- Slim article header ---------- */
.article-head {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251,250,248,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
.article-head__inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.article-back { font-weight: 600; color: var(--sage-deep); font-size: 0.95rem; }
.article-back:hover { color: var(--sage); }

/* ---------- Article body ---------- */
.article-wrap { position: relative; overflow: hidden; padding: var(--space-2xl) 0 var(--space-3xl); background: linear-gradient(180deg, var(--sage-ghost), var(--white) 360px); }
.article-wrap > .article, .article-wrap > .article__cta { position: relative; z-index: 2; }
.article-wrap > .hero__scene { height: 520px; bottom: auto; }
.article { max-width: 680px; margin: 0 auto; padding: 0 var(--space-md); }
.article__meta { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--sage-deep); margin-bottom: var(--space-sm); }
.article__title { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: var(--space-md); }
.article__lede { font-size: 1.26rem; line-height: 1.55; color: var(--text-primary); font-family: var(--font-display); font-weight: 400; margin-bottom: var(--space-lg); }
.article__body { font-size: 1.1rem; line-height: 1.8; color: var(--warm-800); }
.article__body > * + * { margin-top: var(--space-md); }
.article__body h2 { font-size: 1.6rem; line-height: 1.2; margin-top: var(--space-xl); color: var(--text-primary); }
.article__body h3 { font-size: 1.24rem; margin-top: var(--space-lg); color: var(--text-primary); }
.article__body strong { color: var(--warm-900); font-weight: 600; }
.article__body a { color: var(--sage-deep); text-decoration: underline; text-decoration-color: var(--sage-light); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article__body a:hover { color: var(--sage); text-decoration-color: var(--sage); }
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body li { margin-top: 0.5em; }
.article__body blockquote {
  margin: var(--space-lg) 0; padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--sage); background: var(--sage-ghost);
  border-radius: 0 12px 12px 0; font-family: var(--font-display); font-size: 1.18rem; color: var(--text-primary);
}

/* Callout boxes — tinted fills, no hard borders */
.callout { margin: var(--space-lg) 0; padding: var(--space-md) var(--space-lg); border-radius: var(--radius); border: 0; }
.callout__title { font-family: var(--font-body); font-weight: 700; color: var(--text-primary); margin-bottom: 6px; display: flex; align-items: center; gap: 0.5em; }
.callout--try { background: var(--blue-ghost); }
.callout--tip { background: var(--yellow-whisper); }
.callout--care { background: var(--peach-ghost); }
.callout p { margin: 0; }

/* Sources */
.article__sources { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid rgba(44,37,32,0.06); }
.article__sources h2 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-sm); color: var(--text-primary); }
.article__sources ol { padding-left: 1.3em; font-size: 0.96rem; color: var(--text-secondary); }
.article__sources li { margin-top: 0.5em; }
.article__sources a { color: var(--sage-deep); }

/* Disclaimer */
.article__disclaimer { margin-top: var(--space-lg); padding: var(--space-md) var(--space-lg); border-radius: var(--radius); background: var(--sage-ghost); border: 0; font-size: 0.92rem; color: var(--text-secondary); font-style: italic; }
.article__disclaimer a { color: var(--sage-deep); font-weight: 600; font-style: normal; }

/* End CTA */
.article__cta { max-width: 720px; margin: var(--space-2xl) auto 0; padding: var(--space-xl) var(--space-md); text-align: center; }
.article__cta h2 { font-size: 1.7rem; margin-bottom: var(--space-sm); }

/* ---------- Articles index page ---------- */
.articles-hero { padding: calc(var(--nav-h) + var(--space-2xl)) 0 var(--space-xl); text-align: center; background: linear-gradient(180deg, var(--sage-ghost), var(--white)); }
.articles-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.articles-hero p { max-width: 600px; margin: var(--space-md) auto 0; font-size: 1.15rem; color: var(--text-secondary); }
.articles-bridge { max-width: 560px; font-size: 1.02rem; color: var(--text-muted); }

/* Gentle bridge-to-therapy band (seamless, no borders) */
.bridge-band { padding: var(--space-3xl) 0; background: linear-gradient(180deg, var(--white), var(--sage-ghost)); text-align: center; }
.bridge-band__inner { max-width: 600px; }
.bridge-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: var(--space-sm); }
.bridge-band p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: var(--space-lg); }
.articles-filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; margin-top: var(--space-lg); }
.articles-filter { min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--white); box-shadow: var(--shadow-card); font-family: var(--font-body); font-weight: 500; font-size: 0.92rem; color: var(--text-secondary); cursor: pointer; transition: color .25s var(--ease-out), background .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.articles-filter:hover { color: var(--sage-deep); transform: translateY(-1px); }
.articles-filter:focus-visible { border-radius: 999px; }
.articles-filter.is-active { background: var(--sage-deep); color: var(--white); box-shadow: 0 8px 20px -8px rgba(74,109,92,0.55); }
.articles-list { padding: var(--space-xl) 0 var(--space-3xl); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.articles-grid .post-card.is-hidden { display: none; }
.articles-empty { text-align: center; color: var(--text-muted); padding: var(--space-xl) 0; display: none; }
@media (max-width: 940px) { .articles-grid { grid-template-columns: 1fr; } }
