/* 9. bölüm: analogdan dijitale köprü */

/* ortak paneller */
.c9-panel { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c9-ptitle { font-family: var(--f-display); font-stretch: 85%; font-size: 0.75rem; color: var(--muted); }
.c9-note { margin: 2px 0 0; font-family: var(--f-display); font-stretch: 92%; font-size: 0.84rem; color: var(--silk-2); line-height: 1.35; }
.c9-note.ok { color: var(--copper-2); }
table.truth.c9-tt { width: 100%; max-width: 380px; }
table.truth.c9-tt td { font-variant-numeric: tabular-nums; }
table.truth.c9-tt td:not([class]) { color: var(--silk); }
.c9-side { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; padding-top: 34px; }
.c9-side .meters { gap: 8px; }
.c9-side .meter { min-width: 104px; }
.c9-toprow .c9-side .meters { display: grid; grid-template-columns: 1fr; }

/* 1) transistörlü NOT */
.c9-split { grid-template-rows: minmax(0, 1fr) auto; }
.c9-bottom { display: grid; grid-template-columns: 1fr 1.05fr; gap: 18px; align-items: start; padding-bottom: 2px; }
.c9-bottom .meters .meter { min-width: 112px; }

/* 2) CMOS evirici */
.c9-split2 { grid-template-rows: minmax(0, 1.6fr) minmax(0, 1fr); }
.c9-toprow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 0; }
.c9-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0; }

/* 3) gürültü payları */
.c9-noise { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); }
.c9-lvpane { min-height: 260px; }
.c9-scwrap { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; padding-top: 30px; }
.c9-scpane { flex: 1; display: flex; flex-direction: column; min-height: 220px; }
.c9-scpane .pane-title { top: -24px; left: 0; }
.c9-scpane .scope { flex: 1; }
.c9-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.c9-chips .chip { font-family: var(--f-mono); font-size: 0.76rem; }
.c9-verdict { font-family: var(--f-display); font-weight: 700; font-stretch: 92%; font-size: 0.86rem; padding: 2px 10px; border-radius: 5px; border: 1.5px solid; }
.c9-verdict.v1 { color: #ffb3bf; border-color: var(--v1); background: rgba(255, 79, 106, 0.16); }
.c9-verdict.v0 { color: #b9cdff; border-color: var(--v0); background: rgba(76, 134, 255, 0.16); }
.c9-verdict.vx { color: var(--silk-2); border-color: var(--muted); border-style: dashed; background: rgba(134, 161, 148, 0.12); }

/* 4) CMOS NAND */
.c9-nand { grid-template-rows: minmax(0, 1fr) auto; }
.c9-nand table.truth.c9-tt th, .c9-nand table.truth.c9-tt td { padding: 4px 6px; }
.c9-nside { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 10px 18px; padding-top: 0; }
.c9-nside .c9-panel { grid-row: span 2; }
.c9-nside .meters { flex-wrap: nowrap; }
.c9-count { margin: 0; font-family: var(--f-display); font-stretch: 92%; font-size: 0.86rem; color: var(--silk-2); line-height: 1.45; border-left: 2px solid var(--copper); padding-left: 10px; }
.c9-count b { color: var(--copper-2); }

@media (max-width: 860px) {
  .c9-split { grid-template-rows: minmax(300px, 1fr) auto; }
  .c9-bottom { grid-template-columns: 1fr; }
  .c9-split2 { grid-template-rows: auto auto; }
  .c9-toprow { grid-template-columns: 1fr; grid-template-rows: 320px auto; }
  .c9-side { padding-top: 0; }
  .c9-toprow .c9-side .meters { grid-template-columns: 1fr 1fr; }
  .c9-charts { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .c9-noise { grid-template-columns: 1fr; grid-template-rows: 300px auto; }
  .c9-scpane { min-height: 240px; }
  .c9-nand { grid-template-rows: 360px auto; }
  .c9-nside { grid-template-columns: 1fr; }
  .c9-nside .c9-panel { grid-row: auto; }
}
