/* =========================================================
   Kursfinder / Eulenkurse — global design tokens & utilities
   Stack: Bootstrap 5, HTMX, no build toolchain (plain CSS)
   ========================================================= */

/* ----- Design tokens ------------------------------------ */
:root {
    --kf-primary: #0f766e;
    --kf-primary-hover: #0d5f58;
    --kf-primary-soft: #ccfbf1;
    --kf-primary-softer: #f0fdfa;

    --kf-accent: #d97706;
    --kf-accent-hover: #b45309;
    --kf-accent-soft: #fef3c7;

    --kf-success: #059669;
    --kf-success-soft: #d1fae5;
    --kf-warning: #f59e0b;
    --kf-warning-soft: #fef3c7;
    --kf-danger: #dc2626;
    --kf-danger-soft: #fee2e2;

    --kf-bg: #fafaf9;
    --kf-surface: #ffffff;
    --kf-surface-raised: #fffbeb;

    --kf-text: #1c1917;
    --kf-text-secondary: #57534e;
    --kf-muted: #a8a29e;

    --kf-border: #e7e5e4;
    --kf-border-light: #f5f5f4;

    --kf-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    --kf-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --kf-shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --kf-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.07), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --kf-shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.12);

    --kf-radius: 0.75rem;
    --kf-radius-lg: 1rem;
    --kf-radius-xl: 1.5rem;
    --kf-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Base --------------------------------------------- */
* {
    font-feature-settings: 'cv11', 'ss01';
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--kf-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}

/* ----- Surfaces ----------------------------------------- */
.card,
.dropdown-menu {
    border-radius: var(--kf-radius-lg);
}

.navbar {
    border-radius: 0;
}

.card {
    background: var(--kf-surface);
    border: 1px solid var(--kf-border) !important;
    box-shadow: var(--kf-shadow);
    transition: box-shadow var(--kf-transition), transform var(--kf-transition), border-color var(--kf-transition);
}

.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--kf-border-light);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: all var(--kf-transition);
}

.navbar.scrolled {
    box-shadow: var(--kf-shadow);
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand img {
    height: 32px;
}

/* ----- Course cards ------------------------------------- */
.course-card {
    transition: transform var(--kf-transition), box-shadow var(--kf-transition), border-color var(--kf-transition);
    cursor: pointer;
    overflow: visible;
    position: relative;
    z-index: 0;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kf-shadow-lg);
    border-color: var(--kf-primary-soft);
    z-index: 3100;
}

.course-card .dropdown {
    position: relative;
    z-index: 3000;
}

.course-card .dropdown-menu {
    z-index: 3050 !important;
}

/* ----- Provider logo frames ----------------------------- */
/*
 * All logo frames use a fixed canvas so mixed-source logos render consistently.
 * Frames stay light and logos blend with mix-blend-mode: multiply, which makes
 * white logo backgrounds disappear. Logos that are white-on-transparent
 * (provider.logo_needs_dark_bg) get the --dark variant instead.
 */
.provider-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--kf-border-light);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    flex-shrink: 0;
}

.provider-logo-frame--lg {
    width: 56px;
    height: 56px;
    padding: 8px;
}

.provider-logo-frame--xl {
    width: 76px;
    height: 76px;
    padding: 10px;
}

.provider-logo-frame--sm {
    width: 28px;
    height: 28px;
    padding: 3px;
    border-radius: 8px;
}

.provider-logo-frame--hero {
    width: 100%;
    height: 100px;
    padding: 8px 34px;
    border-radius: 10px;
    box-shadow: var(--kf-shadow-sm);
}

/* White-on-transparent logos are unreadable on the light frames */
.provider-logo-frame--dark {
    background: #596373;
    border-color: #454e5c;
}

.provider-logo-band {
    height: 92px;
    margin: -1.5rem -1.5rem 1rem;
    border-bottom: 1px solid var(--kf-border-light);
    border-top-left-radius: calc(var(--kf-radius-lg) - 1px);
    border-top-right-radius: calc(var(--kf-radius-lg) - 1px);
    background:
        radial-gradient(circle at 18% 20%, #fff7ed 0%, transparent 40%),
        radial-gradient(circle at 84% 78%, #ecfeff 0%, transparent 42%),
        linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    mix-blend-mode: multiply;
}

.provider-logo-frame--dark .provider-logo-image {
    mix-blend-mode: normal;
}

.provider-logo-fallback {
    color: var(--kf-primary);
}

.provider-logo-fallback--hero {
    font-size: 1.35rem;
}

/* ----- Provider badge (course cards) -------------------- */
.provider-badge {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    cursor: default;
}

/* ----- Status badges ------------------------------------ */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    border-radius: 999px;
}

.badge-available {
    background-color: var(--kf-success-soft);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-almost-full {
    background-color: var(--kf-warning-soft);
    color: #b45309;
    border: 1px solid #fcd34d;
}

.badge-waitlist {
    background-color: var(--kf-danger-soft);
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.badge-full {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* ----- Forms -------------------------------------------- */
.form-label,
.form-check-label {
    color: var(--kf-text);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: var(--kf-radius);
    border: 1px solid var(--kf-border);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: border-color var(--kf-transition), box-shadow var(--kf-transition), background-color var(--kf-transition);
}

.form-control::placeholder {
    color: var(--kf-muted);
}

.form-control:hover,
.form-select:hover {
    border-color: #cbd5e1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--kf-primary);
    box-shadow: 0 0 0 3px var(--kf-primary-soft);
    background-color: #fff;
}

.input-group-text {
    background: var(--kf-bg);
    color: var(--kf-text-secondary);
    border-color: var(--kf-border);
}

.input-group:focus-within .input-group-text {
    border-color: var(--kf-primary);
    color: var(--kf-primary);
}

/* ----- Tom Select --------------------------------------- */
.ts-wrapper {
    border: none !important;
    box-shadow: none !important;
}

.ts-wrapper .ts-control {
    border-radius: var(--kf-radius);
    border: 1px solid var(--kf-border) !important;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    transition: border-color var(--kf-transition), box-shadow var(--kf-transition);
    background: var(--kf-surface);
}

.ts-wrapper .ts-control:hover {
    border-color: #cbd5e1 !important;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--kf-primary) !important;
    box-shadow: 0 0 0 3px var(--kf-primary-soft);
}

.ts-wrapper.multi .ts-control > div {
    background: var(--kf-primary-soft);
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.ts-dropdown {
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow-lg);
    margin-top: 4px;
}

.ts-dropdown .option {
    padding: 0.625rem 0.875rem;
    transition: background-color var(--kf-transition);
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background: var(--kf-primary-softer);
    color: var(--kf-primary-hover);
}

/* ----- Navbar menus ------------------------------------- */
.user-dropdown-toggle {
    background: var(--kf-primary-soft);
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all var(--kf-transition);
}

.user-dropdown-toggle:hover {
    background: var(--kf-primary-softer);
    border-color: var(--kf-primary);
}

.user-menu .dropdown-menu {
    border: 1px solid var(--kf-border);
    box-shadow: var(--kf-shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
}

.user-menu .dropdown-item {
    border-radius: var(--kf-radius);
    padding: 0.625rem 0.875rem;
    font-weight: 500;
    color: var(--kf-text-secondary);
    transition: all var(--kf-transition);
}

.user-menu .dropdown-item:hover {
    background: var(--kf-primary-softer);
    color: var(--kf-primary-hover);
}

.user-menu .dropdown-item i {
    opacity: 0.7;
}

.user-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--kf-border-light);
}

.main-menu .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: var(--kf-radius);
    color: var(--kf-text-secondary);
    border: 1px solid transparent;
    transition: all var(--kf-transition);
    font-size: 0.9375rem;
}

.main-menu {
    gap: 0.25rem;
}

.main-menu .nav-link:hover,
.main-menu .nav-link:focus {
    background: var(--kf-primary-softer);
    border-color: transparent;
    color: var(--kf-primary);
}

.main-menu .nav-link.active {
    background: var(--kf-primary-soft);
    color: var(--kf-primary-hover);
    border-color: #c7d2fe;
}

.user-menu-nav {
    gap: 0.25rem;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--kf-border);
    margin: 0 0.5rem;
}

.user-menu-list {
    border-left: 1px solid var(--kf-border);
    padding-left: 0.75rem;
    margin-left: 0.75rem;
}

/* ----- Buttons ------------------------------------------ */
.btn {
    border-radius: var(--kf-radius);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    transition: all var(--kf-transition);
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--kf-radius-lg);
}

.btn-primary {
    background: var(--kf-accent);
    border: none;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.15);
    color: #fff;
}

.btn-primary:hover {
    background: var(--kf-accent-hover);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.15);
}

.btn-outline-primary {
    border: 1.5px solid var(--kf-border);
    color: var(--kf-text-secondary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--kf-primary-softer);
    border-color: var(--kf-primary);
    color: var(--kf-primary);
}

.btn-outline-secondary {
    border: 1.5px solid var(--kf-border);
    color: var(--kf-text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--kf-bg);
    border-color: #cbd5e1;
    color: var(--kf-text);
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--kf-radius);
    border-bottom-left-radius: var(--kf-radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--kf-radius);
    border-bottom-right-radius: var(--kf-radius);
}

.btn-group .btn.active {
    background: var(--kf-primary);
    border-color: var(--kf-primary);
    color: #fff;
}

/* ----- Alerts ------------------------------------------- */
.alert {
    border-radius: var(--kf-radius);
    border: 1px solid var(--kf-border);
    padding: 1rem 1.25rem;
}

.alert-info {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.alert-warning {
    background: var(--kf-warning-soft);
    border-color: #fcd34d;
    color: #92400e;
}

/* ----- Hero / Home -------------------------------------- */
.hero-panel {
    background: linear-gradient(135deg, #ffffff 0%, var(--kf-primary-softer) 100%);
    border: 1px solid var(--kf-border);
    border-radius: var(--kf-radius-xl);
    box-shadow: var(--kf-shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, var(--kf-primary-soft) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-panel {
        background: linear-gradient(180deg, #ffffff 0%, var(--kf-primary-softer) 100%);
    }

    .hero-panel::before {
        top: -30%;
        right: -50%;
        width: 100%;
        height: 100%;
        opacity: 0.3;
    }
}

.search-card {
    border-radius: var(--kf-radius-lg);
    box-shadow: var(--kf-shadow-xl);
    border: 1px solid var(--kf-border-light) !important;
    position: relative;
    z-index: 1;
    background: var(--kf-surface);
}

@media (max-width: 768px) {
    .search-card {
        box-shadow: var(--kf-shadow);
    }
}

/* ----- Typography --------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--kf-text);
    letter-spacing: -0.025em;
}

.display-4, .display-5, .display-6 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.text-muted {
    color: var(--kf-muted) !important;
}

.fw-semibold {
    font-weight: 600;
}

a {
    color: var(--kf-primary);
    text-decoration: none;
    transition: color var(--kf-transition);
}

a:hover {
    color: var(--kf-primary-hover);
}

.bi {
    vertical-align: -0.125em;
}

/* ----- Star button -------------------------------------- */
.btn-star {
    border: none;
    background: none;
    color: #fbbf24;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform var(--kf-transition), color var(--kf-transition);
    padding: 0.25rem;
}

.btn-star:hover {
    transform: scale(1.15);
}

.btn-star:active {
    transform: scale(0.95);
}

.btn-star.starred {
    color: #f59e0b;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.btn-star:not(.starred) {
    color: #cbd5e1;
}

.btn-star:not(.starred):hover {
    color: #fbbf24;
}

/* ----- Calendar ----------------------------------------- */
#calendar {
    min-height: 500px;
}

.fc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.fc .fc-button-primary {
    background: var(--kf-primary);
    border-color: var(--kf-primary);
    font-weight: 500;
    border-radius: var(--kf-radius);
    padding: 0.4rem 0.75rem;
}

.fc .fc-button-primary:hover {
    background: var(--kf-primary-hover);
    border-color: var(--kf-primary-hover);
}

.fc .fc-daygrid-day.fc-day-today {
    background: var(--kf-primary-softer);
}

.fc-event {
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.8125rem;
}

.fc .fc-daygrid-event {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc .fc-daygrid-event .fc-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc .fc-daygrid-event-harness {
    margin-bottom: 1px;
}

@media (max-width: 768px) {
    .fc {
        font-size: 0.75rem;
    }

    .fc .fc-daygrid-event {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .fc .fc-daygrid-event-harness {
        margin-bottom: 1px;
    }

    .fc .fc-daygrid-day-events {
        min-height: auto !important;
    }

    .fc-event {
        padding: 1px 4px;
        font-size: 0.6875rem;
        line-height: 1.2;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 60px;
    }

    .fc .fc-col-header-cell-cushion,
    .fc .fc-daygrid-day-number {
        font-size: 0.75rem;
        padding: 4px;
    }

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1.125rem;
    }

    .fc .fc-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }
}

/* ----- Map ---------------------------------------------- */
#map {
    height: 500px;
    border-radius: var(--kf-radius-lg);
    border: 1px solid var(--kf-border);
    box-shadow: var(--kf-shadow);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--kf-radius);
    box-shadow: var(--kf-shadow-lg);
}

/* ----- HTMX indicators ---------------------------------- */
.htmx-indicator {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-block;
    opacity: 1;
}

.spinner-border {
    border-width: 2px;
}

/* ----- Skeleton loading --------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--kf-radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ----- Tables ------------------------------------------- */
.table {
    font-size: 0.9375rem;
}

.table > thead {
    background: var(--kf-bg);
}

.table > thead th {
    font-weight: 600;
    color: var(--kf-text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--kf-border);
}

.table > tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--kf-border-light);
}

.table > tbody tr:hover {
    background: var(--kf-primary-softer);
}

/* Responsive table: stacked cards on mobile */
.table-responsive-cards {
    display: block;
}

@media (max-width: 768px) {
    .table-responsive-cards thead {
        display: none;
    }

    .table-responsive-cards tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid var(--kf-border);
        border-radius: var(--kf-radius);
        padding: 1rem;
        background: var(--kf-surface);
        box-shadow: var(--kf-shadow-sm);
    }

    .table-responsive-cards tbody tr:hover {
        border-color: var(--kf-primary-soft);
    }

    .table-responsive-cards tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.375rem 0;
        border: none;
    }

    .table-responsive-cards tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
        color: var(--kf-text-secondary);
        font-size: 0.8125rem;
    }
}

/* ----- Filter sidebar (mobile slide-in) ----------------- */
@media (max-width: 991px) {
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--kf-surface);
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 1.5rem;
        box-shadow: var(--kf-shadow-xl);
    }

    .filter-sidebar.show {
        transform: translateX(0);
    }

    .filter-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .filter-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
}

/* ----- Animations --------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

.hover-lift {
    transition: transform var(--kf-transition), box-shadow var(--kf-transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--kf-shadow-lg);
}

/* ----- Scrollbar ---------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--kf-bg);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ----- Pagination --------------------------------------- */
.pagination .page-link {
    border: 1px solid var(--kf-border);
    color: var(--kf-text-secondary);
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    margin: 0 2px;
    border-radius: var(--kf-radius);
    transition: all var(--kf-transition);
}

.pagination .page-link:hover {
    background: var(--kf-primary-softer);
    border-color: var(--kf-primary-soft);
    color: var(--kf-primary);
}

.pagination .page-item.active .page-link {
    background: var(--kf-primary);
    border-color: var(--kf-primary);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background: var(--kf-bg);
    color: var(--kf-muted);
}

/* ----- Empty state -------------------------------------- */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--kf-primary-softer);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--kf-primary);
    font-size: 2rem;
}

/* ----- Owl logo ----------------------------------------- */
.owl-logo {
    font-size: 1.5rem;
}

/* ----- Data freshness indicator ------------------------- */
.data-status {
    font-size: 0.75rem;
    color: var(--kf-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--kf-bg);
    border-radius: var(--kf-radius);
    border: 1px solid var(--kf-border-light);
}

.data-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--kf-success);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
