/* Investigative genetic genealogy lesson. All rules scoped under .igg-* */
.igg-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.igg-note { font-size: 12px; color: var(--faint); text-align: center; }
.igg-hero img { display: block; width: 260px; max-width: 100%; max-height: 34vh; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(123, 92, 253, .35)); }

.igg-bars { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.igg-bar { display: grid; grid-template-columns: 92px 1fr 72px; align-items: center; gap: 10px; font: 600 14px/1.2 var(--sans); color: var(--text); }
.igg-bt { height: 14px; border-radius: 7px; background: rgba(234, 227, 215, .08); overflow: hidden; }
.igg-bt i { display: block; height: 100%; border-radius: 7px; background: var(--violet-bright); }
.igg-bar.q .igg-bt i { background: var(--gold); }
.igg-bar.q { color: var(--gold); }
.igg-bv { color: var(--dim); font-weight: 500; font-size: 13px; }

.igg-tree { width: 100%; max-width: 360px; }
.igg-lines { display: block; width: 100%; height: auto; }
.igg-lines path { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.igg-anc { fill: var(--raised); stroke: var(--gold); stroke-width: 1.5; }
.igg-at { fill: var(--text); font: 600 13px var(--sans); text-anchor: middle; }
.igg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); gap: 8px 6px; }
.igg-p { position: relative; min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 12px/1.2 var(--sans); text-align: center; cursor: pointer; transition: opacity .25s, border-color .25s; }
.igg-p b { font-size: 14px; font-weight: 700; }
.igg-p span { color: var(--dim); }
.igg-p em { font-style: normal; font-weight: 700; color: var(--gold); }
.igg-p.match { border-color: var(--gold); }
.igg-p.out { opacity: .28; }
.igg-p.out::after { content: ''; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: var(--red); transform: rotate(-24deg); }
.igg-p.match.out::after { display: none; }
.igg-p.him { border-color: var(--mint); box-shadow: 0 0 0 2px var(--mint); }

@media (max-height: 700px) {
  .igg-hero img { max-height: 150px; }
  .igg-p { min-height: 62px; padding: 4px 2px; }
}
