/* ==========================================================================
   WS48 Pricing & Literature – block pattern styles
   Change brand colours here; every section reads these variables.
   ========================================================================== */
.ws48-pl {
	--ws48-ink: #1A1A1A;
	--ws48-body: #403C36;
	--ws48-muted: #6B665F;
	--ws48-cream: #EDE8DE;
	--ws48-card: #F4F0E8;
	--ws48-line: #E4DED5;
	--ws48-stone: #A8A296;
	--ws48-accent: #A8462F;   /* terracotta buttons */
	--ws48-accent-dark: #8A3624;
	--ws48-red: #9C3A2B;      /* eyebrow + icons */
	--ws48-navy: #26526E;
	--ws48-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
	--ws48-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M4 19h16'/%3E%3C/svg%3E");

	font-family: 'Instrument Sans', system-ui, sans-serif;
	color: var(--ws48-ink);
	background: var(--ws48-cream);
	-webkit-font-smoothing: antialiased;
}
.ws48-pl,
.ws48-pl * { box-sizing: border-box; }

/* Sections sit flush against each other */
.ws48-pl.alignfull {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Inner container – matches the 1360px grid on the other WS48 pages */
.ws48-pl .ws48-pl-inner {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Reset theme flow spacing inside our layout containers – we use gap instead */
.ws48-pl .ws48-pl-inner > *,
.ws48-pl .ws48-hero-card > *,
.ws48-pl .ws48-hero-text > *,
.ws48-pl .ws48-sheets-grid > *,
.ws48-pl .ws48-sheet > *,
.ws48-pl .ws48-sheet-body > *,
.ws48-pl .ws48-sheet-footer > *,
.ws48-pl .ws48-cta-row > *,
.ws48-pl .ws48-cta-text > * {
	margin-top: 0;
	margin-bottom: 0;
}

.ws48-pl a { color: var(--ws48-ink); }
.ws48-pl a:hover { color: var(--ws48-red); }
.ws48-pl a:focus-visible,
.ws48-pl button:focus-visible,
.ws48-pl input:focus-visible {
	outline: 2px solid var(--ws48-navy);
	outline-offset: 2px;
}

/* ---------- Typography ---------- */
.ws48-pl .ws48-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ws48-red);
}
.ws48-pl .ws48-h1 {
	font-family: inherit;
	font-size: 64px;
	line-height: 1.02;
	letter-spacing: -0.035em;
	font-weight: 700;
	color: var(--ws48-ink);
}
.ws48-pl .ws48-h2 {
	font-family: inherit;
	font-size: 44px;
	line-height: 1.08;
	letter-spacing: -0.03em;
	font-weight: 700;
	color: var(--ws48-ink);
}
.ws48-pl .ws48-lead {
	font-size: 19px;
	line-height: 1.45;
	color: var(--ws48-body);
	max-width: 620px;
}

/* ---------- Buttons ---------- */
.ws48-pl .ws48-actions { gap: 12px; }
.ws48-pl .wp-block-button .wp-block-button__link {
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ws48-pl .ws48-btn-accent .wp-block-button__link {
	background: var(--ws48-accent);
	color: #FFFFFF;
	border: 0;
}
.ws48-pl .ws48-btn-accent .wp-block-button__link:hover {
	background: var(--ws48-accent-dark);
	color: #FFFFFF;
}
.ws48-pl .ws48-btn-arrow .wp-block-button__link::after {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--ws48-arrow) center / contain no-repeat;
	mask: var(--ws48-arrow) center / contain no-repeat;
}
.ws48-pl .ws48-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--ws48-ink);
	border: 1.5px solid var(--ws48-ink);
	font-size: 14px;
	min-height: 48px;
	padding: 0 26px;
}
.ws48-pl .ws48-btn-outline .wp-block-button__link:hover {
	background: var(--ws48-ink);
	color: #FFFFFF;
}

/* ---------- 1. Intro ---------- */
.ws48-pl-intro { padding: 64px 0 36px; }
.ws48-pl-intro .ws48-pl-inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ---------- 2. Pricebook hero ---------- */
.ws48-pl-hero { padding: 0 0 72px; }
.ws48-pl .ws48-hero-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	background: var(--ws48-card);
	overflow: hidden;
}
.ws48-pl .ws48-hero-text {
	padding: 56px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 18px;
}
.ws48-pl .ws48-hero-title {
	font-family: inherit;
	font-size: 46px;
	line-height: 1.04;
	letter-spacing: -0.035em;
	font-weight: 700;
	color: var(--ws48-ink);
}
.ws48-pl .ws48-hero-sub {
	font-size: 18px;
	line-height: 1.5;
	color: var(--ws48-body);
}
.ws48-pl .ws48-hero-text .ws48-actions {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
/* Secondary hero button matches the primary's size */
.ws48-pl .ws48-hero-text .ws48-btn-outline .wp-block-button__link {
	min-height: 52px;
	padding: 0 28px;
	font-size: 16px;
}
.ws48-pl .ws48-hero-img {
	margin: 0;
	min-height: 360px;
	position: relative;
}
.ws48-pl .ws48-hero-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- 3. Product sheet library ---------- */
.ws48-pl-sheets {
	background: #FFFFFF;
	padding: 72px 0 80px;
}
.ws48-pl-sheets .ws48-h2 { margin-bottom: 28px; }

/* Search (core Search block) */
.ws48-pl .ws48-sheet-search { max-width: 1100px; margin: 0; }
.ws48-pl .ws48-sheet-search .wp-block-search__inside-wrapper {
	display: flex;
	height: 56px;
	border: 1px solid var(--ws48-stone);
	background: #FFFFFF;
	padding: 0;
}
.ws48-pl .ws48-sheet-search .wp-block-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 16px;
	padding: 0 20px;
	color: var(--ws48-ink);
	border-radius: 0;
}
.ws48-pl .ws48-sheet-search .wp-block-search__input::placeholder { color: var(--ws48-muted); }
.ws48-pl .ws48-sheet-search .wp-block-search__input:focus { outline: none; }
.ws48-pl .ws48-sheet-search .wp-block-search__inside-wrapper:focus-within {
	outline: 2px solid var(--ws48-navy);
	outline-offset: 2px;
}
.ws48-pl .ws48-sheet-search .wp-block-search__button {
	width: 56px;
	margin: -1px -1px -1px 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--ws48-ink);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.ws48-pl .ws48-sheet-search .wp-block-search__button svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Category chips (core Buttons block) */
.ws48-pl .ws48-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 36px;
	max-width: 1100px;
}
.ws48-pl .ws48-chips .wp-block-button .wp-block-button__link {
	min-height: 44px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid #C9C2B6;
	background: #FFFFFF;
	color: var(--ws48-ink);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.ws48-pl .ws48-chips .wp-block-button .wp-block-button__link:hover { border-color: var(--ws48-ink); }
.ws48-pl .ws48-chips .wp-block-button .wp-block-button__link.is-active,
.ws48-pl .ws48-chips .wp-block-button:first-child .wp-block-button__link:not(.is-ready) {
	background: var(--ws48-ink);
	border-color: var(--ws48-ink);
	color: #FFFFFF;
	font-weight: 600;
}

/* Cards */
.ws48-pl .ws48-sheets-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.ws48-pl .ws48-sheet {
	display: flex;
	gap: 20px;
	min-height: 148px;
	padding: 12px;
	background: #FFFFFF;
	border: 1px solid var(--ws48-line);
	transition: border-color .15s ease;
}
.ws48-pl .ws48-sheet:hover { border-color: var(--ws48-stone); }
.ws48-pl .ws48-sheet[hidden] { display: none !important; }
.ws48-pl .ws48-sheet-cover {
	flex: none;
	width: 92px;
	height: 122px;
	margin: 0;
	background: #EAE5DC;
}
.ws48-pl .ws48-sheet-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ws48-pl .ws48-sheet-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 8px 8px 4px 0;
}
.ws48-pl .ws48-sheet-name {
	font-family: inherit;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--ws48-ink);
}
.ws48-pl .ws48-sheet-cat {
	margin-top: 4px !important;
	font-size: 14px;
	color: var(--ws48-muted);
}
.ws48-pl .ws48-sheet-links {
	margin-top: auto !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.ws48-pl .ws48-sheet-links .ws48-view {
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid var(--ws48-ink);
	padding: 10px 0 2px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.ws48-pl .ws48-sheet-links .ws48-view::after {
	content: "";
	width: 12px;
	height: 12px;
	background: var(--ws48-red);
	-webkit-mask: var(--ws48-arrow) center / contain no-repeat;
	mask: var(--ws48-arrow) center / contain no-repeat;
}
/* Download link: icon only, text stays for screen readers */
.ws48-pl .ws48-sheet-links .ws48-dl {
	width: 44px;
	height: 44px;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	color: var(--ws48-red);
	text-decoration: none;
}
.ws48-pl .ws48-sheet-links .ws48-dl::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--ws48-download) center / contain no-repeat;
	mask: var(--ws48-download) center / contain no-repeat;
}
.ws48-pl .ws48-sheet-links .ws48-dl:hover { color: var(--ws48-ink); }

/* Empty state + footer row */
.ws48-pl .ws48-sheet-empty {
	display: none;
	border: 1px solid var(--ws48-line);
	padding: 28px;
	font-size: 16px;
	color: #4A4640;
	margin: 0;
}
.ws48-pl .ws48-sheet-empty.is-visible { display: block; }
.editor-styles-wrapper .ws48-pl .ws48-sheet-empty {
	display: block;
	margin-top: 20px;
	opacity: .6;
}
.ws48-pl .ws48-sheet-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
}
.ws48-pl .ws48-sheet-count {
	font-size: 14px;
	color: var(--ws48-muted);
}

/* ---------- 4. Client projects CTA ---------- */
.ws48-pl-cta { padding: 64px 0; }
.ws48-pl .ws48-cta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}
.ws48-pl .ws48-cta-text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ws48-pl .ws48-cta-text .ws48-lead { font-size: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.ws48-pl .ws48-h1 { font-size: 48px; }
	.ws48-pl .ws48-h2 { font-size: 36px; }
	.ws48-pl .ws48-hero-title { font-size: 36px; }
	.ws48-pl .ws48-hero-card { grid-template-columns: 1fr; }
	.ws48-pl .ws48-hero-text { padding: 40px 32px; }
	.ws48-pl .ws48-hero-img { min-height: 260px; }
	.ws48-pl .ws48-sheets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ws48-pl .ws48-pl-inner { padding: 0 20px; }
	.ws48-pl .ws48-h1 { font-size: 40px; }
	.ws48-pl .ws48-sheets-grid { grid-template-columns: 1fr; }
	.ws48-pl-intro { padding-top: 48px; }
	.ws48-pl-sheets { padding: 56px 0 64px; }
}
