/* Supplemental styles for the two evidence-led copper knowledge pages. */
.knowledge-page .page-hero { padding-bottom: 26px; }
.knowledge-page .card, .knowledge-page .table-scroll { min-width: 0; }
.knowledge-page .lede { max-width: 850px; }
.knowledge-intro { display: grid; gap: 18px; }
.three-up { display: grid; gap: 14px; }
.three-up > div { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: rgb(255 255 255 / 56%); }
.three-up strong { display: block; margin-bottom: 4px; color: var(--ink); }
.three-up p { margin-bottom: 0; font-size: .9rem; }
.source-line, .source-note { color: var(--muted); font-size: .82rem; }
.source-line { margin: 0; }
.source-note { margin: 12px 0 0; }
.source-note strong { color: var(--ink-2); }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi-card { min-height: 142px; padding: 17px; }
.kpi-card .metric-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.kpi-card strong { display: block; color: var(--copper-burnished); font-size: clamp(1.55rem, 5vw, 2.1rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-card small { display: block; margin-top: 8px; color: var(--muted); font-size: .75rem; }
.toc-card { padding: 16px; background: var(--surface-2); box-shadow: none; }
.toc-card strong { display: block; margin-bottom: 7px; }
.toc-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding-left: 18px; }
.toc-list li { margin: 0; }
.toc-list a { font-size: .88rem; font-weight: 700; }
.knowledge-page .section { scroll-margin-top: 92px; }
.knowledge-page .section-heading { margin-bottom: 18px; }
.knowledge-page .section-heading h2 { max-width: 800px; }
.data-card { padding: 18px; }
.data-card h3 { margin-bottom: 4px; }
.data-card > p:last-of-type { margin-bottom: 12px; }
.data-grid, .data-grid-wide { display: grid; gap: 16px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.knowledge-page table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.knowledge-page th, .knowledge-page td { padding: 10px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.knowledge-page th { color: var(--ink); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.knowledge-page td { color: var(--ink-2); }
.knowledge-page tbody tr:last-child td { border-bottom: 0; }
.knowledge-page .number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-frame { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.chart-frame svg { width: 100%; height: auto; overflow: visible; }
.chart-frame .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-frame .grid-line { stroke: #f1e5de; stroke-width: 1; }
.chart-frame .series-cathode { fill: none; stroke: var(--copper-dark); stroke-width: 3; }
.chart-frame .series-rod { fill: none; stroke: var(--gain); stroke-width: 3; stroke-dasharray: 8 5; }
.chart-frame .bar-capacity { fill: #e7c0ae; }
.chart-frame .bar-production { fill: var(--copper-dark); }
.chart-frame text { fill: var(--muted); font: 12px ui-sans-serif, sans-serif; }
.chart-frame .value-label { fill: var(--ink); font-weight: 800; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 0; color: var(--muted); font-size: .78rem; }
.legend-key { display: inline-flex; align-items: center; gap: 7px; }
.legend-key::before { width: 18px; height: 3px; content: ""; background: var(--copper-dark); }
.legend-key.rod::before { background: var(--gain); }
.legend-key.capacity::before { height: 11px; background: #e7c0ae; }
.legend-key.production::before { height: 11px; background: var(--copper-dark); }
.formula { display: inline-block; margin: 4px 0 0; padding: 9px 11px; border-left: 3px solid var(--copper); background: var(--surface-2); color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.bar-list { display: grid; gap: 12px; margin-top: 16px; }
.bar-row { display: grid; grid-template-columns: minmax(95px, 1.1fr) minmax(100px, 3fr) auto; align-items: center; gap: 10px; }
.bar-label { color: var(--ink-2); font-size: .82rem; }
.bar-track { height: 13px; overflow: hidden; border-radius: 999px; background: #f1e5de; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--copper-dark); }
.bar-value { color: var(--ink); font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.value-callout { display: grid; gap: 6px; margin-top: 14px; padding: 13px; border-left: 4px solid var(--copper); background: var(--surface-2); }
.value-callout strong { color: var(--ink); }
.diagram-card { padding: 14px; }
.diagram-card svg { width: 100%; height: auto; }
.diagram-card text { fill: var(--ink); font: 700 12px ui-sans-serif, sans-serif; }
.diagram-card .node { fill: #fff; stroke: var(--copper-dark); stroke-width: 2; }
.diagram-card .source-node { fill: #fff2e9; }
.diagram-card .recycle-node { fill: #e5f2ee; stroke: var(--gain); }
.diagram-card .flow { fill: none; marker-end: url(#arrow); stroke: var(--copper-dark); stroke-width: 2; }
.diagram-card .loop { fill: none; marker-end: url(#arrow-green); stroke: var(--gain); stroke-dasharray: 7 5; stroke-width: 2; }
.diagram-caption { margin: 10px 2px 0; color: var(--muted); font-size: .8rem; }
.two-col-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.two-col-list li { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.two-col-list strong { display: block; margin-bottom: 4px; color: var(--ink); }
.definition-list.tight > div { padding-block: 10px; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--surface-copper); color: var(--copper-burnished); font-size: .74rem; font-weight: 800; }
.warning-card { border-color: #e8b69c; background: #fff6ef; }
.standards-search { display: grid; gap: 8px; margin-bottom: 12px; }
.standards-search label { color: var(--ink); font-size: .82rem; font-weight: 800; }
.standards-search input { min-height: 44px; width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); }
.hidden-row { display: none; }
.selection-tree { display: grid; gap: 10px; }
.selection-step { position: relative; padding: 14px 14px 14px 48px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.selection-step::before { position: absolute; top: 13px; left: 14px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--copper-dark); color: #fff; content: attr(data-step); font-weight: 800; }
.selection-step strong { display: block; margin-bottom: 4px; }
.muted-box { padding: 14px; border: 1px dashed var(--line-strong); border-radius: 9px; background: #fff; }
.muted-box p:last-child { margin-bottom: 0; }
.source-table a { white-space: nowrap; }
.back-link { font-weight: 800; text-decoration: none; }
.roadmap { display: grid; gap: 12px; }
.roadmap-item { position: relative; padding: 16px 16px 16px 72px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.roadmap-item::before { position: absolute; top: 16px; left: 16px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--copper-dark); color: #fff; content: attr(data-year); font-weight: 800; }
.roadmap-item.target::before { background: var(--gain); }
.roadmap-item.vision::before { background: var(--ink); }
.roadmap-item strong, .roadmap-item span { display: block; }
.roadmap-item span { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.comparison-table td, .comparison-table th { white-space: nowrap; }
.comparison-table td:last-child { white-space: normal; }
.ordering-table td:first-child { font-weight: 800; }

@media (min-width: 600px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .knowledge-intro { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-grid-wide { grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); align-items: start; }
  .two-col-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .knowledge-page .page-hero { padding-top: 44px; }
  .kpi-card { min-height: 154px; padding: 20px; }
  .data-card, .diagram-card { padding: 22px; }
  .knowledge-page table { font-size: .91rem; }
}

@media (max-width: 599px) {
  .bar-row { grid-template-columns: minmax(88px, 1fr) minmax(80px, 1.35fr) auto; gap: 7px; }
  .bar-label { font-size: .76rem; }
  .bar-value { font-size: .72rem; }
  .chart-frame { padding: 8px; }
  .diagram-card { overflow-x: auto; }
  .diagram-card svg { min-width: 0; }
}
