.ks-graph { width:100%; max-height:650px; overflow:auto; scrollbar-gutter:stable; }
.ks-graph svg { display:block; width:100%; height:auto; min-height:200px; }
.ks-graph [role=button] { cursor:pointer; }
.ks-graph [role=button]:focus { outline:2px solid #20584a; outline-offset:3px; }
.ks-graph-subset { font-size:14px; line-height:1.65; margin:14px 0 0; color:#53665a; }
.study-graph-heading { display:flex; gap:18px; justify-content:space-between; align-items:flex-start; margin-bottom:20px; }
.study-graph-heading h3 { margin:0 0 6px; font-size:24px; }
.study-graph-heading p { margin:0; font-size:16px; line-height:1.65; color:#52675c; }
.study-graph-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:22px 0; }
.study-graph-controls label { display:flex; flex-direction:column; gap:8px; font-size:15px; font-weight:600; }
.study-graph-controls .study-graph-group { grid-column:1/-1; }
.study-graph-meta { font-size:15px; line-height:1.65; margin:18px 0; }
.study-graph-meta p { margin:8px 0; }
.study-graph-legend { display:flex; flex-wrap:wrap; gap:18px; font-size:14px; margin:14px 0; }
.study-graph-legend span::before { content:''; display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--graph-color); margin-right:7px; }
.reusable-study .study-chart-panel { background:#fff; padding:28px; }
.reusable-study .study-chart-panel [hidden] { display:none!important; }
.study-graph-display { scroll-margin-top:110px; }
@media(max-width:600px) {
  .study-graph-heading { flex-direction:column; }
  .study-graph-controls { grid-template-columns:1fr; }
  .reusable-study .study-chart-panel { padding:16px; }
}

.chart-wrapper.ks-graph svg {height:auto;max-width:100%;overflow:visible;}

.ks-graph svg {stroke:none;stroke-width:1;}

.study-graph-legend .graph-reported {--graph-color:#20584a;}
.study-graph-legend .graph-qualified {--graph-color:#a47838;}
.study-graph-legend .graph-estimate {--graph-color:#416d91;}
