/*
 * Multi-Region Footprint Map — pane styles.
 * Doc 32 batch-3 §4. The world map is the shared region-map primitive
 * (sd-region-map.*); the counters + per-region table are now lpPane
 * primitives (headerBoxes + expandableTable + tag). Only the map-canvas
 * bleed, the region-label cell, and the map→row highlight remain here.
 */
.lp-pane { container-type: inline-size; }

.lp-region-map-body { padding: 0; }

/* Gap between the "Regions · …" subhead bar and the results table header —
   they otherwise butt straight together. */
.lp-region-map-body .lp-pane-subhead { margin-bottom: 12px; }

/* Map container — wraps the shared region-map primitive, bleeding to the
   pane edges (negative margin == the shell body's pad-x inset). The SVG's
   own aspect-ratio in sd-region-map.css drives the height. */
.lp-region-map-canvas {
    margin: 0 calc(-1 * var(--lp-pane-pad-x)) 0;
    border-top: 1px solid var(--lp-pane-divider);
    border-bottom: 1px solid var(--lp-pane-divider);
}

/* Region cell (code over friendly name) in the expandableTable primary column. */
.lp-region-map-region-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px; font-weight: 600;
}
.lp-region-map-region-name { font-size: 11px; color: var(--lp-pane-ink-dim); }

/* Service chips wrap within the Services column. */
.lp-region-map-svc-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* Map dot → highlight + scroll its region row (see renderMapInto onClick). */
.lp-xtable-row[data-region][data-highlight="true"] {
    background: var(--lp-pane-detail-bg);
}

@container (max-width: 520px) {
    .lp-region-map-canvas { margin: 0 -12px; }
}
@media (max-width: 520px) {
    .lp-region-map-canvas { margin: 0 -12px; }
}
