/**
 * KineticCopy Content Calendar Styles
 *
 * @package Claude_AI_Copywriter
 * @since   1.9.0
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE WRAPPER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.kc-calendar-wrap {
    max-width: 1200px;
    margin: 20px 20px 40px 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FILTER BAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.kc-cal-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.kc-cal-filters select {
    min-width: 160px;
    font-size: 13px;
}

/* Legend */
.kc-cal-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.kc-cal-legend-item {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 10px;
    border-left: 3px solid transparent;
}

.kc-legend-needs-content { background: #fef2f2; color: #b91c1c; border-left-color: #ef4444; }
.kc-legend-draft         { background: #fefce8; color: #a16207; border-left-color: #eab308; }
.kc-legend-scheduled     { background: #dbeafe; color: #1d4ed8; border-left-color: #2563eb; }
.kc-legend-published     { background: #dcfce7; color: #15803d; border-left-color: #16a34a; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FULLCALENDAR CONTAINER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#kc-calendar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: opacity 0.2s;
}

/* Toolbar */
#kc-calendar .fc-toolbar-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1d2327 !important;
}

#kc-calendar .fc-button {
    border-radius: 4px !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

#kc-calendar .fc-button-primary {
    background-color: #2271b1 !important;
    border-color: #2271b1 !important;
}

#kc-calendar .fc-button-primary:not(.fc-button-active):hover {
    background-color: #135e96 !important;
    border-color: #135e96 !important;
}

#kc-calendar .fc-button-primary.fc-button-active {
    background-color: #0a3d6b !important;
    border-color: #0a3d6b !important;
}

#kc-calendar .fc-button-primary:disabled {
    opacity: 0.5 !important;
}

/* Day cells */
#kc-calendar .fc-daygrid-day:hover {
    background-color: #f8fafc;
    cursor: pointer;
}

#kc-calendar .fc-day-today {
    background-color: #eff6ff !important;
}

#kc-calendar .fc-col-header-cell-cushion,
#kc-calendar .fc-daygrid-day-number,
#kc-calendar .fc-list-day-text,
#kc-calendar .fc-list-day-side-text {
    color: #374151;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

#kc-calendar .fc-daygrid-day-number:hover {
    color: #2271b1;
}

/* "+N more" link */
#kc-calendar .fc-daygrid-more-link {
    font-size: 11px;
    color: #6b7280;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EVENT CARDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#kc-calendar .fc-event {
    border-left-width: 3px !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 3px !important;
    cursor: pointer;
    margin-bottom: 2px !important;
}

#kc-calendar .fc-event:hover {
    filter: brightness(0.95);
}

.kc-cal-event {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    padding: 1px 3px;
    overflow: hidden;
    white-space: nowrap;
}

.kc-cal-event-icon {
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1;
}

.kc-cal-event-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    font-size: 11px;
}

.kc-cal-event-type {
    flex-shrink: 0;
    font-size: 9px;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* List view adjustments */
#kc-calendar .fc-list-event-dot {
    border-width: 6px !important;
}

#kc-calendar .fc-list-event-title a {
    color: #1d2327;
    text-decoration: none;
    font-size: 13px;
}

#kc-calendar .fc-list-event:hover td {
    background-color: #f8fafc;
    cursor: pointer;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTEXT MENU
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.kc-cal-context-menu {
    position: fixed;
    z-index: 999999;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    min-width: 185px;
    padding: 4px 0;
    font-size: 13px;
}

.kc-cal-context-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
}

.kc-cal-context-menu a:hover {
    background-color: #f1f5f9;
    color: #1d2327;
}

.kc-cal-context-menu a .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.kc-ctx-divider {
    border-top: 1px solid #f1f5f9;
    margin: 4px 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MODALS (shared base)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.kc-cal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kc-cal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.kc-cal-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.kc-cal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.kc-cal-modal-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.kc-cal-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.15s;
}

.kc-cal-modal-close:hover {
    color: #1d2327;
}

.kc-cal-modal-body {
    padding: 16px 20px;
}

.kc-cal-modal-body .form-table {
    margin: 0;
}

.kc-cal-modal-body .form-table th {
    width: 120px;
    padding: 8px 12px 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    vertical-align: top;
}

.kc-cal-modal-body .form-table td {
    padding: 8px 0;
    vertical-align: top;
}

.kc-cal-modal-body .form-table input[type="text"],
.kc-cal-modal-body .form-table input[type="number"],
.kc-cal-modal-body .form-table input[type="date"],
.kc-cal-modal-body .form-table select,
.kc-cal-modal-body .form-table textarea {
    font-size: 13px;
}

.kc-cal-modal-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: #fff;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CAMPAIGN LIST (inside Campaign Manager modal)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.kc-camp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.kc-camp-item:last-child {
    border-bottom: none;
}

.kc-camp-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.kc-camp-name {
    font-weight: 600;
    color: #1d2327;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kc-camp-badge {
    font-size: 10px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.kc-camp-dates {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.kc-camp-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOAST NOTIFICATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.kc-cal-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 420px;
    text-align: center;
    pointer-events: none; /* normally non-interactive */
}

.kc-cal-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto; /* allow link clicks when visible */
}

.kc-cal-toast--info    { background: #1d2327; color: #fff; }
.kc-cal-toast--success { background: #16a34a; color: #fff; }
.kc-cal-toast--error   { background: #dc2626; color: #fff; }

/* Open in Editor link inside success toast */
.kc-cal-toast a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 960px) {
    .kc-cal-legend {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 782px) {
    .kc-cal-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .kc-cal-filters select {
        width: 100%;
    }

    .kc-cal-legend {
        gap: 5px;
    }

    #kc-calendar {
        padding: 8px;
    }

    #kc-calendar .fc-toolbar-title {
        font-size: 15px !important;
    }

    .kc-cal-modal-content {
        width: 96%;
        max-height: 92vh;
    }

    .kc-cal-modal-body .form-table th,
    .kc-cal-modal-body .form-table td {
        display: block;
        width: 100%;
        padding: 4px 0;
    }

    .kc-cal-modal-body .form-table th {
        padding-bottom: 2px;
    }

    .kc-cal-modal-footer {
        flex-wrap: wrap;
    }
}

/* ═══════════════════════════════════════════════════
   ALL POSTS TOGGLE (v1.9.1)
═══════════════════════════════════════════════════ */

.kc-cal-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 12px;
    height: 30px;
    border-radius: 3px;
    border: 1px solid #D6263A;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.kc-cal-view-toggle:hover {
    background: #FFF0F2;
    border-color: #D6263A;
    color: #D6263A;
}

.kc-cal-view-toggle.active {
    background: #D6263A;
    border-color: #A6172A;
    color: #ffffff;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   LOCKED TEASER (v1.9.1)
═══════════════════════════════════════════════════ */

.kc-cal-locked-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
    min-height: 480px;
}

/* Fake calendar (blurred mockup) */
.kc-cal-fake {
    filter: blur(3px);
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.kc-cal-fake-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
}

.kc-cal-fake-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kc-cal-fake-btn {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #e5e7eb;
}

.kc-cal-fake-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
    text-align: center;
}

.kc-cal-fake-grid {
    padding: 0;
}

.kc-cal-fake-daynames {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.kc-cal-fake-dayname {
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kc-cal-fake-cells {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.kc-cal-fake-cell {
    min-height: 90px;
    padding: 6px;
    border-right: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    box-sizing: border-box;
    background: #fff;
}

.kc-cal-fake-num {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.kc-cal-fake-event {
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kc-fake-dimmed .kc-cal-fake-num {
    color: #d1d5db;
}

/* Lock overlay */
.kc-cal-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10;
}

.kc-cal-lock-box {
    text-align: center;
    padding: 40px 48px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 480px;
}

.kc-cal-lock-icon {
    font-size: 40px !important;
    color: #7c3aed;
    display: block;
    margin-bottom: 12px;
}

.kc-cal-lock-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
}

.kc-cal-lock-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px;
}

.kc-cal-lock-cta {
    display: inline-block;
    padding: 10px 28px !important;
    font-size: 14px !important;
    background: #7c3aed !important;
    border-color: #6d28d9 !important;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
}

.kc-cal-lock-cta:hover {
    background: #6d28d9 !important;
    color: #fff !important;
}

.kc-cal-lock-note {
    font-size: 12px;
    color: #9ca3af;
    margin: 12px 0 0;
}

/* ═══════════════════════════════════════════════════════════════
   NEXT 7 DAYS WEEK STRIP  (v2.0.5)
   Matches KineticLaunch calendar widget design — Copy crimson theme
   ═══════════════════════════════════════════════════════════════ */

.kc-week-strip {
    background: #ffffff;
    border: 1px solid #ECE9DF;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Header row */
.kc-week-strip__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #ECE9DF;
    background: #FBFAF7;
}
.kc-week-strip__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.kc-week-strip__label {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #374151;
}
.kc-week-strip__subtitle {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: #9ca3af;
}
.kc-week-strip__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #A6172A;
    text-decoration: none;
    transition: color 0.15s;
}
.kc-week-strip__link:hover {
    color: #7A1620;
    text-decoration: none;
}
.kc-week-strip__link svg {
    transform: rotate(-90deg);
    opacity: 0.8;
}

/* 7-column grid */
.kc-week-strip__cols {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 120px;
}

/* Individual day column */
.kc-week-col {
    border-right: 1px solid #F5F3EC;
    display: flex;
    flex-direction: column;
    min-height: 120px;
}
.kc-week-col:last-child {
    border-right: none;
}

/* Today highlight */
.kc-week-col--today {
    background: #FFF0F2;
    border-right-color: #F5C0C5;
}

/* Column header (day name + number) */
.kc-week-col__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px 6px;
    border-bottom: 1px solid #F5F3EC;
    gap: 2px;
    position: relative;
}
.kc-week-col--today .kc-week-col__head {
    border-bottom-color: #F5C0C5;
}
.kc-week-col__day {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}
.kc-week-col--today .kc-week-col__day {
    color: #A6172A;
}
.kc-week-col__num {
    font-size: 17px;
    font-weight: 700;
    color: #374151;
    line-height: 1;
}
.kc-week-col--today .kc-week-col__num {
    color: #A6172A;
}
.kc-week-col__today-pip {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #D6263A;
}

/* Entries area inside each column */
.kc-week-col__entries {
    padding: 6px 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.kc-week-col__empty {
    flex: 1;
}

/* Individual post entry card */
.kc-week-entry {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 5px 7px;
    background: #ffffff;
    border: 1px solid #ECE9DF;
    border-radius: 3px;
    text-decoration: none;
    color: #374151;
    transition: border-color 0.12s, box-shadow 0.12s;
    overflow: hidden;
}
.kc-week-entry:hover {
    border-color: #F5C0C5;
    box-shadow: 0 1px 4px rgba(166,23,42,0.08);
    color: #374151;
    text-decoration: none;
}

/* Post type pill */
.kc-week-entry__type {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 2px;
    line-height: 1.5;
    white-space: nowrap;
    align-self: flex-start;
}

/* Post title */
.kc-week-entry__title {
    font-size: 11px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Status pill — paper price-tag shape: eyelet hole left, pointed right */
.kc-week-entry__status {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 12px 2px 14px;
    line-height: 1.5;
    align-self: flex-start;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
    white-space: nowrap;
}
/* Eyelet hole on left side */
.kc-week-entry__status::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.18);
}

/* Restyle FullCalendar with Copy crimson theme */
#kc-calendar {
    background: #ffffff;
    border: 1px solid #ECE9DF;
    border-radius: 3px;
}
#kc-calendar .fc-button-primary {
    background-color: #A6172A !important;
    border-color: #7A1620 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: 3px !important;
}
#kc-calendar .fc-button-primary:not(.fc-button-active):hover {
    background-color: #7A1620 !important;
    border-color: #5c1018 !important;
}
#kc-calendar .fc-button-primary.fc-button-active {
    background-color: #7A1620 !important;
    border-color: #5c1018 !important;
}
#kc-calendar .fc-day-today {
    background-color: #FFF0F2 !important;
}
#kc-calendar .fc-daygrid-day-number:hover {
    color: #A6172A !important;
}
#kc-calendar .fc-toolbar-title {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    color: #374151 !important;
}
/* Legend pills — paper-tag shape (eyelet left, point right) */
.kc-legend-needs-content,
.kc-legend-draft,
.kc-legend-scheduled,
.kc-legend-published {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 2px 12px 2px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
    white-space: nowrap;
}
.kc-legend-needs-content::before,
.kc-legend-draft::before,
.kc-legend-scheduled::before,
.kc-legend-published::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.18);
}
.kc-legend-needs-content { background: #FEF2F2; color: #B91C1C; }
.kc-legend-draft         { background: #FEF3C7; color: #B45309; }
.kc-legend-scheduled     { background: #DBEAFE; color: #1D4ED8; }
.kc-legend-published     { background: #DCFCE7; color: #15803D; }
/* Lock box - crimson CTA */
.kc-cal-lock-icon { color: #D6263A; }
.kc-cal-lock-cta {
    background: #A6172A !important;
    border-color: #7A1620 !important;
    color: #fff !important;
    border-radius: 3px !important;
}
.kc-cal-lock-cta:hover {
    background: #7A1620 !important;
    border-color: #5c1018 !important;
    color: #fff !important;
}

/* Responsive: stack to scrollable row on small screens */
@media (max-width: 900px) {
    .kc-week-strip__cols {
        grid-template-columns: repeat(7, minmax(100px, 1fr));
        overflow-x: auto;
    }
}
@media (max-width: 600px) {
    .kc-week-strip__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .kc-week-col__entries {
        display: none;
    }
    .kc-week-col {
        min-height: 60px;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   KineticCopy Calendar v2.0.6 — Design Overrides
   ══════════════════════════════════════════════════════════════════════ */

/* ── FILTER DROPDOWNS: much lighter border */
.kc-cal-filters select,
#kc-filter-campaign,
#kc-filter-status,
#kc-filter-type {
    border: 1px solid #e5e7eb !important;
    border-radius: 3px !important;
    background: #ffffff !important;
    color: #374151 !important;
    box-shadow: none !important;
}
.kc-cal-filters select:focus,
#kc-filter-campaign:focus,
#kc-filter-status:focus,
#kc-filter-type:focus {
    border-color: #F5C0C5 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #F5C0C5 !important;
}

/* ── MONTH/WEEK/LIST BUTTONS: more spacing between each */
#kc-calendar .fc-button-group .fc-button {
    margin-right: 4px !important;
}
#kc-calendar .fc-button-group .fc-button:last-child {
    margin-right: 0 !important;
}

/* ── BORDER RADIUS: 3px throughout calendar UI */
#kc-calendar .fc-button,
#kc-calendar .fc-button-primary,
.kc-cal-filters select,
.kc-cal-entry,
.kc-cal-entry-preview {
    border-radius: 3px !important;
}

/* ── CALENDAR ENTRY POPOVER / PREVIEW: lighter border */
.kc-cal-entry-preview,
.kc-entry-popover {
    border-color: #ECE9DF !important;
    border-radius: 3px !important;
}

/* ══════════════════════════════════════════════════════════════════════
   KineticCopy Calendar v2.0.7 — Bug-fix patch
   ══════════════════════════════════════════════════════════════════════ */

/* ── FIX: Legend status tags — .kc-cal-legend-item base has border-radius:10px (pill).
          Override with paper price-tag shape when paired with a color class. */
.kc-cal-legend-item.kc-legend-needs-content,
.kc-cal-legend-item.kc-legend-draft,
.kc-cal-legend-item.kc-legend-scheduled,
.kc-cal-legend-item.kc-legend-published {
    border-radius: 0 !important;
    border-left: none !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 12px 2px 14px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%) !important;
    white-space: nowrap !important;
}
.kc-cal-legend-item.kc-legend-needs-content::before,
.kc-cal-legend-item.kc-legend-draft::before,
.kc-cal-legend-item.kc-legend-scheduled::before,
.kc-cal-legend-item.kc-legend-published::before {
    content: '' !important;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.18);
}
/* Color overrides (keep original semantic colors) */
.kc-cal-legend-item.kc-legend-needs-content { background: #FEF2F2 !important; color: #B91C1C !important; }
.kc-cal-legend-item.kc-legend-draft         { background: #FEF3C7 !important; color: #B45309 !important; }
.kc-cal-legend-item.kc-legend-scheduled     { background: #DBEAFE !important; color: #1D4ED8 !important; }
.kc-cal-legend-item.kc-legend-published     { background: #DCFCE7 !important; color: #15803D !important; }

/* ── END v2.0.7 calendar patch ── */

/* ── END Calendar v2.0.6 ── */
