/* ============================================
   PARASYN — ARTICLES STYLESHEET
   For editorial/case-study/blog-style long-form content.
   Distinct from landing.css: no TOC sidebar, narrower reading
   column, inline images with captions, simple related-articles
   footer block. Header/footer use the standard site.css.
   ============================================ */

.art-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2818 0%, #145c3a 50%, #1f9d63 100%);
  padding: 44px 0 48px;
}
.art-hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.art-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,40,24,0.92) 0%, rgba(20,92,58,0.85) 50%, rgba(31,157,99,0.6) 100%);
}
.art-hero .col { position: relative; z-index: 2; }
.art-breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #a7d9c1; margin-bottom: 20px; }
.art-breadcrumb a { color: #a7d9c1; text-decoration: none; }
.art-breadcrumb a:hover { color: #fff; }
.art-h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 36px;
  line-height: 1.18; letter-spacing: -0.01em; color: #fff; margin: 0 0 20px; max-width: 900px;
}
.art-meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: #c8e6d7; }
.art-meta span { display: flex; align-items: center; gap: 6px; }
.art-meta strong { color: #5fcc9a; font-weight: 600; }

.art-layout { max-width: 920px; margin: 0 auto; padding: 52px 56px 70px; }

.art-toc-layout { max-width: 1320px; margin: 0 auto; padding: 52px 56px 70px; display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.art-toc { position: sticky; top: 100px; border-left: 2px solid #e2e8f0; padding-left: 20px; }
.art-toc-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #9aa6b3; margin-bottom: 14px; }
.art-toc a { display: block; font-size: 13.5px; color: #475569; text-decoration: none; padding: 7px 0; line-height: 1.4; }
.art-toc a:hover { color: #1f9d63; }
.art-toc-logo { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.art-toc-logo-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #9aa6b3; margin-bottom: 12px;
}
.art-toc-logo-box {
  width: 140px; height: 140px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; background: #fff; padding: 10px; box-sizing: border-box;
}
.art-toc-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.art-section { scroll-margin-top: 90px; }
.art-body { font-size: 17px; line-height: 1.78; color: #334155; }
.art-body p { margin: 0 0 22px; }
.art-body ul { margin: 0 0 22px; padding-left: 24px; }
.art-body li { margin-bottom: 8px; }
.art-body li:last-child { margin-bottom: 0; }
.art-body h2 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 24px;
  line-height: 1.3; letter-spacing: -0.005em; color: #16202d; margin: 40px 0 18px;
}
.art-figure { margin: 36px 0; }
.art-figure img { width: 100%; display: block; border-radius: 6px; }
.art-figure figcaption {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #9aa6b3; margin-top: 10px; text-align: center;
}
.art-pullquote {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 22px; line-height: 1.4;
  color: #16202d; border-left: 3px solid #1f9d63; padding-left: 24px; margin: 40px 0;
}
.art-cite { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: #1f9d63; margin: 14px 0 28px; text-transform: uppercase; }

.art-related {
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw;
  background: #eef2f6; border-top: 1px solid #e2e8f0; padding: 64px 0;
}
.art-related-inner { max-width: 1320px; margin: 0 auto; padding: 0 56px; box-sizing: border-box; }
.art-related-label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 26px; color: #16202d; margin-bottom: 28px; }
.art-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Carousel variant - same card design, auto-scrolling when there are enough related
   articles to loop convincingly (4+). Stays within the light/green theme on purpose,
   doesn't borrow the dark dashboard look used on Case Studies. */
.art-related-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.art-related-track { display: flex; gap: 22px; width: max-content; }
.art-related-track.is-marquee { animation: art-marquee 30s linear infinite; }
.art-related-viewport:hover .art-related-track.is-marquee { animation-play-state: paused; }
@keyframes art-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.art-related-track .art-related-card { flex: 0 0 320px; }

.art-related-card {
  border: 1px solid #e2e8f0; border-top: 3px solid #1f9d63; border-radius: 8px; padding: 28px 26px; background: #fff;
  text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; min-height: 130px;
  box-shadow: 0 3px 12px rgba(15,23,42,0.06);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.art-related-card:hover { border-color: #1f9d63; transform: translateY(-4px); box-shadow: 0 8px 20px rgba(15,23,42,0.1); }
.art-related-tag { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #1f9d63; margin-bottom: 10px; display: block; }
.art-related-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; color: #16202d; line-height: 1.35; margin-bottom: 16px; }
.art-related-arrow { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #1f9d63; }

@media (max-width: 900px) {
  .art-related-grid { grid-template-columns: 1fr; }
  .art-h1 { font-size: 28px; }
  .art-layout { padding: 40px 24px 56px; }
  .art-toc-layout { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px 56px; }
  .art-toc { position: static; border-left: none; padding-left: 0; }
}
