/* News page (/news/, 2026-11-05): the theme's Latest Blog Grid widget in the Lind style. Layout: tools/build_news.py;
   topic buttons and card excerpts: inc/pages/news.php; filter and card reveal: assets/pages/news.js.
   Widget classes: lind-news-featured (--big: style 4, --small: style 3) and lind-news-grid (default style). */

/* No "font" shorthand in this file: it would reset the site's lining numerals (Raleway "980" → "98o"). */

/* ---------- Shared card parts ---------- */
.lind-news-featured .pre-blog-item,
.lind-news-grid .pre-blog-item { font-variant-numeric: lining-nums; }

/* Topic badge(s): dark Lind Blue (#0d6fa1, the site's hover blue: white 12px text at 5.5:1, WCAG AA; Lind Blue
   #118cc9 gives 3.7:1, 2026-11-05 review), small capitals (news.js groups several badges in one row). */
.lind-news-featured .rs-cate,
.lind-news-grid .rs-cate {
	display: inline-block;
	padding: 6px 11px !important;
	border-radius: 2px !important;
	background: #0d6fa1 !important;
	font-family: "Raleway", sans-serif;
	font-weight: 700;
	font-size: 12px !important;
	line-height: 1.2 !important;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff !important;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.lind-news-featured .rs-cate:hover,
.lind-news-grid .rs-cate:hover { background: #0a5578 !important; }
.lind-news-badges {
	position: absolute;
	left: 24px;
	bottom: -13px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.lind-news-badges .rs-cate { position: static !important; margin: 0 !important; }
/* Without news.js: one badge per card (two would sit on top of each other). */
.lind-news-grid .pre-image-wrap > .rs-cate ~ .rs-cate { display: none; }

.lind-news-featured .pre-blog-meta,
.lind-news-grid .pre-blog-meta { list-style: none; margin: 0; padding-left: 0 !important; }
.lind-news-featured .pre-blog-meta li,
.lind-news-grid .pre-blog-meta li { font-size: 14px; color: #666; }
.lind-news-featured .pre-blog-meta li::before,
.lind-news-grid .pre-blog-meta li::before { display: none !important; }

.lind-news-featured h3.pre-post-title,
.lind-news-grid h3.pre-post-title { font-family: "Raleway", sans-serif; font-weight: 700; }
.lind-news-featured h3.pre-post-title a,
.lind-news-grid h3.pre-post-title a { background-image: none !important; transition: color 0.2s ease; }

/* ---------- Featured row: newest post (style 4) + the next two (style 3) ---------- */
.lind-news-featured-row > .e-con { align-self: stretch; }
.lind-news-featured .prelements-blog-grid > .row { margin: 0; }
.lind-news-featured .pre-blog-item { padding: 0; }

/* Large card: photo with the dark gradient, text at the bottom, Lind cut corner (D-65). */
.lind-news-featured--big .blog-inner-wraps .pre-image-wrap {
	clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%) !important;
	min-height: 552px;
	background: #1f1f1f;
}
.lind-news-featured--big .blog-inner-wraps .pre-image-wrap img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.lind-news-featured--big .blog-inner-wraps:hover .pre-image-wrap img { transform: scale(1.04); }
.lind-news-featured--big .blog-inner-wraps .pre-image-wrap::before {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.78) 58%, rgba(0, 0, 0, 0.92) 100%) !important;
	opacity: 1 !important;
	pointer-events: none;
}
.lind-news-featured--big .blog-inner-wraps .pre-image-wrap .pre-blog-content {
	left: 40px !important;
	right: 40px !important;
	bottom: 40px !important;
	top: auto !important;
}
.lind-news-featured--big .pre-blog-meta li { color: rgba(255, 255, 255, 0.85) !important; }
.lind-news-featured--big h3.pre-post-title { margin: 6px 0 0 !important; font-size: 32px !important; line-height: 1.25 !important; }
.lind-news-featured--big h3.pre-post-title a { color: #fff !important; }
.lind-news-featured--big h3.pre-post-title a:hover { color: #e8f4fa !important; }
.lind-news-featured--big .pre-content {
	max-width: 520px;
	margin: 12px 0 18px !important;
	padding: 0 !important;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9) !important;
}
.lind-news-featured--big .pre-blog-content .rs-cate { margin: 0 6px 0 0 !important; }

/* Small cards: photo beside the text on a light grey card (theme style 3), Lind cut corner. */
.lind-news-featured--small .prelements-blog-grid > .row { display: flex; flex-direction: column; gap: 32px; height: 100%; }
.lind-news-featured--small .pre-blog-item { flex: 1 1 0; max-width: none; width: 100%; }
.lind-news-featured--small .pre-blog-item .blog-inner-wrap {
	height: 100%;
	margin: 0 !important;
	background: #f5f5f5;
	clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%) !important;
	align-items: stretch !important;
}
.lind-news-featured--small .rs-list-image { position: relative; min-height: 260px; padding: 0 !important; }
.lind-news-featured--small .rs-list-image .pre-image-wrap { position: absolute; inset: 0; }
.lind-news-featured--small .rs-list-image .rs--thum { width: 100%; height: 100%; }
.lind-news-featured--small .rs-list-image img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.lind-news-featured--small .blog-inner-wrap:hover .rs-list-image img { transform: scale(1.04); }
.lind-news-featured--small .pre-blog-content { padding: 28px 28px 28px 24px !important; }
.lind-news-featured--small h3.pre-post-title { font-size: 20px !important; line-height: 1.35 !important; margin: 4px 0 0 !important; }
.lind-news-featured--small h3.pre-post-title a { color: #1f1f1f; }
.lind-news-featured--small h3.pre-post-title a:hover { color: #118cc9; }
.lind-news-featured--small .pre-blog-content .rs-cate { margin: 16px 6px 0 0 !important; }

/* ---------- Browse by topic: buttons (Products page style, lind-site.css) + grid ---------- */
.lind-news-topics[hidden] { display: none; }
.lind-news-topics .lind-products__filter { margin: 0; }
.lind-news-topics__count { min-height: 1.5em; margin: 14px 0 0; font-size: 15px; color: #666; }

.lind-news-grid .prelements-blog-grid > .row { row-gap: 48px; }
.lind-news-grid .pre-blog-item[hidden] { display: none !important; }
/* The three newest posts are in the featured row: the grid hides them until a topic is picked (news.js). */
.lind-news-grid:not(.is-filtered) .prelements-blog-grid > .row > .pre-blog-item:nth-child(-n+3) { display: none; }
.lind-news-grid .pre-blog-item .blog-inner-wrap {
	height: 100%;
	margin: 0 !important;
	background: transparent !important;
	display: flex;
	flex-direction: column;
}
.lind-news-grid .pre-image-wrap img {
	display: block;
	aspect-ratio: 666 / 450;
	height: auto !important;
	object-fit: cover;
	clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
	transition: transform 0.6s ease;
}
.lind-news-grid .pre-image-wrap .rs--thum { clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
.lind-news-grid .blog-inner-wrap:hover .pre-image-wrap img { transform: scale(1.04); }
.lind-news-grid .pre-blog-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 32px 0 0 !important;
}
.lind-news-grid h3.pre-post-title { order: 1; margin: 0 !important; font-size: 21px !important; line-height: 1.35 !important; }
.lind-news-grid h3.pre-post-title a { color: #1f1f1f; }
.lind-news-grid .blog-inner-wrap:hover h3.pre-post-title a { color: #118cc9; }
.lind-news-grid .pre-blog-meta { order: 0; padding: 0 0 8px !important; }
.lind-news-grid .pre-content { order: 2; margin: 0 !important; padding: 12px 0 0 !important; font-size: 16px; line-height: 1.6; color: #555; }
.lind-news-grid .blg-btn-wrap { order: 3; margin-top: auto; padding-top: 18px; }
.lind-news-grid .blg-btn-wrap a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Raleway", sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #118cc9 !important;
	text-decoration: none;
}
.lind-news-grid .blg-btn-wrap a i { transition: transform 0.2s ease; }
.lind-news-grid .blg-btn-wrap a:hover i { transform: translateX(4px); }

/* Cards rise in as they scroll into view (news.js adds the classes; none for reduced motion or without JS). */
.lind-news-grid.lind-news-reveal .pre-blog-item {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	transition-delay: var(--lind-news-delay, 0ms);
}
.lind-news-grid.lind-news-reveal .pre-blog-item.is-in { opacity: 1; transform: none; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1024px) {
	.lind-news-featured--big .blog-inner-wraps .pre-image-wrap { min-height: 500px; }
	.lind-news-featured--small .rs-list-image { min-height: 240px; }
	.lind-news-featured--big h3.pre-post-title { font-size: 26px !important; }
	.lind-news-featured--small .prelements-blog-grid > .row { gap: 24px; }
}
@media (max-width: 767px) {
	.lind-news-featured--big .blog-inner-wraps .pre-image-wrap {
		min-height: 440px;
		clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%) !important;
	}
	.lind-news-featured--big .blog-inner-wraps .pre-image-wrap .pre-blog-content { left: 22px !important; right: 22px !important; bottom: 26px !important; }
	.lind-news-featured--big h3.pre-post-title { font-size: 22px !important; }
	.lind-news-featured--big .pre-content { font-size: 15px; }
	.lind-news-featured--small .pre-blog-content { padding: 22px 20px 24px !important; }
	.lind-news-grid .prelements-blog-grid > .row { row-gap: 40px; }
	.lind-news-grid h3.pre-post-title { font-size: 19px !important; }
}

/* Featured row on tablets and phones: the theme's col-md-6 would make the large card half as wide. */
.lind-news-featured .prelements-blog-grid > .row > .pre-blog-item { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 576px) and (max-width: 991px) {
	.lind-news-featured--small .blog-inner-wrap > .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 575px) {
	.lind-news-featured--small .blog-inner-wrap > .rs-list-image { order: -1 !important; min-height: 0; aspect-ratio: auto; }
	.lind-news-featured--small .rs-list-image .pre-image-wrap { position: static; }
	.lind-news-featured--small .rs-list-image img { height: auto !important; aspect-ratio: 3 / 2; }
}
/* Something in the theme hides this photo below 992px (visibility: hidden; found 2026-11-05 on tablets and phones): show it. */
.lind-news-featured--small .rs-list-image img { opacity: 1 !important; visibility: visible !important; }
.lind-news-featured--small .rs-list-image .pre-image-wrap { padding: 0 !important; }

/* Topic buttons: lining figures ("Jobsite360", not "Jobsite36o"). */
.lind-news-topics button { font-variant-numeric: lining-nums; }
