.article-hero { padding: 78px 0 66px; color: white; background: radial-gradient(circle at 84% 12%, rgba(158, 224, 167, .16), transparent 35%), var(--ink-deep); }
.breadcrumbs { margin: 0 0 35px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.76); font-size: 12px; list-style: none; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--green-bright); }
.breadcrumbs a { color: inherit; text-underline-offset: 3px; }
.article-hero h1 { max-width: 980px; }
.article-hero .lead { max-width: 800px; margin: 25px 0 0; color: rgba(255,255,255,.86); font-size: 20px; }
.article-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-meta span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.84); font-size: 11px; }
.post-byline { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.author-link, .post-date { min-width: 0; display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; }
.author-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.author-link small, .post-date small { display: block; margin-bottom: 2px; color: rgba(255,255,255,.64); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.author-link strong, .post-date time { display: block; color: white; font-size: 13px; font-weight: 800; }
.author-avatar, .author-portrait, .card-author-avatar { display: block; flex: 0 0 auto; border-radius: 50%; object-fit: cover; object-position: center 28%; }
.author-avatar { width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.42); }
.hub-byline { margin-top: 36px; }
.article-shell { padding-top: 70px; padding-bottom: 90px; display: grid; grid-template-columns: 250px minmax(0, 820px); gap: 80px; justify-content: center; }
.article-toc { position: sticky; top: 92px; align-self: start; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.article-toc strong { font-family: Georgia, serif; font-size: 18px; }
.article-toc nav { margin-top: 15px; display: grid; gap: 10px; }
.article-toc a { color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.article-toc a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.article-body > section { scroll-margin-top: 95px; margin-bottom: 72px; }
.article-body h2 { max-width: 760px; font-size: clamp(34px, 5vw, 54px); }
.article-body h3 { margin-top: 34px; font-size: 25px; }
.article-body p, .article-body li { color: var(--muted); font-size: 17px; line-height: 1.75; }
.article-body strong { color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body .intro { color: var(--ink); font-size: 21px; }
.answer-box { padding: 28px; border: 1px solid rgba(29,116,86,.35); border-radius: 22px; background: var(--green-soft); }
.answer-box h2 { margin-top: 8px; font-size: clamp(30px, 4vw, 44px); }
.answer-box .intro { margin-bottom: 0; }
.source-list { display: grid; gap: 10px; }
.source-list a { color: var(--green); font-weight: 750; text-underline-offset: 3px; }
.model-note { margin: 28px 0; padding: 18px 20px; border-left: 4px solid var(--amber); background: var(--amber-soft); color: #5a4216; }
.model-note strong { color: #5a4216; }
.tier-stack, .stack-grid, .quality-grid, .related-grid { display: grid; gap: 14px; }
.tier-stack { margin-top: 28px; }
.tier-card { padding: 26px; display: grid; grid-template-columns: 110px 1fr; gap: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 12px 35px rgba(16,43,37,.04); }
.tier-card .tier-label { display: flex; flex-direction: column; gap: 5px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.tier-card .tier-label b { color: var(--ink); font-family: Georgia, serif; font-size: 38px; letter-spacing: 0; }
.tier-card h3 { margin: 0; }
.tier-card p { margin-bottom: 0; font-size: 15px; }
.tier-card.tier-one { border-color: rgba(238,128,106,.55); }
.tier-card.tier-two { border-color: rgba(29,116,86,.55); background: var(--green-soft); }
.tier-card.tier-three { border-color: rgba(240,183,75,.55); }
.stack-grid { grid-template-columns: repeat(5, 1fr); margin-top: 30px; }
.stack-grid article { min-height: 190px; padding: 20px; border-radius: 18px; background: var(--ink-deep); color: white; }
.stack-grid span { color: var(--green-bright); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.stack-grid strong { display: block; margin-top: 26px; color: white; font-family: Georgia, serif; font-size: 21px; }
.stack-grid p { color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.55; }
.quality-grid { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
.quality-grid article { padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.quality-grid h3 { margin: 0; font-size: 20px; }
.quality-grid p { margin-bottom: 0; font-size: 14px; }
.fact-table { width: 100%; margin-top: 25px; border-collapse: collapse; }
.fact-table th, .fact-table td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fact-table th { color: var(--green); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.fact-table td { color: var(--muted); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 850; }
.faq-list p { margin-bottom: 0; font-size: 15px; }
.article-cta { padding: 34px; border-radius: 24px; background: var(--green-soft); }
.article-cta h2 { font-size: 36px; }
.article-cta p { max-width: 620px; }
.article-cta .button { margin-top: 10px; }
.related-section { padding: 70px 0; background: var(--paper); }
.knowledge-foundations { padding-top: 0; background: var(--paper); }
.related-grid { grid-template-columns: repeat(4, 1fr); margin-top: 30px; }
.related-grid a { min-height: 190px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); color: var(--ink); text-decoration: none; }
.related-grid a:hover { border-color: var(--green); transform: translateY(-2px); }
.related-grid span { color: var(--green); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.related-grid strong { margin-top: 25px; font-family: Georgia, serif; font-size: 22px; }
.related-grid small { margin-top: auto; color: var(--muted); }
.knowledge-hero h1 { max-width: 1060px; }
.answer-pages { background: var(--cream); }
.knowledge-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.knowledge-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); overflow: hidden; box-shadow: 0 14px 38px rgba(16,43,37,.05); }
.knowledge-card .knowledge-main { min-height: 220px; flex: 1; padding: 28px 28px 10px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.knowledge-card:hover { border-color: var(--green); transform: translateY(-2px); }
.knowledge-card.featured-card { grid-column: span 2; background: linear-gradient(135deg, var(--green-soft), var(--paper)); }
.knowledge-card.featured-card .knowledge-main { min-height: 175px; }
.knowledge-category { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.knowledge-card h3 { max-width: 740px; margin: 22px 0 12px; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 36px); line-height: 1.08; }
.knowledge-card p { max-width: 730px; margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.card-meta { margin: 0 28px; padding: 18px 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 750; }
.card-meta a { color: var(--green); font-weight: 850; text-underline-offset: 3px; }
.card-meta .card-author { display: inline-flex; align-items: center; gap: 7px; }
.card-author-avatar { width: 24px; height: 24px; border: 1px solid var(--line); }
.author-hero { padding: 78px 0 68px; background: linear-gradient(140deg, var(--green-soft), var(--paper)); }
.author-profile { display: grid; grid-template-columns: 180px minmax(0, 850px); gap: 44px; align-items: center; }
.author-profile h1 { font-size: clamp(56px, 8vw, 92px); }
.author-profile .lead { max-width: 780px; color: var(--muted); font-size: 20px; }
.author-portrait { width: 180px; height: 180px; border: 8px solid var(--paper); box-shadow: 0 16px 45px rgba(16,43,37,.12); }
.dark-breadcrumbs { color: var(--muted); }
.author-layout .article-toc p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.author-layout .article-toc .text-link { display: inline-block; margin-top: 12px; color: var(--green); }
.author-article-list { display: grid; gap: 14px; }
.author-article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.author-article > p:first-child { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--green); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.author-article h2 { margin: 15px 0 10px; font-size: 28px; }
.author-article h2 a { color: var(--ink); text-decoration: none; }
.author-article h2 a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.author-article > p:last-child { margin: 0; font-size: 15px; }
.author-teaser { padding: 38px; display: grid; grid-template-columns: 112px minmax(0, 760px); gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: 26px; background: var(--green-soft); }
.author-teaser h2 { margin: 8px 0 10px; font-size: 40px; }
.author-teaser p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.small-portrait { width: 112px; height: 112px; border-width: 5px; font-size: 32px; }
.source-boundary { padding: 16px 18px; border: 1px dashed var(--line); border-radius: 14px; background: rgba(255,253,248,.6); color: var(--muted); font-size: 13px !important; }
.source-credit { margin: 0 0 46px; padding: 29px; border: 1px solid rgba(28,91,69,.28); border-radius: 22px; background: var(--green-soft); }
.source-credit h2 { font-size: clamp(30px, 4vw, 44px); }
.source-credit p { color: var(--muted); }
.source-credit cite { color: var(--ink); }

/* Explanatory visuals: lightweight, self-hosted and readable without JavaScript. */
.concept-visual { margin: 28px 0; padding: 26px; overflow: hidden; border: 1px solid rgba(28,91,69,.2); border-radius: 24px; background: linear-gradient(145deg, var(--paper), var(--green-soft)); box-shadow: 0 18px 45px rgba(16,43,37,.07); }
.visual-kicker { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.visual-caption { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); font-size: 12px !important; line-height: 1.55 !important; }
.visual-flow { display: flex; align-items: stretch; gap: 10px; }
.flow-node { min-width: 0; flex: 1 1 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.flow-node strong, .flow-node small { display: block; }
.flow-node strong { color: var(--ink); }
.flow-node small { margin-top: 6px; color: var(--muted); line-height: 1.4; }
.flow-node-accent { border-color: var(--green); background: var(--green-soft); }
.flow-arrow { align-self: center; color: var(--green); font-style: normal; font-size: 20px; font-weight: 900; }
.compact-flow { margin-top: 24px; }

.coverage-board { display: grid; gap: 8px; }
.coverage-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(72px, .48fr)); align-items: center; gap: 8px; }
.coverage-row > * { min-width: 0; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.76); font-size: 13px; }
.coverage-head > * { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.coverage-yes { color: #17633f; background: #dff3e3 !important; }
.coverage-partial, .status-partial { color: #73500b; background: #fff0c8 !important; }
.coverage-no, .status-no { color: #8b3426; background: #fde0d9 !important; }

.data-primitives, .goal-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.data-primitives > div, .goal-branches > div { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.8); }
.data-primitives span, .goal-branches span, .goal-question span, .goal-result span, .set-product span, .contract-card span { display: block; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.data-primitives strong, .data-primitives small, .goal-branches strong, .goal-branches small { display: block; }
.data-primitives small, .goal-branches small { margin-top: 8px; color: var(--muted); line-height: 1.4; }

.selection-board { display: grid; grid-template-columns: 1fr 108px 1fr; gap: 16px; align-items: center; }
.selection-column { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.75); }
.selection-after { border-color: rgba(29,116,86,.55); background: rgba(223,243,227,.82); }
.intent-chip, .product-chip { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; }
.intent-chip { color: var(--ink) !important; background: var(--amber-soft); font-size: 13px !important; line-height: 1.45 !important; }
.product-chip { border: 1px solid var(--line); background: var(--paper); }
.product-chip b, .product-chip small { display: block; }
.product-chip small { margin-top: 4px; color: var(--muted); }
.muted-chip { opacity: .7; }
.rejected-chip { border-color: rgba(238,128,106,.5); background: #fff0ec; }
.selected-chip { border-color: var(--green); background: #dff3e3; }
.delta-bridge { text-align: center; color: var(--green); }
.delta-bridge b, .delta-bridge span { display: block; }
.delta-bridge b { font-family: Georgia, serif; font-size: 48px; }
.delta-bridge span { margin-top: 5px; font-size: 11px; font-weight: 800; line-height: 1.55; }

.provenance-pipeline { display: grid; grid-template-columns: repeat(11, auto); gap: 7px; align-items: center; }
.pipeline-step { min-width: 92px; padding: 15px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.8); text-align: center; }
.pipeline-step span, .pipeline-step strong, .pipeline-step small { display: block; }
.pipeline-step span { color: var(--green); font-size: 10px; font-weight: 900; }
.pipeline-step strong { margin-top: 9px; color: var(--ink); font-size: 14px; }
.pipeline-step small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.pipeline-publish { border-color: var(--green); background: #dff3e3; }
.contract-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.contract-card > div { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.contract-card strong { display: block; margin-top: 6px; font-size: 14px; }

.goal-map { display: grid; gap: 14px; }
.goal-question, .goal-result { padding: 20px; border-radius: 16px; text-align: center; }
.goal-question { background: var(--ink-deep); color: white; }
.goal-question span { color: var(--green-bright); }
.goal-question strong, .goal-result strong { display: block; margin-top: 8px; }
.goal-question strong { color: white; font-family: Georgia, serif; font-size: 22px; }
.goal-branches { grid-template-columns: repeat(5, 1fr); }
.goal-result { border: 1px solid var(--green); background: #dff3e3; }
.set-builder { margin-top: 24px; display: grid; grid-template-columns: 1fr 120px 1fr 150px 1fr; align-items: center; gap: 8px; }
.set-product { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.set-product strong { display: block; margin-top: 8px; }
.set-product.outcome { border-color: var(--green); background: #dff3e3; }
.set-link { color: var(--green); text-align: center; }
.set-link b, .set-link small { display: block; }
.set-link b { font-size: 25px; }
.set-link small { margin-top: 5px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .article-shell { grid-template-columns: 1fr; gap: 35px; }
  .article-toc { position: static; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .provenance-pipeline { grid-template-columns: repeat(3, 1fr); }
  .provenance-pipeline .flow-arrow { display: none; }
  .goal-branches { grid-template-columns: repeat(2, 1fr); }
  .set-builder { grid-template-columns: 1fr; }
  .set-link { padding: 4px 0; }
  .author-profile { grid-template-columns: 130px minmax(0, 1fr); gap: 28px; }
  .author-portrait { width: 130px; height: 130px; }
}

@media (max-width: 640px) {
  .article-hero { padding: 52px 0 45px; }
  .article-hero h1, .article-body h2, .article-body h3 { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
  .article-hero .lead { font-size: 17px; }
  .article-shell { padding-top: 45px; padding-bottom: 60px; }
  .tier-card { grid-template-columns: 1fr; gap: 12px; }
  .tier-card .tier-label { flex-direction: row; align-items: baseline; }
  .quality-grid, .stack-grid, .related-grid { grid-template-columns: 1fr; }
  .concept-visual { padding: 18px; }
  .visual-flow, .compact-flow { flex-direction: column; }
  .visual-flow .flow-arrow { transform: rotate(90deg); }
  .coverage-row { grid-template-columns: 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .coverage-head { display: none; }
  .data-primitives, .goal-branches, .contract-card { grid-template-columns: 1fr; }
  .selection-board { grid-template-columns: 1fr; }
  .delta-bridge { padding: 2px 0; }
  .delta-bridge b { font-size: 34px; }
  .provenance-pipeline { grid-template-columns: 1fr; }
  .pipeline-step { min-width: 0; text-align: left; }
  .fact-table, .fact-table tbody, .fact-table tr, .fact-table th, .fact-table td { display: block; }
  .fact-table thead { display: none; }
  .fact-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .fact-table td { padding: 5px 0; border: 0; }
  .post-byline { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-card.featured-card { grid-column: auto; }
  .knowledge-card .knowledge-main, .knowledge-card.featured-card .knowledge-main { min-height: 0; padding: 22px 22px 10px; }
  .card-meta { margin: 0 22px; padding-bottom: 20px; }
  .knowledge-card h3 { overflow-wrap: anywhere; hyphens: auto; }
  .author-profile, .author-teaser { grid-template-columns: 1fr; }
  .author-hero { padding: 52px 0 50px; }
  .author-profile h1 { overflow-wrap: anywhere; }
  .author-portrait { width: 112px; height: 112px; }
  .author-teaser { padding: 26px; }
  .small-portrait { width: 88px; height: 88px; }
  .answer-box { padding: 22px; }
}
