/* 2026-11-13 owner: the Cape Coral home map on /cape-coral-home-map/ (js/gen6-homemap.js).
   Pick a home, see what is near it and which City utility area it is in. Pattern: css/gen6-flood-map.css.
   Colors are the theme's: ink #095e93, sky #2b80bb, text #2c3e50, muted #56698a, lines #dde6ef, foam #eaf4fc, cream #f4f9fd.
   The five place groups use hues that already exist in the theme (teal and amber from the waterway key, slate from the body text).
   Desktop: the card is a 420px panel on the left of the map. Phone (979px and under): the card is the shared bottom sheet
   (css/gen6-sheet.css); the same nodes move into it, so nothing here draws a sheet of its own. */
.g6hm { --hm-parks: #0f766e; --hm-schools: #2c3e50; --hm-shopping: #a16207; --hm-medical: #2b80bb; --hm-water: #095e93; background: #f4f9fd; padding: 56px 0 56px; }
.g6hm * { box-sizing: border-box; }
.g6hm-head { width: min(100% - 48px, 1320px); margin: 0 auto 24px; }
.g6hm-head h2 { margin: 0 0 10px; color: #095e93; }
.g6hm-head p { margin: 0; max-width: 52ch; color: #2c3e50; font: 400 18px/1.55 Manrope, sans-serif; }

/* the address band under the hero (same look as the flood page's) */
.g6hm-band .g6hm-searchwrap { position: relative; max-width: 720px; }
.g6hm-band .g6hm-suggest { text-align: left; }
.g6-fz-sample { cursor: pointer; font-family: inherit; }

/* ---------- the stage ---------- */
.g6hm-stage { --hm-card: 420px; scroll-margin-top: 110px; position: relative; width: min(100% - 48px, 1320px); height: min(840px, calc(100svh - 92px)); min-height: 560px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #dde6ef; box-shadow: 0 4px 8px rgba(8, 17, 31, .08), 0 24px 56px rgba(8, 17, 31, .14); isolation: isolate; }
.g6hm-map { position: absolute; top: 0; bottom: 0; right: 0; left: var(--hm-card); z-index: 0; background: #dde6ef; }
.g6hm-map .leaflet-control-attribution { font: 500 11px/1.4 Manrope, sans-serif; color: #56698a; background: rgba(255, 255, 255, .82); padding: 2px 8px; border-radius: 8px 0 0 0; }
.g6hm-wait { position: absolute; left: calc(50% + var(--hm-card) / 2); top: 46%; transform: translate(-50%, -50%); z-index: 3; margin: 0; padding: 12px 20px; border-radius: 999px; background: #fff; color: #095e93; font: 600 16px/1.2 Manrope, sans-serif; box-shadow: 0 2px 4px rgba(8, 17, 31, .07), 0 10px 26px rgba(8, 17, 31, .1); text-align: center; max-width: calc(100% - 48px); }
.g6hm-wait[hidden], .g6hm-error[hidden], .g6hm-lkey[hidden], .g6hm-pill[hidden], .g6hm-sub[hidden], .g6hm-foot[hidden], .g6hm-chipwrap[hidden] { display: none; }
/* The error sits at the top of the map, under the search field. It never covers the zoom buttons, which stay at the other side. */
.g6hm-error { position: absolute; z-index: 1400; left: calc(var(--hm-card) + 16px); top: 76px; width: min(380px, calc(100% - var(--hm-card) - 96px)); padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 4px 8px rgba(8, 17, 31, .08), 0 18px 44px rgba(8, 17, 31, .18); }
.g6hm-error p { margin: 0 0 12px; color: #2c3e50; font: 500 16px/1.5 Manrope, sans-serif; }
.g6hm-error button, .g6hm-retry { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #095e93; color: #fff; font: 700 16px/1 Manrope, sans-serif; cursor: pointer; }

/* search pill over the map */
.g6hm-bar { position: absolute; z-index: 1400; top: 16px; left: calc(var(--hm-card) + 16px); width: min(380px, calc(100% - var(--hm-card) - 96px)); pointer-events: none; }
.g6hm-bar > * { pointer-events: auto; }
.g6hm-searchwrap { position: relative; }
.g6hm-search { display: flex; align-items: center; height: 48px; border: 1px solid #dde6ef; border-radius: 999px; background: #fff; box-shadow: 0 2px 4px rgba(8, 17, 31, .07), 0 10px 26px rgba(8, 17, 31, .1); overflow: hidden; }
.g6hm-search input { flex: 1; min-width: 0; height: 100%; padding: 0 6px 0 20px; border: 0; background: transparent; color: #2c3e50; font: 500 16px/1 Manrope, sans-serif; outline: none; }
.g6hm-search input::placeholder { color: #56698a; }
.g6hm-search:focus-within { border-color: #2b80bb; box-shadow: 0 0 0 3px rgba(43, 128, 187, .28), 0 10px 26px rgba(8, 17, 31, .1); }
.g6hm-search button { height: 44px; min-width: 44px; margin: 0 2px; padding: 0 18px; border: 0; border-radius: 999px; background: #095e93; color: #fff; font: 700 16px/1 Manrope, sans-serif; cursor: pointer; }
.g6hm-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 4px 8px rgba(8, 17, 31, .08), 0 24px 56px rgba(8, 17, 31, .18); display: grid; }
.g6hm-suggest[hidden] { display: none; }
.g6hm-suggest-item { display: flex; align-items: center; min-height: 46px; padding: 6px 14px; border: 0; border-radius: 10px; background: none; color: #2c3e50; font: 500 16px/1.3 Manrope, sans-serif; text-align: left; cursor: pointer; }
.g6hm-suggest-item:hover, .g6hm-suggest-item.is-active, .g6hm-suggest-item[aria-selected="true"] { background: #eaf4fc; color: #095e93; }
.g6hm-suggest-item[aria-selected="true"] { box-shadow: inset 3px 0 0 #095e93; }
.g6hm-suggest-none { margin: 0; padding: 12px 14px; color: #56698a; font: 500 16px/1.45 Manrope, sans-serif; }
.g6hm-suggest-none[hidden] { display: none; }

/* zoom and (touch only) Move the map: one group, so the move button never lands on the marker ring */
.g6hm-ctl { position: absolute; z-index: 4; top: 16px; right: 16px; display: grid; gap: 8px; justify-items: end; }
.g6hm-zoom { display: grid; gap: 8px; }
.g6hm-zoom button { width: 48px; height: 48px; border: 1px solid #dde6ef; border-radius: 14px; background: #fff; color: #095e93; font: 500 26px/1 Manrope, sans-serif; cursor: pointer; box-shadow: 0 1px 2px rgba(8, 17, 31, .06), 0 2px 8px rgba(8, 17, 31, .06); }
.g6hm-move { min-height: 44px; padding: 0 16px; border: 1px solid #dde6ef; border-radius: 999px; background: #fff; color: #095e93; font: 600 16px/1 Manrope, sans-serif; cursor: pointer; box-shadow: 0 1px 2px rgba(8, 17, 31, .06), 0 2px 8px rgba(8, 17, 31, .06); }
.g6hm-move[aria-pressed="true"] { background: #095e93; border-color: #095e93; color: #fff; }
.g6hm-move[hidden] { display: none; }
.g6hm button:focus-visible, .g6hm a:focus-visible, .g6hm-addr:focus-visible { outline: 3px solid #2b80bb; outline-offset: 2px; }

/* the City water layer: a switch (a layer, not a category) and, when it is on, one short key */
.g6hm-layer { position: absolute; z-index: 4; left: calc(var(--hm-card) + 16px); bottom: 24px; display: grid; gap: 8px; justify-items: start; max-width: calc(100% - var(--hm-card) - 96px); }
.g6hm-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; white-space: nowrap; border: 1px solid #dde6ef; border-radius: 999px; background: #fff; color: #2c3e50; font: 600 16px/1.2 Manrope, sans-serif; cursor: pointer; text-align: left; box-shadow: 0 1px 2px rgba(8, 17, 31, .06), 0 4px 14px rgba(8, 17, 31, .1); }
.g6hm-switch-knob { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #b9c6d6; transition: background .15s; }
.g6hm-switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(8, 17, 31, .3); transition: transform .15s; }
.g6hm-switch[aria-checked="true"] .g6hm-switch-knob { background: #095e93; }
.g6hm-switch[aria-checked="true"] .g6hm-switch-knob::after { transform: translateX(14px); }
.g6hm .g6hm-lkey { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #2c3e50; font: 600 13px/1.4 Manrope, sans-serif; box-shadow: 0 1px 2px rgba(8, 17, 31, .06), 0 4px 12px rgba(8, 17, 31, .1); }
.g6hm .g6hm-lkey[hidden] { display: none; }
.g6hm-lk { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.g6hm-lk i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.g6hm-lk-ok { background: #4c1d95; border: 1px solid #4c1d95; } /* the relocation guide's utility violet scale: dark = shown, light = not shown */
.g6hm-lk-warn { background: #c4b5fd; border: 1px solid #a78bfa; }
.g6hm-lkey .g6hm-retry { min-height: 44px; padding: 0 14px; }

/* ---------- the card: left panel on a desktop ---------- */
.g6hm-card { position: absolute; z-index: 6; top: 0; bottom: 0; left: 0; width: var(--hm-card); display: flex; flex-direction: column; background: #fff; box-shadow: 1px 0 0 #dde6ef; }
.g6hm-top { flex: none; padding: 22px 22px 14px; border-bottom: 1px solid #eef2f7; }
.g6hm-addr { margin: 0; color: #095e93; font: 500 29px/1.12 "Cormorant Garamond", Georgia, serif; overflow-wrap: anywhere; }
.g6hm-addr:focus { outline: none; }
.g6hm-addr:focus-visible { border-radius: 8px; outline-offset: 4px; }
.g6hm-sub { margin: 6px 0 0; color: #56698a; font: 500 16px/1.4 Manrope, sans-serif; }
.g6hm-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin: 10px 0 0; padding: 4px 14px 4px 10px; border-radius: 999px; font: 700 16px/1.25 Manrope, sans-serif; background: #eaf4fc; color: #2c3e50; }
.g6hm-pill::before { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2c3e50; color: #fff; font: 800 12px/1 Manrope, sans-serif; flex: none; }
.g6hm-pill--ok { background: #ede9fe; color: #4c1d95; }
.g6hm-pill--ok::before { content: "\2713"; background: #4c1d95; }
.g6hm-pill--warn { background: #f5f3ff; color: #4c1d95; box-shadow: inset 0 0 0 1px #c4b5fd; }
.g6hm-pill--warn::before { content: "!"; background: #c4b5fd; color: #4c1d95; }
.g6hm-pill--mixed::before, .g6hm-pill--none::before { content: "i"; }
.g6hm-chipwrap { position: relative; margin-top: 14px; }
.g6hm-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g6hm-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; border: 1px solid #dde6ef; border-radius: 999px; background: #fff; color: #095e93; font: 600 16px/1 Manrope, sans-serif; cursor: pointer; white-space: nowrap; }
.g6hm-chip[aria-pressed="true"] { background: #095e93; border-color: #095e93; color: #fff; }
.g6hm-chip:not(:has(.g6hm-ic)) { padding-left: 16px; }
.g6hm-chip .g6hm-ic { width: 24px; height: 24px; background-size: 15px; }
.g6hm-chip[aria-pressed="true"] .g6hm-ic { box-shadow: 0 0 0 2px #fff; }

.g6hm-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 22px 20px; }
.g6hm-body > :first-child { margin-top: 14px; }
.g6hm-foot { flex: none; padding: 12px 22px 16px; border-top: 1px solid #eef2f7; background: #fff; }
.g6hm-foot .g6hm-actions { margin-top: 0; }
.g6-tool-homemap .g6-tool-open__kicker::before { background: #eaf4fc; }
.g6hm-hint { margin: 0 0 14px; color: #2c3e50; font: 500 16px/1.5 Manrope, sans-serif; }
.g6hm-kinds { display: grid; gap: 4px; margin: 6px 0 14px; }
.g6hm-kind { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 48px; color: #2c3e50; font: 500 16px/1.4 Manrope, sans-serif; }
.g6hm-sample { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px dashed #2b80bb; border-radius: 999px; background: #eaf4fc; color: #095e93; font: 700 16px/1 Manrope, sans-serif; cursor: pointer; }
.g6hm-sec { margin: 0 0 22px; }
.g6hm-sec h3, .g6hm-h { margin: 0 0 8px; color: #56698a; font: 700 13px/1.3 Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.g6hm-read { padding: 8px 0; }
.g6hm-read h4 { margin: 0 0 2px; color: #095e93; font: 700 16px/1.3 Manrope, sans-serif; letter-spacing: 0; text-transform: none; }
.g6hm-read-text { margin: 0; color: #2c3e50; font: 400 16px/1.5 Manrope, sans-serif; }
.g6hm-area-note, .g6hm-school-note { margin-top: 10px; color: #3b4d63; }
/* a real swatch for the outlined area (it was four dots) */
.g6hm-area-sw { display: inline-block; width: 16px; height: 16px; margin-left: 4px; vertical-align: -2px; border: 2px solid #095e93; border-radius: 4px; background: rgba(9, 94, 147, .08); }
.g6hm .g6hm-cap { margin: 8px 0 0; color: #56698a; font: 500 13px/1.5 Manrope, sans-serif; }
.g6hm-rows { display: grid; }
.g6hm-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; border: 0; border-bottom: 1px solid #eef2f7; background: none; text-align: left; cursor: pointer; font-family: Manrope, sans-serif; }
.g6hm-row:hover .g6hm-row-main strong { color: #095e93; }
.g6hm-row-main { display: grid; gap: 1px; min-width: 0; }
.g6hm-row-main strong { color: #2c3e50; font: 700 16px/1.3 Manrope, sans-serif; overflow-wrap: anywhere; }
.g6hm-row-main span { color: #56698a; font: 500 13px/1.35 Manrope, sans-serif; }
.g6hm-dist { color: #095e93; font: 700 16px/1 Manrope, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g6hm-actions { display: grid; gap: 4px; margin-top: 20px; }
.g6hm-cta { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; background: #095e93; color: #fff !important; font: 700 16px/1 Manrope, sans-serif; text-decoration: none; }
.g6hm-cta:hover { background: #1d5a87; }
.g6hm-quiet { display: flex; align-items: center; justify-content: center; min-height: 44px; color: #095e93; font: 600 16px/1 Manrope, sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.g6hm-fail .g6hm-read-text { margin-bottom: 10px; }

/* glyphs: one white symbol on a round group color (also used on the map and in the legend) */
.g6hm-ic, .g6hm-num, .g6hm-dot { display: inline-block; flex: none; border-radius: 50%; }
.g6hm-ic { width: 30px; height: 30px; background-repeat: no-repeat; background-position: center; background-size: 18px; background-color: #095e93; }
.g6hm-ic--parks { background-color: var(--hm-parks); background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 3c-2.7 0-4.7 2-4.7 4.5 0 .5.1 1 .3 1.4-1.3.6-2.2 1.9-2.2 3.4 0 2.1 1.7 3.7 3.8 3.7h.8V21h4v-5h.8c2.1 0 3.8-1.6 3.8-3.7 0-1.5-.9-2.8-2.2-3.4.2-.4.3-.9.3-1.4C16.7 5 14.7 3 12 3z'/></svg>"); }
.g6hm-ic--schools { background-color: var(--hm-schools); background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='white'><path d='M12 3 3 8v2h18V8z'/><rect x='5' y='11' width='2.6' height='7'/><rect x='10.7' y='11' width='2.6' height='7'/><rect x='16.4' y='11' width='2.6' height='7'/><rect x='3' y='19' width='18' height='2'/></g></svg>"); }
.g6hm-ic--shopping { background-color: var(--hm-shopping); background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M5.5 8.5h13l1 12h-15z'/><path fill='none' stroke='white' stroke-width='2' d='M9 10.5V7a3 3 0 0 1 6 0v3.5'/></svg>"); }
.g6hm-ic--medical { background-color: var(--hm-medical); background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M10 4h4v6h6v4h-6v6h-4v-6H4v-4h6z'/></svg>"); }
.g6hm-ic--water { background-color: var(--hm-water); background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'><path d='M3 10c2.2-2.2 4.3-2.2 6 0s3.8 2.2 6 0 3.8-2.2 6 0'/><path d='M3 16c2.2-2.2 4.3-2.2 6 0s3.8 2.2 6 0 3.8-2.2 6 0'/></g></svg>"); }
.g6hm-num { display: inline-grid; place-items: center; width: 30px; height: 30px; color: #fff; font: 800 15px/1 Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.g6hm-num--parks { background: var(--hm-parks); } .g6hm-num--schools { background: var(--hm-schools); } .g6hm-num--shopping { background: var(--hm-shopping); } .g6hm-num--medical { background: var(--hm-medical); } .g6hm-num--water { background: var(--hm-water); }
.g6hm-dot { width: 16px; height: 16px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(8, 17, 31, .4); }
.g6hm-dot--parks { background: var(--hm-parks); } .g6hm-dot--schools { background: var(--hm-schools); } .g6hm-dot--shopping { background: var(--hm-shopping); } .g6hm-dot--medical { background: var(--hm-medical); } .g6hm-dot--water { background: var(--hm-water); }
.g6hm-mk { display: grid !important; place-items: center; background: none; border: 0; }
.g6hm-mk > span { box-shadow: 0 2px 8px rgba(8, 17, 31, .35); }
.g6hm-mk > .g6hm-dot { box-shadow: 0 1px 4px rgba(8, 17, 31, .4); }
.g6hm-mk > .g6hm-ic, .g6hm-mk > .g6hm-num { width: 34px; height: 34px; border: 2.5px solid #fff; background-size: 19px; }
.g6hm-mk:focus-visible > span { outline: 3px solid #2b80bb; outline-offset: 3px; }
/* the home: a still ring, no moving or dotted edge */
.g6hm-home { display: block; width: 36px; height: 36px; border-radius: 50%; background: #fff url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23095e93' d='M12 3.5 3 11h2.5v8.5h5v-5.5h3v5.5h5V11H21z'/></svg>") center / 22px no-repeat; border: 3px solid #095e93; box-shadow: 0 0 0 3px #fff, 0 3px 12px rgba(8, 17, 31, .4); }
.g6hm-pop .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 4px 8px rgba(8, 17, 31, .1), 0 16px 36px rgba(8, 17, 31, .22); }
.g6hm-pop .leaflet-popup-content { margin: 12px 16px; }
.g6hm-pop-in { display: grid; gap: 2px; font-family: Manrope, sans-serif; }
.g6hm-pop-in strong { color: #095e93; font: 700 16px/1.3 Manrope, sans-serif; }
.g6hm-pop-in span { color: #56698a; font: 500 13px/1.35 Manrope, sans-serif; }
.g6hm-pop-in .g6hm-pop-d { color: #2c3e50; font-weight: 700; }

/* ---------- how to read it ---------- */
.g6hm-howto { width: min(100% - 48px, 1320px); margin: 52px auto 0; }
.g6hm-howto h2 { margin: 0 0 22px; color: #095e93; }
.g6hm-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; }
.g6hm-legend-item { display: grid; grid-template-rows: 72px auto; gap: 8px; align-content: start; }
.g6hm-legend-art { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.g6hm-legend-art--marks { gap: 10px; }
.g6hm-legend-art--marks .g6hm-ic { width: 38px; height: 38px; background-size: 22px; }
.g6hm-legend-art .g6hm-pill { margin: 0; }
.g6hm-legend-item p { margin: 0; color: #2c3e50; font: 400 16px/1.55 Manrope, sans-serif; }
.g6hm-note, .g6hm-more { width: min(100% - 48px, 1320px); margin: 28px auto 0; color: #56698a; font: 400 16px/1.6 Manrope, sans-serif; }
.g6hm-note a, .g6hm-more a { color: #095e93; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.g6hm-note--link { margin-top: 0; }
.g6hm .g6hm-note--link > a { display: flex; align-items: center; min-height: 44px; line-height: 1.3; width: fit-content; }
.g6hm-more { margin-top: 14px; color: #2c3e50; font-size: 16px; }
.g6hm .g6hm-more > a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.3; margin-left: 14px; }

/* ---------- phone and small tablet: the card is the shared bottom sheet ---------- */
@media (max-width: 979px) {
  .g6hm { padding: 40px 0 44px; }
  .g6hm-stage { --hm-card: 0px; width: 100%; height: max(520px, calc(100svh - 156px)); min-height: 0; border-radius: 0; box-shadow: none; scroll-margin-top: 78px; }
  .g6hm-map { left: 0; }
  .g6hm-bar { top: 12px; left: 12px; right: 12px; width: auto; }
  .g6hm-map .leaflet-control-attribution { display: none; }
  /* controls ride above the sheet: --g6sh-covered is set on the stage by the sheet */
  .g6hm-ctl { top: auto; right: 12px; bottom: calc(var(--g6sh-covered, 0px) + 12px); transition: bottom .22s cubic-bezier(.2, .8, .2, 1); }
  .g6hm-layer { left: 12px; bottom: calc(var(--g6sh-covered, 0px) + 12px); max-width: calc(100% - 68px); transition: bottom .22s cubic-bezier(.2, .8, .2, 1); }
  .g6hm-error { left: 12px; right: 12px; top: 72px; width: auto; }
  .g6hm-wait { left: 50%; top: 34%; }
  .g6hm-band { display: none; }
  .g6hm-howto, .g6hm-note, .g6hm-more { width: calc(100% - 40px); }
  .g6hm-legend { grid-template-columns: 1fr; gap: 26px; }
  .g6hm-legend-item { grid-template-rows: auto auto; }
  .g6hm .g6hm-more > a { margin: 0 14px 0 0; }
  .g6hm-more > span { flex: 0 0 100%; }
  .g6hm-more { display: flex; flex-wrap: wrap; align-items: center; }
  /* with the sheet, the desktop card is empty and stays out of the way */
  .g6hm.has-sheet .g6hm-card { display: none; }
  /* chips: one row that scrolls sideways, with a soft fade on the edge that has more */
  .g6hm-chipwrap { margin-top: 10px; }
  .g6hm-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x; overscroll-behavior-x: contain; }
  .g6hm-chips::-webkit-scrollbar { display: none; }
  .g6hm-chip { flex: none; }
  .g6hm-chipwrap.fade-r .g6hm-chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .g6hm-chipwrap.fade-l .g6hm-chips { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px); mask-image: linear-gradient(to right, transparent, #000 32px); }
  .g6hm-chipwrap.fade-l.fade-r .g6hm-chips { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 48px), transparent); }
  /* inside the shared sheet */
  .g6hm .g6sh-head { touch-action: pan-x; }
  .g6sh .g6hm-top { padding: 0; border: 0; }
  .g6sh .g6hm-addr { font-size: 26px; font-weight: 600; line-height: 1.12; }
  .g6sh .g6hm-sub { margin-top: 4px; }
  .g6sh .g6hm-pill { margin-top: 6px; }
  .g6sh .g6hm-chipwrap { margin: 10px -56px 0 -16px; }
  .g6sh .g6hm-chips { padding: 0 56px 2px 16px; }
  .g6sh .g6hm-body { overflow: visible; padding: 0; flex: none; }
  .g6sh .g6hm-body > :first-child { margin-top: 12px; }
  .g6sh .g6hm-foot { padding: 4px 0 0; border: 0; }
  .g6sh .g6hm-actions { margin-top: 12px; }
  /* the shared sheet's own text rules are for the waterway and flood pages: keep this page's sizes */
  .g6sh-body .g6hm-hint, .g6sh-body .g6hm-read-text { font: 400 16px/1.5 Manrope, sans-serif; margin: 0 0 14px; }
  .g6sh-body .g6hm-read-text { margin: 0; }
  .g6sh-body .g6hm-hint { font-weight: 500; }
  .g6sh-body .g6hm-area-note, .g6sh-body .g6hm-school-note { margin-top: 10px; }
  .g6hm .g6sh-body .g6hm-cap { font: 500 13px/1.5 Manrope, sans-serif; margin: 8px 0 0; }
  .g6sh-body .g6hm-read h4 { margin: 0 0 2px; color: #095e93; font: 700 16px/1.3 Manrope, sans-serif; letter-spacing: 0; text-transform: none; }
  .g6sh-body .g6hm-sec h3 { margin: 0 0 8px; }
  .g6sh-body a.g6hm-quiet { color: #095e93; font-weight: 600; }
  .g6sh .g6hm-pill { font-size: 16px; }
  /* nothing to close before a home is picked: the sheet is the page's panel then, not a result */
  .g6hm:not(.has-pt) .g6sh-close { display: none; }
  /* If the shared sheet script is missing, the card shows as a plain panel along the foot of the map */
  .g6hm:not(.has-sheet) .g6hm-card { top: auto; width: auto; right: 0; max-height: 52%; border-radius: 20px 20px 0 0; box-shadow: 0 -6px 28px rgba(8, 17, 31, .2); }
}
@media (max-width: 760px) {
  /* First screen on a phone (owner: search, the map and the sheet inside one screen, above the site bottom bar): the opening strip is
     the same compact one the waterway and flood pages use, the stage takes what is left of the screen, and the section heading stays
     for screen readers only. */
  body.g6-tool-homemap main .g6-tool-open.g6-tool-open { height: 156px; min-height: 0; }
  body.g6-tool-homemap .g6-tool-open__inner { padding: 12px 18px 10px; }
  body.g6-tool-homemap .g6-tool-open__kicker { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  body.g6-tool-homemap main .g6-tool-open h1 { font-size: clamp(22px, 6.6vw, 27px); line-height: 1.06; margin: 0 0 6px; }
  body.g6-tool-homemap .g6-tool-open__lede { margin: 0; font-size: 16px; line-height: 1.35; }
  .g6hm { padding: 0 0 44px; }
  .g6hm-head { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .g6hm-stage { height: calc(100svh - 293px); min-height: 440px; scroll-margin-top: 66px; }
  .g6hm-howto { margin-top: 40px; }
  .g6hm-howto h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .g6hm * { transition: none !important; } }
@media print { .g6hm-ctl, .g6hm-layer, .g6hm-chips { display: none !important; } }
