:root {
    --brand: #dc3545;
    --brand-dark: #a71d2a;
    --soft: #f8d7da;
}

body {
    background: #f7f7f9;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero {
    background: linear-gradient(135deg, #dc3545 0%, #e4606d 100%);
    color: #fff;
}

.hero .container {
    max-width: 100%;
}

@media (min-width: 992px) {
    .hero .row {
        justify-content: center;
    }
    .hero .col-lg-8 {
        max-width: 760px;
    }
    .hero .col-lg-4 {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .hero .bg-white {
        max-width: 320px;
        margin: 0 auto;
    }
    .hero .bg-white .display-6,
    .hero .bg-white .text-secondary {
        text-align: center;
    }
    .hero .display-5,
    .hero .lead,
    .hero .text-secondary {
        text-align: center;
    }
    .navbar .container {
        justify-content: center;
    }
    .navbar-brand,
    .navbar .btn {
        margin: 0 .4rem;
    }
}

.event-card {
    border: 0;
    border-left: 5px solid #dee2e6;
    border-radius: .8rem;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 .4rem 1.2rem rgba(0,0,0,.08) !important;
}

.event-card.selected {
    border-left-color: var(--brand);
    background: var(--soft);
}

.event-card.conflict {
    border-left-color: #dc3545;
}

.event-card .time {
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

.type-badge {
    font-size: .72rem;
}

.venue {
    color: #6c757d;
    font-size: .9rem;
}

.speaker-list {
    color: #495057;
    font-size: .9rem;
}

.sticky-summary {
    position: sticky;
    top: 1rem;
}

.selected-item {
    border-left: 3px solid var(--brand);
}

.day-nav .btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.filter-bar {
    top: 0;
    z-index: 1020;
}

.empty {
    padding: 4rem 1rem;
    text-align: center;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .sticky-summary {
        position: static;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .hero .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .filter-bar {
        padding: 1rem !important;
    }
    .filter-bar .row > .col-md-6 {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .day-nav {
        flex-wrap: wrap;
    }
    .day-nav .btn {
        flex: 1 1 48%;
        margin-bottom: .5rem;
    }
    .modal-dialog {
        margin: 0.5rem;
    }
}

#my-program {
    text-align: center;
}

#my-program .my-program-actions .btn {
    min-width: 180px;
}

.selected-summary {
    cursor: pointer;
}

@media (min-width: 768px) {
    #my-program .my-program-actions .btn {
        min-width: 220px;
    }
}

@media print {
    .no-print,
    .navbar,
    .hero,
    #catalogue,
    .filter-bar,
    .modal,
    .modal-backdrop {
        display: none !important;
    }
    body {
        background: #fff;
    }
    main {
        padding: 0;
    }
    #my-program {
        display: block !important;
    }
    #print-program-preview {
        display: block !important;
    }
    #print-program-preview .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    #print-program-preview details {
        display: block !important;
    }
    #print-program-preview details > *:not(summary) {
        display: block !important;
    }
    .print-only {
        display: block !important;
    }
}

.print-only {
    display: none;
}
