/* ========================================
   Edinburgh Festival Jobs — Design System
   Clean, card-based, mobile-first
   ======================================== */

/* --- Palette & Variables --- */
:root {
    --efj-primary: #162B4D;        /* Edinburgh midnight navy */
    --efj-primary-light: #1E3A66;
    --efj-primary-dark: #0D1B30;
    --efj-accent: #E69B00;         /* Festival gold/amber */
    --efj-accent-light: #F5AE1E;
    --efj-cta: #FF5A47;            /* Warm coral for CTAs */
    --efj-cta-hover: #E84535;
    --efj-success: #00B894;
    --efj-warning: #F5A623;
    --efj-info: #3B82F6;
    --efj-bg: #F8F9FB;
    --efj-card-bg: #FFFFFF;
    --efj-text: #1A1D26;
    --efj-text-muted: #555555;
    --efj-border: #E5E7EB;
    --efj-radius: 14px;
    --efj-radius-sm: 8px;
    --efj-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --efj-shadow-md: 0 4px 14px rgba(0,0,0,0.07);
    --efj-shadow-lg: 0 10px 28px rgba(0,0,0,0.1);
    --efj-transition: 0.2s ease;
}

/* --- Base --- */
html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}
@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--efj-bg);
    color: var(--efj-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 70px;
}
@media (min-width: 992px) {
    body { padding-bottom: 0; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--efj-text);
    letter-spacing: -0.01em;
}
.display-5, .display-6 { font-weight: 800; }

a {
    color: var(--efj-primary);
    transition: color var(--efj-transition);
}
a:hover { color: var(--efj-primary-light); }

/* --- Cards --- */
.card {
    border: 1px solid var(--efj-border);
    border-radius: var(--efj-radius);
    box-shadow: var(--efj-shadow);
    background: var(--efj-card-bg);
    transition: box-shadow var(--efj-transition), transform var(--efj-transition);
}
.card:hover {
    box-shadow: var(--efj-shadow-md);
}
a .job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--efj-shadow-lg);
}
.card-header {
    border-radius: var(--efj-radius) var(--efj-radius) 0 0 !important;
}

/* --- Buttons --- */
.btn {
    border-radius: var(--efj-radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all var(--efj-transition);
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(22, 43, 77, 0.2);
}

.btn-primary {
    background-color: var(--efj-primary);
    border-color: var(--efj-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--efj-primary-light);
    border-color: var(--efj-primary-light);
}

.btn-outline-primary {
    color: var(--efj-primary);
    border-color: var(--efj-primary);
}
.btn-outline-primary:hover {
    background-color: var(--efj-primary);
    border-color: var(--efj-primary);
    color: #fff;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    border-radius: var(--efj-radius);
    font-size: 1.05rem;
    min-height: 48px;
}

/* CTA button — warm coral, used for primary actions */
.btn-cta {
    background-color: var(--efj-cta);
    border-color: var(--efj-cta);
    color: #fff;
    font-weight: 700;
}
.btn-cta:hover, .btn-cta:focus {
    background-color: var(--efj-cta-hover);
    border-color: var(--efj-cta-hover);
    color: #fff;
}

/* --- Forms --- */
.form-control, .form-select {
    border-radius: var(--efj-radius-sm);
    border-color: var(--efj-border);
    padding: 0.625rem 0.875rem;
    transition: border-color var(--efj-transition), box-shadow var(--efj-transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--efj-primary);
    box-shadow: 0 0 0 0.15rem rgba(22, 43, 77, 0.12);
}
.form-control-lg, .form-select-lg {
    min-height: 48px;
    font-size: 1rem;
}

/* --- Badges --- */
.badge {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.35em 0.65em;
    font-size: 0.78rem;
}

/* --- Navbar --- */
.navbar {
    background: var(--efj-card-bg) !important;
    box-shadow: var(--efj-shadow);
}
.navbar-collapse {
    background: var(--efj-card-bg);
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 0.5rem 0;
    }
}
.navbar-brand {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.navbar-brand img {
    transition: opacity var(--efj-transition);
}
.navbar-brand:hover img {
    opacity: 0.85;
}

/* --- Map --- */
.leaflet-container {
    border-radius: var(--efj-radius-sm);
    z-index: 1;
}
.map-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--efj-card-bg);
    border: 1px solid var(--efj-border);
    border-top: none;
    border-radius: 0 0 var(--efj-radius-sm) var(--efj-radius-sm);
    box-shadow: var(--efj-shadow-md);
    z-index: 10;
    max-height: 250px;
    overflow-y: auto;
}
.search-result-item {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    cursor: pointer;
    border-bottom: 1px solid var(--efj-border);
    transition: background var(--efj-transition);
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: rgba(22, 43, 77, 0.04);
}
.search-result-item.text-muted {
    cursor: default;
}

/* --- Bottom Tab Nav (mobile) --- */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--efj-card-bg);
    border-top: 1px solid var(--efj-border);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    z-index: 1050;
    padding: 0.25rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0.25rem);
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    min-height: 48px;
    font-size: 0.7rem;
    color: var(--efj-text-muted);
    text-decoration: none;
    transition: color var(--efj-transition);
}
.bottom-nav a:focus-visible {
    outline: 3px solid var(--efj-accent);
    outline-offset: -3px;
    border-radius: 4px;
}
.bottom-nav a.active,
.bottom-nav a:hover {
    color: var(--efj-primary);
}
.bottom-nav svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}
@media (min-width: 992px) {
    .bottom-nav { display: none; }
}

/* --- Hero Section --- */
.hero {
    color: #fff;
    border-radius: var(--efj-radius);
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--efj-primary) 0%, var(--efj-primary-dark) 100%);
}
.hero-image {
    position: relative;
    background: url('/images/hero-fireworks.jpg') center 30% / cover no-repeat;
    padding: 0;
    overflow: hidden;
    min-height: 360px;
}
@media (min-width: 768px) {
    .hero-image { min-height: 440px; }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(13, 27, 48, 0.75) 0%,
        rgba(22, 43, 77, 0.6) 50%,
        rgba(13, 27, 48, 0.8) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
}
@media (min-width: 768px) {
    .hero-content { padding: 4.5rem 3rem; }
}
.hero h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
}
.hero p { color: rgba(255,255,255,0.9); }
.hero .form-control {
    border: none;
    box-shadow: var(--efj-shadow-md);
}
.hero .btn {
    background-color: var(--efj-accent);
    border-color: var(--efj-accent);
    color: var(--efj-primary-dark);
    font-weight: 700;
}
.hero .btn:hover {
    background-color: var(--efj-accent-light);
    border-color: var(--efj-accent-light);
}

/* --- CTA Image Card --- */
.cta-image-card {
    position: relative;
    border-radius: var(--efj-radius);
    overflow: hidden;
    background: url('/images/edinburgh-street.jpg') center center / cover no-repeat;
    min-height: 300px;
}
.cta-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(22, 43, 77, 0.88) 0%,
        rgba(13, 27, 48, 0.92) 100%
    );
}
.cta-image-content {
    position: relative;
    z-index: 2;
}

/* --- Category Pills --- */
.category-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--efj-card-bg);
    border: 1px solid var(--efj-border);
    color: var(--efj-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--efj-transition);
    white-space: nowrap;
}
.category-pill:hover {
    background: var(--efj-primary);
    border-color: var(--efj-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--efj-shadow);
}

/* --- Stat Cards --- */
.stat-card .display-6 {
    font-size: 2rem;
}
.stat-card .card-body {
    padding: 1.25rem;
}

/* --- Tables --- */
.table {
    border-radius: var(--efj-radius);
    overflow: hidden;
}
.table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--efj-text-muted);
    font-weight: 600;
    border-bottom-width: 1px;
}

/* --- Job Description --- */
.job-description p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* --- Blog Content --- */
.blog-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.blog-content h3 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}
.blog-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}
.blog-content ul, .blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.blog-content li {
    line-height: 1.7;
    margin-bottom: 0.35rem;
}
.blog-content blockquote {
    border-left: 4px solid var(--efj-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(22, 43, 77, 0.03);
    border-radius: 0 var(--efj-radius-sm) var(--efj-radius-sm) 0;
}
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--efj-radius-sm);
    margin: 1rem 0;
}
.blog-content a {
    color: var(--efj-primary);
    text-decoration: underline;
}
.blog-content a:hover {
    color: var(--efj-primary-light);
}

/* --- Footer --- */
footer {
    background: var(--efj-card-bg);
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--efj-text-muted);
    background: var(--efj-bg);
    transition: all var(--efj-transition);
    text-decoration: none;
}
.social-link:hover {
    color: #fff;
    transform: translateY(-2px);
}
.social-link[aria-label="Facebook"]:hover { background: #1877F2; }
.social-link[aria-label="LinkedIn"]:hover { background: #0A66C2; }
.social-link[aria-label="X (Twitter)"]:hover { background: #000; }

/* --- Pagination --- */
.page-link {
    color: var(--efj-primary);
    border-radius: var(--efj-radius-sm);
    margin: 0 2px;
}
.page-item.active .page-link {
    background-color: var(--efj-primary);
    border-color: var(--efj-primary);
}

/* --- Premium/Featured Accents --- */
.card.border-warning {
    border-color: var(--efj-accent) !important;
    border-width: 2px;
}
.card.border-primary {
    border-color: var(--efj-info) !important;
    border-width: 2px;
}

/* --- Pricing Cards --- */
.pricing-card {
    position: relative;
    overflow: hidden;
    transition: transform var(--efj-transition), box-shadow var(--efj-transition);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--efj-shadow-lg);
}
.pricing-popular {
    border: 2px solid var(--efj-info);
}
.pricing-premium {
    border: 2px solid var(--efj-accent);
}
.pricing-badge {
    display: inline-block;
    padding: 0.3em 0.85em;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.accordion-item {
    border-radius: var(--efj-radius-sm) !important;
    margin-bottom: 0.5rem;
    border: 1px solid var(--efj-border);
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    background-color: rgba(22, 43, 77, 0.04);
    color: var(--efj-primary);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.15rem rgba(22, 43, 77, 0.12);
}

/* --- Breadcrumbs --- */
.breadcrumb {
    font-size: 0.875rem;
}

/* --- Alerts --- */
.alert {
    border-radius: var(--efj-radius-sm);
}

/* ========================================
   Accessibility
   ======================================== */

/* --- Skip Navigation Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--efj-primary);
    color: #fff;
    border-radius: var(--efj-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0.5rem;
    color: #fff;
}

/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Focus Visible (keyboard only) --- */
*:focus-visible {
    outline: 3px solid var(--efj-accent);
    outline-offset: 2px;
}
.btn:focus-visible {
    outline: 3px solid var(--efj-accent);
    outline-offset: 2px;
    box-shadow: none;
}
a:focus-visible {
    outline: 3px solid var(--efj-accent);
    outline-offset: 2px;
    border-radius: 2px;
}
.form-control:focus-visible, .form-select:focus-visible {
    outline: 3px solid var(--efj-accent);
    outline-offset: 0;
}
.nav-link:focus-visible {
    outline: 3px solid var(--efj-accent);
    outline-offset: 2px;
    border-radius: var(--efj-radius-sm);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-up { opacity: 1; transform: none; }
    .card:hover,
    .card:hover .card-img-top,
    a .job-card:hover,
    .pricing-card:hover,
    .category-pill:hover,
    .social-link:hover,
    .btn-primary:hover, .btn-cta:hover, .btn-outline-primary:hover {
        transform: none !important;
    }
    html { scroll-behavior: auto; }
}

/* --- High Contrast Adjustments --- */
@media (forced-colors: active) {
    .btn-cta, .btn-primary, .pricing-badge, .badge {
        border: 1px solid ButtonText;
    }
    .hero-overlay, .cta-image-overlay {
        background: rgba(0, 0, 0, 0.85);
    }
}

/* --- Minimum Touch Target (44x44px WCAG 2.5.8) --- */
.nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* --- Responsive Utilities --- */
@media (max-width: 767.98px) {
    .table-responsive table {
        font-size: 0.875rem;
    }
    h1 { font-size: 1.5rem; }
}

/* ========================================
   Motion & Dynamism
   ======================================== */

/* --- Scroll-triggered fade-in --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
    opacity: 0;
    transform: translateY(24px);
}
.fade-up.is-visible {
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* Stagger children in a row */
.fade-up-stagger .fade-up:nth-child(1) { animation-delay: 0s; }
.fade-up-stagger .fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up-stagger .fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up-stagger .fade-up:nth-child(4) { animation-delay: 0.25s; }
.fade-up-stagger .fade-up:nth-child(5) { animation-delay: 0.3s; }
.fade-up-stagger .fade-up:nth-child(6) { animation-delay: 0.35s; }

/* --- Hero entrance --- */
@keyframes heroContentIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-content {
    animation: heroContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* Subtle gradient shimmer on hero overlay */
.hero-overlay {
    background-size: 200% 200%;
    animation: heroShimmer 12s ease-in-out infinite;
}
@keyframes heroShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* --- Card image zoom on hover --- */
.card-img-top {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card-img-top {
    transform: scale(1.04);
}
.card {
    overflow: hidden;
}

/* --- Job card left accent on hover --- */
.job-card {
    border-left: 3px solid transparent;
    transition: border-color var(--efj-transition), box-shadow var(--efj-transition), transform var(--efj-transition);
}
.job-card:hover {
    border-left-color: var(--efj-accent);
    transform: translateY(-2px);
    box-shadow: var(--efj-shadow-lg);
}
.job-card.border-warning {
    border-left-color: var(--efj-accent);
}
.job-card.border-primary {
    border-left-color: var(--efj-info);
}

/* --- Button hover lift --- */
.btn-primary:hover, .btn-cta:hover, .btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--efj-shadow-md);
}
.btn-primary:active, .btn-cta:active, .btn-outline-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- Category pill count/icon bounce --- */
.category-pill {
    position: relative;
    overflow: hidden;
}
.category-pill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.category-pill:hover::after {
    transform: translateX(100%);
}

/* --- Badge subtle pulse for "Featured" --- */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 155, 0, 0.3); }
    50%      { box-shadow: 0 0 0 6px rgba(230, 155, 0, 0); }
}
.badge.bg-warning {
    animation: badgePulse 2.5s ease-in-out infinite;
}

/* --- CTA section hover parallax --- */
.cta-image-card {
    transition: box-shadow 0.4s ease;
}
.cta-image-card:hover {
    box-shadow: var(--efj-shadow-lg);
}
.cta-image-card:hover .cta-image-overlay {
    background: linear-gradient(
        135deg,
        rgba(22, 43, 77, 0.82) 0%,
        rgba(13, 27, 48, 0.88) 100%
    );
    transition: background 0.4s ease;
}

/* --- Navbar subtle border-bottom glow on scroll (set via JS) --- */
.navbar.scrolled {
    box-shadow: 0 2px 16px rgba(22, 43, 77, 0.1);
}

/* --- Section heading underline accent --- */
.section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--efj-accent);
    border-radius: 2px;
}

/* --- Footer social links — scale bounce --- */
.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

/* --- Blog card title color transition --- */
.card .card-title {
    transition: color var(--efj-transition);
}
a.text-decoration-none:hover .card-title {
    color: var(--efj-primary) !important;
}

/* --- Smooth page scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Who's Hiring Page --- */
.whos-hiring-hero {
    position: relative;
    background: url('/images/blog/whos-hiring-hero.jpg') center 40% / cover no-repeat;
    border-radius: var(--efj-radius);
    overflow: hidden;
    min-height: 260px;
}
@media (min-width: 768px) {
    .whos-hiring-hero { min-height: 320px; }
}
.whos-hiring-hero .hero-overlay {
    background: linear-gradient(
        170deg,
        rgba(13, 27, 48, 0.8) 0%,
        rgba(22, 43, 77, 0.65) 50%,
        rgba(13, 27, 48, 0.85) 100%
    );
}
.section-banner {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--efj-radius);
}
@media (min-width: 768px) {
    .section-banner { height: 200px; }
}

/* Directory card avatar */
.directory-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

/* --- Festival Calendar --- */
.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}
.calendar-table th,
.calendar-table td {
    text-align: center;
    padding: 0;
    border: none;
    font-size: 0.8rem;
}
.calendar-name-col {
    width: 220px;
    text-align: left !important;
    padding: 0.6rem 0.75rem !important;
    font-weight: 600;
    color: var(--efj-text-muted);
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.calendar-month-col {
    padding: 0.6rem 0 !important;
    font-weight: 600;
    color: var(--efj-text-muted);
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.calendar-name-cell {
    text-align: left !important;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.calendar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.calendar-cell {
    position: relative;
    height: 36px;
    vertical-align: middle;
    border-radius: 0;
}
.calendar-bar {
    display: block;
    height: 8px;
    border-radius: 4px;
    margin: 0 1px;
    opacity: 0.85;
}
.calendar-bar-light {
    opacity: 0.3;
}
.calendar-cell-hires {
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
}
.calendar-now {
    background: rgba(230, 155, 0, 0.08) !important;
}
.calendar-now::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--efj-accent);
    opacity: 0.4;
    transform: translateX(-50%);
    pointer-events: none;
}
th.calendar-now {
    color: var(--efj-accent) !important;
    font-weight: 700;
    position: relative;
}
.calendar-key {
    display: inline-block;
    width: 24px;
    height: 8px;
    border-radius: 4px;
}
.calendar-key-runs {
    background: var(--efj-primary);
    opacity: 0.3;
}
.calendar-key-hires {
    background: var(--efj-primary);
    opacity: 0.85;
}
.calendar-key-now {
    background: var(--efj-accent);
    opacity: 0.5;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--efj-card-bg);
    border-top: 1px solid var(--efj-border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    z-index: 1060;
    padding: 1rem 0;
}
.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .cookie-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.cookie-banner-text {
    flex: 1;
}
.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.cookie-banner ~ .bottom-nav {
    bottom: 80px;
}
@media (min-width: 768px) {
    .cookie-banner ~ .bottom-nav {
        bottom: 65px;
    }
}
