/* ============ LUDAX Locations — GLOBAL SWITCHBOARD ============
   8px spacing system: 8 / 16 / 24 / 32 / 40 / 56 / 72
   Standardised: border 1px var(--w-090) · card padding 24px
   button height 48 (44 min touch) · transitions 150–250ms · glow only on
   interactive / selected elements.
=============================================================== */
[data-script-page="locations"] {
  --lo-ease: cubic-bezier(.22,.61,.28,1);
  --lo-t: .2s var(--lo-ease);
  --lo-line: var(--w-090);
  --lo-line-2: var(--w-160);
  --lo-line-hi: rgba(168,85,247,0.55);
  --lo-lime: var(--lime-text);
  --lo-ink: var(--text-primary);
  --lo-dim: var(--text-secondary);   /* body copy on dark — AA at 14px+ */
  --lo-mute: var(--text-secondary);  /* microcopy / labels — AA */
  --lo-surface: var(--surface-sunken);
  --lo-mono: var(--font-jetbrains-mono), ui-monospace, SFMono-Regular, Menlo, monospace;
  --sw-accent: 139,92,246;
}
:where([data-script-page="locations"]) .lo-mono { font-family: var(--lo-mono); letter-spacing: 0.1em; text-transform: uppercase; }
:where([data-script-page="locations"]) .lo-eyebrow {
  display: block; font-family: var(--lo-mono); font-size: 12px; line-height: 1.6;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lo-mute); margin-bottom: 16px;
}

/* reveal */
:where([data-script-page="locations"]) .lo-rev { opacity: 0; transform: translate3d(0,12px,0); transition: opacity .45s var(--lo-ease), transform .45s var(--lo-ease); }
:where([data-script-page="locations"]) .lo-rev.is-in { opacity: 1; transform: none; }
:where([data-script-page="locations"]) .lo-rev--d1 { transition-delay: .06s; }
:where([data-script-page="locations"]) .lo-rev--d2 { transition-delay: .12s; }

/* flag chip — one visual system everywhere */
:where([data-script-page="locations"]) .lo-flag {
  display: grid; place-items: center; overflow: hidden; flex: none;
  width: 34px; height: 24px; border: 1px solid var(--lo-line-2);
  background: var(--w-050); border-radius: 2px;
  font-size: 17px; line-height: 1;
  font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji','Twemoji Mozilla',sans-serif;
}
:where([data-script-page="locations"]) .lo-flag--fallback { font-family: var(--lo-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--text-soft); }
:where([data-script-page="locations"]) .lo-flag--lg { width: 56px; height: 40px; font-size: 26px; }
:where([data-script-page="locations"]) .lo-flag--sm { width: 26px; height: 18px; font-size: 13px; }

/* =====================================================================
   SWITCHBOARD HERO
===================================================================== */
:where([data-script-page="locations"]) .sw-hero {
  position: relative; z-index: 1;
  padding: clamp(24px,3vw,40px) clamp(16px,3.4vw,26px) 0;
  padding-left: max(clamp(16px,3.4vw,26px), env(safe-area-inset-left));
  padding-right: max(clamp(16px,3.4vw,26px), env(safe-area-inset-right));
  overflow: clip; isolation: isolate;
}
:where([data-script-page="locations"]) .sw-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(56% 48% at 72% 34%, rgba(var(--sw-accent),0.13), transparent 70%);
  transition: background .6s var(--lo-ease);
}
:where([data-script-page="locations"]) .sw-hero-inner {
  position: relative; z-index: 3;
  width: 100%; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,368px);
  gap: clamp(32px,5vw,72px); align-items: center;
  padding: clamp(24px,4vw,56px) 0 clamp(32px,4vw,48px);
}

/* --- copy --- */
:where([data-script-page="locations"]) .sw-copy { position: relative; z-index: 4; max-width: 620px; }
/* controlled scrim: keeps headline legible over the accent wash */
:where([data-script-page="locations"]) .sw-copy::before {
  content: ''; position: absolute; z-index: -1; inset: -40px -56px -32px -48px;
  background: radial-gradient(72% 78% at 26% 46%, rgba(var(--scrim-rgb),0.9), rgba(var(--scrim-rgb),0.45) 62%, rgba(var(--scrim-rgb),0) 100%);
  pointer-events: none;
}
:where([data-script-page="locations"]) .sw-copy .lx-h1 { margin: 0 0 24px; }
:where([data-script-page="locations"]) .sw-copy .lx-h1 span { display: block; color: var(--accent-text); }
:where([data-script-page="locations"]) .sw-sub { max-width: 30ch; margin-bottom: 16px; color: var(--lo-dim); }
:where([data-script-page="locations"]) .sw-clarify {
  max-width: 56ch; font-size: 16px; line-height: 1.65; color: var(--lo-mute);
  border-left: 2px solid rgba(var(--sw-accent),0.6); padding-left: 16px; margin-bottom: 32px;
  transition: border-color .6s var(--lo-ease);
}
:where([data-script-page="locations"]) .sw-btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
:where([data-script-page="locations"]) .sw-btn-row .lx-btn { min-height: 48px; }

/* --- proof strip --- */
:where([data-script-page="locations"]) .sw-proof {
  position: relative; z-index: 3; width: 100%; max-width: 1320px; margin: 0 auto;
  list-style: none; padding: 0; display: grid; gap: 1px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  background: var(--lo-line); border: 1px solid var(--lo-line);
}
@media (min-width: 880px) { :where([data-script-page="locations"]) .sw-proof { grid-template-columns: repeat(4, minmax(0,1fr)); } }
:where([data-script-page="locations"]) .sw-proof li {
  background: var(--lo-surface); padding: 24px; display: grid; gap: 8px; align-content: start;
}
:where([data-script-page="locations"]) .sw-proof b {
  font-family: var(--font-space-grotesk), sans-serif; font-weight: 700; font-size: clamp(22px,2.6vw,30px);
  letter-spacing: -0.03em; color: var(--lo-ink); line-height: 1.05;
}
:where([data-script-page="locations"]) .sw-proof-lab {
  font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text); line-height: 1.5;
}
:where([data-script-page="locations"]) .sw-proof-sub { font-size: 14px; line-height: 1.55; color: var(--lo-mute); }
:where([data-script-page="locations"]) .sw-proof-note { max-width: 1320px; margin: 16px auto 0; font-size: 14px; line-height: 1.6; color: var(--lo-mute); }

/* =====================================================================
   FLAG ROUTING RAILS — a band below the hero, never behind the headline
===================================================================== */
:where([data-script-page="locations"]) .sw-railband {
  position: relative; z-index: 2; width: 100%; max-width: 1320px;
  margin: clamp(32px,4vw,56px) auto 0; padding-top: 16px; border-top: 1px solid var(--lo-line);
}
:where([data-script-page="locations"]) .sw-railband-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 16px;
}
:where([data-script-page="locations"]) .sw-railband-head p {
  font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lo-mute); line-height: 1.6;
}
:where([data-script-page="locations"]) .sw-rails {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
:where([data-script-page="locations"]) .sw-rail { position: relative; overflow: hidden; height: 56px; }
:where([data-script-page="locations"]) .sw-track {
  position: absolute; top: 0; left: 0; height: 100%;
  display: flex; align-items: center; gap: 8px; width: max-content; will-change: transform;
}
:where([data-script-page="locations"]) .sw-track--ltr { animation: sw-ltr var(--sw-dur,90s) linear infinite; }
:where([data-script-page="locations"]) .sw-track--rtl { animation: sw-rtl var(--sw-dur,90s) linear infinite; }
@keyframes sw-rtl { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes sw-ltr { from { transform: translate3d(-50%,0,0); } to { transform: translate3d(0,0,0); } }
:where([data-script-page="locations"]) .sw-rails.is-paused .sw-track { animation-play-state: paused; }
:where([data-script-page="locations"]) .sw-rail.is-hover .sw-track { animation-play-state: paused; }

:where([data-script-page="locations"]) .sw-tile {
  pointer-events: auto; flex: none; display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 12px; cursor: pointer;
  background: rgba(var(--scrim-rgb),0.8); border: 1px solid var(--lo-line); border-radius: 4px;
  color: var(--lo-dim);
  transition: transform var(--lo-t), border-color var(--lo-t), background var(--lo-t), box-shadow var(--lo-t);
}
:where([data-script-page="locations"]) .sw-tile .lo-flag { width: 28px; height: 20px; font-size: 14px; }
:where([data-script-page="locations"]) .sw-tile-iso { font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--lo-mute); }
:where([data-script-page="locations"]) .sw-tile-name {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: 13px; font-weight: 600; color: var(--lo-ink);
  transition: max-width .24s var(--lo-ease), opacity .18s var(--lo-ease);
}
:where([data-script-page="locations"]) .sw-tile:hover, :where([data-script-page="locations"]) .sw-tile:focus-visible {
  transform: translateY(-2px); background: rgba(18,15,29,0.95);
  border-color: var(--lo-line-hi); box-shadow: 0 10px 24px -14px rgba(124,58,237,0.75);
}
:where([data-script-page="locations"]) .sw-tile:hover .sw-tile-name, :where([data-script-page="locations"]) .sw-tile:focus-visible .sw-tile-name { max-width: 180px; opacity: 1; }
:where([data-script-page="locations"]) .sw-tile.is-selected { border-color: rgba(168,85,247,0.75); background: rgba(124,58,237,0.18); color: var(--text-primary); }
:where([data-script-page="locations"]) .sw-tile.is-selected .sw-tile-name { max-width: 180px; opacity: 1; }
:where([data-script-page="locations"]) .sw-tile:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }

/* =====================================================================
   CENTRAL ROUTER / SCANNER
===================================================================== */
:where([data-script-page="locations"]) .sw-scanner {
  position: relative; z-index: 5; justify-self: end;
  width: 100%; max-width: 368px; padding: 24px;
  background: rgba(var(--scrim-rgb),0.9); border: 1px solid rgba(168,85,247,0.24);
  box-shadow: 0 24px 64px -32px var(--shadow-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
:where([data-script-page="locations"]) .sw-scanner-cap {
  display: block; font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lo-mute); margin-bottom: 16px;
}
:where([data-script-page="locations"]) .sw-flow { position: relative; padding-left: 24px; }
:where([data-script-page="locations"]) .sw-flow::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 80px; width: 2px; background: var(--w-120); }
:where([data-script-page="locations"]) .sw-node { position: relative; display: flex; align-items: center; gap: 8px; min-height: 24px; }
:where([data-script-page="locations"]) .sw-node + .sw-node { margin-top: 16px; }
:where([data-script-page="locations"]) .sw-node::before { content: ''; position: absolute; left: -21px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #1b1830; border: 1px solid var(--lo-line-2); }
:where([data-script-page="locations"]) .sw-node-lab { font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lo-mute); }
:where([data-script-page="locations"]) .sw-node--gw .sw-node-lab { color: var(--lo-ink); }
:where([data-script-page="locations"]) .sw-diamond { width: 14px; height: 14px; flex: none; transform: rotate(45deg); background: linear-gradient(135deg,#c084fc,#6d28d9); border-radius: 2px; margin-left: -23px; box-shadow: 0 0 10px 1px rgba(168,85,247,0.45); }
:where([data-script-page="locations"]) .sw-node--gw::before { display: none; }
:where([data-script-page="locations"]) .sw-pulse {
  position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; margin-left: -4px; border-radius: 50%;
  background: #c084fc; box-shadow: 0 0 12px 3px rgba(192,132,252,0.8); opacity: 0; z-index: 2;
}
:where([data-script-page="locations"]) .sw-pulse.is-run { animation: sw-pulse-run .6s var(--lo-ease) forwards; }
@keyframes sw-pulse-run {
  0% { top: 6px; opacity: 1; }
  100% { top: calc(100% - 80px); opacity: 0; }
}
:where([data-script-page="locations"]) .sw-target { margin-left: -24px; margin-top: 24px; text-align: center; }
:where([data-script-page="locations"]) .sw-sc-flag {
  display: grid; place-items: center; width: 88px; height: 60px; margin: 0 auto 16px;
  font-size: 44px; line-height: 1; overflow: hidden;
  background: var(--w-040); border: 1px solid var(--lo-line-2); border-radius: 4px;
  font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji','Twemoji Mozilla',sans-serif;
  transition: transform .24s var(--lo-ease), border-color .24s var(--lo-ease);
}
:where([data-script-page="locations"]) .sw-sc-flag.lo-flag--fallback { font-family: var(--lo-mono); font-size: 22px; color: var(--text-soft); }
:where([data-script-page="locations"]) .sw-sc-flag.is-swap { transform: scale(1.05); border-color: rgba(168,85,247,0.5); }
:where([data-script-page="locations"]) .sw-sc-name { font-family: var(--font-space-grotesk), sans-serif; font-weight: 700; font-size: 22px; color: var(--text-primary); line-height: 1.15; }
:where([data-script-page="locations"]) .sw-sc-iso { display: block; font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent-text); margin-top: 8px; }
:where([data-script-page="locations"]) .sw-sc-code {
  display: block; margin: 16px 0 0; text-align: center; font-family: var(--lo-mono); font-size: 13px;
  line-height: 1.5; color: var(--text-soft); background: var(--w-030);
  border: 1px solid var(--lo-line); padding: 12px 8px; overflow-x: auto;
}
:where([data-script-page="locations"]) .sw-sc-code b { color: var(--accent-text); font-weight: 700; }
:where([data-script-page="locations"]) .sw-sc-status {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px;
  font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lo-mute);
}
:where([data-script-page="locations"]) .sw-sc-status i {
  width: 14px; height: 14px; flex: none; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--lo-mono); font-size: 9px; font-style: normal; line-height: 1;
  border: 1px solid currentColor;
}
:where([data-script-page="locations"]) .sw-sc-status[data-state="ready"] { color: color-mix(in oklab, var(--lo-lime) var(--tone-mix), var(--tone-ink)); }
:where([data-script-page="locations"]) .sw-sc-status[data-state="routing"], :where([data-script-page="locations"]) .sw-sc-status[data-state="select"] { color: var(--accent-text); }
:where([data-script-page="locations"]) .sw-sc-nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
:where([data-script-page="locations"]) .sw-navbtn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--w-030); border: 1px solid var(--lo-line); color: var(--lo-dim); cursor: pointer;
  transition: border-color var(--lo-t), color var(--lo-t), background var(--lo-t);
}
:where([data-script-page="locations"]) .sw-navbtn:hover { color: var(--text-primary); border-color: var(--lo-line-hi); background: rgba(168,85,247,0.1); }
:where([data-script-page="locations"]) .sw-pausebtn {
  flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--w-030); border: 1px solid var(--lo-line); color: var(--lo-dim); cursor: pointer;
  font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: border-color var(--lo-t), color var(--lo-t), background var(--lo-t);
}
:where([data-script-page="locations"]) .sw-pausebtn:hover { color: var(--text-primary); border-color: var(--lo-line-hi); background: rgba(168,85,247,0.1); }
:where([data-script-page="locations"]) .sw-navbtn:focus-visible, :where([data-script-page="locations"]) .sw-pausebtn:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }

/* live region (visually hidden) */
:where([data-script-page="locations"]) .sw-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =====================================================================
   ATLAS
===================================================================== */
:where([data-script-page="locations"]) .lo-wrap { width: 100%; max-width: 1320px; margin: 0 auto; }
:where([data-script-page="locations"]) .lo-atlas-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
:where([data-script-page="locations"]) .lo-atlas-head h2 { margin: 0 0 8px; }
:where([data-script-page="locations"]) .lo-atlas-head p { max-width: 52ch; }
:where([data-script-page="locations"]) .lo-count {
  font-family: var(--lo-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--lo-ink);
  white-space: nowrap; border: 1px solid var(--lo-line); padding: 8px 16px;
}
:where([data-script-page="locations"]) .lo-count b { font-weight: 700; color: var(--accent-text); }

/* sticky control bar — search is the strongest control here */
:where([data-script-page="locations"]) .lo-controls {
  position: sticky; top: 64px; z-index: 20; display: grid; gap: 16px;
  margin-bottom: 24px; padding: 16px 0;
  background: var(--background); border-bottom: 1px solid var(--lo-line);
}
@media (min-width: 992px) { :where([data-script-page="locations"]) .lo-controls { top: 70px; } }
:where([data-script-page="locations"]) .lo-searchwrap { position: relative; }
:where([data-script-page="locations"]) .lo-searchrow {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 0 8px 0 16px;
  background: var(--w-030); border: 1px solid var(--lo-line-2);
  transition: border-color var(--lo-t), background var(--lo-t), box-shadow var(--lo-t);
}
:where([data-script-page="locations"]) .lo-searchrow svg { color: var(--lo-mute); flex: none; }
:where([data-script-page="locations"]) .lo-searchrow:focus-within {
  border-color: rgba(168,85,247,0.8); background: rgba(168,85,247,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.22);
}
:where([data-script-page="locations"]) .lo-searchrow:focus-within svg { color: var(--accent-text); }
:where([data-script-page="locations"]) .lo-search {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text-primary); padding: 12px 0;
  font-family: var(--font-space-grotesk), sans-serif; font-weight: 600;
  font-size: clamp(18px,2.2vw,24px); letter-spacing: -0.02em;
}
:where([data-script-page="locations"]) .lo-search::placeholder { color: var(--text-muted); font-weight: 500; }
:where([data-script-page="locations"]) .lo-search:focus { outline: none; }
:where([data-script-page="locations"]) .lo-search::-webkit-search-cancel-button { display: none; }
:where([data-script-page="locations"]) .lo-searchmeta { display: flex; align-items: center; gap: 8px; flex: none; }
:where([data-script-page="locations"]) .lo-spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(196,181,253,0.3);
  border-top-color: #c4b5fd; animation: lo-spin .7s linear infinite; display: none;
}
:where([data-script-page="locations"]) .lo-searchwrap[data-loading="true"] .lo-spinner { display: block; }
@keyframes lo-spin { to { transform: rotate(360deg); } }
:where([data-script-page="locations"]) .lo-kbd {
  display: none; font-family: var(--lo-mono); font-size: 11px; color: var(--lo-mute);
  border: 1px solid var(--lo-line-2); border-radius: 4px; padding: 4px 8px;
}
@media (min-width: 768px) { :where([data-script-page="locations"]) .lo-kbd { display: block; } }
:where([data-script-page="locations"]) .lo-searchwrap:focus-within .lo-kbd, :where([data-script-page="locations"]) .lo-searchwrap[data-filled="true"] .lo-kbd { display: none; }
:where([data-script-page="locations"]) .lo-clear {
  display: none; place-items: center; width: 44px; height: 44px; flex: none;
  background: none; border: 0; color: var(--lo-mute); cursor: pointer; transition: color var(--lo-t);
}
:where([data-script-page="locations"]) .lo-clear.is-on { display: grid; }
:where([data-script-page="locations"]) .lo-clear:hover { color: var(--text-primary); }

/* autocomplete */
:where([data-script-page="locations"]) .lo-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  margin: 0; padding: 8px; list-style: none; max-height: min(46vh, 360px); overflow-y: auto;
  background: rgba(var(--scrim-rgb),0.99); border: 1px solid rgba(168,85,247,0.32);
  box-shadow: 0 32px 72px -28px var(--shadow-strong);
}
:where([data-script-page="locations"]) .lo-suggest[hidden] { display: none; }
:where([data-script-page="locations"]) .lo-sug {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 48px;
  padding: 8px 12px; background: transparent; border: 0; cursor: pointer; color: inherit;
}
:where([data-script-page="locations"]) .lo-sug[aria-selected="true"], :where([data-script-page="locations"]) .lo-sug:hover { background: rgba(124,58,237,0.2); }
:where([data-script-page="locations"]) .lo-sug-name { font-size: 15px; font-weight: 600; color: var(--lo-ink); }
:where([data-script-page="locations"]) .lo-sug-name mark { background: rgba(168,85,247,0.3); color: var(--text-primary); }
:where([data-script-page="locations"]) .lo-sug-meta { margin-left: auto; font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--lo-mute); text-transform: uppercase; }
:where([data-script-page="locations"]) .lo-sug-hint { padding: 8px 12px; font-size: 13px; color: var(--lo-mute); }

/* region filters */
:where([data-script-page="locations"]) .lo-filterrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
:where([data-script-page="locations"]) .lo-pills { display: flex; flex-wrap: wrap; gap: 8px; }
:where([data-script-page="locations"]) .lo-pill {
  flex: none; min-height: 44px; padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--lo-line); color: var(--lo-dim);
  font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color var(--lo-t), border-color var(--lo-t), background var(--lo-t);
}
:where([data-script-page="locations"]) .lo-pill:hover { color: var(--text-primary); border-color: var(--lo-line-2); }
:where([data-script-page="locations"]) .lo-pill[aria-pressed="true"] { color: var(--text-primary); border-color: rgba(168,85,247,0.75); background: rgba(124,58,237,0.2); }
:where([data-script-page="locations"]) .lo-pill span { color: var(--lo-mute); }
:where([data-script-page="locations"]) .lo-pill[aria-pressed="true"] span { color: var(--accent-text); }
/* textual active state, not colour alone */
:where([data-script-page="locations"]) .lo-pill::before { content: ''; }
:where([data-script-page="locations"]) .lo-pill[aria-pressed="true"]::before { content: '✓'; font-size: 11px; color: var(--accent-text); }
:where([data-script-page="locations"]) .lo-filterstate { font-size: 14px; line-height: 1.5; color: var(--lo-mute); }
:where([data-script-page="locations"]) .lo-filterstate b { color: var(--lo-ink); font-weight: 600; }

/* grid */
:where([data-script-page="locations"]) .lo-grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 8px; }
@media (min-width: 480px) { :where([data-script-page="locations"]) .lo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 768px) { :where([data-script-page="locations"]) .lo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { :where([data-script-page="locations"]) .lo-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1320px) { :where([data-script-page="locations"]) .lo-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
:where([data-script-page="locations"]) .lo-tile {
  position: relative; display: flex; align-items: center; gap: 12px;
  text-align: left; min-height: 72px; padding: 16px;
  background: var(--lo-surface); border: 1px solid var(--lo-line); cursor: pointer; color: inherit;
  transition: background var(--lo-t), border-color var(--lo-t), transform var(--lo-t);
}
:where([data-script-page="locations"]) .lo-tile .lo-flag { flex: none; width: 30px; height: 21px; }
:where([data-script-page="locations"]) .lo-tile:hover { background: var(--surface); border-color: var(--lo-line-hi); }
:where([data-script-page="locations"]) .lo-tile:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; border-color: var(--lo-line-hi); }
:where([data-script-page="locations"]) .lo-tile[aria-expanded="true"] { background: rgba(124,58,237,0.16); border-color: rgba(168,85,247,0.75); }
:where([data-script-page="locations"]) .lo-tile-txt { min-width: 0; flex: 1; }
:where([data-script-page="locations"]) .lo-tile-name { display: block; font-size: 15px; font-weight: 600; color: var(--lo-ink); line-height: 1.35; overflow-wrap: break-word; }
:where([data-script-page="locations"]) .lo-tile-name mark { background: rgba(168,85,247,0.3); color: var(--text-primary); }
:where([data-script-page="locations"]) .lo-tile-iso { display: block; font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--lo-mute); margin-top: 4px; }
:where([data-script-page="locations"]) .lo-tile-more {
  flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--lo-mute);
  font-family: var(--lo-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; transition: opacity var(--lo-t), color var(--lo-t);
}
:where([data-script-page="locations"]) .lo-tile:hover .lo-tile-more, :where([data-script-page="locations"]) .lo-tile:focus-visible .lo-tile-more, :where([data-script-page="locations"]) .lo-tile[aria-expanded="true"] .lo-tile-more { opacity: 1; color: var(--accent-text); }
@media (hover: none) { :where([data-script-page="locations"]) .lo-tile-more { opacity: 1; } }
:where([data-script-page="locations"]) .lo-tile.is-out { display: none; }

:where([data-script-page="locations"]) .lo-empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--lo-line-2); }
:where([data-script-page="locations"]) .lo-empty h3 { font-family: var(--font-space-grotesk), sans-serif; font-weight: 700; font-size: 20px; color: var(--lo-ink); margin-bottom: 8px; }
:where([data-script-page="locations"]) .lo-empty p { margin-bottom: 24px; font-size: 16px; color: var(--lo-dim); }
:where([data-script-page="locations"]) .lo-empty-fix { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
:where([data-script-page="locations"]) .lo-didyou {
  min-height: 44px; padding: 8px 16px; cursor: pointer; background: rgba(124,58,237,0.16);
  border: 1px solid rgba(168,85,247,0.5); color: var(--text-primary); font-size: 14px; font-weight: 600;
  transition: background var(--lo-t);
}
:where([data-script-page="locations"]) .lo-didyou:hover { background: rgba(124,58,237,0.28); }
:where([data-script-page="locations"]) .lo-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; font-size: 14px; line-height: 1.6; color: var(--lo-mute); }

/* =====================================================================
   DETAIL DRAWER
===================================================================== */
:where([data-script-page="locations"]) .lo-scrim {
  position: fixed; inset: var(--lo-hdr-h, 67px) 0 0; z-index: 110; background: rgba(var(--scrim-rgb),0.6);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--lo-t), visibility var(--lo-t);
}
:where([data-script-page="locations"]) .lo-scrim.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
:where([data-script-page="locations"]) .lo-panel {
  position: fixed; z-index: 115; top: var(--lo-hdr-h, 67px); right: 0; bottom: 0;
  width: min(420px, 100vw); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface-sunken); border-left: 1px solid rgba(168,85,247,0.28); padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  transform: translate3d(24px,0,0); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--lo-t), transform var(--lo-t), visibility var(--lo-t);
  box-shadow: -24px 0 64px -32px var(--shadow-strong);
}
:where([data-script-page="locations"]) .lo-panel.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
:where([data-script-page="locations"]) .lo-panel-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
:where([data-script-page="locations"]) .lo-panel-top h3 { font-family: var(--font-space-grotesk), sans-serif; font-weight: 700; font-size: 22px; color: var(--text-primary); line-height: 1.2; }
:where([data-script-page="locations"]) .lo-panel-top p { font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent-text); margin-top: 8px; }
:where([data-script-page="locations"]) .lo-panel-close {
  margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: none; border: 1px solid var(--lo-line); color: var(--lo-dim); cursor: pointer;
  transition: color var(--lo-t), border-color var(--lo-t);
}
:where([data-script-page="locations"]) .lo-panel-close:hover { color: var(--text-primary); border-color: var(--lo-line-2); }
:where([data-script-page="locations"]) .lo-panel-sec { display: block; font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lo-mute); margin-bottom: 8px; }
:where([data-script-page="locations"]) .lo-panel-rows { display: grid; gap: 8px; margin-bottom: 24px; }
:where([data-script-page="locations"]) .lo-panel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px;
  background: var(--w-020); border: 1px solid var(--lo-line);
  font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lo-dim);
}

/* availability chip — glyph + text, never colour alone */
:where([data-script-page="locations"]) .lo-av {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--lo-line); padding: 4px 8px; color: var(--lo-mute); background: var(--surface-sunken);
}
:where([data-script-page="locations"]) .lo-av i {
  width: 14px; height: 14px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid currentColor; font-style: normal; font-size: 9px; line-height: 1;
}
:where([data-script-page="locations"]) .lo-av--yes { color: color-mix(in oklab, var(--lo-lime) var(--tone-mix), var(--tone-ink)); border-color: rgba(201,247,138,0.35); }
:where([data-script-page="locations"]) .lo-av--ltd { color: var(--amber-text); border-color: rgba(236,215,154,0.32); }
:where([data-script-page="locations"]) .lo-av--no { color: var(--text-secondary); border-color: var(--lo-line); }

/* targeting builder */
:where([data-script-page="locations"]) .lo-panel-targeting { margin-bottom: 24px; }
:where([data-script-page="locations"]) .lo-tgt-fields { display: grid; gap: 16px; }
:where([data-script-page="locations"]) .lo-tgt-field { display: grid; gap: 8px; }
:where([data-script-page="locations"]) .lo-tgt-field label { font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lo-mute); line-height: 1.5; }
:where([data-script-page="locations"]) .lo-tgt-field input {
  min-height: 48px; padding: 0 16px; background: var(--w-030);
  border: 1px solid var(--lo-line-2); color: var(--lo-ink); font-family: var(--font-space-grotesk), sans-serif; font-size: 15px;
  transition: border-color var(--lo-t), background var(--lo-t);
}
:where([data-script-page="locations"]) .lo-tgt-field input::placeholder { color: var(--text-muted); }
:where([data-script-page="locations"]) .lo-tgt-field input:focus { outline: 2px solid #c4b5fd; outline-offset: 2px; border-color: rgba(168,85,247,0.7); background: rgba(168,85,247,0.06); }
:where([data-script-page="locations"]) .lo-tgt-field input:disabled { opacity: 0.5; cursor: not-allowed; }
:where([data-script-page="locations"]) .lo-tgt-field.is-locked label { color: var(--text-muted); }
:where([data-script-page="locations"]) .lo-panel-coderow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
:where([data-script-page="locations"]) .lo-panel-copy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lo-dim); background: var(--w-030); border: 1px solid var(--lo-line-2); cursor: pointer;
  transition: color var(--lo-t), border-color var(--lo-t), background var(--lo-t);
}
:where([data-script-page="locations"]) .lo-panel-copy:hover { color: var(--text-primary); border-color: var(--lo-line-hi); background: rgba(168,85,247,0.1); }
:where([data-script-page="locations"]) .lo-panel-copy.is-copied { color: color-mix(in oklab, var(--lo-lime) var(--tone-mix), var(--tone-ink)); border-color: rgba(201,247,138,0.4); }
:where([data-script-page="locations"]) .lo-panel-code {
  display: block; font-family: var(--lo-mono); font-size: 13px; line-height: 1.7; color: var(--text-soft);
  background: var(--w-030); border: 1px solid var(--lo-line); padding: 16px;
  overflow-x: auto; margin-bottom: 16px; white-space: pre;
}
:where([data-script-page="locations"]) .lo-panel-code b { color: var(--accent-text); font-weight: 700; }
:where([data-script-page="locations"]) .lo-panel-foot { font-size: 14px; line-height: 1.65; color: var(--lo-mute); margin-bottom: 24px; }
:where([data-script-page="locations"]) .lo-panel-cta { display: grid; gap: 8px; }
:where([data-script-page="locations"]) .lo-panel-cta .lx-btn { min-height: 48px; font-size: 14px; }

/* ---------------- targeting continuous path ---------------- */
:where([data-script-page="locations"]) .lo-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--lo-mono); font-size: clamp(14px,2vw,20px); letter-spacing: 0.1em; color: var(--text-primary); text-transform: uppercase; line-height: 1.5; }
:where([data-script-page="locations"]) .lo-chain span { color: var(--accent-text); }
:where([data-script-page="locations"]) .lo-path { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); position: relative; margin-top: 40px; border-top: 1px solid var(--lo-line); }
:where([data-script-page="locations"]) .lo-path::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, #7c3aed, #c4b5fd); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--lo-ease); }
:where([data-script-page="locations"]) .lo-path.is-in::before { transform: scaleX(1); }
:where([data-script-page="locations"]) .lo-node2 { position: relative; padding: 32px 24px 8px 0; }
:where([data-script-page="locations"]) .lo-node2::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: #7c3aed; }
:where([data-script-page="locations"]) .lo-node2 h3 { font-family: var(--lo-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--text-primary); text-transform: uppercase; margin-bottom: 8px; }
:where([data-script-page="locations"]) .lo-node2 p { font-size: 15px; line-height: 1.65; color: var(--lo-dim); max-width: 32ch; }

/* ---------------- regional overview ---------------- */
:where([data-script-page="locations"]) .lo-regions { display: grid; border-top: 1px solid var(--lo-line); margin-top: 32px; }
:where([data-script-page="locations"]) .lo-region { display: grid; grid-template-columns: minmax(140px,1.1fr) minmax(0,2.6fr) auto; gap: clamp(16px,3vw,32px); align-items: center; padding: 24px 0; border-bottom: 1px solid var(--lo-line); }
:where([data-script-page="locations"]) .lo-region-name { font-family: var(--font-space-grotesk), sans-serif; font-weight: 600; font-size: clamp(16px,1.8vw,19px); color: var(--lo-ink); }
:where([data-script-page="locations"]) .lo-region-bar { position: relative; height: 1px; background: var(--w-080); }
:where([data-script-page="locations"]) .lo-region-bar i { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0); background: linear-gradient(90deg, #7c3aed, #c4b5fd); transition: transform .8s var(--lo-ease); }
:where([data-script-page="locations"]) .lo-region.is-in .lo-region-bar i { transform: scaleX(var(--w,0)); }
:where([data-script-page="locations"]) .lo-region-flags { display: flex; gap: 8px; }
:where([data-script-page="locations"]) .lo-region-num { font-family: var(--font-space-grotesk), sans-serif; font-weight: 700; font-size: clamp(22px,3vw,32px); letter-spacing: -0.03em; color: var(--text-primary); min-width: 64px; text-align: right; }
:where([data-script-page="locations"]) .lo-region-tot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 16px; font-family: var(--lo-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lo-mute); }

/* ---------------- final CTA ---------------- */
:where([data-script-page="locations"]) .lo-final { text-align: center; }
:where([data-script-page="locations"]) .lo-final .lx-h2 { max-width: 620px; margin: 0 auto 16px; }
:where([data-script-page="locations"]) .lo-final .lx-lede { max-width: 56ch; margin: 0 auto 32px; }
:where([data-script-page="locations"]) .lo-next {
  list-style: none; margin: 0 auto 32px; padding: 0; max-width: 960px; text-align: left;
  display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%,260px),1fr));
}
:where([data-script-page="locations"]) .lo-next li { background: var(--lo-surface); border: 1px solid var(--lo-line); padding: 24px; display: grid; gap: 8px; align-content: start; }
:where([data-script-page="locations"]) .lo-next-step { font-family: var(--lo-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
:where([data-script-page="locations"]) .lo-next h3 { font-family: var(--font-space-grotesk), sans-serif; font-weight: 600; font-size: 17px; color: var(--lo-ink); }
:where([data-script-page="locations"]) .lo-next p { font-size: 14px; line-height: 1.6; color: var(--lo-mute); }
:where([data-script-page="locations"]) .lo-next a { color: var(--accent-text); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
:where([data-script-page="locations"]) .lo-next a:hover { color: var(--text-primary); }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  :where([data-script-page="locations"]) .sw-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  :where([data-script-page="locations"]) .sw-copy { max-width: none; }
  :where([data-script-page="locations"]) .sw-copy::before { inset: -24px -24px -16px -24px; }
  :where([data-script-page="locations"]) .sw-scanner { justify-self: stretch; max-width: 520px; }
}
@media (max-width: 900px) {
  :where([data-script-page="locations"]) .lo-path { grid-template-columns: repeat(2, minmax(0,1fr)); }
  :where([data-script-page="locations"]) .lo-atlas-head { align-items: flex-start; }
}
@media (max-width: 720px) {
  :where([data-script-page="locations"]) .lo-region { grid-template-columns: 1fr auto; }
  :where([data-script-page="locations"]) .lo-region-bar { grid-column: 1 / -1; order: 3; }
  :where([data-script-page="locations"]) .lo-region-flags { display: none; }
  :where([data-script-page="locations"]) .lo-path { grid-template-columns: 1fr; }
  :where([data-script-page="locations"]) .lo-node2 { padding-right: 0; }
  :where([data-script-page="locations"]) .lo-panel { width: 100vw; border-left: 0; }
  :where([data-script-page="locations"]) .sw-rail:nth-child(3) { display: none; }
  :where([data-script-page="locations"]) .sw-rails { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
}
@media (max-width: 560px) {
  :where([data-script-page="locations"]) .sw-hero-inner { padding-top: 8px; }
  :where([data-script-page="locations"]) .sw-copy .lx-h1 { margin-bottom: 16px; }
  :where([data-script-page="locations"]) .sw-clarify { margin-bottom: 24px; }
  :where([data-script-page="locations"]) .sw-btn-row .lx-btn { flex: 1 1 100%; }
  :where([data-script-page="locations"]) .lo-searchrow { min-height: 56px; padding-left: 12px; }
  :where([data-script-page="locations"]) .lo-controls { top: 64px; }
  :where([data-script-page="locations"]) .sw-rail:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :where([data-script-page="locations"]) .lo-rev { opacity: 1; transform: none; transition: none; }
  :where([data-script-page="locations"]) .sw-track--ltr, :where([data-script-page="locations"]) .sw-track--rtl { animation: none !important; }
  :where([data-script-page="locations"]) .sw-pulse.is-run { animation: none; }
  :where([data-script-page="locations"]) .lo-spinner { animation: none; }
  :where([data-script-page="locations"]) .sw-hero::before, :where([data-script-page="locations"]) .sw-sc-flag, :where([data-script-page="locations"]) .lo-region-bar i, :where([data-script-page="locations"]) .lo-path::before, :where([data-script-page="locations"]) .lo-panel, :where([data-script-page="locations"]) .lo-scrim { transition: none; }
  :where([data-script-page="locations"]) .sw-tile:hover, :where([data-script-page="locations"]) .sw-tile:focus-visible { transform: none; }
}


html[data-lx-scrollbar] { background-color: #05050a; }
html[data-lx-scrollbar="light"] { background-color: #f7f8fc; }
html[data-lx-scrollbar]::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-lx-scrollbar]::-webkit-scrollbar-track { background: #05050a; }
html[data-lx-scrollbar]::-webkit-scrollbar-thumb { background: #1a1a26; border-radius: 6px; }
html[data-lx-scrollbar]::-webkit-scrollbar-thumb:hover { background: #3a3350; }
html[data-lx-scrollbar="light"]::-webkit-scrollbar-track { background: #eceef6; }
html[data-lx-scrollbar="light"]::-webkit-scrollbar-thumb { background: #c7cbdd; }
html[data-lx-scrollbar="light"]::-webkit-scrollbar-thumb:hover { background: #aab0c8; }