/* Knowledge centre and article patterns; shared shell remains in site.css. */
.knowledge-page { --reading-width: 46rem; }
.knowledge-page main { padding-block: clamp(28px, 4vw, 48px) var(--section-space); }
.knowledge-page .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem .65rem; padding: 0; margin: 0 0 2.5rem; list-style: none; color: var(--muted); font-size: .875rem; }
.knowledge-page .breadcrumbs li + li::before { content: "/"; margin-right: .65rem; color: var(--quiet); }
.knowledge-page .breadcrumbs a { text-decoration-color: var(--border); }
.knowledge-intro { max-width: var(--reading-width); margin-bottom: 3rem; }
.knowledge-page h1 { font-size: clamp(2.25rem, 4.7vw, 3.75rem); line-height: 1.12; letter-spacing: -.035em; margin: .65rem 0 1.25rem; font-weight: 650; }
.knowledge-page .lede { font-size: clamp(1.0625rem, 1.8vw, 1.25rem); line-height: 1.65; color: var(--muted); }
.knowledge-page .eyebrow { color: var(--accent); }
.knowledge-section { padding-block: 2.5rem; border-top: 1px solid var(--border); }
.knowledge-page h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 1rem; font-weight: 600; }
.knowledge-section > p { max-width: 65ch; color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.resource-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.resource-card h3 { font-size: 1.5rem; line-height: 1.3; margin: 1rem 0 .75rem; }
.resource-card p { margin: 0 0 1.5rem; color: var(--muted); }
.resource-card > a { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; color: var(--accent); }
.guide-icon { width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; color: var(--accent); }
.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.topic-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--border); }
.topic-list .guide-icon { margin-top: .2rem; }
.topic-list h3 { font-size: 1.125rem; line-height: 1.4; margin: 0 0 .5rem; }
.topic-list p { color: var(--muted); font-size: 1rem; margin: 0 0 .5rem; }
.topic-list a { color: var(--accent); display: inline-block; padding-block: .35rem; }
.knowledge-help { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-top: 1rem; }
.knowledge-help a { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); }
.guide-article { max-width: var(--reading-width); margin-inline: 0; overflow-wrap: anywhere; }
.guide-article > header { margin-bottom: 2rem; }
.guide-article h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.guide-review { color: var(--quiet); font-size: .875rem; margin: 1.25rem 0 0; }
.guide-prose { font-size: 1.0625rem; }
.guide-prose h2 { margin-top: 2.75rem; scroll-margin-top: 1.5rem; }
.guide-prose h3 { margin: 2rem 0 .75rem; font-size: 1.25rem; line-height: 1.4; }
.guide-prose p, .guide-prose li, .guide-prose dd { color: var(--muted); }
.guide-prose strong { color: var(--text); }
.guide-prose a, .guide-toc a, .guide-related a { color: var(--accent); }
.guide-prose p { margin: 0 0 1.25rem; }
.guide-prose ul, .guide-prose ol { padding-left: 1.5rem; margin: 1rem 0 1.5rem; }
.guide-prose li + li { margin-top: .75rem; }
.guide-toc { border-block: 1px solid var(--border); padding-block: 1.25rem; margin-bottom: 2rem; }
.guide-toc h2 { font-size: 1rem; letter-spacing: 0; }
.guide-toc ol { margin: 0; padding-left: 1.4rem; }
.guide-toc a { display: inline-block; padding-block: .3rem; }
.guide-callout { border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1.25rem; margin: 1.75rem 0; }
.guide-callout p:last-child { margin-bottom: 0; }
.guide-callout--warning { border-color: #e9c77f; }
.guide-figure { margin: 2rem 0; }
.guide-figure > a { display: block; border-radius: var(--radius); }
.guide-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.guide-figure figcaption { color: var(--quiet); font-size: .875rem; line-height: 1.6; margin-top: .75rem; }
.guide-table-scroll { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; }
.guide-table-scroll table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.guide-table-scroll caption { text-align: left; color: var(--quiet); padding-bottom: .75rem; }
.guide-table-scroll th, .guide-table-scroll td { padding: 1rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.guide-table-scroll th { color: var(--text); font-weight: 600; }
.guide-table-scroll td { color: var(--muted); }
.guide-prose code { font-size: .9em; background: var(--surface); padding: .1em .3em; border-radius: .2rem; }
.guide-prose pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: var(--surface); border: 1px solid var(--border); }
.guide-prose pre code { padding: 0; }
.guide-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.guide-comparison > div { padding: 1.25rem; border: 1px solid var(--border); }
.guide-comparison h3 { margin: 0 0 .75rem; font-size: 1rem; }
.guide-related { border-top: 1px solid var(--border); margin-top: 2.75rem; padding-top: 2rem; }
.guide-related ul { padding-left: 1.25rem; }
.guide-related a { display: inline-block; padding-block: .4rem; }
@media (max-width: 640px) {
  .resource-grid, .topic-list, .guide-comparison { grid-template-columns: minmax(0, 1fr); }
  .knowledge-page .breadcrumbs ol { margin-bottom: 1.75rem; }
  .guide-table-scroll th, .guide-table-scroll td { padding: .75rem .5rem; }
}
@media (forced-colors: active) {
  .guide-callout, .resource-card, .topic-list > li, .guide-table-scroll th, .guide-table-scroll td { border-color: CanvasText; }
}
