/* Proceedings archive (inc/archive.php). Loaded only on archive URLs.
   Year-page markup comes from the old Drupal site: .proceedings > .section >
   .subsection > .paper_wrapper (.title, .authors, .details); pre-2017 years are
   free-form <p>/<h2>/<b> lists. */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.archive-crumbs {
    font-size: 14px;
    margin-bottom: 10px;
}
.archive-crumbs a { color: var(--link); }
.archive-crumbs a:hover { color: var(--link-hover); text-decoration: underline; }
.archive-crumbs span { margin: 0 6px; color: var(--divider); }

.archive-record .entry-content h2 { font-size: 22px; }
.archive-record .entry-content h3 { font-size: 18px; margin: 18px 0 8px; }
.archive-record .entry-content h4 { font-size: 16px; margin: 16px 0 8px; }
.archive-record .entry-content hr { border: 0; border-top: 1px solid var(--row-even); margin: 24px 0; }

/* ---------- Filter ---------- */

.archive-filter {
    position: sticky;
    top: var(--header-h);
    z-index: 2;
    padding: 12px 0;
    background: var(--white);
}
.archive-filter input {
    width: 100%;
    padding: 10px 14px;
    font: inherit;
    border: 1px solid var(--legal);
    border-radius: 0;
}
.archive-filter input:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: var(--link); }
.archive-filter__empty { margin: 12px 0 0; color: var(--th-bg); }

/* ---------- Year page lists ---------- */

.archive-year .section_title h3 {
    margin: 36px 0 0;
    padding: 8px 12px;
    background: var(--black);
    color: var(--white);
    font-size: 20px;
}
.archive-year .subsection_title {
    margin: 22px 0 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--th-bg);
    font-weight: bold;
    font-size: 17px;
}
.archive-year .paper_wrapper {
    padding: 10px 12px;
    border-bottom: 1px solid var(--row-even);
}
.archive-year .paper_wrapper:nth-child(even) { background: #fafafa; }
.archive-year .paper_wrapper .title { font-weight: bold; }
.archive-year .paper_wrapper .authors { font-style: italic; color: #333; }
.archive-year .paper_wrapper .details { font-size: 14px; }

/* Older free-form contents pages: tighten the <p> per line layout */
.ijcai-archive--year .archive-year > p { margin-bottom: 6px; }

/* ---------- Paper / abstract / video ---------- */

.paper__head {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.paper__meta { flex: 1; }
.paper__cover { flex: 0 0 220px; width: 220px; }

.entry-content .paper__authors { font-size: 20px; font-weight: bold; margin-bottom: 12px; }
.entry-content .paper__venue,
.entry-content .paper__details,
.entry-content .paper__doi { margin: 0 0 4px; }

.paper__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px !important; }
.entry-content .paper__actions .button {
    display: inline-block;
    padding: 8px 22px;
    background: var(--black);
    color: var(--white);
    font-weight: bold;
}
.entry-content .paper__actions .button:hover { background: var(--th-bg); color: var(--white); text-decoration: none; }

.paper__keywords { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.paper__keywords li { padding: 4px 10px; background: var(--row-even); font-size: 14px; }

.paper__videos { list-style: none; padding: 0 !important; }
.paper__videos li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.entry-content .paper__videos .button {
    display: inline-block;
    padding: 8px 22px;
    background: var(--black);
    color: var(--white);
    font-weight: bold;
}
.entry-content .paper__videos .button:hover { background: var(--th-bg); color: var(--white); text-decoration: none; }
.paper__video-host { font-size: 14px; color: var(--divider); }

@media (max-width: 833px) {
    .paper__head { flex-direction: column; }
    .paper__cover { display: none; }
}
