/* =====================================================================
   Naraway blog template (NEW posts generated from _blog-src only).
   Standalone: does not use /Blogs/blog.css, so existing posts are unaffected.

   Design rules
   - Colour: white and black only, with neutral greys for secondary text and lines.
   - Type: Inter (one family, already loaded site-wide). Body 18px desktop / 17px phone,
     line-height 1.7, ~68 characters per line. Fluid heading scale (clamp).
   - Everything is prefixed with "html body" so the shared footer stylesheet
     (/narawaynew.css, loaded later with dark background and * Roboto) cannot override it.
   ===================================================================== */

:root {
  --nwb-ink: #1d1d1f;        /* text, headings, buttons (Apple-style near-black) */
  --nwb-ink-2: #3a3a3c;      /* body secondary */
  --nwb-muted: #6e6e73;      /* meta, captions (5.1:1 on white) */
  --nwb-line: #e8e8ed;       /* hairlines */
  --nwb-soft: #f5f5f7;       /* soft panels */
  --nwb-paper: #ffffff;
  --nwb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nwb-measure: 44rem;      /* ~68 characters at 18px */
}

html body { background: var(--nwb-paper); color: var(--nwb-ink); }
html body .hero-wrap, html body .hero-wrap *:not(i),
html body .container, html body .container *:not(i) { font-family: var(--nwb-font); }

/* ── Reading progress (pure CSS; hidden where unsupported or reduced motion) ── */
.nwb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; background: var(--nwb-ink); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .nwb-progress { animation: nwb-progress linear both; animation-timeline: scroll(root); }
  @keyframes nwb-progress { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) { .nwb-progress { display: none; } }

/* ── Layout ── */
html body .hero-wrap { max-width: 72rem; margin: 0 auto; padding: 7.5rem 1.5rem 0; }
html body .container {
  max-width: 72rem; margin: 0 auto; padding: 0 1.5rem 4rem;
  display: grid; grid-template-columns: minmax(0, var(--nwb-measure)) 18rem;
  gap: 4rem; justify-content: space-between; align-items: start;
}
html body .article-content { min-width: 0; padding: 1.5rem 0 0; overflow-wrap: break-word; }
html body .sidebar { padding: 1.5rem 0 0; position: static; }
@media (max-width: 1080px) {
  html body .container { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; max-width: var(--nwb-measure); }
  html body .hero-wrap { max-width: var(--nwb-measure); }
}
@media (max-width: 640px) {
  html body .hero-wrap { padding: 6.25rem 1rem 0; }
  html body .container { padding: 0 1rem 3rem; }
}

/* ── Breadcrumb ── */
html body .breadcrumb { font-size: 0.85rem; color: var(--nwb-muted); display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
html body .breadcrumb a { color: var(--nwb-muted); text-decoration: none; }
html body .breadcrumb a:hover { color: var(--nwb-ink); text-decoration: underline; }
html body .bc-sep { color: #b5b5b5; }

/* ── Typography ── */
html body .article-content { font-size: 1.125rem; line-height: 1.7; color: var(--nwb-ink-2); }
html body .article-content h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3rem); line-height: 1.08; font-weight: 600;
  letter-spacing: -0.025em; color: var(--nwb-ink); margin: 0 0 1rem;
}
html body .article-content h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem); line-height: 1.2; font-weight: 600;
  letter-spacing: -0.02em; color: var(--nwb-ink); margin: 2.75rem 0 1rem; scroll-margin-top: 6.5rem;
}
html body .article-content h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 600; color: var(--nwb-ink); margin: 2rem 0 0.6rem; scroll-margin-top: 6.5rem; }
html body .article-content p { margin: 0 0 1.25rem; }
html body .article-content strong { color: var(--nwb-ink); font-weight: 600; }
html body .article-content ul, html body .article-content ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
html body .article-content li { margin: 0 0 0.5rem; }
html body .article-content a { color: var(--nwb-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html body .article-content a:hover { text-decoration-thickness: 2px; }
html body :focus-visible { outline: 2px solid var(--nwb-ink); outline-offset: 2px; }
@media (max-width: 640px) { html body .article-content { font-size: 1.0625rem; } }

/* ── Meta line ── */
html body .article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem;
  font-size: 0.9rem; color: var(--nwb-muted); padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--nwb-line);
}
html body .meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #b5b5b5; display: inline-block; }

/* ── Answer-first blocks ── */
html body .quick-answer { background: var(--nwb-soft); border-left: 3px solid var(--nwb-ink); border-radius: 0 6px 6px 0; padding: 1.25rem 1.5rem; margin: 0 0 1.75rem; }
html body .quick-answer p { margin: 0; color: var(--nwb-ink); }
html body .nwb-takeaways { background: var(--nwb-soft); border: 0; border-radius: 18px; padding: 1.5rem 1.75rem; margin: 0 0 2rem; }
html body .nwb-takeaways h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nwb-ink); margin: 0 0 0.75rem; }
html body .nwb-takeaways ul { margin: 0; padding-left: 1.2rem; }
html body .nwb-takeaways li { margin: 0 0 0.45rem; color: var(--nwb-ink); }

/* Contents list for phones/tablets (sidebar list is used on desktop) */
html body .nwb-toc-mobile { background: var(--nwb-soft); border: 0; border-radius: 18px; margin: 0 0 2rem; }
html body .nwb-toc-mobile summary { cursor: pointer; padding: 0.9rem 1.25rem; font-weight: 600; color: var(--nwb-ink); font-size: 0.95rem; }
html body .nwb-toc-mobile ul { margin: 0; padding: 0 1.25rem 1rem 2.4rem; }
html body .nwb-toc-mobile li { font-size: 0.95rem; margin: 0 0 0.4rem; }
@media (min-width: 1081px) { html body .nwb-toc-mobile { display: none; } }

/* ── Media ── */
html body .image-placeholder, html body .article-image { margin: 0 0 2rem; }
html body .image-placeholder img, html body .article-image img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--nwb-soft); }
html body .article-image figcaption { font-size: 0.85rem; color: var(--nwb-muted); margin-top: 0.6rem; line-height: 1.5; }

/* ── Content components (shared names with older posts, restyled in black & white) ── */
html body .pull-quote { border-left: 3px solid var(--nwb-ink); margin: 2.25rem 0; padding: 0.25rem 0 0.25rem 1.5rem; }
html body .pull-quote p { font-size: 1.3rem; line-height: 1.5; font-weight: 500; color: var(--nwb-ink); margin: 0 0 0.6rem; }
html body .pull-quote cite { font-style: normal; font-size: 0.9rem; color: var(--nwb-muted); }

html body .stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 2rem 0; }
html body .stat-item { border: 0; border-radius: 18px; padding: 1.25rem 1.1rem; text-align: left; background: var(--nwb-soft); }
html body .stat-item .stat-num { font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: var(--nwb-ink); margin: 0 0 0.35rem; }
html body .stat-item .stat-label { font-size: 0.85rem; line-height: 1.45; color: var(--nwb-muted); margin: 0; padding: 0; font-weight: 400; }
@media (max-width: 760px) { html body .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

html body .cap-grid, html body .classifier-grid, html body .model-split, html body .pricing-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 2rem 0;
}
html body .cap-card, html body .cls-card, html body .split-card, html body .price-card {
  border: 0; border-radius: 18px; padding: 1.5rem; background: var(--nwb-soft);
}
html body .cap-card h3, html body .cls-card h3, html body .split-card h3, html body .price-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
html body .cap-card p, html body .cls-card p, html body .split-card p, html body .price-card p { margin: 0; font-size: 0.98rem; line-height: 1.6; }

html body .decision-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
html body .decision-list li { border-top: 1px solid var(--nwb-line); padding: 0.9rem 0 0.9rem 0; margin: 0; }
html body .decision-list li:last-child { border-bottom: 1px solid var(--nwb-line); }

html body .bench-wrap { overflow-x: auto; margin: 2rem 0; }
html body .article-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
html body .article-content th, html body .article-content td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--nwb-line); vertical-align: top; }
html body .article-content th { color: var(--nwb-ink); font-weight: 600; border-bottom: 2px solid var(--nwb-ink); }
html body .bench-note { font-size: 0.85rem; color: var(--nwb-muted); }

/* Calls to action: black and white, one clear action */
html body .inline-cta { font-weight: 600; }
html body .cta-card {
  display: block; position: static; overflow: visible; transform: none;
  background: var(--nwb-ink); color: #fff; border: 0; border-radius: 18px; padding: 2rem; margin: 2.75rem 0; line-height: 1.6;
}
html body .cta-card::before { content: none; }
html body .cta-card:hover { background: var(--nwb-ink); transform: none; }
html body .cta-card h3 { color: #fff; margin: 0 0 0.5rem; font-size: 1.2rem; }
html body .cta-card p { color: #d4d4d4; margin: 0 0 1.1rem; font-size: 1rem; }
html body .cta-button, html body .article-content a.cta-button {
  display: inline-block; width: auto; background: #fff; color: var(--nwb-ink); border: 0; border-radius: 980px;
  padding: 0.7rem 1.25rem; font-size: 0.95rem; font-weight: 600; line-height: 1.3; text-decoration: none;
}
html body .cta-button:hover { background: #ededed; transform: none; box-shadow: none; }

/* ── End-of-article blocks ── */
html body .nwb-sources { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--nwb-line); }
html body .nwb-sources h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
html body .nwb-sources li { font-size: 0.92rem; line-height: 1.6; color: var(--nwb-ink-2); }

html body .article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; }
html body .article-tag { font-size: 0.8rem; color: var(--nwb-ink-2); border: 1px solid var(--nwb-line); border-radius: 999px; padding: 0.25rem 0.75rem; }

html body .nwb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 2rem 0 0; font-size: 0.9rem; }
html body .nwb-share span { font-weight: 600; color: var(--nwb-ink); }
html body .nwb-share a { color: var(--nwb-ink); text-decoration: none; font-weight: 500; padding: 0.35rem 0.85rem; border: 1px solid var(--nwb-ink); border-radius: 999px; }
html body .nwb-share a:hover { background: var(--nwb-ink); color: #fff; }

html body .nwb-author { margin: 2rem 0 0; padding: 1.5rem 1.75rem; background: var(--nwb-soft); border-radius: 18px; }
html body .nwb-author__name { margin: 0 0 0.35rem; font-weight: 700; color: var(--nwb-ink); font-size: 1rem; }
html body .nwb-author__name span { font-weight: 400; color: var(--nwb-muted); }
html body .nwb-author__bio { margin: 0; font-size: 0.95rem; line-height: 1.6; }

html body .faq-section { margin: 3rem 0 0; }
html body .faq-item { border-top: 1px solid var(--nwb-line); padding: 1.1rem 0; }
html body .faq-item:last-child { border-bottom: 1px solid var(--nwb-line); }
html body .faq-item h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
html body .faq-item p { margin: 0; font-size: 1rem; }

html body .related-section { margin: 3rem 0 0; }
html body .related-section ul { list-style: none; padding: 0; margin: 0; }
html body .related-section li { border-top: 1px solid var(--nwb-line); margin: 0; }
html body .related-section li:last-child { border-bottom: 1px solid var(--nwb-line); }
html body .related-section a { display: block; padding: 0.85rem 0; text-decoration: none; font-weight: 500; }
html body .related-section a:hover { text-decoration: underline; }

/* ── Sidebar ── */
html body .sidebar-card { background: var(--nwb-ink); color: #fff; border-radius: 18px; padding: 1.75rem; margin: 0 0 1.5rem; }
html body .sidebar-card h3 { color: #fff; font-size: 1.1rem; line-height: 1.35; margin: 0 0 0.6rem; }
html body .sidebar-card p { color: #d4d4d4; font-size: 0.92rem; line-height: 1.6; margin: 0 0 1.1rem; }
html body .sidebar-cta { display: inline-block; background: #fff; color: var(--nwb-ink); text-decoration: none; font-weight: 500; font-size: 0.92rem; border-radius: 980px; padding: 0.65rem 1.3rem; }
html body .sidebar-cta:hover { background: #ededed; }
html body .sidebar-ad { margin: 0 0 1.5rem; min-height: 0; }
html body .toc { background: var(--nwb-soft); border: 0; border-radius: 18px; padding: 1.5rem 1.5rem 1rem; }
html body .toc h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nwb-muted); margin: 0 0 0.75rem; }
html body .toc ul { list-style: none; margin: 0; padding: 0; }
html body .toc li { margin: 0 0 0.55rem; font-size: 0.9rem; line-height: 1.4; }
html body .toc a { color: var(--nwb-ink-2); text-decoration: none; }
html body .toc a:hover { color: var(--nwb-ink); text-decoration: underline; }
@media (min-width: 1081px) { html body .sidebar .toc { position: sticky; top: 7rem; } }
@media (max-width: 1080px) { html body .sidebar .toc { display: none; } }
