/* Shared Agency Examples city switcher + cross-links (city pages + hub) */
@import url('/assets/fonts/csmbac-fonts.css?v=20260807-496');
@import url('./agency-tile-images.css?v=20260811');

html:has(.ae-city-switcher) {
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

html:has(.ae-city-switcher) body {
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

/* CSMBAC brand bar above city switcher (shared component via agency_examples_shared.mjs) */
.ae-site-header {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
}

/* Per-city theme tokens: --ae-brand-bg, --ae-brand-border, --ae-brand-sub, --ae-brand-morse */
.ae-site-brand {
  --ae-brand-bg: rgba(8, 10, 18, 0.97);
  --ae-brand-border: rgba(255, 255, 255, 0.08);
  --ae-brand-sub: rgba(255, 255, 255, 0.72);
  --ae-brand-morse: color-mix(in srgb, #818cf8 72%, rgba(255, 255, 255, 0.66));
  --ae-brand-logo-filter: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
  background: var(--ae-brand-bg);
  border-bottom: 1px solid var(--ae-brand-border);
}

.ae-site-brand a.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
  min-width: 0;
  max-width: min(100%, 20rem);
  text-decoration: none;
  overflow: visible;
  color: inherit;
}

.ae-site-brand a.logo:any-link,
.ae-site-brand a.logo:any-link:visited {
  text-decoration: none;
  color: inherit;
}

.ae-site-brand .logo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.ae-site-brand .site-logo__image--lockup {
  height: clamp(38px, 4.6vw, 46px);
  width: auto;
  max-width: min(46px, 13vw);
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: var(--ae-brand-logo-filter);
  transform-origin: left center;
  animation: aeSiteLogoIntro 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

@keyframes aeSiteLogoIntro {
  from {
    opacity: 0;
    transform: translateX(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ae-site-brand .logo-word--in-lockup {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Subtitle strap — matches homepage nav lockup (csmbac-nav.js drives Morse morph) */
.ae-site-brand a.logo .logo-copy .logo-sub,
.ae-site-brand a.logo .logo-sub.logo-sub--anim {
  display: block;
  box-sizing: border-box;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ae-brand-sub);
  font-weight: 500;
  white-space: nowrap;
  overflow: visible;
  opacity: 1;
}

.ae-site-brand .logo-sub__viewport {
  position: relative;
  display: block;
  height: 1.4em;
  line-height: 1.4em;
  overflow: hidden;
  margin: 0;
  max-width: 100%;
  width: fit-content;
}

.ae-site-brand .logo-sub__morse {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  width: max-content;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, 'Courier New', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ae-brand-morse);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  transform-origin: left center;
  transition: opacity 0.16s ease;
  z-index: 2;
}

.ae-site-brand .logo-sub__morse.is-visible {
  opacity: 1;
}

.ae-site-brand .logo-sub.is-revealing .logo-sub__morse {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ae-site-brand .logo-sub__chars {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

.ae-site-brand .logo-sub__char {
  display: inline-block;
  opacity: 0;
  transform: scale(1.45);
  transform-origin: center bottom;
}

.ae-site-brand .logo-sub__char.is-settled {
  opacity: 1;
  transform: scale(1);
}

.ae-site-brand .logo-sub__char.is-entering {
  animation: aeLogoSubCharPop 0.3s ease-out forwards;
}

@keyframes aeLogoSubCharPop {
  0% {
    opacity: 0;
    transform: scale(1.55);
    color: rgba(224, 231, 255, 1);
    text-shadow: 0 0 6px rgba(129, 140, 248, 0.95);
  }
  42% {
    opacity: 1;
    transform: scale(1.14);
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.9);
  }
  68% {
    transform: scale(0.97);
    filter: brightness(1.55);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
    text-shadow: none;
  }
}

.ae-site-brand .logo-sub__glow {
  position: absolute;
  top: 50%;
  width: 32%;
  height: 160%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  filter: blur(5px);
  z-index: 0;
  transition: opacity 0.2s ease;
}

.ae-site-brand .logo-sub__glow--left {
  left: -2%;
  background: radial-gradient(ellipse at left center, rgba(56, 189, 248, 0.55), transparent 72%);
}

.ae-site-brand .logo-sub__glow--right {
  right: -2%;
  background: radial-gradient(ellipse at right center, rgba(192, 132, 252, 0.55), transparent 72%);
}

.ae-site-brand .logo-sub.is-animating .logo-sub__glow--left,
.ae-site-brand .logo-sub.is-animating .logo-sub__glow--right {
  opacity: 1;
  animation: aeLogoSubGlowMeet 2.6s ease-in-out forwards;
}

@keyframes aeLogoSubGlowMeet {
  0% {
    transform: translateY(-50%) scaleX(0.25);
    opacity: 0.35;
  }
  45% {
    opacity: 1;
  }
  88% {
    transform: translateY(-50%) scaleX(1.05);
    opacity: 0.85;
  }
  100% {
    transform: translateY(-50%) scaleX(1);
    opacity: 0;
  }
}

.ae-site-brand .logo-sub__burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.35rem;
  height: 0.35rem;
  margin: -0.175rem 0 0 -0.175rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(129, 140, 248, 0.75) 22%,
    rgba(244, 114, 182, 0.45) 42%,
    transparent 68%
  );
  box-shadow:
    0 0 8px rgba(129, 140, 248, 0.85),
    0 0 14px rgba(56, 189, 248, 0.45);
}

.ae-site-brand .logo-sub__burst.is-active {
  animation: aeLogoSubCosmicBurst 0.52s ease-out forwards;
}

@keyframes aeLogoSubCosmicBurst {
  0% {
    opacity: 0;
    transform: scale(0.15);
  }
  28% {
    opacity: 1;
    transform: scale(2.8);
  }
  100% {
    opacity: 0;
    transform: scale(4.2);
  }
}

.ae-site-brand a.logo .logo-copy .logo-sub.logo-sub--morse .logo-sub__morse {
  text-shadow: 0 0 6px rgba(129, 140, 248, 0.45);
}

.ae-site-brand a.logo .logo-copy .logo-word {
  background-image:
    linear-gradient(
      115deg,
      transparent 42%,
      rgba(255, 255, 255, 0) 46%,
      rgba(255, 255, 255, 0.78) 50%,
      rgba(255, 255, 255, 0) 54%,
      transparent 58%
    ),
    linear-gradient(90deg, #818cf8, #c084fc, #f472b6, #fb923c, #34d399, #38bdf8, #818cf8);
  background-size: 240% 100%, 200% auto;
  background-repeat: no-repeat, repeat;
  background-position: 130% 0, 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    aeNavLogoWordIn 0.5s 0.1s both,
    aeNavLogoWordFlow 10s 0.6s linear infinite;
}

@keyframes aeNavLogoWordIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes aeNavLogoWordFlow {
  0% {
    background-position: 130% 0, 0% center;
  }
  62% {
    background-position: 130% 0, 248% center;
  }
  76% {
    background-position: -30% 0, 304% center;
  }
  100% {
    background-position: -30% 0, 400% center;
  }
}

/* Light backgrounds: hub, London, Paris, Sydney */
.ae-site-brand--hub,
.ae-site-header--hub .ae-site-brand {
  --ae-brand-bg: rgba(250, 248, 244, 0.99);
  --ae-brand-border: rgba(20, 24, 32, 0.1);
  --ae-brand-sub: rgba(30, 36, 48, 0.68);
  --ae-brand-morse: color-mix(in srgb, #4535ff 58%, #64748b);
}

.ae-site-brand--editorial,
.ae-site-header--editorial .ae-site-brand {
  --ae-brand-bg: rgba(245, 240, 232, 0.98);
  --ae-brand-border: rgba(26, 26, 26, 0.1);
  --ae-brand-sub: rgba(60, 56, 50, 0.78);
  --ae-brand-morse: color-mix(in srgb, #1e3a2f 45%, #64748b);
}

.ae-site-brand--paris,
.ae-site-header--paris .ae-site-brand {
  --ae-brand-bg: rgba(247, 243, 238, 0.99);
  --ae-brand-border: rgba(42, 38, 34, 0.1);
  --ae-brand-sub: rgba(72, 66, 60, 0.78);
  --ae-brand-morse: color-mix(in srgb, #6b1f2b 40%, #64748b);
}

.ae-site-brand--sydney,
.ae-site-header--sydney .ae-site-brand {
  --ae-brand-bg: rgba(248, 250, 252, 0.99);
  --ae-brand-border: rgba(15, 23, 42, 0.1);
  --ae-brand-sub: rgba(30, 41, 59, 0.72);
  --ae-brand-morse: color-mix(in srgb, #0073e6 52%, #64748b);
}

/* Dark backgrounds: NYC, Tokyo, Frankfurt */
.ae-site-brand--nyc,
.ae-site-header--nyc .ae-site-brand,
.nyc-top-chrome .ae-site-brand {
  --ae-brand-bg: rgba(10, 14, 26, 0.98);
  --ae-brand-border: rgba(0, 240, 255, 0.12);
  --ae-brand-sub: rgba(232, 234, 239, 0.78);
  --ae-brand-morse: color-mix(in srgb, #00f0ff 55%, rgba(232, 234, 239, 0.72));
  --ae-brand-logo-filter: brightness(1.08) contrast(1.04);
}

.ae-site-brand--tokyo,
.ae-site-header--tokyo .ae-site-brand {
  --ae-brand-bg: rgba(12, 14, 20, 0.98);
  --ae-brand-border: rgba(255, 255, 255, 0.08);
  --ae-brand-sub: rgba(240, 242, 248, 0.76);
  --ae-brand-morse: color-mix(in srgb, #818cf8 62%, rgba(240, 242, 248, 0.7));
  --ae-brand-logo-filter: brightness(1.06);
}

.ae-site-brand--frankfurt,
.ae-site-header--frankfurt .ae-site-brand {
  --ae-brand-bg: rgba(18, 22, 28, 0.98);
  --ae-brand-border: rgba(255, 255, 255, 0.08);
  --ae-brand-sub: rgba(236, 238, 244, 0.76);
  --ae-brand-morse: color-mix(in srgb, #38bdf8 55%, rgba(236, 238, 244, 0.7));
  --ae-brand-logo-filter: brightness(1.06);
}

@media (max-width: 480px) {
  .ae-site-brand {
    padding-block: 0.4rem;
  }

  .ae-site-brand a.logo {
    gap: 0.45rem;
    max-width: 100%;
  }

  .ae-site-brand .site-logo__image--lockup {
    height: 38px;
    max-width: 40px;
  }

  .ae-site-brand a.logo .logo-copy .logo-sub,
  .ae-site-brand a.logo .logo-sub.logo-sub--anim {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  .ae-site-brand .logo-sub__morse {
    font-size: 0.46rem;
  }
}

@media (max-width: 360px) {
  .ae-site-brand a.logo .logo-copy .logo-sub,
  .ae-site-brand a.logo .logo-sub.logo-sub--anim {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ae-site-brand .site-logo__image--lockup {
    animation: none;
  }

  .ae-site-brand a.logo .logo-copy .logo-word {
    animation: none;
    opacity: 1;
    transform: none;
    background-image: linear-gradient(90deg, #818cf8, #c084fc, #f472b6, #fb923c, #34d399, #38bdf8, #818cf8);
    background-size: 200% auto;
    background-position: 0% center;
  }

  .ae-site-brand .logo-sub__char.is-entering,
  .ae-site-brand .logo-sub.is-animating .logo-sub__glow--left,
  .ae-site-brand .logo-sub.is-animating .logo-sub__glow--right,
  .ae-site-brand .logo-sub__burst.is-active {
    animation: none;
  }
}

.ae-city-switcher {
  --ae-switcher-bg: rgba(8, 10, 18, 0.92);
  --ae-switcher-border: rgba(255, 255, 255, 0.1);
  --ae-switcher-text: #e8eaef;
  --ae-switcher-muted: #9aa3b5;
  --ae-switcher-active: #00f0ff;
  --ae-switcher-active-bg: rgba(0, 240, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--ae-switcher-border);
  background: var(--ae-switcher-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ae-city-switcher--editorial {
  --ae-switcher-bg: rgba(245, 240, 232, 0.96);
  --ae-switcher-border: rgba(26, 26, 26, 0.12);
  --ae-switcher-text: #1a1a1a;
  --ae-switcher-muted: #5c564e;
  --ae-switcher-active: #1e3a2f;
  --ae-switcher-active-bg: rgba(30, 58, 47, 0.1);
}

.ae-city-switcher--hub {
  --ae-switcher-bg: rgba(250, 248, 244, 0.97);
  --ae-switcher-border: rgba(20, 24, 32, 0.1);
  --ae-switcher-text: #141820;
  --ae-switcher-muted: #5a6270;
  --ae-switcher-active: #0d4f8b;
  --ae-switcher-active-bg: rgba(13, 79, 139, 0.1);
  position: relative;
}

.ae-city-switcher__hub {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ae-switcher-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.ae-city-switcher__hub:hover,
.ae-city-switcher__hub:focus-visible {
  color: var(--ae-switcher-text);
  border-bottom-color: currentColor;
  outline: none;
}

.ae-city-switcher__rail {
  display: flex;
  flex: 1 1 auto;
  gap: 0.35rem;
}

.ae-city-switcher__city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ae-switcher-muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.ae-city-switcher__city:hover,
.ae-city-switcher__city:focus-visible {
  color: var(--ae-switcher-text);
  background: rgba(127, 127, 127, 0.08);
  outline: none;
}

.ae-city-switcher__city.is-active,
.ae-city-switcher__city[aria-current='page'] {
  color: var(--ae-switcher-text);
  border-color: var(--ae-switcher-active);
  background: var(--ae-switcher-active-bg);
}

/* Beat city-page `body a:any-link` global link colour (higher specificity) */
.ae-city-switcher a:any-link,
.ae-city-switcher a:any-link:visited {
  text-decoration: none;
}

.ae-city-switcher__hub:any-link,
.ae-city-switcher__hub:any-link:visited {
  color: var(--ae-switcher-muted);
}

.ae-city-switcher__hub:any-link:hover,
.ae-city-switcher__hub:any-link:focus-visible {
  color: var(--ae-switcher-text);
}

.ae-city-switcher__city:any-link,
.ae-city-switcher__city:any-link:visited {
  color: var(--ae-switcher-muted);
}

.ae-city-switcher__city:any-link:hover,
.ae-city-switcher__city:any-link:focus-visible {
  color: var(--ae-switcher-text);
}

.ae-city-switcher__city.is-active:any-link,
.ae-city-switcher__city.is-active:any-link:visited,
.ae-city-switcher__city[aria-current='page']:any-link,
.ae-city-switcher__city[aria-current='page']:any-link:visited {
  color: var(--ae-switcher-text);
}

.ae-city-switcher__flag {
  font-size: 1rem;
  line-height: 1;
}

/* Mobile city rail toggle — compact bar + hamburger (city-switcher.js) */
.ae-city-switcher__bar {
  display: contents;
}

.ae-city-switcher__toggle {
  display: none;
}

.ae-hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 20px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ae-switcher-text);
}

.ae-hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.ae-city-switcher__toggle[aria-expanded='true'] .ae-hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ae-city-switcher__toggle[aria-expanded='true'] .ae-hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.ae-city-switcher__toggle[aria-expanded='true'] .ae-hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .ae-hamburger-icon span {
    transition: none;
  }
}

.ae-crosslinks {
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  max-width: 72rem;
}

.ae-crosslinks__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ae-crosslinks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
}

.ae-crosslink {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(127, 127, 127, 0.25);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.ae-crosslink:hover,
.ae-crosslink:focus-visible {
  border-color: currentColor;
  outline: none;
  transform: translateY(-1px);
}

.ae-crosslink__flag {
  font-size: 1.25rem;
  line-height: 1.2;
}

.ae-crosslink__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ae-crosslink__city {
  font-weight: 600;
  font-size: 0.95rem;
}

.ae-crosslink__desc {
  font-size: 0.8rem;
  opacity: 0.75;
}

.ae-crosslinks__hub {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.ae-crosslinks__hub a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* When a real portfolio image is present, never show pending chrome */
[class$='__img-wrap']:has([class$='__img']) {
  border: none;
  background: none;
  padding: 0;
  min-height: 0;
}

[class$='__img-wrap'].ae-art-pending:has([class$='__img']) .ae-art-pending__label,
[class$='__img-wrap'].ae-art-pending:has([class$='__img']) .ae-art-pending__brand,
[class$='__img-wrap'].ae-art-pending:has([class$='__img']) .ae-art-pending__path,
[class$='__img-wrap'].ae-art-pending:has([class$='__img']) .ae-brand-wordmark {
  display: none;
}

.ae-art-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 12rem;
  padding: 1.25rem;
  border: 1px dashed rgba(127, 127, 127, 0.45);
  background:
    linear-gradient(135deg, rgba(127, 127, 127, 0.06) 25%, transparent 25%) 0 0/12px 12px,
    linear-gradient(225deg, rgba(127, 127, 127, 0.06) 25%, transparent 25%) 0 0/12px 12px,
    rgba(127, 127, 127, 0.04);
  text-align: center;
}

.ae-art-pending__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.ae-art-pending__brand {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Legacy alias; prefer .ae-brand-wordmark on pending tiles */
.ae-art-pending .ae-brand-wordmark {
  font-size: inherit;
  font-weight: inherit;
}

.ae-art-pending__path {
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
  opacity: 0.55;
  word-break: break-all;
}

@media (max-width: 767px) {
  .ae-city-switcher {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.45rem;
    padding-inline: clamp(1rem, 3vw, 2rem);
  }

  .ae-city-switcher__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 44px;
  }

  .ae-city-switcher__hub {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 0;
  }

  .ae-city-switcher__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.65rem;
    border: 1px solid var(--ae-switcher-border);
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.06);
    color: var(--ae-switcher-text);
    cursor: pointer;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
  }

  .ae-city-switcher__toggle:focus-visible {
    outline: 2px solid var(--ae-switcher-active);
    outline-offset: 2px;
  }

  .ae-city-switcher__toggle-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ae-switcher-muted);
  }

  .ae-city-switcher.is-cities-open .ae-city-switcher__toggle {
    border-color: var(--ae-switcher-active);
    background: var(--ae-switcher-active-bg);
  }

  .ae-city-switcher:not(.is-cities-open) .ae-city-switcher__rail {
    display: none;
  }

  .ae-city-switcher.is-cities-open .ae-city-switcher__rail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    flex: none;
    overflow: visible;
    overscroll-behavior: auto;
    scroll-snap-type: none;
    mask-image: none;
    -webkit-mask-image: none;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0;
    padding-inline: 0;
    border-top: 1px solid var(--ae-switcher-border);
  }

  .ae-city-switcher__city {
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    min-height: 44px;
  }
}

@media (min-width: 768px) {
  .ae-city-switcher__rail {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
    flex-wrap: nowrap;
  }

  .ae-city-switcher__city {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* Development example badge — scroll fade (agency-examples/lib/dev-example-pill.js) */
.ae-dev-pill {
  opacity: 1;
  will-change: opacity;
}

.ae-dev-pill.is-pill-hidden {
  pointer-events: none;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ae-dev-pill {
    opacity: 1 !important;
    visibility: visible !important;
    will-change: auto;
  }

  .ae-crosslink {
    transition: none;
  }

  .ae-crosslink:hover,
  .ae-crosslink:focus-visible {
    transform: none;
  }
}
