/* UniversoVet cosmic hero layer: approved 75/25 refinement. */
.hero-cosmic-enabled .hero {
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 24%, rgba(191, 242, 255, .46), transparent 29%),
        radial-gradient(circle at 91% 19%, rgba(217, 200, 255, .42), transparent 27%),
        linear-gradient(135deg, #f7fcff 0%, #fff 52%, #fbf8ff 100%);
}

.hero-cosmic-enabled .hero__content { z-index: 1; }
.hero-cosmic-enabled .hero__visual { isolation: isolate; }
.hero-cosmic-enabled .hero-clinic { z-index: 3; }
.hero-cosmic-enabled .hero-clinic__orbit,
.hero-cosmic-enabled .hero-clinic__star { display: none; }

.cosmic-field {
    position: absolute;
    z-index: 2;
    inset: -82px -104px -62px -116px;
    pointer-events: none;
}

.cosmic-orbits {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cosmic-orbit {
    vector-effect: non-scaling-stroke;
    stroke-width: 1;
    stroke-linecap: round;
}
.cosmic-orbit--aqua { stroke: rgba(32, 164, 157, .29); }
.cosmic-orbit--lilac { stroke: rgba(107, 53, 216, .20); }
.cosmic-orbit--blend { stroke: rgba(114, 151, 194, .18); }

.cosmic-constellation {
    position: absolute;
    overflow: visible;
}
.cosmic-constellation path {
    stroke: rgba(107, 53, 216, .20);
    stroke-width: .85;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.cosmic-constellation circle { fill: rgba(107, 53, 216, .38); }
.cosmic-constellation--north { width: 112px; right: 5%; top: 7%; }
.cosmic-constellation--west { width: 94px; left: 1%; bottom: 13%; }
.cosmic-constellation--west path { stroke: rgba(32, 164, 157, .21); }
.cosmic-constellation--west circle { fill: rgba(32, 164, 157, .42); }

.cosmic-star {
    position: absolute;
    width: 8px;
    height: 8px;
    color: rgba(107, 53, 216, .42);
}
.cosmic-star::before,
.cosmic-star::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    background: currentColor;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}
.cosmic-star::before { width: 1px; height: 100%; }
.cosmic-star::after { width: 100%; height: 1px; }
.cosmic-star--one { right: 13%; top: 25%; width: 11px; height: 11px; color: rgba(32, 164, 157, .48); }
.cosmic-star--two { right: -1%; bottom: 27%; width: 6px; height: 6px; }
.cosmic-star--three { left: 7%; top: 31%; width: 5px; height: 5px; color: rgba(32, 164, 157, .38); }
.cosmic-star--four { left: 15%; bottom: 4%; width: 9px; height: 9px; }
.cosmic-star--five { right: 27%; bottom: 1%; width: 4px; height: 4px; color: rgba(32, 164, 157, .46); }

@media (max-width: 1040px) {
    .cosmic-field { inset: -68px -86px -48px; }
    .cosmic-constellation--west { left: 5%; }
}

@media (max-width: 620px) {
    .cosmic-field { inset: -36px -28px -28px; }
    .cosmic-orbit--lilac { opacity: .78; }
    .cosmic-orbit--blend,
    .cosmic-constellation--west,
    .cosmic-star--two,
    .cosmic-star--three,
    .cosmic-star--five { display: none; }
    .cosmic-constellation--north { width: 76px; right: 4%; top: 8%; }
    .cosmic-star--one { right: 18%; top: 29%; width: 8px; height: 8px; }
    .cosmic-star--four { left: 8%; bottom: 3%; width: 6px; height: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .cosmic-orbit,
    .cosmic-constellation,
    .cosmic-star { opacity: 1 !important; transform: none !important; }
}
