/* ---------- General ---------- */

body {
    color: #222;
    background: #fff;
    line-height: 1.5;
    margin: 0;
}

a {
    transition: color 0.15s ease;
}


/* ---------- Header ---------- */

.header-bg {
    background-image: url('../images/emnlp_2026_background_v0.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-bg-opacity {
    background: linear-gradient(90deg, rgba(8, 18, 35, 0.68), rgba(8, 18, 35, 0.38), rgba(8, 18, 35, 0.68));
    padding: 1.5rem 1rem;
}

.header-bg p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}


/* ---------- Presenters ---------- */

#presenters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
    margin-top: 0;
}

.presenter-section {
    padding: 3.5rem 1.5rem 0;
}

.presenter {
    text-align: center;
    min-width: 0;
}

.presenter-img {
    width: min(10.5vw, 145px);
    height: min(10.5vw, 145px);
    min-width: 108px;
    min-height: 108px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 0.7rem;
    box-shadow: 0 6px 22px rgba(15, 35, 65, 0.16);
}

.presenter p {
    line-height: 1.25;
    margin-top: 0.35rem;
}

.presenter a {
    font-weight: 500;
    text-decoration: none;
}


/* ---------- Affiliations ---------- */

#organization {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.55rem 1.5rem;
    margin-top: 2rem;
    color: #555;
    font-size: 1rem;
}

#organization span {
    white-space: nowrap;
}

.tutorial-paper-link {
    margin: 1.75rem 0 0;
    text-align: center;
}

.tutorial-paper-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #246fc7;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: rgba(36, 111, 199, 0.38);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.tutorial-paper-link a:hover {
    color: #d05a1a;
    text-decoration-color: currentColor;
}

.tutorial-paper-link a:focus-visible {
    outline: 3px solid rgba(53, 126, 221, 0.3);
    outline-offset: 5px;
    border-radius: 2px;
}

.pdf-label {
    color: #687386;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
}


/* ---------- Section typography ---------- */

.f2-5 {
    font-size: 2rem;
    margin-bottom: 1.4rem;
}

.f4-5 {
    font-size: 1.1rem;
}

.styled-hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 3rem 0;
}


/* ---------- Schedule ---------- */

.schedule-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 1.25rem;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
}

.schedule-table th {
    background: #f5f7fa;
    font-weight: 600;
}

.schedule-table th,
.schedule-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
}

.schedule-table tr:not(:last-child) td {
    border-bottom: 1px solid #e8e8e8;
}

.schedule-table tbody tr:hover {
    background: #fafafa;
}

.schedule-table td:first-child {
    white-space: nowrap;
}


/* ---------- BibTeX ---------- */

.bibtex-container {
    position: relative;
    background: #f5f7fa;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.bibtex-entry {
    margin: 0;
    padding: 1.4rem 1.5rem 1.5rem;
    color: #263244;
    font-size: 0.95rem;
    line-height: 1.65;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.bibtex-heading {
    margin-bottom: 1.25rem;
}

.bibtex-heading .f2-5 {
    margin: 0;
}

.bibtex-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e2e2e2;
    background: rgba(255, 255, 255, 0.38);
}

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d5dce6;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.copy-button:hover {
    background: #f6f8fb;
    border-color: #aab6c7;
}

.copy-button:focus-visible {
    outline: 3px solid rgba(53, 126, 221, 0.3);
    outline-offset: 2px;
}


/* ---------- Responsive ---------- */

/* Still keeps all five photos in ONE row on normal laptop/desktop screens */
@media (max-width: 800px) {
    #presenters {
        gap: 0.75rem;
    }

    .presenter-img {
        width: 105px;
        height: 105px;
        min-width: 0;
        min-height: 0;
    }

    .presenter p {
        font-size: 0.9rem;
    }

    #organization {
        gap: 0.45rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* On phones, wrapping is preferable to making the portraits microscopic */
@media (max-width: 600px) {
    #presenters {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .presenter-img {
        width: 120px;
        height: 120px;
    }

    .presenter-section {
        padding: 2.25rem 1rem 0;
    }

    #organization {
        flex-wrap: wrap;
        font-size: 0.95rem;
    }

    .bibtex-container {
        border-radius: 10px;
    }

    .bibtex-entry {
        padding: 1rem;
    }

    .bibtex-entry {
        font-size: 0.8rem;
    }

    .schedule-table {
        font-size: 0.9rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.65rem;
    }
}
