/* Broadband by County / Broadband by Census Tract. Builds on the Median Income
   layout (median-income.css) and the shared map classes (similar-counties.css). */

/* Choropleth: fill comes from the inline style; a highlighted county keeps its
   shading and gets a thick outline in its highlight color instead. */
.bb-map g.bb-map-highlighted path:not(.hit-target){stroke-width:2.6}
.bb-map g:hover path:not(.hit-target),
.bb-map g:focus path:not(.hit-target){stroke:#123a2a;stroke-width:1.6}

.bb-legend{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:6px;font-size:11px;color:#34463b}
.bb-legend span{display:inline-flex;align-items:center;gap:4px}
.bb-legend i{display:inline-block;width:12px;height:12px;border:1px solid #7a8a80}
.bb-legend i.bb-legend-nodata{background:#d9d9d9}
.bb-legend i.bb-legend-wide{background:repeating-linear-gradient(45deg,#fff 0 2px,#7a8a80 2px 3px)}

.bb-grid thead th.sortable{cursor:pointer;user-select:none}
.bb-grid thead th.sortable:hover{background:#e5f1e9}
.bb-grid tbody tr{cursor:pointer}
.bb-grid tbody tr.selected th,.bb-grid tbody tr.selected td{background:#e5f1e9;font-weight:700}
.bb-grid td small{color:#5c7266;font-weight:400}
.bb-grid td.bb-wide-moe{background:#fff4e0}

/* Census-tract page */
.bb-tract-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;margin:12px 0}
.bb-tract-controls label{display:block;font-size:12px;font-weight:700;margin-bottom:4px}
.bb-tract-map-wrap{position:relative;border:1px solid #d5ded8;background:#fff;padding:8px}
.bb-tract-map{width:100%;height:auto;display:block}
.bb-tract-map path{stroke:#fff;stroke-width:.15;vector-effect:non-scaling-stroke;cursor:pointer}
.bb-tract-map path.bb-tract-nodata{fill:#d9d9d9}
.bb-tract-map path:hover{stroke:#123a2a;stroke-width:1.2}
.bb-tract-map path.bb-tract-selected{stroke:#c0392b;stroke-width:1.6}
.bb-tract-map path.bb-county-outline{fill:none;stroke:#34463b;stroke-width:.6;pointer-events:none}
.bb-pagination{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin:8px 0;font-size:12px}
.bb-pagination button{padding:3px 10px}

/* Source link + CSV download above each grid (the shared buttons are
   absolutely positioned by default; here they sit in a normal row). */
.bb-grid-controls{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:0 0 8px}
.bb-grid-controls .source-link-icon-button,.bb-grid-controls .download-icon-button{position:static}

/* County page: full-width map, 46.8% of the viewport tall */
.bb-map-large{margin:12px 0 -76px}
.bb-map-large .ue-jobs-map-svg-wrap{position:relative}
/* Raised 1" (96px) beside the dropdown and title row, per request -- a visual
   shift only (relative positioning), with the space below closed by the
   section's negative bottom margin. */
.bb-map-large .ue-jobs-map{height:46.8vh;width:auto;max-width:100%;margin:0 auto;position:relative;top:-96px}
.bb-map-large .bb-legend{justify-content:center;font-size:12px;position:relative;top:-96px}

/* County map labels: plain white, two lines. Sized in map units so they
   scale with the map and never outgrow the counties. */
.bb-map .bb-map-labels{pointer-events:none}
/* 4 map units, about 7px on screen at 1920 wide (Robert, 2026-11-01: "much smaller labels"; the 2026-10-21 11px
   sweep wrongly raised these map-unit sizes from 3.3) */
.bb-map .bb-map-labels text{fill:#fff;font-size:4px;font-weight:700;text-anchor:middle}

/* "Clear map" sits just right of the map's right edge instead of the far
   right of the page: the map is 46.8vh tall at a 300:220 aspect, so it is
   ~63.8vh wide and centered -- its right edge is (50% - 31.9vh) from the
   container's right. */
.bb-map-large .mi-map-clear{margin-right:max(0px, calc(50% - 31.9vh))}

/* Selected-counties list under the dropdown (county page): one row per
   county with its household count, then a total. */
/* Floats in the left column (out of the page flow) so adding counties never
   pushes the map down. */
.bb-select-wrap{position:relative}
.bb-selected-list{position:absolute;left:0;top:100%;margin-top:8px;width:250px;z-index:2;font-size:12px}
.bb-selected-list p{margin:0 0 4px}
.bb-selected-label{font-weight:700;color:#34463b}
.bb-selected-none{color:#5c7266}
.bb-selected-list ul{list-style:none;margin:0;padding:0}
.bb-selected-list li{display:flex;justify-content:space-between;align-items:center;padding:3px 0;border-bottom:1px solid #d5ded8}
.bb-selected-list li span,.bb-selected-list li.bb-selected-total strong:last-child{font-variant-numeric:tabular-nums}
.bb-selected-total{border-bottom:none;border-top:2px solid #34463b}
.bb-selected-chip{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border:1px solid #1f5138;border-radius:12px;background:#fff;color:#123a2a;font-size:12px;font-weight:700;cursor:pointer}
.bb-selected-chip:hover{background:#e5f1e9}
.bb-selected-notice{margin-top:6px;color:#8a4b00;font-weight:700}
/* The raised map's box overlaps the title row -- keep the row (and its
   Clear map button) on top so the button receives clicks. */
.bb-map-large .mi-map-title-row{position:relative;z-index:3}
/* The selected list floats in the left column, so the map's title sits at
   the right beside Clear map instead of under the list. */
.bb-map-large .mi-map-title-row{justify-content:flex-end;gap:16px}

/* County page: time series panel (two views of the same S2801 figures).
   Ledger colors: navy serif title, forest green text, medium blue controls,
   question-phrased heading in italics. */
.bb-question-heading{margin:28px 0 8px;font:italic 700 20px/1.25 Georgia,"Times New Roman",serif;color:var(--title-navy,#1b3a6b)}
.bb-trend-panel{color:var(--forest,#1f5138)}
.bb-trend-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.bb-trend-head .bb-grid-controls{margin:0}
.bb-trend-views{display:flex;flex-wrap:wrap;gap:6px}
.bb-trend-views button{padding:4px 12px;border:1px solid var(--blue,#0b69c7);background:#fff;color:var(--blue,#0b69c7);font-size:12px;font-weight:700;cursor:pointer}
.bb-trend-views button.active{background:var(--blue,#0b69c7);color:#fff}
.bb-trend-title{margin:4px 0 2px;font:700 15px/1.3 Georgia,"Times New Roman",serif;color:var(--title-navy,#1b3a6b)}
.bb-trend-note{margin:6px 0 0;font-size:12px;line-height:1.5;color:var(--forest,#1f5138);max-width:820px}
.bb-trend-chart{width:100%;height:auto;display:block;max-height:420px}
.bb-trend-tick line{stroke:var(--rule,#c6d0c7);stroke-width:1}
.bb-trend-tick text{font-size:11px;fill:var(--forest,#1f5138);text-anchor:end}
.bb-trend-xlabel{font-size:11px;font-weight:700;fill:var(--forest,#1f5138);text-anchor:middle}
.bb-trend-gap rect{fill:none;stroke:var(--rule,#c6d0c7);stroke-dasharray:4 4}
.bb-trend-gap text{font-size:11px;fill:#5c7266;text-anchor:middle;font-style:italic}
.bb-trend-line{cursor:pointer}
.bb-trend-line path{fill:none;stroke-linejoin:round;stroke-linecap:round}
.bb-trend-line path.hit-target{stroke:transparent;stroke-width:9}
.bb-trend-line .bb-trend-stroke{stroke:#b9c6bd;stroke-width:1}
.bb-trend-line circle{fill:#b9c6bd}
.bb-trend-hovered .bb-trend-stroke{stroke:var(--forest,#1f5138);stroke-width:2}
.bb-trend-hovered circle{fill:var(--forest,#1f5138)}
.bb-trend-selected .bb-trend-casing{stroke:#123a2a;stroke-width:5}
.bb-trend-selected .bb-trend-stroke{stroke-width:2.6}
.bb-trend-selected circle{stroke:#123a2a;stroke-width:1}
.bb-trend-endlabel{font-size:11px;font-weight:700;fill:var(--forest,#1f5138)}
.bb-trend-readout{margin:2px 0 0;min-height:1.5em;font-size:12px;color:var(--forest,#1f5138);font-variant-numeric:tabular-nums}
/* The map's source line rides up with the map and legend (they sit 96px above their box; 2026-11-12). */
.bb-map-large > .source-line{position:relative;top:-96px}
