/* Annexations and Boundary Changes page (app/reports/boundary-changes). Builds on population-change.css (page frame) and
   statbook.css (footnotes). Ledger look: hairline rules, no boxes or rounded corners. Grid text in Arial like the site's other data grids (Robert, 2026-10-20: not Times); titles in the site title font. */
.bnd-page .ue-title-cap{font-size:1.22em}
.bnd-page .popchg-hero h1{font-weight:700}

/* Place search */
.bnd-search{margin-top:22px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;font-size:13px}
.bnd-search label{display:grid;gap:4px;color:#334e45;font:700 11px/1.2 var(--font-body);letter-spacing:.04em;text-transform:uppercase}
.bnd-search input{width:min(420px,86vw);height:36px;padding:0 10px;border:1px solid var(--rule-strong);border-radius:0;background:#fff;color:#082946;font:400 14px var(--font-body);letter-spacing:0;text-transform:none}
.bnd-muted{color:var(--pc-muted)}
.bnd-search .bnd-muted{font:400 13px var(--font-body);color:#082946}
.bnd-clear{min-height:32px;padding:5px 12px;font-size:12px;cursor:pointer}

/* Count tables: four side by side, hairline rules */
.bnd-counts{margin-top:24px;padding-top:4px;border-top:2px solid var(--rule-strong)}
.bnd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:28px}
.bnd-panel{min-width:0}
.bnd-panel h2,.bnd-section-head h2,.bnd-section-title,.bnd-about h2{margin:14px 0 8px;color:var(--title-navy,#082946);font:700 20px/1.2 var(--font-title)}
.bnd-section-head h3{margin:0;color:var(--title-navy,#082946);font:700 17px/1.25 var(--font-title)}

/* All figure tables */
.bnd-table{width:100%;border-collapse:collapse;font:400 13px/1.35 var(--font-body);color:#1b3144;font-variant-numeric:tabular-nums}
.bnd-table th,.bnd-table td{padding:7px 10px;border-bottom:1px solid var(--rule);text-align:left;vertical-align:top;font-weight:400}
.bnd-table thead th{padding:9px 10px 7px;border-bottom:1px solid #cbd7cf;background:#f7f9f7;color:#334e45;font:700 11px/1.2 var(--font-body);letter-spacing:.04em;text-transform:uppercase;vertical-align:bottom}
.bnd-table .n{text-align:right}
.bnd-table tfoot td{border-top:1px solid var(--rule-strong);border-bottom:0}
.bnd-table th.bnd-group{text-align:center;border-bottom:1px solid var(--rule)}
.bnd-click{cursor:pointer}
.bnd-click:hover td{background:#f7f9f7}
.bnd-on td{background:#eef3ef}
.bnd-check{margin:0 8px 0 0;vertical-align:-2px;accent-color:#1f5138}

/* Detail and annexed-area sections */
.bnd-section{margin-top:38px;padding-top:4px;border-top:2px solid var(--rule-strong)}
.bnd-section-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px;margin:0 0 10px}
.bnd-section-head h2{margin-bottom:0}
.bnd-section .download-control{display:flex;align-items:center;gap:8px}
.bnd-section .download-control select{height:34px;padding:0 9px;border:1px solid var(--rule-strong);border-radius:0;background:#fff;color:#082946;font-size:12px}
.bnd-section .download-control .primary-button{min-height:34px;font-size:12px;cursor:pointer}
.bnd-annexed{margin-top:22px}
.bnd-scroll{overflow-x:auto}
.bnd-note{min-width:340px}
.bnd-nowrap{white-space:nowrap}
.bnd-section .statbook-notes,.bnd-counts .statbook-notes{font-size:13px}

/* About the notes: the page's disclaimers, once, at the bottom */
.bnd-about{margin-top:38px;padding-top:4px;border-top:2px solid var(--rule-strong);font-size:14px;line-height:1.5;color:#1b3144}
.bnd-about ul{margin:0;padding-left:20px;max-width:900px}

@media (max-width:700px){.popchg-page{padding:20px 16px 50px}.bnd-grid{grid-template-columns:1fr}}
/* Grids in a frame with their own scroll bar, header row kept in view (as on Population Change and Water pages) */
.bnd-frame{max-height:560px;overflow:auto;border:1px solid var(--pc-line,#c6d0c7);background:#fff;scrollbar-gutter:stable}
.bnd-frame thead th{position:sticky;top:0;z-index:1}
.bnd-frame thead tr:nth-child(2) th{top:31px}
.bnd-rowcount{margin:6px 0 0;color:#536879;font:400 12px var(--font-body)}
.bnd-comments{margin-top:22px}
.bnd-comments h3{margin:0 0 8px;color:var(--title-navy,#082946);font:700 17px/1.25 var(--font-title)}
.bnd-comments ul{margin:0;padding-left:20px;max-width:1000px;color:#1b3144;font:400 13px/1.45 var(--font-body)}
.bnd-comments li{margin:4px 0}
.bnd-page .statbook-fn{margin-left:.25em}

/* Boundary changes as rows (Robert, 2026-10-20): Type of Change | Received Land | Gave Land. Site tokens only. */
.bnd-tx-cols{display:grid;grid-template-columns:minmax(170px,.5fr) 1fr 1fr;gap:0 18px}
.bnd-tx-cols>div:nth-child(3){padding-left:18px;border-left:1px solid var(--rule)}
.bnd-tx-head{padding:8px 0 6px;border-top:2px solid var(--rule-strong)}
.bnd-tx-title{color:var(--title-navy);font:700 15px/1.2 var(--font-title)}
.bnd-tx-group{display:block;margin-bottom:5px;padding-bottom:4px;border-bottom:2px solid var(--rule-strong)}
.bnd-tx-place{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:8px;padding:2px 0}
.bnd-tx-place>span:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums}
.bnd-tx-labels{color:var(--title-navy);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.bnd-tx-frame{max-height:70vh;overflow-y:scroll;border-top:2px solid var(--rule-strong)}
.bnd-tx-row{padding:12px 0;border-bottom:1px solid var(--line-dark)}
.bnd-tx-row:last-child{border-bottom:0}
.bnd-tx-note{margin:0 0 8px}
.bnd-tx-type{color:var(--title-navy);font:700 15px/1.3 var(--font-title)}
.bnd-tx-type>span{color:var(--forest);font:400 14px var(--font-body)}


@media (max-width:800px){.bnd-tx-cols{grid-template-columns:1fr}.bnd-tx-cols>div:nth-child(3){padding-left:0;border-left:0}}
/* Light shading on the middle (Gave Land) side so left and right read apart (Robert, 2026-10-20) */
.bnd-tx-cols>div:nth-child(2){margin:-4px 0;padding:4px 8px;background:rgba(31,81,56,.06)}
.bnd-tx-head>div:nth-child(2){margin:-8px 0 -6px;padding:8px 8px 6px}
/* Group titles in their own line above the divider (Robert, 2026-10-20) */
.bnd-tx-groups{padding:0 0 6px}
.bnd-tx-groups>div:nth-child(2){padding:0 8px}
.bnd-tx-head{align-items:end}
.bnd-tx-note{font-style:italic}
.bnd-tx-note .bnd-muted{font-style:normal}
.bnd-tx-row .bnd-tx-note{margin:8px 0 0}

/* Rows as one table (Robert, 2026-10-20): Type · Date | Gave Land: Place, County, Land | Received Land: Place, Population, Change */
.bnd-tx-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.bnd-tx-table th,.bnd-tx-table td{padding:3px 10px;text-align:left;vertical-align:top}
.bnd-tx-table .n{text-align:right}
.bnd-tx-table .bnd-tx-groups th{padding:0 10px 6px;color:var(--title-navy);font:700 15px/1.2 var(--font-title);border-bottom:2px solid var(--rule-strong)}
.bnd-tx-table .bnd-tx-labels th{padding:7px 10px 6px;color:var(--title-navy);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border-bottom:2px solid var(--rule-strong);vertical-align:bottom}
.bnd-tx-table .bnd-tx-labels th:first-child{font:700 15px/1.2 var(--font-title);letter-spacing:0;text-transform:none}
.bnd-tx-table .bnd-tx-gave{background:rgba(31,81,56,.06)}
.bnd-tx-table .bnd-tx-recv{border-left:1px solid var(--rule)}
.bnd-tx-table tbody tr:first-child td{padding-top:10px}
.bnd-tx-table .bnd-tx-noterow td{padding:6px 10px 10px;border-bottom:1px solid var(--line-dark);font-style:italic}
.bnd-tx-table .bnd-tx-type{white-space:nowrap}
.bnd-tx-frame{border-top:0}
/* Robert's layout (2026-10-20): note in italics in the open space on the left */
.bnd-tx-table .bnd-tx-date,.bnd-tx-table .bnd-tx-type{white-space:nowrap;color:var(--title-navy);font-weight:700}
.bnd-tx-table td.bnd-tx-note{padding:4px 14px 10px 10px;font-style:italic;white-space:normal;max-width:360px}
.bnd-tx-table tbody.bnd-tx-row{border-bottom:1px solid var(--line-dark)}
.bnd-tx-table tbody.bnd-tx-row tr:last-child td{padding-bottom:10px}
/* Titles in caps and small caps like the site's approved titles (Landing 7, Statbook): small capitals plus lead caps (Robert, 2026-10-20) */
.bnd-page .popchg-hero h1,.bnd-panel h2,.bnd-section-head h2,.bnd-section-head h3,.bnd-section-title,.bnd-about h2,.bnd-comments h3,
.bnd-tx-table .bnd-tx-groups th{font-variant-caps:small-caps;letter-spacing:.03em}
/* Date narrow; Type of Change wide; note left-aligned under Type of Change, wrapping (Robert, 2026-10-20) */
.bnd-tx-table{table-layout:fixed}
.bnd-tx-table .bnd-col-date{width:90px}
.bnd-tx-table .bnd-col-type{width:340px}
.bnd-tx-table td.bnd-tx-note{max-width:none;padding:4px 14px 10px 10px;text-align:left;white-space:normal;overflow-wrap:anywhere}
/* Tighter rows (Robert, 2026-10-20) */
.bnd-tx-table th,.bnd-tx-table td{line-height:1.25}
.bnd-tx-table tbody td{padding-top:1px;padding-bottom:1px}
.bnd-tx-table tbody tr:first-child td{padding-top:6px}
.bnd-tx-table tbody.bnd-tx-row tr:last-child td{padding-bottom:6px}
.bnd-tx-table td.bnd-tx-note{padding:2px 14px 6px 10px}
/* Row source as a blue link after the note (Robert, 2026-10-20) */
.bnd-tx-table .bnd-tx-src{color:var(--blue);font-style:normal;font-weight:400;font-size:12px;text-decoration:underline}
.bnd-tx-table a.bnd-tx-src:hover{text-decoration:underline}
/* FROM -> TO over the grid (Robert, 2026-10-20): FROM over the Place From columns, arrow pointing to TO */
.bnd-tx-from{display:flex;justify-content:space-between;align-items:baseline}
.bnd-tx-from>span[aria-hidden]{font-size:1.2em;line-height:1}
/* Caps and small caps with a subtle difference (Robert, 2026-10-20: "the difference in height is supposed to be subtle"):
   all letters capitals, first letter of each word slightly larger, instead of the browser's faked small caps. */
.bnd-page .popchg-hero h1,.bnd-panel h2,.bnd-section-head h2,.bnd-section-head h3,.bnd-section-title,.bnd-about h2,.bnd-comments h3,
.bnd-tx-table .bnd-tx-groups th{font-variant-caps:normal;text-transform:uppercase;letter-spacing:.02em}
.bnd-page .popchg-hero h1{font-size:30px}
.bnd-panel h2,.bnd-section-head h2,.bnd-section-title,.bnd-about h2{font-size:17px}
.bnd-section-head h3,.bnd-comments h3,.bnd-tx-table .bnd-tx-groups th{font-size:15px}
.bnd-page .ue-title-cap{font-size:1.15em}

/* Grid box scrolls only when the rows don't fit; clicking it gives it focus for wheel and keys (Robert, 2026-10-21). */
.bnd-tx-frame{overflow-y:auto}
.bnd-tx-frame:focus{outline:none}
.bnd-tx-frame:focus-visible:not([data-mouse]){outline:3px solid #ffca45;outline-offset:2px}
