    /* Kept back from the drawer's stylesheet: _wlBadges() draws these on the
       visible cards (no longer listed / price changed / open home / auction).
       .wl-card, .wl-row and .wl-x had no markup left once the drawer went. */
    .wl-badge{display:inline-block;font-size:.66rem;font-weight:700;border-radius:5px;padding:1px 6px;margin:3px 4px 0 0}
    /* school-marker hover tooltip - white pill, text coloured by school category */
    .school-tip .maplibregl-popup-content{padding:4px 11px;border-radius:999px;background:#fff;
      box-shadow:0 2px 10px rgba(15,23,42,.28);max-width:240px}
    .school-tip .maplibregl-popup-content span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .school-tip .maplibregl-popup-tip{display:none}
    /* The Nearby place popup (4 Nov 2026): a one-line pill, the category's icon on
       a disc in its group colour, then the name. Paper-coloured on every basemap. */
    .am-pill .maplibregl-popup-content{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 7px;border-radius:999px;
      background:#FBF6EC;color:#3B3226;border:1px solid #DCD2BF;box-shadow:0 3px 10px rgba(59,50,38,.28);
      font:700 .76rem/1.2 Inter,system-ui,sans-serif;white-space:nowrap}
    .am-pill .maplibregl-popup-tip{display:none}
    .am-pill .am-ico{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:#fff}
    .am-pill .am-ico svg{width:14px;height:14px;display:block}
    .am-pill .am-nm{max-width:210px;overflow:hidden;text-overflow:ellipsis}
    .school-tip{pointer-events:none}

    /* THE school card (SchoolCard below) - design "07 Ink head", 3 Oct 2026.
       The house card's shell (.listing-pop + .lp: transparent popup, 12px
       radius, hairline border, one shadow, labelled footer row) with its
       photoless navy head. The figure strip sits on a NEUTRAL tint, never the
       score tints: no area scores on a school card (Brad, 28 Aug 2026). */
    .lp.sch-card{width:320px}
    .sch-card .sch-head{background:linear-gradient(135deg,#1A2B3C,#334155);color:#fff;
      padding:14px 40px 12px 14px;display:flex;gap:11px;align-items:center}
    .sch-card .sch-head > div{min-width:0}
    .sch-card .sch-crest{position:relative;width:60px;height:60px;flex:none;border-radius:12px;
      background:#fff;display:grid;place-items:center;overflow:hidden;color:var(--lv)}
    .sch-card .sch-crest svg{width:32px;height:32px}
    /* No logo (or a poor one): the school's initials on white, in the head's ink, never a stock crest. */
    .sch-card .sch-crest.mono{background:#fff;color:#1A2B3C;font:800 19px/1 Outfit,Inter,sans-serif;letter-spacing:.02em}
    .sch-card .sch-crest img{position:absolute;inset:0;width:100%;height:100%;
      object-fit:contain;padding:4px;background:#fff}
    .sch-card .sch-nm{font:700 15px/1.22 Inter,system-ui,sans-serif;color:#fff;overflow-wrap:anywhere}
    .sch-card .sch-s2{font:500 11.5px/1.35 Inter,system-ui,sans-serif;color:#cbd5e1;margin-top:5px;
      display:flex;flex-direction:column;align-items:stretch;gap:6px;flex-wrap:wrap}
    /* Level chips share the family of the Boys / Girls / Co-ed and Years chips: a soft light chip, ink text,
       and the level's own colour as a dot, so the colour still names the level (and the pin) without a loud fill. */
    .sch-card .sch-lv{display:inline-flex;align-items:center;gap:5px;font:700 10.5px/1.4 Inter,system-ui,sans-serif;
      padding:1px 8px 1px 6px;border-radius:999px;color:#27323F;background:#E6EAF0;max-width:100%}
    .sch-card .sch-lv::before{content:"";width:8px;height:8px;border-radius:50%;flex:none;background:var(--lv);
      box-shadow:0 0 0 1px rgba(15,23,42,.18)}
    .sch-card .sch-yrs{font:700 13px/1.3 Inter,system-ui,sans-serif;color:#fff}
    .sch-card .sch-ruler{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:2px;width:100%;max-width:230px}
    .sch-card .sch-ruler i{height:10px;border-radius:2px;background:rgba(255,255,255,.14)}
    .sch-card .sch-facts{font:600 11.5px/1.4 Inter,system-ui,sans-serif;color:#E2E8F0}
    .sch-card .sch-priv{color:#5eead4;font-weight:700}
    .sch-card .sch-sep{color:#64748B}
    .sch-card .sch-strip{display:flex;border-bottom:1px solid var(--line)}
    .sch-card .sch-cell{flex:1 1 0;min-width:0;text-align:center;padding:9px 4px 8px;background:#f1f5f9;
      border-right:1px solid var(--line);display:grid;gap:1px}
    .sch-card .sch-cell:last-child{border-right:0}
    .sch-card .sch-cell i{font:600 10.5px/1.2 Inter,system-ui,sans-serif;font-style:normal;color:#475569}
    .sch-card .sch-cell b{font:800 21px/1.1 Outfit,Inter,sans-serif;letter-spacing:-.02em;
      font-variant-numeric:tabular-nums;color:#0f172a}
    .sch-card .sch-cell u{text-decoration:none;font:700 9.5px/1.2 Inter,system-ui,sans-serif;
      letter-spacing:.08em;text-transform:uppercase;color:#64748b}
    .sch-card .sch-fac{padding:8px 14px 9px;display:flex;flex-direction:column;gap:5px;border-bottom:1px solid var(--line)}
    .sch-card .sch-fac i{font:600 10px/1 Inter,system-ui,sans-serif;font-style:normal;color:#64748b;text-transform:uppercase;letter-spacing:.06em}
    .sch-card .sch-alum{font-size:12px;line-height:1.4}
    .sch-card .sch-alum em{font-style:normal;color:#64748b}
    body.dark .sch-card .sch-alum em{color:#94a3b8}
    .sch-card .sch-tags{display:flex;flex-wrap:wrap;gap:4px}
    .sch-card .sch-tags span{background:#f1f5f9;border:1px solid var(--line);border-radius:6px;padding:2px 7px;font-size:11px;line-height:1.4}
    body.dark .sch-card .sch-fac{border-bottom-color:#334155}
    body.dark .sch-card .sch-fac i{color:#94a3b8}
    body.dark .sch-card .sch-tags span{background:#1e293b;border-color:#334155;color:#e2e8f0}
    .sch-card .sch-path{padding:8px 14px 9px;font-size:11.5px;line-height:1.4;color:#64748b}
    .sch-card .sch-body:empty{display:none}
    .sch-card .lp-acts a{flex:1;min-height:38px;display:flex;align-items:center;justify-content:center;gap:6px;
      border-right:1px solid var(--line);background:#fff;padding:9px 4px;text-decoration:none;
      font:700 12px/1 Inter,system-ui,sans-serif;color:var(--navy);cursor:pointer}
    .sch-card .lp-acts a:last-child{border-right:0}
    .sch-card .lp-acts a:hover{background:#f8fafc}
    .sch-card .lp-acts a[aria-disabled="true"]{opacity:.45;cursor:progress}
    .sch-card .lp-acts a:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
    /* The close button sits on the navy head in both themes. */
    .listing-pop.school-pop .maplibregl-popup-close-button,
    body.dark .listing-pop.school-pop .maplibregl-popup-close-button{background:rgba(255,255,255,.15);color:#fff}
    .listing-pop.school-pop .maplibregl-popup-close-button:hover,
    body.dark .listing-pop.school-pop .maplibregl-popup-close-button:hover{background:rgba(255,255,255,.28);color:#fff}
    /* Opened below the pin, the tip meets the head, not the white footer. */
    .listing-pop.school-pop.maplibregl-popup-anchor-top .maplibregl-popup-tip,
    .listing-pop.school-pop.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
    .listing-pop.school-pop.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{border-bottom-color:#1f2d3e}
    body.dark .sch-card .sch-cell{background:#1e293b;border-right-color:#334155}
    body.dark .sch-card .sch-strip{border-bottom-color:#334155}
    body.dark .sch-card .sch-cell i{color:#cbd5e1}
    body.dark .sch-card .sch-cell b{color:#f1f5f9}
    body.dark .sch-card .sch-cell u,body.dark .sch-card .sch-path{color:#94a3b8}
    body.dark .sch-card .lp-acts a{background:#0f172a;color:#e2e8f0;border-color:#334155}
    body.dark .sch-card .lp-acts a:hover{background:#1e293b}
    /* The school's own logo on its card. White ground: school crests are
       drawn for a light background, and a navy crest on navy is a rectangle. */
    .sch-logo{flex:none;float:none;width:52px;height:52px;object-fit:contain;background:#fff;
      border:1px solid var(--line);border-radius:10px;padding:2px;margin:0}
    /* A logo the server rates poor (or none): the school's initials in its level colour instead. */
    .sch-mono{display:grid;place-items:center;background:var(--c);color:#fff;font:800 16px/1 Outfit,Inter,sans-serif;
      border:0;letter-spacing:.02em}

    /* "More info" on a school card - opens /discover/school/<cc>/<id>, the
       middle tier between the card's teaser and the paid report. */
    .sch-more{display:inline-block;margin-top:7px;background:var(--navy);color:#fff;
      border-radius:999px;padding:3px 11px;font-size:10.5px;font-weight:700;
      text-decoration:none}
    .sch-more:hover{background:#0f172a}
    body.dark .sch-more{background:#334155;color:#f1f5f9}

    /* property preview popup - click a listing dot to see its card. Redrawn
       16 Sep 2026 to design "2D" from the audit canvas: the photo is the hero,
       the address and price sit on it over a dark gradient, the three area
       scores get the whole white body as equal columns, and the three actions
       are one labelled footer row (Watch in navy, the only thing that saves).
       The popup shell is transparent; the card provides the surface. */
    .listing-pop .maplibregl-popup-content{padding:0;background:transparent;box-shadow:none;border-radius:12px}
    .listing-pop .maplibregl-popup-tip{border-top-color:#fff;border-bottom-color:#fff}
    body.dark .listing-pop .maplibregl-popup-tip{border-top-color:#0f172a;border-bottom-color:#0f172a}
    /* The X is drawn, not typed: the "×" glyph sits below the middle of its line box
       in Inter (a text multiplication sign rides low), so no amount of line-height
       centred it. font-size:0 hides MapLibre's glyph; two bars cross at the exact
       centre of the 26px disc. */
    .listing-pop .maplibregl-popup-close-button{position:absolute;right:8px;top:8px;width:26px;height:26px;border-radius:50%;
      border:0;padding:0;z-index:2;font-size:0;line-height:0;color:#475569;background:rgba(255,255,255,.88)}
    .listing-pop .maplibregl-popup-close-button:before,
    .listing-pop .maplibregl-popup-close-button:after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;
      margin:-1px 0 0 -6px;border-radius:1px;background:currentColor}
    .listing-pop .maplibregl-popup-close-button:before{transform:rotate(45deg)}
    .listing-pop .maplibregl-popup-close-button:after{transform:rotate(-45deg)}
    .listing-pop .maplibregl-popup-close-button:hover{background:#fff;color:#0f172a}
    .lp{width:340px;max-width:82vw;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;
      box-shadow:0 10px 28px rgba(15,23,42,.28);font-family:Inter,system-ui,sans-serif;cursor:default}
    .lp .lp-hero{position:relative;height:160px;background:#e2e8f0 center/cover no-repeat}
    /* The photoless head (design option 05). Ink on paper, and the address is
       allowed to WRAP - .lp-ad clamps to 2 lines inside the photo caption,
       where space is genuinely scarce; here it is not. */
    .lp .lp-head{padding:11px 14px 7px}
    .lp .lp-head .lp-ad{display:block;overflow:visible;-webkit-line-clamp:none;
      color:#0f172a;font-size:15px;line-height:1.25;padding-right:26px}
    .lp .lp-head .lp-ad a{color:inherit}
    /* Status to the RIGHT margin, under the address - it is a qualifier on the
       property, not a second heading, and the left edge is the address's. */
    .lp .lp-head .lp-facts{margin-top:3px;font-size:11.5px;font-weight:500;color:#64748b;
      display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:5px}
    .lp .lp-head .lp-facts .spec{display:inline-flex;align-items:center;gap:3px}
    .lp .lp-head .lp-facts .spec .ic{width:13px;height:13px;flex:none;opacity:.85}
    .lp .lp-head .lp-facts .spec.tag{text-transform:capitalize}
    .lp .lp-head .lp-facts .dot{opacity:.5}
    .lp .lp-head .lp-est{color:#0f766e;margin-top:3px;text-align:right}
    body.dark .lp .lp-head .lp-ad{color:#e2e8f0}
    body.dark .lp .lp-head .lp-facts{color:#94a3b8}
    .lp .lp-hero::after{content:"";position:absolute;inset:0;
      background:linear-gradient(180deg,rgba(15,23,42,0) 30%,rgba(15,23,42,.74) 100%)}
    .lp .lp-cap{position:absolute;left:14px;right:14px;bottom:11px;z-index:1;color:#fff;
      display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
    .lp .lp-cap > div{min-width:0}
    .lp .lp-ad{font-weight:700;font-size:15px;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
    .lp .lp-ad a{color:inherit;text-decoration:none}
    .lp .lp-ad a:hover{text-decoration:underline}
    /* MapLibre focuses the popup's first focusable element on open, which is
       this link; the default UA ring drew a black-and-white box across the
       photo. A crisp white ring, keyboard users only. */
    .lp .lp-ad a:focus{outline:none}
    .lp .lp-ad a:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:3px}
    .lp .lp-sub{font-weight:500;font-size:11.5px;line-height:1.3;color:#cbd5e1;margin-top:2px;
      display:flex;align-items:center;gap:5px;flex-wrap:wrap}
    .lp .lp-sub .spec{display:inline-flex;align-items:center;gap:3px}
    .lp .lp-sub .spec .ic{width:13px;height:13px;flex:none;opacity:.9}
    .lp .lp-sub .spec.tag{text-transform:capitalize}
    .lp .lp-sub .dot{opacity:.6}
    .lp .lp-est{font-weight:600;font-size:11px;color:#99f6e4;margin-top:2px}
    .lp .lp-price{text-align:right;flex:none;max-width:46%}
    .lp .lp-price b{display:block;font-weight:800;font-size:19px;line-height:1}
    .lp .lp-price span{display:block;font-weight:500;font-size:10.5px;line-height:1.3;color:#cbd5e1;margin-top:3px;
      overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
    /* Design 06: ONE tinted strip the full width of the popup, three cells,
       hairline dividers, no gutters - not three boxes inset into a 320px card,
       which is what the homepage does and what every other option here tried.
       The card already carries a border, a divider above the buttons and two
       between them; three more insets is where it started to feel crowded.
       Label above, mark and figure together, band word below - the homepage's
       reading order, so the two surfaces answer the same question the same way.
       The ink stays ink: the tint is the panel, never the text. */
    .lp .lp-scores{display:flex;padding:0;
      border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
    .lp .lp-sc{flex:1 1 0;min-width:0;cursor:pointer;border:0;font:inherit;text-align:center;
      background:var(--su-bg);border-right:1px solid rgba(255,255,255,.6);
      padding:10px 4px 9px;color:inherit;
      display:grid;justify-content:center;align-items:center;gap:2px 6px;
      grid-template-columns:auto auto;
      grid-template-areas:"lab lab" "ico val" "band band"}
    body.dark .lp .lp-sc{border-right-color:rgba(0,0,0,.28)}
    .lp .lp-sc:last-child{border-right:0}
    .lp .lp-sc.good{--su-bg:var(--su-good-bg)}
    .lp .lp-sc.mid {--su-bg:var(--su-mid-bg)}
    .lp .lp-sc.poor{--su-bg:var(--su-poor-bg)}
    .lp .lp-sc.na  {--su-bg:var(--su-none-bg)}
    .lp .lp-sc i{grid-area:lab;justify-self:center;
      font:600 10.5px/1.2 Inter,sans-serif;font-style:normal;color:#475569}
    .lp .lp-sc .ic{grid-area:ico;justify-self:end;width:19px;height:19px}
    .lp .lp-sc b{grid-area:val;justify-self:start;
      font:800 23px/1.1 Outfit,Inter,sans-serif;letter-spacing:-.02em}
    .lp .lp-sc u{grid-area:band;justify-self:center;text-decoration:none;
      font:700 9.5px/1.2 Inter,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:#64748b}
    body.dark .lp .lp-sc i{color:#cbd5e1}
    body.dark .lp .lp-sc u{color:#94a3b8}
    .lp .lp-aero{padding:7px 12px 8px;border-top:1px solid var(--line);
      font:500 12px/1.35 Inter,system-ui,sans-serif;color:var(--navy)}
    .lp .lp-aero b{font-weight:700}
    .lp .lp-aero small{display:block;margin-top:2px;font:500 10.5px/1.3 Inter,system-ui,sans-serif;color:#64748b}
    body.dark .lp .lp-aero{color:#e2e8f0}
    body.dark .lp .lp-aero small{color:#94a3b8}
    .lp .lp-acts{display:flex;border-top:1px solid var(--line)}
    .lp .lp-acts button{flex:1;min-height:38px;display:flex;align-items:center;justify-content:center;gap:6px;
      border:0;border-right:1px solid var(--line);border-radius:0;background:#fff;padding:9px 4px;
      font:700 12px/1 Inter,system-ui,sans-serif;color:var(--navy);cursor:pointer}
    .lp .lp-acts .ai{width:14px;height:14px;flex:none}   /* the glyph; the 42px button is the target */
    .lp .lp-acts button:hover{background:#f8fafc}
    /* "Click any house": Report is off for a spot with no street address, Watch
       until the address is known; the scores pulse while they are being fetched.
       Both read in either theme (opacity only, no colour of their own). */
    .lp .lp-acts button:disabled{opacity:.45;cursor:not-allowed}
    /* The focus ring sat on the card's rounded, overflow-hidden edge and was cut off at the corner. */
    .lp .lp-acts button:focus-visible{outline-offset:-3px}
    .lp .lp-acts button:disabled:hover{background:#fff}
    body.dark .lp .lp-acts button:disabled:hover{background:#0f172a}
    .lp .lp-sc-slot.lp-loading{opacity:.45;pointer-events:none;animation:lpPulse 1.1s ease-in-out infinite alternate}
    @keyframes lpPulse{from{opacity:.3}to{opacity:.6}}
    @media (prefers-reduced-motion:reduce){.lp .lp-sc-slot.lp-loading{animation:none}}
    .lp .lp-acts .wl{border-right:0}
    .lp .lp-acts .wl .ai{stroke:currentColor;fill:none;transition:fill .15s}
    .lp .lp-acts .wl.on .ai{fill:currentColor}
    body.dark .lp{background:#0f172a;border-color:#334155}
    body.dark .lp .lp-sc i{color:#94a3b8}
    body.dark .lp .lp-acts,body.dark .lp .lp-acts button{border-color:#334155}
    body.dark .lp .lp-acts button{background:#0f172a;color:#e2e8f0}
    body.dark .lp .lp-acts button:hover{background:#1e293b}
    body.dark .listing-pop .maplibregl-popup-close-button{background:rgba(15,23,42,.8);color:#e2e8f0}
    body.dark .listing-pop .maplibregl-popup-close-button:hover{background:#334155;color:#fff}
