/* --- GLOBAL HEADING ---
.pubs-title {
    text-align: center;
    font-size: 2rem; 
    font-weight: 400; 
    margin-top: 2rem;
    border-bottom: none !important;
    margin-bottom: 2rem; 
    font-family: 'Libre Baskerville', serif;
    } */
  
/* --- LISTING LAYOUT STYLES (80/20 Split) --- */
  
/* 1. Container for a single publication entry - Sets up Flexbox */
.pub-entry-wrap {
    display: flex;
    justify-content: space-between;
    /* align-items: flex-start; */
    align-items: center;
    gap: 20px; 
    padding: 1.5rem 0;
    /* Uses CSS Variable for border color (switches with theme) */
    border-bottom: 1px solid var(--color-border-line); 
}
  
/* 2. LEFT COLUMN: Citation Details (80% Width) */
.pub-citation-col {
    flex: 0 0 80% !important;
    max-width: 80% !important;
    padding-right: 5px; 
}

/* 3. RIGHT COLUMN: Links (20% Width, CENTERED) */
.pub-links-col {
    flex: 0 0 20% !important; 
    max-width: 20% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 5px; 
}
  
/* --- CITATION FIELD STYLING (Left Column) --- */
.listing-title {
    /* Uses CSS Variable for font */
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 0.5rem; 
}
  
.listing-author, .listing-venue {
    /* Uses CSS Variable for font */
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.4;
    /* Uses CSS Variable for neutral text color (switches with theme) */
    color: var(--color-neutral-text); 
}

.listing-author {
    margin-bottom: 0.5rem;
}


/* --- LINK STYLING (Right Column - Boxed Links) --- */
.listing-metadata-links {
    display: flex;
    flex-direction: column; 
    gap: 8px; 
    align-items: center; 
}

.pub-link a {
    /* Box Properties */
    display: inline-block; 
    padding: 4px 10px; 
    border-radius: 15px; 
    
    /* Colors from CSS Variables */
    border: 1px solid var(--color-primary); 
    color: var(--color-primary); 
    
    /* Text Styles */
    font-size: 0.85rem; 
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap; 
    transition: background-color 0.3s, color 0.3s;
}

.pub-link a:hover {
    /* Uses CSS Variable for fill color */
    background-color: var(--color-link-hover); 
    color: white; 
    text-decoration: none; 
}


/* --- MOBILE RESPONSIVENESS (< 768px) --- */
@media (max-width: 768px) {
    .pub-entry-wrap {
        flex-direction: column;
        gap: 0;
    }
    .pub-citation-col,
    .pub-links-col {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        text-align: left;
        display: block; 
    }
    .pub-links-col {
        margin-top: 0.75rem; 
    }
    .listing-metadata-links {
        flex-direction: row; 
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
    }
}

.filters {
    display: flex;
    gap: .6rem;
    margin: .5rem 0 1.2rem;
    flex-wrap: wrap;
    justify-content: center;        /* centers the buttons horizontally */
    text-align: center;
}


/* Match visual style to .pub-link a */
.filters button {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
  
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
  
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.1s ease;
  }
  
  /* Hover effect: same as pub-link hover */
  .filters button:hover {
    background-color: var(--color-link-hover);
    color: #fff;
    transform: translateY(-1px);
  }
  
  /* Active (selected) state */
  .filters button.active {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
  }
