/*
 * Belleville News public landing and article-detail pages.
 * All selectors are scoped to tc-news-* classes.
 */

.tc-news-page,
.tc-news-detail {
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 34px;
    color: #15191d;
}

.tc-news-page *,
.tc-news-detail * {
    box-sizing: border-box;
}

.tc-news-banner-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    background: #000;
    line-height: 0;
    overflow: hidden;
}

.tc-news-banner-inner {
    width: 100%;
    max-width: 1001px;
    margin: 0 auto;
    padding: 0;
    background: #000;
}

.tc-news-banner {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.tc-news-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px 18px;
    flex-wrap: wrap;
    margin: 19px auto 25px;
    padding: 0 12px;
    text-align: center;
}

.tc-news-category {
    display: inline-block;
    padding: 5px 3px;
    border-bottom: 2px solid transparent;
    color: #2e3439;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.tc-news-category:hover,
.tc-news-category:focus,
.tc-news-category.is-active {
    border-bottom-color: #e6a116;
    color: #000;
    text-decoration: none;
}

.tc-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 19px;
    padding: 0;
}

.tc-news-card {
    min-width: 0;
    background: #f1f1f1;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease;
}

.tc-news-card:hover,
.tc-news-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}

.tc-news-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tc-news-card-link:hover,
.tc-news-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.tc-news-card-image,
.tc-news-card-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #dfe2e4;
}

.tc-news-card-image {
    object-fit: cover;
}

.tc-news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #4b535a;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.tc-news-card-copy {
    padding: 11px 13px 14px;
}

.tc-news-card-meta {
    min-height: 17px;
    margin-bottom: 5px;
    color: #3f464d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.tc-news-card-title {
    display: -webkit-box;
    margin: 0 0 8px;
    text-align: center;
    overflow: hidden;
    color: #101316;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.02em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tc-news-card-summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #4b535a;
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tc-news-empty,
.tc-news-error,
.tc-news-not-found {
    margin: 24px 0;
    padding: 28px 20px;
    border: 1px solid #d0d5d9;
    background: #f7f8f9;
    text-align: center;
}

.tc-news-error {
    border-color: #cf7777;
    background: #fff2f2;
    color: #7c1d1d;
}

.tc-news-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tc-news-page-link {
    display: inline-block;
    min-width: 34px;
    padding: 7px 10px;
    border: 1px solid #bbbfc3;
    color: #161a1d;
    text-align: center;
    text-decoration: none;
}

.tc-news-page-link:hover,
.tc-news-page-link:focus,
.tc-news-page-link.is-current {
    border-color: #15191d;
    background: #15191d;
    color: #fff;
    text-decoration: none;
}

.tc-news-detail {
    max-width: 1000px;
}

.tc-news-breadcrumb {
    margin: 0 0 18px;
    color: #626a71;
    font-size: 12px;
    text-transform: uppercase;
}

.tc-news-breadcrumb a {
    color: inherit;
}

.tc-news-detail-header {
    max-width: 850px;
    margin: 0 auto 24px;
    text-align: center;
}

.tc-news-detail-meta {
    margin-bottom: 9px;
    color: #555d64;
    font-size: 12px;
    font-weight: 700;
}

.tc-news-detail-title {
    margin: 0;
    color: #111519;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.025em;
}

.tc-news-detail-summary {
    max-width: 760px;
    margin: 18px auto 0;
    color: #4d565d;
    font-size: 18px;
    line-height: 1.55;
}

.tc-news-detail-featured {
    display: block;
    width: 100%;
    max-height: 650px;
    margin: 0 auto 28px;
    object-fit: contain;
    background: #f3f4f5;
}

.tc-news-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.tc-news-detail-footer {
    max-width: 900px;
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid #d7dadd;
}

.tc-news-back-link {
    color: #1e2730;
    font-weight: 700;
    text-decoration: none;
}

.tc-news-back-link:hover,
.tc-news-back-link:focus {
    text-decoration: underline;
}

@media (max-width: 850px) {
    .tc-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tc-news-page,
    .tc-news-detail {
        padding-bottom: 24px;
    }

    .tc-news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tc-news-categories {
        gap: 7px 13px;
        margin: 15px auto 20px;
    }

    .tc-news-card-title {
        font-size: 22px;
    }

    .tc-news-pagination {
        justify-content: center;
    }
}
