:root {
    --font-body: 'Aptos', 'Segoe UI', sans-serif;
    --font-display: 'Baskerville', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    /* PRIMARY COLORS */
    --primary-color: #1B3F89; /* Refined sapphire */
    --primary-deep: #142F63;
    --primary-bright: #3562B2;
    --primary-glow: #8AADE4;
    --action-color: #E8891B;
    --action-hover: #C8A253;
    
    /* SECONDARY COLORS */
    --success-color: #1DB954; /* Emerald Green */
    --error-color: #D32F2F;   /* Deep Red */
    
    /* NEUTRALS */
    --bg-color: #F5F6F8;      /* Cool, quiet page canvas */
    --text-color: #1F2933;    /* Charcoal Black */
    --card-bg: #FFFFFF;       /* Pure White */
    --muted-color: #586574;
    --line-color: #DCE2E9;
    --surface-tint: #F0F3F7;
    
    /* Legacy/Mapped variables for compatibility */
    --accent-color: var(--action-color);
    --primary-gradient: linear-gradient(125deg, #F0A33A 0%, #E8891B 100%);
}

/* Reset & Safety Defaults */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.68;
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto !important; /* Ensure vertical scroll is always possible */
    position: relative;
    min-height: 100vh;
}

/* Ensure main content sits above potential background glitches */
main, section, .container, .footer {
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.vendor-calendar {
    max-width: 820px;
    margin-top: 1.25rem;
}

.vendor-calendar-toolbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.vendor-calendar-toolbar h4 {
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
}

.vendor-calendar-nav {
    width: 44px;
    height: 40px;
    padding: 0;
    font-size: 1.25rem;
}

.vendor-calendar-weekdays,
.vendor-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.vendor-calendar-weekdays {
    margin-bottom: 5px;
    color: #596773;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

.vendor-calendar-weekdays > div {
    padding: .45rem .15rem;
}

.vendor-calendar-day {
    min-width: 0;
    min-height: 74px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    padding: .45rem;
    border: 1px solid #d6dfe5;
    border-radius: 3px;
    background: #fff;
    color: var(--text-color);
    font: inherit;
    text-align: left;
}

button.vendor-calendar-day {
    cursor: pointer;
}

button.vendor-calendar-day:hover,
button.vendor-calendar-day:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

.vendor-calendar-day.is-empty {
    visibility: hidden;
}

.vendor-calendar-day.is-open {
    border-top: 4px solid #25834c;
    background: #f1f8f3;
}

.vendor-calendar-day.is-blocked {
    border-top: 4px solid #bb3d35;
    background: #fff1ef;
}

.vendor-calendar-day.is-weekly-closed,
.vendor-calendar-day.is-past {
    border-top: 4px solid #aab4bc;
    background: #f0f2f4;
    color: #65717a;
}

.vendor-calendar-day.is-reserved {
    border-top: 4px solid #c07b00;
    background: #fff7e5;
}

.vendor-calendar-date-number {
    font-weight: 700;
}

.vendor-calendar-day small {
    font-size: .7rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.vendor-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    margin-top: .85rem;
    color: #45525c;
    font-size: .82rem;
}

.vendor-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.legend-dot {
    width: 11px;
    height: 11px;
    display: inline-block;
    border-radius: 50%;
}

.legend-open { background: #25834c; }
.legend-blocked { background: #bb3d35; }
.legend-weekly { background: #aab4bc; }
.legend-reserved { background: #c07b00; }

.vendor-calendar-help {
    margin:.65rem 0 0;
    color:#596773;
    font-size:.88rem;
}

@media (max-width: 560px) {
    .vendor-calendar-weekdays,
    .vendor-calendar-grid {
        gap: 3px;
    }

    .vendor-calendar-day {
        min-height: 54px;
        padding: .3rem;
    }

    .vendor-calendar-day small {
        font-size: .62rem;
    }
}

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 540px;
    overflow: hidden;
    background: linear-gradient(135deg, #1B3F89 0%, #142F63 100%);
    color: white;
    padding: 9rem 0 7rem; /* Top padding accounts for fixed header */
    text-align: left;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-slides,
.hero-slides::after,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slides {
    z-index: -1;
}

.hero-slides::after {
    content: "";
    background: linear-gradient(100deg, rgba(17, 39, 88, .78) 0%, rgba(28, 57, 112, .56) 46%, rgba(25, 49, 96, .24) 100%);
}

.hero-slide {
    opacity: 0;
    transform: perspective(1400px) scale(1.04);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -4%;
    background-image: var(--hero-image);
    background-position: center 44%;
    background-size: cover;
    filter: saturate(1.08) contrast(1.025);
    transform: scale(1.04);
}

.hero-slide.is-active::before,
.hero-slide.is-exiting::before {
    animation: hero-kenburn 2800ms ease-out both;
}

@keyframes hero-kenburn {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}

.hero-slide.is-active {
    z-index: 2;
    opacity: 1;
    animation: hero-slide-enter-next 600ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.hero-slide.is-active.transition-slide-0.from-previous {
    animation-name: hero-slide-enter-previous;
}

.hero-slide.is-active.transition-slide-1 {
    animation-name: hero-slide-enter-rise;
}

.hero-slide.is-active.transition-slide-2 {
    animation-name: hero-slide-enter-depth;
}

.hero-slide.is-exiting {
    z-index: 1;
    opacity: 1;
}

.hero-slide.is-exiting.to-next {
    animation: hero-slide-exit-next 600ms cubic-bezier(0.55, 0, 0.8, 0.35) both;
}

.hero-slide.is-exiting.to-previous {
    animation: hero-slide-exit-previous 600ms cubic-bezier(0.55, 0, 0.8, 0.35) both;
}

@keyframes hero-slide-enter-next {
    from { opacity: 0.25; transform: perspective(1400px) translateX(12%) rotateY(-24deg) scale(0.96); }
    to { opacity: 1; transform: perspective(1400px) translateX(0) rotateY(0) scale(1); }
}

@keyframes hero-slide-enter-previous {
    from { opacity: 0.25; transform: perspective(1400px) translateX(-12%) rotateY(24deg) scale(0.96); }
    to { opacity: 1; transform: perspective(1400px) translateX(0) rotateY(0) scale(1); }
}

@keyframes hero-slide-enter-rise {
    from { opacity: 0.25; transform: perspective(1400px) translateY(9%) rotateX(-10deg) scale(0.96); }
    to { opacity: 1; transform: perspective(1400px) translateY(0) rotateX(0) scale(1); }
}

@keyframes hero-slide-enter-depth {
    from { opacity: 0.2; transform: perspective(1400px) translateZ(-260px) scale(0.78); }
    to { opacity: 1; transform: perspective(1400px) translateZ(0) scale(1); }
}

@keyframes hero-slide-exit-next {
    to { opacity: 0; transform: perspective(1400px) translateX(-10%) rotateY(18deg) scale(0.96); }
}

@keyframes hero-slide-exit-previous {
    to { opacity: 0; transform: perspective(1400px) translateX(10%) rotateY(-18deg) scale(0.96); }
}

.hero .container {
    z-index: 1;
    max-width: 1200px;
}

.hero-copy-panel {
    max-width: 780px;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(226, 241, 255, 0.62);
    border-left: 4px solid var(--action-color);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(25, 55, 116, .82), rgba(17, 39, 84, .76));
    box-shadow: 0 18px 48px rgba(8, 24, 58, .34), inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 24px rgba(88, 132, 204, .15);
    -webkit-backdrop-filter: blur(14px) saturate(155%);
    backdrop-filter: blur(14px) saturate(155%);
}

.hero h1 {
    color: white;
    max-width: 760px;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.hero p {
    max-width: 650px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero-vendor-cta {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-controls {
    position: absolute;
    z-index: 2;
    left: max(1.25rem, calc((100% - 1168px) / 2));
    bottom: 4.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-control,
.hero-autoplay,
.hero-indicator {
    border: 1px solid rgba(227, 241, 255, 0.82);
    color: white;
    background: rgba(25, 54, 111, .72);
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(5, 25, 82, .22), inset 0 1px 0 rgba(255,255,255,.16);
}

.hero-control {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.7rem;
    line-height: 1;
}

.hero-indicators {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-indicator {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
}

.hero-indicator.is-active {
    width: 24px;
    border-radius: 8px;
    background: var(--action-color);
    border-color: var(--action-color);
}

.hero-autoplay {
    min-height: 36px;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.hero-control:hover,
.hero-autoplay:hover,
.hero-indicator:hover {
    background: var(--action-color);
    border-color: var(--action-color);
}

.hero-controls button:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.service-category-card h3 {
    margin: 0 0 1rem;
    color: var(--primary-color);
}

.service-category-icon {
    min-height: 3.5rem;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.service-category-preview {
    min-height: 9rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    color: #56616b;
}

.service-category-preview li {
    position: relative;
    margin-bottom: 0.55rem;
    padding-left: 1.1rem;
}

.service-category-preview li::before {
    position: absolute;
    left: 0;
    color: var(--success-color);
    content: "•";
}

.service-category-preview .service-category-extra {
    color: #697784;
    font-style: italic;
}

.service-more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border: 0;
    border-bottom: 2px solid var(--action-color);
    color: var(--primary-color);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.service-more-button span {
    color: var(--action-color);
    transition: transform 160ms ease;
}

.service-more-button:hover span {
    transform: translateX(4px);
}

.service-more-button:focus-visible,
.service-dialog-close:focus-visible {
    outline: 3px solid var(--action-color);
    outline-offset: 3px;
}

.service-category-dialog {
    width: min(720px, calc(100% - 2rem));
    max-height: min(82vh, 760px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9e0e5;
    border-radius: 8px;
    color: var(--text-color);
    background: #fff;
    box-shadow: 0 24px 80px rgba(5, 22, 36, 0.28);
}

.service-category-dialog::backdrop {
    background: rgba(8, 21, 31, 0.64);
    backdrop-filter: blur(3px);
}

.service-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #e4e9ed;
    background: #f7f9fa;
}

.service-dialog-header h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.25;
}

.service-dialog-eyebrow {
    margin: 0 0 0.4rem;
    color: #687782;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-dialog-header form {
    margin: 0;
}

.service-dialog-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d4dde3;
    border-radius: 50%;
    color: var(--primary-color);
    background: white;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.service-dialog-content {
    max-height: calc(82vh - 100px);
    padding: 1.5rem 1.75rem 2rem;
    overflow-y: auto;
}

.service-modal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-modal-group {
    align-self: start;
    min-width: 0;
    padding-bottom: 0.75rem;
}

.service-modal-group h3 {
    margin: 0 0 0.65rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.service-modal-group .service-modal-list {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-left: 0.8rem;
    border-left: 2px solid #e5ebef;
}

.service-modal-entry {
    position: relative;
    padding: 0.35rem 0 0.35rem 1rem;
    color: #44515b;
    line-height: 1.45;
}

.service-modal-entry::before {
    position: absolute;
    left: 0;
    color: var(--action-color);
    content: "•";
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--action-color);
    color: #1c1b18;
}

.btn-primary:hover {
    background-color: var(--action-hover);
    color: #17191d;
    transform: translateY(-1px);
}

.nav-backdrop { display: none; }

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.event-category-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe5e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 37, 64, .09);
    transition: transform .22s ease, box-shadow .22s ease;
}

.event-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(10, 37, 64, .15);
}

.event-category-image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #e8edef;
}

.event-category-content {
    position: relative;
    padding: 1.1rem 1.15rem 1.25rem;
}

.event-category-index {
    color: #b56b35;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 0;
}

.event-category-content h3 {
    margin: .25rem 0 .8rem;
    font-size: 1.18rem;
    line-height: 1.3;
}

.event-category-types {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.event-category-types a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    max-width: 100%;
    padding: .35rem .65rem;
    border: 1px solid #d8e2e4;
    border-radius: 4px;
    color: #234b52;
    background: #f5f8f6;
    font-size: .83rem;
    line-height: 1.25;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.icon-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.line-icon {
    display: block;
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon .line-icon,
.service-category-icon .line-icon {
    width: 2.15rem;
    height: 2.15rem;
}

.bg-light {
    background: linear-gradient(180deg, #F0F3F7 0%, #F7F8FA 100%);
}

.section-title {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: .85rem;
}

.section-title::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 54px;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--action-color), #D9B66F);
    content: "";
}

.about-image,
.event-category-image,
.marketplace-service-image img {
    filter: saturate(1.035) contrast(1.015);
}

.event-category-card {
    border-bottom: 2px solid rgba(27, 63, 137, .12);
}

.event-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(24, 42, 67, .12);
}

.market-switch-link.is-current {
    border-color: rgba(255,255,255,.62);
    background: rgba(255,255,255,.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.nav-menu a.is-current:not(.btn) {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #E4C989;
    text-decoration-thickness: 2px;
    text-underline-offset: .42em;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.dashboard-stat-card {
    min-width: 0;
    padding: 1.35rem 1.45rem;
    border: 1px solid var(--line-color);
    border-top: 3px solid rgba(53, 98, 178, .56);
    border-radius: 6px;
    background: linear-gradient(155deg, #fff, #FAFBFD);
    box-shadow: 0 5px 18px rgba(24, 42, 67, .055);
}

.dashboard-stat-card h4 {
    margin: 0;
    color: var(--muted-color);
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 650;
}

.dashboard-stat-card p {
    margin: .55rem 0 0;
    color: var(--primary-deep);
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.dashboard-stat-link {
    display: inline-flex;
    gap: .35rem;
    margin-top: .9rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.dashboard-stat-link:hover {
    color: var(--primary-deep);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.dashboard-panel,
.host-event-card {
    overflow: hidden;
    border: 1px solid var(--line-color);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(24, 42, 67, .06);
}

.host-event-card {
    padding: clamp(1.15rem, 2.5vw, 2rem);
    border-left: 4px solid var(--primary-bright);
}

.host-event-card + .host-event-card {
    margin-top: 1.35rem;
}

.dashboard-panel table {
    border-collapse: collapse;
}

.dashboard-panel thead {
    background: var(--surface-tint);
}

.dashboard-panel th {
    color: #4B5A6D;
    font-size: .82rem;
    font-weight: 700;
}

.dashboard-panel th,
.dashboard-panel td {
    border-bottom: 1px solid #E5E9EF;
}

.dashboard-panel tbody tr:hover {
    background: #F7F9FC;
}

.delivery-attention {
    margin-bottom: 2rem;
}

.vendor-listing-limit {
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.5rem;
    border: 1px solid #D9E1EC;
    border-left: 4px solid var(--primary-bright);
    border-radius: 5px;
    background: linear-gradient(100deg, #F2F5FA, #FBFCFD);
}

.admin-ops-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
    margin: 1.5rem 0 2rem;
}

.admin-ops-stat {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line-color);
    border-radius: 5px;
    background: #fff;
}

.admin-ops-stat-value {
    color: var(--primary-deep);
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.15;
}

.admin-ops-stat-label {
    margin-top: .25rem;
    color: var(--muted-color);
    font-size: .88rem;
}

.admin-operation-link {
    border: 1px solid var(--line-color) !important;
    border-radius: 5px;
    background: linear-gradient(150deg, #fff, #FAFBFD) !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.admin-operation-link:hover {
    transform: translateY(-2px);
    border-color: #A8BBDD !important;
    box-shadow: 0 8px 20px rgba(24, 42, 67, .08);
}

.admin-operation-link strong {
    font-family: var(--font-display);
    font-size: 1.12rem !important;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .feature-card,
    .event-category-card,
    .marketplace-service-card,
    .dashboard-panel,
    .host-event-card {
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .feature-card:hover,
    .marketplace-service-card:hover,
    .host-event-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(24, 42, 67, .1);
    }

    .event-category-card {
        animation: quiet-arrive .42s ease both;
    }

    .event-category-card:nth-child(2) { animation-delay: 45ms; }
    .event-category-card:nth-child(3) { animation-delay: 90ms; }
    .event-category-card:nth-child(4) { animation-delay: 135ms; }
    .event-category-card:nth-child(5) { animation-delay: 180ms; }
    .event-category-card:nth-child(6) { animation-delay: 225ms; }
}

@keyframes quiet-arrive {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 600px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }

    .dashboard-stat-card {
        padding: .9rem;
    }

    .dashboard-stat-card p {
        font-size: 1.55rem;
    }

    .admin-ops-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.event-category-types a:hover,
.event-category-types a:focus-visible {
    border-color: #b8753b;
    color: #fff;
    background: #285d63;
}

.event-image {
    height: 200px;
    background-color: #ddd;
}

.event-details {
    padding: 1.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
}

/* Header & Navigation */
header {
    background: linear-gradient(112deg, #3562B2 0%, #1B3F89 48%, #142F63 100%);
    box-shadow: 0 5px 22px rgba(14, 35, 79, .26), inset 0 1px 0 rgba(255,255,255,.18);
    padding: 0 2rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    pointer-events: auto; /* Ensure header is clickable */
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex: 0 0 25%;
    align-self: stretch;
    min-width: 0;
    padding: 0 1.5rem;
    background: transparent;
    z-index: 1001; /* Above mobile menu overlay */
}

.logo img {
    display: block;
    width: 100%;
    height: 82px;
    max-width: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, .95))
        drop-shadow(0 3px 0 rgba(189, 213, 250, .85))
        drop-shadow(0 8px 0 rgba(18, 45, 98, .78))
        drop-shadow(0 13px 10px rgba(5, 16, 43, .52));
}

.logo a {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 340px;
    perspective: 700px;
    transform-style: preserve-3d;
}

@media (prefers-reduced-motion: no-preference) {
    .logo img {
        animation: brand-mark-rise 850ms cubic-bezier(.16, 1, .3, 1) both;
    }
}

@keyframes brand-mark-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, -180px) rotateX(-28deg) scale(.68);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 28px) rotateX(0) scale(1.04);
    }
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--action-color);
}

.nav-menu .market-switcher {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
}

.nav-menu .market-switch-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .4rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
    white-space: nowrap;
}

.market-switch-link img {
    display: block;
    width: 24px;
    height: 16px;
    flex: 0 0 24px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 2px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .event-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .9rem;
    }

    .event-category-image {
        height: 155px;
    }

    .event-category-content {
        padding: .9rem;
    }

    .event-category-content h3 {
        font-size: 1.05rem;
    }

    .hamburger {
        display: flex;
    }

    /* Hamburger Animation when Active */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary-color);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 5rem 2rem 2rem 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .logo img {
        width: min(165px, 46vw);
        height: 58px;
        max-width: 100%;
    }

    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 0.5rem;
    }

    .nav-menu .market-switcher {
        justify-content: flex-start;
        gap: .6rem;
        padding-top: .5rem;
    }

    .nav-menu .market-switch-link {
        display: inline-flex;
        width: auto;
        padding: .45rem .55rem;
        border: 1px solid rgba(255,255,255,.25);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        min-height: 560px;
        padding: 8rem 0 8.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .hero-slides::after {
        background: linear-gradient(100deg, rgba(17, 39, 88, .8) 0%, rgba(28, 57, 112, .6) 58%, rgba(25, 49, 96, .38) 100%);
    }

    .hero-controls {
        left: 1rem;
        bottom: 3.5rem;
    }

    .hero h1 {
        max-width: 600px;
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        margin: 0.35rem 0.5rem 0.35rem 0 !important;
    }

    .hero .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-copy-panel {
        padding: 1.35rem 1.2rem;
        background: linear-gradient(135deg, rgba(25, 55, 116, .86), rgba(17, 39, 84, .82));
        border-color: rgba(220, 233, 250, .62);
        box-shadow: 0 18px 48px rgba(8, 24, 58, .38), inset 0 1px 0 rgba(255,255,255,.24), 0 0 26px rgba(88,132,204,.16);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .container, .section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .event-category-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: .85rem;
    }

    .event-category-card {
        display: block;
    }

    .event-category-image {
        height: 142px;
        min-height: 0;
    }

    .event-category-content {
        padding: .8rem;
    }

    .event-category-types a {
        min-height: 30px;
        padding: .28rem .45rem;
        font-size: .76rem;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-controls {
        gap: 0.5rem;
    }

    .hero-control {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 600px) {
    .service-category-dialog {
        width: calc(100% - 1.25rem);
        max-height: 88vh;
    }

    .service-dialog-header,
    .service-dialog-content {
        padding-right: 1.1rem;
        padding-left: 1.1rem;
    }

    .service-dialog-header h2 {
        font-size: 1.25rem;
    }

    .service-dialog-content {
        max-height: calc(88vh - 90px);
    }

    .service-modal-list {
        grid-template-columns: 1fr;
    }
}

/* Vendor service management and host event management: mobile-safe layouts */
.vendor-service-page { max-width: 800px; margin: 0 auto; }
.vendor-service-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.vendor-service-form-grid, .vendor-service-detail-grid, .vendor-service-extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.vendor-service-extra-files { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.vendor-service-extra-files > div { min-width: 0; }
.vendor-service-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.vendor-service-table-wrap { overflow-x: auto; background: white; border-radius: 10px; box-shadow: 0 4px 6px rgba(27,50,45,.05); }
.vendor-service-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.vendor-service-table th, .vendor-service-table td { padding: 1rem; text-align: left; }

.host-event-page-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 2rem; }
.host-event-details-card { min-width: 0; background: white; padding: 2rem; border-radius: 10px; }
.host-event-guest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.host-schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.host-invitee-table-wrap { max-width: 100%; max-height: 260px; overflow: auto; }
.host-invitee-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .85rem; }
.host-invitee-table th, .host-invitee-table td { padding: 4px 6px; text-align: left; vertical-align: top; }

@media (max-width: 768px) {
    .vendor-service-heading { align-items: flex-start; }
    .vendor-service-form-grid, .vendor-service-detail-grid, .vendor-service-extra-grid,
    .host-event-page-layout, .host-event-guest-grid, .host-schedule-grid {
        grid-template-columns: 1fr;
    }
    .host-event-details-card { padding: 1.25rem; }
    .vendor-service-extra-files { flex-direction: column; align-items: stretch; }
    .vendor-service-extra-files > div { width: 100%; }
    .vendor-service-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
    .vendor-service-heading { flex-direction: column; }
    .vendor-service-heading .btn { width: 100%; text-align: center; }
    .vendor-service-page, .host-event-details-card { min-width: 0; }
    .vendor-service-form-grid, .vendor-service-detail-grid, .vendor-service-extra-grid,
    .host-event-guest-grid, .host-schedule-grid { gap: .75rem; }
    .vendor-service-table-wrap { margin-right: -1px; }
}

/* Safety: Hide potential accidental overlays */
.overlay, .modal-backdrop, .fade.in {
    display: none !important;
}

/* Editorial landing page */
:root {
    --editorial-paper: #fbfaf6;
    --editorial-stone: #f0eee8;
    --editorial-ink: #17191d;
    --editorial-muted: #5e6064;
    --editorial-sapphire: #1b3f89;
    --editorial-gold: #c8a253;
    --bg-color: #fbfaf6;
    --text-color: #17191d;
    --card-bg: #fffdfa;
    --muted-color: #64615b;
    --line-color: #ded9ce;
    --surface-tint: #f0eee8;
}

body:has(.hero) {
    background: var(--editorial-paper);
    color: var(--editorial-ink);
}

.hero {
    height: calc(100svh - 108px);
    min-height: 0;
    padding: clamp(1.5rem, 5svh, 4rem) 0 clamp(3.75rem, 7svh, 5rem);
    clip-path: none;
    background: #1d2732;
}

.hero-slides::after {
    background: linear-gradient(90deg, rgba(10, 20, 33, .58) 0%, rgba(10, 20, 33, .34) 42%, rgba(10, 20, 33, .04) 100%);
}

.hero-slide::before {
    filter: saturate(1.02) contrast(1.02);
}

.hero-slide.is-active::before,
.hero-slide.is-exiting::before { animation-duration: 6500ms; }

.hero-slide.is-active,
.hero-slide.is-exiting,
.hero-slide.is-exiting.to-next,
.hero-slide.is-exiting.to-previous {
    transform: none;
    animation: editorial-hero-fade .8s ease both;
}

.hero-slide.is-active.transition-slide-0,
.hero-slide.is-active.transition-slide-1,
.hero-slide.is-active.transition-slide-2 { animation-name: editorial-hero-fade; }

@keyframes editorial-hero-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-copy-panel {
    max-width: 760px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.hero-eyebrow,
.home-kicker {
    margin: 0 0 .85rem;
    color: #e6ca88;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .08em;
    line-height: 1.4;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .38rem .72rem;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 999px;
    background: rgba(11, 19, 30, .32);
    -webkit-backdrop-filter: blur(8px) saturate(115%);
    backdrop-filter: blur(8px) saturate(115%);
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 1.15rem;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 6vw, 5.45rem);
    font-weight: 700;
    line-height: .99;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .24);
}

.hero h1 .classic-touch {
    padding: 0;
    font-family: inherit;
    font-style: italic;
    font-weight: 500;
    background: none;
    color: #f1d994;
    -webkit-text-fill-color: currentColor;
    filter: none;
}

.hero h1 .classic-touch::after { display: none; }

.hero h1 .hero-sentence {
    display: table;
    max-width: 100%;
    margin: .06em 0;
    padding: .035em .14em .075em;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(11, 19, 30, .34);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
    -webkit-backdrop-filter: blur(9px) saturate(115%);
    backdrop-filter: blur(9px) saturate(115%);
}

.hero h1 .hero-sentence.classic-touch {
    color: #f1d994;
    background: rgba(11, 19, 30, .3);
}

.hero-heading-start { color: #fffdfa; }
.hero-heading-highlight {
    color: #f1d38a;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
}
.hero-heading-finish { color: #a9c5f4; }

.hero p:not(.hero-eyebrow) {
    max-width: 590px;
    margin: .85rem 0 0;
    padding: .55rem .75rem;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(11, 19, 30, .28);
    color: rgba(255, 255, 255, .94);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .28);
    -webkit-backdrop-filter: blur(8px) saturate(115%);
    backdrop-filter: blur(8px) saturate(115%);
}

.hero-actions { gap: .8rem; margin-top: 1.7rem; }

.hero .hero-actions .btn {
    min-height: 50px;
    padding: .8rem 1.25rem;
    border-radius: 3px;
    font-weight: 750;
    text-decoration: none;
}

.hero .hero-actions .btn-primary {
    border: 1px solid #e1bf70;
    color: #17191d;
    background: #e1bf70;
    box-shadow: none;
}

.hero .hero-actions .btn-primary:hover { background: #f0d48e; }

.hero-vendor-cta {
    border: 1px solid rgba(255, 255, 255, .82);
    color: #fff;
    background: rgba(18, 30, 43, .22);
}

.hero-controls { bottom: 2rem; }

@media (max-width: 1200px) {
    .hero { height: calc(100svh - 95px); }
}

@media (min-width: 601px) and (max-height: 850px) {
    .hero { padding: clamp(1rem, 3.5svh, 2rem) 0 4rem; }
    .hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; }
    .hero p:not(.hero-eyebrow) { font-size: 1rem; line-height: 1.45; }
    .hero-actions { gap: .6rem; margin-top: 1rem; }
    .hero .hero-actions .btn { min-height: 44px; padding: .65rem .9rem; }
    .hero-controls { bottom: .75rem; }
}

.hero-control,
.hero-autoplay,
.hero-indicator {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(14, 25, 38, .36);
    box-shadow: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.home-brand-statement {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    background: var(--editorial-paper);
}

.home-brand-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, .65fr);
    align-items: end;
    gap: 1rem 5rem;
    max-width: 1120px;
}

.home-brand-inner .home-kicker { grid-column: 1 / -1; margin: 0; color: var(--editorial-sapphire); }

.home-brand-inner h2,
.home-editorial-copy h2 {
    margin: 0;
    color: var(--editorial-ink);
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
}

.home-brand-inner h2 em,
.home-editorial-copy h2 em { color: var(--editorial-sapphire); font-weight: 500; }

.home-brand-inner > p:last-child {
    max-width: 400px;
    margin: 0 0 .2rem;
    color: var(--editorial-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.home-process-section { background: var(--editorial-stone); }

.home-process-section .container,
.home-category-section .container { max-width: 1240px; }

.home-process-section .section-title,
.home-category-section .section-title {
    margin: 0;
    color: var(--editorial-ink);
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    font-weight: 600;
    text-align: left;
}

.home-process-section .section-title::after,
.home-category-section .section-title::after { display: none; }

.home-process-section .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.4rem;
}

.home-process-section .feature-card {
    padding: 1.5rem 1.25rem;
    border: 0;
    border-top: 1px solid #d6d0c4;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.home-process-section .feature-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 50%;
    color: var(--editorial-sapphire);
    background: #e3e7ed;
}

.home-process-section .feature-card h3 {
    margin: 0 0 .45rem;
    color: var(--editorial-ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.home-process-section .feature-card p { margin: 0; color: var(--editorial-muted); font-size: .98rem; }

.home-category-section { background: var(--editorial-paper); }

.home-category-section .section-title { max-width: 760px; }

.home-category-section .section-title::before {
    display: block;
    margin-bottom: .85rem;
    color: var(--editorial-sapphire);
    content: "CHOOSE YOUR OCCASION";
    font-family: var(--font-body);
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .08em;
}

.event-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem 1.4rem;
    margin-top: 2.4rem;
}

.event-category-card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.event-category-card:hover { transform: none; box-shadow: none; }

.event-category-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.3;
    background: var(--editorial-stone);
}

.event-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .7, .25, 1);
}

.event-category-image-link:hover .event-category-image,
.event-category-image-link:focus-visible .event-category-image { transform: scale(1.035); }

.event-category-content { padding: .85rem 0 0; }

.event-category-index {
    color: #947331;
    font-size: .74rem;
    font-weight: 750;
}

.event-category-content h3 {
    margin: .28rem 0 .6rem;
    color: var(--editorial-ink);
    font-family: var(--font-display);
    font-size: 1.52rem;
    font-weight: 600;
    line-height: 1.18;
}

.event-category-content h3 a { color: inherit; text-decoration: none; }
.event-category-content h3 a:hover { color: var(--editorial-sapphire); }

.event-category-types { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .45rem; margin-top: .75rem; }

.event-category-types a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    max-width: 100%;
    padding: .38rem .68rem;
    border: 1px solid #d8d2c7;
    border-radius: 3px;
    color: #39414d;
    background: #f5f3ed;
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.event-category-types a:hover,
.event-category-types a:focus-visible {
    transform: translateY(-1px);
    border-color: var(--editorial-sapphire);
    color: #fff;
    background: var(--editorial-sapphire);
}

.bespoke-promo-section {
    padding: clamp(3rem, 7vw, 5rem) 0;
    background: var(--editorial-stone);
}

.bespoke-promo {
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    border: 0;
    border-top: 1px solid #d5ccba;
    border-bottom: 1px solid #d5ccba;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.bespoke-promo h2 {
    max-width: 760px;
    color: var(--editorial-ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
}

.bespoke-promo p:not(.bespoke-eyebrow) { color: var(--editorial-muted); font-size: 1.05rem; }
.bespoke-promo .bespoke-eyebrow { color: #947331; }
.bespoke-promo .btn-primary { border-radius: 3px; background: var(--editorial-sapphire); }

.home-editorial-close {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 480px;
    background: var(--editorial-paper);
}

.home-editorial-image {
    min-height: 420px;
    background: #d7d1c5 url('../images/editorial-banquet.jpg') center 54% / cover no-repeat;
}

.home-editorial-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5.5rem);
}

.home-editorial-copy .home-kicker { color: #947331; }
.home-editorial-copy h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.home-editorial-copy > p:not(.home-kicker) { max-width: 470px; color: var(--editorial-muted); font-size: 1.04rem; }

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: .5rem;
    color: var(--editorial-sapphire);
    font-weight: 750;
    text-decoration: none;
}

.home-text-link span { color: #947331; transition: transform .18s ease; }
.home-text-link:hover span { transform: translateX(4px); }

.home-occasion-rail-section {
    padding: 2rem 0 1.4rem;
    overflow: hidden;
    background: #f3f1eb;
}

.home-occasion-rail-section .container { max-width: 1240px; }

.home-occasion-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.home-occasion-heading .home-kicker { margin-bottom: .35rem; color: #947331; }

.home-occasion-heading h2 {
    margin: 0;
    color: var(--editorial-ink);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.12;
}

.home-rail-cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .45rem;
    color: var(--editorial-sapphire);
    font-weight: 750;
    text-decoration: none;
}

.home-rail-cta:hover { text-decoration: underline; text-underline-offset: .25em; }

.home-occasion-window {
    overflow: hidden;
    outline-offset: 4px;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.home-occasion-track {
    display: flex;
    width: max-content;
    animation: home-occasion-drift 105s linear infinite;
}

.home-occasion-set {
    display: flex;
    flex: 0 0 auto;
    gap: .8rem;
    padding-right: .8rem;
}

.home-occasion-card {
    display: grid;
    grid-template-columns: 44px auto 16px;
    align-items: center;
    gap: .7rem;
    width: 250px;
    min-height: 76px;
    padding: .8rem .85rem;
    border: 1px solid #ded9ce;
    color: #22242a;
    background: #fffdfa;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.home-occasion-card:hover,
.home-occasion-card:focus-visible {
    transform: translateY(-2px);
    border-color: #c8a253;
    background: #fff;
}

.home-occasion-icon,
.home-vendor-directory-icon,
.home-vendor-category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--editorial-sapphire);
    background: #edf0f5;
}

.home-occasion-card > span:nth-child(2) { font-size: .94rem; font-weight: 700; line-height: 1.3; }
.home-occasion-arrow { color: #947331; font-size: 1.1rem; }

@keyframes home-occasion-drift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.home-occasion-window:hover .home-occasion-track,
.home-occasion-window:focus-within .home-occasion-track { animation-play-state: paused; }

.home-vendor-directory { margin-top: 1rem; border-top: 1px solid #d8d2c7; }

.home-vendor-directory > summary {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 76px;
    cursor: pointer;
    list-style: none;
    transition: color .18s ease, background .18s ease;
}

.home-vendor-directory > summary::-webkit-details-marker { display: none; }
.home-vendor-directory > summary > span:nth-child(2) { display: grid; gap: .12rem; }
.home-vendor-directory > summary strong { color: var(--editorial-sapphire); font-size: 1rem; }
.home-vendor-directory > summary small { color: var(--editorial-muted); font-size: .87rem; }
.home-vendor-directory > summary:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.home-directory-toggle { margin-left: auto; color: var(--editorial-sapphire); font-size: 1.8rem; line-height: 1; }
.home-vendor-directory[open] .home-directory-toggle { transform: rotate(45deg); }

.home-vendor-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 1.25rem 0 1.75rem;
    border-top: 1px solid #ded9ce;
}

.home-vendor-category { min-width: 0; border: 1px solid #e1ddd4; background: rgba(255, 253, 250, .8); }
.home-vendor-category-button { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: .75rem; width: 100%; min-height: 90px; padding: .85rem; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; transition: background .18s ease; }
.home-vendor-category-button:hover { background: #fff; }
.home-vendor-category-button:focus-visible { outline: 3px solid rgba(53, 98, 178, .62); outline-offset: 2px; }
.home-vendor-category-icon { width: 40px; height: 40px; }
.home-vendor-category-copy { display: grid; gap: .18rem; min-width: 0; }
.home-vendor-category-copy strong { color: var(--editorial-ink); font-family: var(--font-display); font-size: 1.08rem; line-height: 1.2; }
.home-vendor-category-copy small { color: var(--editorial-muted); font-size: .82rem; }
.home-vendor-category-arrow { color: #947331; font-size: 1.15rem; }
.home-vendor-subcategories { display: grid; gap: .35rem; margin: 0; padding: 0; color: #54565a; font-size: .88rem; list-style: none; }
.home-vendor-subgroup { color: var(--editorial-sapphire); font-weight: 750; }
.home-vendor-subgroup > .home-vendor-subcategories { font-weight: 500; }
.home-vendor-subcategories .home-vendor-subcategories { margin: .3rem 0 .15rem .65rem; padding-left: .65rem; border-left: 1px solid #d7d0c3; color: #686660; font-size: .83rem; }
.home-vendor-dialog .service-dialog-header { background: var(--editorial-paper); }
.home-vendor-dialog .service-dialog-header h2 { color: var(--editorial-ink); font-family: var(--font-display); }
.home-vendor-dialog .service-modal-entry::before { color: var(--editorial-gold); }
.home-vendor-dialog .service-dialog-content { background: #fffdfa; }
.home-vendor-dialog .service-modal-group h3 { color: var(--editorial-sapphire); }

.contact-page { min-height: 75vh; background: var(--editorial-paper); }
.contact-hero { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 7rem) 0; color: #fff; background: linear-gradient(112deg, #142f63, #1b3f89 70%, #244b91); }
.contact-hero::after { position: absolute; top: -50%; right: -9%; width: min(52vw, 700px); aspect-ratio: 1; border: 1px solid rgba(225, 191, 112, .28); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 95px rgba(255,255,255,.02); content: ""; pointer-events: none; }
.contact-hero-inner { position: relative; z-index: 1; max-width: 1240px; }
.contact-eyebrow,.contact-section-kicker { margin: 0 0 .65rem; color: #e6ca88; font-size: .76rem; font-weight: 750; letter-spacing: .08em; }
.contact-hero h1 { max-width: 850px; margin: 0 0 .85rem; color: #f1d994 !important; font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 600; line-height: 1.02; }
.contact-hero h1 em { color: #f1d994; font-weight: 500; }
.contact-hero-inner > p:last-child { max-width: 650px; margin: 0; color: rgba(255,255,255,.88); font-size: 1.08rem; }
.contact-content { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.contact-details-column { min-width: 0; }
.contact-section-kicker { color: #947331; }
.contact-details-column > h2,.contact-form-heading h2 { margin: 0 0 .8rem; color: var(--editorial-ink); font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.05; }
.contact-page .contact-details-column > h2,
.contact-page .contact-form-heading h2,
.contact-page .contact-address h3,
.contact-page .contact-success h2 {
    color: #947331 !important;
}
.contact-lede { max-width: 480px; margin: 0 0 1.6rem; color: var(--editorial-muted); }
.contact-channel { display: grid; grid-template-columns: 44px minmax(0,1fr) 18px; align-items: center; gap: .85rem; padding: .95rem 0; border-top: 1px solid #ded9ce; color: inherit; text-decoration: none; }
.contact-channel:last-of-type { border-bottom: 1px solid #ded9ce; }
.contact-channel-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--editorial-sapphire); background: #edf0f5; }
.contact-channel-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-channel > span:nth-child(2) { display: grid; gap: .18rem; min-width: 0; }
.contact-channel small { color: #77736a; font-size: .7rem; font-weight: 750; letter-spacing: .07em; }
.contact-channel strong { overflow-wrap: anywhere; color: var(--editorial-ink); font-size: 1rem; }
.contact-channel-arrow { color: #947331; }
.contact-channel:hover strong { color: var(--editorial-sapphire); }
.contact-market-addresses { display: grid; gap: 1rem; margin-top: 1.7rem; }
.contact-address { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: .8rem; align-items: start; }
.contact-address-mark { display: grid; width: 38px; height: 30px; place-items: center; color: var(--editorial-sapphire); background: #edf0f5; font-size: .73rem; font-weight: 800; }
.contact-address h3 { margin: 0 0 .15rem; color: var(--editorial-ink); font-family: var(--font-display); font-size: 1.12rem; }
.contact-address address { color: #4f514f; font-size: .94rem; font-style: normal; line-height: 1.5; }
.contact-address p { margin: .25rem 0 0; color: var(--editorial-muted); font-size: .84rem; }
.contact-company-note { margin: 1.25rem 0 0; color: #77736a; font-size: .82rem; }
.contact-form-surface { min-width: 0; padding: clamp(1.3rem, 3vw, 2.4rem); border: 1px solid #ded9ce; background: #fffdfa; box-shadow: 0 12px 35px rgba(37,34,27,.065); }
.contact-form-heading { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #e6e1d8; }
.contact-form-heading h2 { margin-bottom: .4rem; font-size: clamp(2rem, 3.2vw, 2.6rem); }
.contact-form-heading > p:last-child { margin: 0; color: var(--editorial-muted); font-size: .96rem; }
.contact-privacy-note a,.privacy-form-note a,.bespoke-privacy-note a { color: var(--editorial-sapphire); font-weight: 700; }
.privacy-form-note { margin: .85rem 0; color: var(--editorial-muted); font-size: .84rem; text-align: center; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.contact-form-grid > label { display: grid; align-content: start; gap: .38rem; min-width: 0; color: #292a2b; font-size: .9rem; font-weight: 700; }
.contact-form-grid input,.contact-form-grid select,.contact-form-grid textarea { width: 100%; margin-top: .1rem; padding: .7rem .75rem; border: 1px solid #d3cec4; border-radius: 3px; color: #202124; background: #fff; font: inherit; font-size: .95rem; }
.contact-form-grid input,.contact-form-grid select { min-height: 46px; }
.contact-form-grid textarea { min-height: 150px; resize: vertical; }
.contact-message-field { grid-column: 1 / -1; }
.contact-privacy-note { margin: .8rem 0; color: var(--editorial-muted); font-size: .82rem; }
.contact-submit { min-width: 200px; gap: .55rem; background: var(--editorial-sapphire); }
.contact-submit:hover { background: #142f63; }
.contact-success { padding: 1.3rem 0; }
.contact-success > span { display: grid; width: 48px; height: 48px; margin-bottom: 1rem; place-items: center; border-radius: 50%; color: #fff; background: #2e7655; font-size: 1.4rem; }
.contact-success h2 { margin: 0 0 .5rem; color: var(--editorial-ink); font-family: var(--font-display); font-size: 2rem; }
.contact-success p { color: var(--editorial-muted); }
.contact-inline-link { color: var(--editorial-sapphire); font-weight: 750; text-decoration: none; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.contact-page + .footer .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.contact-page + .footer a { color: #f1d994; font-size: .9rem; font-weight: 700; text-decoration: none; }
.contact-page + .footer a:hover { text-decoration: underline; text-underline-offset: .2em; }

.cookie-consent-panel[hidden] { display: none !important; }
.cookie-consent-panel { position: fixed; z-index: 1800; right: 1rem; bottom: 1rem; left: 1rem; max-height: min(80vh, 650px); overflow: auto; border: 1px solid #d5cebf; border-top: 3px solid var(--editorial-gold); background: #fffdfa; box-shadow: 0 18px 55px rgba(14, 25, 38, .24); }
.cookie-consent-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; width: min(100%, 1240px); margin: 0 auto; padding: 1.25rem 1.5rem; }
.cookie-consent-copy h2 { margin: 0 0 .4rem; color: var(--editorial-ink); font-family: var(--font-display); font-size: 1.65rem; }
.cookie-consent-copy > p:not(.cookie-consent-eyebrow) { margin: 0; color: #55575b; font-size: .9rem; line-height: 1.5; }
.cookie-consent-eyebrow { margin: 0 0 .25rem; color: #947331; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.cookie-consent-links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .65rem; }
.cookie-consent-links a { color: var(--editorial-sapphire); font-size: .84rem; font-weight: 700; }
.cookie-consent-controls { min-width: 0; }
.cookie-preference-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; }
.cookie-preference { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; min-width: 0; padding: .65rem; border: 1px solid #e3ded4; background: #fbfaf6; cursor: pointer; }
.cookie-preference > span { display: grid; gap: .15rem; }
.cookie-preference strong { color: #24262a; font-size: .83rem; }
.cookie-preference small { color: #64615b; font-size: .74rem; line-height: 1.35; }
.cookie-preference input { flex: 0 0 auto; width: 18px; height: 18px; margin: .05rem 0 0; accent-color: var(--editorial-sapphire); }
.cookie-preference input:disabled { opacity: .7; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: .65rem; }
.cookie-consent-button { min-height: 40px; padding: .55rem .85rem; border: 1px solid var(--editorial-sapphire); border-radius: 3px; color: var(--editorial-sapphire); background: transparent; font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; }
.cookie-consent-button:hover { background: #edf0f5; }
.cookie-consent-primary { color: #fff; background: var(--editorial-sapphire); }
.cookie-consent-primary:hover { color: #fff; background: #142f63; }
.cookie-consent-button:disabled { cursor: wait; opacity: .6; }
.cookie-consent-message { min-height: 1.2em; margin: .25rem 0 0; color: #923b2f; font-size: .78rem; }
.footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.footer-legal-links a,.footer-legal-links button { border: 0; padding: 0; color: #f1d994; background: transparent; font: inherit; font-size: .88rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.footer-legal-links a:hover,.footer-legal-links button:hover { text-decoration: underline; text-underline-offset: .2em; }

.legal-page { min-height: 75vh; background: var(--editorial-paper); }
.legal-hero { padding: clamp(3rem, 6vw, 5rem) 0; color: #fff; background: linear-gradient(112deg, #142f63, #1b3f89 70%, #244b91); }
.legal-hero .container { max-width: 1120px; }
.legal-eyebrow { margin: 0 0 .55rem; color: #e6ca88; font-size: .76rem; font-weight: 750; letter-spacing: .08em; }
.legal-hero h1 { margin: 0 0 .6rem; color: #fff; font-family: var(--font-display); font-size: clamp(2.8rem,5vw,4.2rem); font-weight: 600; }
.legal-hero p { max-width: 700px; margin: 0 0 .75rem; color: rgba(255,255,255,.88); }
.legal-hero small { color: #e6ca88; font-size: .83rem; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 3rem; max-width: 1120px; padding-top: 3rem; padding-bottom: 5rem; }
.legal-layout-single { display: block; max-width: 900px; }
.legal-toc { position: sticky; top: 120px; align-self: start; display: grid; gap: .65rem; padding: 1rem; border-left: 2px solid var(--editorial-gold); background: #f3f1eb; }
.legal-toc strong { margin-bottom: .15rem; color: #24262a; font-family: var(--font-display); font-size: 1.1rem; }
.legal-toc a { color: #4f5358; font-size: .86rem; text-decoration: none; }
.legal-toc a:hover { color: var(--editorial-sapphire); text-decoration: underline; text-underline-offset: .2em; }
.legal-content { min-width: 0; }
.legal-content section { margin-bottom: 2rem; scroll-margin-top: 7rem; }
.legal-content h2 { margin: 0 0 .65rem; color: var(--editorial-ink); font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.legal-content p,.legal-content li { color: #4f5358; font-size: .97rem; line-height: 1.72; }
.legal-content ul { display: grid; gap: .55rem; padding-left: 1.25rem; }
.legal-content a { color: var(--editorial-sapphire); font-weight: 650; }
.legal-content address { padding: .85rem 1rem; border-left: 2px solid var(--editorial-gold); color: #4f5358; background: #f3f1eb; font-style: normal; }
.legal-table-wrap { overflow-x: auto; border: 1px solid #ded9ce; background: #fffdfa; }
.legal-cookie-table { width: 100%; border-collapse: collapse; text-align: left; }
.legal-cookie-table th,.legal-cookie-table td { min-width: 125px; padding: .75rem; border-bottom: 1px solid #e6e1d8; vertical-align: top; color: #41444a; font-size: .86rem; }
.legal-cookie-table th { color: #24262a; background: #f0eee8; font-size: .8rem; }
.legal-cookie-table code { color: var(--editorial-sapphire); font-size: .82rem; }
.legal-related-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 2rem; }
.legal-related-links button { border: 0; padding: 0; color: var(--editorial-sapphire); background: none; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

@media (max-width: 780px) {
    .cookie-consent-inner { grid-template-columns: 1fr; gap: .9rem; padding: 1rem; }
    .cookie-preference-list { grid-template-columns: 1fr; }
    .cookie-consent-actions { justify-content: stretch; }
    .cookie-consent-button { flex-basis: 100%; }
    .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .legal-toc { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 480px) {
    .cookie-consent-panel { right: .5rem; bottom: .5rem; left: .5rem; max-height: 88vh; }
    .cookie-consent-actions .cookie-consent-button { flex-basis: 100%; }
    .legal-toc { grid-template-columns: 1fr; }
    .legal-layout { padding-top: 2rem; }
}

@media (max-width: 800px) {
    .contact-content { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 560px) {
    .contact-hero { padding: 3.5rem 0; }
    .contact-hero h1 { font-size: 2.8rem; }
    .contact-form-grid { grid-template-columns: 1fr; }
    .contact-message-field { grid-column: auto; }
    .contact-page + .footer .container { align-items: flex-start; flex-direction: column; }
}

/* Shared editorial styling across customer, vendor, and admin pages */
body:not(:has(.hero)) { background-color: var(--editorial-paper); color: var(--editorial-ink); }
body:not(:has(.hero)) h1,
body:not(:has(.hero)) h2,
body:has(.hero) h1,
body:has(.hero) h2 { color: #17191d; }

body:not(:has(.hero)) h3,
body:not(:has(.hero)) h4,
body:has(.hero) h3,
body:has(.hero) h4 { color: var(--primary-color); }

.section-title::after {
    background: linear-gradient(90deg, var(--editorial-gold), var(--editorial-sapphire));
}

body:not(:has(.hero)) .btn-primary,
body:has(.hero) .btn-primary,
.auth-card .auth-submit,
.bespoke-promo .btn-primary,
.contact-submit,
.hero .hero-actions .btn-primary {
    border-color: var(--action-color);
    color: #1c1b18;
    background: var(--action-color);
    background-image: none;
    box-shadow: 0 2px 0 rgba(91, 56, 10, .18), inset 0 1px 0 rgba(255,255,255,.22);
}

body:not(:has(.hero)) .btn-primary:hover,
body:has(.hero) .btn-primary:hover,
.auth-card .auth-submit:hover,
.bespoke-promo .btn-primary:hover,
.contact-submit:hover {
    border-color: var(--action-hover);
    color: #17191d;
    background: var(--action-hover);
    background-image: none;
    box-shadow: 0 3px 0 rgba(91, 56, 10, .16);
}

.hero h1 .hero-sentence {
    border-color: rgba(225, 191, 112, .48);
    background: rgba(12, 16, 20, .52);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 28px rgba(0,0,0,.16);
}

.hero h1 .hero-sentence.classic-touch { background: rgba(12, 16, 20, .48); }

@media (max-width: 1100px) {
    body.nav-open { overflow: hidden !important; }

    header {
        z-index: 1200;
        min-height: 88px;
        padding: 0 .75rem 0 0;
    }

    .logo {
        flex: 0 0 62%;
        padding: 0 .85rem 0 clamp(.65rem, 3vw, 1.25rem);
    }

    .logo img {
        width: 100%;
        height: clamp(58px, 16vw, 72px);
    }

    .hamburger {
        position: relative;
        z-index: 1202;
        display: inline-flex;
        flex: 0 0 46px;
    }

    .hamburger span { background: #fffdfa; }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-backdrop {
        position: fixed;
        z-index: 1200;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(9, 15, 24, .58);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity .22s ease;
    }

    header.menu-open .nav-backdrop { opacity: 1; pointer-events: auto; visibility: visible; }

    .nav-menu,
    .nav-menu.active {
        position: fixed;
        z-index: 1201;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(410px, 88vw);
        height: 100vh;
        height: 100dvh;
        padding: max(5.5rem, env(safe-area-inset-top) + 4.5rem) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: linear-gradient(155deg, #17396f, #10274d 72%);
        box-shadow: -16px 0 46px rgba(5, 14, 29, .28);
        transform: translateX(105%);
        transition: transform .24s ease;
        visibility: hidden;
    }

    .nav-menu.active { transform: translateX(0); visibility: visible; }

    .nav-menu ul {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: .25rem;
        width: 100%;
    }

    .nav-menu li { width: 100%; min-width: 0; }

    .nav-menu a:not(.market-switch-link) {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: .62rem .5rem;
        border-bottom: 1px solid rgba(255,255,255,.13);
        color: rgba(255,255,255,.96);
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .nav-menu a.btn-primary {
        justify-content: center;
        margin-top: .5rem;
        border: 1px solid var(--action-color);
        color: #1c1b18;
        background: var(--action-color);
    }

    .nav-menu a.btn-primary:hover,
    .nav-menu a.btn-primary:focus-visible {
        border-color: var(--action-hover);
        color: #17191d;
        background: var(--action-hover);
    }

    .nav-menu .market-switcher {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .55rem;
        padding-top: .8rem;
    }

    .nav-menu .market-switch-link {
        display: inline-flex;
        width: auto;
        min-height: 40px;
        padding: .45rem .6rem;
        border: 1px solid rgba(255,255,255,.35);
        border-radius: 4px;
        color: #fff;
        font-size: .88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-menu, .nav-backdrop { transition: none !important; }
}
