/* ============================================================
   NUTRIFLOW — Articles / Journal (editorial). Designed to the same
   tokens as the rest of the theme. Listing + single article.
   ============================================================ */

/* ---------- listing shell ---------- */
.nf-journal { max-width: var(--nf-max); margin: 0 auto; padding: clamp(48px,6vw,84px) var(--nf-pad-x) clamp(72px,9vw,110px); }
.nf-journal__head { max-width: 62ch; }
.nf-journal__h1 { font-family: var(--nf-serif); font-weight: 400; font-size: clamp(34px,5vw,60px); letter-spacing: -.02em; margin-top: 12px; line-height: 1.04; }
.nf-journal__sub { font-size: 17px; color: var(--nf-body); line-height: 1.6; margin-top: 16px; }

/* direction filter pills (links to zona archives) */
.nf-journal__filters { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 32px; }
.nf-journal__filters .nf-pill { text-decoration: none; display: inline-block; }

/* ---------- featured (wide) card ---------- */
.nf-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-top: 40px; background: #fff; border: 1px solid var(--nf-card-border); border-radius: var(--nf-r-card-lg); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .18s ease, transform .18s ease; }
.nf-featured:hover { box-shadow: var(--nf-shadow-card); transform: translateY(-2px); }
.nf-featured__cover { position: relative; min-height: 360px; background: radial-gradient(125% 120% at 50% 22%, var(--nf-plate-1) 0%, var(--nf-plate-2) 100%); overflow: hidden; }
.nf-featured__cover .nf-slot, .nf-featured__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.nf-featured__badge { position: absolute; left: 20px; top: 20px; z-index: 2; font-family: var(--nf-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--nf-paper); background: rgba(22,32,28,.66); padding: 6px 11px; border-radius: 6px; }
.nf-featured__body { padding: clamp(28px,3.5vw,48px); display: flex; flex-direction: column; justify-content: center; }
.nf-featured__eyebrow { font-family: var(--nf-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--nf-clay); }
.nf-featured__title { font-family: var(--nf-serif); font-weight: 400; font-size: clamp(26px,2.8vw,40px); letter-spacing: -.02em; line-height: 1.1; margin-top: 14px; }
.nf-featured__excerpt { font-size: 16px; line-height: 1.65; color: var(--nf-body); margin-top: 14px; max-width: 46ch; }
.nf-featured__meta { display: flex; gap: 14px; align-items: center; margin-top: 22px; font-family: var(--nf-mono); font-size: 12px; color: var(--nf-soft); }
.nf-featured__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--nf-soft-2); }
.nf-featured__read { margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--nf-green); border-bottom: 2px solid var(--nf-green); padding-bottom: 3px; align-self: flex-start; }

/* ---------- article grid ---------- */
.nf-artgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 28px; }
.nf-artcard { background: #fff; border: 1px solid var(--nf-card-border); border-radius: var(--nf-r-card); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.nf-artcard:hover { transform: translateY(-3px); box-shadow: var(--nf-shadow-card); }
.nf-artcard__cover { position: relative; aspect-ratio: 16/10; background: radial-gradient(125% 120% at 50% 22%, var(--nf-plate-1) 0%, var(--nf-plate-2) 100%); overflow: hidden; }
.nf-artcard__cover .nf-slot, .nf-artcard__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.nf-artcard__badge { position: absolute; left: 12px; bottom: 12px; font-family: var(--nf-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--nf-paper); background: rgba(22,32,28,.66); padding: 5px 9px; border-radius: 6px; }
.nf-artcard__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.nf-artcard__meta { font-family: var(--nf-mono); font-size: 11px; letter-spacing: .06em; color: var(--nf-soft); display: flex; gap: 10px; align-items: center; }
.nf-artcard__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--nf-soft-2); }
.nf-artcard__title { font-family: var(--nf-serif); font-weight: 500; font-size: 21px; letter-spacing: -.01em; line-height: 1.15; margin-top: 12px; }
.nf-artcard__excerpt { font-size: 14px; line-height: 1.6; color: var(--nf-body); margin-top: 10px; flex: 1; }
.nf-artcard__read { margin-top: 16px; padding-top: 16px; border-top: 1px solid #EDE7DA; font-size: 13px; font-weight: 600; color: var(--nf-clay); }

/* pagination */
.nf-journal .nav-links, .nf-journal .pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; justify-content: center; }
.nf-journal .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--nf-r-pill); border: 1px solid var(--nf-hairline-2); background: #fff; color: var(--nf-ink); text-decoration: none; font-size: 14px; }
.nf-journal .page-numbers.current { background: var(--nf-green); color: var(--nf-paper); border-color: var(--nf-green); }

@media (max-width: 760px) {
  .nf-featured { grid-template-columns: 1fr; }
  .nf-featured__cover { min-height: 220px; }
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.nf-article { max-width: 760px; margin: 0 auto; padding: clamp(36px,5vw,64px) var(--nf-pad-x) clamp(64px,8vw,104px); }
.nf-article__crumb { font-size: 13px; color: var(--nf-soft); margin-bottom: 20px; }
.nf-article__crumb a { color: var(--nf-body); text-decoration: none; }
.nf-article__crumb a:hover { color: var(--nf-green); }
.nf-article__meta { font-family: var(--nf-mono); font-size: 12px; letter-spacing: .06em; color: var(--nf-clay); text-transform: uppercase; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nf-article__meta .sep { color: var(--nf-soft-2); }
.nf-article__meta .nf-article__cat { color: var(--nf-clay); font-weight: 600; }
.nf-article__meta .nf-article__date, .nf-article__meta .nf-article__rt { color: var(--nf-soft); }
.nf-article__h1 { font-family: var(--nf-serif); font-weight: 400; font-size: clamp(30px,4.4vw,52px); letter-spacing: -.02em; line-height: 1.05; margin-top: 16px; }
.nf-article__lead { font-size: clamp(17px,1.5vw,21px); line-height: 1.6; color: #3C463F; margin-top: 18px; }

/* author block */
.nf-author { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px 0; border-top: 1px solid var(--nf-hairline); border-bottom: 1px solid var(--nf-hairline); }
.nf-author__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--nf-green), var(--nf-green-2)); flex: none; }
.nf-author__name { font-family: var(--nf-serif); font-weight: 500; font-size: 17px; }
.nf-author__role { font-size: 13px; color: var(--nf-soft); margin-top: 2px; }

/* cover */
.nf-article__cover { margin: 30px 0; }
.nf-article__cover img, .nf-article__cover .nf-slot { width: 100%; height: clamp(220px,42vw,460px); border-radius: var(--nf-r-card-lg); object-fit: contain; mix-blend-mode: multiply; background: radial-gradient(125% 120% at 50% 22%, var(--nf-plate-1) 0%, var(--nf-plate-2) 100%); box-shadow: 0 26px 54px -40px rgba(14,74,60,.5); }

/* body typography */
.nf-article__body { font-size: 18px; line-height: 1.75; color: #26302B; }
.nf-article__body > * + * { margin-top: 24px; }
.nf-article__body h2 { font-family: var(--nf-serif); font-weight: 500; font-size: clamp(24px,2.6vw,34px); letter-spacing: -.015em; line-height: 1.15; margin-top: 44px; }
.nf-article__body h3 { font-family: var(--nf-serif); font-weight: 500; font-size: clamp(20px,2vw,26px); margin-top: 34px; }
.nf-article__body p { color: #26302B; }
.nf-article__body a { color: var(--nf-green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(14,74,60,.35); }
.nf-article__body ul, .nf-article__body ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.nf-article__body li { line-height: 1.65; }
.nf-article__body ul li::marker { color: var(--nf-clay); }
.nf-article__body blockquote { border-left: 3px solid var(--nf-clay); background: var(--nf-reason-bg); padding: 20px 24px; border-radius: 0 12px 12px 0; font-family: var(--nf-serif); font-size: 22px; line-height: 1.4; color: var(--nf-ink); }
.nf-article__body img { border-radius: 14px; }
.nf-article__body figure figcaption { font-size: 13px; color: var(--nf-soft); margin-top: 8px; font-family: var(--nf-mono); }
.nf-article__body hr { border: none; border-top: 1px solid var(--nf-hairline); margin: 40px 0; }

/* in-content project CTA */
.nf-article-cta { margin: 44px 0; background: var(--nf-green); color: var(--nf-paper); border-radius: var(--nf-r-card-lg); padding: clamp(28px,3.5vw,40px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.nf-article-cta__glow { position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(194,105,74,.5), transparent 65%); }
.nf-article-cta__eyebrow { font-family: var(--nf-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--nf-muted-green); position: relative; }
.nf-article-cta__title { font-family: var(--nf-serif); font-weight: 400; font-size: clamp(22px,2.4vw,30px); margin-top: 10px; line-height: 1.15; position: relative; }
.nf-article-cta__who { font-size: 14px; color: #D7E0DA; margin-top: 8px; position: relative; max-width: 46ch; }
.nf-article-cta .nf-btn { position: relative; white-space: nowrap; }

/* tags + share */
.nf-article__foot { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* related */
.nf-article-related { max-width: var(--nf-max); margin: 0 auto; padding: 0 var(--nf-pad-x) clamp(64px,8vw,104px); }
.nf-article-related__title { font-family: var(--nf-serif); font-weight: 400; font-size: clamp(24px,3vw,34px); letter-spacing: -.02em; }
.nf-article-related .nf-artgrid { margin-top: 24px; }

@media (max-width: 620px) {
  .nf-article-cta { grid-template-columns: 1fr; }
}

/* Умная статья K Article (body.nf-ka): без бокового меню — справа Zoomer Rail платформы */
.nf-ka .nf-article-wrap { grid-template-columns: minmax(0,1fr); max-width: 1060px; }
.nf-ka .nf-article-side { display: none; }
.nf-ka .nf-article > :not(.nf-article__body) { max-width: 760px; }
.nf-ka .ka-scope.ka-embed { background: transparent; font-size: 18px; }
.nf-ka .ka-scope .ka-heading { margin-top: 1.6em; }
.nf-ka .ka-scope .ka-rail-stick { top: 96px; }
