/* Summary card */
.section-comms-summary .comms-summary-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.2rem 1.6rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Year heading */
.comms-year-heading {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

/* List container (one column, stacked cards) */
.comms-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Horizontal publication card */
.pub-card-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Left column: year + type */
.pub-card-left {
    min-width: 140px;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.pub-year-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
    font-weight: 600;
}

.pub-type-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 165, 0, 0.12); /* soft accent, adjust to your palette */
}

/* Right column: content */
.pub-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pub-header {
    margin-bottom: 0.25rem;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.pub-title a {
    text-decoration: none;
}

.pub-title a:hover {
    text-decoration: underline;
}

.pub-venue {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.pub-authors {
    margin: 0;
    font-size: 0.9rem;
}

/* Abstract */
.pub-abstract-wrapper {
    margin-top: 0.5rem;
}

.pub-abstract {
    margin-top: 0.4rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: #f7f7f7;
    font-size: 0.9rem;
}

/* Buttons & actions */
.pub-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pub-btn-primary,
.pub-btn-secondary {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

/* You can map these to your existing button colors if you have variables */
.pub-btn-primary {
    background: #123a7d; /* adjust to your main blue */
    color: #ffffff;
}

.pub-btn-primary:hover {
    opacity: 0.9;
}

.pub-btn-secondary {
    background: #ffffff;
    color: #123a7d;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.pub-btn-secondary:hover {
    background: #f5f5f5;
}

.pub-no-links {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Mobile: stack left/right vertically */
@media (max-width: 768px) {
    .pub-card-horizontal {
        flex-direction: column;
    }
    .pub-card-left {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding-right: 0;
        padding-bottom: 0.75rem;
        min-width: auto;
        flex-direction: row;
        gap: 0.5rem;
    }
}
