/* Connections map (brief 2026-11-30, revision 3). An illustration, not data.
   Every selector sits under .lmc. The band is always night. */
.lmc {
  --lmc-night: oklch(18% 0.045 255);
  --lmc-land: oklch(23% 0.05 255);
  --lmc-plate: oklch(97% 0.012 80);
  --lmc-terra: oklch(66% 0.15 40);
  --lmc-leaf: oklch(70% 0.13 150);
  --lmc-amber: oklch(80% 0.12 70);
  --lmc-mist: oklch(72% 0.03 250);
  background: radial-gradient(ellipse 70% 60% at 65% 55%, var(--lmc-land), transparent 70%), var(--lmc-night);
  color: var(--lmc-plate);
  color-scheme: dark;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 56px 16px;
  overflow-wrap: anywhere;
}
.lmc[hidden], .lmc [hidden] { display: none !important; }
.lmc *, .lmc *::before, .lmc *::after { box-sizing: border-box; }
.lmc :focus-visible { outline: 2px solid var(--lmc-terra); outline-offset: 3px; }
.lmc-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 28px; }
.lmc-inner > * { min-width: 0; }
.lmc-title { font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; font-size: clamp(28px, 7vw, 44px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 14px; }
.lmc-sub { margin: 0 0 22px; color: var(--lmc-mist); font-size: 17px; line-height: 1.55; max-width: 34em; }
.lmc-actions { display: grid; gap: 10px; justify-items: start; }
.lmc-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; font-size: 16px; color: var(--lmc-night); background: var(--lmc-terra); text-decoration: none; }
.lmc-terms { margin: 0; color: var(--lmc-mist); font-size: 14px; }
.lmc-figure { margin: 0; display: grid; gap: 14px; }
.lmc-mapbox { position: relative; width: 100%; aspect-ratio: 975 / 610; overflow: hidden; border-radius: 16px; background: var(--lmc-night); }
.lmc-mapbox[data-view="phone"] { aspect-ratio: 400 / 460; }
.lmc-canvas { display: block; width: 100%; height: 100%; cursor: pointer; touch-action: manipulation; }
.lmc-hint { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; color: var(--lmc-plate); font-size: 14px; pointer-events: none; text-shadow: 0 1px 8px var(--lmc-night); }
.lmc-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.lmc-field { display: grid; gap: 6px; flex: 1 1 220px; }
.lmc-field-label { color: var(--lmc-mist); font-size: 14px; }
.lmc-select, .lmc-motion, .lmc-reset { font: inherit; font-size: 15px; color: var(--lmc-plate); background: var(--lmc-land); border: 1px solid color-mix(in oklab, var(--lmc-mist) 35%, transparent); border-radius: 10px; min-height: 44px; padding: 10px 14px; }
.lmc-motion, .lmc-reset { cursor: pointer; background: transparent; }
.lmc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lmc-result { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: color-mix(in oklab, var(--lmc-land) 85%, var(--lmc-terra)); }
.lmc-result-title { margin: 0; font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; font-size: 18px; }
.lmc-result-text { margin: 0; color: var(--lmc-mist); font-size: 15px; line-height: 1.5; }
.lmc-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lmc-foot { display: grid; gap: 10px; color: var(--lmc-mist); font-size: 13px; }
.lmc-caption { margin: 0; }
.lmc-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lmc-legend li { display: flex; align-items: center; gap: 8px; }
.lmc-sw { display: inline-block; flex: none; }
.lmc-sw--rest { width: 10px; height: 10px; border-radius: 50%; background: var(--lmc-terra); }
.lmc-sw--office { width: 8px; height: 8px; border-radius: 50%; background: var(--lmc-plate); }
.lmc-sw--thread { width: 18px; height: 2px; border-radius: 2px; background: var(--lmc-amber); }
@media (max-width: 699px) {
  .lmc-mapbox { width: calc(100% + 32px); margin-inline: -16px; border-radius: 0; }
}
@media (min-width: 900px) {
  .lmc { padding: 96px clamp(24px, 5vw, 80px); }
}
/* Two columns only once the map column stays wider than the engine's 520px
   phone crop; at 900 to 1023 the side-by-side map flipped to the phone view. */
@media (min-width: 1024px) {
  .lmc-inner { grid-template-columns: 4fr 8fr; align-items: center; gap: 48px; }
}
@media (min-width: 1600px) {
  .lmc-inner { max-width: 1440px; }
}
/* Short screens (a phone on its side): shrink the map so all of it fits
   on screen at once, centered, instead of running past the bottom edge. */
@media (max-height: 560px) and (orientation: landscape) {
  .lmc { padding-block: 32px; }
  .lmc-mapbox {
    width: min(100%, calc((100vh - 40px) * 975 / 610));
    width: min(100%, calc((100svh - 40px) * 975 / 610));
    margin-inline: auto;
    border-radius: 16px;
  }
  .lmc-mapbox[data-view="phone"] {
    width: min(100%, calc((100vh - 40px) * 400 / 460));
    width: min(100%, calc((100svh - 40px) * 400 / 460));
  }
}
@media (prefers-reduced-motion: reduce) {
  .lmc *, .lmc *::before, .lmc *::after { animation: none !important; transition: none !important; }
}
