/* TSBO site-specific tweaks layered over the theme's style.css.
   Brand colors (from TSBO logo): navy #0055A5, red #EE3A43. The compiled theme
   palette in style.css was recolored to these on 2026-11-01. */

/* Larger, crisper header logo (source PNG is 1165x508). */
.navbar-brand-item {
    height: 56px;
    width: auto;
}

/* Allow card titles two lines instead of truncating to one. */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* In the mobile filters offcanvas, keep Apply Filters pinned to the bottom of the
   panel while the filter list scrolls. No effect at lg+ where the sidebar is inline. */
@media (max-width: 991.98px) {
    #filtersOffcanvas .filters-apply {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: var(--bs-body-bg);
        border-top: 1px solid var(--bs-border-color);
        /* Bleed across the card's p-4 padding so the bar spans edge to edge. */
        margin: 1rem -1.5rem -1.5rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Gallery thumbnail strip (tiny-slider navContainer). */
.custom-thumb {
    flex-wrap: wrap;
}

.custom-thumb li {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.custom-thumb li:hover,
.custom-thumb li.tns-nav-active {
    opacity: 1;
}

.custom-thumb li.tns-nav-active img {
    outline: 2px solid var(--bs-primary);
    outline-offset: 1px;
}

/* On phones, show the magazine cover as a readable rectangle instead of a circle crop. */
@media (max-width: 767.98px) {
    .magazine-cover {
        border-radius: 0.5rem !important;
        width: auto !important;
        height: 280px !important;
        object-fit: contain !important;
    }
}

/* Visible focus indicator for keyboard navigation. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.page-link:focus-visible {
    outline: 3px solid #ee3a43; /* brand red: visible on both white and navy surfaces */
    outline-offset: 2px;
}
