/* Physics 11 pictures (resources/shared/phys.js): graphs, free-body diagrams, waves, and circuits. */
.ph-axl { fill: var(--ink); font-size: 11px; font-weight: 600; text-anchor: middle; }
.ph-area { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke: none; }
.ph-box { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--ink); stroke-width: 1.8; }
.ph-m { fill: var(--ink); font-size: 12px; font-weight: 700; text-anchor: middle; }
.ph-ground { stroke: var(--muted); stroke-width: 2; }
.ph-f { stroke: var(--accent); stroke-width: 2.6; }
.ph-fh { fill: var(--accent); }
.ph-fl { fill: var(--ink); font-size: 12px; font-weight: 600; }
.ph-coil { stroke: var(--ink); stroke-width: 1.4; }
.ph-mark { fill: color-mix(in srgb, #4b8fd1 25%, transparent); stroke: #4b8fd1; stroke-width: 2; }
.ph-markl { fill: none; stroke: #4b8fd1; stroke-width: 2.4; }
.ph-wire { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.ph-batt { stroke: var(--ink); stroke-width: 3; }
.ph-dir { fill: var(--ink); font-size: 13px; font-weight: 700; text-anchor: middle; }
.ph-fig { fill: none; stroke: var(--ink); stroke-width: 2; }
.ph-acc { fill: none; stroke: var(--accent); stroke-width: 2.4; }
/* Nuclide notation: mass number over atomic number, left of the symbol */
.nuc { display: inline-flex; align-items: center; white-space: nowrap; }
.nuc-n { display: inline-flex; flex-direction: column; align-items: flex-end; font-size: .62em; line-height: 1.05; margin-right: .08em; }
.nuc-n sup, .nuc-n sub { vertical-align: baseline; font-size: 1em; line-height: 1.05; }
/* Labelled answer rows (multiQ): each <br> in a template starts a new row */
.mp-ans .ph-br { flex-basis: 100%; height: 0; }
.mp-ans:has(.ph-br) { font-size: 1.35rem; row-gap: 6px; }
/* "Use g = …" note, the estimate banner, and the built-in calculator (Phys.setup) */
.ph-gnote { color: var(--muted); margin-top: 6px; }
.ph-est { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); }
.ph-calc-wrap { margin-top: 10px; text-align: left; }
.ph-calc-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: transparent; border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.ph-calc-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ph-calc-btn svg circle { fill: currentColor; stroke: none; }
.ph-calc-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ph-calc { margin-top: 8px; max-width: 340px; border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 12px; padding: 8px; }
.ph-calc[hidden] { display: none; }
.ph-cdisp { background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; text-align: right; min-height: 52px; }
.ph-cexp { font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; min-height: 1.2em; }
.ph-cres { font-size: 1.3rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ph-ckeys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.ph-ck { font: inherit; font-size: .92rem; padding: 8px 0; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); cursor: pointer; touch-action: manipulation; }
.ph-ck.num { background: transparent; font-weight: 600; }
.ph-ck.eq { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-color: transparent; }
.ph-ck:active { transform: translateY(1px); }
