/* /twin. Loads after Carbon, shell.css and day.css and reuses their stage, chart, number row, tables and notes.
   This file adds the lever grids, the year strip and the day charts. */
section { margin-top: 3rem; }
.table-scroll { overflow-x: auto; }
.tw-top { max-width: 20rem; margin-bottom: 1.5rem; }
.tw-top .cds--select, .tw-top .cds--select-input__wrapper, .tw-top .cds--select-input { inline-size: 100%; max-inline-size: none; }
#tw-tabs { margin-bottom: .5rem; }
#tw-tabs .cds--tabs__nav-link { min-block-size: 2.75rem; }
[role=tabpanel] > section:first-child { margin-top: 1.5rem; }
.tw-knobs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .5rem; }
.tw-knobs .wide { grid-column: 1 / -1; }
.tw-knobs .cds--select, .tw-knobs .cds--select-input__wrapper, .tw-knobs .cds--select-input { inline-size: 100%; max-inline-size: none; }
.tw-knobs .cds--text-input, .tw-knobs .cds--select-input, .tw-top .cds--select-input { min-block-size: 2.75rem; }
.tw-kpis { margin: 1rem 0 1.5rem; border: 1px solid var(--cds-border-subtle-00, #e0e0e0); }
.tw-kpis .kpi .when { margin-top: .25rem; font-size: .75rem; letter-spacing: .32px; color: var(--cds-text-secondary); }
.tw-year { background: var(--cds-layer-01, #f4f4f4); padding: .75rem; cursor: pointer; touch-action: pan-y; }
.tw-year .d { fill: #8d8d8d; }
.tw-year .d.neg { fill: var(--mw-peak); }
.tw-year .d.run { fill: var(--mw-run); }
.tw-year .mark { fill: var(--mw-peak); }
.tw-year .sel { fill: none; stroke: var(--mw-blue); stroke-width: 2; }
.tw-year .zero { stroke: var(--mw-border-strong); stroke-width: 1; shape-rendering: crispEdges; }
.tw-stage .scene { min-height: 12.5rem; }
.chart .soc { fill: none; stroke: var(--mw-blue); stroke-width: 2; }
.chart .b-out { fill: var(--mw-text); opacity: .14; }
.chart .gridline { fill: none; stroke: var(--mw-text); stroke-width: 1.5; }
.chart .site { fill: var(--mw-blue); opacity: .28; }
.chart .siteline { fill: none; stroke: var(--mw-blue); stroke-width: 1.5; }
.chart .b-peakh { fill: var(--mw-peak); opacity: .16; }
.tw-daybox { background: var(--cds-layer-01, #f4f4f4); padding: .75rem; cursor: default; }
.legend .l-out { background: var(--mw-text); opacity: .3; }
.legend .l-soc { width: .75rem; height: 0; border-top: 2px solid var(--mw-blue); vertical-align: 3px; }
.legend .l-grid { width: .75rem; height: 0; border-top: 2px solid var(--mw-text); vertical-align: 3px; }
.legend .l-site { background: var(--mw-blue); opacity: .4; }
.legend .l-peakh { background: var(--mw-peak); opacity: .35; }
.state[data-s=outage]::before { background: var(--mw-text); }
.tw-table td:nth-child(n+2), .tw-table th:nth-child(n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tw-table th, .tw-table td, .tw-basis th, .tw-basis td { padding-inline: .75rem; }
.tw-table tr.pick td { background: #edf5ff; }
.tw-table tr.holds td:first-child { box-shadow: inset 3px 0 0 var(--mw-charge); }
.tw-basis td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--cds-text-secondary); }
.tw-basis td:last-child { white-space: nowrap; }
.tw-basis td { vertical-align: top; }
.tw-list { margin: 1rem 0 0; padding-left: 1.25rem; max-width: 42rem; list-style: disc; color: var(--cds-text-secondary); line-height: 1.5; font-size: .875rem; }
.tw-list li { margin-bottom: .375rem; }
.call + .call { margin-top: .5rem; }
@media (min-width: 42rem) {
  .tw-knobs { grid-template-columns: repeat(4, 1fr); }
  .tw-knobs .wide { grid-column: span 2; }
  .tw-knobs.three { grid-template-columns: repeat(3, minmax(0, 12rem)); }
  .tw-kpis { grid-template-columns: repeat(4, 1fr); }
}
/* The data center site: a 3D diagram with HTML labels placed over it. */
.tw-site { overflow: hidden; }
.site-labels { position: absolute; inset: 0; pointer-events: none; }
.site-labels span { position: absolute; transform: translate(-50%, -100%); padding: 0 .25rem; font-size: .6875rem; line-height: 1.3; letter-spacing: .32px; white-space: nowrap; color: var(--mw-text); background: rgba(255, 255, 255, .78); }
.site-labels span[data-peak="1"] { color: #fff; background: var(--mw-peak); }
.tw-site[data-night="1"] .site-labels span:not([data-peak="1"]) { color: #f4f4f4; background: rgba(22, 22, 22, .6); }
#site-fallback .batt { fill: #c6c6c6; }
#site-fallback[data-s=run] .batt, #site-fallback[data-s=run] .battwire { fill: var(--mw-run); stroke: var(--mw-run); }
#site-fallback[data-s=charge] .batt, #site-fallback[data-s=charge] .battwire { fill: var(--mw-charge); stroke: var(--mw-charge); }
#site-fallback[data-s=run] .batt, #site-fallback[data-s=charge] .batt { stroke: #161616; }
#site-fallback[data-peak="1"] .gridwire { stroke: var(--mw-peak); stroke-width: 3; }
#dd-scale { margin-top: .25rem; }
@media (min-width: 66rem) { .tw-stage .tw-site { min-height: 21rem; } } /* two classes, to win over .tw-stage .scene above */
