body {
    -webkit-font-smoothing: antialiased;
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: #C9A84C;
    color: #1B2A4A;
    z-index: 100;
    border-radius: 4px;
}

.artisan-card:hover {
    transform: translateY(-2px);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sortable-ghost {
    opacity: 0.4;
}

.sortable-drag {
    opacity: 0.85;
}

.portfolio-sortable-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .portfolio-sortable-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.portfolio-sortable-item {
    overflow: hidden;
}

.portfolio-sortable-media {
    position: relative;
}

.portfolio-sortable-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

@media (min-width: 768px) {
    .portfolio-sortable-media {
        cursor: grab;
        -webkit-user-select: none;
        user-select: none;
    }

    .portfolio-sortable-media:active {
        cursor: grabbing;
    }
}

@media (max-width: 767px) {
    .portfolio-sortable-footer {
        flex-wrap: wrap;
    }

    .portfolio-reorder-controls {
        flex-basis: 100%;
        justify-content: center;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        margin-bottom: 0.25rem;
        border-bottom: 1px solid rgba(27, 42, 74, 0.08);
    }

    .portfolio-reorder-btn {
        width: 3.25rem;
        height: 3.25rem;
        min-width: 3.25rem;
        min-height: 3.25rem;
        font-size: 1.25rem;
    }
}

.portfolio-sortable-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
}

.portfolio-reorder-controls {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.portfolio-reorder-form {
    margin: 0;
}

.portfolio-reorder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid rgba(27, 42, 74, 0.2);
    border-radius: 0.25rem;
    background: #fff;
    color: rgba(27, 42, 74, 0.75);
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.portfolio-reorder-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.portfolio-reorder-btn:not(:disabled):active {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.6);
}

.portfolio-sortable-caption {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    color: rgba(27, 42, 74, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-delete-btn {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 0.75rem;
    padding: 0.5rem;
    cursor: pointer;
    touch-action: manipulation;
}

.portfolio-reorder-hint .hint-desktop {
    display: none;
}

.portfolio-reorder-hint .hint-mobile {
    display: inline;
}

@media (min-width: 768px) {
    .portfolio-reorder-hint .hint-mobile {
        display: none;
    }

    .portfolio-reorder-hint .hint-desktop {
        display: inline;
    }
}

#portfolio-sortable .sortable-fallback,
#portfolio-sortable .sortable-drag {
    opacity: 0.92;
    box-shadow: 0 8px 24px rgba(27, 42, 74, 0.22);
    z-index: 9999;
    touch-action: none;
}

.pwa-install-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.75rem;
    pointer-events: none;
}

.pwa-install-banner__inner {
    pointer-events: auto;
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    background: #1B2A4A;
    color: #fff;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    box-shadow: 0 8px 24px rgba(27, 42, 74, 0.25);
}

.pwa-install-banner__title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.125rem;
    color: #C9A84C;
    margin: 0 0 0.15rem;
}

.pwa-install-banner__text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.pwa-install-banner__actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
    align-items: center;
}

.pwa-install-banner__install,
.pwa-install-banner__dismiss {
    border: 0;
    border-radius: 0.25rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.pwa-install-banner__install {
    background: #C9A84C;
    color: #1B2A4A;
}

.pwa-install-banner__dismiss {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
    .pwa-install-banner {
        display: none;
    }
}

.us-map-widget {
    position: relative;
}

.us-map-frame {
    width: 100%;
    margin: 0 auto;
}

.us-map-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
}

@media (min-width: 768px) {
    .us-map-svg {
        max-height: 560px;
    }
}

.us-map-state {
    cursor: pointer;
    outline: none;
    color: transparent;
}

.us-map-state .us-map-path {
    transition: fill 0.15s ease, stroke 0.15s ease;
}

.us-map-labels {
    pointer-events: none;
}

.us-map-tooltip {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    background: #fff;
    color: #1b2a4a;
    font-size: 0.75rem;
    line-height: 1.3;
    padding: 0.4rem 0.6rem;
    border-radius: 0.25rem;
    border: 1px solid #c5cedd;
    box-shadow: 0 4px 12px rgba(27, 42, 74, 0.12);
    white-space: nowrap;
    transform: translate(-50%, -110%);
}

.us-map-tooltip.hidden {
    display: none;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu:not(.hidden) {
    display: block;
}

.showcase-body h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1B2A4A;
}

.showcase-body p {
    margin-bottom: 1rem;
}

.prose-navy a {
    color: #C9A84C;
}