/* Shared pieces for the AP Research and IEEE study pages. */
:root{--edu:#006b70;--dis:#092c36;--hot:#a64217}
.study-scatter{width:100%;height:auto;display:block;overflow:visible}
.study-scatter .grid line{stroke:#e1e9ea}
.study-scatter .axis{stroke:#94acb2}
.study-scatter .trend{stroke:var(--hot);stroke-width:2;stroke-dasharray:6 5;transition:all .5s ease}
.study-scatter .dot{cursor:pointer;transition:cx .6s cubic-bezier(.2,.8,.2,1),cy .6s cubic-bezier(.2,.8,.2,1),r .2s,fill .2s}
.study-scatter .dot{fill:var(--dis);stroke:white;stroke-width:2}
.study-scatter .dot.on{fill:var(--hot);r:11}
.study-scatter .dot:focus-visible{outline:none;stroke:#bb470d;stroke-width:4}
.study-scatter .lbl{font:600 13px system-ui;fill:var(--ink);transition:x .6s cubic-bezier(.2,.8,.2,1),y .6s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.study-scatter .r-badge{font:600 14px ui-monospace,monospace;fill:var(--hot)}
.tenet-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.tenet-head{font-size:1rem;letter-spacing:0;margin:.5rem 0 .75rem;padding-left:.6rem;border-left:4px solid}
.tenet-head.edu{border-color:var(--edu)}.tenet-head.dis{border-color:var(--dis)}
.tenet{display:grid;grid-template-columns:minmax(0,1.3fr) 1fr 1.5rem;gap:.6rem;align-items:center;font-size:.875rem;margin:.35rem 0}
.pips{display:grid;grid-template-columns:repeat(5,1fr);gap:3px}
.pips i{height:12px;background:#e5edee;transition:background .3s}
.pips.edu i.f{background:var(--edu)}.pips.dis i.f{background:var(--dis)}
.tenet b{font-variant-numeric:tabular-nums;text-align:right}
.sim-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center}
.sim-grid input[type=range]{padding:0;border:0;background:none;accent-color:var(--teal);margin-bottom:1rem}
.sim-grid output{font:600 1rem ui-monospace,monospace;color:var(--teal);float:right}
.balance-beam{position:relative;height:110px;margin-top:.5rem}
.beam{position:absolute;left:8%;right:8%;top:40px;height:6px;background:var(--ink);border-radius:3px;transition:transform .5s cubic-bezier(.3,1.4,.5,1);transform-origin:50% 50%}
.pan{position:absolute;top:-34px;font:600 .78rem system-ui;color:white;padding:.25rem .6rem;border-radius:2px}
.pan.edu{left:0;background:var(--edu)}.pan.dis{right:0;background:var(--dis)}
.fulcrum{position:absolute;left:50%;top:46px;width:0;height:0;border-left:22px solid transparent;border-right:22px solid transparent;border-bottom:38px solid #7c969d;transform:translateX(-50%)}
.gauge{font:700 3.2rem/1 ui-monospace,monospace;letter-spacing:-.04em;color:var(--ink)}
.gauge small{font-size:1rem;color:var(--muted);font-weight:500}
.delta{display:inline-block;margin-top:.5rem;font:600 .95rem ui-monospace,monospace;padding:.2rem .5rem}
.delta.good{background:#dff3e4;color:#11622a}.delta.bad{background:#f8ede7;color:var(--hot)}
.rank-strip{display:flex;gap:4px;margin-top:1.2rem;align-items:flex-end;height:70px}
.rank-strip div{flex:1;background:#c6d6d9;position:relative;transition:height .4s}
.rank-strip div.you{background:var(--hot)}
.rank-strip span{position:absolute;bottom:-1.4rem;left:0;right:0;text-align:center;font:.7rem ui-monospace,monospace;color:var(--muted)}
.chip-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem}
.chip{min-height:38px;padding:.4rem .9rem;background:white;color:var(--ink);border:1px solid #7c969d;border-radius:999px;font-size:.9rem}
.chip:hover{background:#e3ecee}.chip[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}
@media(max-width:780px){.tenet-grid,.sim-grid{grid-template-columns:1fr}.gauge{font-size:2.5rem}}
.embedded-chart .study-only{display:none!important}
.embedded-chart .study-scatter .lbl{font-size:15px}
/* Retinopathy leakage study */
.acc .bar{cursor:pointer}.acc .bar rect{transition:y .5s cubic-bezier(.2,.8,.2,1),height .5s cubic-bezier(.2,.8,.2,1),opacity .2s}
.acc .bar.A rect{fill:var(--dis)}.acc .bar.B rect{fill:#5fb4b1}
.acc .bar:not(.on) rect{opacity:.45}.acc .bar.on rect{stroke:var(--hot);stroke-width:3}
.acc .bar:focus-visible{outline:none}.acc .bar:focus-visible rect{stroke:#bb470d;stroke-width:4}
.eye-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem;align-items:center}
#eyes{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;max-width:360px}
#eyes i{aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--ink) 0 22%,#5fb4b1 23% 60%,#e3ecee 61%);transition:transform .35s,background .35s}
#eyes i.miss{background:radial-gradient(circle at 50% 50%,#3b1205 0 22%,var(--hot) 23% 60%,#f8ede7 61%);transform:scale(1.18)}
#dots{display:block;margin:1rem 0 .5rem}
.split-result{flex:1;min-width:220px;font-size:1rem}.split-result strong{font:700 1.6rem ui-monospace,monospace;color:var(--hot)}
.legend span{display:inline-flex;align-items:center;font-size:.85rem;color:var(--muted)}
table.coding td,table.coding th{white-space:normal;transition:opacity .2s,background .2s}
table.coding td.risk{color:var(--hot);font-weight:650;background:#fbf1eb}
table.coding td.ok{color:var(--muted)}
table.coding tr.dim{opacity:.35}table.coding tr.flag th{color:var(--hot)}
table.coding .hl{box-shadow:inset 0 0 0 2px var(--hot)}
@media(max-width:780px){.eye-wrap{grid-template-columns:1fr}}
