/* Site Intelligence drawer (UI-2) and the V2 status grammar (docs/intelligence-v2/ui/05-FRONTEND-PLAN.md §4-5).
   Light theme only, like the rest of the app. Status never rests on colour alone: every pill, mark and band has words. */

/* ── the drawer: over the right of the map on a desk, a bottom sheet on a phone ── */
.v2-drawer {
  position: absolute; right: 0; top: var(--v2-top, 0); height: var(--v2-height, 100%);
  width: min(440px, 100%); z-index: 1100; display: flex; flex-direction: column;
  background: var(--panel); border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(13, 13, 13, .12);
  color: var(--ink); font-size: 13px; line-height: 1.45;
}
.v2-drawer[hidden] { display: none; }
.split-right { position: relative; }
.v2-grip { display: none; }
.v2-dhead { border-bottom: 1px solid var(--line); padding: 10px 14px 8px; display: grid; gap: 4px; position: relative; }
.v2-crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); padding-right: 30px; }
.v2-crumb { border: 0; background: none; color: var(--v2-chain); cursor: pointer; padding: 0; font-weight: 600; font-size: 12px; }
.v2-sep { color: #9aa1ab; }
.v2-close { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 6px; }
.v2-close:hover { background: var(--muted-bg); color: var(--ink); }
.v2-title { font-size: 18px; margin: 0; letter-spacing: -.2px; line-height: 1.25; overflow-wrap: anywhere; }
.v2-title:focus, .v2-title:focus-visible { outline: none; }      /* focus lands here for screen readers; it is not a control */
.v2-subtitle { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.v2-pilot { border-left: 3px solid var(--gold); background: #fff6e5; padding: 5px 9px; font-size: 12px; color: #39414b; border-radius: 0 6px 6px 0; }
.v2-scope { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.v2-scope select { font: inherit; font-size: 12px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 6px; max-width: 100%; }
.v2-dbody { overflow: auto; padding: 12px 14px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.v2-dbody > * { flex-shrink: 0; }      /* never squeeze a section: the body scrolls instead */

/* sections */
.v2-sec { display: grid; gap: 6px; min-width: 0; scroll-margin-top: 8px; }
.v2-sec-h { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex;
  justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; margin: 0; }
.v2-sec-aside { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 11px; }
.v2-sec h4 { font-size: 12px; margin: 6px 0 2px; color: #39414b; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.v2-note { font-size: 12px; color: #39414b; margin: 0; }
.v2-muted { color: var(--muted); }
.v2-loading { font-size: 12px; color: var(--muted); font-style: italic; }
.v2-kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 3px 8px; align-items: start; padding: 4px 0; border-bottom: 1px dotted var(--line); }
.v2-kv:last-child { border-bottom: 0; }
.v2-k { color: var(--muted); font-size: 12px; padding-top: 1px; }
.v2-v { min-width: 0; overflow-wrap: anywhere; }
.v2-v small { display: block; }
.v2-kc { grid-column: 2; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.v2-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.v2-list > li { overflow-wrap: anywhere; }
code, .v2-copy { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }

/* at a glance */
.v2-glance { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.v2-glance-row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.v2-glance-row:last-child { border-bottom: 0; }
.v2-glance dt { font-weight: 700; font-size: 12px; color: var(--ink); }
.v2-glance dd { margin: 0; font-size: 12.5px; color: #39414b; min-width: 0; overflow-wrap: anywhere; }
.v2-jump { border: 0; background: none; color: var(--v2-chain); cursor: pointer; font-size: 11.5px; font-weight: 700; padding: 0 0 0 4px; }

/* buttons and links */
.v2-link { border: 0; background: none; color: var(--v2-chain); cursor: pointer; padding: 0; font-weight: 600; text-align: left; font-size: inherit; }
.v2-link:hover, .v2-jump:hover, .v2-crumb:hover { text-decoration: underline; }
.v2-why { border: 1px solid #d3d8de; background: #fff; color: var(--v2-chain); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
.v2-why:hover { background: var(--v2-chain-bg); }
.v2-btn { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 7px; padding: 6px 12px; font-weight: 700; cursor: pointer; font-size: 12.5px; }
.v2-btn:hover { background: #39414b; }
.v2-btn:disabled { opacity: .6; cursor: default; }
.v2-btn-small { padding: 3px 9px; font-size: 11.5px; }
.v2-btn-ghost { background: #fff; color: var(--ink); border-color: #d3d8de; }
.v2-btn-ghost:hover { background: var(--muted-bg); }
.v2-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.v2-drawer button:focus-visible, .v2-drawer select:focus-visible, .v2-drawer input:focus-visible, .v2-drawer summary:focus-visible { outline: 3px solid var(--gold-dk); outline-offset: 2px; }

/* status grammar */
.v2-pill { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; border-radius: 999px; padding: 3px 8px; white-space: nowrap; line-height: 1.2; }
.v2-pill.is-pass { background: var(--v2-pass-bg); color: var(--v2-pass); }
.v2-pill.is-fail { background: var(--v2-fail-bg); color: var(--v2-fail); }
.v2-pill.is-review { background: var(--v2-review-bg); color: var(--v2-review); }
.v2-pill.is-unknown { background: var(--v2-unknown-bg); color: var(--v2-unknown); }
.v2-pill.is-na { background: transparent; color: var(--v2-na); border: 1px solid #d3d8de; }
.v2-pill.is-noteval { background: transparent; color: var(--v2-unknown); border: 1px dashed #9aa1ab; }
.v2-pill.is-partial { background: #fff; color: var(--v2-pass); border: 1px dashed var(--v2-pass); }
.v2-say { font-size: 12px; color: #39414b; }
.v2-vmark { font-size: 12px; line-height: 1; cursor: help; }
.v2-vmark.is-reviewed, .v2-vmark.is-checked { color: var(--v2-chain); }
.v2-vmark.is-unverified { color: var(--muted); }
.v2-vmark.is-rejected { color: var(--v2-fail); }
.v2-prov { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.v2-prov.is-chain { background: var(--v2-chain-bg); color: var(--v2-chain); }
.v2-prov.is-production { background: var(--v2-production-bg); color: var(--v2-production); }
.v2-prov.is-lead { border: 1px dotted var(--muted); color: #39414b; }
.v2-prov.is-unknown { border: 1px dashed #9aa1ab; color: var(--muted); }
.v2-notlaw { background: var(--v2-hatch); border: 1px solid #efd9a6; border-radius: 6px; padding: 5px 9px; font-size: 12px; overflow-wrap: anywhere; }
.v2-notlaw b { font-size: 10px; letter-spacing: .1em; }
.v2-slot { border: 1px dashed #d3d8de; border-radius: 8px; padding: 7px 10px; font-size: 12px; color: #39414b;
  background: repeating-linear-gradient(45deg, #fafbfc 0 8px, #f5f6f8 8px 16px); }
.v2-coverage { font-size: 12px; color: #39414b; margin: 0; }
.v2-fresh { border: 1px solid #efd9a6; background: #fff6e5; border-radius: 8px; padding: 6px 9px; font-size: 12px; }
.v2-fresh b { font-size: 10.5px; letter-spacing: .1em; color: var(--v2-review); margin-right: 4px; }
.v2-step-state { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 700; white-space: nowrap; }
.v2-ic { font-size: 12px; }
.st-ok { color: var(--v2-pass); } .st-open { color: var(--v2-unknown); } .st-block { color: var(--v2-fail); } .st-conf { color: var(--v2-review); }
.st-prog { color: var(--v2-chain); } .st-stale { color: var(--v2-review); } .st-na { color: var(--muted); } .st-wait { color: var(--muted); }
.v2-tag { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; border-radius: 4px; padding: 1px 5px; border: 1px solid #d3d8de; color: #39414b; vertical-align: 1px; white-space: nowrap; }
.v2-tag-fail { background: var(--v2-fail-bg); color: var(--v2-fail); border-color: transparent; }
.v2-tag-held { background: var(--v2-review-bg); color: var(--v2-review); border-color: transparent; }
.v2-tag-stale { background: #fff6e5; color: var(--v2-review); border-color: #efd9a6; }
.v2-tag-matter { background: #f3e8ff; color: #5b21b6; border-color: transparent; margin-left: 6px; }
.v2-stale-dot { color: var(--v2-review); font-size: 10.5px; letter-spacing: .06em; }

/* honest states: always a word, never an empty cell */
.v2-honest { display: block; border-radius: 7px; padding: 5px 8px; font-size: 12px; margin: 2px 0; border: 1px solid var(--line); background: #fafbfc; overflow-wrap: anywhere; }
.v2-honest b { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.v2-honest.is-unknown b { color: var(--v2-unknown); }
.v2-honest.is-open b { color: var(--v2-unknown); }
.v2-honest.is-blocked { border-color: #f3c5cb; background: #fff7f8; } .v2-honest.is-blocked b { color: var(--v2-fail); }
.v2-honest.is-wait { border-color: #cddcf0; background: #f6f9fd; } .v2-honest.is-wait b { color: var(--v2-chain); }
.v2-honest.is-stale { border-color: #efd9a6; background: #fff9ec; } .v2-honest.is-stale b { color: var(--v2-review); }
.v2-honest.is-na b { color: var(--muted); }

/* ways to build */
.v2-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.v2-way { display: grid; gap: 4px; }
.v2-way-open { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 2px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; background: #fff; text-align: left; width: 100%; font: inherit; color: inherit; }
.v2-way-open:hover { border-color: #d3d8de; background: #fbfbfc; }
.v2-way-name { font-weight: 700; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.v2-way-pill { display: inline-flex; gap: 6px; align-items: center; justify-self: end; }
.v2-way-pill .v2-say { display: none; }
.v2-way-meta { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.v2-way-go { grid-row: 1; grid-column: 3; color: #9aa1ab; font-size: 18px; line-height: 1; }
.v2-paths small { display: inline; }
.v2-add > summary { cursor: pointer; font-weight: 700; color: var(--v2-chain); font-size: 12.5px; }
.v2-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 0; }
.v2-form label { display: grid; gap: 2px; font-size: 11.5px; color: var(--muted); }
.v2-form input, .v2-form select { font: inherit; font-size: 12.5px; padding: 5px 6px; border: 1px solid #d3d8de; border-radius: 6px; min-width: 0; }
.v2-form .v2-note, .v2-form .v2-btn { grid-column: 1 / -1; }

/* what's stopping it */
.v2-stop-way { display: grid; gap: 6px; }
.v2-blocker { border: 1px solid #f3c5cb; border-left: 4px solid var(--v2-fail); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; background: #fff; }
.v2-blocker[data-status="held"] { border-color: #efd9a6; border-left-color: var(--v2-review); }
.v2-blocker header { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.v2-blocker footer { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.v2-whatif { border: 1px dashed #9aa1ab; border-radius: 7px; padding: 6px 9px; font-size: 12px; background: #fafbfc; margin-top: 4px; }
.v2-whatif b { font-size: 10px; letter-spacing: .1em; margin-right: 4px; }
.v2-core-label { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.v2-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.v2-step { padding: 5px 0; border-bottom: 1px dotted var(--line); font-size: 12.5px; overflow-wrap: anywhere; }
.v2-step:last-child { border-bottom: 0; }
.v2-step > span:not(.v2-step-state) { color: #39414b; }
.v2-checks { list-style: none; margin: 0; padding: 0; display: grid; }
.v2-check { padding: 6px 0; border-bottom: 1px dotted var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.v2-check > .v2-reason, .v2-check > .v2-honest { flex-basis: 100%; }
.v2-check:last-child { border-bottom: 0; }
.v2-reason { display: block; font-size: 12px; color: #39414b; overflow-wrap: anywhere; }
.v2-result { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.v2-next li { font-size: 12.5px; }
.v2-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.v2-table th, .v2-table td { text-align: left; padding: 4px 6px 4px 0; border-bottom: 1px dotted var(--line); vertical-align: top; }
.v2-table tr.is-binding td { font-weight: 700; }

/* billboards */
.v2-bbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.v2-bb { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; display: grid; gap: 2px; background: #fff; }
.v2-bb[data-placed="no"] { border-style: dashed; }
.v2-bb-open { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.v2-bb-open:hover b { text-decoration: underline; }
.v2-bb-facts { font-size: 12px; color: #39414b; }
.v2-bb-dist { font-size: 12px; font-weight: 700; }
.v2-bb small { display: block; }

/* research */
.v2-plan { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; }
.v2-plan-head { display: grid; gap: 2px; }
.v2-plan-sum { margin: 0; font-size: 12px; color: #39414b; }
.v2-plan details > summary { cursor: pointer; font-weight: 700; font-size: 12px; color: #39414b; }

/* production band: clearly separate from V2 */
.v2-prodband { border: 1px solid #d3d8de; border-left: 4px solid var(--v2-production); background: var(--v2-production-bg); border-radius: 8px; padding: 8px 10px; }
.v2-prodband .v2-sec-h { color: var(--v2-production); border-bottom-color: #d3d8de; }
.v2-prod-grade { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.v2-grade { font-weight: 800; }

/* why? trace (UI-3, 03-WHY-TRACE.md): one card per hop, top to bottom, on one chain rule. The rule turns amber when the
   chain rests on something no person has checked; NOT LAW keeps its hatch; ends always say why the chain stops. */
.v2-passage { font-family: "Source Serif 4", Georgia, serif; font-size: 14px; line-height: 1.5; border-left: 3px solid #d3d8de; padding: 2px 0 2px 10px; margin: 2px 0; overflow-wrap: anywhere; }
.v2-trace-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: space-between; font-size: 12px; }
.v2-copy-status { font-size: 12px; color: #39414b; flex-basis: 100%; }
.v2-copy-status:empty { display: none; }
.v2-copy-area { width: 100%; min-height: 140px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
.v2-trace { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 3px solid var(--v2-chain); display: grid; gap: 10px; min-width: 0; }
.v2-trace[data-weak="true"] { border-left-color: var(--v2-review); }
.v2-trace-amber { border-left: 3px solid var(--v2-review); background: var(--v2-review-bg); padding: 5px 9px; font-size: 12px; margin: 0; border-radius: 0 6px 6px 0; overflow-wrap: anywhere; }
.v2-trace-notlaw { background: var(--v2-hatch); border: 1px solid #efd9a6; padding: 5px 9px; font-size: 12px; margin: 0; border-radius: 6px; overflow-wrap: anywhere; }
.v2-hop { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--panel); display: grid; gap: 6px; min-width: 0;
  overflow-wrap: anywhere; }
.v2-hop > *, .v2-hop-body > * { min-width: 0; max-width: 100%; }
.v2-hop[data-weak="true"] { border-color: #efd9a6; box-shadow: inset 3px 0 0 var(--v2-review); }
.v2-hop[data-off="true"] { border-style: dashed; }
.v2-hop-via { font-size: 11.5px; color: var(--v2-chain); font-weight: 700; }
.v2-hop-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; min-width: 0; }
.v2-hop-name { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex-basis: 100%; }
.v2-hop-title { font-size: 13.5px; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.v2-hop-title:focus-visible { outline: 3px solid var(--gold-dk); outline-offset: 2px; border-radius: 3px; }
.v2-hop-marks { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.v2-hop-body { display: grid; gap: 5px; min-width: 0; }
.v2-hop-edges, .v2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-edge { border: 1px solid #d3d8de; background: #fff; color: var(--v2-chain); font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.v2-edge:hover { background: var(--v2-chain-bg); }
.v2-edge[aria-pressed="true"] { background: var(--v2-chain); color: #fff; border-color: var(--v2-chain); }
.v2-branches { display: grid; gap: 5px; }
.v2-chip { border: 1px solid #d3d8de; background: #fafbfc; color: var(--ink); font-size: 12px; border-radius: 8px; padding: 4px 8px; cursor: pointer; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.v2-chip:hover { border-color: var(--v2-chain); }
.v2-chip[aria-pressed="true"] { border-color: var(--v2-chain); background: var(--v2-chain-bg); box-shadow: inset 3px 0 0 var(--v2-chain); }
.v2-chip-n { font-weight: 800; color: var(--muted); margin-right: 2px; }
.v2-edge-note { color: var(--muted); }
.v2-end { border-radius: 7px; padding: 6px 9px; font-size: 12px; border: 1px solid var(--line); background: #fafbfc; overflow-wrap: anywhere; }
.v2-end b { font-weight: 800; margin-right: 4px; }
.v2-end[data-end="passage"], .v2-end[data-end="source"] { border-color: #cddcf0; background: var(--v2-chain-bg); color: var(--v2-chain); }
.v2-end[data-end="notlaw"] { background: var(--v2-hatch); border-color: #efd9a6; }
.v2-end[data-end="production"] { border-left: 4px solid var(--v2-production); background: var(--v2-production-bg); }
.v2-end[data-end="lead"], .v2-end[data-end="registered"], .v2-end[data-end="saved"] { border: 1px dotted var(--muted); background: #fff; }   /* as their chips */
.v2-end[data-end="unknown"] { border-style: dashed; }
.v2-end[data-end="missing"], .v2-end[data-end="no_access"] { border-style: dashed; color: #39414b; }
.v2-end[data-end="error"] { border-color: #f3c5cb; background: #fff7f8; }
.v2-flag { font-size: 12px; border-left: 3px solid var(--line); padding: 2px 8px; overflow-wrap: anywhere; }
.v2-flag b { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.v2-flag[data-flag="review"], .v2-flag[data-flag="twoperson"], .v2-flag[data-flag="held"], .v2-flag[data-flag="stale"] { border-left-color: var(--v2-review); background: #fff9ec; }
.v2-flag[data-flag="rejected"], .v2-flag[data-flag="unsupported"] { border-left-color: var(--v2-fail); background: #fff7f8; }
.v2-flag[data-flag="history"], .v2-flag[data-flag="gate"] { border-left-color: var(--v2-chain); background: #f6f9fd; }
.v2-flag[data-flag="today"] { border-left-color: var(--v2-unknown); background: #fafbfc; }
.v2-trace-run { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: #fafbfc; }
.v2-textview { display: grid; gap: 4px; min-width: 0; }
.v2-quote { white-space: pre-wrap; font-family: "Source Serif 4", Georgia, serif; font-size: 13px; line-height: 1.5; background: #fafbfc; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px; max-height: 320px; overflow: auto; overflow-wrap: anywhere; }
.v2-quote mark { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }
.v2-gap { color: var(--muted); font-style: italic; }
.v2-gap-rule { border: 0; border-top: 1px dashed var(--line); margin: 6px 0; }
.v2-locator { display: block; }
.v2-ids summary { font-size: 11.5px; color: var(--muted); cursor: pointer; }
.v2-ids dl, .v2-cite { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 8px; margin: 4px 0 0; font-size: 11.5px; }
.v2-ids dt, .v2-cite dt { color: var(--muted); }
.v2-ids dd, .v2-cite dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.v2-src { overflow-wrap: anywhere; color: var(--v2-chain); }
.v2-row-why { display: flex; gap: 6px; align-items: flex-start; }
.v2-row-why > :first-child { flex: 1 1 auto; min-width: 0; }

/* focus mode on the map */
#map.v2-focus .leaflet-interactive:not(.v2-geom), #map.v2-focus .leaflet-marker-icon:not(.v2-geom) { opacity: var(--v2-dim); }
.leaflet-tooltip.v2-map-callout { width: 300px; max-height: 220px; overflow: auto; white-space: normal; font-size: 12px; line-height: 1.35; border-left: 3px solid var(--v2-review); }
.v2-drawer-open #map .leaflet-top.leaflet-right { right: min(440px, 100%); }

/* disabled layer rows (map-layers.js) stay readable */

/* phone: a bottom sheet over the page, half or full height */
@media (max-width: 760px) {
  .v2-drawer { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: 55vh; max-height: 55vh; border-left: 0;
    border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -8px 24px rgba(13, 13, 13, .18); z-index: 1500; }
  .v2-drawer[data-sheet="full"] { height: 92vh; max-height: 92vh; }
  .v2-grip { display: block; border: 0; background: none; padding: 8px 0 2px; cursor: pointer; width: 100%; }
  .v2-grip span { display: block; width: 44px; height: 5px; border-radius: 3px; background: #d3d8de; margin: 0 auto; }
  .v2-drawer-open #map .leaflet-top.leaflet-right { right: 0; }
  .v2-kv { grid-template-columns: 92px minmax(0, 1fr); }
  .v2-glance-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .v2-form { grid-template-columns: 1fr; }
  .v2-trace { padding-left: 8px; }
  .v2-quote { max-height: none; overflow: visible; }      /* no scroller inside the bottom sheet's own scroller */
  .v2-ids dl, .v2-cite { grid-template-columns: minmax(0, 1fr); }
}
.v2-partial-note { color: var(--v2-pass); font-weight: 700; }

/* The same, in the page: the site folder's "Research on this site" fold (UI build U14). Not over the map, no sheet. */
.v2-drawer.v2-inline { position: static; width: auto; height: auto; max-height: none; z-index: auto; box-shadow: none; border: 0;
  border-radius: 0; background: transparent; }
.v2-inline .v2-dhead { padding: 2px 0 8px; }
.v2-inline .v2-crumbs { padding-right: 0; }
.v2-inline .v2-dbody { overflow: visible; padding: 10px 0 4px; }
