/*
 * ds-blog.css — staff-only preview restyle of the blog templates (18 Nov 2026).
 * Loaded ONLY when the EXPOHIRE_STAFF cookie is set (public/blog.html, public/blogs.html),
 * which also add body classes `staff-preview ds-blog` + `ds-blog--post` / `ds-blog--list`.
 * Every rule is scoped to those body classes. Visual language matches the homepage beta
 * blog cards (.bx-post in home-redesign-beta.css). TODO: merge into the shared ds-content
 * layer once rollout-day1-build publishes it.
 * Uses the same --ds-* token names/values as ds-cms-content.css (sibling CMS task).
 */

body.ds-blog {
	--ds-g: #82bc41;
	--ds-g-700: #477c15;
	--ds-g-50: #f1f8e9;
	--ds-g-100: #e2f0d0;
	--ds-ink: #0f1a14;
	--ds-ink-2: #334139;
	--ds-muted: #66746b;
	--ds-line: #e3e8e2;
	--ds-bg: #f5f7f3;
	--ds-star: #f5b301;
	--ds-r: 14px;
	--ds-r-sm: 9px;
	--ds-shadow: 0 10px 30px -12px rgba(15, 26, 20, .25), 0 2px 6px rgba(15, 26, 20, .06);
}

/* ---------- Hero (both templates) ---------- */
body.ds-blog #contents [id^="header-images"] { position: relative; margin: 0 0 6px; }
body.ds-blog #contents [id^="header-images"] .carousel-inner { border-radius: var(--ds-r) !important; overflow: hidden; background: var(--ds-g-50); }
body.ds-blog #contents [id^="header-images"] .carousel-item > img { display: block; }
@media (min-width: 992px) {
	body.ds-blog #contents [id^="header-images"] .carousel-caption {
		display: flex !important; flex-direction: column; justify-content: flex-end; align-items: flex-start;
		inset: 0; left: 0; right: 0; top: 0; bottom: 0; padding: 32px 40px; text-align: left;
		background: linear-gradient(to top, rgba(15, 26, 20, .82) 0%, rgba(15, 26, 20, .45) 45%, rgba(15, 26, 20, 0) 80%);
	}
	body.ds-blog #contents [id^="header-images"] .carousel-caption > h1,
	body.ds-blog #contents [id^="header-images"] .carousel-caption > h2,
	body.ds-blog #contents [id^="header-images"] .carousel-caption > h3 {
		width: auto !important; max-width: 820px; padding: 0 !important; margin: 0 0 8px !important;
		background: none !important; color: #fff !important; text-align: left !important; text-transform: none !important;
		font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance;
		text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
	}
	body.ds-blog #contents [id^="header-images"] .carousel-caption > h1 small { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .85); }
	body.ds-blog #contents [id^="header-images"] .carousel-caption > h1 small br { display: none; }
	body.ds-blog #contents [id^="header-images"] .carousel-caption > p {
		width: auto !important; max-width: 68ch; padding: 0 !important; margin: 0 !important;
		background: none !important; color: rgba(255, 255, 255, .9) !important; text-align: left !important;
		font-size: 16px; font-weight: 400 !important; line-height: 1.5;
	}
}

/* Mobile/tablet title block (shown under 992px instead of the caption) */
body.ds-blog #contents #page-title { border: 0 !important; margin: 4px 0 6px !important; padding: 10px 2px 4px; background: none; }
body.ds-blog #contents #page-title > h2 {
	width: auto !important; padding: 0 !important; margin: 0 0 6px !important; background: none !important;
	color: var(--ds-ink) !important; text-align: left !important; text-transform: none !important;
	font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em;
}
body.ds-blog #contents #page-title > p {
	width: auto !important; padding: 0 !important; margin: 0 !important; background: none !important;
	color: var(--ds-muted) !important; text-align: left !important; font-size: 15.5px; font-weight: 400 !important; line-height: 1.5;
}

/* ---------- Listing page (/blogs) ---------- */
/* Sidebar: pagination + month archive */
body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group { display: flex; gap: 6px; }
body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group > .btn,
body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group > .btn-group > .btn {
	border-radius: 999px !important; border: 1px solid var(--ds-line); background: #fff; color: var(--ds-ink);
	font-weight: 700; font-size: 13.5px; padding: 8px 12px; box-shadow: none;
}
body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group > .btn-secondary:hover,
body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group > .btn-group > .btn:hover { background: var(--ds-g-700); border-color: var(--ds-g-700); color: #fff; }
body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group > .btn.disabled { color: var(--ds-muted); opacity: .55; }
body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group .dropdown-menu { border: 1px solid var(--ds-line); border-radius: var(--ds-r-sm); box-shadow: var(--ds-shadow); }
body.ds-blog--list #contents .col-md-3.col-md-push-9 > h5 {
	margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-g-700);
}
body.ds-blog--list #contents .col-md-3.col-md-push-9 > p { display: flex; flex-wrap: wrap; gap: 6px; }
body.ds-blog--list #contents .col-md-3.col-md-push-9 > p > .btn {
	margin: 0 !important; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ds-line); background: #fff;
	color: var(--ds-ink-2); font-size: 13px; font-weight: 500; line-height: 1.2; box-shadow: none;
}
body.ds-blog--list #contents .col-md-3.col-md-push-9 > p > .btn:hover { border-color: var(--ds-g-700); color: var(--ds-g-700); }
body.ds-blog--list #contents .col-md-3.col-md-push-9 > p > .btn-primary,
body.ds-blog--list #contents .col-md-3.col-md-push-9 > p > .btn-primary:hover { background: var(--ds-g); border-color: var(--ds-g); color: var(--ds-ink); font-weight: 700; }
@media (max-width: 767px) {
	/* 30+ month chips would push the posts below the fold: one swipeable row instead */
	body.ds-blog--list #contents .col-md-3.col-md-push-9 > p { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
	body.ds-blog--list #contents .col-md-3.col-md-push-9 > p > .btn { flex: 0 0 auto; white-space: nowrap; }
}

/* Post cards: same look as the homepage .bx-post cards */
body.ds-blog--list #contents .col-md-9.col-md-pull-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
@media (min-width: 576px) {
	body.ds-blog--list #contents .col-md-9.col-md-pull-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
body.ds-blog--list #contents section[id^="blog-"] {
	position: relative; display: flex; flex-direction: column; max-width: none; width: auto;
	margin: 0 !important; padding: 0 !important; background: #fff;
	border: 1px solid var(--ds-line) !important; border-radius: var(--ds-r) !important; overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
body.ds-blog--list #contents section[id^="blog-"]:hover { box-shadow: var(--ds-shadow); transform: translateY(-2px); }
body.ds-blog--list #contents section[id^="blog-"] > .row { flex: 1; display: flex; flex-direction: column-reverse; justify-content: flex-end; margin: 0; }
body.ds-blog--list #contents section[id^="blog-"] > .row > .col-md-3 {
	display: block !important; flex: 0 0 auto; width: 100%; max-width: 100%; padding: 0;
	aspect-ratio: 16 / 10; background: var(--ds-g-50); overflow: hidden;
}
body.ds-blog--list #contents section[id^="blog-"] > .row > .col-md-3 a { display: block; height: 100%; }
body.ds-blog--list #contents section[id^="blog-"] > .row > .col-md-3 img {
	display: block; width: 100%; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; border-radius: 0 !important;
}
body.ds-blog--list #contents section[id^="blog-"] > .row > .col-md-9 {
	flex: 1 1 auto; width: 100%; max-width: 100%; padding: 16px 18px 18px; gap: 10px;
}
body.ds-blog--list #contents section[id^="blog-"] > .row > .col-md-9 > div:first-child { display: flex; flex-direction: column; gap: 8px; width: 100%; }
body.ds-blog--list #contents section[id^="blog-"] h6 {
	order: -1; margin: 0 !important; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--ds-muted);
}
body.ds-blog--list #contents section[id^="blog-"] h6 > span { margin: 0 !important; }
body.ds-blog--list #contents section[id^="blog-"] h6 > span.float-right { float: none !important; }
@media (min-width: 992px) {
	body.ds-blog--list #contents section[id^="blog-"] h6 > span.float-right::before { content: "\00b7"; margin: 0 6px; }
	body.ds-blog--list #contents section[id^="blog-"] h6 > span.float-right { display: inline !important; }
}
body.ds-blog--list #contents section[id^="blog-"] h4 { margin: 0 !important; font-size: 17px; font-weight: 700; line-height: 1.3; text-wrap: pretty; }
body.ds-blog--list #contents section[id^="blog-"] h4 > a { color: var(--ds-ink) !important; text-decoration: none !important; }
/* Whole card is clickable (all links in a card go to the same post) */
body.ds-blog--list #contents section[id^="blog-"] h4 > a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body.ds-blog--list #contents section[id^="blog-"] h4 > a:focus-visible { outline: none; }
body.ds-blog--list #contents section[id^="blog-"]:focus-within { outline: 2px solid var(--ds-g-700); outline-offset: 2px; }
body.ds-blog--list #contents section[id^="blog-"] h4 + h6 + div {
	text-align: left !important; font-size: 14.5px; line-height: 1.5; color: var(--ds-muted);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body.ds-blog--list #contents section[id^="blog-"] h4 + h6 + div p { display: inline; margin: 0; }
body.ds-blog--list #contents section[id^="blog-"] p.mt-auto { padding-top: 4px; }
body.ds-blog--list #contents section[id^="blog-"] p.mt-auto > .btn {
	padding: 0; border: 0; background: none !important; box-shadow: none !important;
	color: var(--ds-g-700) !important; font-size: 14px; font-weight: 700;
}
body.ds-blog--list #contents section[id^="blog-"]:hover p.mt-auto > .btn { text-decoration: underline; }
@media (max-width: 575px) {
	/* Phones: thumbnail rows, as on the homepage */
	body.ds-blog--list #contents section[id^="blog-"] > .row { flex-direction: row-reverse; flex-wrap: nowrap; justify-content: flex-start; }
	body.ds-blog--list #contents section[id^="blog-"] > .row > .col-md-3 { flex: 0 0 96px; width: 96px; aspect-ratio: auto; position: relative; }
	body.ds-blog--list #contents section[id^="blog-"] > .row > .col-md-3 img { position: absolute; inset: 0; }
	body.ds-blog--list #contents section[id^="blog-"] > .row > .col-md-9 { flex: 1 1 0; min-width: 0; padding: 12px 14px; gap: 6px; }
	body.ds-blog--list #contents section[id^="blog-"] > .row > .col-md-9 > div:first-child { gap: 4px; }
	body.ds-blog--list #contents section[id^="blog-"] h6 { font-size: 12px; }
	body.ds-blog--list #contents section[id^="blog-"] h4 { font-size: 15px; }
	body.ds-blog--list #contents section[id^="blog-"] h4 + h6 + div { display: none; }
	body.ds-blog--list #contents section[id^="blog-"] p.mt-auto > .btn { font-size: 13px; }
}
@media (max-width: 374px) {
	body.ds-blog--list #contents section[id^="blog-"] > .row > .col-md-3 { flex-basis: 80px; width: 80px; }
}

/* ---------- Single post (/blogs/<identifier>) ---------- */
body.ds-blog--post #contents .row.my-3 > .col-lg-9 { color: var(--ds-ink-2); font-size: 17px; line-height: 1.7; }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > p,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ul,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ol,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h2,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h3,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h4,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > blockquote { max-width: 760px; }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > p { margin: 0 0 1.05em; }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h2 { margin: 1.6em 0 .5em; font-size: 27px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--ds-ink); text-transform: none; }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h3 { margin: 1.5em 0 .45em; font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--ds-ink); text-transform: none; }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h4 { margin: 1.3em 0 .4em; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ds-ink); }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h2:first-child,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h3:first-child { margin-top: .2em; }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ul,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ol { margin: 0 0 1.1em; padding-left: 1.3em; }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ul > li,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ol > li { margin: 0 0 .35em; padding-left: .2em; }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ul > li::marker { color: var(--ds-g-700); }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > p a,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ul a,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ol a {
	color: var(--ds-g-700); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > p a:hover,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ul a:hover,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > ol a:hover { color: var(--ds-ink); }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > p img { max-width: 100%; height: auto; border-radius: var(--ds-r-sm); }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > blockquote {
	margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--ds-g); background: var(--ds-g-50);
	border-radius: 0 var(--ds-r-sm) var(--ds-r-sm) 0; color: var(--ds-ink);
}
body.ds-blog--post #contents .row.my-3 > .col-lg-9 table { width: 100%; max-width: 760px; margin: 0 0 1.4em; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 table th,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 table td { padding: 9px 12px; border: 1px solid var(--ds-line); vertical-align: top; }
body.ds-blog--post #contents .row.my-3 > .col-lg-9 table th,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 table thead td { background: var(--ds-g-50); color: var(--ds-ink); font-weight: 700; }
@media (max-width: 767px) {
	body.ds-blog--post #contents .row.my-3 > .col-lg-9 { font-size: 16px; line-height: 1.65; }
	body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h2 { font-size: 23px; }
	body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h3 { font-size: 19px; }
}

/* Sidebar cards (reviews, your dates, upcoming events, plus any card in extra_content) */
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card {
	border: 1px solid var(--ds-line) !important; border-radius: var(--ds-r) !important; background: #fff !important;
	overflow: hidden; box-shadow: none;
}
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card > .card-header {
	background: #fff !important; border-bottom: 1px solid var(--ds-line); padding: 14px 16px 10px; color: var(--ds-ink);
	font-size: 15px; font-weight: 700;
}
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card > .card-header .card-title { font-size: 15px; font-weight: 700; color: var(--ds-ink); }
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card > .card-footer { background: #fff; border-top: 1px solid var(--ds-line); padding: 10px 12px !important; }
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card > .card-footer .btn {
	border-radius: 999px; background: #fff; border: 1px solid var(--ds-line); color: var(--ds-ink); font-weight: 700;
}
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card > .card-footer .btn:hover { background: var(--ds-g-700); border-color: var(--ds-g-700); color: #fff; }
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card h6 a { color: var(--ds-ink); font-weight: 700; }
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card h6 a:hover { color: var(--ds-g-700); }
body.ds-blog--post #contents #reviewsControls .text-warning { color: var(--ds-star) !important; }
body.ds-blog--post #contents #reviewsControls p { color: var(--ds-ink-2); font-size: 13.5px; line-height: 1.5; }
body.ds-blog--post #contents #reviewsControls .h5 { font-size: 13px; font-weight: 700; color: var(--ds-muted); }

/* Prev / next article */
body.ds-blog--post #contents .row.my-3 > .col-lg-3 > .btn-group.w-100 { display: flex; gap: 8px; }
body.ds-blog--post #contents .row.my-3 > .col-lg-3 > .btn-group.w-100 > .btn {
	flex: 1 1 0; border-radius: 999px !important; border: 1px solid var(--ds-line); background: #fff; color: var(--ds-ink);
	font-size: 13.5px; font-weight: 700; padding: 9px 12px;
}
body.ds-blog--post #contents .row.my-3 > .col-lg-3 > .btn-group.w-100 > .btn:hover { background: var(--ds-g-700); border-color: var(--ds-g-700); color: #fff; }

/* Headings under the article ("Order Online Today", stock levels) */
body.ds-blog--post #contents .row.my-3 ~ h3 { margin-top: 28px; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--ds-ink); text-transform: none; }
body.ds-blog--post #contents .row.my-3 ~ p { max-width: 760px; color: var(--ds-muted); font-size: 15.5px; line-height: 1.6; }

/* The legacy theme uppercases h4-h6, card headers and buttons; the new design uses sentence case */
body.ds-blog--list #contents section[id^="blog-"] h4,
body.ds-blog--list #contents section[id^="blog-"] h6,
body.ds-blog--list #contents section[id^="blog-"] .btn,
body.ds-blog--list #contents .col-md-3.col-md-push-9 .btn,
body.ds-blog--post #contents .row.my-3 > .col-lg-9 > h4,
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card > .card-header,
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card > .card-header .card-title,
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .card h6,
body.ds-blog--post #contents .row.my-3 > .col-lg-3 .btn,
body.ds-blog--post #contents #reviewsControls .h5 { text-transform: none !important; }

/* Narrow sidebar (768-991): keep Prev / page / Next on one line */
body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group > .btn,
body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group > .btn-group > .btn { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 991px) {
	body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group { gap: 4px; }
	body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group > .btn,
	body.ds-blog--list #contents .col-md-3.col-md-push-9 > .btn-group > .btn-group > .btn { padding: 7px 8px; font-size: 12px; }
}

/* ==========================================================================
 * Hero-post polish (18 Nov 2026): the benchmark single-post layout.
 * Scoped to body.ds.ds-blog--post, so it only applies with BOTH staff cookies
 * (EXPOHIRE_STAFF + EXPOHIRE_DS_PREVIEW=1; header.html adds body.ds). General
 * rules for every post: nothing here targets one article.
 * .ds-byline and .ds-toc are added by the DS_PREVIEW-only script in blog.html.
 * ========================================================================== */

/* Byline: source, date, read time */
body.ds.ds-blog--post .ds-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 12px 0 0 !important; padding: 0 !important; background: none !important; font-size: 13.5px; line-height: 1.4; }
body.ds.ds-blog--post .ds-byline > span + span::before { content: "\00b7"; margin: 0 8px; }
body.ds.ds-blog--post .ds-byline__src { font-weight: 700; }
body.ds.ds-blog--post #contents [id^="header-images"] .ds-byline { color: rgba(255, 255, 255, .85); }
body.ds.ds-blog--post #contents [id^="header-images"] .ds-byline__src { color: #fff; }
body.ds.ds-blog--post #contents #page-title .ds-byline { color: var(--ds-muted); font-size: 13px; }
body.ds.ds-blog--post #contents #page-title .ds-byline__src { color: var(--ds-g-700); }

/* Hero: a taller crop on phones (the 3:1 banner is only ~130px high at 390px) */
@media (max-width: 575px) {
	body.ds.ds-blog--post #contents [id^="header-images"] .carousel-item > img { aspect-ratio: 2 / 1; height: auto !important; object-fit: cover; }
}
@media (min-width: 992px) {
	body.ds.ds-blog--post #contents [id^="header-images"] .carousel-caption { padding: 36px 44px; }
	body.ds.ds-blog--post #contents [id^="header-images"] .carousel-caption > h1 { font-size: 38px; }
}

/* "In this guide" contents box (posts with 3+ h2 sections) */
body.ds.ds-blog--post #contents .row.my-3 > .col-lg-9 > .ds-toc {
	max-width: 760px; margin: 0 0 28px; padding: 16px 20px 14px; background: var(--ds-bg);
	border: 1px solid var(--ds-line); border-radius: var(--ds-r);
}
body.ds.ds-blog--post .ds-toc__label { margin: 0 0 8px !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-g-700); }
body.ds.ds-blog--post .ds-toc ol { margin: 0; padding: 0 0 0 1.4em; font-size: 15px; line-height: 1.45; columns: 2; column-gap: 32px; }
body.ds.ds-blog--post .ds-toc li { margin: 0 0 6px; break-inside: avoid; }
body.ds.ds-blog--post .ds-toc li::marker { color: var(--ds-g-700); font-weight: 700; }
body.ds.ds-blog--post .ds-toc a { color: var(--ds-ink); font-weight: 500; text-decoration: none; }
body.ds.ds-blog--post .ds-toc a:hover { color: var(--ds-g-700); text-decoration: underline; text-underline-offset: 3px; }
body.ds.ds-blog--post #contents .row.my-3 > .col-lg-9 > h2 { scroll-margin-top: 96px; }
@media (max-width: 767px) {
	body.ds.ds-blog--post .ds-toc ol { columns: 1; }
}

/* Article: first heading sits flush with the contents box / top of the column */
body.ds.ds-blog--post #contents .row.my-3 > .col-lg-9 > .ds-toc + h2 { margin-top: 0; }
body.ds.ds-blog--post #contents .row.my-3 > .col-lg-9 table { font-variant-numeric: tabular-nums; }

/* Sidebar: reviews card no longer keeps a fixed 12em box with empty space under short reviews */
body.ds.ds-blog--post #contents #reviewsControls .carousel-item > div { height: auto !important; min-height: 9em; }
@media (min-width: 992px) {
	body.ds.ds-blog--post #contents .row.my-3 > .col-lg-3 { padding-left: 24px; }
}

/* Featured products ("Order Online Today" block, shown when the post lists +SKUs) */
body.ds.ds-blog--post #contents > .row > .col:has(> .content-row .expo-product-card-container) > h3:not(.mt-3)::before {
	content: "Featured in this guide"; display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-g-700);
}
body.ds.ds-blog--post #contents > .row > .col > .content-row { padding: 0; margin-bottom: 8px; }
body.ds.ds-blog--post #contents > .row > .col > .content-row > .row { margin: 0 -4px; }
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-container { padding: 6px !important; }
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new {
	padding: 12px !important; border: 1px solid var(--ds-line) !important; border-radius: var(--ds-r) !important; box-shadow: none !important;
	transition: box-shadow .18s ease, transform .18s ease;
}
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new:hover { box-shadow: var(--ds-shadow) !important; transform: translateY(-2px); border-color: var(--ds-line) !important; }
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new .product-image { background: #f4f6f2; border-radius: 8px; aspect-ratio: 1; }
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new .product-image img {
	width: 100%; height: 100%; margin: 0; padding: 10%; object-fit: contain; mix-blend-mode: multiply; transform: none !important;
}
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new h4.title { margin: 10px 0 0; text-align: left; text-transform: none !important; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new h4.title a { color: var(--ds-ink) !important; text-decoration: none; }
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new h4.title small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ds-muted); }
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new .mt-auto h4.title { margin-top: 8px; font-size: 17px; font-weight: 700; }
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new .mt-auto h4.title small { display: inline; font-size: 12.5px; font-weight: 400; }
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new .mt-auto h4.title a::after {
	content: "View & book"; display: flex; align-items: center; justify-content: center; min-height: 36px; margin-top: 10px;
	border: 1px solid var(--ds-g); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ds-g-700); transition: background .2s ease, color .2s ease;
}
body.ds.ds-blog--post #contents > .row > .col > .content-row .expo-product-card-new:hover .mt-auto h4.title a::after { background: var(--ds-g-700); border-color: var(--ds-g-700); color: #fff; }

/* Category grid under the post. When the post has featured products, a stray </div> in blog.html (pre-existing,
   public markup, not changed) closes the content column early, so the heading and grid become direct children of
   #contents > .row and lose the column padding and heading style. These rules cover both nestings. */
body.ds.ds-blog--post #contents > .row > h3.mt-3,
body.ds.ds-blog--post #contents > .row > .col > h3.mt-3 {
	flex: 0 0 100%; max-width: 100%; margin: 36px 0 12px !important; padding: 0 4px; font-size: 22px; font-weight: 700; line-height: 1.3;
	color: var(--ds-ink); text-transform: none !important; letter-spacing: -.005em; text-wrap: balance;
}
body.ds.ds-blog--post #contents > .row > h3.mt-3::before,
body.ds.ds-blog--post #contents > .row > .col > h3.mt-3::before {
	content: "Browse the range"; display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-g-700);
}
body.ds.ds-blog--post #contents > .row > .container.clearfix { flex: 0 0 100%; max-width: 100%; padding: 0 4px !important; }
body.ds.ds-blog--post #contents > .row > .container.clearfix .expo-product-card-new,
body.ds.ds-blog--post #contents > .row > .col > .container.clearfix .expo-product-card-new { border-radius: var(--ds-r) !important; overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
body.ds.ds-blog--post #contents > .row > .container.clearfix .expo-product-card-new:hover,
body.ds.ds-blog--post #contents > .row > .col > .container.clearfix .expo-product-card-new:hover { box-shadow: var(--ds-shadow) !important; transform: translateY(-2px); }
body.ds.ds-blog--post #contents > .row > .container.clearfix .expo-product-card-new img,
body.ds.ds-blog--post #contents > .row > .col > .container.clearfix .expo-product-card-new img { border-radius: 0 !important; }

/* Phones and tablets: article -> featured products -> sidebar -> category grid, instead of three screens of
   sidebar between the article and the products it mentions. display:contents also removes the -15px row margins
   that made the page scroll sideways by 11px at 390px. */
@media (max-width: 991px) {
	body.ds.ds-blog--post #contents > .row > div.col { display: flex; flex-direction: column; }
	body.ds.ds-blog--post #contents > .row > .col > .row.my-3 { display: contents; }
	body.ds.ds-blog--post #contents > .row > .col > .row.my-3 > .col-lg-9,
	body.ds.ds-blog--post #contents > .row > .col > .row.my-3 > .col-lg-3 { padding-left: 0; padding-right: 0; }
	body.ds.ds-blog--post #contents > .row > .col > .row.my-3 > .col-lg-9 { margin-top: 16px; }
	body.ds.ds-blog--post #contents > .row > .col > .row.my-3 > .col-lg-3 { order: 1; margin-top: 28px; }
	/* Posts without featured products: the closing blocks follow the sidebar (browsers without :has keep source order) */
	body.ds.ds-blog--post #contents > .row > div.col:not(:has(> .content-row)) > :is(h3, p, .container) { order: 2; }
	body.ds.ds-blog--post #contents > .row > .col > .row.my-3 > .col-lg-3 .card { margin-right: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
	body.ds.ds-blog--post #contents .expo-product-card-new { transition: none !important; }
	body.ds.ds-blog--post #contents .expo-product-card-new:hover { transform: none !important; }
}

/* PIECE5-BLOG-H3-FIX BEGIN (18 Nov 2026, chrome go-live): in the <992px column-flex reorder above, the "flex: 0 0 100%" on a
   closing h3.mt-3 that sits inside div.col became a 100% HEIGHT basis, so on posts without featured products the heading grew to
   the column height and pushed the category grid below the footer. Reset the basis for column-flex children only. */
@media (max-width: 991px) {
	body.ds.ds-blog--post #contents > .row > div.col > h3.mt-3 { flex: 0 0 auto; }
}
/* PIECE5-BLOG-H3-FIX END */
