/* Product relationships and report-derived charts use the existing ARC tokens. */
.system-map { margin-bottom: 40px; }
.system-origin { width: min(560px, 100%); margin-inline: auto; text-align: center; border: 1px solid var(--amber); padding: 28px 30px 0; }
.system-role { display: block; color: var(--amber); font-size: 13px; line-height: 1.5; }
.system-origin h3 { font-size: 36px; margin-top: 10px; }
.system-origin > p { color: var(--pale); font-size: 14px; margin: 14px auto 24px; max-width: 40ch; }
.plan-output { display: flex; gap: 18px; align-items: center; justify-content: center; margin-inline: -30px; padding: 13px 20px; border-top: 1px solid var(--dark-line); font-size: 13px; }
.plan-output > span { color: var(--amber); font-size: 19px; }
.system-connectors { display: block; width: 100%; height: 72px; overflow: visible; }
.system-connectors > path { stroke: var(--amber); fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.system-destinations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.system-destinations > div { border-top: 1px solid var(--amber); padding: 25px 24px 27px; background: var(--graphite); }
.system-destinations h4 { font-size: 27px; margin-top: 12px; line-height: 1.16; }
.system-destinations p { font-size: 14px; color: var(--pale); margin-top: 15px; max-width: 31ch; }
.system-history { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 14px; padding: 29px 30px; border: 1px solid var(--dark-line); }
.system-history h4 { font-size: 25px; margin-top: 10px; }
.system-history > div > p { font-size: 14px; color: var(--pale); margin-top: 13px; max-width: 43ch; }
.history-destinations { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-content: center; }
.history-destinations > span { grid-column: 1 / -1; font-size: 12px; color: var(--pale); }
.system-history .history-destinations > p { margin-top: 0; color: var(--paper); }
.history-destinations p > span { color: var(--amber); margin-right: 4px; }
.history-destinations strong { font-size: 14px; font-weight: 500; }
.history-destinations small { display: block; color: var(--pale); font-size: 12px; line-height: 1.65; margin-top: 6px; }
.system-knowledge { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-top: 24px; padding: 26px 30px; background: var(--teal); }
.system-knowledge .mono { font-size: 10px; }
.system-knowledge h4 { font-size: 26px; margin-top: 9px; }
.system-knowledge p { max-width: 55ch; font-size: 14px; }
.system-map > figcaption { color: var(--pale); font-size: 12px; margin-top: 16px; text-align: center; }
.comparison-context { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: none; }
.comparison-context strong { color: var(--ink); font-weight: 500; }
.optimus-chart-panel { margin: 42px 0 30px; }
.optimus-switch { display: flex; border-bottom: 1px solid var(--dark-line); gap: 32px; }
.optimus-switch button { display: flex; align-items: center; gap: 13px; background: none; color: var(--pale); border: 0; border-bottom: 2px solid transparent; padding: 15px 0 17px; font-size: 14px; min-height: 52px; }
.optimus-switch button span { font-family: var(--mono); font-size: 12px; }
.optimus-switch button[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--amber); }
.optimus-switch button[aria-pressed="true"] span { color: var(--amber); }
.optimus-switch button:hover { color: var(--paper); }
.chart-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 28px 0 6px; }
.chart-heading h4 { font-size: 18px; font-weight: 500; }
.chart-heading > span { color: var(--pale); display: flex; align-items: center; gap: 9px; font-size: 12px; }
.chart-heading i { width: 20px; height: 2px; background: var(--amber); }
.optimus-chart picture, .optimus-chart img { display: block; width: 100%; }
.optimus-chart figcaption { color: var(--pale); font-size: 13px; margin-top: 13px; max-width: 85ch; }
.optimus-chart figcaption strong { color: var(--paper); font-weight: 500; }
@media (max-width: 1000px) {
  .system-destinations { gap: 20px; }
  .system-destinations > div { padding-inline: 12px; }
  .system-destinations h4 { font-size: 23px; }
  .system-history { gap: 28px; }
  .history-destinations { grid-template-columns: 1fr; gap: 15px; }
  .history-destinations > span { grid-column: auto; }
  .system-knowledge { gap: 35px; }
}
@media (max-width: 640px) {
  .system-origin { padding: 25px 21px 0; }
  .system-origin h3 { font-size: 32px; }
  .system-role { font-size: 14px; }
  .system-origin > p { font-size: 14px; margin-bottom: 21px; }
  .plan-output { margin-inline: -21px; font-size: 13px; padding: 13px 10px; gap: 10px; }
  .system-connectors { display: none; }
  .system-destinations { display: block; position: relative; padding: 30px 0 0 28px; margin-left: 10px; }
  .system-destinations::before { content: ''; position: absolute; left: 0; top: 0; bottom: 78px; width: 1px; background: var(--amber); }
  .system-destinations > div { position: relative; border-top: 1px solid var(--dark-line); padding: 22px 0; }
  .system-destinations > div::before { content: '→'; position: absolute; left: -33px; top: 59px; font-size: 23px; line-height: 1; color: var(--amber); background: var(--graphite); }
  .system-destinations > div:first-child { border-top: 0; padding-top: 8px; }
  .system-destinations > div:first-child::before { top: 45px; }
  .system-destinations h4 { font-size: 24px; margin-top: 8px; }
  .system-destinations h4 br { display: none; }
  .system-destinations p { margin-top: 10px; font-size: 14px; max-width: 35ch; }
  .system-history { grid-template-columns: 1fr; gap: 25px; padding: 24px 21px; margin-top: 10px; }
  .system-history h4 { font-size: 25px; }
  .system-history > div > p { font-size: 14px; }
  .history-destinations { padding-top: 20px; border-top: 1px solid var(--dark-line); }
  .history-destinations > span, .history-destinations strong, .history-destinations small { font-size: 14px; }
  .system-knowledge { align-items: flex-start; flex-direction: column; padding: 24px 21px; gap: 19px; }
  .system-knowledge p, .system-map > figcaption { font-size: 14px; }
  .system-map > figcaption { text-align: left; }
  .system-knowledge .mono { font-size: 11px; }
  .optimus-chart-panel { margin-top: 30px; }
  .optimus-switch { gap: 25px; }
  .optimus-switch button { flex: 1; text-align: left; align-items: flex-start; flex-direction: column; font-size: 14px; gap: 5px; }
  .optimus-switch button span { font-size: 13px; }
  .chart-heading { flex-direction: column; gap: 9px; margin-top: 26px; }
  .chart-heading h4 { font-size: 19px; }
  .chart-heading > span { font-size: 12px; }
  .optimus-chart img { aspect-ratio: 340 / 340; height: auto; }
  .optimus-chart figcaption { font-size: 14px; margin-top: 18px; }
}
@media print {
  .optimus-switch { display: none; }
  .optimus-chart[hidden] { display: block !important; }
}
