/* ==========================================================================
   PROGRAM.CSS - ACM Collective Intelligence 2026
   Styles for the program.html listings (papers, talks, posters/demos, DC).
   ========================================================================== */

/* --------------------------------------------------
   1. Jump Navigation
   -------------------------------------------------- */
.program-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 2rem;
}

.program-jump-label {
    font-size: 0.9rem;
    color: var(--vt-hokie-stone);
    margin-right: 0.25rem;
}

.program-jump a {
    display: inline-block;
    background-color: var(--vt-smoke);
    color: var(--vt-maroon);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.program-jump a:hover {
    background-color: var(--vt-white);
    border-color: var(--vt-burnt-orange);
    color: var(--vt-impact-orange);
}

.program-jump a:focus-visible {
    outline: 2px solid var(--vt-impact-orange);
    outline-offset: 2px;
}

/* --------------------------------------------------
   2. Listing Sections
   -------------------------------------------------- */

/* Clears the sticky site header when a jump link lands on a heading.
   The header grows as the nav wraps, so the offset steps up on narrow screens.
   Tune these three values if the header height changes. */
:root {
    --program-anchor-offset: 9rem;
}

.program-section {
    scroll-margin-top: var(--program-anchor-offset);
}

/* Sits between the h2 rule and the first entry */
.program-note {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin-top: -1rem; /* the global h2 already carries 2rem below its rule */
    margin-bottom: 1.75rem;
    max-width: 75ch;
}

/* --------------------------------------------------
   3. Listings
   -------------------------------------------------- */
.program-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.program-item {
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--vt-smoke);
    margin-bottom: 0; /* clears the global `li` rule */
}

.program-item:first-child {
    padding-top: 0;
}

.program-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.program-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: #111111;
    margin-bottom: 0.25rem;
    max-width: 75ch;
}

/* Ready for the camera-ready PDFs: swapping the plain title for
   <p class="program-title"><a href="...">Title</a></p> needs no other change */
.program-title a {
    color: var(--vt-maroon);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.program-title a:hover {
    color: var(--vt-impact-orange);
    border-bottom-color: var(--vt-burnt-orange);
}

.program-title a:focus-visible {
    outline: 2px solid var(--vt-impact-orange);
    outline-offset: 3px;
    border-radius: 2px;
}

.program-authors {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a4a4a;
    margin-bottom: 0;
    max-width: 75ch;
}

/* Two newspaper columns for the long posters and demos list, so entries stay
   in alphabetical order reading down one column and then the next */
.program-list.is-split {
    column-count: 2;
    column-gap: 3.5rem;
}

/* Uniform padding keeps the tops of both columns flush */
.program-list.is-split .program-item {
    break-inside: avoid;
    padding: 0 0 1.1rem 0;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--vt-smoke);
}

/* --------------------------------------------------
   4. Poster / Demo Tags
   -------------------------------------------------- */
.program-type {
    display: inline-block;
    background-color: var(--vt-smoke);
    color: #5a5a5a;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 3px;
    vertical-align: 2px;
    white-space: nowrap;
}

/* Live demos get the accent so they stand out while scanning */
.program-type.is-demo {
    background-color: rgba(229, 117, 31, 0.16);
    color: var(--vt-impact-orange);
}

/* --------------------------------------------------
   5. Responsive Adjustments
   -------------------------------------------------- */
@media (max-width: 960px) {
    .program-list.is-split {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    :root {
        --program-anchor-offset: 17rem;
    }

    .program-title {
        font-size: 1rem;
    }

    .program-item {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    :root {
        --program-anchor-offset: 22rem;
    }
}