@import url('https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400&display=swap'); /* Carlito, Calibri's free twin, for the Narrative font (Robert, 2026-10-26) */
/* ===== Moved from app/globals.css (2026-11-29, Robert: "put them all on one css"): Statbook-only rules, first in this
   file so they keep their old place in the cascade (globals before statbook.css). ===== */
.statbook-district-trees { margin-top: 8px; }
/* Expansion row labels in the green (population) sections are forest green, the section's color (Robert, 2026-10-24);
   Additional Demographics' are medium blue so they can be seen (Robert, 2026-10-26). */
.statbook-numbers #population-trends .statbook-group-row td,
.statbook-numbers #population-trends .tree-node-label { color: var(--forest); }
.statbook-numbers #additional-demographics .statbook-group-row td,
.statbook-numbers #additional-demographics .statbook-group-row .tree-label { color: var(--blue); }
/* Grid under an opened tree row (Robert, 2026-10-26): inset in the white tile like the Age Groups grid. */
.statbook-sub-table.statbook-sub-grid { max-width: none; }
/* Grids inside a tile: alternating row shading in the section's tint (Robert, 2026-10-26); the row holding the grid stays white. */
.statbook-numbers .statbook-topic .statbook-numbers-table tbody tr.statbook-sub-row { background: #fff; }
.statbook-numbers .statbook-topic .statbook-numbers-table .statbook-sub-table tbody tr:nth-child(odd) { background: #fff; }
.statbook-numbers .statbook-topic .statbook-numbers-table .statbook-sub-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--topic) 5%, #fff); }
/* Long school-year text (graduation cohorts) wraps instead of widening the grid (Robert, 2026-10-26). */
.statbook-sub-grid td:last-child { white-space: normal; min-width: 86px; }
.statbook-sub-grid thead th:last-child { white-space: nowrap; }
/* Same background as the page, not a white tile (Robert, 2026-10-24). */
.statbook-district-trees .tree-node { background: transparent; }
.statbook-district-trees .tree-node-body p { margin: 0 0 6px; }
/* A tree row's opened sources inside a table: wrap, regular text (not the heading's style). */
tr.statbook-tree-sources td { white-space: normal !important; overflow-wrap: anywhere; font-weight: 400; font-size: 12px; color: var(--ink); padding: 8px 12px; }
tr.statbook-tree-sources ol { margin: 0; padding-left: 20px; }
/* Town Statbook: Population Trends sits right under Additional Demographics' Sources (Robert, 2026-10-23). */
.town-numbers #population-trends.statbook-topic { margin-top: 0 !important; }
/* Statbook section headings toned down (Robert, 2026-11-07: "On section headings and expansion joints, show solid color
   text (not white) and outline of objects"): no filled band; the heading text, arrow boxes, download icons and buttons
   in the section's color, outlined, on white. Replaces the white-on-color bands. */
#site .statbook-numbers .statbook-topic h2 { background: transparent; color: var(--statbook-heading); border: 2px solid var(--statbook-heading); }
#site .statbook-numbers .statbook-topic h2 :is(span, .tree-label, button.tree-label, .statbook-band-text) { color: var(--statbook-heading); }
#site .statbook-numbers .statbook-topic h2 :is(.tree-toggle, .download-icon-button, .chameleon-button) { background: transparent; color: var(--statbook-heading); border-color: var(--statbook-heading); }
#site .statbook-numbers .statbook-topic h2 :is(.tree-toggle, .download-icon-button):hover { background: var(--wash); color: var(--statbook-heading); }
#site .statbook-numbers .statbook-topic h2 .chameleon-button:hover:not(:disabled) { background: var(--wash); }
/* Section headers below the top boxes, Town and City Statbooks (Robert, 2026-11-17): no frame ("Expansion joints should
   not be framed"), then "solid blue background with white fonts". Geography, Population and Additional Demographics at
   the top keep their framed look. */
#site .statbook-plain-bands .statbook-numbers .statbook-topic:not(#geography, #population, #additional-demographics) h2 { border: 0; border-radius: 0; background: var(--blue); color: #fff; padding: 9px 12px; }
#site .statbook-plain-bands .statbook-numbers .statbook-topic:not(#geography, #population, #additional-demographics) h2 :is(span, .tree-label, button.tree-label, .statbook-band-text) { color: #fff; }
#site .statbook-plain-bands .statbook-numbers .statbook-topic:not(#geography, #population, #additional-demographics) h2 :is(.tree-toggle, .download-icon-button, .chameleon-button) { background: transparent; color: #fff; border-color: #fff; }
#site .statbook-plain-bands .statbook-numbers .statbook-topic:not(#geography, #population, #additional-demographics) h2 :is(.tree-toggle, .download-icon-button):hover { background: #fff; color: var(--blue); }
/* Town Statbook (Robert, 2026-11-28: "make the expansion joints white with blue fonts on the town page"): the section
   headers on a white background with blue lettering; every Statbook since 2026-11-29 (they all carry .town-numbers). */
#site .town-numbers.statbook-plain-bands .statbook-numbers .statbook-topic:not(#geography, #population, #additional-demographics) h2 { background: #fff; color: var(--blue); }
#site .town-numbers.statbook-plain-bands .statbook-numbers .statbook-topic:not(#geography, #population, #additional-demographics) h2 :is(span, .tree-label, button.tree-label, .statbook-band-text) { color: var(--blue); }
#site .town-numbers.statbook-plain-bands .statbook-numbers .statbook-topic:not(#geography, #population, #additional-demographics) h2 :is(.tree-toggle, .download-icon-button, .chameleon-button) { background: #fff; color: var(--blue); border-color: var(--blue); }
#site .town-numbers.statbook-plain-bands .statbook-numbers .statbook-topic:not(#geography, #population, #additional-demographics) h2 :is(.tree-toggle, .download-icon-button):hover { background: var(--wash); color: var(--blue); }
/* ===== End of the rules moved from app/globals.css. ===== */
/* County and City Statbooks: the standard story for one place */
.statbook-page{max-width:900px;margin:0 auto;padding:24px 32px 64px;color:#1b3144;box-sizing:border-box}
.statbook-crumbs{font-size:13px;color:#33475a}
.statbook-crumbs a{color:var(--blue,#0b69c7);font-weight:700;text-decoration:none}
.statbook-crumbs a:hover{text-decoration:underline}
.statbook-hero{margin-top:14px;padding-bottom:14px;border-bottom:2px solid var(--rule-strong,#1b3a2c)}
.statbook-hero .eyebrow{margin:0;color:var(--forest,#1f5138);font-size:11px;font-weight:800;letter-spacing:.1em}
.statbook-hero h1{margin:4px 0 0;color:var(--title-navy,#082946);font:700 34px/1.1 var(--font-title,Georgia,serif)}
.statbook-story{margin:0;padding:0;list-style:none}
.statbook-story>li{padding:18px 0;border-bottom:1px solid var(--rule,#c9d6cc)}
.statbook-story h2{margin:0 0 6px;color:var(--forest,#1f5138);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.statbook-story p{margin:0;font-size:16px;line-height:1.5;color:#1b3144}
.statbook-story p a{color:inherit;text-decoration:none;border-bottom:2px solid #9ec5ee}
.statbook-story p a:hover{background:#e8f1fb;border-bottom-color:var(--blue,#0b69c7)}
.statbook-story strong{color:var(--title-navy,#082946)}
.statbook-story .statbook-source{margin-top:6px;font-size:12px;color:#4e6658}
.statbook-coming p{color:#4e6658;font-size:16px}
.statbook-chips{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.statbook-chips a{display:inline-block;padding:7px 12px;border:1px solid var(--blue,#0b69c7);background:#fff;color:var(--blue,#0b69c7);font-size:14px;font-weight:700;text-decoration:none}
.statbook-chips a:hover{background:var(--blue,#0b69c7);color:#fff}
.statbook-chips span{font-weight:400}
@media (max-width:700px){.statbook-page{padding:16px 16px 48px}.statbook-hero h1{font-size:28px}.statbook-story p{font-size:15px}}
/* County Statbook: town map and full town list */
.statbook-town-map{margin:12px 0}
.statbook-town-map .county-callout{position:static;width:100%;max-width:640px;box-shadow:none;pointer-events:auto} /* clicks on: landing-map.css turns them off for floating callouts */
.statbook-town-map .county-callout svg{height:420px}
.statbook-town-list a{font-size:13px;padding:5px 10px}
/* Education section */
.statbook-education h3{margin:16px 0 4px;color:var(--title-navy,#082946);font-size:15px}
.statbook-education p{font-size:16px}
.statbook-table{width:100%;margin:8px 0;border-collapse:collapse;font-size:13px}
.statbook-table th{padding:6px 8px;border-bottom:2px solid var(--rule-strong,#1b3a2c);color:var(--forest,#1f5138);font-size:11px;text-align:left;text-transform:uppercase}
.statbook-table td{padding:5px 8px;border-bottom:1px solid var(--rule,#c9d6cc)}
.statbook-table td:nth-child(n+2){font-variant-numeric:tabular-nums}
.statbook-ranks{margin:4px 0;padding-left:20px;font-size:15px;line-height:1.6}
.statbook-table td a{color:var(--blue,#0b69c7);font-weight:700;text-decoration:none}
.statbook-table td a:hover{text-decoration:underline}
/* Tabs: Story / Numbers */
.statbook-tabs{display:flex;gap:4px;margin:14px 0 4px;border-bottom:2px solid var(--rule-strong,#1b3a2c)}
.statbook-tabs a{padding:8px 18px;border:1px solid #9fb3a7;border-bottom:0;background:#eef3f0;color:#1f5138;font-size:14px;font-weight:800;text-decoration:none;border-radius:4px 4px 0 0}
.statbook-tabs a:hover{background:#e2ece6}
.statbook-tabs a.active{background:var(--forest,#1f5138);border-color:var(--forest,#1f5138);color:#fff}
/* Numbers tab: wider page for tables */
.statbook-page.statbook-page-wide{max-width:var(--page-max)}
.statbook-numbers-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0 4px;font-size:13px;color:#4e6658}
.statbook-numbers section{margin-top:18px}
.statbook-numbers h2{margin:0 0 6px;color:var(--forest,#1f5138);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.statbook-numbers-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff}
.statbook-numbers-table th,.statbook-numbers-table td{padding:7px 10px;border-bottom:1px solid #dbe4de;text-align:left;vertical-align:top}
.statbook-numbers-table thead th{background:var(--forest,#1f5138);color:#fff;font-size:11px;letter-spacing:.05em;text-transform:uppercase}
.statbook-numbers-table tbody th{font-weight:700;color:#082946;width:34%}
.statbook-numbers-table td:nth-child(2){font-weight:700;white-space:nowrap}
.statbook-numbers-table td:nth-child(4){color:#4e6658;font-size:12.5px}
.statbook-numbers-table{table-layout:fixed}
.statbook-numbers-table th:nth-child(1){width:30%}.statbook-numbers-table th:nth-child(2){width:18%}.statbook-numbers-table th:nth-child(3){width:16%}
.statbook-numbers-table td:nth-child(2){white-space:normal}
/* Numbers tab: color and breaks — key-figure tiles, topic jump links, topic color bands, striped rows */
.statbook-key-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:18px 0 6px}
.statbook-key-tile{display:flex;flex-direction:column;gap:4px;padding:12px 14px;background:#fff;border:1px solid #d3ddd7;border-top:6px solid var(--topic);border-radius:4px}
.statbook-key-tile strong{color:var(--topic);font:700 30px/1.1 var(--font-title,Georgia,serif)}
.statbook-key-label{color:#1b3144;font-size:13px;font-weight:700}
.statbook-key-date{color:#5b7066;font-size:12px}
.statbook-topic-links{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 2px}
.statbook-topic-links a{padding:6px 12px;border-radius:14px;background:var(--topic);color:#fff;font-size:12.5px;font-weight:700;text-decoration:none}
.statbook-topic-links a:hover{filter:brightness(1.15)}
.statbook-numbers .statbook-topic{margin-top:22px;scroll-margin-top:16px}
.statbook-numbers .statbook-topic h2{display:flex;justify-content:space-between;align-items:baseline;margin:0;padding:9px 12px;background:var(--topic);color:#fff;font-size:13px;border-radius:4px 4px 0 0}
.statbook-numbers .statbook-topic h2 span{font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;opacity:.85}
.statbook-numbers .statbook-topic .statbook-numbers-table thead th{background:color-mix(in srgb,var(--topic) 14%,#fff);color:var(--topic);border-bottom:2px solid var(--topic)}
.statbook-numbers .statbook-topic .statbook-numbers-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--topic) 5%,#fff)}
.statbook-numbers .statbook-topic .statbook-numbers-table td:nth-child(2){color:var(--topic)}
/* Numbers tab, compact (Robert 2026-10-06: no wide grids, no long source names; download icon on each row) */
.statbook-numbers-table th:nth-child(1){width:42%}.statbook-numbers-table th:nth-child(2){width:18%}.statbook-numbers-table th:nth-child(3){width:34%}.statbook-numbers-table th:nth-child(4){width:6%}
.statbook-numbers-table td.statbook-row-dl{text-align:right;padding:4px 6px}
.statbook-numbers .download-icon-button{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:1px solid color-mix(in srgb,var(--topic) 45%,#fff);background:#fff;color:var(--topic);cursor:pointer;border-radius:3px}
.statbook-numbers .download-icon-button:hover{background:var(--topic);color:#fff}
.statbook-numbers .statbook-topic h2 span{display:inline-flex;align-items:center;gap:8px}
.statbook-numbers .statbook-topic h2 .download-icon-button{border-color:rgba(255,255,255,.7);background:transparent;color:#fff}
.statbook-numbers .statbook-topic h2 .download-icon-button:hover{background:#fff;color:var(--topic)}
.statbook-numbers .statbook-key-tile strong{font-size:24px}
.statbook-zips{margin-top:8px}
.statbook-zips p{margin:0;font-size:15px;line-height:1.5;color:#1b3144}
.statbook-zips-label{font-weight:700;color:var(--title-navy,#082946)}
.statbook-zips-share{color:#4e6658}
.statbook-zips .statbook-source{margin-top:4px;font-size:12px;color:#4e6658}
/* Town Statbook: the county's town map, this town highlighted, in the right margin beside the title (Robert, 2026-10-10).
   Needs room outside the 900px reading column; narrower windows show it under the title. */
.statbook-hero-with-map{position:relative}
/* Both maps sit in one column (.statbook-side-maps), the same width. */
.statbook-side-maps{margin:12px 0 0;max-width:380px;display:flex;flex-direction:column;gap:12px}
.statbook-side-maps .statbook-town-map{margin:0}
.statbook-hero-with-map .statbook-town-map .county-callout svg{height:auto}
@media (min-width:1500px){
  .statbook-hero-with-map .statbook-side-maps{position:absolute;top:0;left:calc(100% + 56px);width:min(380px, calc((100vw - 900px) / 2 - 80px));margin:0}
}
/* Statewide county map: a white tile like the town map, every county plain, the town's county highlighted. */
.statbook-county-locator{position:relative;padding:8px 10px;border:1px solid #1f5138;background:#fff;box-sizing:border-box}
.statbook-county-locator-title{margin:0 0 4px;color:#1b3144;font-size:13px;font-weight:700}
.statbook-county-locator .ue-jobs-map-svg-wrap{position:relative}
.statbook-county-locator .ue-jobs-map{width:100%;height:auto;display:block}
/* Statbook county locator colors, passed to the shared county locator map as settings (2026-11-01) */
.statbook-county-locator{--cl-county-fill:#f4f7f5;--cl-county-stroke:#555;--cl-county-width:.5;--cl-hover-stroke:#111;--cl-hover-width:1.2;--cl-selected-fill:#1f5138;--cl-selected-stroke:#0d2b1f;--cl-label-color:var(--title-navy);--cl-label-size:7px;--cl-label-font:var(--font-calibri)}
.statbook-county-locator .ue-jobs-map-hover-label{position:absolute;z-index:2;transform:translate(-50%,calc(-100% - 12px));padding:4px 8px;background:#1b3144;color:#fff;font-size:11px;font-weight:700;white-space:nowrap;pointer-events:none}
/* Town Statbook: Schools section, one block per school district serving the town (Robert, 2026-10-10) */
.statbook-town-district{margin:14px 0 0}
.statbook-town-district h3{margin:0 0 4px;color:#1b3144;font-size:17px}
.statbook-school-list{margin:6px 0 0;padding-left:20px;font-size:15px;line-height:1.5}
.statbook-school-list span{color:#4e6658}
/* One Sources list at the bottom of each Statbook (2026-10-10) */
.statbook-sources{margin-top:28px;padding-top:12px;border-top:1px solid var(--rule,#c9d6cc);color:#4e6658;font-size:11px}
.statbook-sources h2{margin:0 0 6px;font-size:13px;color:var(--title-navy,#082946)}
.statbook-sources ul{margin:0;padding-left:22px;list-style:disc} /* bullet points (Robert, 2026-11-17) */
.statbook-sources li{margin:2px 0}
/* Sources one size below the regular Statbook text (19px -> 17px; phones 17px -> 15px) (Robert, 2026-10-10) */
.statbook-sources,.statbook-sources li,.statbook-sources p{font-size:16px;line-height:1.45} /* one size smaller (Robert, 2026-11-17; was 17px) */
.statbook-sources h2{font-size:19px}
@media (max-width:700px){.statbook-sources,.statbook-sources li,.statbook-sources p{font-size:14px}.statbook-sources h2{font-size:17px}}
/* Each district's details indented under its name (Robert, 2026-10-10) */
.statbook-town-district > :not(h3){margin-left:24px}
/* Space between the Sources list and the Census labels note (Robert, 2026-10-10) */
.statbook-sources ul + p{margin-top:16px}
/* County Statbook place lists: name, then city and kind in grey (2026-10-10) */
.statbook-place-list{margin:4px 0 0;padding-left:20px;font-size:17px;line-height:1.55}
.statbook-place-list li{margin:3px 0}
.statbook-place-list span{color:#4e6658;font-size:15px}
/* A section opened from search (…#schools) gets a brief highlight (2026-10-10) */
.statbook-story > li{scroll-margin-top:16px}
.statbook-story > li:target{animation:statbook-target 2.5s ease-out}
@keyframes statbook-target{0%{background:#fff3bd}100%{background:transparent}}
/* URL-menu trail: Home › County ▾ › Place ▾ › On this page ▾ (2026-10-10) */
.place-trail{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 14px;font-size:14px;color:#33475a}
.place-trail a{color:var(--blue,#0b69c7);text-decoration:none}
.place-trail a:hover{text-decoration:underline}
.place-trail-sep{color:#8a9a90}
.place-trail-menu{position:relative}
.place-trail-menu summary{cursor:pointer;list-style:none;color:var(--blue,#0b69c7);font-weight:700}
.place-trail-menu summary::-webkit-details-marker{display:none}
.place-trail-menu summary::after{content:" ▾";font-weight:400}
.place-trail-menu ul{position:absolute;z-index:20;top:calc(100% + 4px);left:0;min-width:220px;max-height:60vh;overflow-y:auto;margin:0;padding:6px 0;list-style:none;border:1px solid #6b7f73;background:#fff}
.place-trail-menu li a{display:block;padding:5px 12px;color:#1b3144;white-space:nowrap}
.place-trail-menu li a:hover{background:#e8f1fb;text-decoration:none}
.place-trail-menu li a[aria-current="page"]{font-weight:700;background:#f4f7f5}
/* Footnotes (Robert, 2026-10-11): small numbers in the story text, notes at the bottom of each section, two sizes
   smaller than the story text and medium blue. */
.statbook-fn{font-size:.62em;line-height:0;margin-left:1px}
.statbook-fn a{color:var(--blue)!important;border-bottom:0!important;text-decoration:none;font-weight:700}
.statbook-fn a:hover{background:none!important;text-decoration:underline}
.statbook-notes{list-style:decimal;margin:10px 0 0;padding-left:22px;color:var(--blue);font-size:15px;line-height:1.45}
.statbook-notes li{margin:2px 0}
.statbook-notes li::marker{font-weight:700}
.statbook-notes a{color:inherit}
@media (max-width:700px){.statbook-notes{font-size:14px}}
.statbook-story .statbook-coming-note{margin:10px 0 0;font-size:15px;color:#4e6658}

/* Hovering a footnote number highlights its note (Robert, 2026-10-11); clicking jumps to it and highlights it too.
   One rule per note number, 1-40, since notes are numbered through the whole page. */
.statbook-story>li:has(.statbook-fn a[href="#fn-1"]:hover) #fn-1,
.statbook-story>li:has(.statbook-fn a[href="#fn-2"]:hover) #fn-2,
.statbook-story>li:has(.statbook-fn a[href="#fn-3"]:hover) #fn-3,
.statbook-story>li:has(.statbook-fn a[href="#fn-4"]:hover) #fn-4,
.statbook-story>li:has(.statbook-fn a[href="#fn-5"]:hover) #fn-5,
.statbook-story>li:has(.statbook-fn a[href="#fn-6"]:hover) #fn-6,
.statbook-story>li:has(.statbook-fn a[href="#fn-7"]:hover) #fn-7,
.statbook-story>li:has(.statbook-fn a[href="#fn-8"]:hover) #fn-8,
.statbook-story>li:has(.statbook-fn a[href="#fn-9"]:hover) #fn-9,
.statbook-story>li:has(.statbook-fn a[href="#fn-10"]:hover) #fn-10,
.statbook-story>li:has(.statbook-fn a[href="#fn-11"]:hover) #fn-11,
.statbook-story>li:has(.statbook-fn a[href="#fn-12"]:hover) #fn-12,
.statbook-story>li:has(.statbook-fn a[href="#fn-13"]:hover) #fn-13,
.statbook-story>li:has(.statbook-fn a[href="#fn-14"]:hover) #fn-14,
.statbook-story>li:has(.statbook-fn a[href="#fn-15"]:hover) #fn-15,
.statbook-story>li:has(.statbook-fn a[href="#fn-16"]:hover) #fn-16,
.statbook-story>li:has(.statbook-fn a[href="#fn-17"]:hover) #fn-17,
.statbook-story>li:has(.statbook-fn a[href="#fn-18"]:hover) #fn-18,
.statbook-story>li:has(.statbook-fn a[href="#fn-19"]:hover) #fn-19,
.statbook-story>li:has(.statbook-fn a[href="#fn-20"]:hover) #fn-20,
.statbook-story>li:has(.statbook-fn a[href="#fn-21"]:hover) #fn-21,
.statbook-story>li:has(.statbook-fn a[href="#fn-22"]:hover) #fn-22,
.statbook-story>li:has(.statbook-fn a[href="#fn-23"]:hover) #fn-23,
.statbook-story>li:has(.statbook-fn a[href="#fn-24"]:hover) #fn-24,
.statbook-story>li:has(.statbook-fn a[href="#fn-25"]:hover) #fn-25,
.statbook-story>li:has(.statbook-fn a[href="#fn-26"]:hover) #fn-26,
.statbook-story>li:has(.statbook-fn a[href="#fn-27"]:hover) #fn-27,
.statbook-story>li:has(.statbook-fn a[href="#fn-28"]:hover) #fn-28,
.statbook-story>li:has(.statbook-fn a[href="#fn-29"]:hover) #fn-29,
.statbook-story>li:has(.statbook-fn a[href="#fn-30"]:hover) #fn-30,
.statbook-story>li:has(.statbook-fn a[href="#fn-31"]:hover) #fn-31,
.statbook-story>li:has(.statbook-fn a[href="#fn-32"]:hover) #fn-32,
.statbook-story>li:has(.statbook-fn a[href="#fn-33"]:hover) #fn-33,
.statbook-story>li:has(.statbook-fn a[href="#fn-34"]:hover) #fn-34,
.statbook-story>li:has(.statbook-fn a[href="#fn-35"]:hover) #fn-35,
.statbook-story>li:has(.statbook-fn a[href="#fn-36"]:hover) #fn-36,
.statbook-story>li:has(.statbook-fn a[href="#fn-37"]:hover) #fn-37,
.statbook-story>li:has(.statbook-fn a[href="#fn-38"]:hover) #fn-38,
.statbook-story>li:has(.statbook-fn a[href="#fn-39"]:hover) #fn-39,
.statbook-story>li:has(.statbook-fn a[href="#fn-40"]:hover) #fn-40,
.statbook-notes li:target{background:#fff3a6;color:#0b4fb3;border-radius:3px;box-shadow:0 0 0 3px #fff3a6}
.statbook-notes li{transition:background-color .12s}
.statbook-story p.statbook-more{margin-top:8px;font-size:16px}
.statbook-town-district h3 a{color:inherit;text-decoration:none;border-bottom:2px solid #9ec5ee}
.statbook-town-district h3 a:hover{background:#e8f1fb}
/* Census labels note in the footnote style (Robert, 2026-10-11): footnote size, bright blue. */
.statbook-census-labels{margin:14px 0 0;color:var(--blue);font-size:15px;line-height:1.45}
.statbook-census-labels strong{color:inherit}
@media (max-width:700px){.statbook-census-labels{font-size:14px}}
.statbook-numbers-table td a{color:var(--blue,#0b69c7);font-weight:700;text-decoration:none;border-bottom:2px solid #9ec5ee}
.statbook-numbers-table td a:hover{background:#e8f1fb}
/* Labels in title case on all Statbooks (Robert, 2026-10-11): headings within sections, table column headings, rank
   labels, key-figure tiles. Running text and footnotes stay sentence case. (Numbers-tab row labels: titleCase() in
   NumbersTable.tsx, so the downloads match.) */
.statbook-page h3,.statbook-table th,.statbook-label,.statbook-key-label,.statbook-numbers-table thead th,.statbook-county-locator-title,.statbook-sources h2{text-transform:capitalize}
.statbook-town-district h3{text-transform:none}
/* Numbers tab: each topic's footnotes closed by default, "Notes (n)" opens them at the bottom of the topic. */
.statbook-notes-toggle{margin:6px 0 0}
.statbook-notes-toggle summary{cursor:pointer;color:var(--blue);font-size:13px;font-weight:700;list-style:revert}
.statbook-notes-toggle .statbook-notes{margin-top:4px}
/* Footnotes two sizes below the text they annotate (Robert, 2026-10-11): 13px under the story, 12px under the 14px
   Numbers tables. */
.statbook-notes{font-size:13px}
.statbook-numbers .statbook-notes{font-size:12px}
@media (max-width:700px){.statbook-notes{font-size:13px}.statbook-numbers .statbook-notes{font-size:12px}}
.statbook-crumbs .place-trail-menu{display:inline-block}
/* Notes (data warnings, calculations) listed above Sources in a section (Robert, 2026-10-15) */
.statbook-notes-head{margin:8px 0 0;color:var(--blue);font-size:13px;font-weight:700}
/* Section headings one size bigger, in small caps (Robert, 2026-10-16) */
.statbook-story h2{font-size:14px;text-transform:none;font-variant-caps:small-caps;letter-spacing:.05em}
/* County locator map: the highlighted county's name in white (Robert, 2026-10-16) */
/* County name beside the county, small Calibri bold, navy with a thin white edge (Robert, 2026-10-29). */
/* (selected-name look now set by the --cl-label-… settings above) */
/* Town Statbook age groups: chart and latest-period table (Robert, 2026-10-16). Table per the statistics table protocol. */
.statbook-age-title{margin:16px 0 4px;color:var(--forest,#1f5138);font:600 14px "Public Sans",system-ui,sans-serif;font-variant-caps:small-caps;letter-spacing:.05em}
.statbook-age{position:relative;max-width:640px}
.statbook-age svg{display:block;width:100%;height:auto}
.statbook-age-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:#1b3144;margin:2px 0 4px}
.statbook-age-legend span{display:inline-flex;align-items:center;gap:6px}
.statbook-age-legend i{width:12px;height:12px;border-radius:3px;display:inline-block}
.statbook-age-grid{stroke:#d6e0d9;stroke-width:1}
.statbook-age-axis{fill:#4e6658;font:11.5px "Public Sans",system-ui,sans-serif}
.statbook-age-cat{fill:#1b3144;font:600 12px "Public Sans",system-ui,sans-serif}
.statbook-age-val{fill:#1b3144;font:11px "Public Sans",system-ui,sans-serif;font-variant-numeric:tabular-nums}
.statbook-age-tip{position:absolute;pointer-events:none;background:#fff;border:1px solid #9fb5a7;border-radius:6px;padding:6px 9px;font-size:12.5px;line-height:1.4;color:#1b3144;white-space:nowrap;transform:translate(-50%,calc(-100% - 10px))}
.statbook-age-table{width:100%;max-width:640px;border-collapse:collapse;margin:10px 0 4px}
.statbook-age-table th,.statbook-age-table td{padding:6px 10px;border-bottom:1px solid #cbd7cf;font:400 15px/1.3 Georgia,"Times New Roman",serif;color:#082946;text-align:right;font-variant-numeric:tabular-nums}
.statbook-age-table th:first-child,.statbook-age-table td:first-child{text-align:left}
.statbook-age-table thead th{background:#f7f9f7;color:#334e45;font:600 12px/1.2 "Times New Roman",Times,serif;letter-spacing:.045em;text-transform:uppercase}
.statbook-age{max-width:600px}.statbook-age-bar{fill:#1f5138}.statbook-age-val{font-size:12.5px;font-weight:600}
.statbook-age-table{max-width:480px}
/* Age groups line graph (Robert, 2026-10-16) */
.statbook-age-end{fill:#1b3144;font:600 12px "Public Sans",system-ui,sans-serif}
.statbook-age-endval{font-weight:400;font-variant-numeric:tabular-nums}
.statbook-age-pt{fill:#1b3144;font:11px "Public Sans",system-ui,sans-serif;font-variant-numeric:tabular-nums;paint-order:stroke;stroke:#dfe6e2;stroke-width:3px}
.statbook-age-axisline{stroke:#4e6658;stroke-width:1.2}
.statbook-age-axistitle{fill:#4e6658;font:600 11.5px "Public Sans",system-ui,sans-serif}
/* Age Groups a line further down from the text above (Robert, 2026-10-16) */
.statbook-age-title{margin-top:30px}
.statbook-age-story{margin-top:10px}
/* Age chart: intro sentence with a line of space before the graph, bold % in point labels, legend, download (Robert, 2026-10-16) */
.statbook-age-intro{margin:6px 0 18px}
.statbook-age-ptpct{font-weight:700}
.statbook-age .statbook-age-legend{justify-content:center;margin:4px 0 0}
/* Age chart numbers one size bigger so they read easily (Robert, 2026-10-16) */
.statbook-age-pt{font-size:12.5px}
.statbook-age-axis{font-size:12px}
.statbook-age-end{font-size:13px}
/* Age chart download: the site's standard chart download icon (same as similar-counties.css), top right over the chart */
.statbook-age .download-icon-button{position:absolute;top:0;right:0;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}
.statbook-age .download-icon-button:hover:not(:disabled){filter:brightness(.92)}
/* Town Statbook: only the line under the tabs; no line under the title block (Robert, 2026-10-16) */
.statbook-hero.statbook-hero-town{border-bottom:0}
/* Numbers tab: a table inside a row (age bands by men and women), and the schools-by-type chart (2026-10-18). */
.statbook-numbers-table .statbook-sub-row td{white-space:normal;font-weight:400;padding:10px}
.statbook-sub-title{margin:0 0 6px;font-weight:700;color:#082946}
.statbook-sub-table{width:100%;max-width:560px;border-collapse:collapse;font-size:13.5px}
.statbook-sub-table th,.statbook-sub-table td{padding:4px 10px;border-bottom:1px solid #e6ece8;text-align:right;font-weight:400}
.statbook-sub-table th:first-child{text-align:left;color:#082946;font-weight:700}
.statbook-sub-table thead th{background:none;color:#4e6658;font-size:11px;letter-spacing:.05em;text-transform:uppercase;text-align:right}
.statbook-sub-table thead th:first-child{text-align:left}
.statbook-school-types{position:relative;background:#fff;padding:14px 12px 10px;border-bottom:1px solid #dbe4de}
.statbook-school-types h3{margin:0 0 8px;font-size:14px;color:#082946}
.statbook-school-types .download-icon-button{position:absolute;top:10px;right:10px}
.statbook-numbers-age{background:#fff;padding:12px 12px 6px;border-bottom:1px solid #dbe4de}
/* A little space under each topic bar on the Numbers tab (Robert, 2026-10-19). */
.statbook-numbers .statbook-topic h2{margin-bottom:8px;border-radius:4px}
/* Numbers tables: more room for values so names do not wrap; a little more room per row (Robert, 2026-10-19). */
.statbook-numbers-table th:nth-child(1){width:44%}.statbook-numbers-table th:nth-child(2){width:34%}.statbook-numbers-table th:nth-child(3){width:16%}.statbook-numbers-table th:nth-child(4){width:6%}
.statbook-numbers-table th,.statbook-numbers-table td{padding-top:9px;padding-bottom:9px}
/* A heading line per school district inside the School Districts table, with space above (Robert, 2026-10-19). */
.statbook-numbers-table tr.statbook-group-row td{padding-top:22px;padding-bottom:8px;font-weight:700;font-size:15px;border-bottom:2px solid var(--topic,#5b2a86);background:#fff}
.statbook-numbers-table tbody tr.statbook-group-row:first-child td{padding-top:10px}
/* Each school district its own table, separated by space (Robert, 2026-10-19). */
.statbook-numbers-table-next{margin-top:22px}
.statbook-numbers-table tbody tr.statbook-group-row:first-child td{padding-top:12px}

/* Town Statbook Numbers tab (Robert, 2026-10-22): section titles in small caps; space between Geography and the
   Population History chart. */
.town-numbers .statbook-numbers .statbook-topic h2{text-transform:none;font-variant-caps:small-caps;letter-spacing:.03em;font-size:15px}
.town-numbers .statbook-numbers .statbook-topic + .statbook-topic{margin-top:40px}
.town-numbers #population-trends .statbook-numbers-age{margin-top:18px}

/* Town Statbook Numbers tab (Robert, 2026-10-22): Geography and Population side by side, Geography first; each grid
   shows up to 4 rows and scrolls for more. Single column on phones. */
@media (min-width:760px){
  .town-numbers .statbook-numbers{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px;align-items:start}
  .town-numbers .statbook-numbers > *{grid-column:1 / -1}
  .town-numbers .statbook-numbers > #geography{grid-column:1}
  .town-numbers .statbook-numbers > #population{grid-column:2;margin-top:22px}
  .town-numbers .statbook-numbers > #geography{margin-top:22px}
}
.town-numbers :is(#geography,#population) .statbook-table-box{max-height:160px;overflow-y:auto}
.town-numbers :is(#geography,#population) .statbook-table-box thead th{position:sticky;top:0;z-index:1}
.town-numbers :is(#geography,#population) .statbook-numbers-table th:nth-child(1){width:50%}
.town-numbers :is(#geography,#population) .statbook-numbers-table th:nth-child(2){width:22%}
.town-numbers :is(#geography,#population) .statbook-table-box{max-height:166px}
/* Fields above a topic's grid (Robert, 2026-10-22: Current Population, Male, Female are fields, not grid rows). */
.statbook-fields{margin:0;padding:8px 12px 10px;background:#fff;border-bottom:1px solid var(--rule)}
.statbook-fields > div{display:flex;gap:12px;align-items:baseline;padding:3px 0}
.statbook-fields dt{width:50%;font:700 14px var(--font-body);color:#082946}
.statbook-fields dd{margin:0;font:14px var(--font-body);color:var(--topic)}
.statbook-fields dd span{margin-left:6px;color:var(--muted);font-size:13px}
/* Links in Statbook grids (e.g. a school district, its students): medium blue and underlined (Robert, 2026-10-22). */
.statbook-numbers .statbook-topic .statbook-numbers-table td a{color:var(--blue,#0b69c7);text-decoration:underline;text-underline-offset:2px;border-bottom:0}
.statbook-story p a,.statbook-town-district h3 a{color:var(--blue,#0b69c7);text-decoration:underline;text-underline-offset:2px;border-bottom:0}
/* District text and counts line up with the district name, no indent (Robert, 2026-10-22). */
.statbook-town-district > :not(h3){margin-left:0}
.statbook-town-district ul{padding-left:0;list-style-position:inside}
/* Geography and Population side by side: the same height whatever the number of rows (Robert, 2026-10-22). The grid
   box fills the section, so the shorter grid gets white space at the bottom. */
@media (min-width:760px){
  .town-numbers .statbook-numbers{align-items:stretch}
  .town-numbers .statbook-numbers > :is(#geography,#population){display:flex;flex-direction:column}
  .town-numbers :is(#geography,#population) .statbook-table-box{flex:1 1 0;min-height:166px;max-height:none;background:#fff}
}
/* No space between the Historic Population header and its chart (Robert, 2026-10-22). */
.town-numbers #population-trends .statbook-numbers-age{margin-top:0;padding-top:0}
.town-numbers #population-trends .statbook-age-title{margin-top:8px}
.statbook-fields dt span{font-weight:400;color:var(--muted);font-size:13px}
/* Town Statbook (Robert, 2026-10-22): every section's content starts right under its header, as in Population;
   no strip of page color between them. */
.town-numbers .statbook-numbers .statbook-topic h2{margin-bottom:0;border-radius:4px 4px 0 0}
.town-numbers #population-trends .statbook-numbers-age{margin-top:0}
.town-numbers #population-trends .statbook-age-title{margin-top:0;padding-top:10px}
/* Field values sit at the right (Robert, 2026-10-22). */
.statbook-fields dd{margin-left:auto;text-align:right}
/* Additional Demographics: each grid shows about 8 rows and scrolls for more. */
.town-numbers :is(#additional-demographics,#age-and-education) .statbook-table-box{max-height:300px;overflow-y:auto;background:#fff}
.town-numbers :is(#additional-demographics,#age-and-education) .statbook-table-box thead th{position:sticky;top:0;z-index:1}
/* School Districts band taller (Robert, 2026-10-22). */
.town-numbers #school-districts h2{padding-top:16px;padding-bottom:16px;font-size:17px}
/* School districts as a tree (Robert, 2026-10-22): arrow at left opens the district's grid. */
.statbook-tree-toggle{width:22px;height:22px;margin-right:8px;padding:0;border:1px solid var(--blue);border-radius:6px;background:#fff;color:var(--blue);font-size:13px;line-height:1;cursor:pointer;vertical-align:middle}
.statbook-tree-toggle:hover{background:var(--wash)}
.statbook-tree + .statbook-tree .statbook-group-row td,.statbook-tree .statbook-group-row td{padding-top:10px;padding-bottom:10px}
/* Geography and Population tiles at the very top of the Numbers tab (Robert, 2026-10-22). */
@media (min-width:760px){
  .town-numbers .statbook-numbers > :is(#geography,#population){margin-top:0}
  /* Additional Demographics fields under Geography, Population beside both (Robert, 2026-11-17). */
  .statbook-plain-bands .statbook-numbers > #additional-demographics{order:-1;grid-column:1;margin-top:22px}
  .statbook-plain-bands .statbook-numbers > #population{grid-row:span 2}
}
@media (max-width:759px){
  .town-numbers .statbook-numbers{display:flex;flex-direction:column}
  .statbook-plain-bands .statbook-numbers > #additional-demographics{order:-1}
}
/* Fields as four columns: label | figure | MOE | date (right), no wrapping (Robert, 2026-10-22). */
.statbook-fields > div{display:grid;grid-template-columns:minmax(0,1fr) auto 64px 104px;column-gap:12px;align-items:baseline}
.statbook-fields dt{width:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.statbook-fields dd{margin:0;text-align:right;white-space:nowrap}
.statbook-fields .statbook-field-moe{color:var(--muted);font-size:13px}
.statbook-fields .statbook-field-date{color:var(--muted);font-size:13px;text-align:right}/* Grids with a margin-of-error column. */
.statbook-numbers-table-moe th:nth-child(1){width:40%}.statbook-numbers-table-moe th:nth-child(2){width:20%}.statbook-numbers-table-moe th:nth-child(3){width:16%}
.statbook-numbers-table .statbook-moe{color:var(--muted);font-weight:400;white-space:nowrap}
.statbook-numbers-table td{white-space:nowrap}
/* Top of the Town Statbook is fields only (Robert, 2026-10-22). Long values (Entity Formed, Earlier Names) may wrap
   inside their own column; labels, MOE and dates stay on one line. */
.town-numbers :is(#geography,#population) .statbook-fields{flex:1 1 auto}
.town-numbers .statbook-fields > div > dd:nth-of-type(1){white-space:normal;text-align:right;max-width:260px}
/* Fixes (2026-10-22): keep every field label visible; grids fit their box with the date column whole. */
.statbook-fields > div{grid-template-columns:minmax(112px,1fr) minmax(48px,auto) 60px 98px}
.statbook-fields dt{overflow:visible}
.statbook-numbers-table td{white-space:normal}
.statbook-numbers-table td:last-child,.statbook-numbers-table .statbook-moe{white-space:nowrap}
.statbook-numbers-table-moe th:nth-child(1){width:38%}.statbook-numbers-table-moe th:nth-child(2){width:18%}.statbook-numbers-table-moe th:nth-child(3){width:16%}.statbook-numbers-table-moe th:nth-child(4){width:28%}
.town-numbers :is(#additional-demographics,#age-and-education) .statbook-table-box{overflow-x:hidden}
/* Fields all black; the date (and MOE) not bold (Robert, 2026-10-22). */
.statbook-fields dt,.statbook-fields dd,.statbook-fields dd strong{color:#000}
.statbook-fields .statbook-field-moe,.statbook-fields .statbook-field-date{color:#000;font-weight:400}
/* A field with no date or MOE spans the figure, MOE and date columns (Robert, 2026-10-23). */
:is(.town-numbers,body) .statbook-fields > div > dd.statbook-field-wide{grid-column:2 / -1;max-width:none;white-space:normal;text-align:right}
/* Inner tables (age groups by sex): every number column the same, not the outer grid's column colors (Robert, 2026-10-23). */
.statbook-numbers .statbook-topic .statbook-numbers-table .statbook-sub-table td,.statbook-numbers-table .statbook-sub-table td{font-size:13.5px;color:#1b3144;font-weight:400}
/* Age groups by sex: medium gray vertical lines between the count-and-MOE pairs (Robert, 2026-10-23). */
.statbook-sub-pairs :is(th,td):is(:nth-child(4),:nth-child(6)){border-left:1px solid #999}
/* Always-visible scroll bar on the Town Statbook table boxes, same style as the housing pages (Robert, 2026-10-23). */
.town-numbers .statbook-table-box::-webkit-scrollbar{width:8px;height:8px}
.town-numbers .statbook-table-box::-webkit-scrollbar-track{background:#e8efeb;border-left:1px solid #ccd8d0}
.town-numbers .statbook-table-box::-webkit-scrollbar-thumb{border:2px solid #e8efeb;border-radius:6px;background:#6f8f7d}
.town-numbers .statbook-table-box::-webkit-scrollbar-thumb:hover{background:#456956}
/* Tree headings: text in the same medium blue as the arrow (Robert, 2026-10-23). */
.statbook-numbers .statbook-topic .statbook-tree .statbook-group-row td{color:var(--blue)}
/* Column names under an opened tree heading, styled like the grid header. */
.statbook-numbers .statbook-topic .statbook-numbers-table tr.statbook-tree-head th{background:color-mix(in srgb,var(--topic) 14%,#fff);color:var(--topic);border-bottom:2px solid var(--topic);font-size:11px;letter-spacing:.05em;text-transform:uppercase;font-weight:700;text-align:left}
/* Additional Demographics: heavy black line under the Age Groups grid, more space before Adult Education Levels (Robert, 2026-10-23). */
.town-numbers :is(#additional-demographics,#age-and-education) .statbook-tree:has(.statbook-sub-pairs){border-bottom:3px solid #000}
.town-numbers :is(#additional-demographics,#age-and-education) .statbook-tree + .statbook-tree{margin-top:0}
/* Population Trend tree row (Robert, 2026-10-23): looks like the grid tree rows; space above like between the grids. */
.town-numbers .statbook-tree-chart{margin-top:16px}
.town-numbers .statbook-tree-node{margin:0;padding:10px;font:700 15px var(--font-body);color:var(--blue);border-bottom:2px solid var(--topic);background:#fff}
/* Population Trends: no blue header bar; the expansion control is the heading (Robert, 2026-10-23). */
.town-numbers #population-trends > h2{display:none}
.town-numbers #population-trends .statbook-tree-chart{margin-top:0}
/* Population Trends row matches the school district tree rows: full width, same padding, line and height (Robert, 2026-10-23). */
.town-numbers #population-trends .statbook-tree-chart{padding:0;border-bottom:0}
.town-numbers #population-trends .statbook-tree-node{padding:12px 10px 8px;line-height:22.5px}
.town-numbers #population-trends .statbook-tree-chart > .statbook-age{padding:12px 12px 6px}
/* Next District button under the district name (Robert, 2026-10-23). */
.statbook-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.statbook-title-row .statbook-next-district{flex:none;margin-top:8px}
/* Statbook page titles match the landing page title: same font, small caps, letter spacing (Robert, 2026-10-23). */
.statbook-hero h1{font:700 34px/1.15 "Public Sans",system-ui,-apple-system,"Segoe UI",sans-serif;font-variant-caps:small-caps;letter-spacing:.03em}
@media (max-width:700px){.statbook-hero h1{font-size:28px}}
/* Content column 10% narrower (900 to 810), so the maps can stay beside it on narrower windows (Robert, 2026-10-26). */
.statbook-page{max-width:810px}
@media (min-width:1500px){
  .statbook-hero-with-map .statbook-side-maps{width:min(380px, calc((100vw - 810px) / 2 - 80px))}
}
/* 1,160–1,499 wide: the column moves left instead of centering, and the maps (300 wide) sit beside it on the right. */
@media (min-width:1160px) and (max-width:1499px){
  .statbook-page{margin-left:max(0px, calc((100vw - 1134px) / 2));margin-right:auto}
  .statbook-hero-with-map .statbook-side-maps{position:absolute;top:0;left:calc(100% + 40px);width:300px;margin:0}
}
/* Field tiles at the narrower width: same font, tighter gaps and MOE/date columns so nothing spills (Robert, 2026-10-26). */
.statbook-fields > div{column-gap:8px;grid-template-columns:minmax(104px,1fr) minmax(44px,auto) 48px 86px}
/* Narrower windows (700–1,159 wide): the two maps side by side in one row above the content, half width each, instead of
   stacked (Robert, 2026-10-26). Phones (under 700) keep them stacked. */
@media (min-width:700px) and (max-width:1159px){
  .statbook-hero-with-map .statbook-side-maps{flex-direction:row;align-items:stretch;max-width:none;gap:12px}
  .statbook-hero-with-map .statbook-side-maps > *{flex:1 1 0;min-width:0}
}
/* School Districts (Robert, 2026-10-26): each district's download icon in its row, right of the link; the section's
   purple lines thinner. */
.statbook-row-download{display:inline-flex;vertical-align:middle;margin-left:12px}
.statbook-numbers #school-districts tr.statbook-group-row td,.statbook-numbers #school-districts .statbook-numbers-table thead th,.statbook-numbers #school-districts tr.statbook-tree-head th{border-bottom-width:1px}
/* Narrative text: letters slightly closer together (Robert, 2026-10-26). */
.statbook-story p{letter-spacing:-.2px}
/* A colored band that is an expansion joint (School Districts, Robert 2026-10-26): white arrow box and label on the band. */
.statbook-numbers .statbook-topic h2 span.statbook-band-fold{font-size:inherit;font-weight:inherit;letter-spacing:inherit;text-transform:inherit;opacity:1;gap:0}
.statbook-numbers .statbook-topic h2 .tree-toggle{border-color:rgba(255,255,255,.7);background:transparent;color:#fff}
.statbook-numbers .statbook-topic h2 .tree-toggle:hover{background:#fff;color:var(--topic)}
.statbook-numbers .statbook-topic h2 .tree-label{color:#fff}
/* Narrative paragraphs in the narrative font role (Robert, 2026-10-26: trying Calibri). */
.statbook-story p{font-family:var(--font-narrative)}
/* A sentence on a topic band after its title (Robert, 2026-10-26): sentence case, body size, white. */
.statbook-numbers .statbook-topic h2 span.statbook-band-text{margin-left:12px;font-size:14px;font-weight:400;font-variant-caps:normal;letter-spacing:0;text-transform:none;opacity:1;color:#fff}
/* Expansion joint arrows on Statbooks (Robert, 2026-10-26: bigger): the Site Defaults size, 18px in a 24px blue-outlined
   box (16px in 22px inside a sentence). landing-map.css, loaded for the maps, has smaller tree arrows for the landing page. */
.statbook-page .tree-toggle{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:8px;padding:0;border:1px solid var(--blue);border-radius:6px;background:#fff;color:var(--blue);font:400 18px/1 var(--font-body);cursor:pointer;vertical-align:middle}
.statbook-page .tree-toggle:hover{background:var(--wash)}
.statbook-page .tree-inline .tree-toggle{width:22px;height:22px;margin-right:6px;font-size:16px}
.statbook-page .statbook-numbers .statbook-topic h2 .tree-toggle{border-color:rgba(255,255,255,.7);background:transparent;color:#fff}
.statbook-page .statbook-numbers .statbook-topic h2 .tree-toggle:hover{background:#fff;color:var(--topic)}
/* Additional Demographics: the Median rows indented to the first letter of the tree labels (past the arrow box), so they
   don't read as parents of Age Bands and Adult Education Levels (Robert, 2026-10-26). */
.statbook-numbers #age-and-education .statbook-fields dt{padding-left:30px}
/* Age bands pyramid (sample, Robert 2026-10-26). */
.statbook-pyramid{max-width:760px}
.statbook-pyr-moe{stroke:#111;stroke-width:1.4;stroke-opacity:.75}
.statbook-pyramid text.acs-caution{fill:#b35900}
.statbook-pyramid text.acs-unreliable{fill:#a61b1b}
/* Pyramid sample: white background; counts in white on the bars (Robert, 2026-10-26). */
.statbook-pyramid{background:#fff;padding:12px 14px 6px;box-sizing:border-box}
.statbook-pyr-in{fill:#fff;font:700 12px var(--font-body);font-variant-numeric:tabular-nums;pointer-events:none}
.statbook-pyramid .download-icon-button{top:10px;right:10px}
/* Age bands chart block on Statbook Numbers tabs (Robert, 2026-10-26). */
.statbook-pyr-block{margin:16px 0 8px}
.statbook-pyr-block .statbook-pyramid{max-width:none}
/* Age bands chart totals row (Robert, 2026-10-26). */
.statbook-pyr-totline{stroke:var(--rule-strong,#1b3a2c);stroke-width:2}
.statbook-pyr-total{fill:#1b3144;font:700 15px var(--font-body);font-variant-numeric:tabular-nums}
.statbook-pyr-totmoe{font-weight:400;font-size:12px;fill:#4e6658}
/* Graph / Grid radio buttons on a tree bar (Robert, 2026-10-26: age bands). */
.statbook-row-views{display:inline-flex;gap:14px;margin-left:16px;vertical-align:middle;font:400 13px var(--font-body);color:var(--ink,#1b3144)}
.statbook-row-views label{display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.statbook-chart-row td{padding:10px 12px 8px!important;white-space:normal!important}
.statbook-chart-row .statbook-pyramid{max-width:none;padding:0}
/* A tree box showing a chart is not height-capped (the 300px scroll cap is for grids). */
.town-numbers :is(#additional-demographics,#age-and-education) .statbook-table-box:has(.statbook-chart-row){max-height:none;overflow:visible}
/* Additional Demographics boxes that scroll (datagrids): the bar with Graph / Datagrid stays pinned at the top so the
   buttons can always be reached (Robert, 2026-10-26); the grid's column headings pin just under it. */
.town-numbers :is(#additional-demographics,#age-and-education) .statbook-table-box .statbook-group-row td{position:sticky;top:0;z-index:3;background:#fff}
.town-numbers :is(#additional-demographics,#age-and-education) .statbook-table-box .statbook-sub-table thead th{position:sticky;top:46px;z-index:2}
/* Additional Demographics: space above each tree box (Age Bands, Adult Education) so they read as separate blocks,
   not one long section (Robert, 2026-10-26). */
.town-numbers :is(#additional-demographics,#age-and-education) .statbook-tree,.town-numbers :is(#additional-demographics,#age-and-education) .statbook-tree + .statbook-tree{margin-top:22px}
/* Figures and margins stay on one line in paired grids (Housing trend, 2026-10-29: "±$2,511" wrapped). */
.statbook-sub-pairs td:not(:first-child){white-space:nowrap}
/* Chart download icons in the tile's top-right corner (Robert, 2026-10-29): the chart box spans the tile, the drawing
   keeps its size. */
.statbook-chart-row .statbook-age,.statbook-tree-chart > .statbook-age{max-width:none}
.statbook-chart-row .statbook-age > svg,.statbook-tree-chart > .statbook-age > svg{max-width:600px}
.statbook-chart-row .statbook-pyramid > svg{max-width:760px}
/* Every Statbook chart box spans its tile or column, so the download icon sits in the top-right corner (Robert,
   2026-10-29: "it's in the wrong place on 3 charts"); the drawings keep their size. */
.tree-node-body > .statbook-age,.statbook-story .statbook-age{max-width:none}
.tree-node-body > .statbook-age > svg,.statbook-story .statbook-age > svg{max-width:600px}
/* Median Age Trend chart on the site defaults (Robert, 2026-10-31): Calibri (--font-body), named colors (ink, muted),
   survey figures in the reliability colors. */
.statbook-mac svg text{font-family:var(--font-body)}
.statbook-mac .statbook-age-axis{fill:var(--muted)}
.statbook-mac .statbook-age-axistitle{fill:var(--ink)}
.statbook-mac .statbook-age-pt{fill:var(--ink)}
.statbook-mac text.acs-caution{fill:#b35900}
.statbook-mac text.acs-unreliable{fill:#a61b1b}
/* Expansion-row titles on the Numbers tab in small caps (Robert, 2026-10-31). */
.town-numbers button.tree-label{font-variant-caps:small-caps;letter-spacing:.02em}
/* Column titles on the Numbers tab grids in small caps, MOE columns included (Robert, 2026-10-31). */
.town-numbers .statbook-sub-table thead th{text-transform:none;font-variant-caps:all-small-caps;font-size:13px;letter-spacing:.04em}
/* Grid column titles bold, dark ink (Robert, 2026-10-31: "make small caps titles bold"). */
.town-numbers .statbook-sub-table thead th{font-weight:800;color:var(--ink)}
/* Numbers tab grids back on the Site Defaults (Robert, 2026-10-31: "you missed so many defaults"); replaces the small-caps
   column titles of earlier today. Header: 11px bold capitals .04em on #f7f9f7. Cells: 13px ink, even-width digits.
   Row names and field labels in ink, not slate or black. */
.town-numbers .statbook-sub-table thead th{font-size:11px;font-weight:700;font-variant-caps:normal;text-transform:uppercase;letter-spacing:.04em;background:#f7f9f7;color:var(--ink)}
.town-numbers .statbook-sub-table tbody td{font-size:13px;color:var(--ink);font-variant-numeric:tabular-nums}
.town-numbers .statbook-sub-table tbody th,.town-numbers .statbook-sub-table tbody td:first-child{color:var(--ink)}
.town-numbers .statbook-topic dt,.town-numbers .statbook-topic dd{color:var(--ink)}
/* Housing grid in a scroll box with a visible vertical scroll bar and titles that stay put (Robert, 2026-10-31). */
.town-numbers #housing .statbook-table-box{max-height:300px;overflow-y:scroll;background:#fff;scrollbar-width:auto;scrollbar-color:#8aa596 #eef3f0}
.town-numbers #housing .statbook-table-box::-webkit-scrollbar{width:12px;-webkit-appearance:none}
.town-numbers #housing .statbook-table-box::-webkit-scrollbar-track{background:#eef3f0;border-left:1px solid #d5ddd8}
.town-numbers #housing .statbook-table-box::-webkit-scrollbar-thumb{background:#8aa596;border-radius:6px;border:2px solid #eef3f0}
.town-numbers #housing .statbook-table-box thead th{position:sticky;top:0;z-index:1}
/* Expansion-row titles in their section's color (Robert, 2026-10-31: "Additional Demographics are supposed to be green.
   Follow your color scheme"). Band headings keep white. */
.town-numbers .statbook-topic table button.tree-label{color:var(--topic)}
.town-numbers .statbook-topic button.tree-label{color:var(--topic)}
.town-numbers .statbook-topic h2 button.tree-label{color:#fff}
/* Overrides globals.css:1241 (Additional Demographics titles forced blue): titles match the section button color. */
.town-numbers :is(#additional-demographics,#age-and-education) .statbook-group-row .tree-label{color:var(--topic)}
/* Age Bands totaling grid (Robert, 2026-10-31), styled like the seat-count grid under the Voting District Map:
   caption title, 11px bold capitals header on #f7f9f7, thin row rules, a heavy line above the totals. */
.atg{padding:8px 12px 6px}
.atg-table{border-collapse:collapse;font:13px var(--font-body);color:var(--ink);font-variant-numeric:tabular-nums;min-width:460px}
.atg-table caption{text-align:left;color:var(--title-navy);font:700 14px var(--font-title);padding:0 0 4px}
.atg-table th{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;background:#f7f9f7;border-bottom:1px solid var(--rule-strong);padding:3px 10px;text-align:right;color:var(--ink)}
.atg-table th:first-child,.atg-table td:first-child{text-align:left}
.atg-table td{padding:2px 10px;text-align:right;border-bottom:1px solid var(--rule)}
.atg-table td.num{white-space:nowrap}
.atg-table .atg-moe{color:var(--muted);font-size:11px}
.atg-table td.acs-caution .atg-moe{color:#b35900}.atg-table td.acs-unreliable .atg-moe{color:#a61b1b}
.atg-table tfoot tr.atg-total td{border-top:2px solid var(--rule-strong);font-weight:700}
.atg-table tfoot tr.atg-of td{font-style:normal;color:var(--ink);border-bottom:1px solid var(--rule)}
.atg-table tfoot tr.atg-of td:first-child{padding-left:22px}
.atg-note{max-width:620px;margin:8px 0 0;color:var(--muted);font:12px/1.45 var(--font-body)}
/* Keep the Numbers tab's own table rules out of the Age Bands totaling grid. */
.statbook-numbers .atg-table{width:auto;table-layout:auto}
.statbook-numbers .atg-table tr{height:auto;background:none}
.statbook-numbers .atg-table th,.statbook-numbers .atg-table td{height:auto;line-height:1.35;vertical-align:baseline;white-space:nowrap;padding:3px 12px;background:none;font-size:13px}
.statbook-numbers .atg-table thead th{font-size:11px;background:#f7f9f7;text-transform:uppercase;letter-spacing:.04em;font-weight:700;color:var(--ink);position:static}
.statbook-numbers .atg-table td:first-child{color:var(--ink);font-weight:400}
.statbook-numbers .atg-table tfoot tr.atg-total td{font-weight:700}
.statbook-numbers .atg-table tfoot tr.atg-of td:first-child{padding-left:24px}
/* Section rules (#additional-demographics …) were overriding the totaling grid's spacing; these win. */
.atg-table th,.atg-table td{padding:3px 12px !important;height:auto !important;line-height:1.35 !important;white-space:nowrap !important;vertical-align:baseline !important}
.atg-table tfoot tr.atg-of td:first-child{padding-left:24px !important}
.atg-table thead th{text-transform:uppercase !important;font-size:11px !important}
/* Footnote numbers in every Numbers tab grid blue and bold, per the Site Defaults (Robert, 2026-10-31). */
.town-numbers td sup,.town-numbers th sup,.town-numbers .statbook-fn{color:var(--blue) !important;font-weight:700}
/* A small space above Population Trends, so it no longer touches the Additional Demographics sources (2026-10-31). */
.town-numbers section#population-trends{margin-top:16px}
/* Overrides globals.css:1268 (Population Trends glued to Additional Demographics): a small space (Robert, 2026-10-31). */
.town-numbers #population-trends.statbook-topic{margin-top:16px !important}
/* Housing scroll bar only when an opened grid is taller than the box (no empty track with the rows closed). */
.town-numbers #housing .statbook-table-box{overflow-y:auto}
/* Expansion joints: label and arrow in the medium blue on every section (Robert, 2026-10-31: "I prefer blue"; replaces
   the section-color titles of earlier today). Band headings stay white on their color. */
.town-numbers .statbook-topic button.tree-label,.town-numbers :is(#additional-demographics,#age-and-education) .statbook-group-row .tree-label{color:var(--blue)}
.town-numbers .statbook-topic .tree-toggle{color:var(--blue);border-color:var(--blue)}
.town-numbers .statbook-topic h2 button.tree-label,.town-numbers .statbook-topic h2 .tree-toggle{color:#fff;border-color:#fff}
.town-numbers .statbook-topic table button.tree-label{color:var(--blue)}
.town-numbers .statbook-topic h2 button.tree-label{color:#fff}
/* ACS watermark (Robert, 2026-10-31) */
.acs-watermark{fill:var(--muted,#607488);opacity:.16;font-family:var(--font-body);font-weight:700;letter-spacing:.08em}
/* Statbook tabs tapered like folder tabs, wider at the base (Robert, 2026-11-11: "not tapered. fix please"; the
   Methodologies page's tab shape). Colors unchanged. */
.statbook-tabs{gap:2px;padding-left:4px}
.statbook-tabs a{padding:8px 30px;border:0;border-radius:0;clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 100%,0 100%)}
/* Narrative tab section labels in the medium blue (Robert, 2026-11-11: "make the section labels blue on the narrative page"). */
#site .statbook-story h2{color:var(--blue,#0b69c7)}
/* Narrative sections as expansion panels, open at first, Expand All / Collapse All above (Robert, 2026-11-11: "Y
   expansion panels"; labels blue and "slightly larger, expansion joints too"). */
#site .statbook-story .story-panel{background:transparent}
#site .statbook-story .story-panel>.tree-node-label{margin:0 0 6px;display:flex;align-items:center;color:var(--blue,#0b69c7);font-size:17px;font-weight:700;font-variant-caps:small-caps;letter-spacing:.04em}
#site .statbook-story .story-panel>.tree-node-label .tree-toggle{width:28px;height:28px;font-size:20px}
#site .statbook-story .story-panel>.tree-node-body{padding:0}
[data-statbook-view="story"]>.tree-group-controls{margin:12px 0 4px}
/* Additional Demographics box at the top (Robert, 2026-11-17): long labels wrap instead of running into the figure. */
.town-numbers #additional-demographics .statbook-fields dt{padding-left:0;white-space:normal;overflow:visible}
/* No topic buttons on the Town and City Statbooks (Robert, 2026-11-17: "get rid of them"). */
.statbook-plain-bands .statbook-topic-links{display:none}
/* School and School District Statbooks: the section headers in the story in bold (Robert, 2026-11-17). */
#site .school-statbook .statbook-education :is(h3, h4){font-weight:700}
/* One download on a Statbook: the Page button (Robert, 2026-11-17: "We are only going to use page icons"). Chart and map
   download icons are not shown. */
#site .statbook-page .download-icon-button:not(.page-icon-button){display:none}
/* School District Statbook: no topic buttons under the student count (Robert, 2026-11-18), as on Town and City. */
.school-statbook .statbook-topic-links{display:none}
/* Show Graph checkbox over a graph and its grid (2026-11-18). */
.statbook-graph-toggle{display:inline-flex;align-items:center;gap:6px;margin:4px 0 8px;font:700 13px var(--font-body);color:var(--blue);cursor:pointer}
/* Graph / Data layer buttons (2026-11-18). */
.statbook-layer-buttons{display:flex;gap:8px;margin:6px 0 10px}
.statbook-layer-buttons button{height:32px;padding:0 16px}
/* Population fields: long labels (Median Household Income) wrap instead of running into the value (2026-11-18). */
.town-numbers #population .statbook-fields dt{white-space:normal;overflow:visible}
/* Graph / Data on the row title line when it fits (Robert, 2026-11-18: "one method if there is space"). */
.statbook-row-layers{display:inline-flex;vertical-align:middle;margin:0 0 0 14px;gap:6px}
.statbook-row-layers button{height:26px;padding:0 12px;font-size:12px}
.statbook-layer-buttons button{height:26px;padding:0 12px;font-size:12px}
/* County Statbook: closed expansion joints closer together (Robert, 2026-11-19); every Statbook since 2026-11-29. */
.town-numbers .statbook-numbers-table-next{margin-top:6px}
.town-numbers .statbook-tree .statbook-group-row td,.town-numbers .statbook-numbers-table tr.statbook-group-row td{padding-top:6px;padding-bottom:6px}
/* No light gray lines between closed joints on County (Robert, 2026-11-19). */
.town-numbers .statbook-numbers-table tr.statbook-group-row td,.town-numbers .statbook-tree .statbook-group-row td{border-bottom:0}
.town-numbers .statbook-numbers-table{border-bottom:0}
.town-numbers .statbook-numbers-table tr:last-child td{border-bottom:0}
/* County Statbook Story tab: no gray lines between sections (Robert, 2026-11-19); every Statbook since 2026-11-29. */
.statbook-story > li{border-bottom:0}
/* Narrative section titles: no heavy blue line and no space under them, so a collapsed list reads title, thin line,
   title (Robert, 2026-11-27: "remove the heavy blue line and the vertical space beneath it"). */
#site .statbook-story .story-panel>.tree-node-label{border-bottom:0;margin-bottom:0;padding-bottom:0}
/* The ± numbers on the Age Bands chart in regular weight, not bold (Robert, 2026-11-28: "remove the bold from the MOEs on the chart"). */
.statbook-pyramid text.statbook-age-val{font-weight:400}
/* Housing grids stay inside the page column, no sideways scroll bar (Robert, 2026-11-28: "last two data elements spill
   into margin ... fix it"), as the Age and Education grids already do. */
.town-numbers #housing .statbook-table-box{overflow-x:hidden}
/* The three-period grid (Figure + 3 × value and MOE): a narrower Figure column so the number columns fit and the last
   MOE isn't cut off. */
/* Town Statbook Numbers tab: expansion joint titles one point larger (Robert, 2026-11-28); were 15px, the School
   Districts / Prisons band 17px. */
#site .town-numbers button.tree-label{font-size:16px}
#site .town-numbers .statbook-topic > h2 button.tree-label{font-size:18px}
/* County Statbook: no "Age and Education" heading over its three joints (Robert, 2026-11-28: "I should not see the age
   and education label in this view"); Median Age Trend, Age Bands and Education Levels stand on their own. */
/* Education Levels right under Population (Robert, 2026-11-28); its joint row is its title, so no heading over it. */
/* Same on Town and City (Robert, 2026-11-29: the County Statbook is the template for every place Statbook). */
#site .place-numbers .statbook-numbers > #education-levels{order:-2!important}
#site .town-numbers #education-levels > h2{display:none}
/* Even spacing between the joints (Robert, 2026-11-28: "I'd like the spaces between joints to be uniform"): sections
   and their tables add no space of their own; every joint title row is the same height. */
/* (The County-only copies of these rules came out 2026-11-29; the shared .town-numbers rules below set the spacing for
   every Statbook, now 56px.) */
/* Every joint's arrow on one left edge (Robert, 2026-11-28: "the anchors don't align left ... It's jagged"): section
   headers were 2px right of the rows. */
#site .town-numbers .statbook-numbers > section > h2{padding-left:10px!important}
/* Straight left edge and even rows, Town and County Numbers (Robert, 2026-11-28: "straighten out the ragged placement of
   the joints and left alignment"; "Housing ... below age band joint either should be a joint or should not show"):
   - the plain "Housing" heading goes (its two joints already say Housing), like Age and Education;
   - every joint title one size (17px), section or row;
   - the Graph / Data buttons sit inside the 45px row, and a long title wraps instead of running past the column. */
#site .town-numbers #housing > h2,#site .town-numbers #age-and-education > h2{display:none}
#site .town-numbers .statbook-numbers :is(h2, tr.statbook-group-row, .tree-node-label) button.tree-label{font-size:17px!important}
#site .town-numbers .statbook-numbers tr.statbook-group-row > td{white-space:normal;height:45px;padding-top:4px!important;padding-bottom:4px!important;box-sizing:border-box;vertical-align:middle}
#site .town-numbers .statbook-numbers .statbook-row-layers button{height:28px}
#site .town-numbers .statbook-numbers > section{margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important}
#site .town-numbers .statbook-numbers > section > h2{margin:0!important;min-height:45px;box-sizing:border-box;display:flex;align-items:center}
#site .town-numbers .statbook-numbers .tree-node-label{min-height:45px;margin:0!important;display:flex;align-items:center}
#site .town-numbers .statbook-numbers > section > :is(.statbook-table-box,.statbook-tree,.tree-node,div){margin-top:0!important;margin-bottom:0!important}
#site .town-numbers .statbook-numbers :is(.statbook-table-box,.statbook-tree):has(> table > tbody > tr.statbook-group-row:only-child){border-bottom:0!important}
#site .town-numbers .statbook-numbers tr.statbook-group-row > td{border-bottom:0!important}
/* Same spacing as the Story tab (Robert, 2026-11-28: "the story tab has higher vertical spacing than the numbers tab ...
   make them evenly spaced. I prefer what is on the Story page"): 56px from one joint to the next, was 45. */
#site .town-numbers .statbook-numbers > section > h2,#site .town-numbers .statbook-numbers .tree-node-label{min-height:56px!important}
#site .town-numbers .statbook-numbers tr.statbook-group-row > td{height:56px!important}
/* Order after the top joints (Robert, 2026-11-28: "move school districts joint above prisons and jails"): Unemployment,
   Child Care, Age and Education, Housing, School Districts, Prisons and Jails. */
/* Then (same evening): "also, move school districts down below unemployment": Unemployment, School Districts, Child
   Care, Age and Education, Housing, Prisons and Jails. */
/* Then (Robert, 2026-11-29), County, Town and City, the same on the Narrative: Population, Education Levels, the age
   joints, Housing, [Major Employers, planned], Unemployment, School Districts, Child Care, Prisons and Jails. */
#site .place-numbers .statbook-numbers > #age-and-education{order:1!important}
#site .place-numbers .statbook-numbers > #housing{order:2!important}
#site .place-numbers .statbook-numbers > #major-employers{order:3!important}
#site .place-numbers .statbook-numbers > :is(#unemployment,#jobs){order:4!important}
#site .place-numbers .statbook-numbers > #school-districts,#site .city-numbers .statbook-numbers > #school-district{order:5!important}
#site .place-numbers .statbook-numbers > #child-care{order:6!important}
#site .place-numbers .statbook-numbers > #prisons-and-jails{order:7!important}
/* Everything inside a joint starts at the left edge of the joint's arrow box, the way the History panel does (Robert,
   2026-11-28: "the current history [panel] in the screen shot is how all of these should look"; first asked for the
   title's first letter, then took that back). The arrow box sits 10px in, so contents are indented 10px; table and field
   cells already pad 10px, so those stay put. */
#site .statbook-story > li > .story-panel > .tree-node-body{padding-left:10px!important}
#site .town-numbers .statbook-numbers > section:is(#geography,#history,#population,#school-districts,#school-district,#unemployment,#jobs,#child-care,#prisons-and-jails) > :not(h2):not(.statbook-table-box):not(.statbook-fields):not(dl){margin-left:10px}
#site :is(.statbook-story, .town-numbers) .statbook-history{padding-left:0!important}
/* Numbers tab rows that open under a joint row (Median Age Trend, Age Bands, Education Levels, Housing, School
   Districts): no extra left padding, so their charts, switches and grids also start at the arrow's left edge. */
#site .town-numbers .statbook-numbers tr.statbook-sub-row > td{padding-left:10px!important}
#site .town-numbers .statbook-numbers tr.statbook-sub-row :is(.statbook-sub-table, .statbook-layer-buttons, .statbook-age, .statbook-tree-chart){margin-left:0!important;padding-left:0!important}
/* Story lists (Colleges, Hospitals, Airports): no bullets or extra indent, so each name starts with the text. */
#site .statbook-story .statbook-place-list{padding-left:0;margin-left:0;list-style:none}
/* The Story tab in the same order: School Districts right after Unemployment. */
.statbook-story{display:flex;flex-direction:column}
/* Robert, 2026-11-29: the same order as the Numbers tab: ... Age Groups, Housing, [Major Employers, planned],
   Unemployment, School District(s), then the rest. */
.statbook-story > li#homes{order:1}
.statbook-story > li#employers{order:2}
.statbook-story > li#jobs{order:3}
.statbook-story > li:is(#schools,#education){order:4}
.statbook-story > li#jobs ~ li{order:5}
/* Page scroll rail left of the maps (Robert, 2026-11-28: "put a usable page scroll bar maybe just left of the maps"). */
.psr{position:fixed;width:12px;border-radius:6px;background:#e8efeb;border:1px solid #ccd8d0;z-index:40;cursor:pointer}
.psr-thumb{position:absolute;left:1px;right:1px;border-radius:5px;background:var(--forest,#1f5138);opacity:.75;cursor:grab}
.psr-thumb:active{cursor:grabbing;opacity:.95}
.psr-tick{position:absolute;left:-3px;width:16px;height:3px;padding:0;border:0;border-radius:2px;background:var(--blue);cursor:pointer;transform:translateY(-1px)}
.psr-tick:hover{height:5px;transform:translateY(-2px)}
.psr-label{position:absolute;right:20px;transform:translateY(-50%);white-space:nowrap;background:#fff;border:1px solid var(--rule);border-radius:6px;padding:3px 8px;font:700 12px var(--font-body);color:var(--blue);pointer-events:none}
@media print{.psr{display:none!important}}
/* History from the 1860 Gazetteer, in the History joint (Robert, 2026-11-28). */
.statbook-history{padding:4px 12px 10px;max-width:760px}
.statbook-history p{margin:6px 0;font-size:15px;line-height:1.5;color:var(--forest)}
.statbook-history .statbook-history-label{margin-top:10px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.statbook-history .statbook-history-source{font-size:11px;color:var(--muted)}
/* Data warnings in a Statbook's text (no median published; capped median): the site's warning red, bold (2026-11-28). */
.statbook-warn{color:var(--limits-red,#a61b1b);font-weight:700}
/* Story tab: less white space between the sections (Robert, 2026-11-28: "close up some of the white space between
   expansion joints"); was 18px above and below each. */
.statbook-story>li{padding:8px 0}
.town-numbers #housing .statbook-sub-pairs{width:100%;table-layout:fixed}
.town-numbers #housing .statbook-sub-pairs th:nth-child(1){width:28%}
.town-numbers #housing .statbook-sub-pairs th:nth-child(n+2){width:12%}
/* Town Statbook Numbers tab (Robert, 2026-11-28: "replace the side by side geography with expansion joints, geography
   first and then population, age, gender and median income"): one column; Geography, then Population, then the rest;
   their headers unframed, white with blue lettering like the other sections. */
#site .town-numbers .statbook-numbers{display:flex!important;flex-direction:column}
#site .place-numbers .statbook-numbers > #geography{order:-4!important;margin-top:16px}
#site .place-numbers .statbook-numbers > #history{order:-3!important;margin-top:0}
#site .place-numbers .statbook-numbers > #population{order:-2!important;margin-top:0}
#site .place-numbers .statbook-numbers > #additional-demographics{order:-1!important}
#site .town-numbers .statbook-numbers > :is(#geography,#history,#population) > h2{border:0!important;border-radius:0;background:#fff;color:var(--blue);padding:9px 12px}
#site .town-numbers .statbook-numbers > :is(#geography,#history,#population) > h2 :is(button.tree-label,.tree-toggle){color:var(--blue);border-color:var(--blue)}
#site .town-numbers :is(#geography,#history,#population) .statbook-table-box{max-height:none;min-height:0}
/* Numbers close to their labels in the full-width joints (Robert, 2026-11-28: "right"). */
#site .town-numbers :is(#geography,#history,#population) .statbook-fields{max-width:640px}
/* The Population Trends chart inside the Population joint, under the fields (2026-11-28). */
#site .town-numbers #population .statbook-tree-node{margin-top:14px}
/* County Statbook, Unemployment: every Upstate county, graph over its same-month grid (Robert, 2026-11-29). The chart
   rules are the Unemployment page's (similar-counties.css, unemployment-experiment.css), scoped here so that page's
   stylesheet is not loaded on Statbooks. */
.statbook-ue-all{max-width:none}
.statbook-ue-all .statbook-ue-title{margin:2px 0 6px;font-weight:400}
.statbook-ue-all .ue-trend-chart{position:relative}
.statbook-ue-all .ue-trend-chart svg{display:block;width:100%;height:380px;cursor:crosshair}
.statbook-ue-all .ue-trend-chart line.grid{stroke:#e0e7e2;stroke-width:1}
.statbook-ue-all .ue-trend-chart text.axis-label{text-anchor:end;font-weight:700;fill:var(--forest);font-size:11px}
.statbook-ue-all .ue-trend-chart text.period-label{font-size:11px;fill:var(--forest)}
.statbook-ue-all .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}
.statbook-ue-all .ue-trend-chart path.overlay-county-line{fill:none;stroke:#34563e;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;opacity:.22}
.statbook-ue-all .ue-trend-chart path.overlay-highlight-casing,.statbook-ue-all .ue-trend-chart path.overlay-highlight-line{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.statbook-ue-all .ue-trend-chart path.overlay-highlight-casing{stroke:#123e2f;stroke-width:5}
.statbook-ue-all .ue-trend-chart path.overlay-highlight-line{stroke-width:2.6}
.statbook-ue-all .ue-trend-legend{display:flex;gap:16px;margin:0 0 8px;font-size:14px;color:var(--forest)}
.statbook-ue-all .ue-legend-swatch{display:inline-block;width:16px;height:3px;margin-right:5px;vertical-align:middle;border-radius:2px}
.statbook-ue-all .ue-legend-swatch.county{background:#34563e}
.statbook-ue-all .ue-legend-swatch.highlight{box-shadow:0 0 0 1px #123e2f}
.statbook-ue-all .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}
/* The grid: about 13 rows tall, scrolls inside; header and county column stay put (Site Defaults: Grids). */
.statbook-ue-grid-box{max-height:372px;overflow:auto;border-top:1px solid var(--rule)}
.statbook-ue-grid-box:focus{outline:1px solid var(--blue);outline-offset:1px}
#site .statbook-ue-all table.statbook-ue-grid{width:auto;max-width:none;border-collapse:separate;border-spacing:0;font:400 13px var(--font-body);font-variant-numeric:tabular-nums}
#site .statbook-ue-all table.statbook-ue-grid :is(th,td){padding:4px 9px!important;white-space:nowrap!important;text-align:right;vertical-align:middle;color:var(--ink);font-size:13px;font-weight:400;border-bottom:1px solid #e6ece8}
#site .statbook-ue-all table.statbook-ue-grid thead th{position:sticky;top:0;z-index:2;background:#f7f9f7;border-bottom:1px solid var(--rule-strong);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
#site .statbook-ue-all table.statbook-ue-grid :is(thead th,tbody th):first-child{position:sticky;left:0;text-align:left;min-width:112px}
#site .statbook-ue-all table.statbook-ue-grid thead th:first-child{z-index:3}
#site .statbook-ue-all table.statbook-ue-grid tbody th{z-index:1;background:inherit;font-weight:400}
#site .statbook-ue-all table.statbook-ue-grid tbody tr{background:#fff}
#site .statbook-ue-all table.statbook-ue-grid tbody tr:nth-child(even){background:color-mix(in srgb, var(--topic) 5%, #fff)}
#site .statbook-ue-all table.statbook-ue-grid tbody tr.picked{background:var(--filter-on)}
html.print-mode #site .statbook-ue-grid-box{max-height:none;overflow:visible;margin-bottom:8px}
html.print-mode #site .statbook-ue-all table.statbook-ue-grid :is(th,td){padding:2px 4px!important;font-size:9px}
html.print-mode #site .statbook-ue-all .ue-trend-chart svg{height:300px}
