/* Final colour and readability pass for the interactive Berlin district explorer. */
html[data-color-theme="legacy"] body.locations-hub .loc-map-district {
  fill: #6f47ff !important;
  stroke: #a58cff !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-map-district:hover,
html[data-color-theme="legacy"] body.locations-hub .loc-map-district:focus,
html[data-color-theme="legacy"] body.locations-hub .loc-map-district.is-active {
  fill: #d9ceff !important;
  stroke: #b8a4ff !important;
  filter: drop-shadow(0 0 13px rgba(111, 71, 255, .34)) !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-map-hint,
html[data-color-theme="legacy"] body.locations-hub .loc-localities span,
html[data-color-theme="legacy"] body.locations-hub .loc-localities a {
  background: #d8f8e8 !important;
  border-color: #8eddb8 !important;
  color: #111 !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-map-hint {
  font-weight: 600;
}

html[data-color-theme="legacy"] body.locations-hub .loc-stage-copy {
  min-width: 0;
}

/* Section transitions stay clean; dark separator rules do not belong to the light theme. */
html[data-color-theme="legacy"] body.locations-hub .loc-explorer,
html[data-color-theme="legacy"] body.locations-hub .loc-proof-areas {
  border-top: 0 !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-proof-areas h2 em {
  color: #6f47ff !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-proof-areas .loc-proof-intro {
  color: #17151b !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a,
html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:hover,
html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:focus-visible {
  background: #d9ceff !important;
  border-color: #b8a4ff !important;
  color: #17151b !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:hover,
html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:focus-visible {
  background: #cfc1ff !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid small {
  color: #17151b !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid strong {
  color: #6f47ff !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid span {
  color: #17151b !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-places button {
  background: #d8f8e8 !important;
  border-color: #8eddb8 !important;
  color: #17151b !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-places button:hover,
html[data-color-theme="legacy"] body.locations-hub .radius-places button.on,
html[data-color-theme="legacy"] body.locations-hub .radius-places button:focus-visible {
  background: #d9ceff !important;
  border-color: #b8a4ff !important;
  color: #17151b !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-places button i {
  background: #6f47ff !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-core small {
  font-size: .63rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-core > span {
  font-size: .6rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-route-label i {
  font-size: .69rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-route-label strong {
  font-size: .96rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-places button {
  font-size: .69rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-dossier {
  background: #d9ceff !important;
  background-image: none !important;
  border-color: #b8a4ff !important;
  color: #17151b !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-dossier-top {
  border-bottom-color: rgba(23, 21, 27, .22) !important;
  color: #17151b !important;
  font-size: .69rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-dossier-top strong,
html[data-color-theme="legacy"] body.locations-hub .radius-dossier h3 {
  color: #6f47ff !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-dossier h3 {
  max-width: 100%;
  font-size: clamp(1.95rem, 2.5vw, 2.4rem) !important;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

html[data-color-theme="legacy"] body.locations-hub .radius-dossier > p {
  color: #17151b !important;
  font-size: .72rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-status {
  background: #d8f8e8 !important;
  border-color: #8eddb8 !important;
  color: #17151b !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-status strong,
html[data-color-theme="legacy"] body.locations-hub .radius-status span {
  color: #17151b !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-status strong {
  font-size: .85rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-status span {
  font-size: .72rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-cta small {
  font-size: .63rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-cta strong {
  font-size: .89rem !important;
}

html[data-color-theme="legacy"] body.locations-hub .radius-cta,
html[data-color-theme="legacy"] body.locations-hub .radius-cta small,
html[data-color-theme="legacy"] body.locations-hub .radius-cta strong,
html[data-color-theme="legacy"] body.locations-hub .radius-cta i {
  color: #fff !important;
}

/* Standortseite: zusammenhaengende visuelle Leitidee "Berliner Einsatzkarte". */
html[data-color-theme="legacy"] body.locations-hub {
  --loc-purple: #6f47ff;
  --loc-lavender: #d9ceff;
  --loc-lavender-soft: #f6f3ff;
  --loc-mint: #d8f8e8;
  --loc-ink: #17151b;
}

html[data-color-theme="legacy"] body.locations-hub .loc-hero,
html[data-color-theme="legacy"] body.locations-hub .loc-explorer,
html[data-color-theme="legacy"] body.locations-hub .loc-proof-areas,
html[data-color-theme="legacy"] body.locations-hub .loc-radius {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

html[data-color-theme="legacy"] body.locations-hub .loc-hero > .wrap,
html[data-color-theme="legacy"] body.locations-hub .loc-explorer > .wrap,
html[data-color-theme="legacy"] body.locations-hub .loc-proof-areas > .wrap,
html[data-color-theme="legacy"] body.locations-hub .loc-radius > .wrap {
  position: relative;
  z-index: 2;
}

/* 01 — Berlin-Raster: Startpunkt und mobile Einsatzbereitschaft. */
html[data-color-theme="legacy"] body.locations-hub .loc-hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(111, 71, 255, .18) 0, rgba(111, 71, 255, .08) 18%, transparent 37%),
    radial-gradient(circle at 10% 84%, rgba(216, 248, 232, .9) 0, rgba(216, 248, 232, .36) 20%, transparent 39%),
    linear-gradient(124deg, #fff 0 43%, #f8f6ff 67%, #eee9ff 100%) !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-hero .loc-grid {
  opacity: .72 !important;
  background-image:
    linear-gradient(rgba(111, 71, 255, .085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 71, 255, .085) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  -webkit-mask-image: linear-gradient(108deg, #000 0 68%, transparent 97%);
  mask-image: linear-gradient(108deg, #000 0 68%, transparent 97%);
}

html[data-color-theme="legacy"] body.locations-hub .loc-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -8vw;
  top: 10%;
  width: min(42vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(111, 71, 255, .2);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(111, 71, 255, .045),
    0 0 0 116px rgba(111, 71, 255, .028);
  pointer-events: none;
}

html[data-color-theme="legacy"] body.locations-hub .loc-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 4%;
  right: 4%;
  top: 57%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(142, 221, 184, .7) 18%, rgba(111, 71, 255, .66) 68%, transparent);
  transform: rotate(-7deg);
  transform-origin: center;
  opacity: .68;
  pointer-events: none;
}

/* 02 — Bezirksatlas: Kartografie, Konturen und Auswahl. */
html[data-color-theme="legacy"] body.locations-hub .loc-explorer {
  background:
    radial-gradient(circle at 13% 19%, rgba(216, 248, 232, .92) 0, rgba(216, 248, 232, .28) 18%, transparent 34%),
    radial-gradient(circle at 88% 68%, rgba(217, 206, 255, .9) 0, rgba(217, 206, 255, .25) 25%, transparent 43%),
    repeating-linear-gradient(0deg, rgba(111, 71, 255, .042) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(111, 71, 255, .042) 0 1px, transparent 1px 64px),
    #f6f3ff !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-explorer::before {
  color: rgba(111, 71, 255, .042) !important;
  z-index: 0;
}

html[data-color-theme="legacy"] body.locations-hub .loc-explorer::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -11vw;
  bottom: 7%;
  width: min(38vw, 580px);
  aspect-ratio: 1;
  border: 1px solid rgba(111, 71, 255, .15);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, .32),
    0 0 0 84px rgba(111, 71, 255, .035);
  pointer-events: none;
}

/* 03 — Einsatzkorridor: belegte Gebiete als fuenf Stationen einer Route. */
html[data-color-theme="legacy"] body.locations-hub .loc-proof-areas {
  background:
    linear-gradient(114deg, transparent 0 57%, rgba(216, 248, 232, .55) 57% 69%, transparent 69%),
    radial-gradient(ellipse at 16% 18%, rgba(217, 206, 255, .68), transparent 31%),
    radial-gradient(ellipse at 84% 82%, rgba(111, 71, 255, .11), transparent 34%),
    linear-gradient(180deg, #fff 0, #fbfaff 48%, #f6f3ff 100%) !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-proof-areas::before {
  content: "EINSATZ";
  position: absolute;
  z-index: 0;
  right: -.04em;
  top: .12em;
  color: rgba(111, 71, 255, .038);
  font: 900 clamp(10rem, 24vw, 28rem)/.78 var(--f-d);
  letter-spacing: -.065em;
  pointer-events: none;
}

html[data-color-theme="legacy"] body.locations-hub .loc-proof-areas::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -4%;
  right: -4%;
  top: 61%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 71, 255, .26) 13%, rgba(111, 71, 255, .26) 87%, transparent);
  box-shadow: 0 42px 0 rgba(111, 71, 255, .09), 0 -42px 0 rgba(111, 71, 255, .09);
  transform: rotate(-5deg);
  pointer-events: none;
}

/* 04 — Umland-Radius: Routenringe statt einer weiteren flachen Farbfläche. */
html[data-color-theme="legacy"] body.locations-hub .loc-radius {
  background:
    radial-gradient(circle at 8% 45%, rgba(216, 248, 232, .95) 0, rgba(216, 248, 232, .28) 21%, transparent 38%),
    radial-gradient(circle at 82% 23%, rgba(217, 206, 255, .95) 0, rgba(217, 206, 255, .3) 26%, transparent 44%),
    repeating-linear-gradient(135deg, rgba(111, 71, 255, .035) 0 1px, transparent 1px 52px),
    #f6f3ff !important;
}

html[data-color-theme="legacy"] body.locations-hub .loc-radius::before {
  color: rgba(111, 71, 255, .04) !important;
  z-index: 0;
}

html[data-color-theme="legacy"] body.locations-hub .loc-radius::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -9vw;
  top: 12%;
  width: min(39vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(111, 71, 255, .18);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(111, 71, 255, .045),
    0 0 0 104px rgba(255, 255, 255, .38);
  pointer-events: none;
}

/* Der globale Abschluss bleibt ruhig, fuehrt die Standort-Farbwelt aber weiter. */
html[data-color-theme="legacy"] body.locations-hub .global-contact-final,
html[data-color-theme="legacy"] body.locations-hub .why-contact-final {
  background:
    radial-gradient(circle at 9% 80%, rgba(216, 248, 232, .62), transparent 25%),
    radial-gradient(circle at 91% 15%, rgba(217, 206, 255, .68), transparent 28%),
    #f6f3ff !important;
}

@media (max-width: 720px) {
  html[data-color-theme="legacy"] body.locations-hub .loc-hero .loc-grid {
    background-size: 34px 34px !important;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-explorer {
    background:
      radial-gradient(circle at 92% 14%, rgba(216, 248, 232, .82) 0, rgba(216, 248, 232, .22) 24%, transparent 43%),
      radial-gradient(circle at 4% 78%, rgba(217, 206, 255, .72) 0, rgba(217, 206, 255, .2) 27%, transparent 48%),
      linear-gradient(165deg, #fbfaff 0, #f6f3ff 54%, #fff 100%) !important;
    background-size: auto !important;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-hero::before {
    right: -42vw;
    top: 8%;
    width: 94vw;
    box-shadow:
      0 0 0 32px rgba(111, 71, 255, .04),
      0 0 0 64px rgba(111, 71, 255, .024);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-hero::after {
    left: -14%;
    right: -14%;
    top: 49%;
    opacity: .46;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-explorer::after {
    left: auto;
    right: -58vw;
    top: 17%;
    bottom: auto;
    width: 104vw;
    opacity: .58;
    box-shadow:
      0 0 0 28px rgba(255, 255, 255, .28),
      0 0 0 56px rgba(111, 71, 255, .03);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-areas::before {
    top: .28em;
    font-size: clamp(7rem, 39vw, 12rem);
    opacity: .75;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-areas::after {
    top: 54%;
    opacity: .7;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-radius::after {
    right: -58vw;
    top: 15%;
    width: 120vw;
    box-shadow:
      0 0 0 32px rgba(111, 71, 255, .04),
      0 0 0 64px rgba(255, 255, 255, .32);
  }

  /* Die Bezirkskarte ist mobil eine eigene Arbeitsflaeche, keine Miniatur. */
  html[data-color-theme="legacy"] body.locations-hub .loc-console {
    margin-right: -16px;
    margin-left: -16px;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-stage-map {
    min-height: 500px !important;
    padding: 70px 0 52px !important;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-stage-map > .loc-real-map {
    width: 126% !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-map-label {
    font-size: 14px !important;
    font-weight: 800 !important;
    stroke-width: 2.6px !important;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-map-hint {
    font-size: .58rem !important;
  }

  /* Mobile Einsatzakten: gestaffelt, raeumlich und klar als klickbare Ziele. */
  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid {
    position: relative;
    z-index: 1;
    gap: 24px;
    margin-top: 42px;
    padding: 8px 7px 18px 13px;
    counter-reset: loc-proof-card;
    perspective: 1000px;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 5px;
    top: 30px;
    bottom: 38px;
    width: 2px;
    background: linear-gradient(180deg, transparent, #6f47ff 9%, #8eddb8 50%, #6f47ff 91%, transparent);
    box-shadow: 0 0 18px rgba(111, 71, 255, .22);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a,
  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(4) {
    position: relative;
    isolation: isolate;
    min-height: 188px;
    padding: 27px 72px 24px 27px;
    gap: 10px;
    justify-content: flex-start;
    overflow: hidden;
    border: 1px solid rgba(111, 71, 255, .36) !important;
    border-radius: 28px 8px 28px 8px;
    background:
      radial-gradient(circle at 88% 17%, rgba(216, 248, 232, .94) 0 7%, rgba(216, 248, 232, .34) 8% 23%, transparent 38%),
      linear-gradient(138deg, rgba(255, 255, 255, .98), rgba(239, 234, 255, .96)) !important;
    box-shadow:
      0 22px 44px rgba(82, 57, 151, .13),
      0 6px 13px rgba(82, 57, 151, .08),
      inset 0 1px 0 rgba(255, 255, 255, .95);
    transform: perspective(1000px) rotateY(-3deg) rotateZ(-.65deg);
    transform-origin: center;
    counter-increment: loc-proof-card;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(even) {
    margin-left: 16px;
    border-radius: 8px 28px 8px 28px;
    background:
      radial-gradient(circle at 12% 18%, rgba(217, 206, 255, .94) 0 7%, rgba(217, 206, 255, .32) 8% 24%, transparent 39%),
      linear-gradient(138deg, rgba(246, 255, 251, .98), rgba(220, 248, 235, .92)) !important;
    transform: perspective(1000px) rotateY(3deg) rotateZ(.65deg);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a::before {
    content: "0" counter(loc-proof-card);
    position: absolute;
    z-index: -1;
    right: 18px;
    top: 7px;
    color: rgba(111, 71, 255, .12);
    font: 900 4.7rem/.9 var(--f-d);
    letter-spacing: -.08em;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a::after {
    content: "↗";
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #6f47ff;
    color: #fff;
    font: 700 1.05rem/1 var(--f-m);
    box-shadow: 0 9px 20px rgba(111, 71, 255, .28);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(even)::after {
    background: #d8f8e8;
    border: 1px solid #8eddb8;
    color: #17151b;
    box-shadow: 0 9px 20px rgba(93, 178, 137, .2);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid small {
    position: relative;
    z-index: 1;
    color: #17151b !important;
    font-size: .77rem !important;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid strong {
    position: relative;
    z-index: 1;
    color: #6f47ff !important;
    font-size: clamp(2.25rem, 11vw, 2.85rem) !important;
    line-height: .94;
    letter-spacing: -.04em;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid span {
    position: relative;
    z-index: 1;
    margin-top: auto;
    color: #17151b !important;
    font-size: .82rem !important;
    font-weight: 700;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:active,
  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:focus-visible {
    transform: perspective(1000px) rotateY(0) rotateZ(0) translateY(-4px);
    box-shadow:
      0 28px 50px rgba(82, 57, 151, .18),
      0 8px 16px rgba(82, 57, 151, .1),
      inset 0 1px 0 rgba(255, 255, 255, .95);
  }
}

@media (min-width: 701px) {
  /* Desktop Einsatzakten: editoriale 3+2 Galerie entlang einer Einsatzroute. */
  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    margin-top: 68px;
    padding: 24px 12px 38px;
    counter-reset: loc-proof-card;
    perspective: 1600px;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 4%;
    right: 4%;
    top: 47%;
    height: 112px;
    border-top: 1px solid rgba(111, 71, 255, .35);
    border-radius: 50%;
    transform: rotate(-4deg);
    box-shadow: 0 -9px 30px rgba(111, 71, 255, .06);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 7%;
    right: 7%;
    top: calc(47% - 6px);
    height: 13px;
    background:
      radial-gradient(circle, #6f47ff 0 3px, rgba(111, 71, 255, .16) 4px 7px, transparent 8px) 0 50% / 20% 13px repeat-x;
    transform: rotate(-4deg);
    opacity: .9;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a,
  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(4) {
    position: relative;
    isolation: isolate;
    grid-column: span 4;
    min-height: 270px;
    padding: 34px 88px 30px 34px;
    gap: 12px;
    justify-content: flex-start;
    overflow: hidden;
    border: 1px solid rgba(111, 71, 255, .34) !important;
    border-radius: 34px 10px 34px 10px;
    background:
      radial-gradient(circle at 88% 17%, rgba(216, 248, 232, .96) 0 7%, rgba(216, 248, 232, .32) 8% 25%, transparent 41%),
      linear-gradient(138deg, rgba(255, 255, 255, .99), rgba(238, 233, 255, .96)) !important;
    box-shadow:
      0 34px 72px rgba(76, 52, 142, .14),
      0 9px 22px rgba(76, 52, 142, .07),
      inset 0 1px 0 #fff;
    transform: perspective(1400px) rotateY(-3deg) rotateZ(-.55deg) translateY(7px);
    transform-origin: center;
    counter-increment: loc-proof-card;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(2),
  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(4) {
    border-radius: 10px 34px 10px 34px;
    background:
      radial-gradient(circle at 13% 18%, rgba(217, 206, 255, .96) 0 7%, rgba(217, 206, 255, .3) 8% 25%, transparent 41%),
      linear-gradient(138deg, rgba(247, 255, 251, .99), rgba(218, 248, 234, .94)) !important;
    transform: perspective(1400px) rotateY(3deg) rotateZ(.55deg) translateY(-5px);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(3) {
    transform: perspective(1400px) translateY(13px) scale(.985);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(4) {
    grid-column: 3 / span 4;
    min-height: 245px;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(5) {
    grid-column: 7 / span 4;
    min-height: 245px;
    transform: perspective(1400px) rotateY(-3deg) rotateZ(-.55deg) translateY(4px);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a::before {
    content: "0" counter(loc-proof-card);
    position: absolute;
    z-index: -1;
    right: 20px;
    top: 12px;
    color: rgba(111, 71, 255, .115);
    font: 900 clamp(5rem, 6vw, 7.4rem)/.84 var(--f-d);
    letter-spacing: -.09em;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a::after {
    content: "↗";
    position: absolute;
    right: 23px;
    bottom: 23px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #6f47ff;
    color: #fff;
    font: 700 1.05rem/1 var(--f-m);
    box-shadow: 0 12px 25px rgba(111, 71, 255, .3);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(2)::after,
  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(4)::after {
    background: #d8f8e8;
    border: 1px solid #8eddb8;
    color: #17151b;
    box-shadow: 0 12px 25px rgba(93, 178, 137, .22);
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid small {
    position: relative;
    z-index: 1;
    color: #17151b !important;
    font-size: .73rem !important;
    font-weight: 700;
    letter-spacing: .065em;
    text-transform: uppercase;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid strong {
    position: relative;
    z-index: 1;
    color: #6f47ff !important;
    font-size: clamp(2.75rem, 3.8vw, 4.25rem) !important;
    line-height: .9;
    letter-spacing: -.045em;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid span {
    position: relative;
    z-index: 1;
    margin-top: auto;
    color: #17151b !important;
    font-size: .78rem !important;
    font-weight: 700;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:hover,
  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:focus-visible {
    z-index: 3;
    border-color: #6f47ff !important;
    transform: perspective(1400px) rotateY(0) rotateZ(0) translateY(-12px) scale(1.018);
    box-shadow:
      0 44px 85px rgba(76, 52, 142, .2),
      0 12px 28px rgba(76, 52, 142, .11),
      inset 0 1px 0 #fff;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a,
  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(4) {
    grid-column: span 6;
    min-height: 235px;
    padding: 30px 76px 27px 30px;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid a:nth-child(5) {
    grid-column: 4 / span 6;
    min-height: 235px;
  }

  html[data-color-theme="legacy"] body.locations-hub .loc-proof-grid strong {
    font-size: clamp(2.5rem, 6vw, 3.7rem) !important;
  }
}
