/* Matches the Stackable cards used on the original news page. */
.btb-publications {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Each row is built server-side; its cards share the full width evenly. */
.btb-publications__row {
    display: flex;
    gap: 30px;
}

.btb-publication {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 24px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(217, 217, 217, 0.22);
    border-radius: 40px 0;
    box-shadow: 0 2px 20px rgba(153, 153, 153, 0.2);
    overflow: hidden;
}

.btb-publication__date,
.btb-publication__location {
    margin: 0 0 8px;
    font-size: 0.875rem;
    opacity: 0.7;
}

.btb-publication__title {
    margin: 0 0 10px;
    font-size: 1.728rem;
    line-height: 1.2;
    font-weight: 700;
    color: inherit;
    overflow-wrap: anywhere;
}

.btb-publication__summary {
    margin: 0 0 10px;
}

.btb-publication__cta {
    align-self: center;
    margin-top: 10px;
    padding: 12px 16px;
    background: #0e65e4;
    border-radius: 0 20px 20px 20px;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.12s;
}

.btb-publication__cta:hover,
.btb-publication__cta:focus-visible {
    background: #0b52bb;
    color: #fff;
}

.btb-publications__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.btb-publications__page {
    padding: 6px 12px;
    border: 1px solid #e3e3e3;
    border-radius: 0 12px 12px 12px;
    color: #0e65e4;
    text-decoration: none;
}

.btb-publications__page.is-current {
    font-weight: 700;
    color: #fff;
    background: #0e65e4;
    border-color: #0e65e4;
}

/* Tablet: at most two cards across; a leftover card spreads to full width. */
@media (max-width: 900px) {
    .btb-publications__row { flex-wrap: wrap; }
    .btb-publication { flex: 1 1 calc(50% - 15px); }
}

@media (max-width: 600px) {
    .btb-publication { flex-basis: 100%; }
}
