/* The newsletter's verified charts (Energy & Prosperity, The Printer) — namespaced .ol-* */

/* The few .odds-* pieces the partial borrows from The Odds page, scoped so they work on any page */
.ol .odds-mode { display: inline-flex; border: 1px solid var(--border); }
.ol .odds-mode button { font-family: 'Roboto Mono', monospace; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--fg-muted); background: transparent; border: none; padding: 0.3rem 0.6rem; cursor: pointer; }
.ol .odds-mode button + button { border-left: 1px solid var(--border); }
.ol .odds-src { font-size: 0.66rem; color: var(--fg-dim); }
.ol .odds-pool { width: 100%; border-collapse: collapse; font-family: 'Roboto Mono', monospace; font-size: 0.76rem; }
.ol .odds-pool thead th { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--border); text-align: left; font-weight: 500; }
.ol .odds-pool thead th.num { text-align: right; }
.ol .odds-pool td { padding: 0.45rem 0.85rem; border-bottom: 1px solid rgba(51,51,51,0.45); color: var(--fg-secondary); vertical-align: middle; }
.ol .odds-pool td.num { text-align: right; }
.ol .odds-scn-table { border-top: 1px solid var(--border); }
.ol .odds-scn-table summary { cursor: pointer; padding: 0.6rem 1.25rem; font-family: 'Roboto Mono', monospace; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); }
.ol .odds-scn-table summary:hover { color: var(--accent); }
.ol .odds-scn-dl { padding: 0.6rem 1.25rem 0.9rem; font-size: 0.68rem; color: var(--fg-dim); line-height: 1.6; }
.ol .odds-scn-dl a { color: var(--fg-muted); text-decoration: underline; text-decoration-color: var(--border-light); }
.ol .odds-scn-dl a:hover { color: var(--accent); }

.ol-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 0.75rem; }
.ol-bar .odds-mode button[aria-pressed="true"] { color: var(--bg-primary); background: var(--accent); }
.ol.ol-loading .ol-chart svg { opacity: 0.45; transition: opacity 0.15s ease; }

.ol-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.4rem; padding: 0.7rem 1.25rem 0.2rem; }
.ol-chip { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-sans); font-size: 0.72rem;
    color: var(--fg-secondary); background: transparent; border: 1px solid transparent; border-radius: 3px;
    padding: 0.2rem 0.45rem; cursor: pointer; line-height: 1.3; }
.ol-chip:hover { border-color: var(--border-light); color: var(--fg-primary); }
.ol-chip:focus-visible { outline: 1px solid var(--accent); outline-offset: 1px; }
.ol-chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ol-chip .n { font-family: 'Roboto Mono', monospace; font-size: 0.62rem; color: var(--fg-dim); }
.ol-chip[aria-pressed="false"] { color: var(--fg-dim); }
.ol-chip[aria-pressed="false"] .dot { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--fg-dim); }
.ol-chip.line[aria-pressed="true"] { border-color: var(--border-light); color: var(--fg-primary); }
.ol-chip-note { font-size: 0.66rem; color: var(--fg-dim); margin-left: 0.35rem; }

.ol-chart { position: relative; padding: 0.4rem 0.9rem 0.2rem; touch-action: pan-y; }
.ol-chart:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.ol-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ol-empty { display: flex; align-items: center; justify-content: center; height: 260px; font-size: 0.74rem; color: var(--fg-dim); }

.ol-tip { position: absolute; z-index: 20; display: none; pointer-events: none; max-width: 22rem; background: var(--bg-tertiary);
    border: 1px solid var(--border-light); padding: 0.5rem 0.65rem; font-size: 0.7rem; line-height: 1.45; color: var(--fg-secondary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.ol-tip-row { display: flex; align-items: baseline; gap: 0.45rem; }
.ol-tip-row b { font-family: 'Roboto Mono', monospace; color: var(--fg-primary); font-weight: 500; white-space: nowrap; }
.ol-tip-row.head { color: var(--fg-primary); font-weight: 600; margin-bottom: 0.15rem; }
.ol-tip-row.dim { color: var(--fg-dim); font-size: 0.64rem; }
.ol-tip-row .key { width: 12px; height: 2px; flex: none; align-self: center; }

.ol-notes { padding: 0.3rem 1.25rem 0.9rem; }
.ol-notes p { margin: 0 0 0.15rem; font-size: 0.68rem; line-height: 1.55; color: var(--fg-dim); }
.ol-notes p.strong { color: var(--fg-muted); font-size: 0.72rem; }
.ol-notes p.small { font-size: 0.64rem; margin-top: 0.3rem; }

.ol-details { padding: 0 1.25rem 0.4rem; }
.ol-details .odds-pool { margin-bottom: 0.9rem; }
.ol-details .odds-pool caption { caption-side: top; text-align: left; font-size: 0.66rem; color: var(--fg-dim); padding: 0.2rem 0 0.4rem; }
.ol-details .odds-pool td:first-child { color: var(--fg-primary); }
.ol-scroll { max-height: 22rem; overflow: auto; margin-bottom: 0.9rem; border-bottom: 1px solid var(--border); }
.ol-scroll .odds-pool { margin-bottom: 0; }
.ol-scroll thead th { position: sticky; top: 0; background: var(--bg-card); }
.ol-method p { font-size: 0.7rem; line-height: 1.6; color: var(--fg-muted); margin: 0 0 0.5rem; }
.ol-method b { color: var(--fg-secondary); font-weight: 600; }
.ol-details .odds-scn-dl { padding: 0.2rem 0 0.6rem; }

.ol-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 768px) {
    .ol-legend { padding: 0.6rem 0.75rem 0.2rem; }
    .ol-chart { padding: 0.3rem 0.4rem 0.2rem; }
    .ol-notes, .ol-details { padding-left: 0.75rem; padding-right: 0.75rem; }
    /* the house mobile sheet forces tables to 600px; keep these scrollable instead of overflowing the page */
    .ol-details .odds-pool { min-width: 0; }
    .ol-details > div:first-child { overflow-x: auto; }
}
