/* Maternity leave announcement — home page only */

.maternity-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.maternity-modal.is-open {
    display: flex;
}

.maternity-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 36, 32, 0.55);
}

#maternity-confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 20001;
    pointer-events: none;
}

.maternity-modal-panel {
    position: relative;
    z-index: 20002;
    width: min(520px, 100%);
    max-height: min(92vh, 900px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    padding: 16px 16px 20px;
    border: 2px solid rgba(168, 123, 98, 0.25);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    animation: maternity-pop-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes maternity-pop-in {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.maternity-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(168, 123, 98, 0.12);
    color: #2C2420;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.maternity-modal-close:hover {
    background: rgba(168, 123, 98, 0.22);
}

.maternity-notice-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.maternity-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.maternity-got-it-btn {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    background: #A87B62;
    color: #fff;
    cursor: pointer;
}

.maternity-got-it-btn:hover {
    background: #8f664f;
}

.maternity-google-link {
    font-size: 0.82rem;
    color: #A87B62;
    text-decoration: none;
    border-bottom: 1px dotted #A87B62;
}

.maternity-google-link:hover {
    color: #2C2420;
    border-color: #2C2420;
}

@media (min-width: 769px) {
    .maternity-modal {
        padding: 32px;
    }

    .maternity-modal-panel {
        width: min(800px, 94vw);
        padding: 32px 36px 36px;
    }

    .maternity-modal-actions {
        margin-top: 20px;
        gap: 12px;
    }

    .maternity-got-it-btn {
        font-size: 1rem;
        padding: 14px 36px;
    }
}

@media (max-width: 480px) {
    .maternity-modal {
        padding: 12px;
    }

    .maternity-modal-panel {
        padding: 12px 12px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maternity-modal-panel {
        animation: none;
    }
}
