/* 3. bölüm: devre analizi deneyleri */

.c3-cap { font-family: var(--f-display); font-stretch: 85%; font-size: 0.75rem; color: var(--muted); margin: 0 0 6px; }
.c3-note { margin: 0; font-family: var(--f-display); font-stretch: 92%; font-size: 0.84rem; line-height: 1.4; color: var(--silk-2); }
.c3-note.ok { color: #b9cdff; }
.c3-f { font-family: var(--f-mono); font-size: 0.8rem; color: var(--silk); margin: 0 0 4px; line-height: 1.45; }
.c3-f b { color: var(--copper-2); font-weight: 650; }
.c3-tab { border-collapse: collapse; width: 100%; font-family: var(--f-display); font-stretch: 92%; font-size: 0.82rem; color: var(--silk-2); }
.c3-tab td { padding: 3px 8px 3px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.c3-tab td.mono { text-align: right; color: var(--silk); }
.c3-tab b { color: var(--silk); }
.meter.c3-dim { opacity: 0.5; }
.c3-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; justify-content: center; }
.c3-side .meters .meter { flex: 1 1 96px; }
.c3-lab { color: var(--muted); }

/* ---- seri / paralel ---- */
.c3-sp-split { grid-template-rows: minmax(0, 1fr) auto; }
.c3-sp-bottom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
.c3-rrow { display: flex; align-items: center; gap: 10px; padding: 3px 0; border-top: 1px solid var(--line); }
.c3-rid { font-family: var(--f-display); font-weight: 750; color: var(--copper-2); width: 1.9em; }
.c3-first { font-family: var(--f-display); font-stretch: 90%; font-size: 0.8rem; color: var(--muted); width: 9.6em; }
.c3-sw { display: inline-flex; border: 1.5px solid rgba(239, 238, 226, 0.25); border-radius: 7px; padding: 1px; background: var(--mask-3); width: 9.6em; }
.c3-sw button {
  flex: 1; border: 0; background: transparent; padding: 0.2em 0.5em; border-radius: 5px; cursor: pointer;
  font-family: var(--f-display); font-weight: 650; font-stretch: 90%; font-size: 0.8rem; color: var(--silk-2);
}
.c3-sw button.on { background: var(--silk); color: var(--mask); }
.c3-step { display: inline-flex; align-items: center; gap: 4px; }
.c3-rv { font-family: var(--f-mono); font-size: 0.82rem; color: var(--silk); min-width: 4.8em; text-align: center; }
.c3-x {
  margin-left: auto; width: 24px; height: 24px; padding: 0; border-radius: 5px; cursor: pointer; line-height: 1;
  border: 1px solid rgba(239, 238, 226, 0.2); background: transparent; color: var(--muted); font-size: 1rem;
}
.c3-x:hover:not(:disabled) { border-color: var(--heat); color: var(--heat); }
.c3-x:disabled { opacity: 0.3; cursor: default; }
.c3-eq { min-width: 0; }
.c3-eq .c3-sub { color: var(--silk-2); }
.c3-eq .c3-big { font-size: 0.86rem; margin-top: 6px; }
.c3-eq .c3-big + .c3-big { margin-top: 0; }

/* ---- gerilim bölücü ---- */
.c3-div-split { grid-template-rows: minmax(0, 1.45fr) minmax(0, 1fr); }
.c3-div-bottom { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; min-height: 0; }

/* ---- KCL ---- */
.c3-kcl-split { grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr); }
.c3-kcl-bottom { position: relative; min-height: 0; display: grid; }
.c3-kcl-bottom > * { min-height: 0; min-width: 0; }
.c3-kcl-bottom > [hidden] { display: none; }
.c3-junction { display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.c3-barrow { display: grid; grid-template-columns: 3.8em minmax(0, 1fr) 5.4em; align-items: center; gap: 10px; font-family: var(--f-display); font-stretch: 92%; font-size: 0.84rem; color: var(--silk-2); }
.c3-barrow .mono { text-align: right; color: var(--silk); font-size: 0.82rem; }
.c3-bar { display: flex; gap: 2px; height: 22px; }
.c3-bar span { position: relative; min-width: 2px; border-radius: 3px; background: var(--amp); transition: flex 0.25s; }
.c3-bar.out span { background: var(--copper); }
.c3-bar span:nth-child(2n) { filter: brightness(0.8); }
.c3-bar i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-family: var(--f-display); font-weight: 750; font-size: 0.72rem; color: #1b1405; overflow: hidden; }
.c3-bar em { flex: 0; }
.c3-sum { margin: 2px 0 0; font-family: var(--f-display); font-stretch: 92%; font-size: 0.9rem; color: var(--silk-2); }
.c3-sum b { color: var(--copper-2); font-size: 1rem; }
.c3-steps { overflow: auto; font-size: 0.84rem; color: var(--silk-2); }
.c3-steps ol { margin: 0; padding-left: 1.3em; }
.c3-steps li { margin-bottom: 6px; line-height: 1.4; }
.c3-steps li::marker { color: var(--copper); font-family: var(--f-display); font-weight: 700; }
.c3-steps .c3-f { display: block; margin: 3px 0 0; padding: 2px 8px; border-left: 2px solid var(--copper); background: rgba(239, 238, 226, 0.04); white-space: normal; }
.c3-steps b { color: var(--silk); }
.c3-thev { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.c3-thev .pane { min-height: 150px; }

/* ---- KVL ---- */
.c3-kvl-split { grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); }
.c3-kvl-bottom { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; min-height: 0; }
.c3-ledger { min-width: 0; overflow: auto; }
.c3-ledger tr td { color: var(--muted); }
.c3-ledger tr.seen td { color: var(--silk-2); }
.c3-ledger tr.seen td.mono { color: var(--silk); }
.c3-ledger tr.cur td { background: rgba(212, 147, 90, 0.16); }
.c3-ledger tr.tot td { border-top: 1.5px solid var(--silk-2); padding-top: 5px; }
.c3-ledger tr.tot b { color: var(--copper-2); font-size: 0.95rem; }
.c3-ledger .c3-note { margin-top: 8px; min-height: 1.2em; }

/* ---- multimetre: masa tipi (yatay) alet ---- */
.c3-mm-split { grid-template-rows: minmax(0, 1fr) auto; }
.c3-mm-bottom { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: center; }
.c3-dmm {
  padding: 9px; border-radius: 22px;
  background: linear-gradient(#e7c66f, #c9a14a); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.c3-dmm-face {
  display: grid; grid-template-columns: 210px 150px 64px; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 15px; background: #222a27; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.c3-lcd {
  position: relative; height: 84px; border-radius: 6px; padding: 4px 10px;
  background: var(--lcd); color: var(--lcd-ink); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 3px #11160f;
  transition: background 0.2s;
}
.c3-lcd.off { background: #8f9a80; }
.c3-ann { position: absolute; left: 9px; top: 5px; font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 0.7rem; opacity: 0.75; }
.c3-read { position: absolute; right: 10px; bottom: 6px; display: flex; align-items: baseline; gap: 5px; }
.c3-dig { font-family: var(--f-mono); font-weight: 700; font-size: 2.3rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.c3-unit { font-family: var(--f-mono); font-weight: 700; font-size: 1rem; }
.c3-dial { position: relative; height: 128px; }
.c3-knob {
  position: absolute; left: 50%; top: 60%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4a524d, #1a1f1c 70%); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #0e1210;
  transition: transform 0.35s cubic-bezier(.3, 1.4, .5, 1);
}
.c3-knob i { position: absolute; left: 50%; top: 5px; width: 6px; height: 28px; margin-left: -3px; border-radius: 3px; background: var(--silk); }
.c3-mode {
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  border: 0; background: transparent; cursor: pointer; padding: 2px 6px; border-radius: 5px;
  font-family: var(--f-display); font-weight: 700; font-stretch: 90%; font-size: 0.84rem; color: var(--silk-2);
}
.c3-mode:hover { color: var(--copper-2); }
.c3-mode.on { color: var(--mask); background: var(--copper-2); }
.c3-jacks { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.c3-jack { display: flex; align-items: center; gap: 6px; width: 100%; font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 0.7rem; color: var(--silk-2); }
.c3-jack i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #050605 0 5px, #7a2030 5.5px 8px, #2c3330 8.5px); }
.c3-jack.com i { background: radial-gradient(circle, #050605 0 5px, #3b403d 5.5px 8px, #2c3330 8.5px); }
.c3-jack.plug i { background: radial-gradient(circle, #ff4f6a 0 8px, #2c3330 8.5px); box-shadow: 0 0 10px rgba(255, 79, 106, 0.55); }
.c3-jack.com.plug i { background: radial-gradient(circle, #0b0d0c 0 8px, #c2c9bb 8.5px 10px, #2c3330 10.5px); box-shadow: none; }
.c3-fusetag { font-family: var(--f-display); font-stretch: 85%; font-size: 0.62rem; line-height: 1.1; color: var(--muted); text-align: center; }
.c3-fusetag.blown { color: var(--heat); font-weight: 700; }
.c3-msg { flex: 1 1 260px; margin: 0; font-size: 0.86rem; line-height: 1.4; }
.seg.c3-wrapseg { flex-wrap: wrap; }

@media (max-width: 860px) {
  .c3-sp-split, .c3-div-split, .c3-kcl-split, .c3-kvl-split { grid-template-rows: minmax(250px, 1fr) auto; }
  .c3-sp-bottom, .c3-div-bottom, .c3-kvl-bottom, .c3-thev { grid-template-columns: 1fr; }
  .c3-div-bottom > .pane, .c3-kvl-bottom > .pane { min-height: 190px; }
  .c3-thev .pane { min-height: 180px; }
  .c3-mm-split { grid-template-rows: minmax(240px, 1fr) auto; }
  .c3-dmm-face { grid-template-columns: 1fr 64px; grid-template-areas: "lcd lcd" "dial jacks"; width: min(330px, calc(100vw - 72px)); box-sizing: border-box; }
  .c3-lcd { grid-area: lcd; }
  .c3-dial { grid-area: dial; }
  .c3-jacks { grid-area: jacks; }
}
