/* ─── BLCKSPRT Calendar — Frontend (Minimal / Typographique) ── */

/* ─── Calendar Header (filters + search) ─────────────────── */

.blck-cal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10000;
}

.blck-cal-filters {
    flex: 1;
    position: relative;
    z-index: 10000;
}

.blck-cal-select-wrap {
    position: relative;
    display: inline-block;
}

.blck-cal-select-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 260px;
    height: 40px;
    padding: 0 32px 0 16px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.blck-cal-select-trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -2px;
    border: 4px solid transparent;
    border-top-color: #999;
}

.blck-cal-select-dot,
.blck-cal-select-dot-opt {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.blck-cal-select-drop {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    width: max-content;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    z-index: 10000;
    max-height: 240px;
    overflow-y: auto;
}

.blck-cal-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.blck-cal-select-option:hover {
    background: #F5F5F5;
}

.blck-cal-select-option.is-active {
    background: #F0F0EE;
}

.blck-cal-select-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blck-cal-cat-select {
    width: 100%;
    max-width: 320px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 32px 0 28px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}


.blck-cal-cat-select:focus {
    border-color: #AAA;
}

.blck-cal-cat-select::before {
    content: '●';
    display: inline-block;
    margin-right: 6px;
    color: var(--selected-color, transparent);
    font-size: 10px;
}

.blck-cal-search {
    margin-left: 12px;
    flex: 0 1 260px;
    position: relative;
}




.blck-cal-view-btn:last-child {
    border-right: none;
}




/* ─── Week view ──────────────────────────────────────────── */

.blck-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border-top: 1px solid #EDEDED;
    border-left: 1px solid #EDEDED;
}

.blck-week-col {
    border-right: 1px solid #EDEDED;
    border-bottom: 1px solid #EDEDED;
    min-height: 200px;
    padding: 0;
    overflow: visible;
}

.blck-week-header {
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid #F0F0F0;
}

.blck-week-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 0;
}

.blck-week-day-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    letter-spacing: .05em;
}

.blck-week-day-num {
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

/* ─── Day view ───────────────────────────────────────────── */



















.blck-day-empty {
    text-align: center;
    color: #BBB;
    padding: 60px 0;
}

.blck-cal-search-input {
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}

.blck-cal-search-input:focus { border-color: #AAA; }
.blck-cal-search-input::placeholder { color: #BBB; }

/* ─── Category Filters ──────────────────────────────────── */

.blck-cal-event-wrap.is-filtered {
    opacity: .15;
    pointer-events: none;
    transition: opacity .3s ease;
}

.blck-cal-event-wrap {
    position: relative;
    overflow: visible;
    z-index: 1;
}
.blck-cal-event-wrap:hover { z-index: 100; }
.blck-cal-event-wrap:hover {
    z-index: 100;
}

/* ─── Single Event Meta ─────────────────────────────────── */

.blck-single-event {
    padding: 40px 0 60px 0;
}

.blck-event-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.blck-event-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.blck-event-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.blck-event-body {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .blck-event-layout {
        flex-direction: column;
        gap: 24px;
    }
    .blck-event-image {
        flex: 1;
        max-width: 100%;
    }
}

.blck-event-meta-top {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 36px 0;
    padding-bottom: 18px;
    border-bottom: 1px solid #EDEDED;
}

.blck-event-header {
    margin-bottom: 36px;
}

.blck-event-title {
    font-size: 2.2em;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
    color: #222;
}

.blck-event-subtitle {
    font-size: 18px;
    color: #555;
    margin: 0 0 0 0 !important;
    padding: 0 0 10px 0 !important;
    line-height: 1.4;
    line-height: 1.5;
}

.blck-subtitle-date {
    font-weight: 700;
    color: #222;
}

.blck-subtitle-time {
    font-weight: 500;
    color: #444;
}

.blck-recap-value a,
.blck-recap-value a:link,
.blck-recap-value a:visited {
    color: #222;
    text-decoration: none !important;
}

.blck-recap-value a:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.blck-subtitle-location,
.blck-subtitle-location:link,
.blck-subtitle-location:visited {
    color: #999;
    text-decoration: none !important;
}

.blck-subtitle-location:hover {
    color: #555;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blck-subtitle-org {
    color: #777;
}

.blck-subtitle-org-site {
    font-size: 12px;
    color: #AAA;
    text-decoration: none;
}

.blck-subtitle-org-site:hover {
    color: #666;
}

.blck-subtitle-location .fa-arrow-up-right-from-square {
    font-size: 10px;
    margin-left: 2px;
    opacity: .6;
}

.blck-event-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #AAA;
    text-decoration: none;
    letter-spacing: .03em;
}

.blck-event-back-link:hover {
    color: #555;
}

.blck-meta-time {
    font-weight: 600;
    color: #222;
}

.blck-event-label {
    color: #AAA;
    font-size: 14px;
    font-weight: 400;
}

.blck-meta-sep {
    color: #CCC;
    margin: 0 8px;
    font-weight: 300;
}



/* ─── Reserved zone ─────────────────────────────────────── */

.blck-event-reserved {
    margin: 36px 0;
}

.blck-event-reserved:empty {
    display: none;
}

/* ─── Recap ─────────────────────────────────────────────── */

.blck-event-recap {
    padding: 32px 0;
    border-top: 1px solid #EDEDED;
}

.blck-event-recap-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #AAA;
    margin: 0 0 20px 0;
    padding: 0;
}

.blck-recap-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.blck-recap-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 600px) {
    .blck-recap-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.blck-recap-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blck-recap-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #BBB;
}

.blck-recap-value {
    font-size: 14px;
    color: #222;
    line-height: 1.5;
}

.blck-recap-value a {
    color: #222;
    text-decoration: underline;
    text-underline-offset: 3px;
}



/* ─── Bottom preview (next/prev event) ──────────────────── */

.blck-cal-preview {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.blck-cal-preview-card {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
    transition: opacity .15s;
}
.blck-cal-preview-card.blck-cal-preview-next {
    justify-content: flex-end;
}

.blck-cal-preview-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #BBB;
    margin-bottom: 4px;
}

.blck-cal-preview-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    align-self: center;
}

.blck-cal-preview-text {
    min-width: 0;
    align-self: center;
}

.blck-cal-preview-arrow {
    display: inline-block;
    margin: 0 4px;
    color: #BBB;
    font-size: 14px;
}

.blck-cal-preview-none {
    font-size: 11px;
    color: #BBB;
}

.blck-cal-preview-card.is-empty {
    opacity: .4;
    pointer-events: none;
}

.blck-cal-preview-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.blck-calendar-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.blck-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.blck-cal-month-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0;
    letter-spacing: -.01em;
}

.blck-cal-nav-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 50px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: border-color .15s;
}

.blck-cal-nav-btn:hover {
    color: #333;
}

.blck-cal-today-btn {
    padding: 0 16px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: auto;
    
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: all .15s;
    margin-left: 8px;
}

.blck-cal-today-btn:hover {
    border-color: #AAA;
    color: #333;
}

.blck-calendar-nav-bottom {
    margin-top: 20px;
    margin-bottom: 0;
    justify-content: space-between;
}

/* ─── Calendar Grid ─────────────────────────────────────── */

.blck-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border-top: 1px solid #EDEDED;
    border-left: 1px solid #EDEDED;
}

.blck-cal-header-cell {
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #999;
    border-right: 1px solid #EDEDED;
    border-bottom: 1px solid #EDEDED;
}
.blck-cal-empty {
    border-right: 1px solid #EDEDED;
    border-bottom: 1px solid #EDEDED;
    background: #FAFAFA;
}

.blck-cal-day {
    min-height: 140px;
    padding: 4px 0;
    border-right: 1px solid #EDEDED;
    border-bottom: 1px solid #EDEDED;
    transition: background .1s;
    overflow: visible;
    min-width: 0;
}

.blck-cal-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow: visible;
    position: relative;
}

.blck-cal-more {
    display: block;
    text-align: right;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    margin-top: 2px;
    padding-right: 8px;
    transition: color .15s;
}
.blck-cal-more:hover { background: #F5F5F5; }
.blck-cal-more.open { color: #1F2E47; }

.blck-cal-overflow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    z-index: 20;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    padding: 18px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 14px;
}

.blck-cal-overflow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, #fff);
    border-radius: 0 0 14px 14px;
    pointer-events: none;
}

.blck-cal-day-num {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    margin-bottom: 6px;
    margin-left: 4px;
}

.blck-cal-event.is-multi {
    border-radius: 0;
    padding-right: 0;
    position: relative;
    z-index: 1;
}
.blck-cal-event.is-multi-first {
    border-radius: 999px 0 0 999px;
    margin-left: 3px;
    margin-right: -1px;
    position: relative;
    z-index: 1;
}
.blck-cal-event.is-multi-last {
    border-radius: 0 999px 999px 0;
    margin-right: 3px;
    margin-left: -1px;
    position: relative;
    z-index: 1;
}
.blck-cal-event.is-multi-mid {
    border-radius: 0;
    margin-left: -1px;
    margin-right: -1px;
    position: relative;
    z-index: 1;
}

.blck-cal-day:hover {
    background: #FAFAFA;
}

.blck-cal-today {
    background: #FFFDF7;
}

.blck-cal-today .blck-cal-day-num {
    background: #222;
    color: #fff;
}

/* ─── Events in cells ──────────────────────────────────── */

.blck-cal-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.blck-cal-event {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    min-height: 24px;
    margin: 0 3px;
    border-radius: 50px;
    background: #F5F5F5;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.2;
    color: #222;
    transition: background .1s;
}

.blck-calendar-tooltips .blck-cal-event-wrap:hover .blck-cal-event {
    z-index: 10;
}

.blck-cal-event-title-mobile { display: none; }

.blck-cal-event-title {
    font-weight: 600;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blck-cal-event-time {
    font-size: 10px;
    font-weight: 500;
    color: inherit;
    opacity: .7;
}

/* ─── Hover tooltip ─────────────────────────────────────── */

.blck-cal-tooltip {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    z-index: 100;
    width: 300px;
    margin-top: 6px;
    background: #fff;
    
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.blck-calendar-tooltips .blck-cal-event-wrap:hover .blck-cal-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    z-index: 10000;
}

.blck-cal-tooltip-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #F5F5F5;
}

.blck-cal-tooltip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blck-cal-tooltip-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.blck-cal-tooltip-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.blck-cal-tooltip-datetime {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

.blck-cal-tooltip-loc {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
    margin-top: 15px;
    margin-bottom: 5px;
}

.blck-cal-tooltip-cats {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}



/* ─── Zebra stripe ──────────────────────────────────────── */

.blck-calendar-striped .blck-calendar-grid tbody tr:nth-child(even) td:not(.blck-cal-empty) {
    background: #FAFAFA !important;
}

.blck-calendar-striped .blck-cal-today {
    background: #FFFDF7 !important;
}

/* ─── Responsive ───────────────────────────────────────── */

/* Tablet: reduce density (601–768px) */
@media (max-width: 768px) and (min-width: 641px) {
    .blck-calendar-grid th { font-size: 10px; padding: 6px 4px; }
    .blck-cal-day { min-height: 90px; padding: 4px 0; }
    .blck-cal-day-num { width: 18px; height: 18px; line-height: 18px; font-size: 10px; }
    .blck-cal-event { font-size: 10px; padding: 1px 3px; }
    .blck-cal-event-time { display: none; }
}

@media (max-width: 640px) {
    .blck-calendar-grid th {
        font-size: 9px;
    }

    .blck-cal-day {
        height: 70px;
        padding: 4px 0;
    }

    .blck-cal-day-num {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 10px;
    }

    .blck-cal-event {
        font-size: 10px;
        padding: 2px 4px;
    }

    .blck-cal-tooltip {
        width: 200px;
    }
}

/* ─── Responsive: header ────────────────────────────────── */


/* ─── Responsive: week view ─────────────────────────────── */

@media (max-width: 768px) {
    .blck-week-grid {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 220px;
        margin-bottom: -220px;
    }
    .blck-week-col {
        display: inline-block;
        width: 135px;
        vertical-align: top;
        white-space: normal;
        overflow: visible !important;
    }
    .blck-week-col:last-child {
        border-right: 1px solid #EDEDED;
    }
}

/* ─── Responsive: bottom ────────────────────────────────── */

@media (max-width: 500px) {
    .blck-cal-preview {
        flex-direction: column;
    }
    .blck-cal-preview-card.blck-cal-preview-next {
        justify-content: flex-start;
    }

    /* ─── Recurrence block ──────────────────────────────────── */

    .blck-recurrence-block {
        padding: 10px 14px;
    }
    .blck-recurrence-summary {
        font-size: 12px;
    }
    .blck-recurrence-dates {
        flex-direction: column;
    }
}

/* ═══ Category pills ──────────────────────────────────── */

.blck-cat-pill,
.blck-event-cat-tag,
.blck-recap-cat,
.blck-cal-tooltip-cat {
    display: inline-block;
    padding: 3px 12px;
    
    border-radius: 50px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    color: #555;
    vertical-align: middle;
}

/* Tooltip: smaller */
.blck-cal-tooltip-cat {
    padding: 2px 8px;
    font-size: 10px;
}

.blck-single-event .blck-cal-bottom {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #EDEDED;
}
.blck-single-event .blck-cal-preview-card {
    display: flex;
    align-items: center;
}
.blck-single-event .blck-cal-preview-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    vertical-align: middle;
}
.blck-single-event .blck-cal-preview-card .blck-cal-preview-row,
.blck-single-event .blck-cal-preview-card::after {
    content: none;
}
.blck-single-event .blck-cal-preview-card img,
.blck-cal-preview-card img {
    vertical-align: middle;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}
.blck-single-event .blck-cal-preview-title {
    line-height: 1.4;
    font-size: 14px;
}
.blck-single-event .blck-cal-preview-arrow {
    line-height: 1;
    font-size: 14px;
    flex-shrink: 0;
}

/* ─── Filterable items ──────────────────────────────────── */

.blck-cal-filterable.is-filtered {
    opacity: .15;
    pointer-events: none;
    transition: opacity .3s ease;
}

/* ─── Day item categories ───────────────────────────────── */

.blck-day-item-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

/* ─── Share block ───────────────────────────────────────── */

.blck-share-block {
    margin: 32px 0 20px 0;
    padding: 24px 0;
    border-top: 1px solid #EDEDED;
}

.blck-share-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 14px 0;
}

.blck-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.blck-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all .15s;
}
.blck-share-btn:hover {
    border-color: #BBB;
    color: #333;
}

.blck-share-subscribe {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
}

.blck-share-sub-label {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.blck-share-sub-link {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.blck-share-sub-link:hover {
    color: #333;
}

/* ─── List / Timeline view ──────────────────────────────── */

.blck-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.blck-list-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #EDEDED;
    align-items: flex-start;
}
.blck-list-thumb {
    flex-shrink: 0;
    width: 80px;
}
.blck-list-img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.blck-list-body {
    flex: 1;
    min-width: 0;
}
.blck-list-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.blck-list-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}
.blck-list-title a {
    color: inherit;
    text-decoration: none;
}
.blck-list-title a:hover {
    text-decoration: underline;
}
.blck-list-cats {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.blck-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}
.blck-list-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* ─── Calendar nav (shared for list view) ───────────────── */

.blck-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.blck-cal-nav-btn {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}
.blck-cal-nav-btn:hover {
    color: #333;
}
.blck-cal-nav-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* ─── Grid view ─────────────────────────────────────────── */

.blck-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 3), 1fr);
    gap: 32px;
}
.blck-grid > * {
    min-width: 0;
}
.blck-grid-card {
    border: 1px solid #EDEDED;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
}
.blck-grid-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.blck-grid-thumb {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background: #F5F5F5;
}
.blck-grid-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blck-grid-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCC;
    font-size: 32px;
}

.blck-grid-body {
    padding: 16px;
}

.blck-grid-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.blck-grid-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}
.blck-grid-title a {
    color: inherit;
    text-decoration: none;
}
.blck-grid-title a:hover {
    text-decoration: underline;
}

.blck-grid-date {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.blck-grid-empty {
    text-align: center;
    color: #999;
    padding: 40px;
    grid-column: 1 / -1;
}

/* ─── Day view ──────────────────────────────────────────── */

.blck-day-allday {
    display: flex;
    border: 1px solid #EDEDED;
    border-radius: 6px;
    padding: 8px 0;
    margin-bottom: 16px;
    background: #FAFAFA;
}

.blck-day-allday-list {
    flex: 1;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blck-day-timeline {
    position: relative;
    min-height: 1440px; /* 24h × 60px */
    padding-left: 60px;
    border-left: 1px solid #EDEDED;
}

.blck-day-event {
    position: absolute;
    left: 64px;
    right: 8px;
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: opacity .2s;
    overflow: hidden;
}
.blck-day-event:hover {
    opacity: .8;
}

.blck-day-event-time {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.blck-day-event-title {
    font-size: 13px;
    font-weight: 600;
    margin-top: 1px;
    white-space: normal;
    overflow: visible;
}

.blck-day-event-detail {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.blck-day-hour-marker {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #F0F0F0;
    height: 0;
}

.blck-day-hour-label {
    position: absolute;
    top: -8px;
    left: 4px;
    font-size: 11px;
    color: #999;
    background: #FAFAF9;
    padding: 0 4px;
}

.blck-day-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .blck-day-timeline {
        padding-left: 46px;
        min-height: 960px;
    }
    .blck-day-event {
        left: 50px;
        right: 4px;
        padding: 4px 6px;
    }
    .blck-day-hour-label {
        left: -42px;
        font-size: 10px;
        width: 36px;
    }
    .blck-day-event-title {
        font-size: 12px;
    }
}

/* ─── Search results dropdown ───────────────────────────── */

.blck-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.blck-search-result-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #F5F5F5;
}
.blck-search-result-item:last-child {
    border-bottom: none;
}
.blck-search-result-item:hover {
    background: #F8F8F8;
}

.blck-search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.blck-search-result-date {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.blck-search-result-cats {
    font-size: 11px;
    color: #BBB;
    margin-top: 2px;
}

.blck-search-result-empty {
    padding: 12px 14px;
    font-size: 13px;
    color: #999;
    text-align: center;
}

/* ─── Subscribe links ───────────────────────────────────── */

.blck-share-subscribe {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}
.blck-share-subscribe p { display: inline; margin: 0; }
.blck-share-sub-label { display: inline; font-weight: 500; }

.blck-share-sub-link {
    display: inline;
    color: #555;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 13px;
    margin: 0 2px;
}
.blck-share-sub-link:hover { color: #222; }

/* ─── Recurrence block ──────────────────────────────────── */

.blck-recurrence-block {
    margin: 4px 0 16px;
    padding: 8px 0;
    border-top: 1px solid #F0F0F0;
}

.blck-recurrence-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.blck-recurrence-header .fa-repeat { color: #AAA; font-size: 13px; }

.blck-recurrence-summary { color: #555; margin:0; padding:0; }

.blck-recurrence-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.blck-recurrence-dates { font-size:13px; color:#888; margin:0; line-height:1.4; }

.blck-rec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.blck-rec-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #F6F6F4;
    border-radius: 50px;
    font-size: 12px;
    color: #555;
    font-weight: 500;
}
.blck-rec-pill-hidden {
    display: none;
}
.blck-rec-pills.is-expanded .blck-rec-pill-hidden {
    display: inline-flex;
    animation: blckRecFadeIn .3s ease;
}
button.blck-rec-toggle {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #fff;
    border: none;
    border-radius: 50px !important;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    font-family: inherit;
}
button.blck-rec-toggle:hover {
    color: #555;
    border-radius: 50px !important;
}
@keyframes blckRecFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.blck-recurrence-dates { font-weight:600; }

.blck-recurrence-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none !important;
    margin: 0;
    padding: 0;
    padding: 0;
}

.blck-recurrence-dates li { list-style: none !important; }
.blck-recurrence-dates li::marker { display: none !important; }
.blck-recurrence-date { font-size: 13px; color: var(--c-text2, #6B6B66); }
.blck-recurrence-date::before { content: " / "; color: var(--c-text2); }
.blck-recurrence-date:first-child::before { content: none; }

/* ─── Responsive — Mobile ────────────────────────────────── */

@media (max-width: 768px) {
    .blck-cal-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .blck-cal-search {
        flex: 0 0 100%;
        order: 3;
    }
    /* Grid → max 2 columns on tablet */
    .blck-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Map → adjusted height */
    #blck-map {
        height: 50vh;
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    /* Month → compact list */
    .blck-calendar-grid {
        display: block;
        border: none;
    }
    .blck-cal-header-cell {
        display: none;
    }
    .blck-cal-empty {
        display: none;
    }
    .blck-cal-day {
        display: block;
        height: auto;
        min-height: 0;
        padding: 8px 0;
        border-right: none;
        border-bottom: 1px solid #EDEDED;
    }
    .blck-cal-day:last-child {
        border-bottom: none;
    }
    .blck-cal-day-num {
        font-weight: 700;
        color: #333;
        margin-bottom: 4px;
        margin-left: 0;
    }
    .blck-cal-today .blck-cal-day-num {
        background: none;
        color: #333;
    }
    .blck-cal-today {
        background: none;
    }
    .blck-cal-events {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }
    .blck-cal-event {
        font-size: 10px;
        padding: 2px 6px;
        margin: 0;
    }
    .blck-cal-event-time {
        display: none;
    }

    /* Multi-day segments → normal pills in list mode */
    .blck-cal-event.is-multi,
    .blck-cal-event.is-multi-first,
    .blck-cal-event.is-multi-mid,
    .blck-cal-event.is-multi-last {
        border-radius: 50px;
        margin-left: 0;
        margin-right: 0;
        padding-right: 8px;
    }
    /* Show title on continuation segments in mobile list */
    .blck-cal-event-title-mobile {
        display: inline;
        font-size: 10px;
        padding: 0 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Day timeline → simpler */
    .blck-day-timeline {
        min-height: auto;
        padding-left: 0;
        border-left: none;
    }
    .blck-day-event {
        position: static;
        margin-bottom: 4px;
    }
    .blck-day-hour-label,
    .blck-day-hour-marker {
        display: none;
    }

    /* Grid → single column */
    .blck-grid {
        grid-template-columns: 1fr;
    }

    /* Recap → stacked */
    .blck-recap-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blck-event-layout {
        flex-direction: column;
        gap: 20px;
    }
    .blck-event-image {
        flex: 1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .blck-cal-tooltip { display: none !important; }
}



/* Items within a month */
/* ── Agenda / List View ─────────────────────────────── */
.blck-agenda {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}
.blck-agenda-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 18px;
}

/* Period selector */
.blck-agenda-period {
    display: flex;
    gap: 4px;
    background: #F5F5F5;
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
    margin: 50px auto 0 auto;
}
.blck-agenda-period-btn {
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}
.blck-agenda-period-btn.is-active,
.blck-agenda-period-btn:hover {
    background: #fff;
    color: #1A1A1A;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.blck-agenda-daterange.is-active {
    background: #fff;
    color: #1A1A1A;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.blck-agenda-daterange {
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: #666;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}
.blck-agenda-daterange.has-picker {
    background: #fff;
    cursor: pointer;
}
.blck-agenda-daterange-sep {
    color: #999;
}
.blck-agenda-chevron {
    margin-left: 4px;
    flex-shrink: 0;
}
.blck-agenda-datepicker {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

/* Month header */
.blck-agenda-month { margin-top: 60px; }
.blck-agenda-month:first-child { margin-top: 8px; }
.blck-agenda-month-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.blck-agenda-month-head span:first-child {
    font-size: 22px;
    font-weight: 600;
    color: #666;
    font-weight: 500;
}
.blck-agenda-month-count {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

/* ── 3-column card ──────────────────────────────────── */
.blck-agenda-item {
    display: grid;
    grid-template-columns: 80px 160px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid #F0F0F0;
}
.blck-agenda-item.no-thumb {
    grid-template-columns: 80px minmax(0, 1fr);
}


/* Column 1: Calendar date */
.blck-agenda-daycol {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    gap: 0;
    line-height: 1;
    text-align: center;
}
.blck-agenda-dayname {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    line-height: 1;
}
.blck-agenda-daynum {
    font-size: 30px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1;
}
.blck-agenda-daymonth {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    line-height: 1;
}

/* Column 2: Info */
.blck-agenda-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0 4px 8px;
    max-width: 80%;
}

/* Meta row: date + time + categories */
.blck-agenda-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}
.blck-agenda-meta-date,
.blck-agenda-meta-time {
    white-space: nowrap;
}

/* Category pills */
.blck-agenda-cat {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 500;
    white-space: nowrap;
}

/* Title */
.blck-agenda-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}
.blck-agenda-title a {
    color: #1A1A1A;
    text-decoration: none;
}
.blck-agenda-title a:hover {
    text-decoration: underline;
}

/* Location */
.blck-agenda-location {
    font-size: 13px;
    color: #888;
}

/* Excerpt */
.blck-agenda-excerpt {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* Column 3: Image */
.blck-agenda-imgcol {
    border-radius: 6px;
    overflow: hidden;
    background: #F5F5F5;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}
.blck-agenda-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.blck-agenda-item:hover .blck-agenda-img {
    transform: scale(1.05);
}

/* No image fallback */
@media (max-width: 768px) {
    .blck-agenda-item {
        grid-template-columns: 48px 1fr;
        gap: 14px;
    }
    .blck-agenda-imgcol {
        display: none;
    }
    .blck-agenda-daynum {
        font-size: 22px;
    }
    .blck-agenda-title {
        font-size: 15px;
    }
}
@media (max-width: 480px) {
    .blck-agenda-item {
        grid-template-columns: 40px 1fr;
        gap: 10px;
    }
}

.blck-agenda-loading { text-align: center; padding: 20px; color: #999; font-size: 14px; }
.blck-agenda-sentinel { height: 1px; }

.blck-grid-excerpt { font-size:12px; color:#888; margin:6px 0 0; line-height:1.4; }

.blck-grid-cats-overlay { position:absolute; top:8px; display:flex; gap:4px; flex-wrap:wrap; z-index:2; }
.blck-grid-cats-tl { left:8px; }
.blck-grid-cats-tr { right:8px; }
.blck-grid-cats-bottom { margin-top:8px; padding-top:8px;  }



    
}




/* Category trigger: no border, compact */
.blck-cal-select-trigger { border: none !important; padding-left: 0 !important; }
.blck-cal-select-trigger:hover { background: #F5F5F5; }

/* Narrower category select */
.blck-cal-select-trigger { width: auto !important; min-width: 140px; max-width: 200px; }





/* ═══════════════════════════════════════════════════
   HEADER BAR — Clean rewrite (overrides all above)
   ═══════════════════════════════════════════════════ */

/* Container */
.blck-cal-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
}

/* Filters group: categories + today button */
.blck-cal-filters {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
}

/* Category select trigger */
.blck-cal-select-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    padding: 0 40px 0 0 !important;
    border: none !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer !important;
}
.blck-cal-select-trigger:hover { background: #F5F5F5 !important; }

/* Today button */
.blck-cal-today-btn {
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    border: none !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.blck-cal-today-btn:hover { background: #F5F5F5 !important; }

/* Search field */
.blck-cal-search {
    flex: 0 1 260px !important;
    margin-left: 8px !important;
    position: relative !important;
}
.blck-cal-search-input {
    width: 100% !important;
    height: 36px !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
    border: 1px solid #E5E5E5 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background: #fff !important;
    outline: none !important;
}
.blck-cal-search-input:focus { border-color: #AAA !important; }
.blck-cal-search-input::placeholder { color: #BBB !important; }




/* ── Mobile ──────────────────────────────────── */

/* View wrap - same as categories dropdown */

#blck-cal-view-wrap .blck-cal-select-drop {
    right: 0 !important;
    left: auto !important;
    min-width: 160px;
}

#blck-cal-view-wrap {
    margin-left: auto !important;
}

@media (max-width: 768px) {
    .blck-cal-header { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
    .blck-cal-filters { display: contents !important; }
    
    /* Line 1: cats (left), today (center), views (right) */
    #blck-cal-custom-select { order: 1; flex: 0 0 auto !important; }
    #blck-cal-custom-select .blck-cal-select-trigger { width: auto !important; max-width: none !important; min-width: 0 !important; height: 40px !important; padding: 0 36px 0 0 !important; }
    
    .blck-cal-today-btn { order: 2; flex: 0 0 auto !important; height: 40px !important; display: flex !important; align-items: center !important; padding: 0 16px !important; white-space: nowrap !important; margin-left: auto !important; margin-right: auto !important; }
    
    #blck-cal-view-wrap { order: 3; flex: 0 0 auto !important; margin-left: 0 !important; }
    #blck-cal-view-wrap .blck-cal-select-trigger { width: auto !important; max-width: none !important; min-width: 0 !important; height: 40px !important; padding: 0 36px 0 12px !important; }
    
    /* Line 2: search */
    .blck-cal-search { order: 4; width: 100% !important; flex: 0 0 100% !important; margin-left: 0 !important; }
    .blck-cal-search-input { width: 100% !important; height: 40px !important; }
}

.blck-grid-no-ph .blck-grid-thumb-placeholder { display:none; }
.blck-agenda-no-ph .blck-agenda-thumb-placeholder { display:none; }
.blck-agenda-no-ph .blck-agenda-thumb-placeholder { display:none; }
.blck-cal-select-drop { z-index: 1000; }
.blck-cal-view-select-wrap .blck-cal-select-drop { z-index: 1000; }

/* ─── External link hover arrow ─────────────────────────── */
.blck-external-link {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    transition: all .15s;
}
.blck-external-link::after {
    content: ' →';
}

/* ─── Link color from settings (external link only) ────── */
.blck-recap-value .blck-external-link,
.blck-recap-value .blck-external-link:link,
.blck-recap-value .blck-external-link:visited {
    color: var(--blck-link-color, inherit) !important;
}
