/*
 * ds-cms-content.css — STAFF PREVIEW ONLY (18 Nov 2026, design rollout day 1-2 prep)
 * Restyles the generic CMS page template (public/magento_cms_content.html).
 * Loaded only for staff preview browsers; the template then adds
 * body.ds-cms via a one-line script. Every rule is scoped to
 * body.ds-cms #contents > .row > .col so nothing else on the site is affected.
 *
 * Deliberately NOT styled (owned by the separate Bootstrap 5 class fix):
 *   .usp-list .faq-list .city-cross-links .city-links .row.g-3 .border-start .ps-3
 *   .accordion* .table-light, and any form controls.
 * (.usp-list, dl.faq-list and .row.g-3 blockquotes ARE styled in the hero polish section at the end, under this same scope.)
 * Gate: since the 18 Nov hero polish the template loads this only with EXPOHIRE_STAFF + EXPOHIRE_DS_PREVIEW=1.
 * TODO: merge into the shared ds-content.css layer once the chrome task creates it.
 */

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

/* ---------- Hero (desktop carousel caption) ---------- */
body.ds-cms #contents > .row > .col > .carousel { margin-top: 12px; }
body.ds-cms #contents > .row > .col > .carousel .carousel-inner { border-radius: var(--ds-r) !important; box-shadow: var(--ds-shadow-sm); }
body.ds-cms #contents > .row > .col > .carousel .carousel-item::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(15, 26, 20, .78) 0%, rgba(15, 26, 20, .45) 45%, rgba(15, 26, 20, 0) 75%);
}
body.ds-cms #contents > .row > .col > .carousel .carousel-caption {
	z-index: 2; left: 40px; right: auto; bottom: 50%; transform: translateY(50%);
	max-width: 560px; padding: 0; text-align: left;
}
body.ds-cms #contents > .row > .col > .carousel .carousel-caption > h1,
body.ds-cms #contents > .row > .col > .carousel .carousel-caption > h3 {
	background: none !important; color: #fff !important; text-align: left !important;
	text-transform: none !important; padding: 0 !important; margin: 0 0 10px !important;
	font-size: 2.25rem; font-weight: 700; line-height: 1.12; letter-spacing: -.01em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
body.ds-cms #contents > .row > .col > .carousel .carousel-caption > p {
	background: none !important; color: rgba(255, 255, 255, .92) !important; text-align: left !important;
	padding: 0 !important; font-size: 1.05rem; font-weight: 400 !important; line-height: 1.5;
}
body.ds-cms #contents > .row > .col > .carousel .carousel-caption > h1::before {
	content: ""; display: block; width: 44px; height: 4px; border-radius: 2px;
	background: var(--ds-g); margin-bottom: 14px;
}

/* ---------- Mobile title block (#page-title, < 992px) ---------- */
body.ds-cms #contents > .row > .col > #page-title {
	border: 1px solid var(--ds-line) !important; border-radius: var(--ds-r); overflow: hidden;
	background: #fff; box-shadow: var(--ds-shadow-sm); margin-top: 12px;
}
body.ds-cms #contents > .row > .col > #page-title > h2 {
	background: #fff !important; color: var(--ds-ink) !important; text-align: left !important;
	text-transform: none !important; font-size: 1.5rem; font-weight: 700; line-height: 1.2;
	padding: 18px 18px 6px !important; border-top: 4px solid var(--ds-g);
}
body.ds-cms #contents > .row > .col > #page-title > p {
	background: #fff !important; color: var(--ds-ink-2) !important; text-align: left !important;
	font-weight: 400 !important; padding: 0 18px 18px !important; line-height: 1.55;
}

/* ---------- Body copy (page_content / page_extra_content) ---------- */
body.ds-cms #contents > .row > .col > .my-3 {
	color: var(--ds-ink-2); font-size: 1rem; line-height: 1.7; max-width: 100%;
}
body.ds-cms #contents > .row > .col > .my-3 > p { margin: 0 0 1rem; }
body.ds-cms #contents > .row > .col > .my-3 > h2 {
	color: var(--ds-ink); font-size: 1.6rem; font-weight: 700; line-height: 1.2;
	letter-spacing: -.01em; text-transform: none; margin: 2rem 0 .75rem;
}
body.ds-cms #contents > .row > .col > .my-3 > h3 {
	color: var(--ds-ink); font-size: 1.2rem; font-weight: 700; line-height: 1.3;
	text-transform: none; margin: 1.5rem 0 .5rem;
}
body.ds-cms #contents > .row > .col > .my-3 > h4 {
	color: var(--ds-ink); font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .5rem;
}
body.ds-cms #contents > .row > .col > .my-3 > hr {
	border: 0; border-top: 1px solid var(--ds-line); margin: 2rem 0;
}
body.ds-cms #contents > .row > .col > .my-3 > p > a:not(.btn),
body.ds-cms #contents > .row > .col > .my-3 > ul:not([class]) a:not(.btn),
body.ds-cms #contents > .row > .col > .my-3 > ol:not([class]) a:not(.btn) {
	color: var(--ds-g-700); font-weight: 500; text-decoration: underline;
	text-decoration-color: rgba(71, 124, 21, .35); text-underline-offset: 3px;
}
body.ds-cms #contents > .row > .col > .my-3 > p > a:not(.btn):hover,
body.ds-cms #contents > .row > .col > .my-3 > ul:not([class]) a:not(.btn):hover,
body.ds-cms #contents > .row > .col > .my-3 > ol:not([class]) a:not(.btn):hover {
	color: var(--ds-ink); text-decoration-color: var(--ds-g);
}
body.ds-cms #contents > .row > .col > .my-3 a:focus-visible { outline: 2px solid var(--ds-g-700); outline-offset: 2px; border-radius: 3px; }

/* Plain (unclassed) lists only, so .usp-list / .faq-list / .city-cross-links are left alone */
body.ds-cms #contents > .row > .col > .my-3 > ul:not([class]) { list-style: none; padding-left: 0; margin: 0 0 1.25rem; }
body.ds-cms #contents > .row > .col > .my-3 > ul:not([class]) > li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
body.ds-cms #contents > .row > .col > .my-3 > ul:not([class]) > li::before {
	content: ""; position: absolute; left: .25rem; top: .62em; width: 7px; height: 7px;
	border-radius: 50%; background: var(--ds-g);
}
body.ds-cms #contents > .row > .col > .my-3 > ol:not([class]) { padding-left: 1.4rem; margin: 0 0 1.25rem; }
body.ds-cms #contents > .row > .col > .my-3 > ol:not([class]) > li { margin-bottom: .5rem; padding-left: .25rem; }
body.ds-cms #contents > .row > .col > .my-3 > ol:not([class]) > li::marker { color: var(--ds-g-700); font-weight: 700; }

/* Tables: only the existing .table markup; .table-light is left to the BS5 fix */
body.ds-cms #contents > .row > .col > .my-3 table.table {
	border-collapse: separate; border-spacing: 0; border: 1px solid var(--ds-line) !important;
	border-radius: var(--ds-r-sm); overflow: hidden; background: #fff; font-size: .95rem;
}
body.ds-cms #contents > .row > .col > .my-3 table.table th,
body.ds-cms #contents > .row > .col > .my-3 table.table td { border-color: var(--ds-line); padding: .7rem .9rem; vertical-align: top; }
body.ds-cms #contents > .row > .col > .my-3 table.table thead th { color: var(--ds-ink); font-weight: 700; border-bottom-width: 1px; }

/* Content images */
body.ds-cms #contents > .row > .col > .my-3 > p > img,
body.ds-cms #contents > .row > .col > .my-3 > img { border-radius: var(--ds-r-sm); max-width: 100%; height: auto; }

/* ---------- Category grid below the content ---------- */
body.ds-cms #contents > .row > .col > .container > .same-category .expo-product-card-new {
	border-radius: var(--ds-r) !important; box-shadow: var(--ds-shadow-sm) !important;
	border: 1px solid var(--ds-line) !important; overflow: hidden;
	transition: box-shadow .15s ease, transform .15s ease;
}
body.ds-cms #contents > .row > .col > .container > .same-category .expo-product-card-new:hover {
	box-shadow: var(--ds-shadow) !important; transform: translateY(-2px);
}
body.ds-cms #contents > .row > .col > .container > .same-category .expo-product-card-new img { border-radius: 0 !important; }

@media (max-width: 767.98px) {
	body.ds-cms #contents > .row > .col > .my-3 > h2 { font-size: 1.35rem; margin-top: 1.5rem; }
	body.ds-cms #contents > .row > .col > .my-3 > h3 { font-size: 1.1rem; }
	body.ds-cms #contents > .row > .col > .my-3 table.table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
	body.ds-cms #contents > .row > .col > .container > .same-category .expo-product-card-new { transition: none; }
	body.ds-cms #contents > .row > .col > .container > .same-category .expo-product-card-new:hover { transform: none; }
}

/* ==========================================================================
   Hero polish (18 Nov 2026, reference page /about-us-faqs). Still CSS-only and
   general-purpose: these rules match the shared CMS content patterns
   (lead paragraph, ul.usp-list, dl.faq-list, .row.g-3 blockquote testimonials),
   wherever they appear on a cms_content page. Styled to match the beta homepage
   card family (white cards, --ds-line border, 14px radius, green check marks).
   The <div class="faq-list"> variant (h3/p, 6 pages) is deliberately left alone.
   ========================================================================== */

/* Lead paragraph: the opening text-only paragraph reads as an intro */
body.ds-cms #contents > .row > .col > .my-3 > p:first-child:not(:last-child):not(:has(img, iframe, table)) {
	color: var(--ds-ink); font-size: 1.125rem; line-height: 1.6; max-width: 72ch; margin-bottom: 1.5rem;
}

/* Section headings: small green rule above, like the hero title and homepage kickers */
body.ds-cms #contents > .row > .col > .my-3 > h2 { margin-top: 2.5rem; }
body.ds-cms #contents > .row > .col > .my-3 > h2::before {
	content: ""; display: block; width: 32px; height: 3px; border-radius: 2px;
	background: var(--ds-g); margin-bottom: 12px;
}
body.ds-cms #contents > .row > .col > .my-3 > hr { margin: 2.5rem 0 0; }
body.ds-cms #contents > .row > .col > .my-3 > hr + h2 { margin-top: 2rem; }

/* USP list: check-mark tiles, two across from 768px */
body.ds-cms #contents > .row > .col > .my-3 > ul.usp-list {
	list-style: none; padding: 0; margin: 0 0 1.5rem;
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
body.ds-cms #contents > .row > .col > .my-3 > ul.usp-list > li {
	position: relative; margin: 0; padding: 14px 16px 14px 52px;
	background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r);
	box-shadow: var(--ds-shadow-sm); line-height: 1.55; color: var(--ds-ink-2);
}
body.ds-cms #contents > .row > .col > .my-3 > ul.usp-list > li::before {
	content: ""; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--ds-g-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23477c15' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
	border: 0; transform: none;
}
body.ds-cms #contents > .row > .col > .my-3 > ul.usp-list > li > strong:first-child { display: block; color: var(--ds-ink); margin-bottom: 2px; }
@media (min-width: 768px) {
	body.ds-cms #contents > .row > .col > .my-3 > ul.usp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	body.ds-cms #contents > .row > .col > .my-3 > ul.usp-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* FAQ list (<dl class="faq-list">): one white card per section; question left, answer right from 992px */
body.ds-cms #contents > .row > .col > .my-3 > dl.faq-list {
	background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-r);
	box-shadow: var(--ds-shadow-sm); padding: 4px 20px; margin: 0 0 1.5rem;
}
body.ds-cms #contents > .row > .col > .my-3 > dl.faq-list > dt {
	color: var(--ds-ink); font-size: 1.05rem; font-weight: 700; line-height: 1.4;
	margin: 0; padding: 16px 0 0; border-top: 1px solid var(--ds-line);
}
body.ds-cms #contents > .row > .col > .my-3 > dl.faq-list > dt:first-child { border-top: 0; }
body.ds-cms #contents > .row > .col > .my-3 > dl.faq-list > dd { margin: 6px 0 0; padding: 0 0 16px; color: var(--ds-ink-2); }
body.ds-cms #contents > .row > .col > .my-3 > dl.faq-list > dd a {
	color: var(--ds-g-700); font-weight: 500; text-decoration: underline;
	text-decoration-color: rgba(71, 124, 21, .35); text-underline-offset: 3px;
}
@media (min-width: 992px) {
	body.ds-cms #contents > .row > .col > .my-3 > dl.faq-list {
		display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); padding: 4px 28px;
	}
	body.ds-cms #contents > .row > .col > .my-3 > dl.faq-list > dt { grid-column: 1; padding: 19px 32px 18px 0; }
	body.ds-cms #contents > .row > .col > .my-3 > dl.faq-list > dd { grid-column: 2; margin: 0; padding: 18px 0 18px 8px; border-top: 1px solid var(--ds-line); }
	body.ds-cms #contents > .row > .col > .my-3 > dl.faq-list > dd:nth-child(2) { border-top: 0; }
}

/* Testimonial rows (<div class="row g-3"><blockquote class="border-start ps-3">):
   quote cards, two across from 768px. Margins are zeroed, which also stops the 11px sideways scroll on phones. */
body.ds-cms #contents > .row > .col > .my-3 > .row.g-3:has(> blockquote) {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0 0 1.25rem;
}
body.ds-cms #contents > .row > .col > .my-3 > .row.g-3 > blockquote {
	position: relative; margin: 0; padding: 20px 22px !important; border: 1px solid var(--ds-line) !important;
	background: var(--ds-g-50); border-radius: var(--ds-r); color: var(--ds-ink);
	font-size: 1.05rem; line-height: 1.55; font-weight: 500;
}
@media (min-width: 768px) {
	body.ds-cms #contents > .row > .col > .my-3 > .row.g-3:has(> blockquote) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Bare <table> in CMS copy (7 active pages, e.g. /services-no-deposit) gets the same card treatment as table.table */
body.ds-cms #contents > .row > .col > .my-3 > table:not([class]) {
	width: 100%; margin: 0 0 1.25rem; border-collapse: separate; border-spacing: 0;
	border: 1px solid var(--ds-line); border-radius: var(--ds-r-sm); overflow: hidden; background: #fff; font-size: .95rem;
}
body.ds-cms #contents > .row > .col > .my-3 > table:not([class]) th,
body.ds-cms #contents > .row > .col > .my-3 > table:not([class]) td { padding: .7rem .9rem; vertical-align: top; text-align: left; border-top: 1px solid var(--ds-line); }
body.ds-cms #contents > .row > .col > .my-3 > table:not([class]) thead th { background: var(--ds-g-50); color: var(--ds-ink); font-weight: 700; border-top: 0; }
@media (max-width: 767.98px) {
	body.ds-cms #contents > .row > .col > .my-3 > table:not([class]) { display: block; overflow-x: auto; }
}

/* Phones: the live column has only 4px side padding (.px-1, !important), so cards touched the screen edge. Match the 14px header gutter. */
@media (max-width: 575.98px) {
	body.ds-cms #contents > .row > .col { padding-left: 14px !important; padding-right: 14px !important; }
}
