/* Ensure fonts are loaded via your font plugin */
.month-grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    font-family: 'Lora', serif;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    overflow-y: auto;
}

.month-grid {
    display: grid;
    grid-template-columns: 50px repeat(30, 15px); /* Étiquette + 30 jours */
    row-gap: 2px;
    column-gap: 2px;
    justify-content: start;
}

.month-row {
    display: contents; /* Chaque élément enfant dans la grille parent */
}

.year-label {
    font-family: 'Lora', serif;
    font-size: 0.9em;
    color: #666;
    text-align: right;
    padding: 0 8px 0 0;
    height: 15px;
    line-height: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 10;
}

.year-label.empty {
    height: 15px;
    visibility: hidden;
}

.day-square {
    width: 15px;
    height: 15px;
    background: #e0e0e0;
    position: relative;
    border-radius: 3px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.day-square.has-posts {
    background: #d4a412;
    cursor: pointer;
}

.day-square.has-posts a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.day-square.has-posts:hover {
    background: #e0b912;
    transform: scale(1.133);
    position: relative;
    z-index: 5;
    transition: background 0.2s ease, transform 0.1s ease;
}

.day-square.has-posts:not(:hover) {
    transition: transform 2s ease;
}

.day-square.no-posts:hover {
    background: #c0c0c0;
    transition: background 0.2s ease;
}

.cmga-load-more {
    margin: 20px auto;
    padding: 10px 20px;
    background: #d4a412;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Lora', serif;
    font-size: 1em;
    transition: background 0.2s ease;
}

.cmga-load-more:hover {
    background: #e0b912;
}