/* NutraScan blog articles - hand-written, self-contained (does NOT depend on
   the Tailwind bundle generated by the TanStack build, which only contains
   utility classes actually used at build time). Matches the site's existing
   design tokens exactly - do not change these values without also checking
   the main site (Theme.swift-equivalent palette lives here for the web). */

:root {
  --ns-bg: #F8F9FB;
  --ns-text: #14181C;
  --ns-text-secondary: #5B6670;
  --ns-accent: #2E6B82;
  --ns-accent-light: #6FA8C1;
  --ns-bg-accent: #EAF3F6;
  --ns-border: #E3E7EC;
}

* { box-sizing: border-box; }

body.ns-blog {
  margin: 0;
  background: var(--ns-bg);
  color: var(--ns-text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.ns-blog a { color: var(--ns-accent); text-decoration: none; }
.ns-blog a:hover { text-decoration: underline; }

.ns-blog header.ns-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

.ns-blog header.ns-nav .ns-brand {
  font-weight: 600;
  color: var(--ns-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ns-blog header.ns-nav nav { display: flex; gap: 20px; }

.ns-blog main {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.ns-blog .ns-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ns-accent);
  margin-bottom: 12px;
}

.ns-blog h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.ns-blog .ns-lead {
  font-size: 19px;
  color: var(--ns-text-secondary);
  margin: 0 0 32px;
}

.ns-blog figure.ns-hero-img {
  margin: 0 0 40px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ns-bg-accent);
}

.ns-blog figure.ns-hero-img img { width: 100%; display: block; }

.ns-blog h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 44px 0 16px;
  letter-spacing: -0.005em;
}

.ns-blog p { margin: 0 0 18px; font-size: 17px; }

.ns-blog ul, .ns-blog ol { margin: 0 0 18px; padding-left: 22px; font-size: 17px; }
.ns-blog li { margin-bottom: 8px; }

.ns-blog .ns-faq { margin-top: 44px; }

.ns-blog .ns-faq-item {
  border-top: 1px solid var(--ns-border);
  padding: 20px 0;
}

.ns-blog .ns-faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.ns-blog .ns-faq-item p { font-size: 16px; color: var(--ns-text-secondary); margin: 0; }

.ns-blog .ns-cta {
  margin-top: 56px;
  background: var(--ns-bg-accent);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}

.ns-blog .ns-cta h2 { margin-top: 0; }

.ns-blog .ns-cta a.ns-btn {
  display: inline-block;
  background: var(--ns-accent);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  margin-top: 8px;
}

.ns-blog .ns-cta a.ns-btn:hover { background: var(--ns-accent-light); text-decoration: none; }

.ns-blog footer.ns-footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ns-text-secondary);
  display: flex;
  justify-content: space-between;
}
