/* Scoped active-index presentation: match paper/green fundamental-index cards. */
#compute-active { margin-top: 36px; color: #17251f; }
#compute-active p, #compute-active li, #compute-active td, #compute-active th, #compute-active small, #compute-active summary { font-size: 20px; line-height: 1.8; }
#compute-active h3 { font-size: 26px; line-height: 1.5; }
#compute-active h4 { font-size: 22px; }
#compute-active .compute-active-boundary { padding: 12px 18px; border-left: 3px solid #a35333; background: #fff3df; margin: 0 0 20px; }
#compute-active .compute-active-boundary > strong { font-size: 24px; }
#compute-active .compute-active-main { width: 100%; }
#compute-active .energy-index-nav-panel { gap: 28px; }
#compute-active .energy-index-nav-panel > p { max-width: 720px; }
#compute-active .compute-active-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
#compute-active .compute-active-metrics p { background: #edf1e9; padding: 16px; }
#compute-active .compute-active-metrics span, #compute-active .compute-active-metrics strong { display: block; }
#compute-active .compute-active-metrics strong { font-size: 28px; }
#compute-active .compute-active-chart { margin: 24px 0; }
#compute-active svg { width: 100%; height: auto; overflow: visible; }
#compute-active svg line { stroke: #abb7ae; stroke-width: 1; }
#compute-active svg polyline { stroke: #1e6552; stroke-width: 2.5; fill: none; vector-effect: non-scaling-stroke; }
#compute-active svg text { fill: #344f43; font-size: 17px; }
#compute-active figcaption { font-size: 18px; line-height: 1.7; color: #45594c; }
#compute-active .compute-active-section { margin: 28px 0; }
#compute-active .compute-active-scroll { overflow-x: auto; max-width: 100%; }
#compute-active table { width: 100%; min-width: 650px; text-align: left; }
#compute-active th, #compute-active td { padding: 14px; border-bottom: 1px solid #cbd2c8; vertical-align: top; }
#compute-active small { display: block; font-weight: 400; }
#compute-active .compute-active-detail { border: 1px solid #adb9b0; background: #fffef9; margin: 18px 0; }
#compute-active summary { cursor: pointer; padding: 18px 22px; color: #174e41; font-weight: 700; }
#compute-active .compute-active-body { padding: 0 22px 22px; overflow-wrap: anywhere; }
#compute-active .compute-active-detail .compute-active-chart { padding: 0 22px; }
#compute-active .compute-active-cn { padding: 20px 24px; background: #edf1e9; margin: 24px 0; }
#compute-active .compute-active-source { border-top: 1px solid #cbd2c8; padding-top: 18px; overflow-wrap: anywhere; }
#compute-active a { color: #174e41; text-decoration: underline; text-underline-offset: 3px; }
#compute-active :focus-visible { outline: 3px solid #99662b; outline-offset: 3px; }
@media (max-width: 760px) {
  #compute-active .compute-active-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  #compute-active .compute-active-metrics p { padding: 12px; }
  #compute-active .compute-active-metrics strong { font-size: 25px; }
  #compute-active .energy-index-nav-panel { display: block; }
  #compute-active .energy-index-card-header { flex-wrap: wrap; }
  #compute-active .compute-active-body, #compute-active summary { padding-left: 16px; padding-right: 16px; }
  #compute-active .compute-active-chart svg { min-width: 540px; }
  #compute-active .compute-active-chart { overflow-x: auto; }
}

#compute-active svg polyline.compute-active-benchmark { stroke: #a16b41; stroke-dasharray: 6 5; stroke-width: 2; }

#compute-active .compute-detail-close { display: block; width: calc(100% - 40px); margin: 16px 20px; padding: 12px 18px; border: 1px solid #174e41; background: #edf1e9; color: #174e41; font: inherit; font-size: 20px; cursor: pointer; }

/* Two market cards follow the storage overview: summary first, evidence below. */
#compute-active .compute-active-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
#compute-active .compute-active-main { min-width: 0; padding: 24px; border: 2px solid #17251f; border-top: 8px solid #1e6552; background: #fffef9; }
#compute-active .compute-active-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
#compute-active .compute-active-card-header span { display: block; font-size: 18px; font-weight: 700; color: #1e6552; }
#compute-active .compute-active-card-header h3 { margin: 4px 0 0; font-family: Georgia, "Noto Serif SC", serif; }
#compute-active .compute-active-card-header > b { flex-shrink: 0; padding: 5px 8px; border: 1px solid #17251f; font-size: 16px; }
#compute-active .compute-active-nav { padding: 18px; margin: 20px 0 12px; background: #17251f; color: #fffef9; }
#compute-active .compute-active-nav span { display: block; font-size: 18px; line-height: 1.7; }
#compute-active .compute-active-nav > strong { display: block; margin: 5px 0; font: 700 46px/1.2 ui-monospace, monospace; overflow-wrap: anywhere; }
#compute-active .compute-active-metrics, #compute-active .compute-active-allocation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 12px; border: 1px solid #17251f; background: #17251f; }
#compute-active .compute-active-metrics p, #compute-active .compute-active-allocation p { margin: 0; padding: 13px 14px; background: #fffef9; }
#compute-active .compute-active-metrics span, #compute-active .compute-active-allocation span { font-size: 18px; }
#compute-active .compute-active-metrics strong { font: 800 27px/1.5 ui-monospace, monospace; }
#compute-active .compute-active-allocation p { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px; }
#compute-active .compute-active-allocation strong { font: 800 24px/1.5 ui-monospace, monospace; }
#compute-active .compute-active-main .compute-active-chart { margin: 18px 0; padding: 12px 8px; border: 1px solid #adb9b0; background: #f6f3e9; }
#compute-active .compute-active-main .compute-active-chart h4 { margin: 0 4px 10px; font-size: 19px; line-height: 1.5; }
#compute-active .compute-active-card-method { margin: 12px 0 0; padding: 14px; background: #edf1e9; }
#compute-active .compute-active-card-note { margin: 12px 0 0; font-size: 18px; color: #45594c; }
#compute-active .compute-active-detail-stack { display: grid; gap: 18px; margin-top: 24px; }
#compute-active .compute-active-market-detail { min-width: 0; border: 2px solid #17251f; background: #fffef9; }
#compute-active .compute-active-market-detail > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 18px; }
#compute-active .compute-active-market-detail > summary > span { grid-column: 1; font-size: 20px; }
#compute-active .compute-active-market-detail > summary > span::before { content: '▸ '; }
#compute-active .compute-active-market-detail[open] > summary > span::before { content: '▾ '; }
#compute-active .compute-active-market-detail > summary > strong { grid-column: 1; font-size: 23px; }
#compute-active .compute-active-market-detail > summary > small { grid-column: 2; grid-row: 1 / span 2; align-self: center; max-width: 180px; font-size: 18px; }
#compute-active .compute-active-market-body { min-width: 0; padding: 22px; border-top: 1px solid #17251f; }
#compute-active .compute-active-market-body > p { margin-top: 0; }
@media (max-width: 760px) {
  #compute-active .compute-active-grid { grid-template-columns: 1fr; }
  #compute-active .compute-active-main { padding: 17px; }
  #compute-active .compute-active-card-header { flex-wrap: wrap; }
  #compute-active .compute-active-nav > strong { font-size: 40px; }
  #compute-active .compute-active-metrics strong { font-size: 24px; }
  #compute-active .compute-active-main .compute-active-chart svg { min-width: 0; }
  #compute-active .compute-active-main .compute-active-chart { overflow: visible; }
  #compute-active .compute-active-main svg text { font-size: 25px; }
  #compute-active .compute-active-main figcaption { font-size: 18px; }
  #compute-active .compute-active-market-detail > summary { display: block; }
  #compute-active .compute-active-market-detail > summary > * { display: block; }
  #compute-active .compute-active-market-detail > summary > small { max-width: none; }
  #compute-active .compute-active-market-body { padding: 16px; }
}

/* Daily overview uses the same chart and NAV structure as fundamental cards. */
#compute-active .energy-index-chart svg { height: 210px; }
#compute-active .energy-index-chart polyline { stroke-width: 5; vector-effect: none; }
#compute-active .energy-index-chart figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#compute-active .energy-index-nav-panel { gap: 20px; }
