/* Begonia Counselling — section layout, ribbon placement/responsive swap,
 * and template-specific components not expressible through theme.json or
 * covered by tokens.css. Enqueued after tokens.css. See SPEC.md §5–§9.
 */

/* Skip-to-content link is injected automatically by WordPress core for block
 * themes (wp_enqueue_block_template_skip_link), targeting the first <main>
 * landmark — every template below wraps its content in a tagName:"main" group. */

/* ---- header ------------------------------------------------------------- */
.c-site-header {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 22px 64px;
}
.c-site-header .c-logo {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}
.c-site-header .c-logo__mark {
	width: 62px;
	height: 62px;
	flex-shrink: 0;
	display: block;
}
.c-site-header .c-logo__word {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 10px;
}
.c-site-header .c-logo__begonia {
	font-family: var(--font-display);
	font-variation-settings: var(--fvs-display);
	font-size: 30px;
	line-height: 0.9;
	font-weight: 900;
	color: var(--bg-moss);
}
.c-site-header .c-logo__counselling {
	font-size: 11px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ink-rust);
}
.c-site-header .c-header-spacer {
	flex-grow: 1;
}
/* At ≥1280px (nav inline, no hamburger) both buttons keep tokens.css's own
   proportions — .c-btn's 16px/28px padding and .c-btn--header's 14px/24px,
   both at the 999px (var(--radius-pill)) radius — but, like the ≤1279px
   pill further down, with an explicit height instead of relying on
   min-height plus padding plus line-height to land on the right number:
   that combination is exactly what wasn't reliably centring the text
   before. These heights are what that padding already computed to (14+14
   and 16+16 around a 14px line at line-height:1), just made explicit so
   centring isn't dependent on the calculation coming out exactly right. */
.c-site-header .c-btn--header {
	height: 44px;
	padding: 0 24px;
}
.c-hero .c-btn {
	height: 46px;
	padding: 0 28px;
}
.c-site-header nav.wp-block-navigation {
	--wp--style--block-gap: 30px;
}
.c-site-header .wp-block-navigation-item > a {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-bark);
	text-decoration: none;
	padding-bottom: 6px;
}
.c-site-header .current-menu-item > a,
.c-site-header .wp-block-navigation-item.current-menu-item > a {
	border-bottom: 2px solid var(--accent-amber);
	padding-bottom: 4px;
}
.c-site-header .wp-block-navigation__responsive-container-open,
.c-site-header .wp-block-navigation__responsive-container-close {
	width: 48px;
	height: 48px;
	border: none;
	padding: 0;
	border-radius: 50%;
	background: var(--bg-moss);
	color: var(--ink-cream);
	/* Buttons don't centre their content by default — without this the
	   hamburger/close icon sits off-centre in the circle. */
	display: flex;
	align-items: center;
	justify-content: center;
}
/* The nav block is set to overlayMenu:"always" (see parts/header.html) so its
   collapse point is ours to define here, at the same 1280px breakpoint the
   hero and ribbon switch at, instead of trusting core's own "mobile" preset
   to happen to match. "always" collapses at every width by default, so only
   the ≥1280px case needs overriding back to a plain inline row; ≤1279px is
   already core's normal "always" behaviour (hamburger, hidden panel until
   opened) and needs no rule of its own. !important is deliberate: it's
   overriding core's own inline/variable-driven overlay positioning
   (position/inset/background), not competing with other theme CSS. */
@media (min-width: 1280px) {
	.c-site-header .wp-block-navigation__responsive-container-open,
	.c-site-header .wp-block-navigation__responsive-container-close {
		display: none !important;
	}
	.c-site-header .wp-block-navigation__responsive-container {
		display: flex !important;
		position: static !important;
		inset: auto !important;
		width: auto !important;
		height: auto !important;
		background: none !important;
	}
}
/* Styling for the open overlay panel below 1280px — otherwise it would fall
   back to core's default modal chrome instead of the theme's own palette. */
.c-site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--bg-cream);
}
.c-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a {
	font-size: 20px;
}
/* Smaller "Book a session" pill, matched to the 48px hamburger circle's own
   size/radius (half its diameter), for exactly the range the hamburger is
   actually shown in (≤1279px, same as the nav override above) rather than
   only the ≤781px mobile block — the two need to size against each other
   whenever they're actually next to each other. Explicit height (not just
   padding) makes it exactly 48px regardless of line-height/font-metric
   quirks; .c-hero .c-btn gets the same treatment since it's the same button
   appearing lower on the same page. */
@media (max-width: 1279px) {
	.c-site-header .c-btn--header {
		height: 48px;
		min-height: 48px;
		padding: 0 16px;
		border-radius: 24px;
	}
	.c-hero .c-btn {
		height: 48px;
		min-height: 48px;
		padding: 0 20px;
	}
}

/* ---- front page <main> ---------------------------------------------------- */
/* Hand-authored blockGap:0 + margin-top:12px as a literal style attribute on
 * the wp:group block previously failed Gutenberg's block validation (the
 * "Resolve Block" prompt) — the Group block's own spacing/style serialization
 * didn't round-trip the hand-written markup byte-for-byte. Moved here as a
 * plain class instead, same as the header's styling. */
.c-front-main {
	--wp--style--block-gap: 0;
	margin-top: 12px;
}

/* ---- hero (front page) --------------------------------------------------- */
.c-hero {
	position: relative;
	overflow: hidden;
	min-height: 820px;
	padding-top: 0;
	padding-bottom: 0;
}
.c-hero__inner {
	position: relative;
	z-index: 1;
}
/* The mockup positions the text block and the illustration independently,
   both starting at the same 172px offset from the hero's top (SPEC.md §6.2)
   — not relative to each other's height. front-hero.php gives both columns
   that same 172px top padding as a real, editable block attribute (not a
   CSS override), and both columns share verticalAlignment "top", so a plain
   flex row already reproduces the mockup: the row (and so the hero) is just
   as tall as its tallest column needs, with no fixed hero height and no
   taking either column out of flow. Below 1280px the columns wrap to stack
   instead, where none of this applies. */
.c-hero__art img {
	display: block;
	width: 615px;
	height: 690px;
	object-fit: contain;
}

/* ---- ribbon: base placement classes ------------------------------------- */
.c-ribbon {
	position: absolute;
	display: block;
	pointer-events: none;
	z-index: 0;
}
.c-ribbon path {
	fill: none;
}
.c-ribbon--a { left: 0; top: 0; width: 100%; height: 100%; }
.c-ribbon--c { left: 0; top: 0; }
.c-ribbon--d { right: 0; top: 0; opacity: 0.9; }
/* Ribbon B is a sibling of .c-seasons-band (z-index:1, opaque cream
   background) and the footer, not a child of either — it has to live in
   their shared wrapper so it can span both (SPEC.md §5.2 B). A sibling's
   own opaque background paints over anything behind it regardless of that
   thing's DOM position, so ribbon B needs a higher z-index to paint above
   both instead — its content (fill:none, stroke lines only) leaves
   everything else visible regardless. */
.c-ribbon--b { right: 0; bottom: 0; width: 100%; height: 100%; z-index: 2; }

/* Ribbon geometry math assumes stroke-width = b + 0.5 so bands tile with no
   gaps or overlaps (SPEC.md §5.1). tokens.css's default (22.5) is only right
   for the desktop b=22 variants — every reduced-thickness variant needs its
   own stroke-width here or the bands render too thick and collide. */
.c-ribbon--a-narrow path { stroke-width: 18.5; }
.c-ribbon--c path { stroke-width: 18.5; }
.c-ribbon--d path { stroke-width: 14.5; }

/* Responsive ribbon swap for A (hero) and B (bottom corner) — SPEC.md §5.4.
   Below 1280px: ribbon A drops the corner sweep entirely and shows only the
   top strip (5 parallel bands, fixed height) instead of stretching the full
   corner shape into a hero whose height is no longer fixed once it becomes
   single-column — that stretch is what was distorting the ribbon and letting
   it bleed into the illustration. Ribbons B, C and D are all fixed desktop
   geometry sized around the 190px content inset (and, for B, the two-column
   hero) that only exists at ≥1280px, so instead of maintaining reduced-
   geometry variants for each, they're simply dropped below that width. */
.c-ribbon--a-narrow {
	display: none;
	left: 0;
	top: 0;
	width: 100%;
	height: 100px;
}

@media (max-width: 1279px) {
	.c-ribbon--a-desktop { display: none; }
	.c-ribbon--a-narrow { display: block; }
	.c-ribbon--b-desktop,
	.c-ribbon--c,
	.c-ribbon--d {
		display: none;
	}
}

/* ---- pillar band (moss) -------------------------------------------------- */
/* Directly below the hero on the front page — no gap between the ribbon's
   bottom edge and this band's top edge (belt-and-suspenders alongside the
   zeroed blockGap on templates/front-page.html's <main>). */
.c-hero + .c-pillars {
	margin-top: 0;
}
.c-pillars {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 72px 64px;
}
.c-pillars__intro {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.c-pillars__intro h2 {
	font-size: 42px;
	line-height: 1.08;
	font-weight: 700;
	color: var(--ink-cream);
	margin: 0;
}
.c-pillars__intro p {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink-khaki);
}
.c-pillars__grid {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}
.c-pillar {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	padding: 0 30px;
	border-left: 1px solid var(--line-on-dark);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
}
/* The leftmost pillar's divider sits against the band's own edge now that
   the intro sits full-width above (not beside) the grid, so it reads as a
   redundant line rather than a divider between two columns — the other two
   still separate real neighbours and stay. */
.c-pillar:first-child {
	border-left: none;
}
.c-pillar__vignette {
	width: 150px;
	height: 180px;
	display: block;
}
.c-pillar h3 {
	margin: 6px 0 0;
	font-size: 28px;
	line-height: 1.1;
	font-weight: 600;
	color: var(--ink-cream);
}
.c-pillar p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-khaki);
}

/* ---- seasons band --------------------------------------------------------- */
.c-seasons-wrap {
	position: relative;
	overflow: hidden;
}
.c-seasons-band {
	display: flex;
	flex-wrap: nowrap;
	position: relative;
	z-index: 1;
}
.c-seasons__art {
	width: 620px;
	height: 620px;
	flex-shrink: 0;
	overflow: hidden;
	position: relative;
	background: var(--bg-cream);
	margin: 0;
}
.c-seasons__art img {
	position: absolute;
	left: -170px;
	top: -60px;
	width: 960px;
	max-width: none;
	height: auto;
	display: block;
}
.c-seasons__content {
	flex-grow: 1;
	box-sizing: border-box;
	padding: 64px 170px 64px 64px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.c-seasons__content h2 {
	margin: 0;
	font-size: 44px;
	line-height: 1.04;
	font-weight: 700;
}
.c-arrowlink-wrap {
	margin: 8px 0 0;
}

/* ---- footer ---------------------------------------------------------------- */
.c-site-footer {
	position: relative;
	overflow: hidden;
	padding: 64px 64px 28px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}
.c-site-footer--front {
	/* Extra bottom clearance for ribbon B's horizontal run under the footer
	   (SPEC.md §5.2 B) — 150px was tight in practice against real content
	   heights, so this is deliberately more generous than the spec minimum. */
	padding: 64px 64px 200px;
}
.c-footer__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
	padding-right: 200px;
}
.c-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.c-footer__logo {
	display: flex;
	align-items: center;
	gap: 12px;
}
.c-footer__logo svg {
	width: 54px;
	height: 54px;
	display: block;
}
.c-footer__logo .c-logo__begonia {
	font-size: 32px;
}
.c-footer__logo .c-logo__counselling {
	font-size: 10px;
	color: var(--ink-khaki);
}
.c-footer__brand p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-khaki);
}
.c-footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.c-footer__heading {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ink-amber);
	margin: 0 0 2px;
}
.c-footer__col a {
	font-size: 15px;
	color: var(--bg-parchment);
	text-decoration: none;
}
.c-footer__col a:hover {
	color: var(--ink-cream);
	text-decoration: underline;
}
.c-footer__contact-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: var(--bg-parchment);
}
.c-footer__contact-row svg {
	flex-shrink: 0;
	display: block;
}
.c-footer__social {
	display: flex;
	gap: 12px;
	margin-top: 2px;
}
.c-footer__col .wp-block-social-links {
	margin: 2px 0 0;
	gap: 12px !important;
}
.c-footer__col .wp-block-social-links .wp-social-link {
	width: 46px;
	height: 46px;
	background: transparent;
	border: 1.5px solid var(--accent-amber);
}
.c-footer__col .wp-block-social-links .wp-social-link a {
	color: var(--ink-cream);
}
.c-footer__col .wp-block-social-links .wp-social-link:hover {
	background: var(--accent-amber);
}
.c-footer__col .wp-block-social-links .wp-social-link:hover a {
	color: var(--ink-bark);
}
.c-footer__col .wp-block-navigation {
	--wp--style--block-gap: 10px;
}
.c-footer__col .wp-block-navigation .wp-block-navigation-item > a {
	font-size: 15px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: var(--bg-parchment);
	text-decoration: none;
}
.c-footer__col .wp-block-navigation .wp-block-navigation-item > a:hover {
	color: var(--ink-cream);
	text-decoration: underline;
}
.c-footer__col .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px !important;
}
.c-footer__legal {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--line-footer);
	padding-top: 22px;
	padding-right: 200px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	font-size: 13px;
	color: var(--ink-footer);
	margin-top: auto;
}
.c-footer__legal a {
	color: var(--ink-footer);
	text-decoration: none;
}
.c-footer__legal a:hover {
	text-decoration: underline;
}
.c-footer__legal-spacer {
	flex-grow: 1;
}

/* ---- page title band (parchment + ribbon C) -------------------------------- */
.c-title-band {
	position: relative;
	overflow: hidden;
	background: var(--bg-parchment);
	box-sizing: border-box;
	padding: 64px 64px 44px 190px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.c-title-band__crumb {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 10px;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-bark-soft);
}
.c-title-band__crumb a {
	color: var(--ink-bark-soft);
	text-decoration: none;
}
.c-title-band__crumb a:hover {
	text-decoration: underline;
}
.c-title-band__crumb .is-current {
	font-weight: 700;
}
.c-title-band .u-eyebrow {
	position: relative;
	z-index: 1;
}
.c-title-band h1 {
	position: relative;
	z-index: 1;
	margin: 0;
	letter-spacing: -0.02em;
}
.c-title-band p {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink-bark-soft);
	max-width: 640px;
}
.c-title-band__pills {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

/* ---- CTA band (moss) -------------------------------------------------------- */
.c-cta-band {
	background: var(--bg-moss);
	color: var(--ink-cream);
	padding: 64px 64px 64px 190px;
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}
.c-cta-band__copy {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-grow: 1;
}
.c-cta-band h2 {
	margin: 0;
	font-size: 52px;
	line-height: 1;
	font-weight: 900;
	color: var(--ink-cream);
}
.c-cta-band p {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink-khaki);
}

/* ---- about page ------------------------------------------------------------- */
.c-about-row {
	display: flex;
	gap: 80px;
	padding: 100px 64px 100px 190px;
	align-items: flex-start;
	flex-wrap: wrap;
}
.c-about-row__portrait {
	flex-shrink: 0;
}
.c-about-row__portrait img {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
}
/* Before the client uploads a photo, the core/image block saves with no
   child <img> at all — ":empty" reproduces the old dashed placeholder box
   purely in CSS so the slot still reads as intentional, both in the editor
   and on a live but unfinished site. The moment an image is inserted, the
   figure gains an <img> child and stops matching :empty, so this simply
   disappears — no code changes needed either side of that. */
.c-about-row__portrait .wp-block-image:empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 420 / 560;
	box-sizing: border-box;
	border-radius: 50% 50% 12px 12px;
	background: var(--bg-parchment);
	border: 2px dashed var(--line-border);
}
.c-about-row__portrait .wp-block-image:empty::after {
	content: "Add portrait photo";
	font-family: var(--font-body);
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ink-meta);
	text-align: center;
	padding: 0 24px;
}
.c-about-row__copy {
	display: flex;
	flex-direction: column;
	gap: 22px;
	flex-grow: 1;
	min-width: 320px;
}
.c-about-row__copy h2 {
	margin: 0;
	font-size: 40px;
	line-height: 1.08;
	font-weight: 700;
	color: var(--bg-moss);
}
.c-about-row__copy > p {
	margin: 0;
	font-size: 18px;
	line-height: 1.7;
}
/* core/pullquote (className c-pullquote), not a hand-written blockquote — its
   default style centres text and adds a border, both reset here. The giant
   quote mark is a ::before on the blockquote instead of a markup element:
   core/pullquote's save() has no slot for a decorative span, and content
   generated in CSS still reaches the same visual result without giving up
   the block's own rich-text editing. */
.c-pullquote blockquote {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 10px 0;
	margin: 0;
	border: none;
	text-align: left;
}
.c-pullquote blockquote::before {
	content: "\201C";
	font-family: var(--font-display);
	font-variation-settings: var(--fvs-display);
	font-size: 90px;
	line-height: 0.8;
	font-weight: 900;
	color: var(--accent-amber);
	flex-shrink: 0;
}
.c-pullquote blockquote p {
	margin: 0;
	font-family: var(--font-display);
	font-variation-settings: var(--fvs-display);
	font-size: 28px;
	line-height: 1.3;
	font-weight: 500;
	font-style: italic;
	color: var(--bg-moss);
}
.c-credentials {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 8px;
}
.c-credential {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--bg-parchment);
}
.c-credential svg {
	flex-shrink: 0;
	display: block;
}
.c-credential__label {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink-bark);
}

/* ---- archive intro + category pills ----------------------------------------- */
.c-archive-intro {
	padding: 56px 64px 44px 190px;
}
.c-category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.c-pill {
	min-height: 44px;
	box-sizing: border-box;
	padding: 10px 20px;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	background: transparent;
	color: var(--bg-moss);
	border: 1.5px solid var(--line-border);
}
.c-pill.is-current {
	background: var(--bg-moss);
	color: var(--ink-cream);
	border-color: var(--bg-moss);
}
/* core/categories block, styled as the same pills (SPEC.md §7.7) */
ul.c-category-pills.wp-block-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.c-category-pills .cat-item {
	display: inline-block;
}
.c-category-pills a {
	min-height: 44px;
	box-sizing: border-box;
	padding: 10px 20px;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	background: transparent;
	color: var(--bg-moss);
	border: 1.5px solid var(--line-border);
}
.c-category-pills .current-cat a {
	background: var(--bg-moss);
	color: var(--ink-cream);
	border-color: var(--bg-moss);
}

/* ---- featured post card ------------------------------------------------------ */
.c-featured-wrap {
	padding: 0 64px 40px 190px;
}
.c-featured {
	display: flex;
	gap: 56px;
	align-items: center;
	padding: 36px;
	border-radius: 28px;
	background: var(--bg-parchment);
	flex-wrap: wrap;
}
.c-featured__thumb {
	width: 380px;
	height: 400px;
	flex-shrink: 0;
	border-radius: 190px 190px 14px 14px;
	overflow: hidden;
	margin: 0;
}
.c-featured__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.c-featured__body {
	display: flex;
	flex-direction: column;
	gap: 18px;
	flex: 1 1 320px;
}
.c-featured__eyebrow {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ink-rust-deep);
}
.c-featured__body h2 {
	margin: 0;
	font-size: 44px;
	line-height: 1.05;
	font-weight: 700;
}
.c-featured__body p {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-bark-soft);
}
.c-post-meta {
	font-size: 13px;
	color: var(--ink-meta);
	gap: 6px;
}
.c-post-meta p,
.c-post-meta time {
	margin: 0;
	font-size: 13px;
	color: var(--ink-meta);
}
.c-post-card__eyebrow,
.c-featured__eyebrow.wp-block-post-terms {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
}
.c-post-card__eyebrow a,
.c-featured__eyebrow.wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}
.c-post-card__thumb.wp-block-post-featured-image,
.c-featured__thumb.wp-block-post-featured-image {
	margin: 0;
}
.c-post-card__thumb.wp-block-post-featured-image img,
.c-featured__thumb.wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---- post card grid ----------------------------------------------------------- */
.c-post-grid {
	padding: 64px 64px 40px 190px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
.c-post-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.c-post-card__thumb {
	height: 250px;
	border-radius: 140px 140px 14px 14px;
	overflow: hidden;
	margin: 0;
}
.c-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.c-post-card__eyebrow {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ink-rust);
}
.c-post-card h3 {
	margin: 0;
	font-size: 27px;
	line-height: 1.15;
	font-weight: 700;
}
.c-post-card h3 a {
	color: var(--ink-bark);
	text-decoration: none;
}
.c-post-card h3 a:hover {
	text-decoration: underline;
}
.c-post-card p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink-bark-soft);
}

/* ---- pagination ----------------------------------------------------------------- */
.c-pagination {
	padding: 0 64px 80px 190px;
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.c-pagination .page-numbers {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	color: var(--bg-moss);
	border: 1.5px solid var(--line-border);
}
.c-pagination .page-numbers.current {
	background: var(--bg-moss);
	color: var(--ink-cream);
	border-color: var(--bg-moss);
}
.c-pagination .page-numbers.dots {
	border: none;
	width: auto;
}
.c-pagination .page-numbers.next {
	width: auto;
	height: auto;
	border-radius: 0;
	border: none;
	margin-left: 4px;
	gap: 10px;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--bg-moss);
}

/* ---- single post ------------------------------------------------------------------ */
.c-post-content {
	max-width: 720px;
	margin: 0 auto;
	padding: 80px 64px;
	font-size: 18px;
	line-height: 1.7;
}
.c-post-content > * + * {
	margin-top: 24px;
}
.c-author-card {
	max-width: 720px;
	margin: 0 auto 64px;
	padding: 0 64px;
	display: flex;
	align-items: center;
	gap: 20px;
}
.c-author-card img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.c-author-card__name {
	font-weight: 700;
	color: var(--ink-bark);
}
.c-author-card__role {
	font-size: 14px;
	color: var(--ink-meta);
}
.c-related-posts {
	padding: 64px 64px 80px 190px;
}
/* .c-related-query wraps this grid with its own outer padding already, via
   .c-related-posts above — zero this inner grid's padding so it isn't doubled. */
.c-related-query .c-post-grid {
	padding: 0;
}
.c-related-posts h2 {
	margin: 0 0 32px;
	font-size: 34px;
}

/* ---- search form ------------------------------------------------------------------ */
.wp-block-search .wp-block-search__inside-wrapper {
	border: 1.5px solid var(--line-border);
	border-radius: 999px;
	overflow: hidden;
}
.wp-block-search__input {
	border: none !important;
	font-family: var(--font-body);
	font-size: 16px;
	padding: 12px 20px !important;
}
.wp-block-search__button {
	background: var(--bg-moss) !important;
	color: var(--ink-cream) !important;
	border-radius: 999px !important;
	font-family: var(--font-body);
	font-size: 14px !important;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 4px !important;
}

/* ---- .c-btn (header/hero "Book a session") ------------------------------------------ */
/* tokens.css's .c-btn puts all of the pill's chrome — background, padding,
   flex centering — on the outer .wp-block-button wrapper, but the inner
   <a class="wp-block-button__link wp-element-button"> that actually holds
   the text still carries theme.json's own global button element style
   (its own separate padding/background/min-height). Left unreset, that's a
   second, competing box nested inside the first, which is what was making
   the text not sit exactly centred once the outer box got an explicit fixed
   height. The outer flex box is the only thing that should size this. */
.c-btn .wp-block-button__link {
	padding: 0;
	min-height: 0;
	background: none;
	color: inherit;
	/* Neither tokens.css nor theme.json ever set a line-height for buttons, so
	   this was inheriting the body copy's 1.7 — at 14px that's a ~24px line
	   box around text with no descenders (it's all-caps), which most fonts
	   split unevenly above/below the glyphs rather than centring them,
	   reading as sitting slightly high. 1 keeps the line box close to the
	   glyphs themselves so the outer flex box's align-items:center actually
	   centres what's visible. */
	line-height: 1;
}

/* ---- button style variations ------------------------------------------------------- */
.wp-block-button.is-style-gold .wp-block-button__link {
	background: var(--accent-amber);
	color: var(--ink-bark);
	padding: 18px 32px;
}
.wp-block-button.is-style-gold .wp-block-button__link:hover {
	background: #C4842C;
	color: var(--ink-bark);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--bg-moss);
	border: 1.5px solid var(--bg-moss);
	padding: 14.5px 26.5px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--bg-moss);
	color: var(--ink-cream);
}
.wp-block-button.is-style-arrow-link .wp-block-button__link {
	background: transparent;
	color: var(--ink-rust);
	padding: 0;
	min-height: 0;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
}
.wp-block-button.is-style-arrow-link .wp-block-button__link::after,
.c-arrowlink::after,
.wp-block-read-more::after,
.wp-block-query-pagination-next::after {
	content: "";
	display: inline-block;
	width: 22px;
	height: 12px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12' viewBox='0 0 22 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h19M15 1l5 5-5 5'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12' viewBox='0 0 22 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h19M15 1l5 5-5 5'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform 120ms ease;
	margin-left: 12px;
	vertical-align: middle;
}
.wp-block-button.is-style-arrow-link .wp-block-button__link:hover::after,
.c-arrowlink:hover::after,
.wp-block-read-more:hover::after,
.wp-block-query-pagination-next:hover::after {
	transform: translateX(3px);
}
.wp-block-button.is-style-arrow-link .wp-block-button__link:hover {
	background: transparent;
	text-decoration: underline;
}
/* Arrow link on parchment backgrounds reads moss, per SPEC §7.1 */
.c-title-band .wp-block-button.is-style-arrow-link .wp-block-button__link,
.c-featured .wp-block-button.is-style-arrow-link .wp-block-button__link,
.c-featured .wp-block-read-more {
	color: var(--bg-moss);
}

/* Read More block + pagination "Next", styled as arrow links (SPEC.md §7.1, §7.7) */
.wp-block-read-more {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-rust);
	margin-top: 8px;
}
.wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--bg-moss);
}

/* ---- 404 ---------------------------------------------------------------------------- */
.c-404-links {
	padding: 0 64px 100px 190px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* ============================================================================
   Tablet: 782–1279px
   ============================================================================ */
@media (max-width: 1279px) {
	/* Single-column hero (SPEC.md §11): text above, illustration below, each
	   using the full available width with a plain side gutter instead of the
	   desktop's absolute-positioned 180px/615px layout. flex-direction:column
	   makes each column full-width on its own via the default cross-axis
	   stretch — but each column's markup still carries its desktop
	   flex-basis (470px/615px) as an inline style, which in a row-direction
	   flex container means "width" but in a column-direction one means
	   "height", so it has to be reset here or the columns would render at
	   those fixed heights instead of hugging their actual content. */
	.c-hero {
		min-height: 0;
	}
	/* .c-hero__inner also carries WordPress's own .are-vertically-aligned-top
	   class (from the block's verticalAlignment:"top" attribute), which sets
	   align-items:flex-start — meant for the desktop row layout, where the
	   cross-axis is vertical and this aligns columns to the top. Once
	   flex-direction switches to column here, the cross-axis becomes
	   horizontal, so that same flex-start instead left-aligns each column and
	   lets it shrink-to-fit its content rather than stretch to the full
	   width — which is exactly what was leaving more space on one side than
	   the other. That core class has higher specificity than a single
	   .c-hero__inner selector (two classes vs one), so !important is needed
	   to reliably win regardless of stylesheet order. */
	.c-hero__inner {
		flex-direction: column;
		align-items: stretch !important;
	}
	.c-hero__inner .wp-block-column {
		flex-basis: auto !important;
		/* Top padding has to clear the 100px-tall .c-ribbon--a-narrow strip
		   (fixed height, not responsive) that sits absolutely positioned over
		   the top of .c-hero at this width — 48px left the text starting
		   underneath it. 120px gives it room plus a little breathing space. */
		padding: 120px 64px 0 !important;
	}
	.c-hero__inner .wp-block-column:last-child {
		padding: 32px 64px 48px !important;
	}
	/* max-width caps the image below the column's full available width at
	   most viewport sizes in this range, and as a plain block element it
	   would then default to left-aligned — flush with the text's left edge
	   above it, but leaving a large empty gap on its own right that the text
	   doesn't have. margin-left:auto pushes it flush right instead, matching
	   how it's aligned at every other breakpoint (flush right on desktop,
	   position:right:0 on mobile) instead of introducing a third behaviour
	   here. */
	.c-hero__art img {
		display: block;
		width: 100%;
		max-width: 560px;
		height: auto;
		margin-left: auto;
	}
	.c-pillar {
		flex: 1 1 33%;
	}
	.c-seasons-band {
		flex-wrap: wrap;
	}
	.c-seasons__art {
		width: 100%;
		height: 320px;
	}
	.c-seasons__content {
		padding: 48px 64px;
	}
	.c-about-row {
		padding: 72px 64px;
	}
	.c-archive-intro,
	.c-featured-wrap,
	.c-post-grid,
	.c-pagination,
	.c-related-posts,
	.c-404-links {
		padding-left: 64px;
	}
	.c-title-band {
		padding-left: 64px;
	}
	.c-cta-band {
		padding-left: 64px;
	}
	/* Ribbons B and D are both hidden below 1280px now (see the responsive
	   ribbon section above), so neither footer variant needs to reserve
	   clearance for them here — drop to 2 columns and the plain padding a
	   breakpoint early, shared by both footer.html and footer-front.html
	   since they use the same classes. The ≤781px block below only needs to
	   layer its own tighter side padding on top of this. */
	.c-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-right: 0;
	}
	.c-footer__legal {
		padding-right: 0;
	}
	.c-site-footer--front {
		padding: 64px 64px 28px;
	}
}

/* ============================================================================
   Mobile: ≤781px (WordPress's own breakpoint)
   ============================================================================ */
@media (max-width: 781px) {
	/* 24px sides, not 20px — matches the site-wide mobile gutter used by every
	   other section (hero, pillars, title bands, etc.), so the header's logo
	   and the content below it share the same left edge instead of sitting
	   4px apart. */
	.c-site-header {
		padding: 14px 24px;
		gap: 10px;
	}
	.c-site-header .c-logo__mark {
		width: 44px;
		height: 44px;
	}
	.c-site-header .c-logo__begonia {
		font-size: 27px;
	}
	.c-site-header .c-logo__counselling {
		font-size: 9px;
	}

	/* flex-direction:column and flex-basis:auto already come from the
	   ≤1279px block above. Top padding still needs to clear the same 100px
	   ribbon strip as the tablet rule (120px there too); side padding is
	   tightened further than tablet's 64px, to 16px, which was the actual
	   "excessive/inconsistent" complaint — the image column right below is
	   flush (0 padding) by design, so a much smaller gutter on the text
	   reads as more consistent with it than the old 24px did. */
	.c-hero__inner .wp-block-column {
		padding: 120px 16px 32px !important;
	}
	.c-hero__inner .wp-block-column:last-child {
		padding: 0 !important;
	}
	.c-hero__art {
		position: relative;
		height: 420px;
		overflow: hidden;
	}
	.c-hero__art img {
		position: absolute;
		right: 0;
		bottom: 0;
		width: 339px;
		height: 380px;
	}
	/* theme.json has fluid typography disabled, so every fixed display size
	   needs its own step-down here (SPEC.md §11: hero H1 78px → 50px). */
	.c-hero__inner h1 {
		font-size: 50px;
	}

	.c-pillars {
		padding: 48px 24px 52px;
	}
	.c-pillars__grid {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 24px;
	}
	.c-pillar {
		flex: 1 1 auto;
		width: 100%;
		flex-direction: row;
		align-items: center;
		text-align: left;
		gap: 18px;
		border-left: none;
		padding: 0;
	}
	.c-pillar__vignette {
		width: 92px;
		height: 110px;
	}
	.c-pillar h3 {
		font-size: 23px;
	}
	.c-pillars__intro h2 {
		font-size: 30px;
	}

	.c-seasons__art {
		height: 280px;
	}
	.c-seasons__art img {
		width: 620px;
		left: -115px;
		top: -30px;
	}
	.c-seasons__content {
		padding: 40px 24px 48px;
	}
	.c-seasons__content h2 {
		font-size: 34px;
	}

	/* grid-template-columns and padding-right:0 for .c-footer__grid/
	   .c-footer__legal already come from the ≤1279px block above — only the
	   tighter side/bottom padding is specific to this width. */
	.c-site-footer,
	.c-site-footer--front {
		padding: 44px 24px 28px;
	}

	.c-about-row {
		padding: 56px 24px;
		gap: 40px;
	}
	.c-about-row__portrait {
		width: 100%;
	}
	.c-about-row__copy h2 {
		font-size: 28px;
	}
	.c-pullquote blockquote::before {
		font-size: 56px;
	}
	.c-credentials {
		grid-template-columns: 1fr;
	}

	.c-title-band {
		padding: 44px 24px 32px;
	}
	/* Every page title runs through this class (About/Archive/Search/404 and
	   the query-title on archives), whether via post-title or a static
	   heading — the "huge" preset (68px) has no built-in mobile step. */
	.c-title-band h1 {
		font-size: 42px;
	}
	.c-archive-intro,
	.c-featured-wrap,
	.c-post-grid,
	.c-pagination,
	.c-related-posts,
	.c-404-links {
		padding-left: 24px;
		padding-right: 24px;
	}
	.c-post-grid {
		grid-template-columns: 1fr;
	}
	.c-featured {
		flex-direction: column;
		align-items: stretch;
		padding: 24px;
	}
	.c-featured__thumb {
		width: 100%;
		height: 280px;
	}
	.c-featured__body h2 {
		font-size: 28px;
	}
	.c-cta-band {
		padding: 44px 24px;
		flex-direction: column;
		align-items: flex-start;
	}
	.c-cta-band h2 {
		font-size: 34px;
	}
	.c-post-content,
	.c-author-card {
		padding-left: 24px;
		padding-right: 24px;
	}
}
