/* ============================================================
   DISCOVER LOCKHART — PUBLIC SITE DESIGN SYSTEM (Oct 2026)
   Aligns the website with the mobile app: same palette, type
   scale, card style, chips, and detail layout. Scoped to
   .dl-site (MainLayout) so the admin portal is unaffected.
   Loaded after app.css.
   ============================================================ */

:root {
    --dl-navy: #1F3F58;
    --dl-navy-dark: #173247;
    --dl-navy-tint: #EAF0F4;
    --dl-gold: #F5C400;
    --dl-gold-tint: #FFF7D6;
    --dl-red: #C9483C;
    --dl-red-tint: #FBEDEB;

    --dl-bg: #F6F7F9;
    --dl-surface: #FFFFFF;
    --dl-surface-muted: #F2F4F7;
    --dl-skeleton: #E7EAEE;

    --dl-text: #10243A;
    --dl-text-2: #5F6670;
    --dl-text-3: #8A919A;
    --dl-border: #E6E8EC;

    --dl-radius-sm: 8px;
    --dl-radius-md: 12px;
    --dl-radius-lg: 16px;
    --dl-radius-xl: 24px;

    --dl-shadow-card: 0 2px 8px rgba(11, 27, 43, .05);
    --dl-shadow-raised: 0 6px 16px rgba(11, 27, 43, .10);

    --dl-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
.dl-site {
    background: var(--dl-bg);
    color: var(--dl-text);
    font-family: var(--dl-font);
    -webkit-font-smoothing: antialiased;
}

.dl-site p { color: var(--dl-text-2); }
.dl-site a { color: var(--dl-navy); }
.dl-site a:hover { color: var(--dl-red); text-decoration: none; }
.dl-site :focus-visible { outline: 3px solid rgba(245, 196, 0, .7); outline-offset: 2px; }

.dl-site .section { padding: 48px 0; }
.dl-site .section-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--dl-text);
    text-align: left;
    margin: 0 1rem 20px;
}
.dl-site .overline {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--dl-red);
}

/* ---------- Navbar ---------- */
.dl-site .dlx-navbar {
    background: var(--dl-navy);
    box-shadow: none;
    border-bottom: 3px solid var(--dl-gold);
}
.dl-site .brand-top { font-weight: 700; letter-spacing: 1.2px; }
.dl-site .brand-bottom { font-weight: 600; color: var(--dl-gold); opacity: 1; letter-spacing: .6px; }
/* Links on the navy bar stay white (the site-wide link color is navy). */
.dl-site .dlx-navbar a,
.dl-site .dlx-navbar .brand { color: #fff; }
.dl-site .nav-link { color: #fff; font-weight: 600; font-size: .95rem; opacity: .92; }
.dl-site .nav-link:hover { color: var(--dl-gold); opacity: 1; }
.dl-site .nav-cta {
    background: var(--dl-gold);
    color: var(--dl-navy-dark) !important;
    border-radius: 999px;
    padding: .4rem .95rem;
    font-weight: 700;
    opacity: 1;
}
.dl-site .nav-cta:hover { background: #ffd633; color: var(--dl-navy-dark) !important; }

/* ---------- Hero ---------- */
.dl-site .hero {
    background: linear-gradient(rgba(23, 50, 71, .62), rgba(23, 50, 71, .62)), url('/images/lockharttx.jpeg') center 35% / cover no-repeat;
    padding: 160px 0 72px;
}
.dl-site .hero.slim { padding: 72px 0 48px; }
/* Let the category dropdown extend below the hero (the photo background still fills the hero box). */
.dl-site .hero { overflow: visible; z-index: 5; }
.dl-site .hero .overline { color: var(--dl-gold); display: block; margin-bottom: 8px; letter-spacing: 2px; }
.dl-site .hero h1 { font-size: 2.75rem; font-weight: 700; letter-spacing: -.5px; text-shadow: none; }
.dl-site .hero.slim h1 { font-size: 2.25rem; }
.dl-site .hero p.sub { font-size: 1.0625rem; font-weight: 400; text-shadow: none; color: rgba(255, 255, 255, .88); }

/* Search field — mirrors the app's search bar */
.dl-site .search-wrap { width: min(560px, 92%); }
.dl-site .search-input {
    height: 48px;
    border-radius: var(--dl-radius-md);
    padding: 0 52px 0 44px;
    background: var(--dl-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238A919A' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.414zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E") 16px center / 15px no-repeat;
    box-shadow: var(--dl-shadow-raised);
    font-size: 1rem;
    color: var(--dl-text);
}
.dl-site .search-input:focus { box-shadow: 0 0 0 3px rgba(245, 196, 0, .55); }
.dl-site .search-btn {
    right: 6px;
    width: 36px;
    height: 36px;
    border-radius: var(--dl-radius-sm);
    background: var(--dl-navy);
    color: var(--dl-gold);
    box-shadow: none;
}

/* Filter chips — mirrors the app's chips */
.dl-site .sort-buttons { gap: 8px; margin-top: 16px; }
.dl-site .sort-btn {
    background: rgba(255, 255, 255, .95);
    color: var(--dl-text);
    border: 1px solid var(--dl-border);
    height: 36px;
    padding: 0 14px;
    font-weight: 600;
    font-size: .8125rem;
    transition: background .15s ease, color .15s ease;
}
.dl-site .sort-btn:hover { background: #fff; color: var(--dl-navy); }
.dl-site .sort-btn.active,
.dl-site .sort-btn[aria-pressed="true"] { background: var(--dl-navy); border-color: var(--dl-navy); color: #fff; }
.dl-site .sort-btn.clear { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.dl-site .sort-btn.clear:hover { background: rgba(255, 255, 255, .12); }
.dl-site .date-input {
    height: 40px;
    border-radius: var(--dl-radius-md);
    border: 1px solid var(--dl-border);
    color: var(--dl-text);
}

/* ---------- Filter row + category picker ---------- */
.dl-site .filter-row { justify-content: center; align-items: center; }
.dl-site .filter-row .sort-btn { display: inline-flex; align-items: center; flex: 0 0 auto; }
.dl-site .cat-picker { position: relative; display: inline-flex; }

.dl-site .cat-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.dl-site .cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 6px 0 12px;
    border-radius: 999px;
    border: none;
    background: var(--dl-gold);
    color: var(--dl-navy-dark);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer !important;
}
.dl-site .cat-pill i { font-size: 1rem; }
.dl-site .cat-pill:hover { background: #ffd633; }

/* Panel: dropdown on desktop, bottom sheet on phones. Lives inside .hero, so reset its white/centered text. */
.dl-site .cat-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: transparent;
}
.dl-site .cat-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: var(--dl-surface);
    color: var(--dl-text);
    text-align: left;
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius-lg);
    box-shadow: 0 16px 40px rgba(11, 27, 43, .22);
    display: flex;
    flex-direction: column;
    max-height: min(520px, 70vh);
    animation: dlFadeIn .15s ease-out;
}
.dl-site .cat-panel * { cursor: default; }
.dl-site .cat-panel button, .dl-site .cat-panel button * { cursor: pointer !important; }
.dl-site .cat-panel-handle { display: none; }
.dl-site .cat-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 16px 8px 20px;
}
.dl-site .cat-panel-title { font-size: 1.125rem; font-weight: 700; color: var(--dl-text); }
.dl-site .cat-panel-sub { font-size: .8125rem; color: var(--dl-text-2); }
.dl-site .cat-panel-close {
    width: 32px; height: 32px; border-radius: 999px; border: none;
    background: var(--dl-surface-muted); color: var(--dl-text-2);
    display: grid; place-items: center;
}
.dl-site .cat-panel-list {
    overflow-y: auto;
    padding: 4px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
}
.dl-site .cat-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px;
    border: none;
    border-radius: var(--dl-radius-sm);
    background: transparent;
    color: var(--dl-text);
    font-size: .875rem;
    text-align: left;
}
.dl-site .cat-option:hover { background: var(--dl-surface-muted); }
.dl-site .cat-option.checked { color: var(--dl-navy); font-weight: 600; }
.dl-site .cat-check {
    flex: 0 0 20px;
    width: 20px; height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--dl-text-3);
    display: grid; place-items: center;
    color: var(--dl-gold);
    font-size: .8rem;
}
.dl-site .cat-option.checked .cat-check { background: var(--dl-navy); border-color: var(--dl-navy); }
.dl-site .cat-panel-footer {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--dl-border);
}
.dl-site .cat-panel-footer button { flex: 1; padding: .65rem .75rem; }
.dl-site .cat-panel-footer .btn-primary { flex: 1.6; }
.dl-site .cat-panel-footer button:disabled { opacity: .45; }
@keyframes dlFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- Cards ---------- */
.dl-site .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.dl-site .event-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--dl-radius-lg);
    border: 1px solid var(--dl-border);
    box-shadow: var(--dl-shadow-card);
    color: inherit;
}
.dl-site a.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dl-shadow-raised);
    text-decoration: none;
}
.dl-site .event-img,
.dl-site .business-logo-wrap {
    height: auto;
    aspect-ratio: 1 / .72;
    border-radius: 0;
    padding: 0;
    object-fit: contain;
    background-color: var(--dl-surface-muted);
}
.dl-site .event-img.placeholder,
.dl-site .details-img.placeholder {
    background: linear-gradient(135deg, var(--dl-navy), var(--dl-navy-dark)) !important;
    border-radius: 0;
    color: var(--dl-gold);
}
.dl-site .details-img.placeholder { border-radius: var(--dl-radius-lg); }
.dl-site .details-img.placeholder::after { display: none; }
.dl-site .placeholder-inner i { filter: none; color: var(--dl-gold); font-size: 36px; }
.dl-site .card-body { padding: 12px 14px 14px; flex: 1; }
.dl-site .card-body .card-tag {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--dl-red);
    margin-bottom: 4px;
}
.dl-site .card-body .title {
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dl-text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dl-site .card-body .meta { font-size: .8125rem; color: var(--dl-text-2); }
.dl-site .card-body .meta i { color: var(--dl-text-3); margin-right: 4px; }

/* Date badge — white chip, red month, dark day (as in the app) */
.dl-site .date-pill {
    left: 8px;
    top: 8px;
    min-width: 46px;
    background: var(--dl-surface);
    color: var(--dl-red);
    border-radius: var(--dl-radius-sm);
    padding: 4px 8px;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-align: center;
    line-height: 1.2;
    box-shadow: var(--dl-shadow-card);
    z-index: 1;
}
.dl-site .date-pill span {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--dl-text);
}

/* Skeletons */
.dl-site .skeleton-card .skeleton-img,
.dl-site .skeleton-card .skeleton-line,
.dl-site .skeleton-card .skeleton-date-pill { background: var(--dl-skeleton); }

/* ---------- Buttons ---------- */
.dl-site .btn-primary,
.dl-site .btn.btn-primary {
    background: var(--dl-navy);
    border: 1px solid var(--dl-navy);
    color: #fff;
    border-radius: var(--dl-radius-md);
    padding: .7rem 1.25rem;
    font-weight: 600;
    box-shadow: none;
}
.dl-site .btn-primary i { color: var(--dl-gold); }
.dl-site .btn-primary:hover,
.dl-site .btn.btn-primary:hover { background: var(--dl-navy-dark); border-color: var(--dl-navy-dark); color: #fff; transform: none; }
.dl-site .btn-secondary,
.dl-site .btn-outline {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    color: var(--dl-navy);
    border-radius: var(--dl-radius-md);
    padding: .7rem 1.25rem;
    font-weight: 600;
}
.dl-site .btn-secondary:hover,
.dl-site .btn-outline:hover { background: var(--dl-surface-muted); color: var(--dl-navy); transform: none; }
.dl-site .btn-outline.danger { border-color: var(--dl-border); color: var(--dl-red); }
.dl-site .btn-outline.danger:hover { background: var(--dl-red-tint); color: var(--dl-red); }
.dl-site .btn-gold {
    background: var(--dl-gold);
    border: 1px solid var(--dl-gold);
    color: var(--dl-navy-dark);
    border-radius: var(--dl-radius-md);
    padding: .7rem 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.dl-site .btn-gold:hover { background: #ffd633; color: var(--dl-navy-dark); }

/* ---------- Event details ---------- */
.dl-site .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    color: var(--dl-navy);
    font-weight: 600;
    font-size: .9375rem;
}
.dl-site .back-link i {
    width: 28px; height: 28px; border-radius: 999px;
    display: grid; place-items: center;
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
}
.dl-site .back-link:hover { color: var(--dl-navy); background: var(--dl-navy-tint); }
.dl-site .section.details { padding: 32px 0 48px; background: transparent; }
.dl-site .details-header { border-bottom: none; padding: 0 1rem; margin-bottom: 20px; align-items: flex-start; }
.dl-site .badge-date {
    background: var(--dl-gold);
    color: var(--dl-navy-dark);
    border-radius: var(--dl-radius-md);
    width: 60px;
    padding: 8px 6px;
    box-shadow: none;
}
.dl-site .badge-date .m { font-weight: 700; font-size: .6875rem; letter-spacing: .8px; }
.dl-site .badge-date .d { font-weight: 700; font-size: 1.5rem; margin-top: 2px; }
.dl-site .details-title h1 { color: var(--dl-text); font-weight: 700; font-size: 1.75rem; letter-spacing: -.3px; }
.dl-site .details-title .sub { color: var(--dl-text-2); }
.dl-site .details-title .sub i { color: var(--dl-text-3); margin-right: 4px; }
.dl-site .details-body { gap: 24px; }
.dl-site .details-img {
    max-height: 460px;
    padding: 0;
    border-radius: var(--dl-radius-lg);
    border: 1px solid var(--dl-border);
    box-shadow: var(--dl-shadow-card);
    background-color: var(--dl-surface-muted);
}
.dl-site h3.mt {
    color: var(--dl-text-2);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin: 28px 4px 8px;
}
.dl-site .about-card {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius-lg);
    padding: 18px 20px;
    box-shadow: var(--dl-shadow-card);
}
.dl-site .about-card p { color: var(--dl-text); margin: 0; font-size: 1rem; }

/* Info card → grouped list, like the app's InfoList */
.dl-site .info-card {
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius-lg);
    box-shadow: var(--dl-shadow-card);
}
.dl-site .details-body .info-card {
    padding: 0;
    overflow: hidden;
}
.dl-site .info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dl-border);
    margin: 0 !important;
}
.dl-site .info-row:last-of-type { border-bottom: none; }
.dl-site .info-row .info-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--dl-radius-sm);
    background: var(--dl-navy-tint);
    color: var(--dl-navy);
    display: grid;
    place-items: center;
    margin: 0 !important;
}
.dl-site .info-row .info-label { font-size: .75rem; color: var(--dl-text-2); margin: 0 0 2px !important; }
.dl-site .info-row .info-value { font-size: .9375rem; color: var(--dl-text); margin: 0 !important; white-space: pre-line; }
.dl-site .info-row a.info-value { color: var(--dl-navy); font-weight: 500; }
.dl-site .info-card .btn-row { padding: 14px 16px 16px; margin: 0; border-top: 1px solid var(--dl-border); gap: 8px; }
.dl-site .info-card .btn-row a { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- Zoomable images ---------- */
.dl-site img[data-zoomable],
.dl-site [data-zoomable] img {
    pointer-events: auto;
    cursor: zoom-in;
}
.dl-site .zoom-wrap { position: relative; display: block; }
.dl-site .zoom-wrap .zoom-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    display: grid;
    place-items: center;
    pointer-events: none;
    font-size: .9rem;
}

/* ---------- Business directory ---------- */
.dl-site .business-logo-wrap { display: flex; align-items: center; justify-content: center; }
.dl-site .business-logo-img { max-width: 88%; max-height: 82%; object-fit: contain; }
.dl-site .business-card-actions .btn { width: 100%; }

/* ---------- App download ---------- */
.dl-site .app-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--dl-navy), var(--dl-navy-dark));
    color: #fff;
    border-radius: var(--dl-radius-xl);
    padding: 28px 32px;
    margin: 0 1rem;
}
.dl-site .app-promo h2 { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 4px 0 6px; }
.dl-site .app-promo p { color: rgba(255, 255, 255, .82); margin: 0; }
.dl-site .app-promo .overline { color: var(--dl-gold); }
.dl-site .store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-site .store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: var(--dl-radius-md);
    padding: 8px 16px 8px 12px;
    min-width: 168px;
    line-height: 1.1;
    text-decoration: none !important;
}
.dl-site .store-btn i { font-size: 1.6rem; color: #fff; }
.dl-site .store-btn small { display: block; font-size: .6875rem; opacity: .85; }
.dl-site .store-btn strong { display: block; font-size: 1.05rem; font-weight: 600; }
.dl-site .store-btn:hover { background: #1a1a1a; }
/* Hero app download */
.dl-site .hero-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.dl-site .hero-app-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}

.dl-site .hero-store {
    justify-content: center;
    width: 100%;
    max-width: 380px;
}

    .dl-site .hero-store .store-btn {
        min-width: 0;
        padding: 6px 14px 6px 10px;
        border-color: rgba(255, 255, 255, .45);
    }

        .dl-site .hero-store .store-btn i {
            font-size: 1.3rem;
        }

        .dl-site .hero-store .store-btn strong {
            font-size: .95rem;
        }

/* ---------- CTA card ---------- */
.dl-site .cta-card {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius-lg);
    box-shadow: var(--dl-shadow-card);
    padding: 24px;
    text-align: center;
    margin: 0 1rem;
}
.dl-site .cta-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--dl-text); }

/* ---------- Forms (Submit Event) ---------- */
.dl-site .dl-form-page { max-width: 760px; margin: 0 auto; padding: 32px 1rem 48px; }
.dl-site .dl-form-page h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.3px; color: var(--dl-text); margin: 4px 0 6px; }
.dl-site .dl-form-intro { color: var(--dl-text-2); margin-bottom: 24px; }
.dl-site .dl-form-section-title {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--dl-text-2);
    margin: 0 4px 8px;
}
.dl-site .dl-form-card {
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius-lg);
    box-shadow: var(--dl-shadow-card);
    padding: 20px;
    margin-bottom: 24px;
}
.dl-site .dl-field { margin-bottom: 16px; }
.dl-site .dl-field:last-child { margin-bottom: 0; }
.dl-site .dl-field label { display: block; font-size: .8125rem; font-weight: 600; color: var(--dl-text); margin-bottom: 6px; }
.dl-site .dl-field .req { color: var(--dl-red); }
.dl-site .dl-field .opt { font-weight: 400; color: var(--dl-text-3); font-size: .75rem; margin-left: 6px; }
.dl-site .dl-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius-md);
    background: var(--dl-surface);
    color: var(--dl-text);
    padding: 10px 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dl-site textarea.dl-input { min-height: 140px; resize: vertical; }
.dl-site .dl-input:focus { outline: none; border-color: var(--dl-navy); box-shadow: 0 0 0 3px var(--dl-navy-tint); }
.dl-site .dl-input.invalid { border-color: var(--dl-red); }
.dl-site .dl-field-error { color: var(--dl-red); font-size: .8125rem; margin-top: 4px; }
.dl-site .dl-field-hint { color: var(--dl-text-2); font-size: .8125rem; margin-top: 4px; }
.dl-site .dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl-site .dl-row-address { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.dl-site .dl-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: var(--dl-radius-md);
    padding: 12px 14px;
    margin-bottom: 20px;
    background: var(--dl-red-tint);
    color: var(--dl-text);
}
.dl-site .dl-alert i { color: var(--dl-red); margin-top: 2px; }
.dl-site .dl-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1.5px dashed var(--dl-border);
    border-radius: var(--dl-radius-md);
    background: var(--dl-surface-muted);
    padding: 24px;
    text-align: center;
    position: relative;
    cursor: pointer;
}
.dl-site .dl-upload i { font-size: 1.4rem; color: var(--dl-navy); }
.dl-site .dl-upload strong { color: var(--dl-navy); }
.dl-site .dl-upload small { color: var(--dl-text-3); }
.dl-site .dl-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dl-site .dl-upload-preview { border-radius: var(--dl-radius-md); overflow: hidden; background: var(--dl-surface-muted); }
.dl-site .dl-upload-preview img { width: 100%; max-height: 280px; object-fit: contain; display: block; }
.dl-site .dl-upload-preview .dl-upload-actions { display: flex; gap: 8px; padding: 8px; }
.dl-site .dl-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dl-site .dl-submit { width: 100%; justify-content: center; display: inline-flex; gap: 8px; align-items: center; }
.dl-site .dl-fineprint { color: var(--dl-text-3); font-size: .8125rem; text-align: center; margin-top: 12px; }
.dl-site .dl-success { text-align: center; padding: 48px 16px; }
.dl-site .dl-success .dl-success-icon {
    width: 72px; height: 72px; border-radius: 999px; background: var(--dl-gold-tint);
    display: grid; place-items: center; margin: 0 auto 20px; color: var(--dl-gold); font-size: 2rem;
}
.dl-site .dl-success h2 { font-weight: 700; color: var(--dl-text); }

/* ---------- Footer ---------- */
.dl-site .dlx-footer { margin-top: 48px; border-top: 3px solid var(--dl-gold); }
.dl-site .dlx-footer, .dl-site .dlx-footer div { color: rgba(255, 255, 255, .85); }
.dl-site .dlx-footer a { color: var(--dl-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    /* Filter buttons wrap into tidy rows (2 per row) instead of running off-screen. */
    .dl-site .filter-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        overflow: visible;
    }

        .dl-site .filter-row > .sort-btn,
        .dl-site .filter-row > .cat-picker {
            flex: 1 1 calc(50% - 8px);
            max-width: 220px;
            justify-content: center;
        }

    .dl-site .cat-picker {
        position: static;
    }

        .dl-site .cat-picker .sort-btn {
            width: 100%;
            justify-content: center;
        }

    /* Custom date row wraps too */
    .dl-site .date-range {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

        .dl-site .date-range .date-input {
            flex: 1 1 140px;
            min-width: 0;
        }

        .dl-site .date-range .apply-btn {
            flex: 1 1 100%;
            max-width: 448px;
        }

    /* Category panel becomes a bottom sheet. */
    .dl-site .cat-backdrop { background: rgba(12, 24, 36, .55); }
    .dl-site .cat-panel {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        max-width: none;
        max-height: 82vh;
        border-radius: var(--dl-radius-xl) var(--dl-radius-xl) 0 0;
        border: none;
        padding-bottom: env(safe-area-inset-bottom);
        animation: dlSheetUp .2s ease-out;
    }
    .dl-site .cat-panel-handle {
        display: block;
        width: 36px; height: 5px; border-radius: 3px;
        background: var(--dl-border);
        margin: 8px auto 0;
    }
    .dl-site .cat-panel-list { grid-template-columns: 1fr; padding: 4px 8px; }
    .dl-site .cat-option { border-bottom: 1px solid var(--dl-border); border-radius: 0; min-height: 48px; font-size: .9375rem; }
    .dl-site .cat-option:last-child { border-bottom: none; }

    /* Phone menu opens as a white dropdown — use dark text there. */
    .dl-site .nav-links .nav-link { color: var(--dl-text); }
    .dl-site .nav-links .nav-link:hover { color: var(--dl-navy); background: var(--dl-surface-muted); }
    .dl-site .nav-links .nav-cta { margin: 8px 20px 4px; width: auto; text-align: center; }
    .dl-site .hero { padding: 112px 0 48px; }
    .dl-site .hero h1 { font-size: 2rem; }
    .dl-site .hero.slim h1 { font-size: 1.75rem; }
    .dl-site .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-left: 0 !important; padding-right: 0 !important; }
    .dl-site .card-body .title { font-size: .875rem; }
    .dl-site .section.details { background: transparent; }
    .dl-site p { color: var(--dl-text-2); }
    .dl-site .btn-primary, .dl-site .btn-secondary { border-radius: var(--dl-radius-md); }
    .dl-site .btn-primary { background: var(--dl-navy); color: #fff; }
    .dl-site .btn-secondary { background: var(--dl-surface); color: var(--dl-navy); }
    .dl-site .dl-row, .dl-site .dl-row-address { grid-template-columns: 1fr; gap: 0; }
    .dl-site .dl-row > .dl-field, .dl-site .dl-row-address > .dl-field { margin-bottom: 16px; }
    .dl-site .app-promo { padding: 24px; }
    .dl-site .store-btn { flex: 1 1 160px; }
}
@media (max-width: 380px) {
    .dl-site .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Keep the light theme readable everywhere ---------- */
/* Stop any dark background from older styles (e.g. a dark-mode rule) showing through behind light-theme text. */
html {
    color-scheme: light;
}

body:has(.dl-site) {
    background: var(--dl-bg) !important;
}

.dl-site main,
.dl-site article {
    background-color: transparent !important;
    background-image: none !important;
}

/* Muted / small helper text: readable gray on white (site and portal) */
.dl-site .text-muted,
.dl-portal .text-muted {
    color: var(--dl-text-2) !important;
}

.dl-site .small.text-muted,
.dl-portal .small.text-muted {
    color: var(--dl-text-2) !important;
    font-weight: 500;
}

/* ---------- Lightbox (rendered at <body>, so not scoped) ---------- */
html.dl-lightbox-lock { overflow: hidden; }
.dl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, .92);
    display: none;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.dl-lightbox.open { display: flex; animation: dlLightboxIn .18s ease-out; }
@keyframes dlLightboxIn { from { opacity: 0; } to { opacity: 1; } }
.dl-lightbox-stage {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}
.dl-lightbox-stage img {
    max-width: 94vw;
    max-height: 86vh;
    object-fit: contain;
    pointer-events: auto !important;
    cursor: zoom-in;
    transform-origin: center center;
    touch-action: none;
    will-change: transform;
}
.dl-lightbox.zoomed .dl-lightbox-stage img { cursor: grab; }
.dl-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1;
}
.dl-lightbox-close:hover { background: rgba(255, 255, 255, .28); }
.dl-lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    top: 24px;
    text-align: center;
    color: #fff;
    font: 600 .95rem/1.3 var(--dl-font);
    padding: 0 72px;
    pointer-events: none;
}
.dl-lightbox-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .75);
    background: rgba(0, 0, 0, .4);
    border-radius: 999px;
    padding: 4px 12px;
    font: 400 .8rem/1.4 var(--dl-font);
    white-space: nowrap;
    pointer-events: none;
}
.dl-lightbox.zoomed .dl-lightbox-hint { display: none; }
