/* FACTREN editorial extension: existing graphite/lime palette and local typefaces. */
.insights-header { padding-block: 64px 42px; }
.insights-header h1 { margin-top: 20px; max-width: 14ch; }
.insights-header .intro { margin-top: 24px; max-width: 52ch; color: var(--muted); font-size: 1.125rem; }
.insight-feature { display: grid; grid-template-columns: 1.12fr 1fr; gap: 48px; align-items: center; padding-block: 0 76px; }
.insight-image { overflow: hidden; border-radius: var(--radius); }
.insight-image img { width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; }
.insight-image--collaboration img { object-position: center 20%; }
.insight-feature--previous { padding-top: 44px; border-top: 1px solid var(--line); }
.insight-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.insight-meta .topic { color: var(--accent); }
.insight-feature h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-top: 20px; max-width: 20ch; }
.insight-feature h2 a { text-decoration: none; }
.insight-feature h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.insight-feature p { margin-top: 22px; max-width: 46ch; color: var(--muted); }
.insight-feature .text-link { margin-top: 28px; }
.editorial-purpose { padding-block: 48px; border-top: 1px solid var(--line); }
.editorial-purpose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 24ch; }
.editorial-purpose p { max-width: 68ch; color: var(--muted); margin-top: 20px; }
.follow-section { border-block: 1px solid var(--line); background: var(--surface); }
.follow-inner { padding-block: 48px; }
.follow-inner h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.follow-inner p { max-width: 64ch; color: var(--muted); margin-top: 16px; }
.follow-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.follow-inner .follow-note { font-size: .8125rem; margin-top: 16px; }
.insight-home { padding-block: 44px; border-top: 1px solid var(--line); }
.insight-home-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.insight-home h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.insight-home p { margin-top: 12px; max-width: 64ch; color: var(--muted); }
.article-header { padding-block: 40px 44px; }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .875rem; margin-bottom: 32px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.article-header h1 { font-size: clamp(2.2rem, 4.5vw, 4.1rem); max-width: 25ch; margin-top: 22px; }
.article-deck { max-width: 62ch; margin-top: 24px; color: var(--muted); font-size: 1.125rem; }
.article-byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: .875rem; }
.article-byline img { width: 23px; height: 25px; }
.article-cover img { width: 100%; height: auto; max-height: 430px; aspect-ratio: 2.8; object-fit: cover; border-radius: var(--radius); }
.article-cover--collaboration img { object-position: center 20%; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: space-between; gap: 56px; padding-block: 56px 80px; }
.article-toc { align-self: start; position: sticky; top: calc(var(--header) + 28px); }
.article-toc h2 { font-family: 'Manrope', sans-serif; font-size: .875rem; font-weight: 700; letter-spacing: 0; margin-bottom: 18px; }
.article-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.article-toc a { display: block; padding: 9px 0 9px 18px; color: var(--muted); font-size: .8125rem; text-decoration: none; line-height: 1.6; }
.article-toc a:hover { color: var(--accent); }
.article-body { font-size: 1.0625rem; line-height: 1.85; min-width: 0; }
.article-body > p + p, .article-body section > p + p { margin-top: 20px; }
.article-body p, .article-body li { color: #c8d0d4; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body section { margin-top: 44px; }
.article-body h2 { font-size: clamp(1.7rem, 2.7vw, 2.2rem); margin-bottom: 22px; max-width: 30ch; }
.article-body h3 { font-size: 1.25rem; margin-top: 28px; margin-bottom: 12px; }
.article-body a { color: var(--accent); }
.article-body ul, .article-body ol { padding-left: 24px; margin-block: 20px; }
.article-body li + li { margin-top: 12px; }
.article-example { margin-block: 32px; padding: 26px 28px; border-left: 2px solid var(--accent); background: var(--surface); }
.article-example h3 { margin-top: 0; }
.article-example p + p { margin-top: 16px; }
.article-example .example-label { display: block; color: var(--accent); font-size: .8125rem; margin-bottom: 12px; }
.article-body .article-sources { font-size: .875rem; border-top: 1px solid var(--line); padding-top: 30px; }
.article-sources h2 { font-size: 1.35rem; }
.article-sources a { overflow-wrap: anywhere; }
.article-next { padding: 30px 0 0; border-top: 1px solid var(--line); }
.article-next .text-link { margin-top: 20px; }
.article-next .text-link + p, .article-body .article-related { margin-top: 24px; }
/* The quotation article illustrates the workflow directly using native HTML. */
.quote-flow { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quote-flow-label { color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.quote-flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.quote-flow-steps > div { min-width: 0; padding: 4px 28px; border-left: 1px solid var(--line); }
.quote-flow-steps > div:first-child { padding-left: 0; border-left: 0; }
.quote-flow-steps > div:last-child { padding-right: 0; }
.quote-flow-steps span { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.quote-flow-steps .quote-step { color: var(--accent); font-size: .75rem; letter-spacing: .05em; }
.quote-flow-steps strong { display: block; margin-block: 12px; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 500; line-height: 1.2; }
.insight-quote-visual { display: block; text-decoration: none; }
.insight-quote-visual .quote-flow { padding: 28px; }
.insight-quote-visual .quote-flow-steps { grid-template-columns: minmax(0, 1fr); margin-top: 22px; gap: 18px; }
.insight-quote-visual .quote-flow-steps > div { padding: 0 0 0 20px; border-left: 2px solid #6b865c; }
.insight-quote-visual .quote-flow-steps strong { font-size: 1.5rem; margin-block: 6px; }
.insight-quote-visual .quote-flow-steps > div > span:last-child { font-size: .875rem; }
.insight-quote-visual br { display: none; }
@media (max-width: 960px) {
  .insight-feature { gap: 32px; }
  .article-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767px) {
  .article-quote-flow .quote-flow { padding: 24px; }
  .article-quote-flow .quote-flow-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .article-quote-flow .quote-flow-steps > div { padding: 0 0 0 18px; border-left: 2px solid #6b865c; }
  .article-quote-flow .quote-flow-steps strong { margin-block: 6px; font-size: 1.4rem; }
  .insights-header { padding-block: 36px 32px; }
  .insights-header h1 { font-size: 2.6rem; }
  .insight-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 44px; }
  .insight-feature h2 { max-width: none; margin-top: 16px; }
  .insight-image img { aspect-ratio: 1.65; }
  .editorial-purpose, .follow-inner { padding-block: 36px; }
  .insight-home-inner { grid-template-columns: minmax(0, 1fr); }
  .article-header { padding-block: 28px 32px; }
  .breadcrumb { margin-bottom: 24px; }
  .article-header h1 { margin-top: 18px; }
  .article-deck { font-size: 1rem; }
  .article-cover img { aspect-ratio: 1.6; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 32px 48px; }
  .article-toc { position: static; }
  .article-toc a { padding-block: 10px; }
  .article-body { font-size: 1rem; }
  .article-example { padding: 22px; }
}
@media print {
  .article-toc, .follow-section, .follow-actions, .article-next { display: none; }
  .article-layout { display: block; padding-block: 24px; }
  .article-header { padding-block: 20px; }
  .article-cover img { max-height: 220px; }
  .article-body p, .article-body li, .article-body strong { color: #111; }
  .article-example { background: transparent; border-color: #333; }
}

/* Preserve all three engineering panels in the editorial illustration. */
.article-cover.article-cover--diagram img { aspect-ratio: auto; max-height: none; height: auto; }
.insight-image.insight-image--diagram img { aspect-ratio: auto; height: auto; }

/* The PLC article makes engineering layers and review stages readable. */
.engineering-layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-block: 28px; }
.engineering-layers > div { border-top: 1px solid var(--line); padding-top: 16px; }
.engineering-layers dt { color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.engineering-layers dd { margin: 0; color: #c8d0d4; }
.article-body .engineering-pipeline { list-style: none; counter-reset: engineering-stage; padding-left: 0; margin-block: 28px; }
.engineering-pipeline > li { counter-increment: engineering-stage; position: relative; padding: 22px 0 22px 52px; border-top: 1px solid var(--line); }
.engineering-pipeline > li::before { content: counter(engineering-stage, decimal-leading-zero); position: absolute; left: 0; top: 24px; color: var(--accent); font-size: .875rem; }
.article-body .engineering-pipeline > li + li { margin-top: 0; }
.article-body .engineering-pipeline h3 { margin-top: 0; }
@media (max-width: 767px) { .engineering-layers { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
