/* Property Tax Estimator, draft (Robert, 2026-11-16). Reuses the water grid and permits classes; layout only here.
   Estimates in the site's estimate red #a61b1b (Site Defaults). */
.tc-house{margin-top:16px}
.tc-house h2,.tc-detail h2{margin:0 0 8px;color:var(--title-navy);font:700 20px var(--font-title)}
.tc-inputs{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:flex-end}
.tc-inputs label{display:flex;flex-direction:column;gap:4px;font:700 12px var(--font-body);color:var(--forest)}
.tc-inputs input,.tc-inputs select{height:34px;padding:0 8px;border:1px solid var(--rule);border-radius:6px;font:14px var(--font-body);color:var(--ink)}
.tc-inputs input[type=number]{width:120px}
.tc-how{margin:6px 0;color:var(--blue);font-weight:700;font-size:13px}
.tc-master-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:32px;align-items:start;margin-top:10px}
@media (max-width:1300px){.tc-master-detail{grid-template-columns:1fr}}
.tc-scroll{max-height:520px;overflow:auto}
.tc-scroll thead th{position:sticky;top:0;z-index:1}
.tc-master td.num,.tc-master th.num,.tc-bill td.num,.tc-bill th.num{text-align:right;font-variant-numeric:tabular-nums}
.tc-master tbody tr{cursor:pointer}
.tc-master tbody tr:hover{background:var(--wash)}
.tc-master tbody tr.picked{background:#ffe066;font-weight:700}
.tc-est{color:#a61b1b}
.tc-detail{margin-top:20px;border-top:1px solid var(--rule);padding-top:10px}
.tc-detail-inputs select{max-width:420px}
.tc-flags{border:0;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 18px}
.tc-flags legend{font:700 13px var(--font-body);color:var(--forest);margin-bottom:4px;padding:0}
.tc-flags label{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--ink)}
.tc-flags label.tc-none{color:var(--muted)}
.tc-count{color:var(--muted);font-size:12px}
.tc-bill{margin-top:14px;width:100%}
.tc-bill tr.tc-minus td:first-child{padding-left:18px}
.tc-bill tfoot td{border-top:2px solid var(--rule-strong);font-weight:700}
.tc-bill th{font:700 11px var(--font-body);letter-spacing:.04em;text-transform:uppercase;background:#f7f9f7;border-bottom:1px solid var(--rule-strong);padding:6px 8px}
.tc-bill td{padding:5px 8px;border-bottom:1px solid var(--rule)}
.tc-bill th.tc-left{text-align:left}
/* Locator tiles at the top right of the page head, above the heavy line (trial, 2026-11-16). */
.tc-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:28px}
.tc-hero-text{flex:1 1 auto;min-width:0}
.tc-locators{display:flex;align-items:flex-start;gap:14px;flex:0 0 auto}
.tc-locators>*{width:260px;margin:0}
.tc-locators .statbook-town-map .county-callout svg{height:auto;max-height:220px}
/* The Duplex in place of the two tiles (2026-11-28). */
/* Same settings as the Duplex on Property Search (Robert, 2026-11-28: "that is not the duplex map"): small state inset
   with the county name, town names on, the town map 240 tall. */
.tc-locators.tc-duplex>*{width:300px}
.tc-duplex .tml{--tml-inset:78px;--tml-room:34px}
.tc-duplex .tml-inset-name{font-size:8px;top:2px}
.tc-duplex .tml-inset,.tc-duplex .tml-inset .ue-jobs-map{background:transparent} /* see-through tiny county tile (Robert, 2026-11-28) */
.tc-duplex .statbook-town-map .county-callout{max-width:300px;padding:5px 6px}
.tc-locators.tc-duplex .statbook-town-map .county-callout svg{height:240px;max-height:none}
.tc-duplex .callout-label{font-size:8px}
.tc-duplex div.callout-town{display:none}
@media (max-width:1300px){.tc-hero{flex-wrap:wrap}}
.tc-inputs input.tc-dollars{width:140px;text-align:right;font-variant-numeric:tabular-nums}
/* Bill-style answer first (2026-11-16). */
.tc-answer{margin:16px 0 6px;padding:12px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.tc-answer p{margin:0}
.tc-answer-label{font:700 12px var(--font-body);letter-spacing:.06em;text-transform:uppercase;color:var(--forest)}
.tc-answer-big{font:700 34px/1.15 var(--font-title)}
.tc-answer-split{color:var(--ink);font-size:15px;margin-top:2px}
.tc-detail-inputs .secondary-button{height:34px}
.tc-how-we{margin-top:14px}
/* "You must click a row in the grid to get started." (Robert, 2026-11-17): medium blue, bold, italics, at the bottom of
   the title area, right above the line over Your House. */
.tc-hero{align-items:stretch}
.tc-hero-text{display:flex;flex-direction:column}
#site .tc-hero-text p.tc-start{margin:auto 0 0;padding-top:10px;color:var(--blue);font-weight:700;font-style:italic;font-size:14px}
/* Smart search over the towns grid (Robert, 2026-11-17). */
.tc-find{position:relative;max-width:420px;margin:8px 0 2px}
.tc-find input{width:100%;height:36px;padding:0 10px;border:1px solid var(--rule);border-radius:6px;font:14px var(--font-body);color:var(--ink)}
.tc-find-list{position:absolute;z-index:5;left:0;right:0;top:38px;margin:0;padding:4px 0;list-style:none;background:#fff;border:1px solid var(--rule);border-radius:6px;max-height:320px;overflow:auto}
.tc-find-list li{display:flex;justify-content:space-between;gap:12px;padding:6px 10px;cursor:pointer;font-size:14px;color:var(--ink)}
.tc-find-list li span{color:var(--muted);font-size:12px}
.tc-find-list li:hover{background:var(--wash)}
.tc-find-list li.none{cursor:default;color:var(--muted)}
/* Grid title on its own line, then the search and the download, all above the grid's line (Robert, 2026-11-17: "move
   the search bar above the line"; "and put the title above it"). */
#site .tc-master > header{flex-wrap:wrap;align-items:center;row-gap:6px}
#site .tc-master > header h2{flex:0 0 100%}
#site .tc-master > header .tc-find{flex:1 1 300px;margin:0 12px 0 0}
/* Bill boxes in the Your House row (2026-11-27): town, village, school and assessed value first; house details below. */
.tc-house-row{margin-top:12px}
.tc-inputs select.tc-school{max-width:460px}
.tc-inputs input.tc-av{width:170px}
.tc-av-note{margin:6px 0;color:var(--blue);font-weight:700;font-size:13px}
.tc-range{white-space:nowrap}
/* Test Data for Property Tax Estimates (2026-11-27). */
#site .water-grid td.tc-test-ok{color:#1f7a4d;font-weight:700}
#site .water-grid td.tc-test-miss{color:var(--limits-red,#a61b1b);font-weight:700}
#site .water-grid td.tc-test-na{color:var(--muted)}
#site .tc-test-village{color:var(--muted)}
#site .water-grid :is(th,td).tc-left{text-align:left}
/* Histogram on the test page: HTML bars, counts on the bars (labels on the chart, Site Defaults). */
.tc-hist-note{margin:2px 0 8px;color:var(--blue);font-size:13px}
.tc-hist-chart{display:flex;gap:18px;align-items:flex-end;height:240px;padding:8px 4px 0;border-bottom:1px solid var(--rule-strong)}
.tc-hist-group{flex:1;display:flex;flex-direction:column;height:100%;min-width:0}
.tc-hist-bars{flex:1;display:flex;gap:4px;align-items:flex-end}
.tc-hist-bar{flex:1;position:relative;min-height:1px}
.tc-hist-bar.first{background:#b9c1c8}
.tc-hist-bar.now{background:#2e5c9e}
.tc-hist-bar span{position:absolute;bottom:100%;left:0;right:0;text-align:center;font:700 12px var(--font-body);color:var(--ink);padding-bottom:2px}
.tc-hist-label{margin:6px 0 0;text-align:center;font:700 12px var(--font-body);color:var(--ink)}
.tc-hist-key{margin:8px 0 0;font-size:13px;color:var(--ink)}
.tc-hist-swatch{display:inline-block;width:12px;height:12px;vertical-align:-1px;margin:0 4px 0 10px}
.tc-hist-swatch.first{background:#b9c1c8}.tc-hist-swatch.now{background:#2e5c9e}
/* Caution above 3% (2026-11-27). */
.tc-caution{margin:8px 0;padding:8px 12px;border-left:4px solid var(--limits-red,#a61b1b);color:var(--ink)}
.tc-caution p{margin:0;color:var(--limits-red,#a61b1b)}
/* "see test results" in the red warning: underlined, the warning's own red (2026-11-28). */
.permits-warning a{color:inherit;text-decoration:underline}
/* Notes and Sources at the page bottom (2026-11-28). */
.tc-notes{margin-top:24px}
/* Print / PDF (2026-11-28): the page as shown, without the menu bar, search box, buttons and Page menu; the town grid
   prints whole; the right side follows the grid. */
@media print{
  #site .topbar,.page-icon-menu,.tc-find,.beta-watermark,.tc-hero .statbook-print-actions,button.secondary-button,button.primary-button{display:none!important}
  .tc-scroll{max-height:none!important;height:auto!important;overflow:visible!important}
  .tc-master-detail{display:block!important}
  .tc-scroll tr,.tc-answer,.tc-bill,.tc-caution{break-inside:avoid}
}
/* The special district warning: red, bigger, bold (Robert, 2026-11-28). */
.tc-district-warn{color:var(--limits-red,#a61b1b);font-size:16px;font-weight:700}
.tc-caution ul{margin:4px 0 0;padding-left:18px;font-size:13px}
#site .water-grid tr.tc-test-why td{color:var(--limits-red,#a61b1b);font-size:12px;white-space:normal;border-bottom:1px solid var(--rule)}
