/* --- Speaker detail modal (shared: speakers page + home page) --- */
.aw-speaker-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aw-speaker-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.aw-speaker-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(6px);
}

.aw-speaker-modal__panel {
    position: relative;
    width: min(92vw, 820px);
    max-height: 88vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: var(--aw-radius-lg);
    background: var(--aw-white);
    box-shadow: 0 32px 80px rgba(17, 24, 39, 0.18);
    transform: translate3d(0, 24px, 0);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aw-speaker-modal__panel::-webkit-scrollbar {
    display: none;
}

.aw-speaker-modal.is-open .aw-speaker-modal__panel {
    transform: translate3d(0, 0, 0);
}

.aw-speaker-modal__header {
    display: flex;
    justify-content: flex-end;
    padding: 14px 16px 0;
}

.aw-speaker-modal__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--aw-surface);
    color: var(--aw-heading);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 200ms ease;
}

.aw-speaker-modal__close:hover {
    background: var(--aw-border);
}

.aw-speaker-modal__body {
    padding: clamp(20px, 3.5vw, 32px) clamp(28px, 4vw, 40px) clamp(28px, 4vw, 40px);
}

.aw-speaker-modal__text {
    color: var(--aw-body);
    font-family: var(--aw-font);
    font-size: 0.94rem;
    line-height: 1.7;
}

.aw-speaker-modal__text,
.aw-speaker-modal__text * {
    font-family: var(--aw-font) !important;
}

.aw-speaker-modal__text p {
    margin-bottom: 12px;
}

/* CKEditor rich-text formatting inside the modal */
.aw-speaker-modal__text.ck-content ul,
.aw-speaker-modal__text.ck-content ol {
    margin: 0.75rem 0;
    padding-left: 1.4rem;
    list-style-position: outside;
}

.aw-speaker-modal__text.ck-content li {
    margin-bottom: 0.35rem;
}

.aw-speaker-modal__text.ck-content blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--aw-accent);
    color: var(--aw-muted);
    font-style: italic;
}

.aw-speaker-modal__text.ck-content a {
    color: var(--aw-accent);
    text-decoration: underline;
}

.aw-speaker-modal__text.ck-content a:hover {
    text-decoration: none;
}

.aw-speaker-modal__text.ck-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px auto;
}

.aw-speaker-modal__text.ck-content hr {
    border: 0;
    border-top: 1px solid var(--aw-border);
    margin: 1.25rem 0;
}

.aw-speaker-modal__text.ck-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.aw-speaker-modal__text.ck-content table td,
.aw-speaker-modal__text.ck-content table th {
    border: 1px solid var(--aw-border);
    padding: 8px 10px;
}

.aw-speaker-modal__text.ck-content table th {
    background: var(--aw-surface);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .aw-speaker-modal {
        transition: none;
    }

    .aw-speaker-modal__panel {
        transition: none;
        transform: none;
    }
}
