.research-chart {
  --rc-ink: #20262b;
  --rc-muted: #53616b;
  --rc-rule: #c9d1d6;
  color: var(--rc-ink);
  border-top: 1px solid var(--rc-rule);
  margin-top: clamp(30px, 5vw, 64px);
  padding-block: clamp(28px, 4vw, 52px) .5rem;
  min-width: 0;
}
.research-chart .rc-head { background: none; position: static; border: 0; padding: 0; }
.research-chart .rc-kicker { font: 700 .73rem/1.5 ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; color: #3f4549; margin: 0 0 .7rem; }
.research-chart h2 { color: var(--rc-ink); font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.1; margin: 0; }
.research-chart .rc-head > p:last-child { color: var(--rc-muted); font-size: 1.01rem; line-height: 1.6; max-width: 74ch; margin: .85rem 0 1.5rem; }
.research-chart .rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.case-time .ct-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--rc-rule); }
.case-time .ct-measure { font-weight: 650; font-size: .9rem; margin: 0; }
.case-time .ct-switch { display: none; border: 1px solid #929da4; border-radius: 4px; padding: 2px; margin: 0; min-width: 0; }
.case-time .ct-switch input { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
.case-time .ct-switch label { cursor: pointer; font-weight: 650; font-size: .85rem; line-height: 1.4; padding: .4rem .85rem; border-radius: 2px; }
.case-time .ct-switch input:checked + label { background: var(--blue); color: var(--rc-ink); }
.case-time .ct-switch input:focus-visible + label, .research-chart :is(summary,a,[tabindex]):focus-visible { outline: 2px solid var(--rc-ink); outline-offset: 3px; }
.case-time .ct-share { display: none; }
.case-time .ct-key { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 1rem 0 1.2rem; gap: .4rem 1rem; }
.case-time .ct-key li { display: inline-flex; align-items: center; gap: .4rem; font-size: .81rem; font-weight: 600; }
.case-time .ct-key i { width: .9rem; height: .9rem; border: 1px solid #0003; }
/* Each pair refers to the same topic in the annual stack and the year detail. */
.case-time .research-swatch-0, .case-topics [data-topic-index="0"] { --subject-fill: #5689a5; } /* Pooling */
.case-time .research-swatch-1, .case-topics [data-topic-index="1"] { --subject-fill: #81954c; } /* Spacing & well density */
.case-time .research-swatch-2, .case-topics [data-topic-index="2"] { --subject-fill: #b67647; } /* Flaring & gas */
.case-time .research-swatch-3, .case-topics [data-topic-index="3"] { --subject-fill: #40867f; } /* Injection & storage */
.case-time .research-swatch-4, .case-topics [data-topic-index="4"] { --subject-fill: #88759d; } /* Facilities & commingling */
.case-time .research-swatch-5, .case-topics [data-topic-index="5"] { --subject-fill: #68747d; } /* Other topics */
.case-time .research-swatch-6, .case-topics [data-topic-index="6"] { --subject-fill: radial-gradient(#6e7880 1px, transparent 1.2px) 0 0/4px 4px, #f2f4f5; } /* Details pending */
.case-time .research-swatch { background: var(--subject-fill); }
.case-time .ct-graphic { display: grid; grid-template-columns: 3.2rem minmax(0,1fr); gap: .5rem; margin: 1.25rem 0 2.25rem; }
.case-time .ct-axis { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font: 500 .73rem/1 ui-monospace,Consolas,monospace; color: var(--rc-muted); }
.case-time .ct-axis b { font-weight: inherit; }
.case-time .ct-bars { height: 13rem; display: grid; grid-template-columns: repeat(18,minmax(0,1fr)); background: linear-gradient(to top,var(--rc-rule) 1px, transparent 1px) top/100% 50%; border-top: 1px solid var(--rc-rule); }
.case-time .ct-col { position: relative; height: 100%; min-width: 0; }
.case-time .ct-stack { position: absolute; left: 15%; right: 15%; bottom: 0; height: var(--count-height); display: flex; flex-direction: column-reverse; }
.case-time .ct-stack > span { display: block; height: var(--share); flex: none; }
.case-time .ct-year { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: .4rem; font: 500 .7rem/1 ui-monospace,Consolas,monospace; color: var(--rc-muted); }
@supports selector(:has(*)) {
  .case-time .ct-switch { display: inline-flex; }
  .case-time:has(#ct-share:checked) .ct-share { display: inline; }
  .case-time:has(#ct-share:checked) .ct-count { display: none; }
  .case-time:has(#ct-share:checked) .ct-stack { height: 100%; }
}
.research-chart .rc-note, .research-chart .rc-details p, .research-chart .ps-evidence { color: var(--rc-muted); font-size: .87rem; line-height: 1.55; max-width: 100ch; }
.research-chart .rc-details { margin: .8rem 0 0; padding: 0; background: transparent; border: 0; }
.research-chart .rc-details summary { width: fit-content; cursor: pointer; color: var(--rc-ink); font-weight: 650; font-size: .92rem; }
.research-chart .rc-details p, .research-chart .ps-evidence { margin: .7rem 0; }
.research-chart .ps-evidence { padding-left: 1.2rem; }
.research-chart .ps-evidence li + li { margin-top: .35rem; }
.research-chart .rc-details a { text-decoration: underline; }
.research-chart .rc-table-scroll { max-width: 100%; margin-top: .8rem; overflow-x: auto; }
.research-chart table { width: 100%; border-collapse: collapse; font-size: .87rem; font-variant-numeric: tabular-nums; }
.research-chart table caption { text-align: left; padding: .3rem 0 .6rem; color: var(--rc-muted); }
.research-chart td, .research-chart th { text-align: right; padding: .46rem .6rem; line-height: 1.4; border-bottom: 1px solid var(--rc-rule); }
.research-chart th:first-child { text-align: left; padding-left: 0; }
.research-chart thead th { font-weight: 650; color: var(--rc-muted); font-size: .8rem; }
.case-time .rc-table-scroll table { min-width: 48rem; }
.pool-size table { margin: 1.2rem 0 .9rem; }
.pool-size tr > :first-child { width: 19%; }
.pool-size tr > :nth-child(2) { width: 55%; padding: 0; }
.pool-size .ps-scale { position: relative; height: 1.6rem; }
.pool-size .ps-scale span { position: absolute; left: 0; bottom: .46rem; }
.pool-size .ps-scale span:nth-child(2) { left: 50%; transform: translateX(-50%); }
.pool-size .ps-scale span:last-child { left: auto; right: 0; }
.pool-size tbody td:nth-child(2) { background: linear-gradient(to right,var(--rc-rule) 1px,transparent 1px) top/50% 100%; }
.pool-size .ps-bar { display: block; height: .76rem; background: #5689a5; }
.pool-size tbody tr:is(:nth-child(3),:nth-child(4)) .ps-bar { background: #355f78; }
.pool-size tbody tr > :nth-child(3) { font-weight: 700; }
@media(max-width: 840px) {
  .case-time .ct-graphic { display: flex; flex-direction: column; gap: .35rem; margin: 1.2rem 0 .9rem; }
  .case-time .ct-axis { flex-direction: row-reverse; margin-left: 3.1rem; }
  .case-time .ct-bars { height: auto; border: 0; display: grid; grid-template-columns: 1fr; gap: .35rem; background: none; }
  .case-time .ct-col { margin-left: 3.1rem; height: .93rem; background: linear-gradient(to right,var(--rc-rule) 1px,transparent 1px) top/50% 100%; }
  .case-time .ct-stack { flex-direction: row; height: 100%; width: var(--count-height); left: 0; right: auto; }
  .case-time .ct-stack > span { width: var(--share); height: 100%; }
  .case-time .ct-year { left: -.6rem; top: 50%; transform: translate(-100%,-50%); padding: 0; }
  .case-time:has(#ct-share:checked) .ct-stack { width: 100%; }
}
@media(max-width: 420px) {
  .research-chart td, .research-chart th { padding: .4rem .3rem; }
  .pool-size .ps-scale span:nth-child(2) { display: none; }
  .research-chart h2 { font-size: 1.8rem; }
}
@media(forced-colors: active) {
  .case-time .ct-stack, .case-time .ct-key i, .pool-size .ps-bar { forced-color-adjust: none; }
}
