/* WS48 What's New pattern
   Brand palette: Deep Blue #26526E, Warm Cream #EDE8DE, Terracotta #C1694A,
   Greige #A8A296, Soft Black #1A1A1A, Brick Red #9C3A2B */

body:has(.ws48-wn) { overflow-x: clip; }

.ws48-wn {
	--ws48-blue: #26526E;
	--ws48-cream: #EDE8DE;
	--ws48-terracotta: #C1694A;
	--ws48-greige: #A8A296;
	--ws48-greige-light: #DDD8CD;
	--ws48-black: #1A1A1A;
	--ws48-brick: #9C3A2B;
	--ws48-border: #D9D3C7;
	--ws48-text: #3D3A35;
	--ws48-muted: #5C5850;
	--ws48-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--ws48-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Full-bleed: break out of the theme's content column. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 0;
	margin-bottom: 0;

	background: var(--ws48-cream);
	color: var(--ws48-black);
	font-family: var(--ws48-body);
	font-size: 16px;
	line-height: 1.5;
}

.ws48-wn *,
.ws48-wn *::before,
.ws48-wn *::after { box-sizing: border-box; }

.ws48-wn > * { margin-top: 0; margin-bottom: 0; }

.ws48-wn a { color: var(--ws48-black); }
.ws48-wn a:hover,
.ws48-wn a:focus-visible { color: var(--ws48-brick); }

.ws48-wn .wp-block-heading {
	font-family: var(--ws48-display);
	color: var(--ws48-black);
	letter-spacing: -0.02em;
	margin: 0;
}

.ws48-wn p { margin: 0; }

.ws48-wn .ws48-wn-inner {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---------- Buttons ---------- */

.ws48-wn .ws48-wn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

.ws48-wn .ws48-wn-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 24px;
	border: 0;
	border-radius: 10px;
	background: var(--ws48-terracotta);
	color: #FFFFFF;
	font-family: var(--ws48-body);
	font-size: 19px; /* large bold text keeps white on terracotta legible */
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
.ws48-wn .ws48-wn-btn .wp-block-button__link:hover,
.ws48-wn .ws48-wn-btn .wp-block-button__link:focus-visible {
	background: var(--ws48-brick);
	color: #FFFFFF;
}

.ws48-wn .ws48-wn-btn--dark .wp-block-button__link {
	background: var(--ws48-black);
	color: var(--ws48-cream);
	font-size: 16px;
}
.ws48-wn .ws48-wn-btn--dark .wp-block-button__link:hover,
.ws48-wn .ws48-wn-btn--dark .wp-block-button__link:focus-visible {
	background: var(--ws48-blue);
	color: #FFFFFF;
}

/* ---------- Hero ---------- */

.ws48-wn .ws48-wn-hero { padding-top: 56px; padding-bottom: 40px; }

.ws48-wn .ws48-wn-crumbs { font-size: 13px; color: var(--ws48-muted); margin-bottom: 20px; }
.ws48-wn .ws48-wn-crumbs a { color: var(--ws48-muted); }

.ws48-wn .ws48-wn-hero-row {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-end;
	justify-content: space-between;
}
.ws48-wn .ws48-wn-hero-row > * { margin: 0; }

.ws48-wn .ws48-wn-hero-copy { flex: 1 1 520px; min-width: 0; }

.ws48-wn .ws48-wn-title {
	font-size: clamp(44px, 6vw, 80px);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.03em;
	margin-bottom: 18px;
}

.ws48-wn .ws48-wn-lede { font-size: 19px; color: var(--ws48-text); max-width: 560px; }

.ws48-wn .ws48-wn-subscribe {
	flex: 0 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #FFFFFF;
	border: 1px solid var(--ws48-border);
	border-radius: 14px;
	padding: 20px;
}
.ws48-wn .ws48-wn-subscribe > * { margin: 0; }
.ws48-wn .ws48-wn-subscribe-title { font-size: 16px; }
.ws48-wn .ws48-wn-subscribe-note { font-size: 13px; color: var(--ws48-muted); margin-bottom: 6px; }
/* A Gravity Forms block dropped into .ws48-wn-subscribe inherits the body font. */
.ws48-wn .ws48-wn-subscribe .gform_wrapper { margin: 0; font-family: var(--ws48-body); }

/* ---------- Shared post lists ---------- */

.ws48-wn .wp-block-query { margin: 0; }

.ws48-wn .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: none;
}
.ws48-wn .wp-block-post-template > li { margin: 0; padding: 0; }

.ws48-wn .ws48-wn-card {
	height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid var(--ws48-border);
	border-radius: 16px;
	overflow: hidden;
}

.ws48-wn .ws48-wn-card-img { margin: 0; background: var(--ws48-greige-light); }
.ws48-wn .ws48-wn-card-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.ws48-wn .ws48-wn-card-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 24px;
	margin: 0;
}
.ws48-wn .ws48-wn-card-body > * { margin: 0; }

.ws48-wn .ws48-wn-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}
.ws48-wn .ws48-wn-meta > * { margin: 0; }

.ws48-wn .ws48-wn-date { font-size: 13px; color: var(--ws48-muted); }

.ws48-wn .ws48-wn-card-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.22;
}
.ws48-wn .ws48-wn-card-title a { color: inherit; text-decoration: none; }
.ws48-wn .ws48-wn-card-title a:hover,
.ws48-wn .ws48-wn-card-title a:focus-visible { color: var(--ws48-brick); }

.ws48-wn .ws48-wn-excerpt {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	font-size: 15px;
	color: var(--ws48-text);
}
.ws48-wn .ws48-wn-excerpt .wp-block-post-excerpt__excerpt { margin: 0; }
.ws48-wn .wp-block-post-excerpt__more-text { margin: 0; }
.ws48-wn .wp-block-post-excerpt__more-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--ws48-black);
	text-decoration: none;
}

/* Category tag: first category only, coloured by topic. */
.ws48-wn .ws48-wn-tag a ~ a,
.ws48-wn .ws48-wn-tag .wp-block-post-terms__separator { display: none; }

.ws48-wn .ws48-wn-tag a,
.ws48-wn .ws48-wn-notice-tag a {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	background: #E3DED3;
	color: #4A463E;
}
.ws48-wn .ws48-wn-tag a[href*="/new-products"]    { background: #F3DDD3; color: #8A3E25; }
.ws48-wn .ws48-wn-tag a[href*="/dealer-notices"]  { background: #D6E2EA; color: var(--ws48-blue); }
.ws48-wn .ws48-wn-tag a[href*="/insights"]        { background: #E3DED3; color: #4A463E; }
.ws48-wn .ws48-wn-tag a[href*="/client-projects"] { background: #DDD8CD; color: #3E3A33; }
.ws48-wn .ws48-wn-tag a[href*="/guides-training"] { background: var(--ws48-black); color: #FFFFFF; }
.ws48-wn .ws48-wn-tag a[href*="/events"]          { background: #F0D6D0; color: var(--ws48-brick); }

/* ---------- Featured ---------- */

.ws48-wn .ws48-wn-featured { padding-bottom: 48px; }

.ws48-wn .ws48-wn-featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 24px;
}
.ws48-wn .ws48-wn-featured-grid > li:first-child { grid-row: span 2; }

.ws48-wn .ws48-wn-featured-grid > li:first-child .ws48-wn-card-img img { aspect-ratio: 16 / 9; }
.ws48-wn .ws48-wn-featured-grid > li:first-child .ws48-wn-card-body { padding: 28px 32px 32px; gap: 12px; }
.ws48-wn .ws48-wn-featured-grid > li:first-child .ws48-wn-card-title {
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.1;
}
.ws48-wn .ws48-wn-featured-grid > li:first-child .ws48-wn-excerpt { font-size: 16px; }

.ws48-wn .ws48-wn-featured-grid > li:not(:first-child) .ws48-wn-excerpt { display: none; }
.ws48-wn .ws48-wn-featured-grid > li:not(:first-child) .ws48-wn-card-title { font-size: 21px; }

/* ---------- Dealer notices band ---------- */

.ws48-wn .ws48-wn-notices {
	background: var(--ws48-greige);
	color: var(--ws48-black);
	padding-top: 40px;
	padding-bottom: 40px;
	margin: 0;
}

.ws48-wn .ws48-wn-notices-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 32px;
}
.ws48-wn .ws48-wn-notices-row > * { margin: 0; }

.ws48-wn .ws48-wn-notices-intro {
	flex: 1 1 260px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15px;
}
.ws48-wn .ws48-wn-notices-intro > * { margin: 0; }

.ws48-wn .ws48-wn-kicker {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ws48-wn .ws48-wn-notices-title { font-size: 30px; font-weight: 700; line-height: 1.1; }

.ws48-wn .ws48-wn-more { margin-top: 6px; }
.ws48-wn .ws48-wn-more a { font-weight: 600; }

.ws48-wn .ws48-notices-query { flex: 3 1 600px; min-width: 0; }

.ws48-wn .ws48-wn-notices-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.ws48-wn .ws48-wn-notice {
	height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	background: var(--ws48-cream);
	border: 1px solid #8F897D;
	border-radius: 14px;
}
.ws48-wn .ws48-wn-notice > * { margin: 0; }
.ws48-wn .ws48-wn-notice-tag a { background: #D3CDC1; color: var(--ws48-black); margin-right: 4px; }
.ws48-wn .ws48-wn-notice-tag .wp-block-post-terms__separator { display: none; }

.ws48-wn .ws48-wn-notice-title { font-size: 18px; font-weight: 700; line-height: 1.25; }
.ws48-wn .ws48-wn-notice-title a { color: inherit; text-decoration: none; }
.ws48-wn .ws48-wn-notice-title a:hover { color: var(--ws48-brick); }

.ws48-wn .ws48-wn-notice-excerpt { flex: 1 1 auto; font-size: 14px; line-height: 1.45; color: #4A463E; }
.ws48-wn .ws48-wn-notice-excerpt .wp-block-post-excerpt__excerpt { margin: 0; }

/* ---------- All updates ---------- */

.ws48-wn .ws48-wn-updates { padding-top: 56px; padding-bottom: 24px; scroll-margin-top: 120px; }

.ws48-wn .ws48-wn-updates-title { font-size: 36px; font-weight: 700; margin-bottom: 24px; }

.ws48-wn .ws48-wn-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 32px;
}
.ws48-wn .ws48-wn-chip { margin: 0; }
.ws48-wn .ws48-wn-chip .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--ws48-greige);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--ws48-black);
	font-family: var(--ws48-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}
.ws48-wn .ws48-wn-chip .wp-block-button__link:hover,
.ws48-wn .ws48-wn-chip .wp-block-button__link:focus-visible {
	border-color: var(--ws48-black);
	color: var(--ws48-black);
}
.ws48-wn .ws48-wn-chip .wp-block-button__link.is-active {
	background: var(--ws48-black);
	border-color: var(--ws48-black);
	color: #FFFFFF;
}

.ws48-wn .ws48-wn-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.ws48-wn .ws48-wn-empty { padding: 24px 0; color: var(--ws48-muted); }

.ws48-wn .ws48-wn-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 40px 0 0;
}
.ws48-wn .ws48-wn-pagination .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}
.ws48-wn .ws48-wn-pagination a,
.ws48-wn .ws48-wn-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 16px;
	margin: 0;
	border: 1.5px solid var(--ws48-greige);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--ws48-black);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.ws48-wn .ws48-wn-pagination a:hover { border-color: var(--ws48-black); }
.ws48-wn .ws48-wn-pagination .page-numbers.current {
	background: var(--ws48-black);
	border-color: var(--ws48-black);
	color: #FFFFFF;
}
.ws48-wn .ws48-wn-pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Newsletter band ---------- */

.ws48-wn .ws48-wn-cta { padding-top: 48px; padding-bottom: 72px; }

.ws48-wn .ws48-wn-cta-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin: 0;
	padding: 48px;
	background: var(--ws48-greige-light);
	border-radius: 22px;
}
.ws48-wn .ws48-wn-cta-box > * { margin: 0; }

.ws48-wn .ws48-wn-cta-copy { flex: 1 1 420px; min-width: 0; }
.ws48-wn .ws48-wn-cta-copy > * { margin: 0; }
.ws48-wn .ws48-wn-cta-title {
	font-size: clamp(30px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.05;
	margin-bottom: 10px;
}
.ws48-wn .ws48-wn-cta-copy p { font-size: 17px; color: #3E3A33; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
	.ws48-wn .ws48-wn-featured-grid { grid-template-columns: minmax(0, 1fr); }
	.ws48-wn .ws48-wn-featured-grid > li:first-child { grid-row: auto; }
}

@media (max-width: 600px) {
	.ws48-wn .ws48-wn-inner { padding-left: 16px; padding-right: 16px; }
	.ws48-wn .ws48-wn-hero { padding-top: 32px; }
	.ws48-wn .ws48-wn-featured-grid > li:first-child .ws48-wn-card-body { padding: 20px 22px 24px; }
	.ws48-wn .ws48-wn-grid { grid-template-columns: minmax(0, 1fr); }
	.ws48-wn .ws48-wn-cta-box { padding: 28px 22px; }
	.ws48-wn .ws48-wn-updates-title { font-size: 30px; }
}

/* ---------- Editor ---------- */

/* Don't force full-bleed inside the block editor canvas. */
.editor-styles-wrapper .ws48-wn {
	width: auto;
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
