/* How often is each bar open: share of reports with no restriction, by month (#431) */
/* The intro is the method, a full paragraph: wider and easier to read than the shared one-line hero sub */
.or-hero-sub { max-width: 80ch; font-family: inherit; font-size: var(--text-base); line-height: 1.55; color: var(--text-secondary); }
.or-content { display: grid; gap: 16px; margin: 0 0 32px; }
.or-card { padding: 20px; min-width: 0; }
.or-content h2 { font-size: var(--text-lg); margin: 0 0 12px; }
.or-note { font-size: var(--text-sm); line-height: 1.5; color: var(--text-muted); margin: 0 0 12px; }
.or-table-wrap + .or-note { margin: 12px 0 0; }
.or-table-wrap { overflow-x: auto; }
.or-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
/* position: the cells hold .sr-only text, which is absolutely positioned and must stay inside the scrolling table */
.or-table th, .or-table td { position: relative; padding: 8px; border-bottom: 1px solid var(--card-border); text-align: right; vertical-align: top; color: var(--text-secondary); white-space: nowrap; }
.or-table thead th { vertical-align: bottom; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); font-weight: 400; }
.or-table th:first-child { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--card-bg); }
.or-table th[scope="row"] a { color: var(--text-primary); font-weight: 600; text-decoration: none; }
.or-table th[scope="row"] a:hover { color: var(--ocean-glow); }
.or-pct { display: block; color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.or-n, .or-low, .or-none, .or-ref, .or-partial { font-size: var(--text-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.or-year { display: block; }
.or-state { margin-left: 4px; font-size: var(--text-xs); font-weight: 400; color: var(--text-muted); }
.or-ref, .or-partial { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; font-family: inherit; }
/* Cell tint by share, in fifths: one hue, so it reads as "more", not as a status colour */
.or-b1 { background: color-mix(in oklab, var(--ocean-glow) 9%, transparent); }
.or-b2 { background: color-mix(in oklab, var(--ocean-glow) 18%, transparent); }
.or-b3 { background: color-mix(in oklab, var(--ocean-glow) 29%, transparent); }
.or-b4 { background: color-mix(in oklab, var(--ocean-glow) 42%, transparent); }
.or-b3 .or-n, .or-b4 .or-n { color: var(--text-secondary); }
.or-table tbody td { border-left: 2px solid var(--card-bg); }
.or-total { border-left: 1px solid var(--card-border); }
.or-method { margin: 0; padding-left: 20px; line-height: 1.5; color: var(--text-secondary); font-size: var(--text-sm); }
.or-method li { margin-bottom: 8px; }
.or-method strong { color: var(--text-primary); }
@media (max-width: 640px) {
    .or-card { padding: 16px; }
    .or-table th, .or-table td { padding: 8px 6px; }
    .or-table th:first-child { white-space: normal; min-width: 96px; max-width: 110px; padding-left: 0; }
}
/* "How to read a cell": one real cell beside its meaning in words */
.or-key { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--card-border); border-radius: var(--radius-md); }
.or-key-cell { flex-shrink: 0; padding: 8px 10px; text-align: right; border-radius: 4px; }
.or-key-text { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--text-secondary); }
.or-key-text strong { color: var(--text-primary); }
/* Sortable headings: a button in the <th>; the arrow follows aria-sort on the <th> */
.or-sort { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; text-align: inherit; cursor: pointer; }
.or-sort:hover { color: var(--text-primary); }
.or-sort::after { content: "\25BC"; content: "\25BC" / ""; display: block; font-size: var(--text-xs); opacity: 0.3; }
.or-table th:first-child .or-sort::after { display: inline; margin-left: 4px; }
th[aria-sort] .or-sort { color: var(--text-primary); }
th[aria-sort] .or-sort::after { opacity: 1; color: var(--ocean-glow); }
th[aria-sort="ascending"] .or-sort::after { content: "\25B2"; content: "\25B2" / ""; }
