/* Research question tree (widgets/qtree/qtree.js) */
.qt3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 22px; padding: 18px 26px 18px 18px; }
.qt3__map { position: relative; aspect-ratio: 1; width: min(100%, calc(100cqh - 36px)); justify-self: center; align-self: center; }
.qt3__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.qt3__lines line { stroke: var(--a-line); stroke-width: .5; vector-effect: non-scaling-stroke; transition: stroke .3s ease; }
.qt3__lines line.is-on { stroke: var(--a-teal); stroke-width: 2; }
.qt3__ring { fill: none; stroke: var(--a-line); stroke-dasharray: 1 2; vector-effect: non-scaling-stroke; }
.qt3__core { position: absolute; left: 50%; top: 50%; width: 40%; height: 40%; transform: translate(-50%, -50%); display: grid; place-content: center; gap: 3px; padding: 5%; overflow: hidden; border-radius: 50%; background: var(--a-teal); color: #fff; text-align: center; }
.qt3__core .aha-eye { color: rgba(255,255,255,.8); font-size: 9px; }
.qt3__core p { margin: 0; font-size: clamp(8px, 2.5cqh, 12px); line-height: 1.2; font-weight: 600; }
.qt3__theme { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; width: 64px; padding: 0; border: 0; background: none; cursor: pointer; }
.qt3__theme .aha-i { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--a-card); box-shadow: inset 0 0 0 1px var(--a-line); transition: background-color .25s ease, color .25s ease; }
.qt3__theme span { font-size: 10px; line-height: 1.15; color: var(--ink-2); text-align: center; }
.qt3__theme:hover .aha-i, .qt3__theme:focus-visible .aha-i { box-shadow: inset 0 0 0 1.5px var(--ink); }
.qt3__theme:focus-visible { outline: none; }
.qt3__theme.is-on .aha-i { background: var(--ink); color: var(--bg); box-shadow: none; }
.qt3__who { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--a-surface); color: var(--muted); opacity: .45; transition: opacity .3s ease, color .3s ease, background-color .3s ease; }
.qt3__who .aha-i { width: 14px; height: 14px; }
.qt3__who.is-on { opacity: 1; color: #fff; background: var(--a-orange); }
.qt3__card { align-self: center; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qt3__card h3 { margin: 0; font-size: clamp(16px, 5.4cqh, 22px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.qt3__why { margin: 0; color: var(--ink-2); }
.qt3__subs { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.qt3__subs li { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); }
.qt3__subs li::before { content: '?'; position: absolute; left: 0; top: 0; color: var(--a-teal); font-weight: 700; }
.qt3__meth { display: flex; flex-wrap: wrap; gap: 4px; }
.qt3__m { padding: 2px 8px; border-radius: 100px; background: color-mix(in srgb, var(--a-teal) 16%, transparent); font-size: 11px; }
.qt3__risk { margin: 0; font-size: 12px; color: var(--muted); }
.qt3__risk b { color: var(--ink-2); font-weight: 600; }
/* Narrow or stacked: map on top, card under it; theme names go to the tips. */
/* Narrow frames (≤ 640px; class set by widgets/aha-kit/kit.js). */
.qt3.aha--w640 { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 14px; }
.aha--w640 .qt3__map { width: min(100%, 52cqh); }
.aha--w640 .qt3__theme span { display: none; }
.aha--w640 .qt3__theme { width: auto; }
.aha--w640 .qt3__core p { font-size: 9.5px; }
.aha--w640 .qt3__core .aha-eye { font-size: 7.5px; }
/* Stacked: the map sizes from the width. */
.is-vertical .qt3 { grid-template-rows: auto auto; }
.is-vertical .qt3__map { width: min(100%, 360px); }
.is-vertical .qt3:not(.aha--w640) .qt3__map { width: 100%; }
