.roic-table :is(th, td) {
  position: static;
  padding: 10px;
  vertical-align: top;
}
.roic-table :is(th, td):not(:first-child) {
  text-align: right;
  white-space: nowrap;
}
.roic-table tbody th {
  background: transparent;
  color: var(--ink);
  font-size: inherit;
}
.roic-table small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.roic-company { border-top: 1px solid var(--line); }
.roic-company:last-of-type { border-bottom: 1px solid var(--line); }
.roic-company summary {
  padding: 12px 0;
  min-height: 44px;
  cursor: pointer;
  font-weight: 650;
}
.roic-summary-line { display: inline-flex; width: calc(100% - 18px); justify-content: space-between; gap: 8px; }
.roic-summary-line strong { font-variant-numeric: tabular-nums; }
.roic-confidence { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 400; }
.roic-company summary small { margin-inline-start: 6px; color: var(--muted); font-weight: 400; }
.roic-breakdown { padding: 0 0 12px; }
.roic-breakdown h3 { scroll-margin-top: 100px; }
#method-choices { scroll-margin-top: 100px; }
.roic-intro-formula { margin-block: 18px; scroll-margin-top: 100px; }
.roic-equation {
  display: grid;
  grid-template-columns: 3.5em minmax(0, auto) max-content;
  align-items: center;
  justify-content: start;
  gap: 8px;
  margin-block: 12px;
}
.roic-equation > strong { text-align: right; }
.roic-fraction { display: grid; text-align: center; }
.roic-fraction > span { padding: 3px 6px; text-wrap: balance; }
.roic-fraction > span + span { border-top: 1px solid currentColor; }
.roic-formulas h4[id] { scroll-margin-top: 100px; }
.roic-formula-method {
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.roic-formula-method h5 { margin: 0; font-size: 1em; }
.roic-formula-method dl { margin: 10px 0; }
.roic-formula-method dt { margin-top: 6px; font-weight: 650; }
.roic-formula-method dd { margin: 0; }
.roic-formula-method p { margin-bottom: 0; }
.roic-formula-adjustment {
  color: var(--roic-color);
  text-decoration: underline dotted;
  text-underline-offset: 0.18em;
}
.roic-sensitivity { border-top: 1px solid var(--line); padding-top: 12px; }
.roic-sensitivity span { display: block; }
.roic-choices small { margin-top: 4px; }
.roic-review-list li + li { margin-top: 6px; }
.roic-audit { margin-top: 16px; }
.roic-audit summary { cursor: pointer; }
.roic-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; }
.roic-method-filing { --roic-color: var(--muted); --roic-style: dashed; --roic-dash: 4 4; }
.roic-method-operating { --roic-color: var(--chart-primary); --roic-style: solid; }
.roic-method-rnd { --roic-color: var(--chart-dividend); --roic-style: dashed; --roic-dash: 8 3; }
.roic-method-lease { --roic-color: var(--chart-reference); --roic-style: dotted; --roic-dash: 2 3; }
.roic-method-capital-share { --roic-color: var(--chart-revenue); --roic-style: dashed; --roic-dash: 6 3; }
.roic-method-investment-return { --roic-color: var(--chart-reference); --roic-style: dotted; --roic-dash: 2 3; }
.roic-swatch::before {
  content: "";
  display: inline-block;
  width: 18px;
  margin: 0 7px 3px 0;
  border-top: 2px var(--roic-style) var(--roic-color);
}
.roic-chart-toggle { margin: 0 4px 0 0; vertical-align: middle; }
.roic-chart-toggle + label { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.roic-chart-toggle + label::before { margin-bottom: 0; }
.roic-chart-expanded,
.roic-chart-toggle:checked ~ .roic-chart-main { display: none; }
.roic-chart-toggle:checked ~ .roic-chart-expanded { display: block; }
.roic-plot { display: block; width: 100%; }
.roic-plot-compact { display: none; }
.roic-plot text { fill: var(--muted); font-size: 12px; }
.roic-grid { stroke: var(--chart-grid); }
.roic-line { fill: none; stroke: var(--roic-color); stroke-width: 1.7; stroke-dasharray: var(--roic-dash, none); }
.roic-figure { margin: 0; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.roic-figure .roic-line { stroke-width: 2; }
.roic-figure .roic-legend { margin: 0; gap: 4px 12px; }
.roic-figure .roic-legend i { width: 18px; height: 0; background: none; border-top: 2px var(--roic-style) var(--roic-color); }
.roic-figure #roic-range-chart { display: block; touch-action: none; }
.roic-figure .roic-guide { opacity: 0; stroke: var(--muted); stroke-dasharray: 3 3; pointer-events: none; }
.roic-figure .roic-active-point .roic-guide { opacity: 1; }
.roic-figure .roic-tooltip { z-index: 5; }
.roic-figure .roic-year-point:focus { outline: none; }
.roic-figure .roic-year-point:focus-visible .roic-hit { stroke: var(--accent); stroke-width: 1; }
.roic-dot { fill: var(--roic-color); }
.roic-hit { fill: transparent; }
.roic-plot :is(a, .roic-year-point):is(:hover, :focus-visible, .roic-active-point) .roic-hit { fill: var(--accent-soft); opacity: .65; }
.roic-figure .roic-plot .roic-year-point:is(:hover, :focus-visible, .roic-active-point) .roic-hit { fill: transparent; }
.roic-plot :is(a, .roic-year-point):is(:hover, :focus-visible, .roic-active-point) .roic-dot { stroke: var(--ink); stroke-width: 2; }
[data-roic-hover] { position: relative; }
.roic-year-point { cursor: pointer; }
.roic-tooltip {
  position: absolute;
  top: 8px;
  padding: 8px 10px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 12px;
  pointer-events: none;
}
.roic-tooltip dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  margin: 4px 0 0;
}
.roic-tooltip dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.roic-trial-operating > section { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.roic-trial-operating > .roic-history-chart { margin-top: 0; border-top: 0; padding-top: 0; }
.roic-trial-operating > .nv-roic-chart { border-top: 0; padding-top: 0; }
.nv-equation-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 20px; }
.nv-equation-step { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.nv-equation-step > strong { flex-shrink: 0; }
.nv-equation-step:last-child { flex: 1 1 460px; }
.nv-equation-step .roic-fraction { min-width: 0; }
.roic-method-treasury { --roic-color: var(--chart-primary); --roic-style: solid; }
.roic-method-equity { --roic-color: var(--chart-reference); --roic-style: dashed; --roic-dash: 6 3; }
.nv-table-scroll { max-width: 100%; overflow-x: auto; margin-block: 12px; }
.nv-table-scroll:focus-visible { outline: 2px solid var(--accent); }
.nv-table-scroll th:first-child { min-width: 130px; }
.roic-trial-operating .roic-audit summary { min-height: 44px; padding-block: 10px; }
.roic-trial-operating .roic-company { scroll-margin-top: 100px; }
@media (max-width: 600px) {
  .roic-plot { display: none; }
  .roic-plot-compact { display: block; }
}
@media (max-width: 480px) {
  .roic-trial { padding: 16px; }
  .roic-table :is(th, td) { padding: 8px 5px; }
}
