@charset "utf-8";

/* ============================================
   AI STAFF ANNOUNCEMENT MODAL
============================================ */

body.top-ai-staff-modal-open {
    overflow: hidden;
}

.top-ai-staff-modal[hidden] {
    display: none;
}

.top-ai-staff-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(74, 59, 50, 0.34);
    backdrop-filter: blur(2px);
}

.top-ai-staff-modal__dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    background: #FFFEF9;
    border: 1px solid rgba(74, 59, 50, 0.14);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(74, 59, 50, 0.24);
}

.top-ai-staff-modal__link:link,
.top-ai-staff-modal__link:visited,
.top-ai-staff-modal__link:active {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    color: #4A3B32;
    text-decoration: none;
}

.top-ai-staff-modal__visual {
    min-height: 330px;
    margin: 0;
    overflow: hidden;
    background: #E6ECE7;
}

.top-ai-staff-modal__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-ai-staff-modal__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px 42px 38px;
}

.top-ai-staff-modal__content h2 {
    margin: 0 0 20px;
    color: #4A3B32;
    font-size: 2.8rem;
    font-weight: normal;
    line-height: 1.55;
}

.top-ai-staff-modal__content p {
    margin: 0 0 8px;
    color: #5E625D;
    font-size: 1.45rem;
    line-height: 1.9;
}

.top-ai-staff-modal__content p:last-child {
    margin-bottom: 0;
}

.top-ai-staff-modal__cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 24px;
    padding: 11px 18px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: bold;
    border-radius: 999px;
    background: #E07A5F;
    transition: background 0.2s ease;
}

.top-ai-staff-modal__link:hover .top-ai-staff-modal__cta {
    background: #C7654D;
}

.top-ai-staff-modal__link:focus-visible {
    outline: 3px solid #E07A5F;
    outline-offset: -3px;
}

.top-ai-staff-modal__preference {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 18px 12px;
    color: #6B625C;
    font-size: 1.2rem;
    line-height: 1.6;
    border-top: 1px solid rgba(74, 59, 50, 0.1);
    background: #FAF8F5;
}

.top-ai-staff-modal__preference input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #6F8D76;
}

.top-ai-staff-modal__preference label {
    cursor: pointer;
}

.top-ai-staff-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    color: #4A3B32;
    font: inherit;
    font-size: 2.5rem;
    line-height: 1;
    border: 1px solid rgba(74, 59, 50, 0.18);
    border-radius: 50%;
    background: rgba(255, 254, 249, 0.94);
    cursor: pointer;
}

.top-ai-staff-modal__close:hover {
    color: #fff;
    background: #4F6B57;
}

.top-ai-staff-modal__close:focus-visible {
    outline: 3px solid #E07A5F;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .top-ai-staff-modal__dialog {
        width: min(680px, 100%);
    }

    .top-ai-staff-modal__link:link,
    .top-ai-staff-modal__link:visited,
    .top-ai-staff-modal__link:active {
        grid-template-columns: 1fr;
    }

    .top-ai-staff-modal__visual {
        min-height: 0;
        aspect-ratio: 16 / 7;
    }

    .top-ai-staff-modal__content {
        padding: 30px 34px 32px;
    }
}

@media (max-width: 640px) {
    .top-ai-staff-modal {
        padding: 12px;
    }

    .top-ai-staff-modal__dialog {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 14px;
    }

    .top-ai-staff-modal__visual {
        aspect-ratio: 16 / 7.5;
    }

    .top-ai-staff-modal__content {
        padding: 26px 20px 24px;
    }

    .top-ai-staff-modal__content h2 {
        margin-bottom: 14px;
        font-size: 2.2rem;
    }

    .top-ai-staff-modal__content p {
        font-size: 1.3rem;
        line-height: 1.75;
    }

    .top-ai-staff-modal__cta {
        margin-top: 18px;
    }

    .top-ai-staff-modal__preference {
        justify-content: flex-start;
        padding: 10px 16px 12px;
        font-size: 1.15rem;
    }
}
