/* Paper county atlas and responsive record panels. Author: Daniel Hallman */
.county-explorer { background: #f4ecd8; }
.county-search-bar { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 14px; padding: 14px 24px; border-bottom: 2px solid #191a18; background: #f8f8f5; box-shadow: 0 4px 12px #24251b18; }
.county-search-bar .research-county-control { max-width: none; gap: 8px; }
.county-search-bar :is(input, select) { min-height: 50px; border: 2px solid #94968e; border-radius: 5px; background: #fff; font-size: 1rem; }
.county-search-bar select { width: 100%; font-weight: 700; padding-right: 27px; }
.county-search-bar .research-search { grid-template-columns: minmax(0, 1fr) 128px; gap: 12px; }
.county-search-bar .research-button { min-height: 50px; border-width: 3px; border-radius: 4px; }
.county-search-bar .research-county-go { padding-inline: 10px; }
.county-workspace { position: relative; }
.county-map { position: relative; height: min(850px, calc(100svh - 157px)); min-height: 540px; overflow: hidden; background: #f4ecd8 url('/assets/maps/paper-grain.webp') repeat; }
.county-map .county-map-canvas { position: absolute; inset: 0; }
.county-map-status { position: absolute; z-index: 2; top: 15px; left: 16px; max-width: min(45ch, calc(100% - 100px)); padding: 8px 12px; border: 1px solid #aca991; border-radius: 6px; background: #fffcf2f2; font-size: .8125rem; color: #3c493b; box-shadow: 0 3px 10px #2f39251c; }
.county-map-status a { color: inherit; text-decoration: underline; }
.county-map .maplibregl-ctrl-top-right { top: 10px; right: 12px; }
.county-map .maplibregl-ctrl-group { border: 2px solid #181c16; border-radius: 5px; box-shadow: 3px 3px 0 #181c1633; }
.county-map .maplibregl-ctrl-group button { width: 48px; height: 48px; }
.county-map .maplibregl-ctrl-group button + button { border-top: 1px solid #c5c5b8; }
.county-map .maplibregl-ctrl button:not(:disabled):hover { background-color: #e2fdff; }
.county-map .maplibregl-ctrl-bottom-right { bottom: 112px; right: 10px; max-width: calc(100% - 24px); }
.county-map .maplibregl-ctrl-attrib { background: #fffdf4ee; color: #344031; border-radius: 5px; font-size: 10px; line-height: 18px; }
.county-map .maplibregl-ctrl-attrib a { color: #344031; }
.county-map .maplibregl-ctrl-bottom-left { bottom: 115px; left: 12px; }
.county-map .maplibregl-ctrl-scale { border-color: #344031; color: #344031; background: #fffdf4d9; font-size: 10px; }
.county-map-tools { position: absolute; z-index: 2; top: 178px; right: 22px; width: 52px; display: grid; gap: 12px; }
.county-map-perspective { border: 2px solid #181c16; border-radius: 5px; overflow: hidden; box-shadow: 3px 3px 0 #181c1633; background: #fff; }
.county-map-perspective button { display: block; width: 100%; min-height: 44px; border: 0; background: #fff; color: #101713; font: inherit; font-size: .75rem; font-weight: 750; cursor: pointer; }
.county-map-perspective button + button { border-top: 1px solid #acb4a5; }
.county-map-perspective button[aria-pressed='true'] { background: #00f0ff; }
.county-map-layers { position: relative; }
.county-map-layers summary { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; list-style: none; cursor: pointer; background: #fff; border: 2px solid #181c16; border-radius: 5px; box-shadow: 3px 3px 0 #181c1633; }
.county-map-layers summary::-webkit-details-marker { display: none; }
.county-map-layers summary img { object-fit: contain; }
.county-map-layers > div { position: absolute; right: 62px; top: 0; width: 220px; padding: 14px; border: 2px solid #191d15; border-radius: 5px; background: #fffdf4; box-shadow: 4px 4px 0 #191d1540; font-size: .875rem; }
.county-map-layers strong { display: block; margin-bottom: 5px; }
.county-map-layers label { display: flex; gap: 9px; align-items: center; min-height: 44px; }
.county-map-layers input { width: 20px; height: 20px; min-height: 20px; accent-color: #00818f; }
.county-map-layers :is(button, a) { display: flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 4px 0; color: #21534a; font: inherit; text-decoration: underline; text-underline-offset: 4px; text-align: left; cursor: pointer; }
.county-map-footer { position: absolute; z-index: 2; bottom: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; background: #fffefb; border: 1px solid #d4d6c9; border-radius: 16px; box-shadow: 0 6px 18px #20281640; }
.county-map-count { display: flex; gap: 22px; align-items: center; }
.county-map-count > strong { font-size: clamp(1.15rem, 2.3vw, 1.7rem); letter-spacing: -.03em; line-height: 1.15; }
.county-map-count > span { padding-left: 20px; border-left: 1px solid #bcc1b3; font-size: .875rem; color: #4d5848; }
.county-map-count small { display: block; margin-top: 2px; font-size: .75rem; }
.county-map-footer > a { min-height: 52px; border: 3px solid #111; border-radius: 5px; padding-inline: 24px; gap: 24px; white-space: nowrap; font-size: 1rem; }
.county-panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 2px solid #171b15; background: #ffe500; font-size: .875rem; font-weight: 750; }
.county-panel-bar button { font-size: .75rem; box-shadow: 2px 2px 0 #111; padding: 7px 10px; }
.county-records-panel, .county-details-panel { background: #fff; }
.county-details-panel .research-inspector { border: 0; }
.county-details-panel .research-selected-summary { display: block; }
.county-details-panel .research-selected-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; }
.county-details-panel .research-selected-facts > div { border: 0; padding-left: 0; }
.county-details-panel .research-selected-facts > div:last-child { grid-column: 1 / -1; display: block; }
.county-details-panel .research-selected-actions { margin-top: 16px; padding: 14px 0 0; border-left: 0; border-top: 1px solid #cbd2dc; }
.county-details-panel .research-expanded-content { display: block; }
.county-details-panel .research-source-details { margin-top: 20px; }
.county-details-panel .research-back-button:not([hidden]) { display: inline-flex; margin: 16px 20px 0; }
.county-workspace[data-enhanced='true'] :is(.county-records-panel, .county-details-panel) { display: none; position: absolute; top: 18px; bottom: 128px; left: 18px; width: min(430px, calc(100% - 105px)); z-index: 3; border: 2px solid #191d15; border-radius: 8px; box-shadow: 5px 5px 0 #191d1538; overflow-y: auto; overscroll-behavior: contain; }
.county-workspace[data-enhanced='true'][data-view='list'] .county-records-panel, .county-workspace[data-enhanced='true'][data-view='details'] .county-details-panel { display: block; }
.county-records-panel .research-results { border: 0; min-height: 0; max-height: none; }
.county-records-panel .research-record-list { overflow: visible; }
.county-records-panel .research-results-heading { padding: 15px 14px 8px; }
.county-records-panel .research-source-filter { width: 100%; justify-content: space-between; }
.county-records-panel .research-record-select { min-height: 115px; }
.county-map-noscript { position: absolute; top: 25%; left: 10%; right: 10%; max-width: 55ch; padding: 24px; background: #fffdf4; border: 2px solid #171b15; }
.research-services { padding: 32px max(20px, 3.8%); background: #fffdf5; border-top: 2px solid #171b15; }
.research-services h2 { font-family: var(--font-body); font-size: 1.2rem; letter-spacing: -.025em; margin: 0 0 18px; text-transform: none; }
.research-service-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.research-service-link { display: flex; align-items: flex-start; gap: 12px; min-height: 142px; padding: 18px; border: 2px solid #1b2117; border-radius: 5px; background: #fff; color: #172015; box-shadow: 3px 3px 0 #1b2117; text-decoration: none; }
.research-service-link:hover { background: #e2fdff; transform: translateY(-2px); }
.research-service-link img { flex: 0 0 28px; width: 28px; height: 28px; object-fit: contain; }
.research-service-link :is(small, strong, span > span) { display: block; }
.research-service-link small { font: 700 .625rem var(--font-mono); letter-spacing: .08em; color: #5b674d; margin-bottom: 6px; }
.research-service-link strong { font-size: .9375rem; line-height: 1.35; }
.research-service-link strong span { display: inline; }
.research-service-link span > span { font-size: .8125rem; line-height: 1.5; color: #5b6554; margin-top: 6px; }
@media (max-width: 900px) {
  .county-search-bar { padding: 10px 14px; grid-template-columns: minmax(170px, .8fr) minmax(0, 1.5fr); gap: 10px; }
  .county-search-bar .research-search { grid-template-columns: minmax(0, 1fr) 90px; gap: 8px; }
  .county-map { height: calc(100svh - 150px); min-height: 580px; max-height: 1000px; }
  .research-service-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .county-search-bar { grid-template-columns: minmax(0, 1fr); padding: 9px 12px 12px; gap: 8px; }
  .county-search-bar :is(input, select), .county-search-bar .research-button { min-height: 46px; }
  .county-search-bar .research-county-control { max-width: 100%; }
  .county-search-bar .research-county-control select { padding-block: 6px; font-size: 1rem; }
  .county-search-bar .research-search { grid-template-columns: minmax(0, 1fr) 87px; }
  .county-search-bar .research-field input { font-size: 1rem; padding-inline: 11px; }
  .county-search-bar .research-button { padding-inline: 10px; }
  .county-map { height: calc(100svh - 190px); min-height: 540px; }
  .county-map .maplibregl-ctrl-top-right { top: 5px; right: 4px; }
  .county-map .maplibregl-ctrl-group button { width: 44px; height: 44px; }
  .county-map-tools { top: 157px; right: 14px; width: 48px; gap: 10px; }
  .county-map-perspective button { min-height: 44px; }
  .county-map-layers summary { width: 48px; height: 48px; }
  .county-map-layers > div { right: 56px; width: 206px; }
  .county-map-status { left: 10px; top: 12px; font-size: .75rem; }
  .county-map-footer { bottom: 10px; left: 8px; right: 8px; padding: 12px; gap: 10px; border-radius: 12px; align-items: center; }
  .county-map-count { display: block; }
  .county-map-count > strong { display: block; font-size: 1.05rem; }
  .county-map-count > span { display: block; padding: 0; border: 0; margin-top: 4px; font-size: .75rem; }
  .county-map-count small { font-size: .75rem; line-height: 1.3; }
  .county-map-count .county-map-source-code { display: none; }
  .county-map-footer > a { min-height: 48px; font-size: .8125rem; padding-inline: 12px; gap: 9px; }
  .county-map .maplibregl-ctrl-bottom-right { bottom: 113px; right: 3px; }
  .county-map .maplibregl-ctrl-bottom-left { bottom: 180px; left: 4px; }
  .county-workspace[data-enhanced='true'] :is(.county-records-panel, .county-details-panel) { top: 78px; bottom: 123px; left: 8px; width: calc(100% - 16px); border-radius: 12px; box-shadow: 0 5px 16px #191d1555; }
  .county-panel-bar { padding: 9px 12px; }
  .research-services { padding: 26px 16px 30px; }
  .research-services h2 { font-size: 1.1rem; }
  .research-service-links { gap: 12px; }
  .research-service-link { display: block; min-height: 190px; padding: 14px 12px; }
  .research-service-link img { margin-bottom: 10px; }
  .research-service-link strong { font-size: .875rem; }
  .research-service-link span > span { font-size: .75rem; }
}

/* GISDB owns prospecting and county data; Untax retains its tax-review shell. */
.sticky-header.gisdb-header { background: #00f0ff; }
.gisdb-header .brand-badge-red { color: #006570; }
.gisdb-header .nav-cta-btn { background: #fff; }
.gisdb-header .nav-workspace-link { text-decoration: underline; text-underline-offset: 4px; }
.gisdb-directory-home .research-tabs-row { display: none; }
.gisdb-research .research-data-hero { padding: 38px 3.8% 30px; background: #fffdf5; border-bottom: 2px solid #151b17; }
.gisdb-research .research-data-hero .research-title-row { margin-bottom: 18px; }
.gisdb-research .research-data-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.12; letter-spacing: -.04em; margin-bottom: 15px; }
.gisdb-research .research-data-hero .research-subtitle { max-width: 65ch; font-size: 1rem; line-height: 1.6; color: #465343; }
.research-data-eyebrow { font: 700 .75rem var(--font-mono); letter-spacing: .07em; margin: 0 0 16px; color: #476049; }
.research-data-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 28px; }
.research-data-actions .research-button { min-height: 52px; padding-inline: 20px; }
.gisdb-directory-home .research-search { max-width: 900px; }
.gisdb-directory-home .research-workspace { padding-top: 22px; background: #f2f4ed; }
.gisdb-research .research-directory-notice { background: #eef3df; color: #4c5c43; }
.research-services-gisdb .research-service-link:last-child { background: #fff6b5; }
@media (max-width: 600px) {
  .gisdb-header .nav-workspace-link { display: inline-flex; font-size: .8125rem; margin-left: auto; }
  .gisdb-header .nav-container { gap: 12px; }
  .gisdb-research .research-data-hero { padding: 27px 16px 24px; }
  .gisdb-research .research-data-hero h1 { font-size: 2.15rem; max-width: 15ch; }
  .gisdb-research .research-data-hero .research-subtitle { font-size: .9375rem; }
  .research-data-eyebrow { font-size: .625rem; letter-spacing: .035em; }
  .research-data-actions { gap: 8px; margin-bottom: 22px; }
  .research-data-actions .research-button { width: 100%; }
}
@media (max-width: 360px) { .gisdb-header .nav-workspace-link { display: none; } }
