/* Styling is scoped to the HAL widget; Communications keeps its existing CSS. */
#hal-publications {
    overflow-y: auto;
    padding-right: 12px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--cha) var(--washi);
}

#hal-publications:focus-visible {
    outline: 2px solid var(--shu);
    outline-offset: 4px;
}

#hal-publications::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#hal-publications::-webkit-scrollbar-track {
    border-radius: 6px;
    background: var(--washi);
}

#hal-publications::-webkit-scrollbar-thumb {
    border: 2px solid var(--washi);
    border-radius: 6px;
    background: var(--cha);
}

#hal-publications::-webkit-scrollbar-thumb:hover {
    background: var(--shu-dark);
}

@supports selector(::-webkit-scrollbar) {
    #hal-publications {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }
}

#hal-publications .hal-year-heading {
    position: relative;
    margin: 36px 0 12px;
    padding-left: 16px;
    color: var(--kabe);
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
}

#hal-publications .hal-year:first-child .hal-year-heading {
    margin-top: 0;
}

#hal-publications .hal-year-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--shu);
    opacity: .3;
    transform: translateY(-50%);
}

#hal-publications .hal-entry {
    padding: 14px 0;
    border-bottom: 1px dotted var(--kabe);
    overflow-wrap: anywhere;
    transition: background .2s;
}

#hal-publications .hal-entry:hover {
    background: var(--shu-faded);
}

#hal-publications .hal-title {
    margin-bottom: 2px;
    font-family: var(--font-title);
    font-size: .88rem;
    font-weight: 400;
    line-height: 1.4;
}

#hal-publications .hal-authors {
    color: var(--cha);
    font-size: .76rem;
}

#hal-publications .hal-authors strong {
    font-weight: 600;
}

#hal-publications .hal-venue {
    color: var(--shu);
    font-size: .76rem;
    font-style: italic;
}

#hal-publications .hal-pdf {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    color: var(--shu);
    font-style: normal;
    white-space: nowrap;
    vertical-align: middle;
}

#hal-publications .hal-pdf svg {
    width: 16px;
    height: 18px;
    flex-shrink: 0;
}

#hal-publications .hal-status {
    color: var(--cha);
    font-size: .85rem;
}
