/*
Theme Name: TruckBusWorld
Theme URI: https://truckbusworld.com
Description: Independent heavy commercial vehicle magazine theme — TBW brand (navy #0C1722 + red #BF191A), condensed display type, sharp corners, editorial layout. Twenty Twenty-Five child theme.
Author: TruckBusWorld
Template: twentytwentyfive
Version: 1.4.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: truckbusworld
*/

/* ============ Industrial base: sharp corners ============ */
.wp-block-button__link,
.wp-block-search__input,
.wp-block-search__button,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="submit"],
textarea,
.wp-block-image img,
.wp-block-post-featured-image img,
.wp-block-cover,
.wp-block-group,
.wp-block-column {
	border-radius: 0 !important;
}

/* ============ Sticky header ============ */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 90;
	background: var(--wp--preset--color--base);
	border-bottom: 4px solid var(--wp--preset--color--accent-1);
	box-shadow: 0 2px 14px rgba(12, 23, 34, 0.07);
}

header.wp-block-template-part .wp-block-site-logo img {
	max-height: 68px;
	width: auto;
}

.wp-block-site-title a {
	font-family: var(--wp--preset--font-family--oswald);
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
}

/* ============ Navigation: uppercase + slide-in underline ============ */
.wp-block-navigation a {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.9em;
	font-weight: 500;
}

header .wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	padding-bottom: 6px;
}

header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: var(--wp--preset--color--accent-1);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s ease;
}

header .wp-block-navigation .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
}

/* ============ Buttons ============ */
.wp-block-button__link,
.wp-block-search__button {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* ============ Kickers & chips ============ */
.tbw-kicker,
.tbw-kicker a {
	color: var(--wp--preset--color--accent-1) !important;
	font-family: var(--wp--preset--font-family--oswald);
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}

.tbw-kicker a:hover {
	text-decoration: underline;
}

.tbw-chip a {
	display: inline-block;
	background: var(--wp--preset--color--accent-1);
	color: #ffffff !important;
	font-family: var(--wp--preset--font-family--oswald);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 5px 12px;
	text-decoration: none;
}

.tbw-chip a:hover {
	background: #a11314;
}

/* ============ Hero cover ============ */
.tbw-hero-cover {
	min-height: 520px;
}

.tbw-hero-cover .tbw-hero-title,
.tbw-hero-cover .tbw-hero-title a {
	color: #ffffff;
	font-size: clamp(1.7rem, 2.9vw, 2.7rem);
	line-height: 1.08;
	text-decoration: none;
}

.tbw-hero-cover .tbw-hero-title a:hover {
	color: #ffd9d9;
}

.tbw-hero-cover .tbw-hero-excerpt {
	color: #d8dbde;
	max-width: 42em;
	font-size: 0.98rem;
}

.tbw-hero-cover .tbw-hero-excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

/* ============ Headline list ============ */
.tbw-headlines .tbw-headline-item {
	border-top: 1px solid #e3e5e8;
	padding: 14px 0;
	gap: 14px;
}

.tbw-headlines .wp-block-post-template > li:last-child .tbw-headline-item {
	border-bottom: 1px solid #e3e5e8;
}

.tbw-headline-thumb {
	flex-shrink: 0;
	margin: 0;
}

.tbw-headline-thumb img {
	object-fit: cover;
	width: 104px;
	height: 70px;
}

.tbw-headlines .wp-block-post-title {
	font-size: 0.98rem;
	line-height: 1.3;
}

.tbw-headlines .wp-block-post-title a {
	text-decoration: none;
}

.tbw-headlines .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-1);
}

.tbw-headlines .tbw-kicker {
	font-size: 0.7rem;
}

/* ============ Section strips ============ */
.tbw-section-title {
	font-size: 1.35rem;
	border-left: 6px solid var(--wp--preset--color--accent-1);
	padding-left: 14px;
	margin-bottom: 24px;
}

.tbw-strip-head {
	margin-bottom: 22px;
}

.tbw-strip-head .tbw-section-title {
	margin-bottom: 0;
}

.tbw-strip-sub {
	color: var(--wp--preset--color--accent-4);
	margin: 0 0 0 20px;
	font-size: 0.95rem;
}

.tbw-viewall a {
	font-family: var(--wp--preset--font-family--oswald);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}

.tbw-viewall a:hover {
	text-decoration: underline;
}

/* ============ Cards ============ */
.tbw-card {
	border: 1px solid #e3e5e8;
	background: var(--wp--preset--color--base);
	height: 100%;
	transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tbw-card:hover {
	border-color: #d3d8dc;
	box-shadow: 0 14px 34px rgba(12, 23, 34, 0.13);
	transform: translateY(-3px);
}

.tbw-card .wp-block-post-featured-image {
	overflow: hidden;
	margin: 0;
}

.tbw-card .wp-block-post-featured-image img {
	transition: transform 0.35s ease;
}

.tbw-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.tbw-card .wp-block-post-title {
	font-size: 1.12rem;
	line-height: 1.28;
}

.tbw-card .wp-block-post-title a {
	text-decoration: none;
}

.tbw-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-1);
}

.tbw-date {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.75rem;
	color: var(--wp--preset--color--accent-4);
}

/* ============ Archive band ============ */
.tbw-archive-band .tbw-archive-title {
	color: #ffffff;
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	display: inline-block;
	border-bottom: 6px solid var(--wp--preset--color--accent-1);
	padding-bottom: 10px;
	margin: 0;
}

.tbw-archive-band .tbw-archive-desc {
	color: #aeb4ba;
	max-width: 46em;
}

/* ============ Single post ============ */
.tbw-single-title {
	font-size: clamp(1.9rem, 4vw, 3rem);
	line-height: 1.08;
}

.tbw-single-meta {
	border-top: 1px solid #e3e5e8;
	border-bottom: 1px solid #e3e5e8;
	padding: 10px 0;
}

.tbw-single-meta .tbw-meta-item,
.tbw-single-meta .tbw-meta-item a {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.78rem;
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
}

.tbw-single-cover img {
	width: 100%;
}

.wp-block-post-content p {
	font-size: 1.05rem;
	line-height: 1.72;
}

.wp-block-post-content h2 {
	margin-top: 2.2em;
	font-size: 1.5rem;
}

.wp-block-post-content ul li,
.wp-block-post-content ol li {
	margin-bottom: 0.5em;
	line-height: 1.6;
}

.wp-block-post-content blockquote {
	border-left: 5px solid var(--wp--preset--color--accent-1);
	padding-left: 20px;
	font-style: italic;
	color: var(--wp--preset--color--accent-3);
}

.wp-block-post-content a {
	text-decoration-color: var(--wp--preset--color--accent-1);
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

.wp-block-post-content a:hover {
	color: var(--wp--preset--color--accent-1);
}

.wp-block-post-content figcaption {
	color: var(--wp--preset--color--accent-4);
	font-size: 0.82rem;
	letter-spacing: 0.01em;
	border-left: 3px solid var(--wp--preset--color--accent-1);
	padding-left: 10px;
	margin-top: 10px;
}

/* ============ Post navigation ============ */
.tbw-post-nav {
	border-top: 1px solid #e3e5e8;
	border-bottom: 1px solid #e3e5e8;
}

.tbw-post-nav a {
	text-decoration: none;
	font-weight: 600;
}

.tbw-post-nav a:hover {
	color: var(--wp--preset--color--accent-1);
}

.tbw-post-nav .post-navigation-link__label {
	display: block;
	font-family: var(--wp--preset--font-family--oswald);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 4px;
}

/* ============ Dark footer ============ */
.tbw-footer,
.tbw-footer p,
.tbw-footer .wp-block-site-tagline {
	color: #aeb4ba;
}

.tbw-footer .tbw-footer-brand a {
	color: #ffffff;
	font-family: var(--wp--preset--font-family--oswald);
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.tbw-footer .tbw-footer-tagline {
	font-size: 0.9rem;
}

.tbw-footer .wp-block-navigation a {
	color: #d8dbde;
	text-decoration: none;
	transition: color 0.15s ease;
}

.tbw-footer .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent-1);
}

.tbw-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ============ CTA band ============ */
.tbw-cta .wp-block-button__link {
	padding: 14px 36px;
}

/* ============ Pagination ============ */
.wp-block-query-pagination {
	margin-top: 40px;
	font-family: var(--wp--preset--font-family--oswald);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wp-block-query-pagination a:hover {
	color: var(--wp--preset--color--accent-1);
}

/* ============ Mobile ============ */
@media (max-width: 781px) {
	.tbw-hero-cover {
		min-height: 380px;
	}

	.tbw-hero-cover .tbw-hero-excerpt {
		display: none;
	}

	header.wp-block-template-part .wp-block-site-logo img {
		max-height: 48px;
	}
}
