/**
 * Shared page shell.
 *
 * The custom-coded pages (news archive, search results) used to centre their
 * own narrow column, so nothing lined up with the Elementor-built pages. This
 * gives them the site's measure instead: a full-bleed band that can carry a
 * background to the viewport edge, and an inner element that holds the
 * measure and the gutter.
 *
 * The gutter sits *inside* the 1200px box, the same way the design's site
 * header does (`max-width:1200px; padding:12px 32px`), so the measure is
 * 1136px.
 *
 * Both the cap and the gutter are custom properties, because the shell is
 * nested inside Woodmart's own `main.container` and that container decides
 * where a sibling page's left edge falls. On a site whose container is set to
 * 1200px the two coincide and the design's numbers hold exactly; where it is
 * set to something else, retuning these two values is the whole adjustment.
 *
 * Also the one place the palette is written down. Both feature stylesheets
 * load this first and read the tokens from here, so a retint is one edit.
 */

.dtg-band {
	--dtg-ink: #11212e;
	--dtg-body: #3f4952;
	--dtg-muted: #697680;
	--dtg-faint: #a3adb5;
	--dtg-accent: var(--brand-primary, #1f6494);
	--dtg-accent-hover: #15496e;
	--dtg-accent-soft: #e7f1f9;
	--dtg-line: #e4ebf0;
	--dtg-rule: #eef3f7;
	--dtg-surface: #fff;
	--dtg-page: #f7fafc;

	--dtg-card-radius: 20px;
	--dtg-card-shadow: 0 10px 30px rgba(13, 36, 51, 0.05);

	/* Clears both header rows, so a sticky rail is never tucked under them. */
	--dtg-sticky-top: 130px;

	/* The measure, and the gutter held inside it. */
	--dtg-shell-max: 1200px;
	--dtg-shell-gutter: 32px;

	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--dtg-body);
}

.dtg-band .dtg-inner {
	max-width: var(--dtg-shell-max);
	margin: 0 auto;
	padding-inline: var(--dtg-shell-gutter);
}

@media (max-width: 1024px) {
	.dtg-band {
		--dtg-shell-gutter: 20px;
	}
}

/* Page head — shared by both pages so the two H1s are identical. */
.dtg-band .dtg-page-head {
	margin-bottom: 28px;
}

.dtg-band .dtg-page-title {
	margin: 0 0 14px;
	color: var(--dtg-ink);
	font-family: inherit;
	font-size: 38px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-transform: none;
}

.dtg-band .dtg-page-intro {
	margin: 0;
	max-width: 66ch;
	color: var(--dtg-body);
	font-size: 17px;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.dtg-band .dtg-page-title {
		font-size: 28px;
	}
}

/*
 * Card — the one surface both pages are built from.
 */
.dtg-band .dtg-card {
	background: var(--dtg-surface);
	border: 1px solid var(--dtg-line);
	border-radius: var(--dtg-card-radius);
	box-shadow: var(--dtg-card-shadow);
}

/* Badge — the pill above a title. */
.dtg-band .dtg-badge {
	padding: 5px 11px;
	background: var(--dtg-accent-soft);
	border-radius: 999px;
	color: var(--dtg-accent);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

/*
 * The rail's own chrome. The cards inside come from an editable template, so
 * only the shell around them is styled here.
 */
.dtg-band .dtg-rail {
	min-width: 0;
}

.dtg-band .dtg-rail__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: var(--dtg-sticky-top);
}

@media (max-width: 1024px) {
	.dtg-band .dtg-rail__inner {
		position: static;
	}
}

/* Card classes the rail template can use without knowing the page it is on. */
.dtg-band .dtg-rail-card {
	padding: 24px;
	background: var(--dtg-surface);
	border: 1px solid var(--dtg-line);
	border-radius: var(--dtg-card-radius);
	box-shadow: var(--dtg-card-shadow);
}

.dtg-band .dtg-rail-card > :first-child {
	margin-top: 0;
}

.dtg-band .dtg-rail-card > :last-child {
	margin-bottom: 0;
}

.dtg-band .dtg-rail-card h2,
.dtg-band .dtg-rail-card h3 {
	margin: 0 0 10px;
	color: var(--dtg-ink);
	font-family: inherit;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-transform: none;
}

.dtg-band .dtg-rail-card p {
	margin: 0 0 14px;
	color: var(--dtg-body);
	font-size: 15px;
	line-height: 1.6;
}

.dtg-band .dtg-rail-card a:not(.dtg-rail-card__cta) {
	color: var(--dtg-accent);
}

.dtg-band .dtg-rail-card a:not(.dtg-rail-card__cta):hover,
.dtg-band .dtg-rail-card a:not(.dtg-rail-card__cta):focus {
	color: var(--dtg-accent-hover);
}

.dtg-band .dtg-rail-card__cta {
	display: inline-block;
	padding: 12px 22px;
	background: var(--dtg-accent);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
}

.dtg-band .dtg-rail-card__cta:hover,
.dtg-band .dtg-rail-card__cta:focus {
	background: var(--dtg-accent-hover);
	color: #fff;
}

/*
 * Membership is green, everywhere on the site. A rail card that sells a
 * membership marks itself with this rather than reaching for the blue.
 */
.dtg-band .dtg-rail-card--membership .dtg-rail-card__cta {
	background: var(--brand-accent, #347544);
}

.dtg-band .dtg-rail-card--membership .dtg-rail-card__cta:hover,
.dtg-band .dtg-rail-card--membership .dtg-rail-card__cta:focus {
	background: #2a5e37;
}

/* Pagination — identical on both pages. */
.dtg-band .dtg-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 28px;
}

.dtg-band .dtg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--dtg-surface);
	border: 1px solid var(--dtg-line);
	border-radius: 999px;
	color: var(--dtg-body);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.dtg-band .dtg-pagination .page-numbers:hover,
.dtg-band .dtg-pagination .page-numbers:focus {
	border-color: var(--dtg-accent);
	color: var(--dtg-accent);
}

.dtg-band .dtg-pagination .page-numbers:focus-visible {
	outline: 2px solid var(--dtg-accent);
	outline-offset: 2px;
}

.dtg-band .dtg-pagination .page-numbers.current {
	background: var(--dtg-accent);
	border-color: var(--dtg-accent);
	color: #fff;
}

.dtg-band .dtg-pagination .page-numbers.dots {
	background: none;
	border-color: transparent;
}
