/* Shared OSRS/GW2 chart grammar: numerical GP axes, inspector slider and modal. */
.gh-research-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(96vw,820px);max-width:960px;max-height:calc(100dvh - 16px);margin:auto;padding:clamp(14px,3vw,24px);border:1px solid #607b65;border-radius:18px;background:#0e1d15;color:#f5f1e5;box-shadow:0 20px 80px #000b;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;font:15px/1.5 system-ui,-apple-system,sans-serif}
.gh-research-dialog *{box-sizing:border-box}
.gh-research-dialog:not([open]){display:none!important}
.gh-research-dialog::backdrop{background:#000c;backdrop-filter:blur(3px)}
.gh-research-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:6px}
.gh-research-head>div{min-width:0}
.gh-research-kicker{font-weight:800;letter-spacing:.14em;font-size:11px;color:#e5c889}
.gh-research-head h2{font:800 clamp(22px,5vw,32px)/1.2 system-ui,sans-serif;margin:8px 0 0;overflow-wrap:anywhere}
.gh-research-close{flex:none;width:50px;height:52px;border:1px solid #5a745c;border-radius:13px;background:#2b4434;color:#fff;font-size:30px;cursor:pointer}
.gh-research-icon{margin:10px 0 12px;width:50px;height:50px;border:1px solid #66785c;border-radius:11px;background:#2a3a2d;display:grid;place-items:center;color:#e3c98f;font-size:23px;overflow:hidden}
.gh-research-icon img{width:100%;height:100%;object-fit:contain;image-rendering:auto}
.gh-research-ranges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 16px}
.gh-research-ranges button{min-width:0;min-height:44px;padding:9px 6px;background:#2b4432;color:#f1eee0;border:1px solid #678063;border-radius:11px;font-size:14px;font-weight:700}
.gh-research-ranges button.is-selected{background:#e9c887;color:#172919;border-color:#efd7a8}
.gh-research-note,.gh-research-foot{color:#bacaba;font-size:12px;line-height:1.55}
.gh-research-legend{display:flex;gap:9px 18px;flex-wrap:wrap;margin:12px 0;font-size:13px;color:#e2ebdb}
.gh-research-legend>span{display:flex;align-items:center;gap:8px}
.gh-line-key{display:inline-block;width:25px;height:4px;border-radius:5px}
.gh-line-key.low{background:#75d4b1}.gh-line-key.high{background:#eccc7c}
.gh-research-plot{background:#091a11;border:1px solid #425c49;border-radius:14px;padding:10px 5px;overflow:hidden}
.gh-research-plot svg{display:block;width:100%;height:auto;min-height:235px;touch-action:none;cursor:crosshair;user-select:none}
.gh-research-plot svg text{font-family:system-ui,-apple-system,sans-serif;font-variant-numeric:tabular-nums}
.gh-research-empty{padding:60px 12px;color:#ccd4c5;text-align:center}
.gh-research-inspect{display:block;margin:17px 2px 10px;font-size:16px;color:#e8eadc}
.gh-research-slider{appearance:none;-webkit-appearance:none;width:100%;height:11px;margin:14px 0 25px;background:#52624b;border:0;border-radius:8px;accent-color:#e8c780;cursor:pointer}
.gh-research-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:29px;height:29px;background:#e8c780;border:3px solid #102017;border-radius:50%;box-shadow:0 0 0 1px #e8c780}
.gh-research-slider::-moz-range-thumb{width:25px;height:25px;background:#e8c780;border:3px solid #102017;border-radius:50%}
.gh-research-selected{margin-top:2px;padding:17px;border:1px solid #54735a;border-radius:14px;background:#233b2d;min-height:150px}
.gh-research-selected h3{margin:0 0 13px;font-size:18px}
.gh-research-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gh-research-value{display:flex;flex-direction:column;gap:4px;min-width:0}
.gh-research-value span{font-size:12px;color:#c5d6c7}.gh-research-value strong{font-size:clamp(15px,4vw,21px);font-weight:800;overflow-wrap:anywhere}
.gh-research-value.low strong{color:#7ad9b6}.gh-research-value.high strong{color:#f1ce87}
.gh-research-volume{font-size:12px;color:#d5e0ce;margin:13px 0 0}
.gh-research-foot{margin:13px 2px 0}
.gh-research-dialog button:focus-visible,.gh-research-slider:focus-visible{outline:3px solid #f2dca4;outline-offset:3px}
@media(max-width:450px){.gh-research-dialog{width:100vw;max-height:calc(100dvh - 4px);border-radius:8px;padding:14px 12px}.gh-research-ranges{gap:5px}.gh-research-ranges button{font-size:12px;padding:8px 4px}.gh-research-head h2{font-size:24px}.gh-research-selected{padding:13px}.gh-research-value strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.gh-research-dialog *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Period extrema are anchored to the visible chart viewport, not the whole archive. */
.gh-range-summary{margin:14px 0;padding:15px;background:#223a2c;border:1px solid #62775d;border-radius:13px}
.gh-range-summary h3{margin:0 0 12px;color:#eacf97;font-size:15px}
.gh-range-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gh-range-metric{display:flex;flex-direction:column;gap:7px;min-width:0}
.gh-range-metric span{font-size:12px;line-height:1.4;color:#d3dfd0}
.gh-range-metric strong{font-size:clamp(15px,4vw,20px);font-weight:800;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.gh-range-metric.low strong{color:#7cd8b6}.gh-range-metric.high strong{color:#edce8b}
.gh-range-metric small{font-size:11px;color:#bdcfbf}
.gh-range-caveat{margin:12px 0 0;font-size:11px;color:#b9d0be;line-height:1.55}
.gh-research-ranges{grid-template-columns:repeat(3,minmax(0,1fr))}
