/* Child Care page (2026-11-01). Map and grid reuse the Broadband by County classes; only what differs is here. */

/* County labels: white on the red, orange and dark green counties, dark ink on the yellow and light green ones. */
.cc-map .bb-map .cc-map-labels text{fill:var(--ink,#1b3144);font-weight:700}
.cc-map .bb-map .cc-map-labels text.cc-on-dark{fill:#fff}

/* Picked counties: a gold outline; the county under the pointer (map or grid row): a dark outline. */
.cc-map .ue-jobs-map g.cc-picked path:not(.hit-target){stroke:#d4a83a;stroke-width:2;vector-effect:non-scaling-stroke}
.cc-map .ue-jobs-map g.cc-hot path:not(.hit-target){stroke:#111;stroke-width:2.2;vector-effect:non-scaling-stroke}

/* Grid: site defaults (Calibri 13px ink, 11px bold capital headers on #f7f9f7), a scroll box, sort arrows. */
.cc-grid-panel{position:relative}
.cc-grid-controls{display:flex;justify-content:flex-end;margin:0 0 6px}
.cc-scroll{max-height:520px;overflow:auto}
.cc-scroll:focus{outline:2px solid var(--blue,#0b69c7);outline-offset:1px}
.cc-grid{font:13px var(--font-body);color:var(--ink,#1b3144);font-variant-numeric:tabular-nums}
.cc-grid thead th{position:sticky;top:0;z-index:1;background:#f7f9f7;font:700 11px var(--font-body);letter-spacing:.04em;text-transform:uppercase;color:var(--ink,#1b3144);vertical-align:bottom;white-space:normal}
.cc-grid thead tr.cc-group-row th{top:0;text-align:center;border-bottom:1px solid var(--rule,#c6d0c7)}
.cc-grid thead tr:not(.cc-group-row) th{top:24px;border-bottom:2px solid var(--rule-strong,#1b3a2c)}
.cc-grid td{text-align:right}
.cc-grid tbody tr{cursor:pointer}
.cc-grid tbody tr.cc-hot{outline:2px solid #111;outline-offset:-2px}
.cc-sort{font-style:normal;margin-left:4px;color:#9fb3a7}
.cc-sort.on{color:var(--blue,#0b69c7)}
.cc-grid .statbook-fn{color:var(--blue,#0b69c7);font-weight:700}

/* Notes and sources under the grid: two sizes smaller, medium blue numbers. */
.cc-notes{margin:10px 0 0;color:var(--muted,#607488);font:12px/1.45 var(--font-body)}
.cc-notes p{margin:0 0 4px}
.cc-notes .statbook-fn{color:var(--blue,#0b69c7);font-weight:700;margin-right:3px}

/* No raised map here (Broadband raises its map 96px beside its dropdown; this page has none above the map). */
.cc-map.bb-map-large{margin:12px 0 18px}
.cc-map.bb-map-large .ue-jobs-map{top:0;height:56vh}
.cc-map.bb-map-large .bb-legend{top:0;margin-top:6px}
.cc-map .mi-map-title-row{justify-content:center}

/* Folder tabs, the same look as Cost of Living's (Robert, 2026-11-01: "my favorite style"). */
.cc-tabrow{margin:22px 0 0;border-bottom:4px solid var(--forest,#1f5138)}
.cc-tabs{display:flex;align-items:flex-end;gap:0;padding-left:4px}
.cc-tabs button{position:relative;margin-right:-8px;padding:9px 26px 8px;border:0;border-radius:10px 10px 0 0;background:#c3d3c9;color:var(--forest,#1f5138);font:800 14px var(--font-body);cursor:pointer;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 100%,0 100%);box-shadow:inset 0 -1px 0 rgba(31,81,56,.25)}
.cc-tabs button:hover:not(.on){background:#b4c8bb}
.cc-tabs button.on{z-index:2;background:var(--forest,#1f5138);color:#fff;box-shadow:none}
.cc-tabs button:focus-visible{outline:3px solid #ffca45;outline-offset:-3px}

/* Child Care Deserts tab: text and the link to the state's map. */
.cc-deserts{max-width:900px;margin:18px 0 30px}
.cc-deserts h2{margin:0 0 8px;color:var(--title-navy);font:700 20px var(--font-title)}
.cc-deserts p{margin:0 0 10px;color:var(--forest);font:15px/1.5 var(--font-body)}
.cc-ext-link{display:inline-block;padding:9px 16px;border-radius:6px;background:var(--blue,#0b69c7);color:#fff;font:700 14px var(--font-body);text-decoration:none}
.cc-ext-link:hover{background:var(--navy,#082946)}
.cc-ext-note{color:var(--muted,#607488)!important;font-size:13px!important}
.cc-notes .cc-def{margin:0 0 8px;color:var(--forest,#1f5138);font-size:13px}
/* Caution on survey figures (Robert, 2026-11-01); plain, no red. */
.cc-caution{margin:10px 0 0;padding:8px 12px;border-left:4px solid var(--forest,#1f5138);background:#f3f7f4;color:var(--forest,#1f5138);font:700 13px/1.45 var(--font-body)}
.cc-grade-grid{max-width:1000px;margin:6px 0 12px}
.cc-grade-grid td,.cc-grade-grid th{white-space:nowrap}
.cc-grade-grid td,.cc-grade-grid th{padding:7px 12px}
.cc-grid td.sc-left{text-align:left}
.cc-h3{margin:22px 0 6px;color:var(--title-navy);font:700 17px var(--font-title)}
.cc-list{margin:0 0 10px 20px;padding:0;color:var(--forest);font:15px/1.5 var(--font-body)}
.cc-list li{margin:0 0 6px}
/* Child Care Deserts page (2026-11-01): grade swatch and the Too Close to Call mark. */
.cc-swatch{display:inline-block;width:10px;height:10px;margin-right:6px;border:1px solid rgba(0,0,0,.25);vertical-align:-1px}
.cc-close{color:var(--muted,#607488);font-weight:700}
.cc-summary{margin:6px 0 24px}

/* Tract map (Robert, 2026-11-01): soft, half-transparent grades; thin tract lines; county lines and labels on top. */
.cc-tract-map .cc-tract{stroke:#fff;stroke-width:.15;cursor:pointer}
.cc-tract-map .cc-tract:hover,.cc-tract-map .cc-tract.on{stroke:#111;stroke-width:.6}
.cc-tract-map .cc-county-lines path{fill:none;stroke:#4d5a52;stroke-width:.45}
.cc-tract-map .cc-county-lines path.on{stroke:#111;stroke-width:1.1}
.cc-map .bb-map .cc-tract-labels text{fill:var(--ink,#1b3144);paint-order:stroke;stroke:rgba(255,255,255,.85);stroke-width:.8px}
.cc-tract-wrap{position:relative}
.cc-tract-tile{position:absolute;top:8px;left:8px;z-index:5;width:300px;background:#fff;border:1px solid var(--rule);border-top:3px solid var(--forest,#1f5138);padding:8px 12px 10px;font:13px var(--font-body);color:var(--ink,#1b3144)}
.cc-tract-tile header{display:flex;gap:8px;align-items:flex-start}
.cc-tract-tile header strong{flex:1;color:var(--title-navy);font:700 14px var(--font-title)}
.cc-tract-tile header button{border:0;background:none;font-size:20px;line-height:1;cursor:pointer;color:#4d6473}
.cc-tract-tile dl{display:grid;grid-template-columns:1fr auto;gap:4px 10px;margin:8px 0}
.cc-tract-tile dt{color:var(--muted,#607488)}
.cc-tract-tile dd{margin:0;text-align:right;font-weight:700}
.cc-tract-tile p{margin:0;color:var(--muted,#607488);font-size:11px}
.cc-tract-map .cc-tract-outline{fill:none;stroke:#111;stroke-width:.9}
/* Highlighted county in neon green (Robert, 2026-11-01: "highlight the map by county in some other color. neon green"). */
.cc-tract-map .cc-county-lines path.on{stroke:#39ff14;stroke-width:1.8}
.cc-map .ue-jobs-map g.cc-hot path:not(.hit-target){stroke:#39ff14;stroke-width:3}
/* No tract outlines on hover (Robert, 2026-11-01: "dont bother with census tract highlighted borders"); only the
   county border, in lime green on top. */
.cc-tract-map .cc-tract:hover,.cc-tract-map .cc-tract.on{stroke:#fff;stroke-width:.15}
.cc-tract-map .cc-county-hot{fill:none;stroke:#39ff14;stroke-width:2;stroke-linejoin:round}
/* No census tract borders (Robert, 2026-11-01: "remove the district borders and only show county borders, but leave
   the shading intact").*/
.cc-tract-map .cc-tract,.cc-tract-map .cc-tract:hover,.cc-tract-map .cc-tract.on{stroke:none}

/* Stronger than the site-wide county-map rules in globals.css (.ue-jobs-map path / g:hover path), which were drawing
   heavy black borders on every tract when the map was hovered (Robert, 2026-11-01: "I don't want to see the district
   borders at all, only the county borders should highlight, in a bright color but not as heavy"). */
.cc-map svg.ue-jobs-map.cc-tract-map path.cc-tract,
.cc-map svg.ue-jobs-map.cc-tract-map g:hover path.cc-tract,
.cc-map svg.ue-jobs-map.cc-tract-map g:focus path.cc-tract{stroke:none;stroke-width:0}
.cc-map svg.ue-jobs-map.cc-tract-map .cc-county-lines path{fill:none;stroke:#4d5a52;stroke-width:1px;vector-effect:non-scaling-stroke}
.cc-map svg.ue-jobs-map.cc-tract-map .cc-county-lines path.on{stroke:#4d5a52}
.cc-map svg.ue-jobs-map.cc-tract-map path.cc-county-hot{fill:none;stroke:#39ff14;stroke-width:2px;vector-effect:non-scaling-stroke;stroke-linejoin:round}
/* County borders dark gray (Robert, 2026-11-01). */
.cc-map svg.ue-jobs-map.cc-tract-map .cc-county-lines path,.cc-map svg.ue-jobs-map.cc-tract-map .cc-county-lines path.on{stroke:#3a3a3a}
/* Highlighted county in gray, thicker than the other county lines (Robert, 2026-11-01: "the county borders should
   highlight gray"; was lime green). */
.cc-map svg.ue-jobs-map.cc-tract-map path.cc-county-hot{stroke:#3a3a3a;stroke-width:2.5px}
/* Licensed slots map: counties as islands (Robert, 2026-11-02). Each county border is drawn in the page color, so a
   gap opens between neighbors and the state keeps its shape. Picked (gold) and pointed-at (lime) outlines sit on top. */
.cc-map svg.ue-jobs-map.cc-islands g path:not(.hit-target),
.cc-map svg.ue-jobs-map.cc-islands g:hover path:not(.hit-target),
.cc-map svg.ue-jobs-map.cc-islands g:focus path:not(.hit-target),
.cc-map svg.ue-jobs-map.cc-islands g.cc-picked path:not(.hit-target),
.cc-map svg.ue-jobs-map.cc-islands g.cc-hot path:not(.hit-target),
.cc-map svg.ue-jobs-map.cc-islands g.mi-map-nodata path{stroke:var(--page-bg);stroke-width:3px;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.cc-map svg.ue-jobs-map.cc-islands .cc-island-outlines path{fill:none;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.cc-map svg.ue-jobs-map.cc-islands .cc-island-outlines path.cc-island-picked{stroke:#d4a83a;stroke-width:2px}
.cc-map svg.ue-jobs-map.cc-islands .cc-island-outlines path.cc-island-hot{stroke:#39ff14;stroke-width:3px}
/* Child Care by County tract map: counties as islands (Robert, 2026-11-02). */
.cc-map svg.ue-jobs-map.cc-tract-map.cc-islands-tracts .cc-county-lines path:not(.cc-county-down),
.cc-map svg.ue-jobs-map.cc-tract-map.cc-islands-tracts .cc-county-lines path.on:not(.cc-county-down){stroke:var(--page-bg);stroke-width:3px;stroke-linejoin:round}
/* One grade at a time on the tract map (Robert, 2026-11-02): a centered row of site buttons above the map. */
.cc-grade-pick{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:34px 0 10px}
.cc-grade-pick button{border-radius:6px}
/* People in the picked grade's tracts, under the grade buttons (Robert, 2026-11-02). */
.cc-grade-pop{margin:0 0 8px;text-align:center;color:var(--forest);font-size:14px;line-height:1.5}
.cc-grade-pop-note{display:block;color:var(--muted);font-size:12px}
/* Grade buttons in their map colors, dark text; the chosen one with a heavy dark outline (Robert, 2026-11-02). */
.cc-grade-pick .cc-grade-btn{color:var(--ink);border:2px solid transparent}
.cc-grade-pick .cc-grade-btn:hover:not(:disabled){filter:brightness(.95)}
.cc-grade-pick .cc-grade-btn.on{border:3px solid var(--navy)}
/* Child Care Deserts tab: How OCFS Counts (Robert, 2026-11-02). */
.cc-deserts .cc-deserts-sub{margin:18px 0 6px;font:700 16px var(--font-title);color:var(--title-navy)}
.cc-deserts .cc-deserts-types{margin:0 0 8px;padding-left:22px}
/* The children-per-slot equation on its own line (Robert, 2026-11-02). */
.cc-deserts p.cc-equation{margin:4px 0 14px 24px}
/* Totaling grid for the desert tracts, under the grade buttons (Robert, 2026-11-02). */
.cc-total-wrap{max-width:780px;margin:0 auto 10px}
.cc-total-controls{display:flex;justify-content:flex-end;margin:0 0 4px}
.cc-grid.cc-total-grid{width:100%}
.cc-grid.cc-total-grid thead tr:not(.cc-group-row) th{position:static}
.cc-grid.cc-total-grid td,.cc-grid.cc-total-grid th{padding:6px 12px;font:13px var(--font-body);color:var(--ink)}
.cc-grid.cc-total-grid thead th{font:700 11px var(--font-body)}
.cc-grid.cc-total-grid tbody tr{border-bottom:1px solid var(--rule)}
.cc-grid.cc-total-grid tr.cc-total-row{cursor:default;border-top:2px solid var(--rule-strong)}
.cc-grid.cc-total-grid tr.cc-total-row th,.cc-grid.cc-total-grid tr.cc-total-row td{font-weight:700}
.cc-total-wrap .cc-grade-pop-note{display:block;text-align:center;color:var(--muted);font-size:12px;margin:4px 0 0}
/* Upstate compared with the rest of New York (Robert, 2026-11-02). */
.cc-compare{max-width:1100px;margin:6px 0 24px}
.cc-compare .cc-grid.cc-compare-grid tbody tr{cursor:default}
.cc-compare .cc-grade-pop-note{display:block;color:var(--muted);font-size:12px;margin:6px 0 0}
/* Tab 3 label in small capitals (Robert, 2026-11-02). */
.cc-tabs button.cc-tab-smallcaps{font-variant:small-caps}
/* Grid download controls on a transparent tile (Robert, 2026-11-02). */
.cc-page .download-control{background:transparent;border-top:0;padding:0 0 2px}

/* Side by side (Robert, 2026-11-03): the tract map on the left, the totals and Upstate Compared grids on the right,
   always visible above the tabs. Stacks under 1160px. */
.cc-top{display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);gap:32px;align-items:start;margin:14px 0 0}
.cc-top .cc-map.bb-map-large{margin:0}
.cc-top .cc-map.bb-map-large .ue-jobs-map{height:auto;width:100%;max-height:none}
.cc-top .cc-grade-pick{justify-content:flex-start}
.cc-top-data .ue-experiment-heading{margin:0 0 6px}
.cc-top-data .cc-compare{max-width:none;margin:22px 0 0}
.cc-top-data .cc-grid.cc-total-grid th,.cc-top-data .cc-grid.cc-total-grid td{padding:6px 8px}
@media (max-width:1160px){.cc-top{grid-template-columns:minmax(0,1fr)}}

/* Grid defaults on every grid on this page (site defaults): no white fill, no row shading, thin rules between rows. */
.cc-page table.cc-grid,.cc-page .cc-grid tbody tr,.cc-page .cc-grid tbody tr:nth-child(even),.cc-page .cc-grid tbody th,.cc-page .cc-grid tbody td{background:transparent}
.cc-page .cc-grid tbody th,.cc-page .cc-grid tbody td{border-bottom:1px solid var(--rule)}
.cc-page .cc-grid thead th{background:#f7f9f7}
.cc-page .cc-grid tr.cc-total-row th,.cc-page .cc-grid tr.cc-total-row td{border-top:2px solid var(--rule-strong)}
/* Section titles over the grids: the site's h2 (20px bold navy, title font), like "How Many Places Are Child Care Deserts". */
.cc-page h2.cc-h2{margin:0 0 6px;color:var(--title-navy);font:700 20px/1.2 var(--font-title);text-transform:none;letter-spacing:0}
.cc-page .cc-grid .sc-left{text-align:left}
.cc-page .cc-compare-grid tbody th{white-space:nowrap}
.cc-page h2.cc-h2,.cc-page h2.cc-h2 span{font-size:20px}
.cc-page h2.cc-h2 .ue-title-cap{font-size:1.22em}
.cc-page .cc-top-data h2.cc-h2{margin:0 0 6px}
/* Map mouseover label to the right of the pointer, not centered over it (Robert, 2026-11-03); this page only. */
.ue-jobs-map-hover-label{transform:translate(14px,-50%)}
/* County finder on the Counties grid (Robert, 2026-11-03): search box and % Desert Tracts dropdown, the site's 36px,
   6px-corner controls with the blue border (same look as the Voting District Map's smart search). */
.cc-finder{align-items:center;gap:10px;flex-wrap:wrap}
.cc-finder-gap{flex:1}
.cc-find,.cc-band{height:36px;border:2px solid var(--blue);border-radius:6px;background:#fff;color:var(--title-navy);font:700 12px var(--font-body);padding:0 8px;box-sizing:border-box}
.cc-find{width:260px}
.cc-find-hits{margin:0 0 6px;color:var(--blue);font-weight:700;font-size:12px}
/* Care outside the count tab (Robert, 2026-11-03): question heading in italics; Sources under the text; long links wrap. */
.cc-h3-question{font-style:italic}
.cc-sources-h{margin:18px 0 6px;color:var(--title-navy);font:700 15px var(--font-title)}
.cc-sources a{color:var(--blue);overflow-wrap:anywhere}
.cc-sources{list-style:decimal;padding-left:4px}

/* Totals grids are black site-wide now (app/globals.css, --total-grid-text; Robert, 2026-11-05). */
