/* Publications page styles (templates/publications.html.twig). Loaded only on that page. */

.publications-container {
    margin: 0 auto;
}
.page-title {
    text-align: center;
}

.search-container { 
    margin-bottom: 1.5rem; 
}
#pub-search {
    padding: 8px 12px; 
    border-radius: 4px; 
    font-size: 0.95rem;
}

.filter-controls { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); 
    gap: 1rem; 
    margin-bottom: 3rem; 
}

.filter-group { 
    display: flex; 
    flex-direction: column;
}
.filter-group label { 
    font-size: 0.85rem; 
    font-weight: bold;
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.theme-input, .theme-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}
.theme-select { 
    cursor: pointer; 
}

.pub-list { 
    display: flex; 
    flex-direction: column; 
}
.pub-item { 
    padding: 25px 0; 
    border-bottom: 1px solid var(--gray-4); 
}
.pub-item:last-child { 
    border-bottom: none; 
}
/* Light mode: no divider between publications (intentional). */
[data-theme="light"] .pub-item {
    border-bottom: none;
}

.pub-title { 
    margin: 0 0 8px 0; 
    font-size: 1.35rem; 
    line-height: 1.3; 
    letter-spacing: 1px;
    font-weight: bold; 
}
.pub-title a {
    text-decoration: none;
}
.pub-title a:hover { 
    text-decoration: underline; 
}

.pub-authors { 
    font-size: 1rem;
    margin-bottom: 0.5rem; 
}
.pub-journal { 
    font-size: 1rem;
    margin-bottom: 0.5rem; 
}

.pub-meta { 
    font-size: 0.95rem;
    margin-bottom: 15px; 
}

.pub-actions { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem;
}

.abstract-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0; /* Pico gives [type=button] a bottom margin, which pushed it above the DOI icon */
    font-size: 1rem; 
    font-weight: bold; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    font-family: inherit; 
}
.abstract-toggle:hover { 
    text-decoration: underline; 
}
.abstract-toggle .chevron { 
    transition: transform 0.2s ease; 
}
.abstract-toggle.active .chevron { 
    transform: rotate(180deg); 
}
.abstract-toggle:active,
.abstract-toggle:focus {
    outline: none;
    box-shadow: none;
}

.action-icon { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: opacity 0.2s; 
}
.action-icon:hover { 
    opacity: 0.7; 
}

.pub-abstract-content {
    border-left: 3px solid var(--light-blue);
    background-color: var(--gray-1); 
    font-size: 0.95rem; 
    line-height: 1.6;
    transition: all 0.3s;
    /* collapsed */
    height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
}
.pub-abstract-content.open {
    height: auto;
    opacity: 1;
    margin-top: 15px;
    padding: 15px 20px;
}

/* Sprite icons (<use href="#icon-...">) */
.pub-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Light mode: plain abstract, no accent border or background (intentional). */
[data-theme="light"] .pub-abstract-content {
    border-left: none;
    background-color: transparent;
}
