/* Orbit Fixer — Phase 31B-23
   Progressive presentation enhancement only.
   No route, form, or search behavior changes.
*/

:root {
    --of-burgundy: #491D32;
    --of-rose: #8B3D57;
    --of-gold: #D5A17D;
    --of-champagne: #F4D8B9;
    --of-cream: #FFF9F3;
}

/* Consistent keyboard accessibility */
.search-page a:focus-visible,
.orbit-directory-detail a:focus-visible,
.orbit-result-card a:focus-visible,
.of-discover a:focus-visible {
    outline: 3px solid var(--of-rose);
    outline-offset: 3px;
}

/* Search result cards */
.orbit-result-card {
    border-radius: 16px;
    border: 1px solid #eadde3;
    background: #fff;
    box-shadow: 0 4px 18px rgba(73,29,50,.055);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.orbit-result-card:hover {
    border-color: var(--of-gold);
    box-shadow: 0 12px 28px rgba(73,29,50,.10);
}

.orbit-result-card h3 a {
    color: var(--of-burgundy);
}

.orbit-result-card__action {
    color: var(--of-burgundy);
    font-weight: 700;
}

/* Business detail sidebar */
.orbit-detail-sidebar {
    border-radius: 16px;
    overflow-wrap: anywhere;
}

.orbit-detail-sidebar a {
    overflow-wrap: anywhere;
}

/* Responsive improvements */
@media (max-width: 767px) {
    .orbit-result-card {
        border-radius: 12px;
    }

    .orbit-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .orbit-detail-main,
    .orbit-detail-sidebar {
        min-width: 0;
    }

    .search-page input,
    .search-page button {
        max-width: 100%;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .orbit-result-card {
        transition: none;
    }
}
