/* Technical views for the packet-processing core and spiking convolution tile. */
.evidence-system .evidence-image {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 320px;
  aspect-ratio: 900 / 560;
  padding: 12px;
  background: var(--panel);
}
.system-diagram { display: block; width: 100%; height: auto; font-family: var(--font-text); }
.system-block__box { fill: var(--panel); stroke: var(--line2); stroke-width: 1.4; }
.system-block__label { fill: var(--ink); font-size: 16px; font-weight: 500; }
.system-block__sub { fill: var(--muted); font-size: 13px; }
.system-block.is-selected .system-block__box { fill: var(--wash-a); stroke: var(--accent); }
.system-block.is-selected .system-block__label { fill: var(--accent); }
.system-link { stroke: var(--wire); stroke-width: 1.5; }
.system-link.is-selected { stroke: var(--accent); stroke-width: 2; }
.neuron-cell { fill: var(--panel); stroke: var(--line2); }
.neuron-cell__label { fill: var(--ink); font-size: 16px; }
.system-workspace { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; align-items: start; }
.system-board { min-width: 0; border: 1px solid var(--line); background: var(--panel); }
.system-toolbar { display: flex; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.system-scroll-hint { display: none; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.system-diagram-scroll { overflow: auto; overscroll-behavior: contain; }
.system-diagram-scroll .system-diagram { min-width: 900px; }
.system-detail { border: 1px solid var(--line); padding: 20px; }
.system-detail h3 { font-size: 24px; font-weight: 500; line-height: 1.25; margin: 12px 0 20px; }
.system-detail > p:last-child { font-size: 16px; line-height: 1.65; }
.system-block[role="button"] { cursor: pointer; }
.system-block[role="button"]:hover .system-block__box,
.system-block[role="button"]:focus-visible .system-block__box { stroke: var(--accent); stroke-width: 2.5; }
.system-block[role="button"]:focus-visible { outline: none; }
.system-diagram-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.verification-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.verification-table th,.verification-table td { text-align: left; vertical-align: top; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.verification-table th { color: var(--muted); font-weight: 400; }
.verification-table th:first-child,.verification-table td:first-child { padding-left: 0; }
.verification-table td:nth-child(2) { color: var(--accent); font-variant-numeric: tabular-nums; }
.neuron-equations { margin: 24px 0; padding: 20px; border-left: 2px solid var(--accent); background: var(--surface); }
.neuron-equations p + p { margin-top: 12px; }
.neuron-equations code { font: 400 15px/1.6 var(--font-mono); overflow-wrap: anywhere; }
@media(max-width:1279px) {
  .system-scroll-hint { display: block; }
}
@media(max-width:1023px) {
  .system-workspace { grid-template-columns: minmax(0,1fr); }
  .system-detail { max-width: none; }
}
@media(max-width:639px) {
  .evidence-system .evidence-image { min-height: 0; padding: 8px; }
  .system-toolbar { flex-wrap: wrap; font-size: 14px; }
  .verification-table th,.verification-table td { padding: 14px 8px; font-size: 15px; }
  .neuron-equations { padding: 16px; }
}
@media(max-width:359px) {
  body[data-project="spiking"] .project-masthead:not(.compact) .case-introduction h1 { font-size: 40px; }
}
