/* punnett-genetics — scoped styles */
.pg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pg-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 3px 4px; text-align: end; }
.pg-table th:first-child, .pg-table td:first-child { text-align: start; }
.pg-table td { padding: 4px; border-top: 1px solid var(--line); color: var(--ink-2); text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-table td:first-child { white-space: normal; }
.pg-table tbody tr { cursor: pointer; }
.pg-table tbody tr:hover td { background: var(--surface-2); }
.pg-table tr.sel td { background: var(--subject-soft); color: var(--ink); font-weight: 600; }
.pg-table .pg-geno { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 14.5px; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.pg-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pg-chart { position: relative; height: 190px; }
.pg-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* let long hints wrap on narrow screens */
.sim-stage .stage-hint { white-space: normal; width: max-content; max-width: calc(100% - 24px); text-align: center; }
