/* Virginia Farm Field Explorer · Apogee Geospatial · build farm-fields-20260926b (house pattern shared with the VA Broadband and 15-Minute Life explorers) */
:root {
  --bg: #0B0F14; --panel: #141A20; --panel2: #10161c; --cream: #F7F4EE; --muted: #9AA3AD;
  --sage: #3D6B5A; --sage2: #8FBFA9; --line: #1e262e; --line2: #2a343e; --radius: 12px;
  --gold: #E6D5A3; --warn: #E9A23B; --header-h: 56px; --panel-w: 380px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--cream); font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--sage2); text-decoration: none; }
a:hover { color: var(--cream); }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 5000; background: var(--sage); color: var(--cream); padding: 6px 10px; border-radius: 6px; }
.skip:focus { left: 8px; }
.linkish { background: none; border: 0; padding: 0; color: var(--sage2); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.linkish:hover { color: var(--cream); }
.mono, .num { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }

/* Header */
header.app-bar { position: sticky; top: 0; z-index: 1000; height: var(--header-h); display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: rgba(11,15,20,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.app-bar img.wordmark { height: 30px; width: auto; display: block; }
header.app-bar .sub { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.app-bar nav { margin-left: auto; display: flex; gap: 16px; align-items: center; }
header.app-bar nav a, header.app-bar nav .linkish { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-decoration: none; }
header.app-bar nav a:hover, header.app-bar nav .linkish:hover { color: var(--cream); }
header.app-bar nav a.cta { color: var(--cream); background: var(--sage); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(143,191,169,.4); }

/* Header "About the data": ghost pill, same shape as the Contact pill (build farm-fields-20260926b) */
header.app-bar nav .linkish.hdr-ghost { display: inline-flex; align-items: center; color: var(--cream); font-weight: 500; font-size: 12px; letter-spacing: .04em; line-height: normal;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(247,244,238,.55); background: transparent; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease; }
header.app-bar nav .linkish.hdr-ghost:hover { color: var(--cream); background: rgba(247,244,238,.12); border-color: var(--cream); }
header.app-bar nav .linkish.hdr-ghost:focus { outline: none; }
header.app-bar nav .linkish.hdr-ghost:focus-visible { color: var(--cream); background: rgba(247,244,238,.12); border-color: var(--cream); outline: 2px solid var(--sage2); outline-offset: 2px; }
@media (max-width: 380px) { header.app-bar nav .linkish.hdr-ghost { padding: 6px 10px; } }

/* Stage */
.stage { position: relative; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); min-height: 560px; border-bottom: 1px solid var(--line); overflow: hidden; }
#map { position: absolute; inset: 0; background: #e9e9e6; }
body.basemap-dark #map, body.basemap-satellite #map { background: #1b1f23; }
body.has-panel #map { right: var(--panel-w); }

/* Top-left: search + metric */
.tl-box { position: absolute; z-index: 30; left: 12px; top: 12px; width: 330px; background: rgba(11,15,20,.93); border: 1px solid var(--line2); border-radius: 12px; padding: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.search-icon { display: none; }
.search { position: relative; }
input[type="search"], select { width: 100%; background: #0B0F14; border: 1px solid var(--line2); color: var(--cream); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; }
input[type="search"]:focus, select:focus, button:focus-visible, .chip:focus-visible { outline: none; border-color: var(--sage2); box-shadow: 0 0 0 2px rgba(143,191,169,.35); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1200; list-style: none; margin: 0; padding: 4px 0; background: #0B0F14; border: 1px solid var(--line2); border-radius: 8px; max-height: 320px; overflow-y: auto; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.search-results li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 11px; font-size: 13px; cursor: pointer; }
.search-results li.grp { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage2); cursor: default; padding: 8px 11px 3px; }
.search-results li[aria-selected="true"], .search-results li[role=option]:hover { background: rgba(61,107,90,.3); }
.search-results .src { color: var(--muted); font-size: 11px; white-space: nowrap; }
.search-status { font-size: 11.5px; color: var(--muted); margin-top: 5px; min-height: 0; }
.search-status:empty { display: none; }
.search-status.warn { color: var(--warn); }
.search-status .linkish { font-size: 11.5px; }
.ctl { margin-top: 9px; }
.ctl-lbl { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.year-row { display: flex; gap: 3px; margin-top: 7px; flex-wrap: wrap; }
.year-row:empty { display: none; }
.year-row button { flex: 1 1 0; min-width: 0; padding: 4px 0; font-size: 10.5px; font-family: "IBM Plex Mono", monospace; background: #0B0F14; color: var(--muted); border: 1px solid var(--line2); border-radius: 5px; cursor: pointer; position: relative; }
.year-row button[aria-checked="true"] { background: var(--sage); color: var(--cream); border-color: var(--sage2); }
.year-row button.newm::after { content: ""; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.year-note { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.year-note b { color: var(--warn); font-weight: 500; }
.opt { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--cream); margin: 5px 0; cursor: pointer; }
.opt.small { font-size: 11.5px; color: var(--muted); }
.opt input { accent-color: var(--sage2); margin: 0; }
.zoom-hint { margin-top: 7px; font-size: 11.5px; color: var(--gold); background: rgba(230,213,163,.08); border: 1px solid rgba(230,213,163,.25); border-radius: 7px; padding: 5px 8px; }

/* Layers */
.layers-btn { position: absolute; z-index: 30; right: 12px; top: 12px; display: flex; align-items: center; gap: 6px; background: rgba(11,15,20,.93); color: var(--cream); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
body.has-panel .layers-btn, body.has-panel .layers-panel { right: calc(var(--panel-w) + 12px); }
.layers-panel { position: absolute; z-index: 40; right: 12px; top: 56px; width: 290px; max-height: calc(100% - 80px); overflow-y: auto; background: rgba(11,15,20,.96); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.lp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lp-sec + .lp-sec { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2); }
.lp-lbl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage2); font-weight: 600; margin-bottom: 7px; }
.lp-sub { font-size: 10.5px; color: var(--muted); margin: 9px 0 2px; }
.lp-note { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.bm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.bm { position: relative; display: block; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; cursor: pointer; }
.bm input { position: absolute; opacity: 0; }
.bm img { display: block; width: 100%; height: 54px; object-fit: cover; }
.bm span { display: block; font-size: 11.5px; padding: 4px 7px; background: #0B0F14; }
.bm:has(input:checked) { border-color: var(--sage2); box-shadow: 0 0 0 2px rgba(143,191,169,.35); }
.bm:has(input:focus-visible) { outline: 2px solid var(--sage2); }
.mk-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1.5px solid #fff; }
.ltd { font-size: 10px; color: var(--warn); border: 1px solid rgba(233,162,59,.5); border-radius: 4px; padding: 0 4px; margin-left: 2px; white-space: nowrap; }

/* Legend */
.legend { position: absolute; z-index: 20; left: 12px; bottom: 34px; background: rgba(11,15,20,.93); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 11px; min-width: 190px; max-width: 280px; font-size: 11px; color: var(--cream); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.legend .lg-title { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage2); margin-bottom: 6px; font-weight: 600; line-height: 1.35; }
.legend .lg-row { display: flex; align-items: center; gap: 8px; margin: 3px 0; font-size: 11.5px; }
.legend .lg-sw { width: 18px; height: 12px; border-radius: 2px; border: 1px solid rgba(255,255,255,.25); flex: 0 0 auto; }
.legend .lg-sw.hatch { background-image: repeating-linear-gradient(45deg, #9aa3ad 0 2px, transparent 2px 5px); }
.legend .lg-note { color: var(--muted); font-size: 10.5px; line-height: 1.4; margin-top: 6px; }
.legend .lg-ltd { color: var(--warn); font-size: 11px; margin: 2px 0 6px; }
.legend .lg-sec { margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line2); }

/* Hover, loading, status */
.hover-card { position: absolute; z-index: 25; pointer-events: none; background: rgba(11,15,20,.95); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 9px; font-size: 12px; max-width: 260px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.hover-card .hc-m { color: var(--muted); font-size: 11px; margin-top: 2px; }
.map-loading { position: absolute; z-index: 26; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(11,15,20,.92); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
body.has-panel .map-loading { left: calc(50% - var(--panel-w) / 2); }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(143,191,169,.3); border-top-color: var(--sage2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-status { position: absolute; z-index: 26; left: 50%; bottom: 40px; transform: translateX(-50%); background: #3a1f1f; border: 1px solid #7a3b3b; color: #ffd9d0; border-radius: 8px; padding: 7px 12px; font-size: 12.5px; }

/* Right panel */
.panel { position: absolute; z-index: 35; top: 0; right: 0; bottom: 0; width: var(--panel-w); background: var(--panel2); border-left: 1px solid var(--line); display: none; flex-direction: column; }
body.has-panel .panel { display: flex; }
.panel-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px 28px; }
.sheet-handle { display: none; }
.loading { color: var(--muted); font-size: 13px; padding: 20px 0; }
.skel { background: linear-gradient(90deg, #161d24 0%, #1e2730 50%, #161d24 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: 6px; height: 14px; margin: 8px 0; }
@keyframes skel { to { background-position: -200% 0; } }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.p-head h2 { margin: 0; font-family: Syne, "IBM Plex Sans", sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.p-head .big { font-family: "IBM Plex Mono", monospace; font-size: 1.05rem; color: var(--gold); margin-top: 3px; }
.p-head .meta { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.icon-btn { background: transparent; border: 1px solid var(--line2); color: var(--muted); min-width: 30px; height: 30px; border-radius: 8px; font-size: 17px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.icon-btn:hover { color: var(--cream); border-color: var(--muted); }
.btn-sm { background: #0B0F14; border: 1px solid var(--line2); color: var(--sage2); border-radius: 6px; padding: 3px 8px; font-size: 11px; cursor: pointer; font-family: "IBM Plex Sans", sans-serif; }
.btn-sm:hover { color: var(--cream); border-color: var(--sage2); }
.sec { margin: 0 0 16px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 7px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage2); font-weight: 600; }
.sec-h .hint { font-size: 10px; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 400; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; }
.card p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.45; }
.card p:last-child { margin-bottom: 0; }
.small { font-size: 11.5px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-family: "IBM Plex Mono", monospace; }
.badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line2); margin: 2px 0 6px; }
.badge.prime { background: rgba(94,156,132,.22); border-color: #5E9C84; }
.badge.cond { background: rgba(143,191,169,.12); border-color: #8FBFA9; }
.badge.state { background: rgba(230,213,163,.12); border-color: #cdb97c; }
.badge.not { background: rgba(154,163,173,.1); }
.flag { display: inline-block; font-size: 11px; line-height: 1.35; padding: 3px 7px; border-radius: 6px; margin: 4px 0 0; }
.flag.warn { color: #F5C98A; background: rgba(233,162,59,.12); border: 1px solid rgba(233,162,59,.45); }
.flag.info { color: var(--muted); background: rgba(154,163,173,.08); border: 1px solid var(--line2); }

/* Crop timeline */
.tl-wrap { position: relative; padding-top: 16px; }
.tl-new { position: absolute; top: 0; right: 0; width: calc(20% - 2px); text-align: center; font-size: 9.5px; color: var(--warn); white-space: nowrap; cursor: help; border-top: 1px solid rgba(233,162,59,.6); padding-top: 1px; }
.tl { display: flex; gap: 3px; }
.chip { flex: 1 1 0; min-width: 0; height: 26px; border-radius: 4px; border: 1px solid rgba(255,255,255,.35); cursor: pointer; padding: 0; position: relative; }
.chip.est { border: 1.5px dotted rgba(255,255,255,.85); }
.chip.nodata { background: repeating-linear-gradient(45deg, #2a343e 0 3px, #141a20 3px 6px) !important; }
.chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cream); }
.chip.newm::after { content: ""; position: absolute; top: -4px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); border: 1px solid var(--panel); }
.tl-gap { width: 4px; flex: 0 0 4px; border-left: 1px dashed var(--muted); margin: 0 1px; }
.tl-years { display: flex; gap: 3px; margin-top: 3px; }
.tl-years span { flex: 1 1 0; text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 9.5px; color: var(--muted); }
.tl-years .tl-gap { border: 0; }
.tl-info { font-size: 11.5px; color: var(--cream); min-height: 17px; margin-top: 6px; }
.tl-info .src { color: var(--muted); }
.tl-head { font-size: 13px; margin: 8px 0 4px; }
.tl-head b { color: var(--gold); font-weight: 600; }
.tl-sum { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Bars / meters */
.stack { display: flex; height: 12px; border-radius: 4px; overflow: hidden; margin: 6px 0 4px; background: #0B0F14; border: 1px solid var(--line); }
.stack span { display: block; height: 100%; }
.meter { display: flex; gap: 3px; margin: 5px 0 2px; }
.meter span { flex: 1; height: 9px; border-radius: 2px; background: #243039; }
.meter span.on { background: var(--sage2); }
.meter-lbl { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.bar-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; font-size: 12px; margin: 5px 0; }
.bar-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { grid-column: 1 / -1; height: 6px; background: #0B0F14; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.bar-row .fill { display: block; height: 100%; }

/* Markets rows */
.mk-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mk-row:last-of-type { border-bottom: 0; }
.mk-type-lbl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mk-name { font-size: 13px; }
.mk-dt { font-family: "IBM Plex Mono", monospace; font-size: 13px; text-align: right; color: var(--gold); white-space: nowrap; }
.mk-row .flag { grid-column: 1 / -1; }

/* Popups */
.maplibregl-popup-content { background: #0f151b; color: var(--cream); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-size: 12px; box-shadow: 0 10px 26px rgba(0,0,0,.45); max-width: 280px; }
.maplibregl-popup-tip { border-top-color: #0f151b !important; border-bottom-color: #0f151b !important; }
.maplibregl-popup-close-button { color: var(--muted); font-size: 18px; right: 4px; top: 2px; }
.pop h4 { margin: 0 0 3px; font-size: 13px; }
.pop .t { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.pop p { margin: 3px 0; line-height: 1.4; }

/* Attribution */
.maplibregl-ctrl-attrib { font-size: 10.5px; }
.maplibregl-ctrl-bottom-right { z-index: 21; }

/* Footer, modal */
.page-foot { padding: 22px 22px 36px; background: var(--bg); font-size: 12.5px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; max-width: 1280px; margin: 0 auto; }
.page-foot b { color: var(--cream); }
.sources { margin: 8px 0 0; padding-left: 18px; line-height: 1.55; }
.sources li { margin: 3px 0; }
.page-foot .build { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: #6d7680; }
.modal { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; max-width: 720px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-family: Syne, sans-serif; font-size: 1.2rem; }
.modal-body { padding: 6px 18px 18px; overflow-y: auto; font-size: 13px; line-height: 1.55; }
.modal-body h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage2); margin: 16px 0 6px; }
.modal-body ul { padding-left: 18px; margin: 0; }
.modal-body li { margin: 4px 0; }

/* Mobile */
@media (max-width: 720px) {
  :root { --header-h: 50px; }
  header.app-bar { padding: 0 12px; gap: 10px; }
  header.app-bar .sub { display: none; }
  header.app-bar img.wordmark { height: 26px; }
  body.has-panel #map { right: 0; }
  .tl-box { width: auto; right: 64px; left: 10px; top: 10px; padding: 7px; }
  .tl-box .ctl { margin-top: 0; }
  .tl-box:not(.search-open) .search, .tl-box:not(.search-open) .search-status { display: none; }
  .tl-box .search-icon { display: flex; align-items: center; justify-content: center; position: absolute; left: 7px; top: 7px; width: 34px; height: 34px; background: #0B0F14; border: 1px solid var(--line2); border-radius: 8px; color: var(--cream); cursor: pointer; }
  .tl-box:not(.search-open) .ctl { padding-left: 42px; }
  .tl-box:not(.search-open) .ctl-lbl { display: none; }
  .tl-box.search-open .search-icon { display: none; }
  .tl-box.search-open .ctl { display: none; }
  .year-row button { font-size: 9.5px; }
  .layers-btn { right: 10px; top: 10px; padding: 9px 10px; font-size: 0; gap: 0; }
  .layers-btn svg { width: 18px; height: 18px; }
  body.has-panel .layers-btn { right: 10px; }
  .layers-panel { position: fixed; inset: 0; width: auto; max-height: none; border-radius: 0; z-index: 2500; padding: 14px 16px 24px; }
  body.has-panel .layers-panel { right: 0; }
  .legend { left: 10px; bottom: auto; top: 96px; max-width: 170px; min-width: 0; padding: 7px 9px; font-size: 10.5px; }
  .legend .lg-note { display: none; }
  .legend .lg-row { font-size: 10.5px; margin: 2px 0; }
  body.has-panel .legend { display: none; }
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 35%; border-left: 0; border-top: 1px solid var(--line2); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.45); transition: height .2s ease; }
  body.sheet-full .panel { height: 88%; }
  .sheet-handle { display: flex; justify-content: center; align-items: center; background: transparent; border: 0; height: 22px; cursor: pointer; flex: 0 0 auto; }
  .sheet-handle .grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line2); }
  .panel-body { padding-top: 2px; }
  body.has-panel .map-loading { left: 50%; }
  .foot-grid { grid-template-columns: 1fr; }
  .maplibregl-ctrl-bottom-right { bottom: 0; }
  body.has-panel .maplibregl-ctrl-bottom-right { bottom: 35%; }
  body.has-panel.sheet-full .maplibregl-ctrl-bottom-right { bottom: 88%; }
}

/* hidden attribute always wins over component display rules */
[hidden] { display: none !important; }
/* Basemap credit: always visible, follows the active basemap */
.esri-attr { position: absolute; left: 0; bottom: 0; z-index: 2; max-width: calc(100% - 150px); padding: 2px 7px; font: 10px/1.35 "IBM Plex Sans", Arial, sans-serif; color: #333; background: rgba(255,255,255,.82); border-top-right-radius: 5px; pointer-events: auto; }
.maplibregl-ctrl-attrib.maplibregl-compact { max-width: min(560px, calc(100vw - 40px)); }
@media (max-width: 720px) {
  .esri-attr { max-width: calc(100% - 60px); font-size: 9px; }
}
.legend { bottom: 46px; max-height: calc(100% - 300px); overflow-y: auto; }
@media (max-width: 720px) {
  body.has-panel .esri-attr { bottom: 35%; }
  body.has-panel.sheet-full .esri-attr { bottom: 88%; }
  .legend { max-height: calc(100% - 180px); }
}
/* 2024–25 "new NASS method" bracket over the last two chips */
.tl-wrap { padding-top: 22px; }
.tl-new { top: 15px; height: 5px; padding: 0; border: 1px solid rgba(233,162,59,.7); border-bottom: 0; border-radius: 2px 2px 0 0; overflow: visible; }
.tl-new-lbl { position: absolute; right: 0; bottom: 6px; white-space: nowrap; font-size: 9.5px; color: var(--warn); }
@media (max-width: 720px) {
  .legend { top: auto; bottom: 64px; max-height: 36vh; }
  .zoom-hint { font-size: 10.5px; padding: 4px 7px; margin-top: 5px; }
}
@media (max-width: 720px) {
  body.sheet-full .tl-box, body.sheet-full .maplibregl-ctrl-bottom-right, body.sheet-full .layers-btn { display: none; }
}
