/* ==========================================================================
   Cliffe v3 layout blocks (design: print-management.html)
   Loaded on pages that use cliffe/* blocks, and in the block editor.
   ========================================================================== */

/* Full-width block layout: main has no container; each block sets its own width. */
#content.c-blocks { padding: 0; }
.c-blocks__article > p:empty { display: none; }
.c-blocks__article > :not(section):not(.c-cmyk):not(div):not(.is-style-cmyk) { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }

.c-blocks h2, .c-blocks h3 { font-family: var(--f-serif); font-weight: 600; letter-spacing: -0.015em; }
.c-blocks h2 { margin: 0 0 24px; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; }
.c-blocks h3 { margin: 0 0 14px; font-size: 28px; line-height: 1.1; }
.c-blocks .c-prose > :last-child { margin-bottom: 0; }

/* Pull quote paragraph style (bold-only statements) */
.is-style-pull {
	font-family: var(--f-serif);
	font-size: 26px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--c-magenta);
	margin-top: 8px;
}
.is-style-pull strong { font-weight: 600; }
.c-statement .is-style-pull { font-size: clamp(30px, 3.6vw, 46px); font-style: italic; color: var(--c-pink-on-dark); margin-top: 32px; }
.c-cta .is-style-pull { font-size: 24px; color: var(--c-white); }
.c-card2 .is-style-pull { font-size: 22px; }
.c-it .is-style-pull { font-size: clamp(24px, 2.4vw, 30px); }
.c-it--right .is-style-pull { font-size: 26px; }
.c-mag .is-style-pull, .c-mag-text .is-style-pull { color: var(--c-white); }

/* CMYK stripe separator */
hr.wp-block-separator.is-style-cmyk {
	border: 0; margin: 0; height: 6px; max-width: none; width: 100%; opacity: 1;
	background: linear-gradient(90deg, var(--c-cyan) 0 25%, var(--c-magenta) 25% 50%, var(--c-yellow) 50% 75%, var(--c-key) 75% 100%);
}

/* Tones */
.c-tone--white { background: var(--c-white); }
.c-tone--pink { background: var(--c-pink-soft); }
.c-tone--paper { background: var(--c-paper); }

/* ---------- Page hero ---------- */
.c-hero--block .c-hero__title { margin: 0 0 28px; }
.c-hero__body { font-size: 19px; color: var(--c-pink-on-mag-2); max-width: 640px; }
.c-light .c-hero__body { color: var(--c-grey); }
.c-hero__body > p { margin: 0 0 16px; }
.c-hero__body > p:last-of-type { margin-bottom: 32px; }
.c-hero__pair { position: relative; height: 520px; flex: 1 1 420px; }
.c-pair__p1 { left: 4%; top: 20px; width: 420px; height: 315px; transform: rotate(-5deg); }
.c-pair__p2 { left: 18%; top: 210px; width: 380px; height: 285px; transform: rotate(4deg); z-index: 2; }
@media (max-width: 720px) {
	.c-hero__pair { height: 360px; }
	.c-pair__p1 { width: 280px; height: 210px; left: 0; }
	.c-pair__p2 { width: 260px; height: 195px; left: 18%; top: 140px; }
}

/* Callout cards (inside the hero) */
.c-grid--callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; max-width: 720px; }
.c-grid--callouts .c-card2 { border-radius: var(--radius-m); font-size: 16px; color: var(--c-ink); }
.c-grid--callouts .c-card2__body { padding: 22px 24px; }
.c-grid--callouts .c-card2 p { margin: 0; }
.c-grid--callouts .c-card2--white { background: var(--c-white); }
.c-grid--callouts .c-card2--white a { color: var(--c-magenta); }
.c-grid--callouts .c-card2--outline { border: 1px solid rgba(255, 255, 255, .6); color: var(--c-white); }
.c-grid--callouts .c-card2--outline a { color: var(--c-white); }
.c-light .c-grid--callouts .c-card2--white { box-shadow: 0 1px 0 var(--c-line); }
.c-light .c-grid--callouts .c-card2--outline { border-color: rgba(185, 0, 106, .35); color: var(--c-ink); }
.c-light .c-grid--callouts .c-card2--outline a { color: var(--c-magenta); }
.c-grid--callouts .c-card2:hover { transform: translateY(-6px); box-shadow: var(--shadow-qt); }
.c-grid--callouts .c-card2 { transition: transform .45s, box-shadow .45s; }

/* ---------- Image + text ---------- */
.c-it { padding: var(--section-y) 0; }
.c-it__inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.c-it--right .c-it__inner { align-items: flex-start; }
.c-it__text { flex: 1 1 520px; min-width: 0; }
.c-it--right .c-it__text { flex-basis: 560px; }
.c-it__text h2 { font-size: clamp(34px, 4vw, 54px); }
.c-it--right .c-it__text h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
.c-it__media { flex: 1 1 440px; min-width: 0; height: var(--c-it-h, 520px); border-radius: var(--radius); }
.c-it__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-it__media.is-sticky { position: sticky; top: 24px; }
.c-it--top .c-it__inner { display: block; }
.c-it--top .c-it__media { height: var(--c-it-h, 380px); margin-bottom: 72px; }
@media (max-width: 720px) { .c-it__media { height: min(var(--c-it-h, 520px), 380px); } .c-it__inner { gap: 40px; } .c-it__media.is-sticky { position: static; } }

/* ---------- Card grid ---------- */
.c-grid:not(.c-grid--callouts) { padding: var(--section-y) 0; }
.c-grid__banner { height: 380px; border-radius: var(--radius); margin-bottom: 72px; }
.c-grid__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-grid__head { margin-bottom: 48px; }
.c-grid__head--split { display: flex; flex-wrap: wrap; gap: 16px 56px; align-items: end; }
.c-grid__head-title { flex: 1 1 480px; }
.c-grid__head-title h2 { margin: 0; }
.c-grid__head-intro { flex: 1 1 380px; }
.c-grid__items { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.c-grid--media .c-grid__items { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.c-grid--columns .c-grid__items { gap: 64px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.c-grid--split .c-grid__items { gap: 24px 56px; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); align-items: start; }
@media (min-width: 1160px) {
	.c-grid--split .c-grid__items > :first-child { grid-row: span 2; }
}
@media (max-width: 720px) { .c-grid__banner { height: 240px; margin-bottom: 48px; } }

/* Card */
.c-card2 { position: relative; border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.c-card2__body { padding: 30px; font-size: 15px; line-height: 1.6; }
.c-card2__body h2, .c-card2__body h3 { color: inherit; }
.c-card2__body h3 { margin: 10px 0 14px; font-size: 28px; }
.c-card2__num { display: block; font-family: var(--f-serif); font-size: 15px; opacity: .8; }
.c-card2__media { height: 220px; overflow: hidden; }
.c-card2__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-card2__accent { display: block; height: 6px; background: var(--c-magenta); }
.c-accent--grey .c-card2__accent { background: var(--c-grey); }
.c-accent--pink .c-card2__accent { background: var(--c-pink); }

.c-card2--mag { background: var(--c-magenta); color: var(--c-white); }
.c-card2--ink { background: var(--c-ink); color: var(--c-white); }
.c-card2--grey { background: var(--c-grey); color: var(--c-white); }
.c-card2--pink { background: var(--c-pink); color: var(--c-ink); }
.c-card2--pink-soft { background: var(--c-pink-soft); color: var(--c-ink); }
.c-card2--paper { background: var(--c-paper); color: var(--c-ink); }
.c-card2--white { background: var(--c-white); color: var(--c-ink); }
.c-card2--outline { border: 1px solid var(--c-line); color: var(--c-ink); }
.c-mag-text a { color: var(--c-white); }
.c-mag-text a:hover { color: var(--c-pink-on-mag); }
.c-dark-text a { color: var(--c-pink-on-dark); }
.c-dark-text a:hover { color: var(--c-white); }

/* Media cards (white card, image, colour bar) */
.c-grid--media .c-card2__body { padding: 32px; font-size: 16px; }
.c-grid--media .c-card2__body h2 { margin: 0 0 16px; font-size: 30px; line-height: 1.15; }

/* Text columns (plain cards with a short magenta rule) */
.c-card2--plain { border-radius: 0; overflow: visible; font-size: 17px; }
.c-card2--plain .c-card2__body { padding: 0; font-size: 17px; line-height: 1.65; }
.c-card2--plain .c-card2__accent { width: 56px; height: 3px; margin-bottom: 24px; }
.c-card2--plain .c-card2__body h2 { margin: 0 0 20px; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
.c-card2--plain .c-card2__media { height: 300px; border-radius: var(--radius); margin-bottom: 40px; }

/* Split layout boxes */
.c-grid--split .c-card2--pink-soft .c-card2__body, .c-grid--split .c-card2--outline .c-card2__body { padding: 40px; font-size: 17px; line-height: 1.65; }
.c-grid--split .c-card2--pink-soft h2, .c-grid--split .c-card2--outline h2 { margin: 0 0 16px; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.1; }
@media (max-width: 720px) { .c-grid--split .c-card2--pink-soft .c-card2__body, .c-grid--split .c-card2--outline .c-card2__body { padding: 28px; } }

/* ---------- Tag list ---------- */
.c-tags ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.c-tags li { padding: 9px 16px; background: var(--c-pink); border-radius: var(--pill); font-weight: 500; font-size: 15px; line-height: 1.4; margin: 0; }

/* ---------- Statement band ---------- */
.c-statement { position: relative; overflow: hidden; }
.c-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.c-statement__inner { position: relative; max-width: 980px; margin: 0 auto; padding: 130px var(--gutter); font-size: 18px; color: #E3E1E1; box-sizing: border-box; }
.c-statement__inner h2 { color: var(--c-white); margin-bottom: 28px; }
@media (max-width: 720px) { .c-statement__inner { padding-top: 88px; padding-bottom: 88px; } }

/* ---------- Numbered steps ---------- */
.c-steps { padding: var(--section-y) 0; }
.c-steps__wrap { max-width: 1180px; }
.c-steps__title h2 { margin-bottom: 16px; }
.c-steps__intro { margin-bottom: 48px; }
.c-steps__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.c-step {
	display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: baseline;
	padding: 26px 0; border-bottom: 1px solid var(--c-line);
	transition: background .4s, padding .4s;
}
.c-step:hover { background: var(--c-pink-soft); padding-left: 14px; }
.c-step__num { font-family: var(--f-serif); font-weight: 800; font-size: 44px; color: var(--c-magenta); width: 64px; line-height: 1; }
.c-step__title { flex: 1 1 300px; }
.c-step__title h3 { margin: 0; font-size: 28px; }
.c-step__body { flex: 1 1 380px; font-size: 16px; }

/* ---------- Feature band ---------- */
.c-feature { position: relative; overflow: hidden; }
.c-feature__inner { position: relative; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.c-feature__row { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.c-feature__text { flex: 1 1 520px; min-width: 0; font-size: 17px; color: var(--c-pink-on-mag-2); }
.c-feature__text h2 { color: var(--c-white); }
.c-feature__media {
	flex: 1 1 440px; min-width: 0; height: 480px; border-radius: var(--radius); overflow: hidden;
	border: 8px solid var(--c-white); transform: rotate(2deg); box-shadow: var(--shadow-photo); box-sizing: border-box;
}
.c-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-feature__quotes { margin-top: 72px; }
.c-feature__quotes blockquote { margin: 0; padding: 44px; background: var(--c-white); color: var(--c-ink); border-radius: var(--radius-l); border: 0; }
.c-feature__quotes blockquote p:first-child { margin: 0 0 18px; font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; }
.c-feature__quotes blockquote p:last-child { margin: 0; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-grey); }
.c-feature__quotes blockquote p:only-child { font-size: clamp(22px, 2.6vw, 32px); text-transform: none; letter-spacing: 0; color: var(--c-ink); }
@media (max-width: 720px) { .c-feature__media { height: 320px; } .c-feature__quotes blockquote { padding: 28px; } }

/* ---------- FAQ ---------- */
.c-faq { background: var(--c-paper); padding: var(--section-y) 0; }
.c-faq__wrap { max-width: 940px; }
.c-faq__head h2 { margin-bottom: 40px; }
.c-faq__list { border-top: 1px solid var(--c-line); }
.c-faq__item { border-bottom: 1px solid var(--c-line); }
.c-faq__q {
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	padding: 24px 0; cursor: pointer; list-style: none;
}
.c-faq__q::-webkit-details-marker { display: none; }
.c-faq__q h3 { margin: 0; font-size: 24px; line-height: 1.25; }
.c-faq__q:hover h3 { color: var(--c-magenta); }
.c-faq__pl { color: var(--c-magenta); font-size: 30px; line-height: 1; transition: transform .3s; flex: none; }
.c-faq__item[open] .c-faq__pl { transform: rotate(45deg); }
.c-faq__a { padding-bottom: 24px; color: #4A4949; }

/* ---------- CTA band ---------- */
.c-cta { position: relative; overflow: hidden; }
.c-cta__mark { position: absolute; right: -80px; bottom: -120px; width: 520px; height: auto; opacity: .06; pointer-events: none; }
.c-cta__inner {
	position: relative; display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; justify-content: space-between;
	padding-top: 110px; padding-bottom: 110px;
}
.c-cta__text { flex: 1 1 600px; color: #E3E1E1; }
.c-cta__text h2 { color: var(--c-white); font-size: clamp(38px, 4.6vw, 60px); line-height: 1.02; margin-bottom: 20px; }
.c-cta__actions { display: flex; flex-direction: column; gap: 12px; }
.c-cta__actions p { margin: 0; }
.c-cta__actions a {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box;
	padding: 17px 29px; border: 1px solid var(--c-white); border-radius: var(--pill);
	color: var(--c-white); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
	transition: background .25s, color .25s;
}
.c-cta__actions a:hover { background: var(--c-white); color: var(--c-ink); }
.c-cta__actions p:first-child a { background: var(--c-magenta); border-color: var(--c-magenta); }
.c-cta__actions p:first-child a:hover { background: var(--c-magenta-dark); border-color: var(--c-magenta-dark); color: var(--c-white); }
.c-cta__actions strong { font-weight: inherit; }

/* Generic headings/paras inside coloured sections */
.c-mag h2, .c-dark h2 { color: var(--c-white); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.c-step:hover { padding-left: 0; }
	.c-grid--callouts .c-card2:hover { transform: none; }
}

/* In-text links are underlined so they don't rely on colour alone (WCAG 1.4.1). */
.c-blocks .c-prose p a, .c-blocks .c-prose li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.c-blocks .c-prose p a:hover, .c-blocks .c-prose li a:hover { text-decoration-thickness: 2px; }

/* Text-only sections (Image + text with no image) */
.c-it--text .c-it__text { max-width: 880px; flex: 1 1 auto; }
.c-it--text .c-it__text h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; }
.c-it--text + .c-it--text.c-tone--white, .c-it--text.c-tone--white + .c-it--text.c-tone--white { padding-top: 0; }

/* Rich content inside block sections */
.c-blocks .c-prose h3 { margin: 32px 0 12px; font-size: clamp(22px, 2.2vw, 28px); }
.c-blocks .c-prose h4 { margin: 24px 0 10px; font-size: 20px; font-family: var(--f-serif); }
.c-blocks .c-prose ul, .c-blocks .c-prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.c-blocks .c-prose li { margin-bottom: 6px; }
.c-blocks .c-prose li::marker { color: var(--c-magenta); }
.c-blocks .c-tags li::marker { content: none; }
.c-blocks .c-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.c-blocks .c-prose figure { margin: 24px 0; }
.c-blocks .c-prose figcaption { font-size: 14px; color: var(--c-grey); margin-top: 8px; }
.c-blocks .c-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; background: var(--c-white); }
.c-blocks .c-prose th, .c-blocks .c-prose td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.c-blocks .c-prose th { background: var(--c-paper); font-weight: 600; }
.c-blocks .c-prose blockquote { margin: 28px 0; padding: 24px 28px; background: var(--c-pink-soft); border-left: 4px solid var(--c-magenta); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--f-sans); font-size: 17px; line-height: 1.7; }
.c-blocks .c-tone--pink .c-prose blockquote, .c-blocks .c-card2--pink-soft blockquote { background: var(--c-white); }
.c-blocks .c-prose blockquote blockquote { background: none; padding: 4px 0 4px 20px; margin: 16px 0; border-left-width: 2px; border-radius: 0; }
.c-blocks .c-prose blockquote > :last-child { margin-bottom: 0; }
.c-blocks .c-prose blockquote h2, .c-blocks .c-prose blockquote h3 { margin-top: 8px; }
.c-blocks .c-mag-text blockquote, .c-blocks .c-dark-text blockquote { background: rgba(255, 255, 255, .1); }
.c-blocks .c-prose iframe { max-width: 100%; }
.c-blocks .c-prose p:has(> img:only-child) { margin: 24px 0; }

/* ---------- Redesign engine additions ---------- */
/* Hero: the page's own image, framed */
.c-hero__own { flex: 1 1 420px; display: flex; justify-content: center; }
.c-hero__own .c-photo--single { max-width: 520px; aspect-ratio: auto; }
.c-hero__own figure { margin: 0; }
.c-hero__own img { width: 100%; height: auto; display: block; border-radius: 0; }
/* Hero: a single photo */
.c-hero__pair.is-single { height: auto; display: flex; justify-content: center; }
.c-hero__pair.is-single .c-pair__p1 { position: relative; left: auto; top: auto; width: min(460px, 100%); height: auto; aspect-ratio: 4 / 3; }
/* Long hero intros wrap nicely */
.c-hero--block .c-hero__text { max-width: 720px; }

/* Cards holding a whole H2 section */
.c-card2__body h2 { margin: 0 0 14px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; }
.c-grid--tiles .c-card2__body { font-size: 15.5px; }
.c-grid--tiles .c-card2__body h3 { font-size: 24px; }
.c-grid--tiles .c-card2--pink .c-tags li, .c-grid--tiles .c-card2--paper .c-tags li { background: var(--c-white); }
.c-mag-text .c-tags li, .c-dark-text .c-tags li { background: rgba(255, 255, 255, .14); color: inherit; }
.c-grid--tiles .c-card2 .is-style-pull { font-size: 20px; }

/* Tag lists on dark/magenta bands */
.c-statement .c-tags li, .c-feature .c-tags li, .c-cta .c-tags li { background: rgba(255, 255, 255, .14); color: var(--c-white); }
.c-statement .c-tags a, .c-feature .c-tags a { color: inherit; }

/* Lead (intro continued) section directly after the hero */
.c-hero + .c-it { padding-top: 96px; }

/* Fixes from page review */
.c-hero__own .wp-block-image, .c-hero__own figure { float: none !important; margin: 0 !important; width: 100% !important; max-width: none !important; }
.c-hero__own .wp-block-image img, .c-hero__own img { width: 100% !important; height: auto !important; max-width: none; }
.c-blocks .c-tags ul { padding-left: 0; }
.c-grid.c-grid--two .c-grid__items { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
/* Callout cards inside content sections (not the hero) */
.c-it .c-grid--callouts, .c-card2 .c-grid--callouts { margin-top: 28px; }
.c-it .c-grid--callouts .c-card2--mag { background: var(--c-magenta); color: var(--c-white); }
.c-it .c-grid--callouts .c-card2--mag a { color: var(--c-white); text-decoration: none; }
.c-it .c-grid--callouts .c-card2--outline { border: 1px solid var(--c-line); }
.c-it .c-grid--callouts .c-card2--outline a { color: var(--c-magenta); text-decoration: none; }
.c-grid--callouts .c-card2 a::after { content: " \2192"; }
.c-hero__own figure, .c-hero__own .wp-block-image { display: block !important; }
.c-hero__own figure > a, .c-hero__own .wp-block-image a { display: block !important; width: 100%; }

/* Testimonial quote cards */
.c-grid--quotes .c-grid__items { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); align-items: start; }
.c-grid--quotes .c-card2__body { padding: 40px 36px 32px; font-family: var(--f-serif); font-size: 19px; line-height: 1.5; font-style: italic; }
.c-grid--quotes .c-card2__body::before { content: "\201C"; display: block; font-size: 72px; line-height: .6; color: var(--c-magenta); font-style: normal; margin-bottom: 8px; }
.c-grid--quotes .c-card2--white { border: 1px solid var(--c-line-soft); }
/* Long legal text */
.c-it--legal .c-it__text { max-width: 820px; font-size: 16px; line-height: 1.75; }
/* Tag lists of many items (e.g. client names) */
.c-tags ul:has(> li:nth-child(20)) li { font-size: 14px; padding: 7px 14px; }
.c-grid--columns.c-grid--three .c-grid__items { gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.c-grid--columns.c-grid--three .c-card2--plain .c-card2__body h2 { font-size: clamp(26px, 2.4vw, 32px); }
.c-grid__head:not(.c-grid__head--split) { max-width: 880px; }
/* Sentence punctuation in tag lists: kept in the HTML, hidden visually */
.c-tag-punct { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
