/* Self-contained hero styles; loaded after the compiled theme stylesheet. */
#welcome {
    isolation: isolate;
    overflow: hidden;
}

#welcome #welcome-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    text-align: left;
    background: #eef1f0;
    opacity: 0;
    transition: opacity 800ms ease;
    pointer-events: none;
}

#welcome.map-ready #welcome-map { opacity: 1; }
#welcome::before { z-index: 1; pointer-events: none; }
#welcome.map-ready::before { background: transparent; }
#welcome > .welcome-content { z-index: 2; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }

/* Wash out the streets without muting the coloured markers. */
#welcome-map .leaflet-tile-pane {
    filter: grayscale(1) brightness(.48);
    opacity: 0.6
}

#welcome-map .welcome-marker { background: none; border: 0; }
#welcome-map .welcome-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dot-colour);
    opacity: .85;
    animation: welcome-dot-arrive 700ms cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: var(--dot-delay);
}

@keyframes welcome-dot-arrive {
    from { opacity: 0; transform: scale(.15); }
    to { opacity: .85; transform: scale(1); }
}

#welcome .welcome-map-attribution {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 4px 8px;
    background: rgba(255, 255, 255, .94);
    color: #333;
    font: 11px/1.5 Arial, sans-serif;
}
#welcome .welcome-map-attribution a { color: #24566b; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    #welcome #welcome-map { transition: none; }
    #welcome-map .welcome-dot { animation: none; }
}
