/* WP DACdb Connect LITE - front-end calendar styles */

.wdcl-notice {
    background: #fff8e5;
    border-left: 4px solid #dba617;
    padding: 10px 14px;
    margin: 1em 0;
}

.wdcl-no-results {
    padding: 12px 16px;
    background: #f6f7f7;
    border-left: 3px solid #c3c4c7;
    color: #50575e;
}

/* =============================================================================
   Calendar - List View
   ============================================================================= */

.wdcl-cal-list .wdcl-cal-events {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wdcl-cal-event {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 14px 0;
}

.wdcl-cal-event + .wdcl-cal-event {
    border-top: 1px solid #ededed;
}

/* Boxed date "card" */
.wdcl-cal-date {
    flex: 0 0 auto;
    width: 84px;
    text-align: center;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #f7f7f7;
    padding: 8px 4px 10px;
    line-height: 1.15;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wdcl-cal-date .wdcl-cal-dow,
.wdcl-cal-date .wdcl-cal-month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a4a4a;
}

.wdcl-cal-date .wdcl-cal-day {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 2px;
    letter-spacing: -0.5px;
}

/* Right-hand info column */
.wdcl-cal-event-info {
    flex: 1 1 auto;
    min-width: 0;
}

.wdcl-cal-time {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 3px;
}

.wdcl-cal-title {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #1a1a1a;
}

.wdcl-cal-title.wdcl-has-desc {
    cursor: pointer;
}

.wdcl-cal-title.wdcl-has-desc:hover {
    color: #2271b1;
}

.wdcl-cal-location {
    font-size: 0.92rem;
    color: #555;
    margin-top: 3px;
}

.wdcl-cal-club {
    font-size: 0.78rem;
    color: #777;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.wdcl-cal-desc-preview {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.45;
    margin-top: 5px;
}

.wdcl-cal-more {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: #2271b1;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    vertical-align: baseline;
}

.wdcl-cal-more:hover {
    color: #135e96;
}

@media (max-width: 480px) {
    .wdcl-cal-event { gap: 14px; }
    .wdcl-cal-date { width: 70px; }
    .wdcl-cal-date .wdcl-cal-day { font-size: 1.8rem; }
    .wdcl-cal-title { font-size: 1.1rem; }
}

/* =============================================================================
   Calendar - Page View
   ============================================================================= */

.wdcl-calendar-page {
    margin: 1em 0;
}

.wdcl-cal-grid {
    background: #fff;
}

/* =============================================================================
   Calendar - Subscribe Row
   ============================================================================= */

.wdcl-cal-subscribe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 2px;
    margin: 10px 0;
    font-size: 0.85em;
}

.wdcl-cal-subscribe-label {
    font-weight: 600;
    color: #444;
    margin-right: 2px;
    white-space: nowrap;
}

.wdcl-cal-sub-btn {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 0.8em;
    font-weight: 500;
    line-height: 1.2;
    transition: opacity 0.15s, transform 0.15s;
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wdcl-cal-sub-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
    background: none !important;
    color: #17458F !important;
    text-decoration: none !important;
}

.wdcl-cal-sub-icon {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

.wdcl-cal-sub-btn span {
    display: block;
    text-align: center;
}

/* =============================================================================
   Calendar - Modal Popup (JS creates/removes the outer element; these rules
   style the box injected inside it)
   ============================================================================= */

.wdcl-cal-modal-box {
    /* base layout is applied inline by JS for robustness against theme CSS;
       these rules style the content only */
}

.wdcl-modal-club {
    font-size: 0.78em;
    font-weight: 700;
    color: #17458F;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: -4px 0 10px;
}

.wdcl-modal-title {
    margin: 0 0 10px;
    padding-right: 30px;
}

.wdcl-modal-when {
    color: #50575e;
    font-size: 0.95em;
    margin-bottom: 12px;
}

.wdcl-modal-location,
.wdcl-modal-speaker,
.wdcl-modal-topic {
    margin-bottom: 6px;
}

.wdcl-modal-desc {
    margin-top: 12px;
    line-height: 1.6;
}

.wdcl-modal-more {
    margin-top: 14px;
}

.wdcl-modal-note {
    font-size: 0.8em;
    color: #888;
    margin-top: 2px;
}
