/* Prisons and Jails page (Robert, 2026-11-15). Map in the NY Knick Map style (Site Defaults, Map styles): upstate
   counties map blue #2e5c9e with gold #d4a83a lines, downstate grey #b9c1c8 with names #5f6b76, frame #2e5c9e, labels
   gold var(--map-label-gold) bold about 10px with a navy outline. */
.pr-map-grid{display:block}
.pr-map-wrap{max-width:1045px}
.pr-map-grid .pr-list{margin-top:24px}
.pr-list .water-grid-scroll{max-height:640px;overflow:auto}
/* Scroll bars always showing (Robert, 2026-11-29: "I see no sideways scroll, why can't [we] add one"): a Mac hides
   scroll bars until you scroll, so the cut-off columns gave no hint. Styled bars stay visible in Chrome and Safari;
   Firefox gets thin bars. The summary table scrolls in its own box instead of pushing the page sideways. */
.pr-summary-scroll{overflow-x:auto;max-width:100%}
:is(.pr-list .water-grid-scroll,.pr-place-scroll,.pr-summary-scroll){scrollbar-width:thin;scrollbar-color:#8da697 #eef2ef}
:is(.pr-list .water-grid-scroll,.pr-place-scroll,.pr-summary-scroll)::-webkit-scrollbar{width:12px;height:12px;-webkit-appearance:none}
:is(.pr-list .water-grid-scroll,.pr-place-scroll,.pr-summary-scroll)::-webkit-scrollbar-track{background:#eef2ef}
:is(.pr-list .water-grid-scroll,.pr-place-scroll,.pr-summary-scroll)::-webkit-scrollbar-thumb{background:#8da697;border-radius:6px;border:2px solid #eef2ef}
.pr-list td.num,.pr-list th.num{text-align:right;font-variant-numeric:tabular-nums}
/* Narrow columns (Robert, 2026-11-29: "you can narrow the columns on the grid to show more"): every column but Facility
   shrinks to its widest entry; Facility takes the rest, so names wrap less and more rows fit. */
.pr-list .water-grid-scroll table :is(th,td):not(:first-child){width:1%}
.pr-list .water-grid-scroll table :is(th,td):first-child{min-width:12em}
.pr-list .water-grid-scroll table :is(th,td):nth-child(2){max-width:7.5em}
.pr-list .water-grid-scroll table td:nth-child(n+3){white-space:nowrap}
.pr-list .water-grid-scroll table th{white-space:normal}
.pr-list .water-grid-scroll table :is(th,td){padding-left:6px;padding-right:6px}
.pr-map-frame{position:relative;border:2px solid #2e5c9e;background:#fff}
.pr-map-frame svg{display:block;width:100%;height:auto}
.pr-map-download{position:absolute;top:6px;right:6px;z-index:1}
.pr-county{fill:#2e5c9e;stroke:#d4a83a;stroke-width:1}
.pr-grey{fill:#b9c1c8;stroke:#fff;stroke-width:.8}
.pr-county-labels text{font:700 10px var(--font-body);fill:var(--map-label-gold);stroke:none;text-anchor:middle;pointer-events:none}
.pr-county-labels text.grey{fill:#5f6b76;stroke:none}
.pr-hit{cursor:pointer}
.pr-marker{stroke-width:1.4}
.pr-marker.closed{stroke-width:2}
.pr-marker.on{stroke:#ffe066;stroke-width:2.4}
.pr-facility-label{font:700 12px var(--font-body);fill:var(--map-label-gold);stroke:none;pointer-events:none}
/* Mouse-over card on the map (2026-11-29): the site's plain tip, white with a thin dark rule, square, no shadow. */
.pr-tip rect{fill:#fff;stroke:var(--rule-strong);stroke-width:1}
.pr-tip-name{font:700 13px var(--font-body);fill:var(--title-navy)}
.pr-tip-line{font:12px var(--font-body);fill:var(--ink)}
/* The grid row pointed at, lit like the picked one but lighter. */
.pr-list tr.pr-hot td{background:var(--wash)}
.pr-list tbody tr{cursor:pointer}
.pr-types{display:flex;flex-wrap:wrap;gap:6px 18px;margin:6px 0 10px}
.pr-types label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.pr-pending{color:var(--blue);font-weight:700;margin:6px 0 10px}
.pr-master{margin-top:28px}
.pr-list tbody tr{cursor:pointer}
.pr-list tbody tr:hover{background:var(--wash)}
.pr-list tbody tr.picked{background:#ffe066;font-weight:700}
.pr-detail{border-top:1px solid var(--rule);padding-top:12px}
.pr-detail dl{display:grid;grid-template-columns:140px 1fr;gap:6px 12px}
.pr-detail dt{font-weight:700}
.pr-hint{color:var(--blue);font-weight:700}

/* Map 5% smaller (Robert, 2026-11-15): 1045px wide, was 1100; its source line follows its right edge. */
.pr-closed-key{display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
/* Grid to the right of the map, its top level with the map frame's (Robert, 2026-11-16: "shrink the grid enough to put
   it to the right of the map ... align top of grid with top of map frame"). Under the map below 1400px. */
@media (min-width:1400px){
  .pr-map-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px;align-items:start}
  .pr-map-wrap{max-width:none}
  .pr-map-grid .pr-list{margin-top:0}
  .pr-list .water-grid-scroll{max-height:none;height:calc(var(--pr-map-h,700px) - 72px)}
  .pr-list table{font-size:12px}
  .pr-list th,.pr-list td{padding-left:6px;padding-right:6px}
}
.prisons-page .wv-sort i.on{color:var(--blue);font-size:13px;font-weight:700}.prisons-page th.num .wv-sort{justify-content:flex-end}
.pr-summary{width:100%;margin-top:28px;border-collapse:collapse;font-size:12px;color:var(--total-grid-text,#000)}
.pr-summary th{font:700 11px var(--font-body);letter-spacing:.04em;text-transform:uppercase;text-align:left;background:#f7f9f7;border-bottom:1px solid var(--rule-strong);padding:5px 6px}
.pr-summary td{padding:5px 6px;border-bottom:1px solid var(--rule)}
.pr-summary .num{text-align:right;font-variant-numeric:tabular-nums}
.pr-summary tfoot td{border-top:2px solid var(--rule-strong);font-weight:700}
.pr-sum-note{color:var(--muted);font-weight:400}
/* Map controls in the frame's top left corner (2026-11-16). */
.pr-map-controls{position:absolute;top:8px;left:8px;z-index:2;background:rgba(255,255,255,.95);border:1px solid #2e5c9e;padding:6px 10px}
.pr-map-controls .pr-types{display:flex;flex-direction:column;gap:3px;margin:0;font-size:12px}
.pr-map-controls .pr-types label{gap:5px;white-space:nowrap}
.pr-map-controls .pr-closed-key{margin-top:3px;padding-top:4px;border-top:1px solid var(--rule)}
.pr-map-controls svg{width:16px!important;height:16px!important;display:inline-block;flex:0 0 auto}
.pr-context{opacity:.6}.pr-context g{cursor:default}
/* Grid views: Facilities, By County, By Town or City (2026-11-16). */
.pr-by{display:flex;gap:6px;margin:0 0 8px}
.pr-by button{height:30px;padding:0 14px;border:1px solid var(--blue);border-radius:6px;background:#fff;color:var(--blue);font:700 12px var(--font-body);cursor:pointer}
.pr-by button.on{background:var(--blue);color:#fff}
.pr-place-scroll{overflow:auto}
@media (min-width:1400px){.pr-list .pr-place-scroll{max-height:none;height:calc(var(--pr-map-h,700px) - 110px)}}
.pr-place{font-size:12px}
.pr-place th.grp{text-align:center;border-bottom:1px solid var(--rule)}
.pr-place td.num,.pr-place th.num{text-align:right;font-variant-numeric:tabular-nums}
.pr-place th.num .wv-sort{justify-content:flex-end}
.pr-place td:first-child{white-space:nowrap}
.pr-place thead th{position:sticky;top:0;z-index:1}
.pr-place thead tr+tr th{top:26px}
.pr-place tbody tr{cursor:pointer}
.pr-place tbody tr:hover{background:var(--wash)}
.pr-place tbody tr.picked{background:#ffe066;font-weight:700}
.pr-place-total td{position:sticky;bottom:0;background:#fff;color:#000;font-weight:700;border:0!important;box-shadow:inset 0 2px 0 var(--rule-strong),inset 0 -1px 0 var(--rule-strong),inset 0 -3px 0 #fff,inset 0 -4px 0 var(--rule-strong)}
.pr-place-detail{margin-top:14px}
.pr-place-detail h3{margin:0 0 6px;color:var(--title-navy);font-size:16px}
.pr-place-detail table{width:100%;border-collapse:collapse;font-size:12px}
.pr-place-detail th{font:700 11px var(--font-body);letter-spacing:.04em;text-transform:uppercase;text-align:left;background:#f7f9f7;border-bottom:1px solid var(--rule-strong);padding:5px 6px}
.pr-place-detail td{padding:5px 6px;border-bottom:1px solid var(--rule)}
.pr-place-detail .num{text-align:right}
.pr-kind{white-space:nowrap}.pr-kind svg{width:14px;height:14px;vertical-align:-2px;margin-right:5px}
.pr-shade-select{height:30px;border-radius:6px;margin-left:10px;font-size:12px}
