/* A report's reading column: its tables, key figures, charts and maps are drawn by NexTurn where the reports are written;
   these are their styles, in the team's colours. */
.rs-body { max-width: 760px; margin-top: 26px; font-size: 1.06rem; line-height: 1.65; color: var(--ink); }
.rs-body h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 40px 0 12px; }
.rs-body h3 { font: 600 1.2rem/1.3 var(--f-body); margin: 30px 0 10px; }
.rs-body p, .rs-body ul, .rs-body ol, .rs-body blockquote, .rs-body pre { margin: 0 0 18px; }
.rs-body ul, .rs-body ol { padding-left: 1.3em; }
.rs-body li { margin-bottom: 6px; }
.rs-body a { color: var(--navy); font-weight: 600; }
.rs-body blockquote { border-left: 3px solid var(--navy); padding: 2px 0 2px 18px; color: var(--ink-soft); }
.rs-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.chart-title, .rs-body table.data caption, .rs-body .stat .stat-v { font-family: var(--f-body) !important; }
.rs-body .table-wrap { overflow-x: auto; margin: 8px 0 26px; background: #fff; border: 1px solid rgba(14, 26, 43, .1); border-radius: 12px; }
.rs-body table.data { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.45; }
.rs-body table.data caption { caption-side: top; text-align: left; padding: 13px 14px 6px; font-family: var(--f-display); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.rs-body table.data th, .rs-body table.data td { padding: 10px 14px; border-top: 1px solid rgba(14, 26, 43, .08); text-align: left; vertical-align: top; }
.rs-body table.data thead th { border-top: 0; font-size: 12.5px; color: var(--ink-soft); font-weight: 700; background: #f5f6f8; vertical-align: bottom; }
.rs-body table.data tbody th { font-weight: 700; min-width: 8.5em; }
.rs-body table.data td { min-width: 6em; }
/* A column of figures lines up on the right, its heading with it, and never breaks. */
.rs-body table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 0; }
.rs-body .render-error { color: #b42318; font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* A change: green when up, red when down, an arrow before it. */
.chg { font-weight: 700; white-space: nowrap; }
.chg.up { color: #15803d; } .chg.down { color: #b42318; }
.chg.up::before { content: "▲\00a0" / ""; font-size: .7em; vertical-align: .1em; }
.chg.down::before { content: "▼\00a0" / ""; font-size: .7em; vertical-align: .1em; }

/* Key figures as tiles. */
.rs-body .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin: 10px 0 28px; }
.rs-body .stat { background: #fff; border: 1px solid rgba(14, 26, 43, .1); border-radius: 14px; padding: 14px 16px 13px; }
.rs-body .stat p { margin: 0; }
.rs-body .stat .stat-k { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); line-height: 1.3; }
.rs-body .stat .stat-v { font-family: var(--f-display); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; margin-top: 6px; }
.rs-body .stat .stat-d { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

.rs-body figure.chart, .rs-body figure.rs-map { margin: 10px 0 28px; padding: 18px 18px 14px; background: #fff; border: 1px solid rgba(14, 26, 43, .1); border-radius: 14px; }
.chart-title { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.25; margin-bottom: 6px; }
.chart-legend, .map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.rs-body .chart-legend li, .rs-body .map-legend li { margin: 0; }
.chart-legend li::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.chart-legend li.lg-line::before { width: 16px; height: 3px; border-radius: 2px; vertical-align: 3px; }
.chart-legend li.up { --c: #16a34a; } .chart-legend li.down { --c: #dc2626; }
/* Each chart comes drawn twice — for a screen and for a phone; the one that fits shows. */
.chart-svg { width: 100%; height: auto; overflow: visible; display: block; }
.chart-svg.narrow { display: none; }
.chart-svg .grid { stroke: #eef0f3; } .chart-svg .axis { stroke: #c9ccd3; }
.chart-svg .tick { font: 11px var(--f-body); fill: #6b7176; }
.chart-svg .ln { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .pt { fill: #fff; stroke: var(--c); stroke-width: 2; }
.chart-svg .bar { fill: var(--c); }
.chart-svg .bar.up { fill: #16a34a; } .chart-svg .bar.down { fill: #dc2626; }
.chart-svg .vl { font: 700 11px var(--f-body); fill: var(--ink); }
.chart-svg .vl.end { fill: var(--c); font-size: 12px; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.chart-svg .hl { font: 600 13px var(--f-body); fill: var(--ink); }
.chart-svg .shade { fill: rgba(220, 38, 38, .07); }
.chart-svg .shade-t { font: italic 600 11px var(--f-body); fill: #b42318; }
.chart-note { font-size: 13px; font-style: italic; color: var(--ink-soft); margin: 8px 0 0; }
.chart-source { font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; }
.rs-body .chart-note, .rs-body .chart-source { margin-bottom: 0; }
.rs-body .s0 { --c: #002855; } .rs-body .s1 { --c: #e8950f; } .rs-body .s2 { --c: #0f9d8a; }
.rs-body .s3 { --c: #2c6fd1; } .rs-body .s4 { --c: #d9488f; } .rs-body .s5 { --c: #64748b; }

/* The market on a map: Census outlines, the market in violet, a market it is compared with dashed in amber. */
.map-legend li::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 3px; box-sizing: border-box; }
.map-legend .lg-area::before { background: rgba(0, 40, 85, .2); border: 2px solid #002855; }
.map-legend .lg-compare::before { border: 2px dashed #d97706; }
.map-legend .lg-pt::before { width: 10px; height: 10px; border-radius: 50%; background: #0e1a2b; }
.map-svg { width: 100%; height: auto; display: block; overflow: hidden; border-radius: 10px; }
.map-svg.narrow { display: none; }
.map-svg .map-land { fill: #f5f4ef; } .map-svg .map-sea { fill: #e9edf2; }
.map-svg .map-water { fill: #cde1f2; fill-rule: evenodd; }
.map-svg .map-place { fill: #eceae4; stroke: #d3cec2; stroke-width: .8; fill-rule: evenodd; }
.map-svg .map-county { fill: none; stroke: #9f99b8; stroke-width: 1; stroke-dasharray: 5 4; }
.map-svg .map-state { fill: #fff; stroke: #c6c1d6; stroke-width: 1; stroke-linejoin: round; }
.map-svg .map-area { fill: rgba(0, 40, 85, .16); stroke: #002855; stroke-width: 2.2; fill-rule: evenodd; stroke-linejoin: round; }
.map-svg .map-compare { fill: rgba(217, 119, 6, .08); stroke: #d97706; stroke-width: 2; stroke-dasharray: 6 4; fill-rule: evenodd; }
.map-svg .map-road2 { fill: none; stroke: #d9d3c4; stroke-width: 1.1; stroke-linecap: round; }
.map-svg .map-road1 { fill: none; stroke: #b9b09b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-svg .map-road0 { fill: none; stroke: #8f8672; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.map-svg .map-shield { stroke-width: 1; }
.map-svg .map-shield0 { fill: #1e3a8a; stroke: #fff; } .map-svg .map-shield1 { fill: #fff; stroke: #0e1a2b; }
.map-svg .map-shield-t { font: 700 10.5px var(--f-body); fill: #0e1a2b; } .map-svg .map-shield-t0 { fill: #fff; }
.map-svg .map-label { font: 600 11.5px var(--f-body); fill: #5b5776; paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-width: 3px; stroke-linejoin: round; }
.map-svg .map-label-area { font: 800 15px var(--f-display); fill: #002855; }
.map-svg .map-label-compare { font: 700 13px var(--f-display); fill: #92400e; }
.map-svg .map-label-pt { font: 700 12px var(--f-body); fill: #0e1a2b; }
.map-svg .map-pt { fill: #0e1a2b; stroke: #fff; stroke-width: 2; }
.map-svg .map-inset { fill: #fff; stroke: rgba(14, 26, 43, .18); }
.map-svg .map-inset-state { fill: #ebe9f2; stroke: #fff; stroke-width: .6; }
.map-svg .map-inset-on { fill: #9fb3cc; stroke: #fff; stroke-width: .6; }
.map-svg .map-inset-dot { fill: #002855; stroke: #fff; stroke-width: 1.5; }

@media (max-width: 600px) {
  .chart-svg.wide { display: none; } .chart-svg.narrow { display: block; }
  .map-svg.wide { display: none; } .map-svg.narrow { display: block; }
  .rs-body figure.chart, .rs-body figure.rs-map { padding: 14px 12px 12px; margin-left: -4px; margin-right: -4px; }
  .rs-body table.data { font-size: 14.5px; }
  .rs-body table.data th, .rs-body table.data td { padding: 9px 11px; }
  .rs-body table.data tbody th { min-width: 7.5em; position: sticky; left: 0; background: #fff; box-shadow: 1px 0 0 rgba(14, 26, 43, .06); }
  .rs-body .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rs-body .stat .stat-v { font-size: 25px; }
