/*
 * News & Stories, single posts and search results.
 * Added 2026-09-29 (Joined Up Data). Loaded only on those views, via functions.php.
 * Follows the current design: dark sub-banner, #212529 square buttons, Calibri.
 */

.tb-news, .tb-single, .tb-search { padding: 20px 0 70px; }

/* ---- News grid ---- */
.tb-news-intro { max-width: 800px; margin: 0 auto 40px; text-align: center; }
.tb-news-card {
	display: flex; flex-direction: column; height: 100%;
	background: #fff; border: 1px solid #e1e1e1; color: #212529;
	text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.tb-news-card:hover, .tb-news-card:focus { color: #212529; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.tb-news-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #eff3f6; }
.tb-news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-news-card-img.is-empty { background: linear-gradient(249deg, #454545, #000); }
.tb-news-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.tb-news-date { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #565758; margin-bottom: 8px; }
.tb-news-card-body h3 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
.tb-news-card-body p { font-size: 16px; color: #454545; margin: 0 0 16px; }
.tb-news-more { margin-top: auto; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.tb-news-card:hover .tb-news-more { text-decoration: underline; }
.tb-news-empty { text-align: center; }

/* ---- Pagination ---- */
.tb-pagination { margin-top: 20px; }
.tb-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tb-pagination .page-numbers li { margin: 0; }
.tb-pagination a.page-numbers, .tb-pagination span.page-numbers {
	display: inline-block; min-width: 42px; padding: 8px 14px; text-align: center;
	border: 2px solid #212529; color: #212529; font-weight: 600; text-decoration: none;
}
.tb-pagination span.page-numbers.current { background: #212529; color: #fff; }
.tb-pagination span.page-numbers.dots { border-color: transparent; }
.tb-pagination a.page-numbers:hover { background: #212529; color: #fff; }

/* ---- Single post ---- */
.tb-backlink { display: inline-block; margin-bottom: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; color: #212529; }
.tb-backlink:hover { color: #212529; text-decoration: underline; }
.tb-single-image { margin: 0 0 30px; }
.tb-single-image img { width: 100%; height: auto; display: block; }
.tb-single-body { font-size: 18px; line-height: 1.6; }
.tb-single-body img { max-width: 100%; height: auto; }
.tb-single-body figure { margin: 24px 0; }
.tb-single-body figcaption { font-size: 14px; color: #565758; margin-top: 6px; }
.tb-single-body h2, .tb-single-body h3, .tb-single-body h4 { margin: 1.4em 0 .5em; line-height: 1.25; }
.tb-single-body ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.tb-single-body ol { padding-left: 1.4em; margin-bottom: 1em; }
.tb-single-body a { color: #17a3df; text-decoration: underline; }
/* Old ACF modules inside posts: neutralise their layout wrappers. */
.tb-single-body .modul, .tb-single-body .item-box, .tb-single-body .item-box-item { padding: 0; margin: 0; background: none; }
.tb-single-body .button-box { margin: 20px 0; }
.tb-single-body .button-box .button { display: inline-block; border: 2px solid #212529; background: #212529; color: #fff; padding: 10px 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
.tb-single-body .button-box .button svg { width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; }
.tb-share { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; border-top: 1px solid #e1e1e1; margin-top: 40px; padding-top: 20px; }
.tb-share span { font-weight: 700; }
.tb-share a { color: #212529; text-decoration: underline; }

/* ---- Search ---- */
.tb-searchform { display: flex; gap: 10px; margin-bottom: 36px; }
.tb-searchform input[type="search"] { flex: 1; min-width: 0; padding: 10px 14px; border: 2px solid #212529; font-size: 16px; }
.tb-search-item { padding: 22px 0; border-bottom: 1px solid #e1e1e1; }
.tb-search-meta { display: flex; gap: 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #565758; margin-bottom: 6px; }
.tb-search-item h2 { font-size: 24px; margin: 0 0 8px; }
.tb-search-item h2 a { color: #212529; }
.tb-search-item p { margin: 0; color: #454545; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

@media (max-width: 767px) {
	.tb-news-card-body h3 { font-size: 20px; }
	.tb-single-body { font-size: 17px; }
	.tb-searchform { flex-direction: column; }
}
