/* Article "S&P 500 P/E ratio and Shiller P/E (CAPE)": its own pieces (prefix pe-). */
.pe-plot-cape { min-height: 380px; }
.pe-plot-pe { min-height: 320px; }
.pe-plot-scat { min-height: 420px; }
@media (max-width: 640px) {
  .pe-plot-cape, .pe-plot-pe { min-height: 300px; }
  .pe-plot-scat { min-height: 340px; }
}

/* the long table by year: its own scroll box, the header stays in view */
.pe-years { max-height: 560px; overflow: auto; }
.pe-years thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.pe-none, .pe-open { color: var(--muted); }
td.pe-open { text-align: center; font-size: 14.5px; }
.pe-here { color: var(--ink); font-weight: 650; }
.pe-runs { white-space: normal; max-width: 300px; }
.pe-nw { white-space: nowrap; }
.pe-buckets th[scope="row"] { min-width: 150px; }
.pe-cav { margin: 0; padding-left: 22px; }
.pe-cav li { margin: 0 0 10px; line-height: 1.6; }

/* scatter: one dot per month */
.pe-dot { fill: var(--spx); fill-opacity: 0.32; }
.pe-dot.neg { fill: var(--bad); fill-opacity: 0.4; }
.pe-dot-on { fill: none; stroke: var(--ink); stroke-width: 2; }
.pe-zero { stroke: var(--axis); stroke-width: 1; }
.pe-now { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.pe-now-label { fill: var(--ink); font: 600 12px/1 var(--font); }
.pe-ax { fill: var(--muted); font: 500 11.5px/1 var(--font); }
.sw-sq.pe-sw-dot { background: var(--spx); opacity: 0.6; border-radius: 50%; }
.sw-sq.pe-sw-now { background: var(--ink); width: 3px; border-radius: 1px; }
