:root{--sc-navy:#082946;--sc-green:#34563e;--sc-green-dark:#123e2f;--sc-ink:#1b3144;--sc-muted:#607488;--sc-line:#bdcbbf;--sc-wash:#f3f7f4;--sc-radius:18px;--sc-blue:#075b9f}
/* --sc-blue is the site's instructional/call-to-action color -- text that
   tells the user to click or act (e.g. "Select County", sign-in prompts),
   kept distinct from --sc-green/--sc-navy, which are reserved for
   data/body text. Apply to new CTA text going forward instead of navy or
   green. */
.sc-page{max-width:var(--page-max);margin:0 auto;padding:14px 32px 70px;color:var(--forest,#1f5138);font-family:var(--font-body)}
.sc-page *{box-sizing:border-box}
.sc-page .eyebrow{margin:0 0 3px;color:var(--forest,#1f5138);font-size:11px;font-weight:800;letter-spacing:.11em}

/* StatBook badge -- mountain mark + wordmark, sat above a Statpack page's
   big title. Same pattern as the site header's UpstateStats.com logo
   (AppNavigation.tsx / --forest in globals.css): forest green, enlarged
   first letter of each word, baseline flush with the mark's bottom edge,
   text set close against the mark. Reference implementation -- reuse on
   every future Statpack page rather than re-deriving this. */
.statbook-badge{display:inline-flex;align-items:flex-end;gap:4px;margin:0 0 3px}
.statbook-badge-mark{display:block;fill:var(--forest,#1f5138)}
.statbook-badge-text{color:var(--forest,#1f5138);font:800 12px/1 var(--font-body);letter-spacing:.06em}
.statbook-badge-cap{font-size:15px}

.sc-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;padding-bottom:20px;border-bottom:2px solid var(--rule-strong)}
.sc-hero h1{margin:5px 0 7px;color:var(--title-navy);font:700 36px/1.08 var(--font-title)}
.sc-hero h1.ue-page-title{text-transform:uppercase;font-size:30px}
.ue-title-cap{font-size:37px}
.sc-hero p:last-child{max-width:760px;margin:0;color:var(--forest,#1f5138);font-size:14px;line-height:1.5}
.sc-related{margin:8px 0 0!important;font-size:12px!important}
.sc-related a{color:var(--sc-blue);font-weight:700;text-decoration:underline}
.sc-flag{padding:0;border:0;border-radius:0;background:transparent;color:var(--forest,#1f5138);font-size:11px;font-weight:800;white-space:nowrap}

.sc-controls{margin-top:14px;padding:14px 0;display:grid;grid-template-columns:1fr 1fr auto;gap:24px;align-items:start;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);background:transparent}
.sc-controls > div label{display:block;margin-bottom:6px;color:var(--sc-green);font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.sc-controls select{width:100%;height:42px;padding:0 11px;border:1px solid #8da697;border-radius:0;background:#fff;color:var(--sc-green-dark);font:700 13px var(--font-body)}
.sc-controls small{display:block;margin-top:6px;color:var(--sc-muted);font-size:11px}
.sc-starting-values{margin-top:10px;padding-top:8px;border-top:1px solid #dde5e0}
.sc-starting-values div{display:flex;justify-content:space-between;gap:10px;padding:3px 0;font-size:12px}
.sc-starting-values div span{color:var(--sc-muted)}
.sc-starting-values div b{color:var(--sc-navy)}
.sc-criteria{margin:0;padding:0;border:0}
.sc-criteria legend{margin-bottom:6px;padding:0;color:var(--sc-green);font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.sc-criterion-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.sc-criteria label{display:flex;align-items:center;gap:8px;color:var(--sc-ink);font-size:13px;font-weight:700}
.sc-criteria input[type=checkbox]{width:16px;height:16px}
.sc-tolerance{gap:5px;color:var(--sc-muted)!important;font-size:11px!important;font-weight:600!important;white-space:nowrap}
.sc-tolerance input{width:44px;height:24px;padding:0 4px;border:1px solid #8da697;border-radius:0;font-size:11px;text-align:center}
.sc-match-mode{margin:10px 0 0;padding:10px 0 0;border:0;border-top:1px solid #dde5e0}
.sc-match-mode legend{margin-bottom:6px;padding:0;color:var(--sc-green);font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.sc-match-mode label{display:flex;align-items:center;gap:8px;margin-bottom:5px;color:var(--sc-ink);font-size:12px}

.sc-disclosure{margin-top:10px;padding:12px 0 12px 16px;border-left:4px solid #e1b361;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);border-radius:0;background:transparent}
.sc-disclosure strong{display:block;margin-bottom:6px;color:#6b3f00;font-size:13px}
.sc-disclosure p{margin:0;max-width:900px;color:#5c4419;font-size:13px;line-height:1.6}

.sc-footnotes{margin-top:10px;padding:12px 20px;border-top:1px solid var(--sc-line)}
.sc-footnotes ol{margin:0;padding-left:18px;color:var(--forest,#1f5138);font-size:11px;line-height:1.6}
.sc-footnotes a{color:var(--sc-blue)}
.ue-trend-chart sup a{color:var(--sc-blue);text-decoration:none;font-weight:700}

.sc-table-panel{position:relative;margin-top:12px;border:0;border-radius:0;background:transparent;overflow:visible}
.sc-table-panel > header{padding:17px 19px;border-bottom:1px solid var(--rule);background:transparent}
.sc-table-panel h2{margin:4px 0 5px;color:var(--title-navy);font:700 20px/1.2 var(--font-title)}
/* This heading is an instruction ("Click to see...") rather than a data
   label, so it takes the CTA-blue token instead of the default navy. */
.ue-map-panel h2{color:var(--sc-blue)}
.sc-table-panel header p{margin:0;color:var(--forest,#1f5138);font-size:11px}
/* "Subtitle" = the description line under each panel's h2 (e.g. "As of
   June 2026. Updated monthly...") -- italic per explicit request,
   distinct from the h2 title itself. Excludes .eyebrow (the small bold
   uppercase kicker like "TREND" above the h2 -- a label, not a
   subtitle) and .ue-panel-title (the Comparison panel's own title is a
   <p>, not an <h2>, so it's also a header p and would otherwise go
   italic as an unintended "main title" side effect). Both caught live
   on the first attempt. */
.sc-table-panel header p:not(.eyebrow):not(.ue-panel-title){font-style:italic}
.sc-empty{padding:30px 19px;color:var(--forest,#1f5138);font-size:13px}

/* LoadingGrid -- shown inside a panel while its data is still in flight,
   so a slow first request (cold database compute, etc.) reads as "loading"
   rather than a blank/broken panel. Reusable across every future Statpack. */
.loading-grid-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:40px 19px}
.loading-grid{display:grid;grid-template-columns:repeat(3,10px);grid-template-rows:repeat(3,10px);gap:5px}
.loading-grid span{width:10px;height:10px;border-radius:2px;background:var(--sc-green);opacity:.25;animation:loading-grid-pulse 1.2s ease-in-out infinite}
@keyframes loading-grid-pulse{0%,100%{opacity:.25}50%{opacity:1}}
.loading-grid-label{color:var(--forest,#1f5138);font-size:12px}
.sc-table-wrap{overflow:auto}
.qcew-sector-filter{width:100%;max-width:360px;height:36px;padding:0 11px;border:1px solid #8da697;border-radius:0;background:#fff;color:var(--forest,#1f5138);font-size:13px}

.qcew-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px}
.qcew-pagination button{min-width:32px;height:32px;padding:0 8px;border:1px solid #8da697;border-radius:0;background:#fff;color:var(--forest,#1f5138);font-size:12px;cursor:pointer}
.qcew-pagination button:disabled{opacity:.4;cursor:default}
.qcew-pagination button.qcew-page-current{background:var(--forest,#1f5138);border-color:var(--forest,#1f5138);color:#fff;font-weight:700}

.qcew-totals-row td{border-top:2px solid var(--forest,#1f5138);border-bottom:0;background:#eaf2ed;color:var(--forest,#1f5138);font-weight:800}
.sc-table-panel table{width:100%;border-collapse:collapse;font-size:12px}
.sc-table-panel th,.sc-table-panel td{padding:11px 14px;border-bottom:1px solid var(--rule);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.sc-table-panel thead th{background:transparent;border-bottom:2px solid var(--rule-strong);color:var(--forest,#1f5138);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.sc-table-panel th:first-child,.sc-table-panel td:first-child{text-align:left}
.sc-table-panel tbody th{color:var(--sc-navy);text-align:left;font-weight:700}
.sc-table-panel td.sc-left{text-align:left;color:var(--forest,#1f5138)}
.sc-inband{display:inline-block;padding:2px 8px;border-radius:0;background:#dcefe2;color:#1e6b3f;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.sc-outband{display:block;max-width:260px;white-space:normal;color:#8a5a12;font-size:11px;line-height:1.4}
.sc-table-panel tbody tr:nth-child(even){background:#fafcfb}
.sc-table-panel tbody tr:hover{background:#e5f1e9}
.sc-table-panel footer{padding:10px 18px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;border-top:1px solid var(--rule);background:transparent;color:#697c71;font-size:11px}

.sc-definition{margin-top:20px;padding:20px 0;border-top:2px solid var(--rule-strong);border-bottom:1px solid var(--rule);border-radius:0;background:transparent}
.sc-definition h2{margin:5px 0 12px;color:var(--sc-green-dark);font:700 20px/1.2 var(--font-body)}
.sc-definition p{margin:0 0 12px;max-width:900px;color:#354d40;font-size:13px;line-height:1.65}
.sc-definition p:last-child{margin-bottom:0}
.sc-formula-note{padding-top:10px;border-top:1px dashed #cbd8ce;color:#697c71!important;font-size:11px!important}

.sc-source{margin-top:16px;padding:14px 0;border:0;border-top:1px solid var(--rule);border-radius:0;background:transparent}
.sc-source-head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;flex-wrap:wrap}
.sc-source h2{margin:2px 0;color:var(--sc-navy);font-size:15px}
.sc-source-links{flex:none;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px 16px;align-items:center;max-width:640px}
.sc-source a{color:var(--sc-blue);font-size:11px;font-weight:800;white-space:nowrap;text-decoration:underline}
.sc-source > p{margin:10px 0 0;max-width:900px;color:#62766a;font-size:11px;line-height:1.6}

.ue-map-panel > div:not(header){padding:19px}
.ue-map-loading{padding:30px 19px;color:var(--sc-muted);font-size:13px}
.ue-map-wrap{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:20px;align-items:start}
.ue-map-svg{width:100%;height:auto;border:0;border-radius:0;background:#f6f9f7}
.ue-map-county-path{stroke:#fff;stroke-width:.4}
.ue-map-county-path:hover{stroke:var(--sc-navy);stroke-width:1.1}
.ue-map-state-borders{fill:none;stroke:#000;stroke-width:1;stroke-linejoin:round;pointer-events:none}
.ue-map-legend{padding:14px 16px;border:0;border-top:1px solid var(--rule);border-radius:0;background:transparent}
.ue-map-legend strong{display:block;margin-bottom:10px;color:var(--sc-navy);font-size:12px}
.ue-map-bins{display:grid;gap:6px}
.ue-map-bin{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--sc-ink)}
.ue-map-bin i{width:14px;height:14px;flex:none;border-radius:3px}
.ue-map-note{margin:12px 0 0;padding-top:10px;border-top:1px dashed #cbd8ce;color:var(--sc-muted);font-size:11px;line-height:1.5}
.ue-map-title{margin:0 0 14px;text-align:center;color:var(--sc-navy);font-size:15px;font-weight:700}

.ue-top-row{display:flex;gap:8px;align-items:stretch;margin-top:12px}
.ue-top-row > .sc-table-panel{margin-top:0;display:flex;flex-direction:column}
.ue-anchor-panel{flex:none;max-width:280px}
.ue-trend-panel{flex:1;min-width:0}
/* County locator map, moved up to sit to the right of the fake grid
   (Anchor + Comparison) instead of beside the Trend chart below --
   narrower here (260px vs the 380px it used down in .ue-jobs-body)
   since it now shares the row with the comparison grid rather than
   having the full row width to itself. */
/* 286px = 260px + 10%, per explicit request. Static number, not
   measured -- see page.tsx's mapSquareSize revert comment for why a
   JS-driven "grow to fit the row" version is not coming back here. */
.ue-top-row-map{flex:none;width:286px;display:flex;flex-direction:column}
/* Base .ue-jobs-map rule pushes the map to the bottom of its column
   (margin-top:auto) to bottom-align with a taller Trend chart sibling
   down in .ue-jobs-body -- not wanted here, where it should just sit
   right under its own title instead of leaving a gap above it. */
.ue-top-row-map .ue-jobs-map{margin-top:0}
.ue-comparison-panel{flex:1;min-width:0}
.ue-anchor-panel .ue-panel-title{margin:0 0 10px;color:var(--title-navy);font:700 15px/1.2 var(--font-title);text-transform:uppercase}
.ue-comparison-panel .ue-comparison-title{margin:0 0 10px}
.ue-comparison-panel .ue-comparison-title,
.ue-trend-panel h2,
.ue-jobs-panel h2,
.ue-summary-panel h2{color:var(--title-navy);font:700 18px/1.2 var(--font-title);text-transform:uppercase}
.ue-anchor-panel .ue-panel-title .ue-title-cap{font-size:18px}
.ue-comparison-panel .ue-comparison-title .ue-title-cap,
.ue-trend-panel h2 .ue-title-cap,
.ue-jobs-panel h2 .ue-title-cap,
.ue-summary-panel h2 .ue-title-cap{font-size:22px}
.ue-summary-panel{margin-top:12px;padding:14px 19px 16px}
.ue-summary-panel header{padding:0;border:none;background:none}
.ue-summary-text{margin:2px 0 8px;color:var(--forest,#1f5138);font:400 15px/1.55 var(--font-body)}
/* Two columns, breaking right before the seasonality sentence ("The
   switch to...") per explicit request -- .ue-summary-text keeps its own
   margins, so gap alone (not the text margins) controls the column
   spacing. Stacks to one column on narrow viewports, same breakpoint
   as the rest of this page's row->column collapses. */
.ue-summary-columns{display:flex;gap:24px;align-items:flex-start}
.ue-summary-columns .ue-summary-text{flex:1;min-width:0}
.ue-anchor-panel > header{border-radius:0}
.ue-comparison-panel > header{display:flex;flex-direction:column;flex:1;border-radius:0}

/* Vertical-compaction pass, 2026-09-06 -- shrink panel heights without
   moving anything horizontally or reordering content. Scoped to this
   page's own classes only, so the shared .sc-table-panel/table rules
   (used by similar-counties, county-unemployment-finder) are untouched.
   Original values, for reverting: header padding was 17px 19px (top/bottom
   17px); .ue-anchor-stack row padding was 9px 16px (top/bottom 9px);
   .ue-jobs-panel th/td padding was 11px 14px (top/bottom 11px);
   .ue-summary-panel padding was 14px 19px 16px; .ue-trend-chart svg
   height was 340px. */
.ue-anchor-panel > header,
.ue-comparison-panel > header,
.ue-trend-panel > header,
.ue-jobs-panel > header,
.ue-summary-panel > header,
.ue-private-jobs-panel > header{padding-top:9px;padding-bottom:9px}
.ue-anchor-stack > div{padding-top:5px;padding-bottom:5px}
.ue-jobs-panel th,
.ue-jobs-panel td{padding-top:6px;padding-bottom:6px}
.ue-summary-panel{padding-top:8px;padding-bottom:8px}
.ue-trend-chart svg{height:340px}

/* Column-width tightening pass, 2026-09-11 -- the shared .sc-table-panel
   table rule forces width:100%, and with table-layout's default "auto"
   that spare width gets distributed across every column, not just the
   Industry one -- so NAICS Code, a 2-5 character value, was rendering
   with far more padding around it than its content needs (same for the
   numeric columns). Scoped to .ue-jobs-panel only, so the shared table
   rule (and similar-counties/county-unemployment-finder, which use the
   same .sc-table-panel table but should keep filling their panel width)
   is untouched. Letting the table shrink-wrap to its content removes the
   stretch outright; the reduced side padding on Industry Code/Employment/
   Avg Weekly Wage/YoY Change tightens it further without touching the
   Industry column's own padding, since long titles there still need the
   room. */
.ue-jobs-panel table{width:auto;max-width:100%}
.ue-jobs-panel th:not(:first-child),
.ue-jobs-panel td:not(:first-child){padding-left:10px;padding-right:10px}

/* County locator map, 2026-09-11 -- fills the horizontal space the table
   stopped using above. No left/right padding on .ue-jobs-body itself: the
   table wrap was already flush against the panel edge (only the cells'
   own padding created its left inset), so adding padding here would
   double up and misalign it against the header above. The map side gets
   its own right padding instead, to land at the same 19px inset as the
   header. */
/* align-items:stretch (not flex-start) so .ue-jobs-map-wrap's height
   matches .ue-jobs-table-col's -- needed so the map itself, anchored to
   the bottom of that wrapper via flex, lands flush with the bottom of the
   table grid rather than just the top of the row. Flush right (no right
   padding) puts the map's own right edge on the panel's right border, per
   explicit request -- no longer matched to the header's 19px inset. */
/* Private Sector Jobs trend sits beside the Jobs by Industry table
   (narrower) instead of below it, filling the space the table stopped
   needing once its own county map moved up to the main Trend chart. Both
   children keep their own .sc-table-panel margin-top, so no extra gap
   rule is needed here beyond the row's own 16px column gap. */
/* Jobs by Industry sizes to its own table's natural width (that table's
   .ue-jobs-table-inner is already width:max-content) rather than
   stretching to flex:1 -- it doesn't need the extra room, and previously
   that room just sat empty inside its own border instead of going
   anywhere useful. Private Sector Jobs takes whatever's left instead of
   a fixed 420px, per explicit request. */
.ue-jobs-and-private-row{display:flex;align-items:flex-start;gap:16px}
/* Fixed width, not flex:none (content-based sizing) -- flex:none let the
   table's own width:max-content dictate this panel's width, which meant
   changing pages (different industry name lengths) or counties changed
   this panel's width and so the Private Sector Jobs panel's width beside
   it too. A fixed width is stable regardless of content. */
.ue-jobs-and-private-row .ue-jobs-panel{flex:0 0 700px}
.ue-jobs-and-private-row .ue-private-jobs-panel{flex:1;min-width:380px;width:auto}
.ue-jobs-body{display:flex;align-items:stretch;gap:16px}
.ue-jobs-table-col{flex:1;min-width:0}
.ue-jobs-map-wrap{flex:none;width:380px;display:flex;flex-direction:column}
/* Title's own box (14px top padding + a 32px line-height, same numbers as
   .qcew-top-pagination's padding + its buttons' height) puts this text's
   bottom edge level with the bottom of that pagination row, per explicit
   request -- both sit at 46px from their shared row's top. */
.ue-jobs-map-title{margin:0;padding:20px 0 0;height:38px;line-height:38px;text-align:center;color:var(--sc-blue);font-size:15px;font-weight:800;letter-spacing:.02em}
.ue-jobs-map-svg-wrap{position:relative;flex:1;display:flex;flex-direction:column;min-height:0}
/* Floats with the cursor (left/top set inline from mouse position in
   JobsPanelCountyMap.tsx) rather than sitting in one fixed spot --
   pointer-events:none so it never itself becomes the hover/click target,
   and the -100%/-12px transform keeps it above-left of the cursor so the
   tooltip never sits under the pointer. */
.ue-jobs-map-hover-label{position:absolute;z-index:2;transform:translate(-50%,calc(-100% - 12px));padding:5px 9px;border-radius:3px;background:#123a2a;color:#fff;font-size:11px;font-weight:800;white-space:nowrap;pointer-events:none}
.ue-jobs-map{width:100%;height:auto;margin-top:auto;display:block}
/* Same hit-target pattern as HousingCountyMap.tsx (housing-map.css /
   housing-boundaries.css) -- a wide invisible stroke gives small counties
   a click/tap area bigger than their own visible boundary, without
   affecting how they're drawn.
   2026-09-11 fix: stroke-width without vector-effect:non-scaling-stroke is
   in SVG user-space units (the viewBox's own coordinate system), not CSS
   pixels. At this map's scale, several counties' own bounding boxes are
   only ~10-17 user units wide (Orleans ~10.8, Schoharie ~11.3, Seneca
   ~10.4) -- a 14-unit stroke (7 units past each edge, unscaled) was
   bigger than the counties themselves, so the invisible hit-target
   bled across neighboring counties entirely. Confirmed empirically:
   elementFromPoint at several small counties' own bbox centers resolved
   to a different, neighboring county. non-scaling-stroke locks the
   margin to real screen pixels regardless of viewBox scale, and 8px is
   sized to stay well inside even the smallest county at this map's
   current (520px) rendered width. */
/* County locator map rules moved to app/globals.css (2026-11-01). */
.ue-jobs-map-loading{width:380px;padding:30px 0 0;text-align:center;color:var(--sc-muted);font-size:11px}

/* Pagination (top + bottom) and the filter dropdown all live inside this
   wrapper, sized to the table's own rendered width (width:max-content --
   the table is the only intrinsically-sized child; the rows below are
   block-level so they match it exactly) rather than the full row width,
   which now also includes the map and would otherwise center/left-justify
   these controls against a wider span than the table itself, reading as
   shifted right of the table's actual edges. */
/* width:100% of a now-fixed-width parent (.ue-jobs-panel, see
   .ue-jobs-and-private-row below), not width:max-content -- max-content
   recalculated every time pagination changed pages (different industry
   rows have different text lengths), which visibly resized the Private
   Sector Jobs panel beside it every time someone clicked a page number.
   Confirmed live: "significant" resize on page 2. A fixed-width table
   column is stable regardless of which page or county is showing. */
.ue-jobs-table-inner{width:100%}
.qcew-top-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 0 0}
.ue-panel-controls{position:relative;flex:none;width:220px;height:28px}
/* Filter select left-justified, pagination centered relative to the same
   table width -- a 1fr/auto/1fr grid rather than flex so the two controls
   can have different alignments on one row without one pushing the other
   off-center. */
/* Was a 3-column grid (1fr auto 1fr) with an empty third track purely to
   balance the centered pagination -- fr tracks don't collapse to content
   size the way auto/max-content do, so under this row's ancestor
   (.ue-jobs-table-inner{width:max-content}) that empty fr column was
   ballooning the table's own computed max-content width to ~968px
   (confirmed via getBoundingClientRect: table itself only needed 696px,
   but .qcew-filter-row measured 968px). Position-based centering instead
   -- the absolutely positioned pagination doesn't contribute to the row's
   own intrinsic width at all, so max-content sizing now reflects what the
   table actually needs. */
.qcew-filter-row{position:relative;display:flex;align-items:center;padding:14px 0 16px}
.qcew-filter-row .qcew-pagination{position:absolute;left:50%;transform:translateX(-50%)}

/* Comparison strip: same <header> padding as the Anchor panel's header
   (inherited from ".sc-table-panel > header"), so each card's title lines
   up with "Select County" at the top of the row. No table/grid -- each
   county is its own card, name/rate/date stacked simply, no field labels,
   no dividers between cards, no per-cell tint (only the selected card as
   a whole is tinted, same as the Anchor panel has no such distinction
   to make since it only ever shows one county). flex:1 + align-items:
   stretch make the cards fill the same height as the Anchor panel
   (.ue-top-row is align-items:stretch), not just their natural content
   height. */
.ue-comparison-strip{display:flex;flex:1;align-items:stretch;overflow-x:auto;scrollbar-width:none}
.ue-comparison-strip::-webkit-scrollbar{display:none}
/* No card boxes -- a straight border-right line between areas, same idea
   as .ue-anchor-stack's row dividers, not a bordered/rounded tile. */
/* Only the first card carries field labels (see the JSX), so it needs
   room for the longest one ("Unemployed"/"Labor Force"); every other
   card only shows right-aligned values and can be much narrower. */
.ue-comparison-card{flex:1;min-width:80px;display:flex;flex-direction:column;padding:2px 0 12px;border-right:1px solid var(--sc-line)}
.ue-comparison-card:first-child{flex:none;min-width:210px}
.ue-comparison-card:last-child{border-right:0}
/* NY State and US aren't counties -- a distinct pale background sets them
   apart from the individual county columns at a glance. */
.ue-comparison-card--state{background:#e6ebf3}
.ue-comparison-card--national{background:#fbe7e5}
.ue-comparison-card--state .ue-anchor-stack,
.ue-comparison-card--national .ue-anchor-stack{background:transparent}
/* Horizontal padding lives on the title and on .ue-anchor-stack's own
   rows (16px, same as the Anchor panel's rows) rather than on the card
   container -- so the card's divider lines (both the dl's own border-top
   and each row's border-bottom, reused verbatim from .ue-anchor-stack)
   stay inset from the card's outer edge by that same 16px on their own,
   without a separate negative-margin trick. That's the "small
   symmetrical gap where vertical and horizontal lines meet": the lines
   simply never reach the card's true edge (where the border-right
   divider between cards sits) in the first place. */
/* min-height reserves room for two lines (34px) so a long county/state name
   (e.g. "Berkshire County, MA") can wrap instead of truncating or shrinking
   -- the reduced bottom margin (14.25px vs the old 31.25px) keeps the total
   reserved height the same as before, so every card's stat rows still
   start at the same Y position whether its own title wraps or not. */
/* min-height raised from 34px to 51px (fits 2 wrapped lines, not just 1) --
   the narrower columns (110px, see .ue-comparison-card--county) make longer
   names like "St. Lawrence County" wrap to 2 lines while shorter neighbor
   names stay on 1, and a min-height that only fit 1 line meant whichever
   card wrapped had its own rows start lower than its neighbors', breaking
   row-for-row alignment within the comparison strip itself (confirmed live:
   St. Lawrence's Rate/Change/etc. values no longer lined up with Clinton/
   Essex/Hamilton's). Every card now reserves the same title height whether
   its name wraps or not. */
.ue-comparison-card .ue-comparison-card-title{margin:13.25px 0 2px;padding:0 16px;color:var(--forest,#1f5138);font:700 13px/1.3 var(--font-body);white-space:normal;min-height:51px;display:flex;align-items:flex-start}
/* Quick per-neighbor z-score, directly under its county name in the
   Comparison table -- a simpler, denser companion to the bar chart below
   (same underlying number, computed in comparisonAnomalies). Blue for
   typical/unusually-lower; red specifically for unusually higher, since
   that's the direction that matters for unemployment. */
.ue-comparison-card .ue-zscore-inline{margin:0 0 12.25px;padding:0 16px;color:var(--sc-blue,#0b69c7);font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
.ue-comparison-card .ue-zscore-inline.high{color:#c0392b}
.ue-comparison-card .ue-comparison-date{margin:3px 0 0;padding:0 16px;color:var(--forest,#1f5138);font-size:11px;white-space:nowrap}
.ue-anchor-stack{display:flex;flex-direction:column;margin:0;border-top:1px solid var(--rule);background:transparent}
/* Real alignment with the Comparison panel's rows is now set by JS
   (page.tsx's useLayoutEffect, measuring both panels' actual row
   positions and setting this margin-top imperatively) -- a fixed CSS
   number here only ever matched whichever county name it happened to be
   tuned against, since the Comparison title's wrapped height varies with
   name length. This is just the pre-hydration fallback for the first
   paint, overwritten immediately once JS runs. */
.ue-anchor-panel > .ue-anchor-stack{margin-top:60px}
/* Anchor panel and Comparison panel share these rules directly now (not
   split into a base size + a Comparison-only override) -- Robert asked
   for the Anchor panel's labels/values to match the Comparison panel's,
   so the smaller/tighter Comparison treatment is just the one shared
   size for .ue-anchor-stack everywhere it's used. */
.ue-anchor-stack > div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:5px 16px;border-bottom:1px solid #e0e7e2}
.ue-anchor-stack > div:last-child{border-bottom:0}
.ue-anchor-stack dt{margin:0;color:var(--forest,#1f5138);font:400 11px/1.2 var(--font-body)}
/* margin-left:auto so a row with no dt (every Comparison column but the
   first, which alone keeps labels) still right-aligns its value instead
   of collapsing to the left -- relying on the labeled first column for
   meaning only works if every column's values land in the same spot. */
.ue-anchor-stack dd{margin:0 0 0 auto;color:var(--forest,#1f5138);font:700 12px/1.2 var(--font-body);text-align:right}
.ue-comparison-card:first-child{min-width:160px}
/* Narrower than the default flex:1/min-width:80px -- per explicit request,
   every neighbor county column except the first (which alone carries the
   row labels and needs the room) claims less of the row's width. State/
   National columns are untouched. */
.ue-comparison-card--county:not(:first-child){flex:0.6;min-width:64px;max-width:110px}
/* New York State and United States narrowed to the same width as the
   other (non-first) neighbor county columns, per explicit request. */
.ue-comparison-card--state,
.ue-comparison-card--national{flex:0.6;min-width:64px;max-width:110px}
/* Private Sector Jobs panel's download controls, directly above its
   chart (moved off the title area entirely, see PrivateJobsTrendPanel.tsx) --
   simpler than .qcew-top-pagination since there's no pagination to share
   the row with, just right-aligns the controls above the chart. */
.ue-panel-controls-row{display:flex;justify-content:flex-end;padding:0 19px}
.ue-comparison-controls{position:relative;min-height:80px}
/* Clamped to 2 lines (not just right-padded) -- a variable-length county
   name could otherwise wrap to 3 lines, growing this panel's header taller
   than the Anchor panel's fixed-offset row start can track, re-breaking
   row alignment for some county names but not others. Capping the title's
   own height keeps .ue-comparison-controls's total height constant at its
   80px min-height regardless of name length, which is what actually makes
   a single fixed Anchor offset valid for every county. */
/* Single line, not the 2-line clamp this used to need -- the row
   alignment that clamp was protecting (a fixed Anchor-panel offset
   sensitive to this title's wrapped height) is handled by a runtime
   measurement effect now (see the dropdown/anchorStack alignment
   effects in page.tsx), so a shorter, always-one-line title needs no
   height reservation of its own. margin-left:-3px matches
   .ue-county-select's own -3px so this title's left edge lines up with
   the dropdown's, both correcting for the same 3px gap between the
   header's 19px padding and the stat rows' 16px padding. */
.ue-comparison-controls .ue-comparison-title{margin-left:-3px;padding-right:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ue-anchor-note{margin:0;padding:10px 16px 16px;color:var(--forest,#1f5138);font-size:11px;line-height:1.4;border-radius:0}
.ue-anchor-note a{color:var(--sc-blue);font-weight:700;text-decoration:underline}
/* Stacked (label above dropdown), not side by side -- the dropdown's own
   left edge lines up with the stat labels below it (.ue-anchor-stack dt,
   16px in from the panel) instead of sitting wherever the label's width
   happened to push it. margin-left:-3px corrects for the 3px gap between
   this header's own left padding and the stat rows' own 16px padding. */
.ue-county-select{margin-top:2px;margin-left:-3px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.ue-county-select select{height:38px;padding:0 10px;border:1px solid #8da697;border-radius:0;background:#fff;font:700 13px var(--font-body);color:var(--sc-blue)}

.ue-trend-chart svg{display:block;width:100%;height:340px}
.ue-trend-chart line.grid{stroke:#e0e7e2;stroke-width:1}
.ue-trend-chart text.axis-label{text-anchor:end;font-weight:700;fill:var(--forest,#1f5138);font-size:11px}
.ue-trend-chart text.chart-watermark{text-anchor:middle;font:800 64px var(--font-body);letter-spacing:.08em;fill:#1f5138;opacity:.12;pointer-events:none}
.ue-trend-chart path.trend-line{fill:none;stroke:var(--sc-green);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ue-trend-chart path.trend-line-reference{fill:none;stroke:#c0392b;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ue-trend-panel .ue-trend-chart path.trend-line,
.ue-trend-panel .ue-trend-chart path.trend-line-reference,
.ue-private-jobs-panel .ue-trend-chart path.trend-line{stroke-width:1.6}
.ue-trend-panel .ue-trend-chart text.axis-label,
.ue-trend-panel .ue-trend-chart text.period-label,
.ue-private-jobs-panel .ue-trend-chart text.axis-label,
.ue-private-jobs-panel .ue-trend-chart text.period-label{fill:#0c1f15;font-weight:800}
.ue-trend-chart circle.trend-point-latest{fill:var(--sc-green-dark);stroke:#fff;stroke-width:2}
.ue-trend-chart circle.trend-point-dot{fill:var(--sc-green,#34563e);pointer-events:none}
.ue-trend-chart circle.trend-point-hit{fill:transparent;cursor:pointer;pointer-events:all}
.ue-trend-chart circle.trend-point-reference{fill:#c0392b;stroke:#fff;stroke-width:2}
.ue-trend-chart text.point-value{fill:var(--forest,#1f5138);font-weight:800;font-size:12px}
.ue-trend-chart text.point-date{fill:var(--sc-muted,#607488);font-weight:700;font-size:11px}
.ue-trend-chart text.point-value-reference{fill:#c0392b;font-weight:800;font-size:11px}
.ue-trend-chart text.period-label{font-size:11px;fill:var(--forest,#1f5138)}
.ue-trend-chart line.trend-break-marker{stroke:var(--sc-muted,#607488);stroke-width:1}
.ue-trend-chart text.trend-break-label{font-size:11px;font-weight:700;fill:var(--sc-muted,#607488);text-transform:uppercase}
.ue-trend-chart svg{cursor:crosshair}
.ue-trend-chart line.ue-trend-crosshair{stroke:#9aa79f;stroke-width:1;stroke-dasharray:2 3;pointer-events:none}
.ue-trend-chart circle.ue-trend-hover-dot{fill:var(--sc-green-dark);stroke:#fff;stroke-width:1.5;pointer-events:none}
.ue-trend-chart circle.ue-trend-hover-dot.reference{fill:#c0392b}
.ue-trend-legend{display:flex;gap:16px;margin:0 0 8px;font-size:14px;color:var(--forest,#1f5138)}
.ue-legend-swatch{display:inline-block;width:16px;height:3px;margin-right:5px;vertical-align:middle;border-radius:2px}
.ue-legend-swatch.county{background:var(--sc-green)}
.ue-legend-swatch.reference{background:#c0392b}

.feedback-controls{margin-top:16px;padding:14px 0;border:0;border-top:1px solid var(--rule);background:transparent;display:flex;flex-direction:column;gap:10px}
.feedback-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--forest,#1f5138)}
.feedback-buttons{display:flex;gap:8px}
.feedback-report{display:flex;flex-direction:column;gap:8px;width:100%;max-width:520px}
.feedback-report textarea{padding:8px;border:1px solid #8da697;border-radius:0;font:13px var(--font-body);resize:vertical}
.feedback-report small,.feedback-row small{color:var(--forest,#1f5138)}

@media(max-width:900px){
  .sc-page{padding:20px 15px 50px}
  .sc-hero{flex-direction:column;align-items:flex-start}
  .sc-controls{grid-template-columns:1fr}
  .sc-source-head{flex-direction:column;align-items:flex-start}
  .ue-map-wrap{grid-template-columns:1fr}
  .ue-summary-columns{flex-direction:column;gap:8px}
  .ue-top-row{flex-direction:column}
  .ue-anchor-panel{max-width:none;width:100%}
  /* .ue-jobs-body's map (fixed width:520px) never wrapped or shrank on
     its own -- below 900px it forced horizontal page overflow and
     squeezed its flex:1 sibling (the Trend chart, or previously the Jobs
     by Industry table) down to near-zero width instead. Stack them and
     let the map use the full column width like everything else here. */
  .ue-jobs-body{flex-direction:column}
  .ue-jobs-map-wrap{width:100%}
  .ue-jobs-map-loading{width:100%}
  .ue-top-row-map{width:100%}
}

/* Per-box download controls (site-wide rule): charts/graphs get a small
   icon-only button in the top-right corner; source tables get a labeled
   button along the bottom edge. Both use the same medium blue (--blue,
   the site's existing primary-button color) so the two variants read as
   one family. */
.download-icon-button{position:absolute;top:14px;right:14px;z-index:1;display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid var(--forest,#1f5138);border-radius:0;background:var(--forest,#1f5138);color:#fff;cursor:pointer}
.download-icon-button:hover:not(:disabled){filter:brightness(.92)}
.download-icon-button:disabled{opacity:.5;cursor:default}
/* Source Download controls (SourceLinkIconButton) link out to the
   publisher's own site -- this site's data, not ours -- so they render as
   a visible "Download: [file/dataset name]" hyperlink (not an icon) in
   the site's blue action color, distinct from the forest-green icon-only
   DownloadIconButton used for in-page chart/grid downloads. Same
   top-right-corner positioning convention (top:14/right:14 by default,
   offset via the style prop -- e.g. top:52 -- to stack under a chart/grid
   icon when one exists on the same panel). Wraps within the panel's own
   width rather than a fixed nowrap line, since panels here range from the
   Anchor panel's 280px down-to-mobile width up to the full-width Trend
   panel, and this is shared by all of them. */
.source-link-icon-button{position:absolute;top:14px;right:14px;z-index:1;max-width:calc(100% - 28px);color:var(--blue,#0b69c7);font-size:11px;font-weight:700;line-height:1.35;text-align:right;text-decoration:underline}
.source-link-icon-button:hover{filter:brightness(.8)}

.download-control{display:flex;align-items:center;gap:10px;padding:14px 19px;border-top:1px solid #d7e0da;background:#fafcfb}
.download-control select{height:34px;padding:0 9px;border:1px solid #8da697;border-radius:0;background:#fff;color:var(--sc-ink);font-size:12px}
.download-control .primary-button{min-height:34px;font-size:12px}

/* Median Household Income, every upstate county (Unemployment page): the 62 county lines. The rule lived only in
   unemployment-experiment.css, which this page doesn't load, so the lines drew as black filled shapes (fixed
   2026-11-12). Same look as there: thin green lines, no fill. */
.ue-trend-chart path.overlay-county-line{fill:none;stroke:var(--sc-green,#34563e);stroke-width:1;stroke-linecap:round;stroke-linejoin:round;opacity:.22}
.qcew-filter-row.qcew-filter-row-top{justify-content:space-between;gap:12px;padding:12px 0 10px}
.qcew-filter-row-top .qcew-sector-filter{max-width:320px}
.qcew-dl-row{display:flex;align-items:center;gap:6px}
.ue-jobs-panel .ue-jobs-table-inner table{width:100%}
/* Same chart, Robert 2026-11-12: slightly darker grid lines, a dashed line at each ACS period, and hover labels (county,
   period, figure ± margin) in the page's map-label look (.ue-jobs-map-hover-label). */
.ue-income-overlay{position:relative}
.ue-income-overlay line.grid{stroke:#c3cfc7}
.ue-income-overlay line.vintage-line{stroke:#9fb0a5;stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.ue-income-overlay path.overlay-hit-line{fill:none;stroke:transparent;stroke-width:10;pointer-events:stroke;cursor:pointer;vector-effect:non-scaling-stroke}
.ue-income-overlay path.overlay-county-line-hovered{fill:none;stroke:var(--title-navy,#1b3a6b);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;pointer-events:none}
.ue-income-overlay path.overlay-hover-dot{fill:none;stroke:var(--title-navy,#1b3a6b);stroke-width:9;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none}
.ue-income-hover{position:absolute;z-index:2;transform:translate(-50%,calc(-100% - 12px));padding:5px 9px;border-radius:3px;background:#123a2a;color:#fff;font:800 12px var(--font-body);white-space:nowrap;pointer-events:none}
/* Top right of the title row: the Prototype tag over the page download (2026-11-12). */
.ue-hero-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.ue-hero-right .page-download .download-control{padding:0;border:0;background:none}
/* Date axis ticks on the unemployment trend chart (2026-11-12): a short line at every January, longer where the year is printed. */
.ue-trend-chart line.year-tick{stroke:#8a9a90;stroke-width:1;vector-effect:non-scaling-stroke}

/* County Unemployment Finder: the Prototype flag and the Page button side by side (2026-11-18). */
.sc-hero-side{display:inline-flex;align-items:center;gap:10px}
.ue-one-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
