/* Interactive state map on /locations/ (content/locations/index.njk + /js/locations-map.js).
   Scoped to .lm so nothing else on the site is affected. Uses the design tokens from css/v20/00-system.css. */
.lm{--lm-tone-0:#CFE0FF;--lm-tone-1:#C7F0F2;--lm-tone-2:#DCD3FF;--lm-tone-3:#C9F3E3;
 --lm-tone-0-h:#A9C6FF;--lm-tone-1-h:#9FE3E8;--lm-tone-2-h:#C2B4FF;--lm-tone-3-h:#9EE8CC;
 --lm-empty:#E4E9F0;--lm-stroke:#FFFFFF;--lm-pin:var(--red,#E3173E);--lm-active:var(--blue-600,#1F55E0);
 margin:var(--s6,32px) 0 var(--s7,48px);padding:clamp(18px,2.6vw,32px);border:1px solid var(--line,rgba(8,21,38,.09));
 border-radius:var(--r-lg,24px);background:var(--white,#fff);box-shadow:var(--shadow-1)}
.lm-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin-bottom:clamp(12px,2vw,20px)}
.lm .lm-head h2{margin:0;font-size:var(--fs-h3,1.5rem);line-height:var(--lh-head,1.22)}
.lm-tools{display:flex;flex-direction:column;gap:6px;min-width:min(100%,260px)}
.lm-select-label{font-size:var(--fs-label,.8125rem);font-weight:600;color:var(--text-muted,#3B4E6B)}
.lm-select{appearance:none;-webkit-appearance:none;width:100%;min-height:46px;padding:0 44px 0 16px;font:inherit;font-size:1rem;color:var(--ink-900,#081526);
 border:1px solid var(--line-strong,rgba(8,21,38,.16));border-radius:var(--r-sm,10px);cursor:pointer;
 background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317304F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center}
.lm-select:focus-visible{outline:3px solid var(--focus,#2F6BFF);outline-offset:2px}

.lm-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(16px,2.4vw,28px);align-items:start}
@media (min-width:1024px){.lm-layout{grid-template-columns:minmax(0,1.75fr) minmax(300px,1fr)}}

.lm-map-wrap{position:relative;min-width:0}
.lm-map{display:block;width:100%;height:auto;overflow:visible;-webkit-tap-highlight-color:transparent;user-select:none}

/* States */
.lm-state{fill:var(--lm-empty);stroke:var(--lm-stroke);stroke-width:1;stroke-linejoin:round;cursor:pointer;transition:fill .18s ease}
.lm-state.has-pages.tone-0{fill:var(--lm-tone-0)}.lm-state.has-pages.tone-1{fill:var(--lm-tone-1)}
.lm-state.has-pages.tone-2{fill:var(--lm-tone-2)}.lm-state.has-pages.tone-3{fill:var(--lm-tone-3)}
.lm-state:not(.has-pages):hover,.lm-state:not(.has-pages).is-hover{fill:#D3DBE6}
.lm-state.has-pages.tone-0:hover,.lm-state.has-pages.tone-0.is-hover{fill:var(--lm-tone-0-h)}
.lm-state.has-pages.tone-1:hover,.lm-state.has-pages.tone-1.is-hover{fill:var(--lm-tone-1-h)}
.lm-state.has-pages.tone-2:hover,.lm-state.has-pages.tone-2.is-hover{fill:var(--lm-tone-2-h)}
.lm-state.has-pages.tone-3:hover,.lm-state.has-pages.tone-3.is-hover{fill:var(--lm-tone-3-h)}
.lm-state.is-active,.lm-state.is-active:hover{fill:var(--lm-active)}
.lm-state:focus{outline:none}
.lm-state:focus-visible{stroke:var(--ink-950,#050D18);stroke-width:2.5}

/* Labels, pins and call-outs sit on top of the states and pass clicks through to the JS handlers */
.lm-label{font:600 11px/1 var(--font,system-ui,sans-serif);fill:var(--ink-700,#17304F);text-anchor:middle;pointer-events:none;letter-spacing:.02em}
.lm-label.is-active{fill:#fff}
.lm-pin{cursor:pointer}
.lm-pin-body{transform-box:fill-box;transform-origin:50% 100%;transition:transform .2s var(--ease-out,ease)}
.lm-pin path{fill:var(--lm-pin);stroke:#fff;stroke-width:1.4}
.lm-pin circle{fill:#fff}
.lm-pin:hover .lm-pin-body,.lm-pin.is-hover .lm-pin-body{transform:scale(1.25)}
.lm-pin.is-active .lm-pin-body{transform:scale(1.4)}
.lm-pin.is-active path{fill:var(--ink-950,#050D18)}
.lm-callout{cursor:pointer}
.lm-callout polyline{fill:none;stroke:var(--slate-400,#52668A);stroke-width:.8}
.lm-callout rect{fill:var(--lm-empty);stroke:#fff;stroke-width:1}
.lm-callout.has-pages rect{fill:var(--lm-tone-0)}
.lm-callout text{font:600 11px/1 var(--font,system-ui,sans-serif);fill:var(--ink-700,#17304F);text-anchor:middle;pointer-events:none}
.lm-callout:hover rect,.lm-callout.is-hover rect{fill:var(--lm-tone-0-h)}
.lm-callout.is-active rect{fill:var(--lm-active)}
.lm-callout.is-active text{fill:#fff}

/* Hover tooltip (pointer devices only; positioned by JS) */
.lm-tip{position:absolute;z-index:3;left:0;top:0;margin:0;padding:6px 10px;border-radius:8px;background:var(--ink-900,#081526);color:#fff;
 font-size:.875rem;line-height:1.3;white-space:nowrap;pointer-events:none;opacity:0;transform:translate(-50%,calc(-100% - 12px));transition:opacity .12s}
.lm-tip.is-on{opacity:1}
.lm-tip strong{font-weight:600}

.lm-legend{list-style:none;display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 0 0;padding:0;font-size:.875rem;color:var(--text-muted,#3B4E6B)}
.lm-legend li{display:flex;align-items:center;gap:8px;margin:0}
.lm-legend-pin{fill:var(--lm-pin)}
.lm-swatch{display:inline-block;width:14px;height:14px;border-radius:4px;background:var(--lm-empty);border:1px solid var(--line-strong,rgba(8,21,38,.16))}

/* Panel */
.lm-panel{min-width:0;padding:clamp(18px,2vw,24px);border-radius:var(--r-md,16px);background:var(--slate-50,#F4F7FB);border:1px solid var(--line,rgba(8,21,38,.09));scroll-margin-top:calc(var(--header-h,72px) + 16px)}
@media (min-width:1024px){.lm-panel{position:sticky;top:calc(var(--header-h,72px) + 16px);max-height:calc(100vh - var(--header-h,72px) - 32px);overflow:auto}}
.lm .lm-panel h3{margin:0 0 4px;font-size:var(--fs-h4,1.25rem);line-height:var(--lh-head,1.22)}
.lm .lm-panel p{margin:0;font-size:1rem;line-height:1.6;color:var(--text-muted,#3B4E6B)}
.lm-state-block+.lm-state-block{margin-top:28px;padding-top:24px;border-top:1px solid var(--line,rgba(8,21,38,.09))}
.js .lm-state-block{display:none}
.js .lm-state-block.is-active{display:block;margin:0;padding:0;border:0}
.js .lm-state-block.is-active{animation:lm-in .25s var(--ease-out,ease)}
@keyframes lm-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.lm .lm-links{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.lm .lm-links li{margin:0;padding:0}
.lm .lm-links li::before{content:none}
.lm-links a{display:flex;flex-direction:column;gap:2px;padding:12px 40px 12px 14px;position:relative;border-radius:var(--r-sm,10px);background:#fff;border:1px solid var(--line,rgba(8,21,38,.09));
 color:var(--ink-800,#0E2038);text-decoration:none;line-height:1.35;transition:border-color .2s,box-shadow .2s}
.lm-links a::after{content:'';position:absolute;right:16px;top:50%;width:8px;height:8px;border-top:2px solid var(--blue-600,#1F55E0);border-right:2px solid var(--blue-600,#1F55E0);transform:translateY(-50%) rotate(45deg)}
.lm-links a:hover{border-color:rgba(47,107,255,.45);box-shadow:var(--shadow-1)}
.lm-links a:focus-visible{outline:3px solid var(--focus,#2F6BFF);outline-offset:2px}
.lm-link-group{font-size:.8125rem;font-weight:600;color:var(--blue-600,#1F55E0)}
.lm-link-title{font-size:1rem;font-weight:550}

/* Full list by service, kept below the map */
.lm-all{margin:0 0 var(--s7,48px);border:1px solid var(--line,rgba(8,21,38,.09));border-radius:var(--r-md,16px);background:#fff}
.lm-all>summary{cursor:pointer;padding:18px 22px;font-weight:600;color:var(--ink-800,#0E2038);list-style-position:inside}
.lm-all>summary:focus-visible{outline:3px solid var(--focus,#2F6BFF);outline-offset:2px;border-radius:var(--r-md,16px)}
.lm-all[open]>summary{border-bottom:1px solid var(--line,rgba(8,21,38,.09))}
.lm-all>h3,.lm-all>ul{margin-left:22px;margin-right:22px}
.lm-all>h3{margin-top:28px}
.lm-all>ul:last-of-type{margin-bottom:24px}

/* Small screens: hide the tiny state abbreviations and make the pins easier to see and tap */
@media (max-width:640px){
 .lm-labels{display:none}
 .lm-pin-body{transform:scale(1.7)}
 .lm-pin:hover .lm-pin-body,.lm-pin.is-hover .lm-pin-body{transform:scale(1.7)}
 .lm-pin.is-active .lm-pin-body{transform:scale(2.1)}
 .lm-callout text{font-size:15px}
 .lm-callout rect{width:52px;height:24px;transform:translate(-4px,-2px)}
 .lm-head{align-items:stretch}
}
@media (prefers-reduced-motion:reduce){.lm-state,.lm-pin-body,.lm-tip{transition:none}.js .lm-state-block.is-active{animation:none}}
@media (forced-colors:active){.lm-state{stroke:CanvasText}.lm-state.is-active{fill:Highlight}}
html:not(.js) .lm-empty{display:none}
.lm-state.has-pages.is-active,.lm-state.has-pages.is-active:hover,.lm-state.is-active.is-hover{fill:var(--lm-active)}
.lm-map,.lm-map:focus,.lm-state:focus{outline:none}
.lm .lm-tip strong{color:#fff;font-weight:600}

/* "2026 changes" section: one card per change instead of one dense list */
.lm-changes{margin:var(--s7,48px) 0 var(--s5,24px)}
.lm-changes>h2{margin:0 0 10px}
.lm .lm-changes-intro,.lm-changes .lm-changes-intro{margin:0 0 var(--s5,24px);max-width:62ch;color:var(--text-muted,#3B4E6B)}
.lm-change-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}
.lm-change{display:flex;flex-direction:column;gap:10px;padding:22px 22px 24px;border:1px solid var(--line,rgba(8,21,38,.09));border-radius:var(--r-md,16px);background:#fff;border-top:3px solid var(--blue,#2F6BFF)}
.lm-changes .lm-change h3{margin:0;font-size:1.125rem;line-height:1.35}
.lm-changes .lm-change p{margin:0;font-size:1rem;line-height:1.6;color:var(--ink-700,#17304F)}
.lm-changes .lm-change .lm-change-when{order:-1;font-size:.875rem;font-weight:600;color:var(--blue-600,#1F55E0)}
.lm-changes-next{margin-top:var(--s5,24px)}
