/* News article (single post in News or a News topic), 2026-11-05. Loads on every single post (page kit); everything is
   scoped to body.lind-news-single (set by inc/pages/news.php), so the demo posts keep the theme look (D-44).
   Theme template: single.php (title H3 → H1 by inc/pages/news.php); one 760px column, centred: News link, title,
   date + topics, featured image (Lind cut corner), text, related products, previous/next, All news.
   Readable width (D-75, 2026-11-05 review): the News link, title, date + topics and the text (paragraphs, lists,
   headings, quotes) sit in a 40rem (640px) column centred in the 760px one, about 65-70 characters a line at 18px;
   the featured image, figures, related products and previous/next use the full 760px. Topic chips: dark Lind Blue
   text (#0d6fa1, 4.9:1 on the soft blue) for WCAG AA small-text contrast. */

.lind-news-single {
	--lind-news-col: 760px;
	--lind-news-measure: 40rem; /* D-75 text width, as assets/layout.css (--lind-measure) */
	--lind-news-blue-text: #0d6fa1; /* Lind Blue, darker: small text on white or soft blue (AA) */
	--lind-news-ink: #1f1f1f;
	--lind-news-text: #444;
	--lind-news-muted: #666;
	--lind-news-line: #e8e8e8;
	--lind-news-soft: #f5f5f5;
}
/* No "font" shorthand in this file: it would reset the site's lining numerals (lind-site.css; Raleway's default
   old-style figures make "Beacon980" read "Beacon98o"). */

.lind-news-single .rs-blog-details { padding: 90px 10px 130px; }
.lind-news-single .rs-blog-details > .row { justify-content: center; }
.lind-news-single .rs-blog-details article.type-post {
	display: flex;
	flex-direction: column;
	max-width: var(--lind-news-col);
	margin: 0 auto;
}

/* Order: News link, title, date + topics, image, body (the theme prints the image first). */
.lind-news-single article.type-post > .lind-news-back { order: 1; }
.lind-news-single article.type-post > .rs-blog-single-title { order: 2; }
.lind-news-single article.type-post > .blog-meta { order: 3; }
.lind-news-single article.type-post > .bs-img { order: 4; }
.lind-news-single article.type-post > .single-content-full { order: 5; }
.lind-news-single article.type-post > .clear-fix { order: 6; }

.lind-news-back {
	align-self: flex-start;
	margin-left: max(0px, calc((100% - var(--lind-news-measure)) / 2));
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	font-family: "Raleway", sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #118cc9;
	text-decoration: none;
}
.lind-news-back i { font-size: 16px; transition: transform 0.2s ease; }
.lind-news-back:hover { color: #0d6fa1; }
.lind-news-back:hover i { transform: translateX(-3px); }

.lind-news-single .rs-blog-details .rs-blog-single-title {
	width: 100%;
	max-width: var(--lind-news-measure);
	margin: 0 auto !important;
	font-family: "Raleway", sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 1.2;
	color: var(--lind-news-ink);
	overflow-wrap: break-word;
}

/* Date + topics. */
.lind-news-single .blog-meta { width: 100%; max-width: var(--lind-news-measure); margin: 18px auto 0; }
.lind-news-single .blog-meta ul.btm-cate_no_thum {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0;
	padding: 0 !important;
	list-style: none;
}
.lind-news-single .blog-meta ul.btm-cate_no_thum > li { margin: 0; padding: 0; list-style: none; }
.lind-news-single .blog-meta ul.btm-cate_no_thum > li::before,
.lind-news-single .blog-meta ul.btm-cate_no_thum > li::after { display: none !important; }
.lind-news-single .blog-meta .blog-date { font-size: 15px; color: var(--lind-news-muted); }
.lind-news-single .blog-meta .tag-line { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0; color: transparent; }
.lind-news-single .blog-meta .tag-line a {
	padding: 5px 10px !important;
	border-radius: 2px !important;
	background: #e8f4fa;
	font-family: "Raleway", sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--lind-news-blue-text) !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.lind-news-single .blog-meta .tag-line a:hover { background: var(--lind-news-blue-text); color: #fff !important; }

/* Featured image with the Lind cut corner (D-65). */
.lind-news-single .bs-img { margin: 36px 0 8px; padding: 0 !important; }
.lind-news-single .bs-img img {
	display: block;
	width: 100%;
	height: auto;
	clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
}

/* Article text. */
.lind-news-single .single-content-full { padding-top: 32px !important; overflow: visible !important; }
.lind-news-single .bs-desc { color: var(--lind-news-text); font-size: 18px; line-height: 1.75; }
/* D-75: text blocks at most 40rem, centred in the column (figures, related products and previous/next stay 760px). */
.lind-news-single .bs-desc > :is(p, ul, ol, h2, h3, h4, h5, h6, blockquote, table, pre):not(.lind-news-all) {
	max-width: var(--lind-news-measure);
	margin-left: auto !important;
	margin-right: auto !important;
}
.lind-news-single .bs-desc > p,
.lind-news-single .bs-desc > ul,
.lind-news-single .bs-desc > ol { margin: 0 0 22px; }
.lind-news-single .bs-desc > p:last-of-type { margin-bottom: 22px; }
.lind-news-single .bs-desc strong { color: var(--lind-news-ink); }
.lind-news-single .bs-desc > p a,
.lind-news-single .bs-desc > ul a,
.lind-news-single .bs-desc > ol a {
	color: #118cc9;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}
.lind-news-single .bs-desc > p a:hover,
.lind-news-single .bs-desc > ul a:hover,
.lind-news-single .bs-desc > ol a:hover { color: #0d6fa1; }
.lind-news-single .bs-desc .lind-news-related a,
.lind-news-single .bs-desc .lind-news-adjacent a { text-decoration: none; }
.lind-news-single .bs-desc > h2 {
	margin: 52px 0 16px;
	font-size: 26px;
	line-height: 1.3;
	color: var(--lind-news-ink);
}
.lind-news-single #content .bs-desc > h3,
.lind-news-single .bs-desc > h3 {
	margin: 36px 0 10px;
	font-size: 20px;
	line-height: 1.35;
	color: var(--lind-news-ink);
}
.lind-news-single .bs-desc > h2 + h3 { margin-top: 20px; }
.lind-news-single .bs-desc > ul,
.lind-news-single .bs-desc > ol { padding-left: 24px; }
.lind-news-single .bs-desc > ul { list-style: none; padding-left: 0; }
.lind-news-single .bs-desc > ul > li { position: relative; padding-left: 26px; }
.lind-news-single .bs-desc > ul > li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 9px;
	height: 9px;
	background: #118cc9;
	clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 3px, 100% 100%, 0 100%);
}
.lind-news-single .bs-desc > ol { list-style: decimal; }
.lind-news-single .bs-desc > ol > li::marker { font-weight: 700; color: #118cc9; }
.lind-news-single .bs-desc li { margin-bottom: 10px; }
.lind-news-single .bs-desc li:last-child { margin-bottom: 0; }

.lind-news-figure { margin: 36px 0; }
/* Figures: up to the full 760px; a smaller image is centred, so a 640px one lines up with the text. */
.lind-news-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.lind-news-figure figcaption {
	max-width: var(--lind-news-measure);
	margin: 12px auto 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--lind-news-muted);
}

/* Related products: the Products page cards (lind-site.css), 3 per row in the column. */
.lind-news-related { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--lind-news-line); }
.lind-news-single .bs-desc .lind-news-related h2 { margin: 0 0 32px; font-size: 28px; line-height: 1.2; color: var(--lind-news-ink); }
.lind-news-related h2 span { color: #118cc9; }
.lind-news-related .lind-products__grid { margin: 0; padding: 0; gap: 32px 20px; }
.lind-news-related .lind-product-card::before { display: none; }
.lind-news-related .lind-product-card { padding: 0; }
.lind-news-related .lind-product-card__name { font-size: 17px; line-height: 1.35; }

/* Previous / next article. */
.lind-news-adjacent {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 72px;
}
.lind-news-adjacent a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 26px;
	background: var(--lind-news-soft);
	color: var(--lind-news-ink) !important;
	text-decoration: none !important;
	clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
	transition: background-color 0.2s ease;
}
.lind-news-adjacent__next { text-align: right; align-items: flex-end; }
.lind-news-adjacent a:hover { background: #e8f4fa; }
.lind-news-adjacent__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Raleway", sans-serif;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #118cc9;
}
.lind-news-adjacent__title { font-family: "Raleway", sans-serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.4; }
.lind-news-adjacent a:hover .lind-news-adjacent__title { color: #118cc9; }
.lind-news-all { margin: 40px 0 0 !important; }
.lind-news-single .bs-desc .lind-news-all a {
	display: inline-block;
	padding: 17px 30px;
	border-radius: 2px;
	background: #118cc9;
	font-family: "Raleway", sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	transition: background-color 0.2s ease;
}
.lind-news-single .bs-desc .lind-news-all a:hover { background: #0d6fa1; color: #fff; }

@media (max-width: 1024px) {
	.lind-news-single .rs-blog-details { padding: 70px 10px 90px; }
	.lind-news-single .rs-blog-details .rs-blog-single-title { font-size: 34px; }
}
@media (max-width: 767px) {
	.lind-news-single .rs-blog-details { padding: 50px 10px 70px; }
	.lind-news-single .rs-blog-details .rs-blog-single-title { font-size: 28px; }
	.lind-news-single .bs-img img { clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
	.lind-news-single .bs-desc { font-size: 17px; }
	.lind-news-single .bs-desc > h2 { margin-top: 44px; font-size: 22px; }
	.lind-news-related { margin-top: 56px; padding-top: 44px; }
	.lind-news-single .bs-desc .lind-news-related h2 { font-size: 24px; }
	.lind-news-adjacent { grid-template-columns: 1fr; margin-top: 56px; }
	.lind-news-adjacent__next { text-align: left; align-items: flex-start; }
	.lind-news-adjacent .is-empty { display: none; }
}

/* No empty image box when the featured image is left out (inc/pages/news.php: already in the text). */
.lind-news-single .bs-img:not(:has(img)) { display: none; }
